Robustify check for IFUNC support.
[official-gcc.git] / gcc / ChangeLog
blob42c623eb4dfc139e48cb9818a7c9510049c43101
1 2013-12-07  Maxim Kuvyrkov  <maxim@kugelworks.com>
3         * config/linux.c (linux_has_ifunc_p): Use correct test.
5 2013-12-07  Maxim Kuvyrkov  <maxim@kugelworks.com>
7         * config/linux.c (linux_android_has_ifunc_p): Rename to
8         linux_has_ifunc_p.
9         (linux_android_libc_has_function): Rename to linux_libc_has_function.
10         * config/linux-protos.h (linux_android_has_ifunc_p,)
11         (linux_android_libc_has_function): Update declarations.
12         * config/linux.h, config/linux-android.h, config/alpha/linux.h,
13         * config/rs6000/linux.h, config/rs6000/linux64.h: Update.
15 2013-12-07  Maxim Kuvyrkov  <maxim@kugelworks.com>
17         * linux-android.c: Rename to linux.c.
18         * t-linux-android: Rename to t-linux.  Update references
19         to linux-android.c
20         * config.gcc: Update references to t-linux-android and linux-android.o.
22 2013-12-07  Alan Modra  <amodra@gmail.com>
24         * config/rs6000/rs6000.md (bswapdi2_32bit): Remove ?? from r->r
25         alternative.
27 2013-12-07  Ralf Corsépius  <ralf.corsepius@rtems.org>
29         * config.gcc (microblaze*-*-rtems*): Add TARGET_BIG_ENDIAN_DEFAULT.
31 2013-12-06  Vladimir Makarov  <vmakarov@redhat.com>
33         * config/rs6000/rs600.md (*bswapdi2_64bit): Remove ?? from the
34         constraint.
36 2013-12-06  Caroline Tice  <cmtice@google.com>
38         Submitting patch from Stephen Checkoway, s@cs.jhu.edu
39         * vtable-verify.c (verify_bb_vtables): Replace all uses of verified
40         vtable pointer with the results of the verification call, rather than
41         only the uses in the next statement.
43 2013-12-06  Andrew Pinski  <apinski@cavium.com>
45         PR target/59092
46         * config/aarch64/aarch64.md (trap): New pattern.
48 2013-12-06  Jakub Jelinek  <jakub@redhat.com>
50         PR tree-optimization/59388
51         * tree-ssa-reassoc.c (update_range_test): If op == range->exp,
52         gimplify tem after stmt rather than before it.
54         * tree-data-ref.c (struct data_ref_loc_d): Replace pos field with ref.
55         (get_references_in_stmt): Don't record operand addresses, but
56         operands themselves.
57         (find_data_references_in_stmt, graphite_find_data_references_in_stmt):
58         Adjust for the pos -> ref change.
60 2013-12-06  H.J. Lu  <hongjiu.lu@intel.com>
62         * config.gcc: Change --with-cpu=ia to --with-cpu=intel.
64         * config/i386/i386.c (cpu_names): Replace "ia" with "intel".
65         (processor_alias_table): Likewise.
66         (ix86_option_override_internal): Likewise.
67         * config/i386/i386.h (target_cpu_default): Replace
68         TARGET_CPU_DEFAULT_ia with TARGET_CPU_DEFAULT_intel.
70         * doc/invoke.texi: Replace -mtune=ia with -mtune=intel.
72 2013-12-06  Uros Bizjak  <ubizjak@gmail.com>
74         PR target/59405
75         * config/i386/i386.c (type_natural_mode): Properly handle
76         size 8 for !TARGET_64BIT.
78 2013-12-06  Trevor Saunders  <tsaunders@mozilla.com>
80         * tree-ssa-pre.c (compute_antic_aux): Remove redundant call to
81         vec::release.
83 2013-12-06  Ian Bolton  <ian.bolton@arm.com>
84             Mark Mitchell  <mark@codesourcery.com>
86         PR target/59091
87         * config/arm/arm.md (trap): New pattern.
88         * config/arm/types.md: Added a type for trap.
90 2013-12-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
92         * expr.c (expand_assignment): Update bitregion_start and bitregion_end.
94 2013-12-06  Eric Botcazou  <ebotcazou@adacore.com>
96         PR target/59316
97         * config/sparc/sparc.h (SPARC_LOW_FE_EXCEPT_VALUES): Define.
98         * config/sparc/sol2.h (SPARC_LOW_FE_EXCEPT_VALUES): Redefine.
99         * config/sparc/sparc.c (TARGET_INIT_BUILTINS): Move around.
100         (TARGET_BUILTIN_DECL): Define.
101         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Likewise.
102         (sparc32_initialize_trampoline): Adjust call to gen_flush.
103         (enum sparc_builtins): New enumeral type.
104         (sparc_builtins): New static array.
105         (sparc_builtins_icode): Likewise.
106         (def_builtin): Accept a separate icode and save the result.
107         (def_builtin_const): Likewise.
108         (sparc_fpu_init_builtins): New function.
109         (sparc_vis_init_builtins): Pass the builtin code.
110         (sparc_init_builtins): Call it if TARGET_FPU.
111         (sparc_builtin_decl): New function.
112         (sparc_expand_builtin): Deal with SPARC_BUILTIN_{LD,ST}FSR.
113         (sparc_handle_vis_mul8x16): Use the builtin code.
114         (sparc_fold_builtin): Likewise.  Deal with SPARC_BUILTIN_{LD,ST}FSR
115         and SPARC_BUILTIN_PDISTN.
116         (compound_expr): New helper function.
117         (sparc_atomic_assign_expand_fenv): New function.
118         * config/sparc/sparc.md (unspecv): Reorder values, add UNSPECV_LDFSR
119         and UNSPECV_STFSR.
120         (flush, flushdi): Merge into single pattern.
121         (ldfsr): New instruction.
122         (stfsr): Likewise.
124 2013-12-06  Oleg Endo  <olegendo@gcc.gnu.org>
126         * asan.c: Remove struct tags when referring to class varpool_node.
127         * cgraph.h: Likewise.
128         * cgraphbuild.c: Likewise.
129         * cgraphunit.c: Likewise.
130         * dbxout.c: Likewise.
131         * dwarf2out.c: Likewise.
132         * gimple-fold.c: Likewise.
133         * ipa-devirt.c: Likewise.
134         * ipa-ref-inline.h: Likewise.
135         * ipa-ref.h: Likewise.
136         * ipa-reference.c: Likewise.
137         * ipa-utils.c: Likewise.
138         * ipa.c: Likewise.
139         * lto-cgraph.c: Likewise.
140         * lto-streamer-out.c: Likewise.
141         * lto-streamer.h: Likewise.
142         * passes.c: Likewise.
143         * toplev.c: Likewise.
144         * tree-eh.c: Likewise.
145         * tree-emutls.c: Likewise.
146         * tree-pass.h: Likewise.
147         * tree-ssa-structalias.c: Likewise.
148         * tree-vectorizer.c: Likewise.
149         * tree.c: Likewise.
150         * varasm.c: Likewise.
151         * varpool.c: Likewise.
153 2013-12-06  Oleg Endo  <olegendo@gcc.gnu.org>
155         * cgraphunit.c: Remove struct tags when referring to class
156         ipa_opt_pass_d or class opt_pass.
157         * function.h: Likewise.
158         * lto-cgraph.c: Likewise.
159         * pass_manager.h: Likewise.
160         * passes.c: Likewise.
161         * tree-pass.h: Likewise.
163 2013-12-06  Richard Biener  <rguenther@suse.de>
165         PR tree-optimization/59058
166         * tree-vectorizer.h (struct _loop_vec_info): Add num_itersm1 member.
167         (LOOP_VINFO_NITERSM1): New macro.
168         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Express
169         the vector loop entry test in terms of scalar latch executions.
170         (vect_do_peeling_for_alignment): Update LOOP_VINFO_NITERSM1.
171         * tree-vect-loop.c (vect_get_loop_niters): Also return the
172         number of latch executions.
173         (new_loop_vec_info): Initialize LOOP_VINFO_NITERSM1.
174         (vect_analyze_loop_form): Likewise.
175         (vect_generate_tmps_on_preheader): Compute the number of
176         vectorized iterations differently.
178 2013-12-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
180         * config/score/score.c (score_force_temporary): Delete function.
181         (score_split_symbol): Ditto.
182         * config/score/score.h (ASM_OUTPUT_ADDR_DIFF_ELT): Add extra
183         parentheses to silence ambiguity warning and reindent.
185 2013-12-05  Marek Polacek  <polacek@redhat.com>
187         * doc/invoke.texi: Document -fsanitize=signed-integer-overflow.
189 2013-12-05  H.J. Lu  <hongjiu.lu@intel.com>
191         * config.gcc: Support --with-cpu=ia.
193         * config/i386/i386.c (cpu_names): Add "ia".
194         (processor_alias_table): Likewise.
195         (ix86_option_override_internal): Disallow -march=ia.
196         * config/i386/i386.h (target_cpu_default): Add TARGET_CPU_DEFAULT_ia.
198         * doc/invoke.texi: Document -mtune=ia.
200 2013-12-05  Vladimir Makarov  <vmakarov@redhat.com>
202         PR rtl-optimization/59317
203         * lra-constraints.c (in_class_p): Don't ignore insn with constant
204         as a source.
206 2013-12-05  Martin Jambor  <mjambor@suse.cz>
208         PR ipa/58253
209         * ipa-prop.c (ipa_modify_formal_parameters): Create decls of
210         non-BLKmode in their naturally aligned type.
212 2013-12-05  Marek Polacek  <polacek@redhat.com>
214         PR sanitizer/59333
215         PR sanitizer/59397
216         * ubsan.c: Include rtl.h and expr.h.
217         (ubsan_encode_value): Add new parameter.  If expanding, assign
218         a stack slot for DECL_RTL of the temporary and call expand_assignment.
219         Handle BOOLEAN_TYPE and ENUMERAL_TYPE.
220         (ubsan_build_overflow_builtin): Adjust ubsan_encode_value call.
221         * ubsan.h (ubsan_encode_value): Adjust declaration.
222         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Move
223         ubsan_build_overflow_builtin above expand_normal call.  Surround
224         this call with push_temp_slots and pop_temp_slots.
225         (ubsan_expand_si_overflow_neg_check): Likewise.
226         (ubsan_expand_si_overflow_mul_check): Likewise.
228 2013-12-05  Yufeng Zhang  <yufeng.zhang@arm.com>
230         * gimple-ssa-strength-reduction.c (find_basis_for_candidate): Guard
231         the get_alternative_base call with flag_expensive_optimizations.
232         (alloc_cand_and_find_basis): Likewise.
234 2013-12-05  Tejas Belagod  <tejas.belagod@arm.com>
236         * rtlanal.c (set_noop_p): Return nonzero in case of redundant
237         vec_select for overlapping register lanes.
239 2013-12-05  Kirill Yukhin  <kirill.yukhin@intel.com>
241         * config/i386/i386.c (ix86_expand_builtin): Generate
242         reg for readflags built-in when optimizing.
243         * config/i386/i386.md (*pushfl<mode>): Rename to ...
244         (pushfl<mode>2): This. Fix iterator.
245         (*popfl<mode>): Rename to ...
246         (*popfl<mode>1): This. Fix iterator.
248 2013-12-05  Kirill Yukhin  <kirill.yukhin@intel.com>
250         * config/i386/i386.c (IX86_BUILTIN_READ_FLAGS): New.
251         (IX86_BUILTIN_WRITE_FLAGS): Ditto.
252         (ix86_init_mmx_sse_builtins): Define
253         __builtin_ia32_writeeflags_u32, __builtin_ia32_writeeflags_u64,
254         __builtin_ia32_readeflags_u32, __builtin_ia32_readeflags_u64.
255         (ix86_expand_builtin): Expand them.
256         * config/i386/ia32intrin.h (__readeflags): New.
257         (__writeeflags): Ditto.
258         * gcc/config/i386/i386.md (*pushfl<mode>): Ditto.
259         (*popfl<mode>1): Ditto.
261 2013-12-05  Richard Biener  <rguenther@suse.de>
263         PR tree-optimization/59374
264         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
265         Commonize known and unknown dependence case fixing the allowed
266         read-write dependence case and dropping code that should not matter.
268 2013-12-05  Kirill Yukhin  <kirill.yukhin@intel.com>
270         * config/ia64/ia64.md (prologue_allocate_stack): Block auto-
271         generation of predicated version.
272         (epilogue_deallocate_stack): Ditto.
273         (prologue_allocate_stack_pr): Add explicit predicated version.
274         (epilogue_deallocate_stack_pr): Ditto.
275         * config/ia64/ia64.c (ia64_single_set): Use explicit version.
277 2013-12-05  Alan Modra  <amodra@gmail.com>
279         * configure.ac (BUILD_CXXFLAGS) Don't use ALL_CXXFLAGS for
280         build != host.
281         <recursive call for build != host>: Clear GMPINC.  Don't bother
282         saving CFLAGS.
284 2013-12-04  Jakub Jelinek  <jakub@redhat.com>
285             Marek Polacek  <polacek@redhat.com>
287         * opts.c (common_handle_option): Handle
288         -fsanitize=signed-integer-overflow.
289         * config/i386/i386.md (addv<mode>4, subv<mode>4, mulv<mode>4,
290         negv<mode>3, negv<mode>3_1): Define expands.
291         (*addv<mode>4, *subv<mode>4, *mulv<mode>4, *negv<mode>3): Define insns.
292         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW,
293         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW,
294         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW,
295         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW): Define.
296         * ubsan.h (PROB_VERY_UNLIKELY, PROB_EVEN, PROB_VERY_LIKELY,
297         PROB_ALWAYS): Define.
298         (ubsan_build_overflow_builtin): Declare.
299         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Add folding of
300         internal functions.
301         * ubsan.c (PROB_VERY_UNLIKELY): Don't define here.
302         (ubsan_build_overflow_builtin): New function.
303         (instrument_si_overflow): Likewise.
304         (ubsan_pass): Add signed integer overflow checking.
305         (gate_ubsan): Enable the pass also when SANITIZE_SI_OVERFLOW.
306         * flag-types.h (enum sanitize_code): Add SANITIZE_SI_OVERFLOW.
307         * internal-fn.c: Include ubsan.h and target.h.
308         (ubsan_expand_si_overflow_addsub_check): New function.
309         (ubsan_expand_si_overflow_neg_check): Likewise.
310         (ubsan_expand_si_overflow_mul_check): Likewise.
311         (expand_UBSAN_CHECK_ADD): Likewise.
312         (expand_UBSAN_CHECK_SUB): Likewise.
313         (expand_UBSAN_CHECK_MUL): Likewise.
314         * fold-const.c (fold_binary_loc): Don't fold A + (-B) -> A - B and
315         (-A) + B -> B - A when doing the signed integer overflow checking.
316         * internal-fn.def (UBSAN_CHECK_ADD, UBSAN_CHECK_SUB, UBSAN_CHECK_MUL):
317         Define.
318         * tree-vrp.c (extract_range_basic): Handle internal calls.
319         * optabs.def (addv4_optab, subv4_optab, mulv4_optab, negv4_optab): New
320         optabs.
321         * asan.c: Include predict.h.
322         (PROB_VERY_UNLIKELY, PROB_ALWAYS): Don't define here.
323         * predict.c: Move the PROB_* macros...
324         * predict.h (enum br_predictor): ...here.
325         (PROB_LIKELY, PROB_UNLIKELY): Define.
326         * trans-mem.c: Include predict.h.
327         (PROB_VERY_UNLIKELY, PROB_ALWAYS, PROB_VERY_LIKELY,
328         PROB_LIKELY, PROB_UNLIKELY): Don't define here.
330 2013-12-04  Jeff Law  <law@redhat.com>
332         * common.opt: Split up -fisolate-erroneous-paths into
333         -fisolate-erroneous-paths-dereference and
334         -fisolate-erroneous-paths-attribute.
335         * invoke.texi: Corresponding changes.
336         * gimple.c (infer_nonnull_range):  Add and use new arguments to control
337         what kind of statements can be used to infer a non-null range.
338         * gimple.h (infer_nonnull_range): Update prototype.
339         * tree-vrp.c (infer_value_range): Corresponding changes.
340         * opts.c (default_options_table): Update due to option split.
341         * gimple-ssa-isolate-paths.c: Fix trailing whitespace.
342         (find_implicit_erroneous_behaviour): Pass additional arguments
343         to infer_nonnull_range.
344         (find_explicit_erroneous_behaviour): Similarly.
345         (gate_isolate_erroneous_paths): Check both of the new options.
347 2013-12-04  Jeff Law  <law@redhat.com>
349         * expr.c (expand_assignment): Update comments.
351 2013-12-04  Tobias Burnus  <burnus@net-b.de>
353         PR debug/37132
354         * lto-streamer.h (LTO_tags): Add LTO_namelist_decl_ref.
355         * tree.def (NAMELIST_DECL): Add.
356         * tree.h (NAMELIST_DECL_ASSOCIATED_DECL): New macro.
357         * tree.c (initialize_tree_contains_struct): Add asserts for it.
358         * dwarf2out.c (gen_namelist_decl): New function.
359         (gen_decl_die, dwarf2out_decl): Call it.
360         (dwarf2out_imported_module_or_decl_1): Handle NAMELIST_DECL.
361         * lto-streamer-in.c (lto_input_tree_ref): Handle NAMELIST_DECL.
362         (lto_input_tree_ref, lto_input_tree_1): Update lto_tag_check_range
363         call.
364         * lto-streamer-out.c (lto_output_tree_ref): Handle NAMELIST_DECL.
366 2013-12-03  Xinliang David Li  <davidxl@google.com>
368         * tree-ssa-structalias.c (constraint_set_union): Change return type
369         from void to bool.
370         (merge_node_constraints): Ditto.
371         (unify_nodes): Update changed set when constraints set changes.
373 2013-12-04  H.J. Lu  <hongjiu.lu@intel.com>
375         * configure.ac: Append gdbasan.in to .gdbinit if CFLAGS contains
376         -fsanitize=address.
377         * configure: Regenerated.
379         * gdbasan.in: New file.
381 2013-12-04  Jakub Jelinek  <jakub@redhat.com>
383         PR rtl-optimization/58726
384         * combine.c (force_to_mode): Fix comment typo.  Don't destructively
385         modify x for ROTATE, ROTATERT and IF_THEN_ELSE.
387 2013-12-04  Jakub Jelinek  <jakub@redhat.com>
388             Uros Bizjak  <ubizjak@gmail.com>
390         PR target/59163
391         * config/i386/i386.c (ix86_legitimate_combined_insn): If for
392         !TARGET_AVX there is misaligned MEM operand with vector mode
393         and get_attr_ssememalign is 0, return false.
394         (ix86_expand_special_args_builtin): Add get_pointer_alignment
395         computed alignment and for non-temporal loads/stores also
396         at least GET_MODE_ALIGNMENT as MEM_ALIGN.
397         * config/i386/sse.md
398         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
399         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
400         <sse2_avx_avx512f>_loaddqu<mode><mask_name>,
401         <sse2_avx_avx512f>_storedqu<mode>, <sse3>_lddqu<avxsizesuffix>,
402         sse_vmrcpv4sf2, sse_vmrsqrtv4sf2, sse2_cvtdq2pd, sse_movhlps,
403         sse_movlhps, sse_storehps, sse_loadhps, sse_loadlps,
404         *vec_interleave_highv2df, *vec_interleave_lowv2df,
405         *vec_extractv2df_1_sse, sse2_movsd, sse4_1_<code>v8qiv8hi2,
406         sse4_1_<code>v4qiv4si2, sse4_1_<code>v4hiv4si2,
407         sse4_1_<code>v2qiv2di2, sse4_1_<code>v2hiv2di2,
408         sse4_1_<code>v2siv2di2, sse4_2_pcmpestr, *sse4_2_pcmpestr_unaligned,
409         sse4_2_pcmpestri, sse4_2_pcmpestrm, sse4_2_pcmpestr_cconly,
410         sse4_2_pcmpistr, *sse4_2_pcmpistr_unaligned, sse4_2_pcmpistri,
411         sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Add ssememalign attribute.
412         * config/i386/i386.md (ssememalign): New define_attr.
414 2013-12-04  Jakub Jelinek  <jakub@redhat.com>
416         PR tree-optimization/59355
417         * ipa-devirt.c (gate_ipa_devirt): Return false if !flag_devirtualize.
418         * opts.c (common_handle_option): Fix comment spelling.
420 2013-12-04  Yufeng Zhang  <yufeng.zhang@arm.com>
422         * gimple-ssa-strength-reduction.c: Include tree-affine.h.
423         (name_expansions): New static variable.
424         (alt_base_map): Ditto.
425         (get_alternative_base): New function.
426         (find_basis_for_candidate): For CAND_REF, optionally call
427         find_basis_for_base_expr with the returned value from
428         get_alternative_base.
429         (record_potential_basis): Add new parameter 'base' of type 'tree';
430         add an assertion of non-NULL base; use base to set node->base_expr.
431         (alloc_cand_and_find_basis): Update; call record_potential_basis
432         for CAND_REF with the returned value from get_alternative_base.
433         (replace_refs): Dump details on the replacing.
434         (execute_strength_reduction): Call pointer_map_create for
435         alt_base_map; call free_affine_expand_cache with &name_expansions.
437 2013-12-03  Wei Mi  <wmi@google.com>
439         PR rtl-optimization/59020
440         * sched-deps.c (try_group_insn): Move it from haifa-sched.c to here.
441         (sched_analyze_insn): Call try_group_insn.
442         (sched_analyze): Cleanup SCHED_GROUP_P before start the analysis.
443         * haifa-sched.c (try_group_insn): Moved to sched-deps.c.
444         (group_insns_for_macro_fusion): Removed.
445         (sched_init): Remove calling group_insns_for_macro_fusion.
447 2013-12-03  Peter Bergner  <bergner@vnet.ibm.com>
449         * config/rs6000/htmintrin.h (_TEXASR_INSTRUCTION_FETCH_CONFLICT): Fix
450         typo in macro name.
451         (_TEXASRU_INSTRUCTION_FETCH_CONFLICT): Likewise.
453 2013-12-03  Vladimir Makarov  <vmakarov@redhat.com>
455         * config/aarch64/aarch64.c (aarch64_frame_pointer_required): Check
456         LR_REGNUM.
457         (aarch64_can_eliminate): Don't check elimination source when
458         frame_pointer_required is false.
460 2013-12-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
462         * config/avr/avr.c (avr_option_override): Warn if asked to generate
463         position independent code.
464         * config/avr/avr.h: Modify LINK_SPEC to reject -shared.
466 2013-12-03   H.J. Lu  <hongjiu.lu@intel.com>
468         PR target/59363
469         * config/i386/i386.c (emit_memset): Adjust destination address
470         after gen_strset.
471         (expand_setmem_epilogue): Likewise.
473 2013-12-03  Marek Polacek  <polacek@redhat.com>
475         PR middle-end/56344
476         * calls.c (expand_call): Disallow passing huge arguments by value.
478 2013-12-03  Jakub Jelinek  <jakub@redhat.com>
480         PR tree-optimization/59362
481         * tree-object-size.c (object_sizes): Change into array of
482         vec<unsigned HOST_WIDE_INT>.
483         (compute_builtin_object_size): Check computed bitmap for
484         non-NULL instead of object_sizes.  Call safe_grow on object_sizes
485         vector if new SSA_NAMEs appeared.
486         (init_object_sizes): Check computed bitmap for non-NULL.
487         Call safe_grow on object_sizes elements instead of initializing
488         it with XNEWVEC.
489         (fini_object_sizes): Call release on object_sizes elements, don't
490         set it to NULL.
492         PR middle-end/59011
493         * gimplify.c (nonlocal_vla_vars): New variable.
494         (gimplify_var_or_parm_decl): Put VAR_DECLs for VLAs into
495         nonlocal_vla_vars chain.
496         (gimplify_body): Call declare_vars on nonlocal_vla_vars chain
497         if outer_bind has DECL_INITIAL (current_function_decl) block.
499         PR target/58864
500         * dojump.c (save_pending_stack_adjust, restore_pending_stack_adjust):
501         New functions.
502         * expr.h (struct saved_pending_stack_adjust): New type.
503         (save_pending_stack_adjust, restore_pending_stack_adjust): New
504         prototypes.
505         * optabs.c (emit_conditional_move): Call save_pending_stack_adjust
506         and get_last_insn before do_pending_stack_adjust, call
507         restore_pending_stack_adjust after delete_insns_since.
508         * expr.c (expand_expr_real_2): Don't call do_pending_stack_adjust
509         before calling emit_conditional_move.
510         * expmed.c (expand_sdiv_pow2): Likewise.
511         * calls.c (expand_call): Use {save,restore}_pending_stack_adjust.
513 2013-12-02  Jeff Law  <law@redhat.com>
515         PR tree-optimization/59322
516         * tree-ssa-threadedge.c (create_edge_and_update_destination_phis):
517         Remove code which copied jump threading paths.
519 2013-12-02  Sriraman Tallam  <tmsriram@google.com>
521         PR target/58944
522         * config/i386/i386.opt (ix86_arch_string): Mark this variable
523         for saving in cl_target_option.
524         (ix86_tune_string): Ditto.
525         (ix86_cmodel): Ditto.
526         (ix86_abi): Ditto.
527         (ix86_asm_dialect): Ditto.
528         (ix86_branch_cost): Ditto.
529         (ix86_dump_tunes): Ditto.
530         (ix86_force_align_arg_pointer): Ditto.
531         (ix86_force_drap): Ditto.
532         (ix86_incoming_stack_boundary_arg): Ditto.
533         (ix86_pmode): Ditto.
534         (ix86_preferred_stack_boundary_arg): Ditto.
535         (ix86_recip_name): Ditto.
536         (ix86_regparm): Ditto.
537         (ix86_section_threshold): Ditto.
538         (ix86_sse2avx): Ditto.
539         (ix86_stack_protector_guard): Ditto.
540         (ix86_stringop_alg): Ditto.
541         (ix86_tls_dialect): Ditto.
542         (ix86_tune_ctrl_string): Ditto.
543         (ix86_tune_memcpy_strategy): Ditto.
544         (ix86_tune_memset_strategy): Ditto.
545         (ix86_tune_no_default): Ditto.
546         (ix86_veclibabi_type): Ditto.
547         * config/i386/i386.c (function_specific_save): Save the above
548         variables in gcc_options to cl_target_option.
549         (function_specific_restore): Do the reverse done in
550         function_specific_save.
551         (ix86_valid_target_attribute_tree): Change ix86_arch_string
552         and ix86_tune_string to use the opts structure.
553         (ix86_option_override_internal):Change
554         ix86_incoming_stack_boundary_arg to
555         opts->x_ix86_incoming_stack_boundary_arg
557 2013-12-02  Joern Rennecke  <joern.rennecke@embecosm.com>
559         * config/epiphany/epiphany.h: Wrap rtl_opt_pass declarations
560         in #ifndef IN_LIBGCC2 / #endif.
562 2013-12-02  Jakub Jelinek  <jakub@redhat.com>
564         PR tree-optimization/59358
565         * tree-vrp.c (union_ranges): To check for the partially overlapping
566         ranges or adjacent ranges, also compare *vr0max with vr1max.
568 2013-12-02  Sterling Augustine  <saugustine@google.com>
570         * dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset
571         when there isn't a skeleton die.
573 2013-12-02  Marek Polacek  <polacek@redhat.com>
575         PR sanitizer/59353
576         * doc/invoke.texi: Document -fsanitize=return.
578 2013-12-02  Tobias Burnus  <burnus@net-b.de>
579             Manuel López-Ibáñez  <manu@gcc.gnu.org>
581         PR middle-end/59257
582         * doc/invoke.texi: Add missing @opindex.
583         (-fsanitize=): Use @gcctabopt instead of @itemize.
585 2013-12-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
587         Fix C++0x memory model for unaligned fields in packed, aligned(4)
588         structures with -fno-strict-volatile-bitfields on STRICT_ALIGNMENT
589         targets like arm-none-eabi.
590         * expr.c (expand_assignment): Handle normal fields like bit regions.
592 2013-12-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
594         PR target/58115
595         * function.c (invoke_set_current_function_hook): Call
596         targetm.set_current_function after setting this_fn_optabs.
598 2013-12-02  Richard Biener  <rguenther@suse.de>
600         PR tree-optimization/59139
601         * tree-ssa-loop-niter.c (chain_of_csts_start): Properly match
602         code in get_val_for.
603         (get_val_for): Use gcc_checking_asserts.
605 2013-12-02  Richard Biener  <rguenther@suse.de>
607         PR middle-end/59199
608         * tree-ssa-operands.c (opf_implicit): Remove.
609         (opf_address_taken): New flag.
610         (get_expr_operands): Remove early out, pass down opf_address_taken for
611         ADDR_EXPRs, add a use operand only for non-opf_address_taken bases.
612         (get_indirect_ref_operands): Rename to ...
613         (get_mem_ref_operands): ... this.
614         (get_asm_expr_operands): Rename to ...
615         (get_asm_stmt_operands): ... this.
617 2013-12-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
619         * ipa-inline.c (check_callers): Add missed pointer de-reference.
621 2013-12-02  Eric Botcazou  <ebotcazou@adacore.com>
623         PR tree-optimization/59356
624         * tree-dfa.h (get_addr_base_and_unit_offset_1) <case ARRAY_REF>: Do the
625         offset computation using the precision of the index type.
627 2013-12-02  Yvan Roux  <yvan.roux@linaro.org>
629         PR target/58785
630         * config/arm/arm.c (arm_preferred_reload_class): Only return LO_REGS
631         when rclass is GENERAL_REGS.
633 2013-12-02  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
635         * loop-unroll.c (decide_unroll_constant_iterations): Check macro
636         TARGET_LOOP_UNROLL_ADJUST while deciding unroll factor.
638 2013-12-01  Eric Botcazou  <ebotcazou@adacore.com>
640         * config/i386/winnt.c (i386_pe_asm_named_section): Be prepared for an
641         identifier node.
643 2013-12-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
645         * expr.c (emit_group_store): Fix off-by-one BITFIELD_END argument.
647 2013-11-30  Paulo Matos  <pmatos@broadcom.com>
648             Eric Botcazou  <ebotcazou@adacore.com>
650         * combine.c (reg_nonzero_bits_for_combine): Apply mask transformation
651         as applied to nonzero_sign_valid when last_set_mode has less precision
652         than mode.
654 2013-11-30  Tobias Burnus  <burnus@net-b.de>
656         PR sanitizer/59275
657         * doc/invoke.texi (-fsanitize=address,leak): Mention the associated
658         environment variable and link to a list with flags.
659         (-fsanitize=thread): Ditto and update link.
661 2013-11-29  Vladimir Makarov  <vmakarov@redhat.com>
663         PR rtl-optimization/59340
664         * lra.c (check_rtl): Use recog_memoized instead of insn_invalid_p.
666         Revert
667         2013-11-20  Robert Suchanek  <Robert.Suchanek@imgtec.com>
669         * lra.c (lra): Set lra_in_progress before check_rtl call.
670         * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
671         adding clobber regs when LRA is running.
673 2013-11-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
675         PR target/59289
676         * config/arm/arm.c (cortexa15_extra_costs): Adjust costs.
678 2013-11-29  Richard Biener  <rguenther@suse.de>
680         PR middle-end/59208
681         * tree-ssa-operands.h (fini_ssa_operands, verify_ssa_operands,
682         free_stmt_operands, update_stmt_operands): Add struct function
683         argument.
684         * tree-ssa-operands.c: Remove uses of cfun, propagate struct
685         function argument from fini_ssa_operands, verify_ssa_operands,
686         free_stmt_operands and update_stmt_operands everywhere.
687         * tree-ssanames.h (release_ssa_name_fn): New.
688         (release_ssa_name): Inline wrapper around release_ssa_name_fn.
689         * tree-ssanames.c (release_ssa_name): Rename to ...
690         (release_ssa_name_fn): ... this and add struct function argument.
691         * gimple-ssa.h (update_stmt, update_stmt_if_modified): Adjust.
692         (update_stmt_fn): New function.
693         * tree-cfg.c (move_block_to_fn): Adjust.
694         * tree-if-conv.c (free_bb_predicate): Likewise.
695         * tree-ssa.c (verify_ssa): Likewise.
696         (delete_tree_ssa): Likewise.
697         * gimple-pretty-print.c (dump_gimple_mem_ops): Remove guard.
698         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Call
699         update_stmt_fn instead of update_stmt.
701 2013-11-29  Yvan Roux  <yvan.roux@linaro.org>
703         * config/arm/arm.h (THUMB_SECONDARY_INPUT_RELOAD_CLASS): Return NO_REGS
704         for LRA.
706 2013-11-29  Yvan Roux  <yvan.roux@linaro.org>
708         * config/arm/arm.md (store_minmaxsi): Use only when
709         optimize_function_for_size_p.
711 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
712             Yury Gribov  <y.gribov@samsung.com>
714         PR sanitizer/59063
715         * config/gnu-user.h: Removed old code for setting up sanitizer libs.
716         * gcc.c: Using libsanitizer spec instead of explicit libs.
718 2013-11-29  Ilya Enkovich  <ilya.enkovich@intel.com>
720         Reverted:
721         2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
722         * cgraph.h (varpool_node): Add need_bounds_init field.
723         * lto-cgraph.c (lto_output_varpool_node): Output
724         need_bounds_init value.
725         (input_varpool_node): Read need_bounds_init value.
726         * varpool.c (dump_varpool_node): Dump need_bounds_init field.
728         Reverted:
729         2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
730         * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
731         * dwarf2out.c (gen_subprogram_die): Ignore bound args.
732         (gen_type_die_with_usage): Skip pointer bounds.
733         (dwarf2out_global_decl): Likewise.
735         Reverted:
736         2013-11-18  Ilya Enkovich  <ilya.enkovich@intel.com>
737         * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
738         * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
739         * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
740         * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
741         * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
742         (gimple_call_with_bounds_p): New.
743         (gimple_call_set_with_bounds): New.
744         (gimple_call_num_nobnd_args): Remove.
745         (gimple_call_nobnd_arg): Remove.
746         * tree.h (CALL_WITH_BOUNDS_P): New.
747         * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
749         Reverted:
750         2013-11-08  Ilya Enkovich  <ilya.enkovich@intel.com>
751         * common.opt (fcheck-pointer-bounds): Move to ...
752         * c-family/c.opt: ... here.
753         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
754         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
755         * langhooks.h (lang_hooks): Remove chkp_supported field.
756         * toplev.c (process_options): Remove chkp_supported check.
758         Reverted:
759         2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
760         * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
761         * tree.h (POINTER_BOUNDS_P): New.
762         (BOUNDED_TYPE_P): New.
763         (BOUNDED_P): New.
764         (pointer_bounds_type_node): New.
765         * tree.c (build_common_tree_nodes): Initialize
766         pointer_bounds_type_node.
767         * gimple.h (gimple_call_get_nobnd_arg_index): New.
768         (gimple_call_num_nobnd_args): New.
769         (gimple_call_nobnd_arg): New.
770         (gimple_return_retbnd): New.
771         (gimple_return_set_retbnd): New
772         * gimple.c (gimple_build_return): Increase number of ops
773         for return statement.
774         (gimple_call_get_nobnd_arg_index): New.
775         * gimple-pretty-print.c (dump_gimple_return): Print second op.
777         Reverted:
778         2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
779         * ipa.c (cgraph_build_static_cdtor_1): Support contructors
780         with "chkp ctor" and "bnd_legacy" attributes.
781         * gimplify.c (gimplify_init_constructor): Avoid infinite
782         loop during gimplification of bounds initializer.
784         Reverted:
785         2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
786         * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
787         (handle_bnd_legacy): New.
788         (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
789         * doc/extend.texi: Document bnd_variable_size and bnd_legacy
790         attributes.
792         Reverted:
793         2013-10-29  Ilya Enkovich  <ilya.enkovich@intel.com>
794         * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
795         (BT_FN_PTR_CONST_PTR): New.
796         (BT_FN_CONST_PTR_CONST_PTR): New.
797         (BT_FN_PTR_CONST_PTR_SIZE): New.
798         (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
799         (BT_FN_VOID_PTRPTR_CONST_PTR): New.
800         (BT_FN_VOID_CONST_PTR_SIZE): New.
801         (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
802         * chkp-builtins.def: New.
803         * builtins.def: include chkp-builtins.def.
804         (DEF_CHKP_BUILTIN): New.
805         * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
806         BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
807         BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
808         BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
809         BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
810         BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
811         BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
812         BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
813         BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
814         BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
815         * common.opt (fcheck-pointer-bounds): New.
816         * toplev.c (process_options): Check Pointer Bounds Checker is
817         supported.
818         * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
820         Reverted:
821         2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
822         * target.def (builtin_chkp_function): New.
823         (chkp_bound_type): New.
824         (chkp_bound_mode): New.
825         (fn_abi_va_list_bounds_size): New.
826         (load_bounds_for_arg): New.
827         (store_bounds_for_arg): New.
828         * targhooks.h (default_load_bounds_for_arg): New.
829         (default_store_bounds_for_arg): New.
830         (default_fn_abi_va_list_bounds_size): New.
831         (default_chkp_bound_type): New.
832         (default_chkp_bound_mode): New.
833         (default_builtin_chkp_function): New.
834         * targhooks.c (default_load_bounds_for_arg): New.
835         (default_store_bounds_for_arg): New.
836         (default_fn_abi_va_list_bounds_size): New.
837         (default_chkp_bound_type): New.
838         (default_chkp_bound_mode); New.
839         (default_builtin_chkp_function): New.
840         * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
841         (TARGET_LOAD_BOUNDS_FOR_ARG): New.
842         (TARGET_STORE_BOUNDS_FOR_ARG): New.
843         (TARGET_BUILTIN_CHKP_FUNCTION): New.
844         (TARGET_CHKP_BOUND_TYPE): New.
845         (TARGET_CHKP_BOUND_MODE): New.
846         * doc/tm.texi: Regenerated.
847         * langhooks.h (lang_hooks): Add chkp_supported field.
848         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
849         (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
851         Reverted:
852         2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
853         * config/i386/constraints.md (B): New.
854         (Ti): New.
855         (Tb): New.
856         * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
857         * config/i386/i386-modes.def (BND32): New.
858         (BND64): New.
859         * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
860         * config/i386/i386.c (isa_opts): Add mmpx.
861         (regclass_map): Add bound registers.
862         (dbx_register_map): Likewise.
863         (dbx64_register_map): Likewise.
864         (svr4_dbx_register_map): Likewise.
865         (PTA_MPX): New.
866         (ix86_option_override_internal): Support MPX ISA.
867         (ix86_conditional_register_usage): Support bound registers.
868         (print_reg): Likewise.
869         (ix86_code_end): Add MPX bnd prefix.
870         (output_set_got): Likewise.
871         (ix86_output_call_insn): Likewise.
872         (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
873         (ix86_print_operand_punct_valid_p): Likewise.
874         (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
875         UNSPEC_BNDMK_ADDR.
876         (ix86_class_likely_spilled_p): Add bound regs support.
877         (ix86_hard_regno_mode_ok): Likewise.
878         (x86_order_regs_for_local_alloc): Likewise.
879         (ix86_bnd_prefixed_insn_p): New.
880         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
881         (FIXED_REGISTERS): Add bound registers.
882         (CALL_USED_REGISTERS): Likewise.
883         (REG_ALLOC_ORDER): Likewise.
884         (HARD_REGNO_NREGS): Likewise.
885         (TARGET_MPX): New.
886         (VALID_BND_REG_MODE): New.
887         (FIRST_BND_REG): New.
888         (LAST_BND_REG): New.
889         (reg_class): Add BND_REGS.
890         (REG_CLASS_NAMES): Likewise.
891         (REG_CLASS_CONTENTS): Likewise.
892         (BND_REGNO_P): New.
893         (ANY_BND_REG_P): New.
894         (BNDmode): New.
895         (HI_REGISTER_NAMES): Add bound registers.
896         * config/i386/i386.md (UNSPEC_BNDMK): New.
897         (UNSPEC_BNDMK_ADDR): New.
898         (UNSPEC_BNDSTX): New.
899         (UNSPEC_BNDLDX): New.
900         (UNSPEC_BNDLDX_ADDR): New.
901         (UNSPEC_BNDCL): New.
902         (UNSPEC_BNDCU): New.
903         (UNSPEC_BNDCN): New.
904         (UNSPEC_MPX_FENCE): New.
905         (BND0_REG): New.
906         (BND1_REG): New.
907         (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
908         (length_immediate): Likewise.
909         (prefix_0f): Likewise.
910         (memory): Likewise.
911         (prefix_rep): Check for bnd prefix.
912         (length_nobnd): New.
913         (length): Use length_nobnd if specified.
914         (BND): New.
915         (bnd_ptr): New.
916         (BNDCHECK): New.
917         (bndcheck): New.
918         (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
919         (*jcc_2): Likewise.
920         (jump): Likewise.
921         (simple_return_internal): Likewise.
922         (simple_return_pop_internal): Likewise.
923         (*indirect_jump): Add MPX bnd prefix.
924         (*tablejump_1): Likewise.
925         (simple_return_internal_long): Likewise.
926         (simple_return_indirect_internal): Likewise.
927         (<mode>_mk): New.
928         (*<mode>_mk): New.
929         (mov<mode>): New.
930         (*mov<mode>_internal_mpx): New.
931         (<mode>_<bndcheck>): New.
932         (*<mode>_<bndcheck>): New.
933         (<mode>_ldx): New.
934         (*<mode>_ldx): New.
935         (<mode>_stx): New.
936         (*<mode>_stx): New.
937         * config/i386/predicates.md (lea_address_operand): Rename to...
938         (address_no_seg_operand): ... this.
939         (address_mpx_no_base_operand): New.
940         (address_mpx_no_index_operand): New.
941         (bnd_mem_operator): New.
942         * config/i386/i386.opt (mmpx): New.
943         * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
944         * doc/rtl.texi Add documentation for BND32mode and BND64mode.
946         Reverted:
947         2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
948         * mode-classes.def (MODE_POINTER_BOUNDS): New.
949         * tree.def (POINTER_BOUNDS_TYPE): New.
950         * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
951         (POINTER_BOUNDS_MODE): New.
952         (make_pointer_bounds_mode): New.
953         * machmode.h (POINTER_BOUNDS_MODE_P): New.
954         * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
955         (layout_type): Support POINTER_BOUNDS_TYPE.
956         * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
957         * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
958         (type_contains_placeholder_1): Likewise.
959         * tree.h (POINTER_BOUNDS_TYPE_P): New.
960         * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
961         * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
963 2013-11-29  Richard Biener  <rguenther@suse.de>
965         PR middle-end/59338
966         * tree-cfg.c (verify_expr): Restrict bounds verification of
967         BIT_FIELD_REF arguments to non-aggregate typed base objects.
969 2013-11-29  Richard Biener  <rguenther@suse.de>
971         PR tree-optimization/59334
972         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Fix bug
973         in previous commit.
975 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
976             Richard Biener  <rguenther@suse.de>
978         PR lto/59326
979         * omp-low.c (simd_clone_create): Return NULL if for definition
980         !cgraph_function_with_gimple_body_p (old_node).  Call cgraph_get_body
981         before calling cgraph_function_versioning.
982         (expand_simd_clones): Look for "omp declare simd" attribute first.
983         Don't check targetm.simd_clone.compute_vecsize_and_simdlen here.
984         Punt if node->global.inlined_to.
985         (pass_omp_simd_clone::gate): Also enable if in_lto_p && !flag_wpa.
986         Disable pass if targetm.simd_clone.compute_vecsize_and_simdlen is NULL.
987         * lto-streamer-out.c (hash_tree): Handle OMP_CLAUSE.
989 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
991         PR lto/59326
992         * tree-core.h (enum omp_clause_schedule_kind): Add
993         OMP_CLAUSE_SCHEDULE_LAST.
994         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_LAST.
995         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_LAST.
996         (enum omp_clause_map_kind): Add OMP_CLAUSE_MAP_LAST.
997         (enum omp_clause_proc_bind_kind): Add OMP_CLAUSE_PROC_BIND_LAST.
998         * lto-streamer-out.c (lto_is_streamable): Allow streaming OMP_CLAUSE.
999         (DFS_write_tree_body): Handle OMP_CLAUSE.
1000         * tree-streamer-out.c (pack_ts_omp_clause_value_fields): New function.
1001         (streamer_pack_tree_bitfields): Call it for OMP_CLAUSE.
1002         (write_ts_omp_clause_tree_pointers): New function.
1003         (streamer_write_tree_body): Call it for OMP_CLAUSE.
1004         (streamer_write_tree_header): For OMP_CLAUSE stream OMP_CLAUSE_CODE.
1005         * tree-streamer-in.c (unpack_ts_omp_clause_value_fields): New function.
1006         (unpack_value_fields): Call it for OMP_CLAUSE.
1007         (streamer_alloc_tree): Handle OMP_CLAUSE.
1008         (lto_input_ts_omp_clause_tree_pointers): New function.
1009         (streamer_read_tree_body): Call it for OMP_CLAUSE.
1011 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
1013         * doc/implement-c.texi: Document C11 implementation-defined
1014         behavior.  Refer to -ffp-contract=fast for contraction behavior.
1015         * doc/invoke.texi (-std=c99, std=c11): Update description of
1016         completeness.
1017         (-std=gnu99): Don't mention as future default.
1018         (-std=gnu11): Mention as intended future default.
1019         * doc/standards.texi: Update descriptions of C99 and C11 support.
1020         Limit statement about C99 facilities for freestanding
1021         implementations to some platforms only.
1023 2013-11-28  Jakub Jelinek  <jakub@redhat.com>
1025         PR middle-end/59327
1026         * cfgexpand.c (expand_used_vars): Avoid warning on 32-bit HWI hosts.
1028 2013-11-28  Vladimir Makarov  <vmakarov@redhat.com>
1030         PR target/57293
1031         * ira.h (ira_setup_eliminable_regset): Remove parameter.
1032         * ira.c (ira_setup_eliminable_regset): Ditto.  Add
1033         SUPPORTS_STACK_ALIGNMENT for crtl->stack_realign_needed.
1034         Don't call lra_init_elimination.
1035         (ira): Call ira_setup_eliminable_regset without arguments.
1036         * loop-invariant.c (calculate_loop_reg_pressure): Remove argument
1037         from ira_setup_eliminable_regset call.
1038         * gcse.c (calculate_bb_reg_pressure): Ditto.
1039         * haifa-sched.c (sched_init): Ditto.
1040         * lra.h (lra_init_elimination): Remove the prototype.
1041         * lra-int.h (lra_insn_recog_data): New member sp_offset.  Move
1042         used_insn_alternative upper.
1043         (lra_eliminate_regs_1): Add one more parameter.
1044         (lra-eliminate): Ditto.
1045         * lra.c (lra_invalidate_insn_data): Set sp_offset.
1046         (setup_sp_offset): New.
1047         (lra_process_new_insns): Call setup_sp_offset.
1048         (lra): Add argument to lra_eliminate calls.
1049         * lra-constraints.c (get_equiv_substitution): Rename to get_equiv.
1050         (get_equiv_with_elimination): New.
1051         (process_addr_reg): Call get_equiv_with_elimination instead of
1052         get_equiv_substitution.
1053         (equiv_address_substitution): Ditto.
1054         (loc_equivalence_change_p): Ditto.
1055         (loc_equivalence_callback, lra_constraints): Ditto.
1056         (curr_insn_transform): Ditto.  Print the sp offset
1057         (process_alt_operands): Prevent stack pointer reloads.
1058         (lra_constraints): Remove one argument from lra_eliminate call.
1059         Move it up.  Mark used hard regs bfore it.  Use
1060         get_equiv_with_elimination instead of get_equiv_substitution.
1061         * lra-eliminations.c (lra_eliminate_regs_1): Add parameter and
1062         assert for param values combination.  Use sp offset.  Add argument
1063         to lra_eliminate_regs_1 calls.
1064         (lra_eliminate_regs): Add argument to lra_eliminate_regs_1 call.
1065         (curr_sp_change): New static var.
1066         (mark_not_eliminable): Add parameter.  Update curr_sp_change.
1067         Don't prevent elimination to sp if we can calculate its change.
1068         Pass the argument to mark_not_eliminable calls.
1069         (eliminate_regs_in_insn): Add a parameter.  Use sp offset.  Add
1070         argument to lra_eliminate_regs_1 call.
1071         (update_reg_eliminate): Move calculation of hard regs for spill
1072         lower.  Switch off lra_in_progress temporarily to generate regs
1073         involved into elimination.
1074         (lra_init_elimination): Rename to init_elimination.  Make it
1075         static.  Set up insn sp offset, check the offsets at the end of BBs.
1076         (process_insn_for_elimination): Add parameter.  Pass its value to
1077         eliminate_regs_in_insn.
1078         (lra_eliminate): : Add parameter.  Pass its value to
1079         process_insn_for_elimination.  Add assert for param values
1080         combination.  Call init_elimination.  Don't update offsets in
1081         equivalence substitutions.
1082         * lra-spills.c (assign_mem_slot): Don't call lra_eliminate_regs_1
1083         for created stack slot.
1084         (remove_pseudos): Call lra_eliminate_regs_1 before changing memory
1085         onto stack slot.
1087 2013-11-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1089         * config/arm/iterators.md (vrint_conds): New int attribute.
1090         * config/arm/vfp.md (<vrint_pattern><SDF:mode>2): Set conds attribute.
1091         (smax<mode>3): Likewise.
1092         (smin<mode>3): Likewise.
1094 2013-11-28  Richard Sandiford  <rdsandiford@googlemail.com>
1096         * tree-core.h (tree_base): Document use of static_flag for SSA_NAME.
1097         * tree.h (SSA_NAME_ANTI_RANGE_P, SSA_NAME_RANGE_TYPE): New macros.
1098         * tree-ssanames.h (set_range_info): Add range_type argument.
1099         (duplicate_ssa_name_range_info): Likewise.
1100         * tree-ssanames.c (set_range_info): Take the range type as argument
1101         and store it in SSA_NAME_ANTI_RANGE_P.
1102         (duplicate_ssa_name_range_info): Likewise.
1103         (get_range_info): Use SSA_NAME_ANTI_RANGE_P.
1104         (set_nonzero_bits): Update call to set_range_info.
1105         (duplicate_ssa_name_fn): Update call to duplicate_ssa_name_range_info.
1106         * tree-ssa-copy.c (fini_copy_prop): Likewise.
1107         * tree-vrp.c (remove_range_assertions): Update call to set_range_info.
1108         (vrp_finalize): Likewise, passing anti-ranges directly.
1110 2013-11-28  Richard Biener  <rguenther@suse.de>
1112         PR tree-optimization/59330
1113         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
1114         and fix delayed marking of free calls not necessary.
1116 2013-11-28  Andrew MacLeod  <amacleod@redhat.com>
1118         * tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to
1119         is_gimple_reg_type.
1120         * ipa-prop.c (determine_known_aggregate_parts): Likewise.
1122 2013-11-28  Terry Guo  <terry.guo@arm.com>
1124         * config/arm/arm.c (v7m_extra_costs): New table.
1125         (arm_v7m_tune): Use it.
1127 2013-11-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1129         * config/sol2.h (TIME_LIBRARY): Define.
1131 2013-11-28  Richard Biener  <rguenther@suse.de>
1133         PR lto/59323
1134         * lto-streamer-out.c (tree_is_indexable): TYPE_DECLs and
1135         CONST_DECLs in function context are not indexable.
1137 2013-11-28  Chung-Ju Wu  <jasonwucj@gmail.com>
1139         * config/nds32/nds32.c (nds32_rtx_costs): Adjust MULT cost if it is
1140         not optimized for size.
1142 2013-11-28  Jakub Jelinek  <jakub@redhat.com>
1144         * cfgexpand.c (struct stack_vars_data): Add asan_base and asan_alignb
1145         fields.
1146         (expand_stack_vars): For -fsanitize=address, use (and set initially)
1147         data->asan_base as base for vars and update asan_alignb.
1148         (expand_used_vars): Initialize data.asan_base and data.asan_alignb.
1149         Pass them to asan_emit_stack_protection.
1150         * asan.c (asan_detect_stack_use_after_return): New variable.
1151         (asan_emit_stack_protection): Add pbase and alignb arguments.
1152         Implement use after return sanitization.
1153         * asan.h (asan_emit_stack_protection): Adjust prototype.
1154         (ASAN_STACK_MAGIC_USE_AFTER_RET, ASAN_STACK_RETIRED_MAGIC): Define.
1156 2013-11-28  Sergey Ostanevich  <sergos.gnu@gmail.com>
1158         * common.opt: Introduced a new option -fsimd-cost-model.
1159         * doc/invoke.texi: Introduced a new openmp-simd warning and
1160         a new -fsimd-cost-model option.
1161         * tree-vectorizer.h (unlimited_cost_model): Interface updated
1162         to rely on the particular loop info.
1163         * tree-vect-data-refs.c (vect_peeling_hash_insert): Ditto.
1164         (vect_peeling_hash_choose_best_peeling): Ditto.
1165         (vect_enhance_data_refs_alignment): Ditto.
1166         * tree-vect-slp.c (vect_slp_analyze_bb_1): Ditto.
1167         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Ditto
1168         plus added openmp-simd warining.
1170 2013-11-27  H.J. Lu  <hongjiu.lu@intel.com>
1172         PR rtl-optimization/59311
1173         * dwarf2cfi.c (dwf_regno): Assert reg isn't pseudo register.
1174         * lra-spills.c (spill_pseudos): Handle REG_XXX notes.
1176 2013-11-27  Eric Botcazou  <ebotcazou@adacore.com>
1178         * var-tracking.c (track_expr_p): Do not track declarations for parts
1179         of tracked parameters.
1180         (add_stores): Do not track values for tracked parameters passed in
1181         multiple locations.
1182         (vt_get_decl_and_offset): Handle PARALLEL.
1183         (vt_add_function_parameter): Handle parameters with incoming PARALLEL.
1185 2013-11-27  Jeff Law  <law@redhat.com>
1187         * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
1188         clobber the loop structure thread_block was unsuccessful.  If
1189         thread_block was unsuccessful, cleanup appropriately.
1191 2013-11-27  Chen Liqin <liqin.gcc@gmail.com>
1193         * config/score/score.h (REG_CLASS_FROM_LETTER): Delete.
1194         (score_char_to_class): Likewise.
1196 2013-11-27  Kenneth Zadeck  <zadeck@naturalbridge.com>
1198         * fold-const.c (int_const_binop_1): Make INT_MIN % -1 return 0 with
1199         the overflow bit set.
1201 2013-11-27  Richard Biener  <rguenther@suse.de>
1203         PR middle-end/58723
1204         * cgraphbuild.c (build_cgraph_edges): Do not build edges
1205         for internal calls.
1206         (rebuild_cgraph_edges): Likewise.
1207         * ipa-inline-analysis.c (estimate_function_body_sizes):
1208         Skip internal calls.
1209         * tree-inline.c (estimate_num_insns): Estimate size of internal
1210         calls as 0.
1211         (gimple_expand_calls_inline): Do not try inline-expanding
1212         internal calls.
1213         * lto-streamer-in.c (input_cfg): Stream loop safelen,
1214         force_vect and simduid.
1215         (input_struct_function_base): Stream has_force_vect_loops
1216         and has_simduid_loops.
1217         (input_function): Adjust.
1218         * lto-streamer-out.c (output_cfg): Stream loop safelen,
1219         force_vect and simduid.
1220         (output_struct_function_base): Stream has_force_vect_loops
1221         and has_simduid_loops.
1223 2013-11-27  Kai Tietz  <ktietz@redhat.com>
1225         * config/i386/winnt.c (i386_pe_section_type_flags): Use const
1226         pointer cast.
1228 2013-11-27  Kugan Vivekanandarajah  <kuganv@linaro.org>
1230         * doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
1231         * doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate.
1233 2013-11-27  Marek Polacek  <polacek@redhat.com>
1235         PR sanitizer/59306
1236         * ubsan.c (instrument_null): Use gimple_store_p/gimple_assign_load_p
1237         instead of walk_gimple_op.
1238         (ubsan_pass): Adjust.  Call instrument_null only if SANITIZE_NULL.
1240 2013-11-27  Aldy Hernandez  <aldyh@redhat.com>
1241             Jakub Jelinek  <jakub@redhat.com>
1243         * cgraph.h (enum cgraph_simd_clone_arg_type): New.
1244         (struct cgraph_simd_clone_arg, struct cgraph_simd_clone): New.
1245         (struct cgraph_node): Add simdclone and simd_clones fields.
1246         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen,
1247         ix86_simd_clone_adjust, ix86_simd_clone_usable): New functions.
1248         (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
1249         TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Define.
1250         * doc/tm.texi.in (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
1251         TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Add.
1252         * doc/tm.texi: Regenerated.
1253         * ggc.h (ggc_alloc_cleared_simd_clone_stat): New function.
1254         * ipa-cp.c (determine_versionability): Fail if "omp declare simd"
1255         attribute is present.
1256         * omp-low.c: Include pretty-print.h, ipa-prop.h and tree-eh.h.
1257         (simd_clone_vector_of_formal_parm_types): New function.
1258         (simd_clone_struct_alloc, simd_clone_struct_copy,
1259         simd_clone_vector_of_formal_parm_types, simd_clone_clauses_extract,
1260         simd_clone_compute_base_data_type, simd_clone_mangle,
1261         simd_clone_create, simd_clone_adjust_return_type,
1262         create_tmp_simd_array, simd_clone_adjust_argument_types,
1263         simd_clone_init_simd_arrays): New functions.
1264         (struct modify_stmt_info): New type.
1265         (ipa_simd_modify_stmt_ops, ipa_simd_modify_function_body,
1266         simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone): New
1267         functions.
1268         (pass_data_omp_simd_clone): New variable.
1269         (pass_omp_simd_clone): New class.
1270         (make_pass_omp_simd_clone): New function.
1271         * passes.def (pass_omp_simd_clone): New.
1272         * target.def (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
1273         TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): New target hooks.
1274         * target.h (struct cgraph_node, struct cgraph_simd_node): Declare.
1275         * tree-core.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Document.
1276         * tree.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Define.
1277         * tree-pass.h (make_pass_omp_simd_clone): New prototype.
1278         * tree-vect-data-refs.c: Include cgraph.h.
1279         (vect_analyze_data_refs): Inline by hand find_data_references_in_loop
1280         and find_data_references_in_bb, if find_data_references_in_stmt
1281         fails, still allow calls to #pragma omp declare simd functions
1282         in #pragma omp simd loops unless they contain data references among
1283         the call arguments or in lhs.
1284         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
1285         calls with no lhs.
1286         (vect_transform_loop): Allow NULL STMT_VINFO_VECTYPE for calls
1287         without lhs.
1288         * tree-vectorizer.h (enum stmt_vec_info_type): Add
1289         call_simd_clone_vec_info_type.
1290         (struct _stmt_vec_info): Add simd_clone_fndecl field.
1291         (STMT_VINFO_SIMD_CLONE_FNDECL): Define.
1292         * tree-vect-stmts.c: Include tree-ssa-loop.h,
1293         tree-scalar-evolution.h and cgraph.h.
1294         (vectorizable_call): Handle calls without lhs.  Assert
1295         !stmt_can_throw_internal instead of failing for it.  Don't update
1296         EH stuff.
1297         (struct simd_call_arg_info): New.
1298         (vectorizable_simd_clone_call): New function.
1299         (vect_transform_stmt): Call it.
1300         (vect_analyze_stmt): Likewise.  Allow NULL STMT_VINFO_VECTYPE for
1301         calls without lhs.
1302         * ipa-prop.c (ipa_add_new_function): Only call ipa_analyze_node
1303         if cgraph_function_with_gimple_body_p is true.
1305 2013-11-27  Tom de Vries  <tom@codesourcery.com>
1306             Marc Glisse  <marc.glisse@inria.fr>
1308         PR middle-end/59037
1309         * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
1310         BIT_FIELD_REF.
1311         * gimple-fold.c (gimple_fold_indirect_ref): Same.
1312         * tree-cfg.c (verify_expr): Give error if BIT_FIELD_REF is
1313         out-of-bounds.
1315 2013-11-27  Eric Botcazou  <ebotcazou@adacore.com>
1317         PR middle-end/59138
1318         * expr.c (emit_group_store): Don't write past the end of the structure.
1319         (store_bit_field): Fix formatting.
1321 2013-11-27  Richard Biener  <rguenther@suse.de>
1323         PR tree-optimization/59288
1324         * tree-vect-loop.c (get_initial_def_for_induction): Do not
1325         re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
1327 2013-11-27  Marek Polacek  <polacek@redhat.com>
1329         * ubsan.c (ubsan_type_descriptor): If varpool_get_node returns NULL
1330         for a decl, recreate that decl.  Save into the hash table VAR_DECLs
1331         rather than ADDR_EXPRs.
1333 2013-11-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1335         * config/ia64/hpux.h (TARGET_LIBC_HAS_FUNCTION): Fix typo.
1337 2013-11-26  David Malcolm  <dmalcolm@redhat.com>
1339         * gengtype.c (struct seen_tag): New.
1340         (already_seen_tag): New.
1341         (mark_tag_as_seen): New.
1342         (walk_subclasses): Support having multiple subclasses using the
1343         same tag by tracking which tags have already been seen, and using
1344         this to avoid adding duplicate cases to the "switch" statement.
1345         The call to already_seen_tag introduces an O(N^2) when running
1346         gengtype on N, the number of tags, due to the repeated linear
1347         search, but currently max(N) is relatively small (the number of
1348         GSS codes, which is 26).
1349         (walk_type): Pass in a seen_tag for use by the walk_subclasses
1350         recursion.
1352         * gimple.def (GIMPLE_OMP_ATOMIC_STORE, GIMPLE_OMP_RETURN): Rename
1353         underlying GSS values for these codes (from GSS_OMP_ATOMIC_STORE to
1354         GSS_OMP_ATOMIC_STORE_LAYOUT) to make clear that although
1355         GIMPLE_OMP_RETURN happens to share the data layout of
1356         GIMPLE_OMP_ATOMIC_STORE, they are not otherwise related.
1357         (GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TARGET): Likewise, rename
1358         underlying GSS value from GSS_OMP_PARALLEL to
1359         GSS_OMP_PARALLEL_LAYOUT to make clear that these gimple codes are
1360         not directly related; they merely share in-memory layout.
1361         (GIMPLE_OMP_SINGLE, GIMPLE_OMP_TEAMS): Likewise, rename GSS values
1362         for these two codes from GSS_OMP_SINGLE to GSS_OMP_SINGLE_LAYOUT.
1364         * gsstruct.def (GSS_OMP_PARALLEL, gimple_statement_omp_parallel):
1365         Rename to...
1366         (GSS_OMP_PARALLEL_LAYOUT, gimple_statement_omp_parallel_layout):
1367         ...these.
1368         (GSS_OMP_SINGLE, gimple_statement_omp_single): Rename to...
1369         (GSS_OMP_SINGLE_LAYOUT, gimple_statement_omp_single_layout): ...these.
1370         (GSS_OMP_ATOMIC_STORE, gimple_statement_omp_atomic_store): Rename to...
1371         (GSS_OMP_ATOMIC_STORE_LAYOUT, gimple_statement_omp_atomic_store):
1372         ...these.
1374         * gimple.h (gimple_statement_resx): New subclass of
1375         gimple_statement_eh_ctrl, with the invariant that
1376         stmt->code == GIMPLE_RESX.
1377         (gimple_statement_eh_dispatch): New subclass of
1378         gimple_statement_eh_ctrl, with the invariant that
1379         stmt->code == GIMPLE_EH_DISPATH.
1381         (gimple_statement_omp_parallel): The existing class expressed
1382         a layout (GSS_OMP_PARALLEL), but the codes with that layout
1383         are not all related, so it makes more sense for this class to
1384         express a *code* (GIMPLE_OMP_PARALLEL).  GSS_OMP_PARALLEL has
1385         been renamed to GSS_OMP_PARALLEL_LAYOUT to express this, so
1386         rename the existing gimple_statement_omp_parallel class to...
1387         (gimple_statement_omp_parallel_layout): ...this, expressing
1388         a statement of structure layout GSS_OMP_PARALLEL_LAYOUT.
1389         (gimple_statement_omp_taskreg): New subclass of
1390         gimple_statement_omp_parallel_layout, expressing the invariant
1391         that the code is one of GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK,
1392         as used by the various gimple_omp_taskreg_ accessors.
1393         (gimple_statement_omp_parallel): Reintroduce this class, this time
1394         as a subclass of gimple_statement_omp_taskreg to express the
1395         invariant stmt->code == GIMPLE_OMP_PARALLEL.
1396         (gimple_statement_omp_target) New class, subclassing
1397         gimple_statement_omp_parallel_layout, to express the invariant
1398         stmt->code == GIMPLE_OMP_TARGET.
1399         (gimple_statement_omp_task): Update to inherit from
1400         gimple_statement_omp_taskreg rather than
1401         gimple_statement_omp_parallel.
1403         (gimple_statement_omp_single): Rename to...
1404         (gimple_statement_omp_single_layout): ...this, expressing the
1405         invariant that the layout is GSS_OMP_SINGLE_LAYOUT.
1406         (gimple_statement_omp_single): ...and reintroduce this name as
1407         a subclass of gimple_statement_omp_single_layout, expressing
1408         the invariant that code == GIMPLE_OMP_SINGLE.
1409         (gimple_statement_omp_teams): New class, subclassing
1410         gimple_statement_omp_single_layout, for the code GIMPLE_OMP_TEAMS.
1412         (gimple_statement_omp_atomic_store): Rename to...
1413         (gimple_statement_omp_atomic_store_layout): ...this, expressing
1414         the invariant that the layout is GSS_OMP_ATOMIC_STORE_LAYOUT.
1415         (gimple_statement_omp_atomic_store): ...and reintroduce this
1416         name as a subclass of gimple_statement_omp_atomic_store_layout
1417         with code == GIMPLE_OMP_ATOMIC_STORE.
1418         (gimple_statement_omp_return): New class, subclassing
1419         gimple_statement_omp_atomic_store_layout for the code
1420         GIMPLE_OMP_RETURN.
1422         (is_a_helper <gimple_statement_eh_ctrl>::test): Delete.
1423         (is_a_helper <gimple_statement_resx>::test): New.
1424         (is_a_helper <gimple_statement_eh_dispatch>::test): New.
1425         (is_a_helper <gimple_statement_omp_atomic_store>::test): Only
1426         check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
1427         (is_a_helper <gimple_statement_omp_return>::test): New.
1428         (is_a_helper <gimple_statement_omp_taskreg>::test): New.
1429         (is_a_helper <gimple_statement_omp_parallel>::test): Only check
1430         for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
1431         GIMPLE_OMP_TARGET.
1432         (is_a_helper <gimple_statement_omp_target>::test): New.
1433         (is_a_helper <gimple_statement_omp_single>::test): Only check
1434         for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
1435         (is_a_helper <gimple_statement_omp_teams>::test): New.
1437         (is_a_helper <const gimple_statement_eh_ctrl>::test): Delete.
1438         (is_a_helper <const gimple_statement_resx>::test): New.
1439         (is_a_helper <const gimple_statement_eh_dispatch>::test): New.
1440         (is_a_helper <const gimple_statement_omp_atomic_store>::test): Only
1441         check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
1442         (is_a_helper <const gimple_statement_omp_return>::test): New.
1443         (is_a_helper <const gimple_statement_omp_taskreg>::test): New.
1444         (is_a_helper <const gimple_statement_omp_parallel>::test): Only
1445         check for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
1446         GIMPLE_OMP_TARGET.
1447         (is_a_helper <const gimple_statement_omp_target>::test): New.
1448         (is_a_helper <const gimple_statement_omp_single>::test): Only
1449         check for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
1450         (is_a_helper <const gimple_statement_omp_teams>::test): New.
1452         (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
1453         gimple_omp_return_lhs_ptr): Replace bogus downcasts to
1454         gimple_statement_omp_atomic_store with downcasts to
1455         gimple_statement_omp_return, thus requiring that the code be
1456         GIMPLE_OMP_RETURN.
1457         (gimple_resx_region, gimple_resx_set_region): Replace bogus
1458         downcasts to gimple_statement_eh_ctrl with downcasts to
1459         gimple_statement_resx, thus requiring that the code be GIMPLE_RESX.
1460         (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region):
1461         Replace bogus downcasts to const gimple_statement_eh_ctrl with
1462         downcasts to gimple_statement_eh_dispatch, thus requiring that
1463         the code be GIMPLE_EH_DISPATCH.
1464         (gimple_omp_taskreg_clauses, gimple_omp_taskreg_clauses_ptr)
1465         gimple_omp_taskreg_set_clauses, gimple_omp_taskreg_child_fn,
1466         gimple_omp_taskreg_child_fn_ptr, gimple_omp_taskreg_set_child_fn,
1467         gimple_omp_taskreg_data_arg, gimple_omp_taskreg_data_arg_ptr,
1468         gimple_omp_taskreg_set_data_arg): Replace bogus downcasts to
1469         gimple_statement_omp_parallel with downcasts to
1470         gimple_statement_omp_taskreg, thus requiring that the code be
1471         either GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK.
1472         (gimple_omp_target_clauses, gimple_omp_target_clauses_ptr
1473         gimple_omp_target_set_clauses, gimple_omp_target_child_fn
1474         gimple_omp_target_child_fn_ptr, gimple_omp_target_set_child_fn
1475         gimple_omp_target_data_arg, gimple_omp_target_data_arg_ptr
1476         gimple_omp_target_set_data_arg): Replace bogus downcasts to
1477         gimple_statement_omp_parallel with downcasts to
1478         gimple_statement_omp_target, thus requiring that the code be
1479         GIMPLE_OMP_TARGET.
1480         (gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr
1481         gimple_omp_teams_set_clauses): Replace bogus downcasts to
1482         gimple_statement_omp_single with downcasts to
1483         gimple_statement_omp_teams, thus requiring that the code be
1484         GIMPLE_OMP_TEAMS.
1486         * gimple.c (gimple_build_resx): Fix bogus as_a<> to use
1487         gimple_statement_resx.
1488         (gimple_build_eh_dispatch): Fix bogus as_a<> to use
1489         gimple_statement_eh_dispatch.
1491 2013-11-26  Jakub Jelinek  <jakub@redhat.com>
1493         PR tree-optimization/59014
1494         * tree-vrp.c (register_edge_assert_for_1): Don't look
1495         through conversions from non-integral types or through
1496         narrowing conversions.
1498         PR target/59229
1499         * config/i386/i386.c (device_alg): Fix up formatting.
1500         (ix86_expand_set_or_movmem): Handle max_size < epilogue_size_needed
1501         similarly to count && count < epilogue_size_needed.  Fix up
1502         comment typo.
1503         * builtins.c (determine_block_size): Fix comment typo.
1505         PR sanitizer/59258
1506         * ubsan.c (ubsan_source_location): Don't add any location
1507         to ADDR_EXPR in the ctor.  Revert 2013-11-22 change.
1508         (ubsan_create_data): Strip block info from LOC.
1510         PR middle-end/59273
1511         * tree-vect-generic.c (optimize_vector_constructor): Don't optimize
1512         if there isn't optab handler for the corresponding vector PLUS_EXPR.
1514         PR rtl-optimization/59166
1515         * ira.c (find_moveable_pseudos): Use DF_REF_REAL_LOC instead of
1516         DF_REF_LOC in validate_change call.
1517         (split_live_ranges_for_shrink_wrap): Likewise.
1519         PR middle-end/59150
1520         * omp-low.c (lower_rec_input_clause): For reduction with placeholder
1521         of references to constant size types in simd loops, defer emitting
1522         initializer for the new_var, emit it later on only if not using
1523         SIMD arrays for it.
1525         PR middle-end/59152
1526         * omp-low.c (expand_omp_for_static_chunk): Don't set loop->latch
1527         for the inner loop if collapse_bb is non-NULL.
1528         (expand_omp_simd): Use cont_bb rather than e->dest as latch.
1530 2013-11-26  Yufeng Zhang  <yufeng.zhang@arm.com>
1532         * config/arm/arm.c (arm_legitimize_address): Check xop1 is not
1533         a constant immediate before force_reg.
1535 2013-11-26  Richard Biener  <rguenther@suse.de>
1537         PR tree-optimization/59245
1538         * tree-vrp.c (set_value_range): Assert that we don't have
1539         overflowed constants (but our infinities).
1540         (set_value_range_to_value): Drop all overflow flags.
1541         (vrp_visit_phi_node): Likewise.
1542         (vrp_visit_assignment_or_call): Use set_value_range_to_value
1543         to set a constant range.
1545 2013-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1547         PR target/59290
1548         * config/arm/arm.md (*zextendsidi_negsi): New pattern.
1549         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost correctly
1550         for zero_extend case.
1552 2013-11-26  H.J. Lu  <hongjiu.lu@intel.com>
1554         PR bootstrap/55552
1555         * configure.ac (install_gold_as_default): New.  Set to yes for
1556         --disable-ld or --enable-gold=default.
1557         (gcc_cv_ld_gold_srcdir): New.
1558         (gcc_cv_ld): Also check in-tree gold if install_gold_as_default is yes.
1559         (ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
1560         (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
1561         * configure: Regenerated.
1563         * exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
1564         (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
1565         (original) [collect-ld && -fuse-ld=bfd]: Set to
1566         $ORIGINAL_LD_BFD_FOR_TARGET.
1567         (original) [collect-ld && -fuse-ld=gold]: Set to
1568         $ORIGINAL_LD_GOLD_FOR_TARGET.
1569         (dir) [collect-ld && ../gold/ld-new]: Set to gold.
1570         (fast_install) [collect-ld && ../gold/ld-new]: Set to yes.
1572 2013-11-26  Terry Guo  <terry.guo@arm.com>
1574         * config/arm/arm.c (require_pic_register): Handle high pic base
1575         register for thumb-1.
1576         (arm_load_pic_register): Also initialize high pic base register.
1577         * doc/invoke.texi: Update documentation for option -mpic-register.
1579 2013-11-26  Oleg Endo  <olegendo@gcc.gnu.org>
1581         PR target/58314
1582         PR target/50751
1583         * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
1584         Prefix function names with 'sh_'.  Make them non-static.
1585         * config/sh/sh-protos.h (sh_disp_addr_displacement,
1586         sh_max_mov_insn_displacement): Add declarations.
1587         * config/sh/constraints.md (Q): Reject QImode.
1588         (Sdd): Use match_code "mem".
1589         (Snd): Fix erroneous matching of non-memory operands.
1590         * config/sh/predicates.md (short_displacement_mem_operand): New
1591         predicate.
1592         (general_movsrc_operand): Disallow PC relative QImode loads.
1593         * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
1594         (*movqi, *movhi): Merge both insns into...
1595         (*mov<mode>): ... this new insn.  Replace generic 'm' constraints with
1596         'Snd' and 'Sdd' constraints.  Calculate insn length dynamically based
1597         on the operand types.
1599 2013-11-26  Joern Rennecke  <joern.rennecke@embecosm.com>
1601         * config/epiphany/epiphany.c (epiphany_expand_prologue):
1602         Remove unused variable save_config.
1603         (epiphany_compute_frame_size): Avoid signed/unsigned comparison in
1604         assert.
1606 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
1608         * config/aarch64/arm_neon.h (vtbx1_<psu>8): Emulate behaviour
1609         using other intrinsics.
1610         (vtbx3_<psu>8): Likewise.
1612 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
1614         * config/aarch64/aarch64-builtins.c
1615         (aarch64_types_bsl_p_qualifiers): New.
1616         (aarch64_types_bsl_s_qualifiers): Likewise.
1617         (aarch64_types_bsl_u_qualifiers): Likewise.
1618         (TYPES_BSL_P): Likewise.
1619         (TYPES_BSL_S): Likewise.
1620         (TYPES_BSL_U): Likewise.
1621         (BUILTIN_VALLDIF): Likewise.
1622         (BUILTIN_VDQQH): Likewise.
1623         * config/aarch64/aarch64-simd-builtins.def (simd_bsl): New.
1624         * config/aarch64/aarch64-simd.md
1625         (aarch64_simd_bsl<mode>_internal): Handle more modes.
1626         (aarch64_simd_bsl<mode>): Likewise.
1627         * config/aarch64/arm_neon.h
1628         (vbsl<q>_<fpsu><8,16,32,64): Implement using builtins.
1629         * config/aarch64/iterators.md (VALLDIF): New.
1630         (Vbtype): Handle more modes.
1632 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
1634         * config/aarch64/aarch64-builtins.c
1635         (aarch64_type_qualifiers): Add qualifier_poly.
1636         (aarch64_build_scalar_type): Also build Poly types.
1637         (aarch64_build_vector_type): Likewise.
1638         (aarch64_build_type): Likewise.
1639         (aarch64_build_signed_type): New.
1640         (aarch64_build_unsigned_type): Likewise.
1641         (aarch64_build_poly_type): Likewise.
1642         (aarch64_init_simd_builtins): Also handle Poly types.
1644 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
1646         * config/aarch64/aarch64-builtins.c
1647         (VAR1): Use new naming scheme for aarch64_builtins.
1648         (aarch64_builtin_vectorized_function): Use new aarch64_builtins names.
1650 2013-11-26  Richard Biener  <rguenther@suse.de>
1652         PR tree-optimization/59287
1653         * tree-ssa-structalias.c (get_constraint_for_component_ref):
1654         Remove no longer necessary special-casing of union accesses.
1656 2013-11-26  Richard Biener  <rguenther@suse.de>
1658         * pretty-print.c (output_buffer::~output_buffer): Really
1659         free the obstacks.
1661 2013-11-25  Jeff Law  <law@redhat.com>
1663         * tree-ssa-threadupdate.c (thread_through_all_blocks): Selectively
1664         invalidate loop information.
1666 2013-11-25  Oleg Endo  <olegendo@gcc.gnu.org>
1668         * config/sh/sh.md (doloop_end_split): Add missing SI mode.
1670 2013-11-25  Oleg Endo  <olegendo@gcc.gnu.org>
1672         PR target/53976
1673         PR target/59243
1674         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value): Update
1675         comments.
1676         (sh_optimize_sett_clrt::find_last_ccreg_values): Check stack of
1677         previously visited basic blocks before recursing instead of only one
1678         basic block.
1680 2013-11-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1682         * config/aarch64/aarch64.c (cortexa53_tuning): New struct.
1683         * config/aarch64/aarch64-cores.def (cortex-a53):
1684         Use cortexa53 tuning struct.
1686 2013-11-25  Andrew Macleod  <amacleod@redhat.com>
1688         PR bootstrap/59260
1689         * fold-const.c: Include hash-table.h.
1691 2013-11-25  Marek Polacek  <polacek@redhat.com>
1693         PR sanitizer/59258
1694         * ubsan.c (ubsan_create_data): Increase the size of the fields array.
1696 2013-11-25  Richard Biener  <rguenther@suse.de>
1698         * tree-dfa.c: Remove unused convert.h include.
1700 2013-11-25  Terry Guo  <terry.guo@arm.com>
1702         * doc/invoke.texi (-mslow-flash-data): Document new option.
1703         * config/arm/arm.opt (mslow-flash-data): New option.
1704         * config/arm/arm-protos.h (arm_max_const_double_inline_cost):
1705         Declare it.
1706         * config/arm/arm.h (TARGET_USE_MOVT): Always true when literal pools
1707         are disabled.
1708         (arm_disable_literal_pool): Declare it.
1709         * config/arm/arm.c (arm_disable_literal_pool): New variable.
1710         (arm_option_override): Handle new option.
1711         (thumb2_legitimate_address_p): Don't allow symbol references when
1712         literal pools are disabled.
1713         (arm_max_const_double_inline_cost): New function.
1714         * config/arm/arm.md (types.md): Include it before ...
1715         (use_literal_pool): New attribute.
1716         (enabled): Use new attribute.
1717         (split pattern): Replace symbol+offset with MOVW/MOVT.
1719 2013-11-24  Steven Bosscher  <steven@gcc.gnu.org>
1721         PR bootstrap/59279
1722         Revert previous commit.
1724 2013-11-24  Steven Bosscher  <steven@gcc.gnu.org>
1726         * jump.c (reset_insn_reg_label_operand_notes): New function,
1727         split out from ...
1728         (init_label_info): ... here.  Reset LABEL_NUSES in cfglayout mode.
1729         * cfgcleanup.c (delete_dead_jump_tables_between): New function,
1730         split out from ...
1731         (delete_dead_jumptables): ... here.  Handle cfglayout mode.
1732         (cleanup_cfg): Delete dead jump tables in cfglayout mode if an
1733         expensive CFG cleanup is called for.
1734         * cfgrtl.c (fixup_reorder_chain): Remove BARRIERs from fallthru paths.
1735         (cfg_layout_finalize): Delete dead jump tables before re-building
1736         the insns chain.
1737         * ira.c (ira): Rebuild jump labels *after* deleting unreachable
1738         basic blocks, not before.
1739         * loop-init.c (rtl_loop_done): Call for an expensive CFG cleanup.
1741         * modulo-sched.c (sms_schedule): Do not look for BARRIERs in the
1742         insns chain of a scheduling extended basic block, they cannot appear
1743         there in cfglayout mode.
1745 2013-11-24  Tobias Burnus  <burnus@net-b.de>
1747         * doc/invoke.texi (-fsanitize=leak): Add link to the wiki page.
1749 2013-11-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1751         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
1752         for little endian.
1754 2013-11-24  H.J. Lu  <hongjiu.lu@intel.com>
1756         * graphite-sese-to-poly.c: Don't include extra "expr.h".
1758 2013-11-23  Eric Botcazou  <ebotcazou@adacore.com>
1760         * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
1762 2013-11-23  David Edelson  <dje.gcc@gmail.com>
1763             Andrew Dixie  <andrewd@gentrack.com>
1765         PR target/33704
1766         * config/rs6000/aix.h (COLLECT_SHARED_INIT_FUNC): Define.
1767         (COLLECT_SHARED_FINI_FUNC): Define.
1769         * collect2.c (aix_shared_initname): Declare.
1770         (aix_shared_fininame): Declare.
1771         (symkind): Add SYM_AIXI and SYM_AIXD.
1772         (scanfilter_masks): Add SCAN_AIXI and SCAN_AIXD.
1773         (struct names special): Add GLOBAL__AIXI_ and GLOBAL__AIXD_.
1774         (aixlazy_flag): Parse.
1775         (extract_init_priority): SYM_AIXI and SYM_AIXD have highest priority.
1776         (scan_prog_file, COFF): Handle SYM_AIXI and SYM_AIXD.
1778 2013-11-23  David Edelsohn  <dje.gcc@gmail.com>
1780         * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
1781         (rs6000_xcoff_select_section): Place decls with stricter alignment
1782         into named sections.
1783         (rs6000_xcoff_unique_section): Allow unique sections for
1784         uninitialized data with strict alignment.
1786 2013-11-23  Jakub Jelinek  <jakub@redhat.com>
1788         PR tree-optimization/59154
1789         * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
1790         rhs1 of a cast and new_op is invariant, fold_convert it.
1791         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
1792         simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
1794 2013-11-23  Uros Bizjak  <ubizjak@gmail.com>
1796         PR target/56788
1797         * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
1798         Declare as MULTI_ARG_1_SF instruction.
1799         <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
1800         * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
1801         from *xop_vmfrcz_<mode>.
1802         * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
1803         to merge scalar result with __A.
1804         (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
1805         result with __A.
1807 2013-11-23  Eric Botcazou  <ebotcazou@adacore.com>
1809         * gimplify.h (recalculate_side_effects): Delete.
1810         * gimplify.c (recalculate_side_effects): Make static and add comment.
1812 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
1814         * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
1815         for the destination of a define_peephole2.  Likewise register_operand
1816         rather than arith_reg_operand.  Remove constraints from
1817         define_peephole2s.
1819 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
1821         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
1822         Delete.
1823         (mn10300_store_multiple_operation_p): Declare.
1824         * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
1825         Rename to...
1826         (mn10300_store_multiple_operation_p): ...this and remove mode
1827         argument.
1828         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
1829         Define.
1831 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
1833         * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
1834         (pop_multiple_operation): Delete.
1835         (analyze_push_multiple_operation): Declare.
1836         (analyze_pop_multiple_operation): Declare.
1837         * config/bfin/bfin.c (push_multiple_operation): Rename to...
1838         (analyze_push_multiple_operation): ...this and remove mode argument.
1839         (pop_multiple_operation): Rename to...
1840         (analyze_pop_multiple_operation): ...this and remove mode argument.
1841         * config/bfin/predicates.md (push_multiple_operation): Define.
1842         (pop_multiple_operation): Likewise.
1844 2013-11-23  Alan Modra  <amodra@gmail.com>
1846         * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
1848 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1850         PR sanitizer/59061
1851         * common.opt (static-liblsan): Add.
1852         * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
1853         Define.
1854         * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK.  Renumber
1855         SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
1856         SANITIZE_RETURN.
1857         * opts.c (common_handle_option): Handle -fsanitize=leak.
1858         * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
1859         (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
1860         (LIBUBSAN_EARLY_SPEC): Remove.
1861         (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
1862         (SANITIZER_SPEC): Add -fsanitize=leak handling.
1863         (sanitize_spec_function): Handle %sanitize(leak).
1864         * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
1866 2013-11-22  Aldy Hernandez  <aldyh@redhat.com>
1867             Jakub Jelinek  <jakub@redhat.com>
1869         * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
1870         * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
1871         (ipa_get_vector_of_formal_parm_types): ... this.  No longer static.
1872         (ipa_modify_formal_parameters): Adjust caller.  Remove
1873         synth_parm_prefix argument.  Use operator enum instead of bit fields.
1874         Add assert for properly handling vector of references.  Handle
1875         creating brand new parameters.
1876         (ipa_modify_call_arguments): Use operator enum instead of bit
1877         fields.
1878         (ipa_combine_adjustments): Same.  Assert that IPA_PARM_OP_NEW is not
1879         used.
1880         (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
1881         New functions.
1882         (ipa_dump_param_adjustments): Rename reduction to new_decl.
1883         Use operator enum instead of bit fields.
1884         * ipa-prop.h (enum ipa_parm_op): New.
1885         (struct ipa_parm_adjustment): New field op.  Rename reduction
1886         to new_decl, new_arg_prefix to arg_prefix and remove remove_param
1887         and copy_param.
1888         (ipa_modify_formal_parameters): Remove last argument.
1889         (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
1890         ipa_get_adjustment_candidate): New prototypes.
1891         * tree-sra.c (turn_representatives_into_adjustments): Use operator
1892         enum.  Set arg_prefix.
1893         (get_adjustment_for_base): Use operator enum.
1894         (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
1895         ipa-prop.c.
1896         (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
1897         (ipa_sra_modify_function_body): Same.  No longer static.
1898         (sra_ipa_reset_debug_stmts): Use operator enum.
1899         (modify_function): Do not pass prefix argument.
1901 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1903         * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
1904         (ubsan_pass): Ignore clobber stmts.
1906         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
1907         * opts.c (common_handle_option): Add -fsanitize=return.
1908         * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
1909         or it into SANITIZE_UNDEFINED.
1911         * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
1912         BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
1913         * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
1914         Don't instrument accesses to VAR_DECLs which are known to fit
1915         into their bounds and the vars are known to have shadow bytes
1916         indicating allowed access.
1917         (asan_dynamic_init_call): New function.
1918         (asan_add_global): If vnode->dynamically_initialized,
1919         set __has_dynamic_init to 1 instead of 0.
1920         (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
1921         * asan.h (asan_dynamic_init_call): New prototype.
1922         * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
1924 2013-11-22  Martin Jambor  <mjambor@suse.cz>
1926         PR rtl-optimization/10474
1927         * ira.c (interesting_dest_for_shprep_1): New function.
1928         (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
1929         also check parallels.
1931 2013-11-22  Jeff Law  <law@redhat.com>
1933         * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
1934         NULL for RHS, which we used to invalidate equivalences.
1935         (record_temporary_equivalences_from_phis): New bitmap arguments
1936         and a boolean indicating if we have passed a backedge.  If we
1937         have passed a backedge, then set the appropriate bit in the
1938         bitmaps for the SRC & DEST of PHIs creating equivalences.
1939         (invalidate_equivalences, dummy_simplify): New functions.
1940         (cond_arg_set_in_b): Remove.
1941         (record_temporary_equivalences_from_stmts_at_dest): New bitmap
1942         arguments and a boolean indicating if we have passed a backedge.
1943         If we have passed a backedge, then perform invalidations as needed.
1944         (thread_around_empty_blocks): If we have seen a backedge, then
1945         use the dummy simplify routine.
1946         (thread_through_normal_block): Likewise.  Pass bitmaps and
1947         backedge status to children.  Do not pessimize so much when
1948         traversing backedges in the CFG.
1949         (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
1950         If we have seen a backedge, then use the dummy simplify routine.
1951         Do not pessimize so much when traversing backedges.
1953 2013-11-22  Hans-Peter Nilsson  <hp@axis.com>
1955         * config/cris/cris.c (cris_atomic_align_for_mode): New function.
1956         (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
1958 2013-11-22  Yuri Rumyantsev  <ysrumyan@gmail.com>
1960         * config/i386/i386.c (processor_alias_table): Enable PTA_AES,
1961         PTA_PCLMUL and PTA_RDRND for Silvermont.
1962         * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
1963         for Silvermont.
1965         * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
1967 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
1969         * hooks.h (hook_uint_mode_0): Add Prototype.
1970         * hooks.c (hook_uint_mode_0): New default function.
1971         * target.def (atomic_align_for_mode): New target hook.
1972         * tree.c (build_atomic_base): Add alignment override parameter.
1973         (build_common_tree_nodes): Use atomic alignment override.
1974         * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
1975         * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
1977 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
1979         * gimple.h: Remove all includes.
1980         (recalculate_side_effects): Move prototype to gimplify.h.
1981         * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
1982         * gengtype.c (open_base_files): Add gimple.h include list.
1983         * gimplify.h (recalculate_side_effects): Relocate prototype here.
1984         * gimple.c: Adjust include list.
1985         (recalculate_side_effects): Move to gimplify.c.
1986         * gimplify.c: Adjust include list.
1987         (recalculate_side_effects): Relocate from gimple.c.
1988         * alias.c: Add required include files removed from gimple.h.
1989         * asan.c: Likewise.
1990         * builtins.c: Likewise.
1991         * calls.c: Likewise.
1992         * cfgexpand.c: Likewise.
1993         * cfgloop.c: Likewise.
1994         * cfgloopmanip.c: Likewise.
1995         * cgraphbuild.c: Likewise.
1996         * cgraph.c: Likewise.
1997         * cgraphclones.c: Likewise.
1998         * cgraphunit.c: Likewise.
1999         * cilk-common.c: Likewise.
2000         * data-streamer.c: Likewise.
2001         * data-streamer-in.c: Likewise.
2002         * data-streamer-out.c: Likewise.
2003         * dse.c: Likewise.
2004         * dwarf2out.c: Likewise.
2005         * emit-rtl.c: Likewise.
2006         * except.c: Likewise.
2007         * expr.c: Likewise.
2008         * fold-const.c: Likewise.
2009         * function.c: Likewise.
2010         * gimple-builder.c: Likewise.
2011         * gimple-expr.c: Likewise.
2012         * gimple-fold.c: Likewise.
2013         * gimple-iterator.c: Likewise.
2014         * gimple-low.c: Likewise.
2015         * gimple-pretty-print.c: Likewise.
2016         * gimple-ssa-isolate-paths.c: Likewise.
2017         * gimple-ssa-strength-reduction.c: Likewise.
2018         * gimple-streamer-in.c: Likewise.
2019         * gimple-streamer-out.c: Likewise.
2020         * gimple-walk.c: Likewise.
2021         * gimplify-me.c: Likewise.
2022         * graphite-blocking.c: Likewise.
2023         * graphite.c: Likewise.
2024         * graphite-clast-to-gimple.c: Likewise.
2025         * graphite-dependences.c: Likewise.
2026         * graphite-interchange.c: Likewise.
2027         * graphite-optimize-isl.c: Likewise.
2028         * graphite-poly.c: Likewise.
2029         * graphite-scop-detection.c: Likewise.
2030         * graphite-sese-to-poly.c: Likewise.
2031         * internal-fn.c: Likewise.
2032         * ipa.c: Likewise.
2033         * ipa-cp.c: Likewise.
2034         * ipa-devirt.c: Likewise.
2035         * ipa-inline-analysis.c: Likewise.
2036         * ipa-inline.c: Likewise.
2037         * ipa-profile.c: Likewise.
2038         * ipa-prop.c: Likewise.
2039         * ipa-pure-const.c: Likewise.
2040         * ipa-reference.c: Likewise.
2041         * ipa-split.c: Likewise.
2042         * ipa-utils.c: Likewise.
2043         * langhooks.c: Likewise.
2044         * lto-cgraph.c: Likewise.
2045         * lto-compress.c: Likewise.
2046         * lto-opts.c: Likewise.
2047         * lto-section-in.c: Likewise.
2048         * lto-section-out.c: Likewise.
2049         * lto-streamer.c: Likewise.
2050         * lto-streamer-in.c: Likewise.
2051         * lto-streamer-out.c: Likewise.
2052         * omp-low.c: Likewise.
2053         * opts-global.c: Likewise.
2054         * passes.c: Likewise.
2055         * predict.c: Likewise.
2056         * profile.c: Likewise.
2057         * sese.c: Likewise.
2058         * stmt.c: Likewise.
2059         * stor-layout.c: Likewise.
2060         * symtab.c: Likewise.
2061         * targhooks.c: Likewise.
2062         * toplev.c: Likewise.
2063         * tracer.c: Likewise.
2064         * trans-mem.c: Likewise.
2065         * tree-affine.c: Likewise.
2066         * tree.c: Likewise.
2067         * tree-call-cdce.c: Likewise.
2068         * tree-cfg.c: Likewise.
2069         * tree-cfgcleanup.c: Likewise.
2070         * tree-chrec.c: Likewise.
2071         * tree-complex.c: Likewise.
2072         * tree-data-ref.c: Likewise.
2073         * tree-dfa.c: Likewise.
2074         * tree-eh.c: Likewise.
2075         * tree-emutls.c: Likewise.
2076         * tree-if-conv.c: Likewise.
2077         * tree-inline.c: Likewise.
2078         * tree-into-ssa.c: Likewise.
2079         * tree-loop-distribution.c: Likewise.
2080         * tree-nested.c: Likewise.
2081         * tree-nrv.c: Likewise.
2082         * tree-object-size.c: Likewise.
2083         * tree-outof-ssa.c: Likewise.
2084         * tree-parloops.c: Likewise.
2085         * tree-phinodes.c: Likewise.
2086         * tree-predcom.c: Likewise.
2087         * tree-pretty-print.c: Likewise.
2088         * tree-profile.c: Likewise.
2089         * tree-scalar-evolution.c: Likewise.
2090         * tree-sra.c: Likewise.
2091         * tree-ssa-address.c: Likewise.
2092         * tree-ssa-alias.c: Likewise.
2093         * tree-ssa.c: Likewise.
2094         * tree-ssa-ccp.c: Likewise.
2095         * tree-ssa-coalesce.c: Likewise.
2096         * tree-ssa-copy.c: Likewise.
2097         * tree-ssa-copyrename.c: Likewise.
2098         * tree-ssa-dce.c: Likewise.
2099         * tree-ssa-dom.c: Likewise.
2100         * tree-ssa-dse.c: Likewise.
2101         * tree-ssa-forwprop.c: Likewise.
2102         * tree-ssa-ifcombine.c: Likewise.
2103         * tree-ssa-live.c: Likewise.
2104         * tree-ssa-loop.c: Likewise.
2105         * tree-ssa-loop-ch.c: Likewise.
2106         * tree-ssa-loop-im.c: Likewise.
2107         * tree-ssa-loop-ivcanon.c: Likewise.
2108         * tree-ssa-loop-ivopts.c: Likewise.
2109         * tree-ssa-loop-manip.c: Likewise.
2110         * tree-ssa-loop-niter.c: Likewise.
2111         * tree-ssa-loop-prefetch.c: Likewise.
2112         * tree-ssa-loop-unswitch.c: Likewise.
2113         * tree-ssa-math-opts.c: Likewise.
2114         * tree-ssanames.c: Likewise.
2115         * tree-ssa-operands.c: Likewise.
2116         * tree-ssa-phiopt.c: Likewise.
2117         * tree-ssa-phiprop.c: Likewise.
2118         * tree-ssa-pre.c: Likewise.
2119         * tree-ssa-propagate.c: Likewise.
2120         * tree-ssa-reassoc.c: Likewise.
2121         * tree-ssa-sccvn.c: Likewise.
2122         * tree-ssa-sink.c: Likewise.
2123         * tree-ssa-strlen.c: Likewise.
2124         * tree-ssa-structalias.c: Likewise.
2125         * tree-ssa-tail-merge.c: Likewise.
2126         * tree-ssa-ter.c: Likewise.
2127         * tree-ssa-threadedge.c: Likewise.
2128         * tree-ssa-threadupdate.c: Likewise.
2129         * tree-ssa-uncprop.c: Likewise.
2130         * tree-ssa-uninit.c: Likewise.
2131         * tree-stdarg.c: Likewise.
2132         * tree-streamer.c: Likewise.
2133         * tree-streamer-in.c: Likewise.
2134         * tree-streamer-out.c: Likewise.
2135         * tree-switch-conversion.c: Likewise.
2136         * tree-tailcall.c: Likewise.
2137         * tree-vect-data-refs.c: Likewise.
2138         * tree-vect-generic.c: Likewise.
2139         * tree-vect-loop.c: Likewise.
2140         * tree-vect-loop-manip.c: Likewise.
2141         * tree-vectorizer.c: Likewise.
2142         * tree-vect-patterns.c: Likewise.
2143         * tree-vect-slp.c: Likewise.
2144         * tree-vect-stmts.c: Likewise.
2145         * tree-vrp.c: Likewise.
2146         * tsan.c: Likewise.
2147         * ubsan.c: Likewise.
2148         * value-prof.c: Likewise.
2149         * varpool.c: Likewise.
2150         * var-tracking.c: Likewise.
2151         * vtable-verify.c: Likewise.
2152         * config/darwin.c: Likewise.
2153         * config/aarch64/aarch64-builtins.c: Likewise.
2154         * config/aarch64/aarch64.c: Likewise.
2155         * config/alpha/alpha.c: Likewise.
2156         * config/i386/i386.c: Likewise.
2157         * config/i386/winnt.c: Likewise.
2158         * config/ia64/ia64.c: Likewise.
2159         * config/m32c/m32c.c: Likewise.
2160         * config/mep/mep.c: Likewise.
2161         * config/mips/mips.c: Likewise.
2162         * config/rs6000/rs6000.c: Likewise.
2163         * config/s390/s390.c: Likewise.
2164         * config/sh/sh.c: Likewise.
2165         * config/sparc/sparc.c: Likewise.
2166         * config/spu/spu.c: Likewise.
2167         * config/stormy16/stormy16.c: Likewise.
2168         * config/tilegx/tilegx.c: Likewise.
2169         * config/tilepro/tilepro.c: Likewise.
2170         * config/xtensa/xtensa.c: Likewise.
2172 2013-11-22  Richard Earnshaw  <rearnsha@arm.com>
2174         PR target/59216
2175         * arm.md (negdi_extendsidi): Fix invalid split.
2177 2013-11-22  Alex Velenko  <Alex.Velenko@arm.com>
2179         * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
2180         (vmov_n_f64): Likewise.
2181         (vmov_n_p8): Likewise.
2182         (vmov_n_p16): Likewise.
2183         (vmov_n_s8): Likewise.
2184         (vmov_n_s16): Likewise.
2185         (vmov_n_s32): Likewise.
2186         (vmov_n_s64): Likewise.
2187         (vmov_n_u8): Likewise.
2188         (vmov_n_u16): Likewise.
2189         (vmov_n_u32): Likewise.
2190         (vmov_n_u64): Likewise.
2191         (vmovq_n_f32): Likewise.
2192         (vmovq_n_f64): Likewise.
2193         (vmovq_n_p8): Likewise.
2194         (vmovq_n_p16): Likewise.
2195         (vmovq_n_s8): Likewise.
2196         (vmovq_n_s16): Likewise.
2197         (vmovq_n_s32): Likewise.
2198         (vmovq_n_s64): Likewise.
2199         (vmovq_n_u8): Likewise.
2200         (vmovq_n_u16): Likewise.
2201         (vmovq_n_u32): Likewise.
2202         (vmovq_n_u64): Likewise.
2204 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
2206         * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
2207         vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
2208         (reduc_<sur>plus_<mode>): Factorize V2DI into this.
2209         (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
2210         and also change to float UNSPEC.
2211         (reduc_maxmin_uns>_<mode>): Remove V2DI.
2212         * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
2213         vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
2214         result access for big-endian.
2215         (__LANE0): New macro used to fix up lane access of 'across-lanes'
2216         intrinsics for big-endian.
2217         * config/aarch64/iterators.md (VDQV): Add V2DI.
2218         (VDQV_S): New.
2219         (vp): New mode attribute.
2221 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
2223         * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
2224         vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
2225         big-endian.
2227 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
2229         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
2230         for big-endian element order.
2231         (aarch64_simd_vec_setv2di): Likewise.
2232         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
2233         *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
2234         (vec_extract): Expand using aarch64_get_lane.
2235         * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
2237 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
2239         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
2240         and stores to be ABI compliant.
2242 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
2244         * input.h (input_line): Remove.
2245         (input_filename): Likewise.
2246         (in_system_header): Likewise.
2247         * tree.h (EXPR_LOC_OR_HERE): Remove.
2248         * config/bfin/bfin.c (output_file_start): Remove use of
2249         input_filename macro.
2250         * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
2251         * gimplify.c (internal_get_tmp_var): Likewise.
2252         EXPR_LOC_OR_HERE macro.
2253         (shortcut_cond_expr): Likewise.
2254         * tree-diagnostic.c (diagnostic_report_current_function): Remove
2255         use of input_filename macro.
2256         * tree.c (get_file_function_name): Likewise.
2258 2013-11-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
2260         * store-layout.c (place-field): Fix hwi test and accessor mismatch.
2262 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
2264         * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
2265         (same sized) elements even if the type of the CONSTRUCTOR has
2266         vector mode and target is a REG.
2268 2013-11-22  Richard Biener  <rguenther@suse.de>
2270         Revert
2271         2013-11-21  Richard Biener  <rguenther@suse.de>
2273         * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
2274         nb_iterations_upper_bound by one.
2276 2013-11-22  H.J. Lu  <hongjiu.lu@intel.com>
2278         * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
2279         for Silvermont.
2281         * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
2282         core-avx-i, core-avx2 and slm.
2284 2013-11-22  Eric Botcazou  <ebotcazou@adacore.com>
2286         * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
2288 2013-11-22  Richard Sandiford  <rdsandiford@googlemail.com>
2290         * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
2291         (stzx_24_<mode>): Likewise mra_operand.
2293 2013-11-22  Jeff Law  <law@redhat.com>
2295         * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
2296         (thread_block_1): Do not cancel jump threads which go from
2297         inside a loop, through the header, then back inside the loop.
2298         (bb_ends_with_multiway_branch): New function.
2299         (thread_through_all_blocks): Handle threading cases which start
2300         in a loop through the loop header to a point in the loop.
2302         * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
2303         jump thread path properly.
2305 2013-11-22  Trevor Saunders  <tsaunders@mozilla.com>
2307         * vec.h (auto_vec): New class.
2308         * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
2309         function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
2310         ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
2311         tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
2312         tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
2313         tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
2314         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
2315         tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
2316         appropriate instead of vec for local variables.
2318 2013-11-21  Teresa Johnson  <tejohnson@google.com>
2320         PR target/59233
2321         * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
2322         not understood by old_insns_match_p.
2324 2013-11-21  Bill Schmidt  <wschmidt@vnet.ibm.com>
2326         * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
2327         little endian change.
2328         (vec_pack_sfix_trunc_v2df): Likewise.
2329         (vec_pack_ufix_trunc_v2df): Likewise.
2330         * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
2331         double checking of endianness.
2333 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
2335         * tree-vect-generic.c (optimize_vector_constructor): New function.
2336         (expand_vector_operations_1): Call it.
2338 2013-11-21  Uros Bizjak  <ubizjak@gmail.com>
2340         * config/i386/i386.c (ix86_expand_special_args_builtin): Use
2341         ix86_zero_extend_to_Pmode where appropriate.
2342         (ix86_expand_builtin): Ditto.
2344 2013-11-21  Cary Coutant  <ccoutant@google.com>
2346         * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
2347         (add_linkage_name): Don't add linkage name for -g1.
2348         (decls_for_scope): Process subblocks for -g1.
2349         (dwarf2out_source_line): Output line tables for -g1.
2350         (dwarf2out_finish): Likewise.
2351         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
2352         unused scopes for -g1.
2353         * opts.c (common_handle_option): Handle -g same as -g2.
2354         * doc/invoke.texi: Update description for -g1.
2356 2013-11-21  Peter Bergner  <bergner@vnet.ibm.com>
2358         * doc/extend.texi: Document htm builtins.
2360 2013-11-21  Jeff Law  <law@redhat.com>
2362         PR tree-optimization/59221
2363         * tree-ssa-threadedge.c (thread_across_edge): Properly manage
2364         temporary equivalences when threading through joiner blocks.
2366 2013-11-21  Joseph Myers  <joseph@codesourcery.com>
2368         PR rtl-optimization/55950
2369         * real.c (real_sqrt): Remove function.
2370         * real.h (real_sqrt): Remove prototype.
2371         * simplify-rtx.c (simplify_const_unary_operation): Do not fold
2372         SQRT using real_sqrt.
2374 2013-11-21  Richard Biener  <rguenther@suse.de>
2376         PR tree-optimization/59058
2377         * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
2378         * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
2379         * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
2380         (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
2381         (NITERS_KNOWN_P): Fold into ...
2382         (LOOP_VINFO_NITERS_KNOWN_P): ... this.
2383         (LOOP_VINFO_PEELING_FOR_NITER): Add.
2384         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
2385         Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
2386         (vect_do_peeling_for_alignment): Re-use precomputed niter
2387         instead of re-emitting it.
2388         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2389         Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
2390         * tree-vect-loop.c (vect_get_loop_niters): Use
2391         number_of_latch_executions.
2392         (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
2393         (vect_analyze_loop_form): Simplify.
2394         (vect_analyze_loop_operations): Move epilogue peeling code ...
2395         (vect_analyze_loop_2): ... here and adjust it to compute
2396         LOOP_VINFO_PEELING_FOR_NITER.
2397         (vect_estimate_min_profitable_iters): Use
2398         LOOP_VINFO_PEELING_FOR_ALIGNMENT.
2399         (vect_build_loop_niters): Emit on the preheader.
2400         (vect_generate_tmps_on_preheader): Likewise.
2401         (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
2402         of recomputing it.  Adjust.
2404 2013-11-21  Richard Biener  <rguenther@suse.de>
2406         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
2407         LOC_LINE): Remove wrappers and fix all users.
2408         (struct _loop_vec_info): Remove loop_line_number member.
2409         (LOOP_VINFO_LOC): Remove.
2410         * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
2411         tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
2412         and LOC_LINE.
2414 2013-11-21  Richard Biener  <rguenther@suse.de>
2416         * tree-ssa-forwprop.c (simplify_vce): New function.
2417         (ssa_forward_propagate_and_combine): Call it.
2419 2013-11-21  Richard Biener  <rguenther@suse.de>
2421         * tree-vect-loop-manip.c (vect_build_loop_niters,
2422         vect_generate_tmps_on_preheader): Move ...
2423         * tree-vect-loop.c (vect_build_loop_niters,
2424         vect_generate_tmps_on_preheader): ... here and simplify.
2425         (vect_transform_loop): Call them here and pass down results
2426         to consumers.
2427         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
2428         Get niter variables from caller.
2429         (vect_do_peeling_for_alignment): Likewise.
2430         * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
2431         (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
2432         Adjust prototypes.
2434 2013-11-21  Richard Biener  <rguenther@suse.de>
2436         * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
2437         nb_iterations_upper_bound by one.
2439 2013-11-21  Richard Biener  <rguenther@suse.de>
2441         PR tree-optimization/59058
2442         * tree-loop-distribution.c (struct partition_s): Add plus_one member.
2443         (build_size_arg_loc): Apply niter adjustment here.
2444         (generate_memset_builtin): Adjust.
2445         (generate_memcpy_builtin): Likewise.
2446         (classify_partition): Do not use number_of_exit_cond_executions
2447         but record whether niter needs to be adjusted.
2449 2013-11-21  Eric Botcazou  <ebotcazou@adacore.com>
2451         * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
2452         could throw.
2454 2013-11-21  Oleg Endo  <olegendo@gcc.gnu.org>
2456         PR target/53976
2457         * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
2458         * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
2459         * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
2460         * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
2461         sh_optimize_sett_clrt pass.o to extra_objs.
2463 2013-11-20  David Malcolm  <dmalcolm@redhat.com>
2465         * cfg.c (dump_edge_info): Remove redundant comment.
2466         * cfgcleanup.c (outgoing_edges_match): Reword reference to
2467         EXIT_BLOCK_PTR in comment.
2468         (try_optimize_cfg): Likewise.
2469         * cfgrtl.c (last_bb_in_partition): Likewise.
2470         * cgraph.c (cgraph_node_cannot_return): Likewise.
2471         * function.c (thread_prologue_and_epilogue_insns): Likewise.
2472         * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
2473         * ipa-split.c (consider_split): Likewise.
2474         * profile.c (find_spanning_tree): Likewise.
2475         * sched-int.h (common_sched_info_def.add_block): Likewise.
2476         * dominance.c (calc_dfs_tree_nonrec): Reword references in
2477         comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
2478         * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
2479         in comments to now removed ENTRY_BLOCK_PTR macro.
2480         (tree_forwarder_block_p): Reword reference in comment to
2481         EXIT_BLOCK_PTR.
2482         * tree-inline.c (copy_cfg_body): Reword references in comments to
2483         now removed ENTRY_BLOCK_PTR macro.
2484         * tree-ssa-propagate.c (ssa_prop_init): Likewise.
2485         * tree-scalar-evolution.h ( block_before_loop): Likewise.  Add
2486         a comma to the comment to clarify the meaning.
2488 2013-11-20  Andrew MacLeod  <amacleod@redhat.com>
2490         * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
2491         Move to gimplify.c.
2492         (free_gimplify_stack): Add prototype.
2493         * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
2494         (struct gimplify_ctx): Relocate here.
2495         (gimplify_ctxp): Make static.
2496         (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New.  Manage a
2497         list of struct gimplify_ctx.
2498         (push_gimplify_context): Add default parameters and allocate a struct
2499         from the pool.
2500         (pop_gimplify_context): Free a struct back to the pool.
2501         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
2502         gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
2503         use a local 'struct gimplify_ctx'.
2504         * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
2505         * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
2506         Likewise.
2507         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
2508         lower_omp_ordered, lower_omp_critical, lower_omp_for,
2509         create_task_copyfn, lower_omp_taskreg, lower_omp_target,
2510         lower_omp_teams, execute_lower_omp): Likewise.
2511         * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
2512         * tree-inline.c (optimize_inline_calls): Likewise.
2514 2013-11-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2516         * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
2517         (vsx_extract_<mode>): Likewise.
2518         (*vsx_extract_<mode>_one_le): New LE variant on
2519         *vsx_extract_<mode>_zero.
2520         (vsx_extract_v4sf): Adjust for little endian.
2522 2013-11-20  Vladimir Makarov  <vmakarov@redhat.com>
2524         PR rtl-optimization/59133
2525         * lra.c (expand_reg_data): Add new argument.  Set up ALL_REGS for
2526         new pseudos.
2527         (lra_create_new_reg_with_unique_value): Pass new argument value.
2528         (lra_emit_add, lra_emit_move): Ditto.
2529         * lra-constraints.c (in_class_p): Add check for move for a new insn.
2530         (change_class): Rename to lra_change_class.  Move to lra-int.h.
2531         (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
2532         change_class.
2533         (process_addr_reg, process_addr): Ditto.
2534         (curr_insn_transform): Ditto.  Add check on old pseudo for
2535         optional reload.
2536         * lra-int.h (lra_get_regno_hard_regno): Move below.
2537         (lra_change_class): Renamed change_class from lra.c.
2539 2013-11-20  David Malcolm  <dmalcolm@redhat.com>
2541         * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
2542         the children of a NULL pointer.
2544 2013-11-20  Robert Suchanek  <Robert.Suchanek@imgtec.com>
2546         * lra.c (lra): Set lra_in_progress before check_rtl call.
2547         * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
2548         adding clobber regs when LRA is running.
2550 2013-11-20  Maciej W. Rozycki  <macro@codesourcery.com>
2552         * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
2553         restriction for ISA_MIPS32R2.
2554         (ISA_HAS_LXC1_SXC1): New macro.
2555         (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
2556         (ISA_HAS_NMADD4_NMSUB4): Likewise.
2557         (ISA_HAS_FP_RECIP_RSQRT): Likewise.
2558         (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
2559         * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
2560         ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
2561         (*<ANYF:storex>_<P:mode>): Likewise.
2563 2013-11-20  Maciej W. Rozycki  <macro@codesourcery.com>
2565         * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
2566         * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
2567         ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
2568         * config/mips/mips.md (recip_condition): Remove mode attribute.
2569         (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
2570         <recip_condition>.
2571         (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
2573 2013-11-20  Eric Botcazou  <ebotcazou@adacore.com>
2575         PR target/59207
2576         * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
2577         Make sure neg2_ovf is set before being used.
2579 2013-11-20  Basile Starynkevitch  <basile@starynkevitch.net>
2581         * plugin.def: Add comment about register_callback and
2582         invoke_plugin_callbacks_full.
2584         * plugin.c (register_callback, invoke_plugin_callbacks_full):
2585         Handle PLUGIN_INCLUDE_FILE event.
2587 2013-11-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2589         * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
2590         allow subregs of TDmode in FPRs of smaller size in little-endian.
2591         (rs6000_split_multireg_move): When splitting an access to TDmode
2592         in FPRs, do not use simplify_gen_subreg.
2594 2013-11-20  Joseph Myers  <joseph@codesourcery.com>
2596         PR middle-end/21718
2597         * real.c: Remove comment about decimal string conversion and
2598         rounding errors.
2599         (real_from_string): Use MPFR to convert nonzero decimal constant
2600         to REAL_VALUE_TYPE.
2602 2013-11-20  Eric Botcazou  <ebotcazou@adacore.com>
2604         * config/arm/arm.c (arm_dwarf_register_span): Take into account the
2605         endianness of the D registers for the legacy encodings.
2607 2013-11-20  Richard Earnshaw  <rearnsha@arm.com>
2609         PR rtl-optimization/54300
2610         * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
2611         outputs in a single-set are killed from the value chains.
2613 2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
2615         * cgraph.h (varpool_node): Add need_bounds_init field.
2616         * lto-cgraph.c (lto_output_varpool_node): Output
2617         need_bounds_init value.
2618         (input_varpool_node): Read need_bounds_init value.
2619         * varpool.c (dump_varpool_node): Dump need_bounds_init field.
2621 2013-11-20  Jan Hubicka  <jh@suse.cz>
2623         * opts.c (finish_options): Imply -ffat-lto-objects with
2624         -fno-use-linker-plugin.
2625         * common.opt (fuse-linker-plugin): Add var.
2627 2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
2629         * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
2630         * dwarf2out.c (gen_subprogram_die): Ignore bound args.
2631         (gen_type_die_with_usage): Skip pointer bounds.
2632         (dwarf2out_global_decl): Likewise.
2634 2013-11-20  James Greenhalgh  <james.greenhalgh@arm.com>
2636         * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
2637         from all insns.
2639 2013-11-20  Yuri Rumyantsev  <ysrumyan@gmail.com>
2641         PR target/57756
2642         * config/i386/i386.c (ix86_option_override_internal): Add missed
2643         argument prefix for 'ix86_fpmath'.
2644         * config/i386/ssemath.h: Add missed definition of
2645         TARGET_FPMATH_DEFAULT_P macros.
2647 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
2648             Mike Stump  <mikestump@comcast.net>
2649             Richard Sandiford  <rdsandiford@googlemail.com>
2651         * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
2652         instead of TREE_INT_CST_LOW, in cases where there is a protecting
2653         tree_fits_shwi_p or tree_fits_uhwi_p.
2654         * builtins.c (fold_builtin_powi): Likewise.
2655         * config/epiphany/epiphany.c (epiphany_special_round_type_align):
2656         Likewise.
2657         * dbxout.c (dbxout_symbol): Likewise.
2658         * expr.c (expand_expr_real_1): Likewise.
2659         * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
2660         (fold_binary_loc): Likewise.
2661         * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
2662         * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
2663         * omp-low.c (lower_omp_for_lastprivate): Likewise.
2664         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
2665         * stor-layout.c (compute_record_mode): Likewise.
2666         * tree-cfg.c (verify_expr): Likewise.
2667         * tree-dfa.c (get_ref_base_and_extent): Likewise.
2668         * tree-pretty-print.c (dump_array_domain): Likewise.
2669         * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
2670         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
2671         * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
2672         * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
2673         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
2674         * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
2675         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
2676         (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
2677         (vn_reference_lookup_3, simplify_binary_expression): Likewise.
2678         * tree-ssa-structalias.c (bitpos_of_field): Likewise.
2679         (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
2680         (create_variable_info_for_1): Likewise.
2681         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
2682         (vect_verify_datarefs_alignment): Likewise.
2683         (vect_analyze_data_ref_accesses): Likewise.
2684         (vect_prune_runtime_alias_test_list): Likewise.
2685         * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
2687 2013-11-20  Richard Sandiford  <rdsandiford@googlemail.com>
2689         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
2690         overflow.  Use tree_to_shwi.
2692 2013-11-20  Richard Sandiford  <rdsandiford@googlemail.com>
2694         * fold-const.c (fold_binary_loc): Use unsigned rather than signed
2695         HOST_WIDE_INTs when folding (x >> c) << c.
2697 2013-11-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2698             Dominik Vogt  <vogt@linux.vnet.ibm.com>
2700         * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
2701         int comparisons with an out of range condition code.
2702         (s390_optimize_nonescaping_tx): Skip empty BBs.
2703         Generate the new tbegin RTX when removing the FPR clobbers (with
2704         two SETs).
2705         (s390_expand_tbegin): Fix the retry loop counter.  Copy CC to the
2706         result before doing the retry calculations.
2707         (s390_init_builtins): Make tbegin "returns_twice" and tabort
2708         "noreturn".
2709         * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
2710         the TDB setting part of an tbegin.
2711         ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
2712         ("tx_assist"): Set unused argument to an immediate zero instead of
2713         loading zero into a GPR and pass it as argument.
2714         * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
2715         Remove inline and related attributes.
2716         (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
2717         (__TM_is_illegal, __TM_is_footprint_exceeded)
2718         (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
2720 2013-11-20  Richard Biener  <rguenther@suse.de>
2722         PR lto/59035
2723         * lto-opts.c (lto_write_options): Write defaults only if
2724         they were not explicitely specified.  Also write
2725         -ffp-contract default.
2726         * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
2727         conservatively.
2728         (run_gcc): Pass through -ffp-contract.
2730 2013-11-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2732         * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
2734 2013-11-20  James Greenhalgh  <james.greenhalgh@arm.com>
2736         * gcc/config/aarch64/aarch64-builtins.c
2737         (aarch64_simd_itype): Remove.
2738         (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
2739         (VAR1): Use qualifiers.
2740         (aarch64_build_scalar_type): New.
2741         (aarch64_build_vector_type): Likewise.
2742         (aarch64_build_type): Likewise.
2743         (aarch64_init_simd_builtins): Refactor, remove special cases,
2744         consolidate main loop.
2745         (aarch64_simd_expand_args): Likewise.
2747 2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>
2749         PR c/53001
2750         * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
2752 2013-11-19  Miro Kropacek  <miro.kropacek@gmail.com>
2754         * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
2756 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
2758         * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
2759         to "vec<>" instances.
2760         (build_pretty_printer): Register the vec<>* prettyprinter.
2762 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
2764         * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
2765         (GdbSubprinter.handles_type): New.
2766         (GdbSubprinterTypeList): New subclass of GdbSubprinter.
2767         (GdbSubprinterRegex): New subclass of GdbSubprinter.
2768         (GdbPrettyPrinters.add_printer): Remove in favor of...
2769         (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
2770         (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
2771         (GdbPrettyPrinters.__call__): Update search for subprinter
2772         to use handles_type method.
2773         (build_pretty_printer): Update registration of subprinters to
2774         use the new API above, supporting multiple spelling of each type,
2775         and allowing for future regex-based subprinters.
2777 2013-11-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2779         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
2780         V16QI vector splat case for little endian.
2782 2013-11-19  Jeff Law  <law@redhat.com>
2784         * tree-ssa-threadedge.c (thread_across_edge): After threading
2785         through a joiner, allow threading a normal block requiring duplication.
2787         * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
2788         jump threading requests that would muck up the loop structures.
2790         * tree-ssa-threadupdate.c: Fix trailing whitespace.
2791         * tree-ssa-threadupdate.h: Likewise.
2793 2013-11-19  Mike Stump  <mikestump@comcast.net>
2795         * gdbinit.in: Add pmz to print out mpz values.
2797 2013-11-20  Jan Hubicka  <jh@suse.cz>
2799         * common.opt (ffat-lto-objects): Disable by default.
2800         * doc/invoke.texi (fat-lto-objects): Update documentation.
2801         * opts.c: Enable fat-lto-objects on lto plugin disable setups.
2803 2013-11-19  Martin Jambor  <mjambor@suse.cz>
2805         PR rtl-optimization/59099
2806         * ira.c (find_moveable_pseudos): Put back various analyses from ira()
2807         here.
2808         (ira): Move init_reg_equiv and call to
2809         split_live_ranges_for_shrink_wrap up, remove analyses around call
2810         to find_moveable_pseudos.
2812 2013-11-20  Alan Modra  <amodra@gmail.com>
2814         * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
2815         * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
2816         to strict alignment on older processors when little-endian.
2817         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
2818         for ELFv2.
2820 2013-11-19  Teresa Johnson  <tejohnson@google.com>
2822         * common/config/i386/i386-common.c: Enable
2823         -freorder-blocks-and-partition at -O2 and up for x86.
2824         * doc/invoke.texi: Update -freorder-blocks-and-partition default.
2825         * opts.c (finish_options): Only warn if
2826         -freorder-blocks-and-partition was set on command line.
2828 2013-11-19  Sriraman Tallam  <tmsriram@google.com>
2830         * final.c (final_scan_insn): Emit a label for the split
2831         cold function part.  Label name is formed by suffixing
2832         the original function name with "cold".
2834 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
2836         * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
2837         (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
2838         (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
2839         (EXIT_BLOCK_PTR_FOR_FN): ...this.
2840         (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
2841         cfun be explicit.
2842         (EXIT_BLOCK_PTR): Likewise.
2843         (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
2844         (FOR_ALL_BB_FN): Update for renaming of
2845         "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
2847         * cfg.c (init_flow): Likewise.
2848         (check_bb_profile): Likewise.
2849         * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
2850         * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
2851         * cfghooks.c (account_profile_record): Likewise.
2852         * cfgloop.c (init_loops_structure): Likewise.
2853         * cgraphbuild.c (record_eh_tables): Likewise.
2854         (compute_call_stmt_bb_frequency): Likewise.
2855         * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
2856         * lto-streamer-in.c (input_cfg): Likewise.
2857         * predict.c (maybe_hot_frequency_p): Likewise.
2858         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2859         * tree-inline.c (initialize_cfun): Likewise.
2860         (copy_cfg_body): Likewise.
2861         (copy_body): Likewise.
2862         (tree_function_versioning): Likewise.
2864         * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
2865         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2866         (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
2867         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
2868         macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2869         (connect_traces): Likewise.
2870         (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
2871         (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
2872         (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
2873         macro.
2874         (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
2875         EXIT_BLOCK_PTR.
2876         (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
2877         (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
2878         (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
2879         (rotate_loop): Likewise.
2880         * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
2881         * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2882         EXIT_BLOCK_PTR.
2883         (alloc_aux_for_edges): Likewise.
2884         (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
2885         (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
2886         EXIT_BLOCK_PTR.
2887         (compact_blocks): Likewise.
2888         (clear_edges): Likewise.
2889         * cfganal.c (single_pred_before_succ_order): Remove usage of
2890         ENTRY_BLOCK_PTR macro.
2891         (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
2892         (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
2893         (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
2894         (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
2895         (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
2896         EXIT_BLOCK_PTR.
2897         (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
2898         (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
2899         EXIT_BLOCK_PTR.
2900         (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
2901         (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
2902         (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2903         (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2904         (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2905         (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
2906         EXIT_BLOCK_PTR.
2907         (print_edge_list): Likewise.
2908         (create_edge_list): Likewise.
2909         (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
2910         (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2911         EXIT_BLOCK_PTR.
2912         * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
2913         macro.
2914         (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
2915         (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2916         * cfgcleanup.c (delete_unreachable_blocks): Likewise.
2917         (try_optimize_cfg): Likewise.
2918         (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
2919         (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
2920         (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
2921         (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
2922         (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
2923         (try_forward_edges): Likewise.
2924         (try_simplify_condjump): Likewise.
2925         * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
2926         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2927         (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
2928         (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
2929         EXIT_BLOCK_PTR.
2930         (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
2931         (expand_gimple_tailcall): Likewise.
2932         * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
2933         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2934         (tidy_fallthru_edges): Likewise.
2935         (verify_flow_info): Likewise.
2936         * cfgloop.c (flow_bb_inside_loop_p): Likewise.
2937         (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
2938         (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
2939         (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2940         (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
2941         (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
2942         (get_loop_body_in_dom_order): Likewise.
2943         (get_loop_body): Likewise.
2944         * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
2945         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2946         * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
2947         macro.
2948         (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
2949         (fix_bb_placement): Likewise.
2950         * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
2951         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2952         (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
2953         (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
2954         EXIT_BLOCK_PTR.
2955         (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
2956         (cfg_layout_can_merge_blocks_p): Remove uses of macros:
2957         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2958         (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
2959         macro.
2960         (fixup_fallthru_exit_predecessor): Remove uses of macros:
2961         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2962         (fixup_reorder_chain): Likewise.
2963         (relink_block_chain): Likewise.
2964         (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
2965         (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
2966         (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
2967         (force_one_exit_fallthru): Likewise.
2968         (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
2969         EXIT_BLOCK_PTR.
2970         (rtl_verify_edges): Likewise.
2971         (commit_edge_insertions): Likewise.
2972         (commit_one_edge_insertion): Likewise.
2973         (rtl_split_edge): Likewise.
2974         (force_nonfallthru_and_redirect): Likewise.
2975         (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
2976         (skip_insns_after_block): Likewise.
2977         (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
2978         EXIT_BLOCK_PTR.
2979         (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
2980         (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
2981         EXIT_BLOCK_PTR.
2982         (contains_no_active_insn_p): Likewise.
2983         (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2984         (entry_of_function): Likewise.
2985         (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
2986         (fixup_new_cold_bb): Likewise.
2987         (patch_jump_insn): Likewise.
2988         (try_redirect_by_replacing_jump): Likewise.
2989         (block_label): Likewise.
2990         (could_fall_through): Likewise.
2991         (can_fallthru): Likewise.
2992         * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
2993         ENTRY_BLOCK_PTR macro.
2994         (rebuild_cgraph_edges): Likewise.
2995         * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
2996         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2997         (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
2998         * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
2999         (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
3000         (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
3001         (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
3002         (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
3003         macro.
3004         (reg_nonzero_bits_for_combine): Likewise.
3005         (set_nonzero_bits_and_sign_copies): Likewise.
3006         (combine_instructions): Likewise.
3007         * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
3008         EXIT_BLOCK_PTR.
3009         (bypass_conditional_jumps): Likewise.
3010         (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
3011         (find_implicit_sets): Likewise.
3012         (cprop_jump): Likewise.
3013         * cse.c (cse_cc_succs): Likewise.
3014         (cse_find_path): Likewise.
3015         * df-problems.c (df_lr_confluence_0): Likewise.
3016         * df-scan.c (df_entry_block_defs_collect): Remove usage of
3017         ENTRY_BLOCK_PTR macro.
3018         (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
3019         * dominance.c (iterate_fix_dominators): Remove usage of
3020         ENTRY_BLOCK_PTR macro.
3021         (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3022         (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
3023         (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
3024         EXIT_BLOCK_PTR.
3025         (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
3026         macro.
3027         (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
3028         EXIT_BLOCK_PTR.
3029         * domwalk.c (cmp_bb_postorder): Likewise.
3030         * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
3031         * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
3032         macro.
3033         (sjlj_emit_function_enter): Likewise.
3034         * final.c (compute_alignments): Likewise.
3035         * function.c (thread_prologue_and_epilogue_insns): Remove uses of
3036         macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3037         (reposition_prologue_and_epilogue_notes): Remove usage of
3038         EXIT_BLOCK_PTR macro.
3039         (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
3040         EXIT_BLOCK_PTR.
3041         (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
3042         (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
3043         * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
3044         (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
3045         (compute_code_hoist_vbeinout): Likewise.
3046         (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
3047         (pre_expr_reaches_here_p_work): Likewise.
3048         * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
3049         (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
3050         EXIT_BLOCK_PTR.
3051         * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
3052         ENTRY_BLOCK_PTR macro.
3053         * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
3054         macro.
3055         * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
3056         ENTRY_BLOCK_PTR macro.
3057         * graphite-scop-detection.c (build_scops): Likewise.
3058         (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
3059         (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
3060         * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
3061         macro.
3062         (unlink_bb_notes): Likewise.
3063         (create_check_block_twin): Likewise.
3064         (init_before_recovery): Likewise.
3065         (sched_extend_bb): Likewise.
3066         (priority): Likewise.
3067         * hw-doloop.c (reorder_loops): Likewise.
3068         (discover_loop): Likewise.
3069         * ifcvt.c (dead_or_predicable): Remove uses of macros:
3070         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3071         (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
3072         (block_has_only_trap): Likewise.
3073         (cond_exec_find_if_block): Likewise.
3074         (merge_if_block): Likewise.
3075         * ipa-inline-analysis.c (param_change_prob): Remove usage of
3076         ENTRY_BLOCK_PTR macro.
3077         (record_modified): Likewise.
3078         * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
3079         EXIT_BLOCK_PTR macro.
3080         (local_pure_const): Likewise.
3081         * ipa-split.c (split_function): Remove uses of macros:
3082         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3083         (find_split_points): Likewise.
3084         (consider_split): Likewise.
3085         (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
3086         (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
3087         * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
3088         * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
3089         * ira-emit.c (entered_from_non_parent_p): Remove usage of
3090         ENTRY_BLOCK_PTR macro.
3091         (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
3092         * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
3093         * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
3094         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3095         * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
3096         macro.
3097         (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
3098         EXIT_BLOCK_PTR.
3099         (compute_farthest): Likewise.
3100         (compute_available): Likewise.
3101         (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
3102         (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
3103         EXIT_BLOCK_PTR.
3104         (compute_earliest): Likewise.
3105         (compute_antinout_edge): Likewise.
3106         * loop-iv.c (simplify_using_initial_values): Remove usage of
3107         ENTRY_BLOCK_PTR macro.
3108         * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
3109         macro.
3110         * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
3111         macro.
3112         * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
3113         macro.
3114         * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
3115         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3116         * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
3117         macro.
3118         * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
3119         macro.
3120         * lto-streamer-out.c (output_cfg): Likewise.
3121         * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
3122         EXIT_BLOCK_PTR.
3123         (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
3124         * mode-switching.c (optimize_mode_switching): Likewise.
3125         (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
3126         * modulo-sched.c (rest_of_handle_sms): Likewise.
3127         (canon_loop): Likewise.
3128         * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
3129         * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
3130         of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3131         * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
3132         macro.
3133         (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
3134         (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
3135         (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
3136         (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
3137         (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
3138         (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
3139         (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
3140         (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
3141         (gimple_predict_edge): Likewise.
3142         (probably_never_executed): Likewise.
3143         * profile.c (find_spanning_tree): Remove uses of macros:
3144         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3145         (branch_prob): Likewise.
3146         (compute_branch_probabilities): Likewise.
3147         (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
3148         (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
3149         (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
3150         (set_bb_counts): Likewise.
3151         (correct_negative_edge_counts): Likewise.
3152         (get_exec_counts): Likewise.
3153         (instrument_values): Likewise.
3154         (instrument_edges): Likewise.
3155         * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
3156         EXIT_BLOCK_PTR.
3157         (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
3158         (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
3159         (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
3160         (reg_to_stack): Likewise.
3161         * regs.h (REG_N_SETS): Likewise.
3162         * reload.c (find_dummy_reload): Likewise.
3163         (combine_reloads): Likewise.
3164         (push_reload): Likewise.
3165         * reload1.c (has_nonexceptional_receiver): Remove usage of
3166         EXIT_BLOCK_PTR macro.
3167         * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
3168         macro.
3169         (find_basic_block): Likewise.
3170         * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
3171         (schedule_ebbs): Likewise.
3172         * sched-int.h (sel_sched_p): Likewise.
3173         * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
3174         macro.
3175         (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
3176         (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
3177         EXIT_BLOCK_PTR.
3178         (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
3179         (extend_rgns): Likewise.
3180         (find_single_block_region): Likewise.
3181         * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
3182         ENTRY_BLOCK_PTR macro.
3183         (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
3184         (sel_create_recovery_block): Likewise.
3185         (bb_ends_ebb_p): Likewise.
3186         (sel_bb_end): Likewise.
3187         (sel_bb_head): Likewise.
3188         (free_lv_sets): Likewise.
3189         (init_lv_sets): Likewise.
3190         (tidy_control_flow): Likewise.
3191         (maybe_tidy_empty_bb): Likewise.
3192         * sel-sched-ir.h (_succ_iter_cond): Likewise.
3193         (_succ_iter_start): Likewise.
3194         (sel_bb_empty_or_nop_p): Likewise.
3195         (get_loop_exit_edges_unique_dests): Likewise.
3196         (inner_loop_header_p): Likewise.
3197         * sel-sched.c (create_block_for_bookkeeping): Likewise.
3198         (find_block_for_bookkeeping): Likewise.
3199         * store-motion.c (remove_reachable_equiv_notes): Likewise.
3200         (insert_store): Likewise.
3201         * trans-mem.c (ipa_tm_transform_clone): Remove usage of
3202         ENTRY_BLOCK_PTR macro.
3203         (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
3204         (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
3205         (gate_tm_init): Likewise.
3206         (tm_region_init): Likewise.
3207         * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
3208         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3209         (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
3210         (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
3211         EXIT_BLOCK_PTR.
3212         (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
3213         (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
3214         EXIT_BLOCK_PTR.
3215         (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
3216         macro.
3217         (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
3218         EXIT_BLOCK_PTR.
3219         (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
3220         macro.
3221         (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3222         (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
3223         (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
3224         (build_gimple_cfg): Likewise.
3225         (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
3226         (gimple_can_merge_blocks_p): Likewise.
3227         * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
3228         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3229         * tree-complex.c (update_parameter_components): Remove usage of
3230         ENTRY_BLOCK_PTR macro.
3231         * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
3232         EXIT_BLOCK_PTR macro.
3233         * tree-inline.c (tree_function_versioning): Remove uses of macros:
3234         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3235         (delete_unreachable_blocks_update_callgraph): Likewise.
3236         (initialize_cfun): Likewise.
3237         (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
3238         (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
3239         (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
3240         * tree-into-ssa.c (update_ssa): Likewise.
3241         (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
3242         (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
3243         (rewrite_into_ssa): Likewise.
3244         (rewrite_debug_stmt_uses): Likewise.
3245         * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
3246         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3247         * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
3248         ENTRY_BLOCK_PTR macro.
3249         * tree-scalar-evolution.h (block_before_loop): Likewise.
3250         * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
3251         (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
3252         EXIT_BLOCK_PTR.
3253         (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
3254         macro.
3255         (propagate_dereference_distances): Remove uses of macros:
3256         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3257         (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
3258         macro.
3259         * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
3260         (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
3261         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
3262         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
3263         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3264         (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
3265         (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
3266         (mark_control_dependent_edges_necessary): Remove uses of macros:
3267         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3268         * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
3269         ENTRY_BLOCK_PTR macro.
3270         (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
3271         * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
3272         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3273         (calculate_live_on_exit): Likewise.
3274         (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
3275         (loe_visit_block): Likewise.
3276         * tree-ssa-live.h (live_on_exit): Remove uses of macros:
3277         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3278         (live_on_entry): Likewise.
3279         * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
3280         EXIT_BLOCK_PTR macro.
3281         * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
3282         ENTRY_BLOCK_PTR macro.
3283         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
3284         (bound_difference): Likewise.
3285         * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
3286         of EXIT_BLOCK_PTR macro.
3287         * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
3288         of ENTRY_BLOCK_PTR macro.
3289         * tree-ssa-math-opts.c (register_division_in): Likewise.
3290         * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
3291         * tree-ssa-pre.c (compute_avail): Likewise.
3292         (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
3293         (insert): Remove usage of ENTRY_BLOCK_PTR macro.
3294         * tree-ssa-propagate.c (ssa_prop_init): Likewise.
3295         (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
3296         (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
3297         EXIT_BLOCK_PTR.
3298         (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
3299         * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
3300         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3301         (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
3302         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
3303         (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
3304         * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
3305         (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
3306         (find_pdom): Likewise.
3307         (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
3308         * tree-stdarg.c (reachable_at_most_once): Likewise.
3309         * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
3310         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3311         (eliminate_tail_call): Likewise.
3312         * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
3313         macro.
3314         (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
3315         * var-tracking.c (vt_initialize): Remove uses of macros:
3316         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3317         (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
3318         (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
3319         (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
3320         EXIT_BLOCK_PTR.
3321         * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
3322         macro.
3323         * config/bfin/bfin.c (hwloop_optimize): Likewise.
3324         * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
3325         of EXIT_BLOCK_PTR macro.
3326         * config/arm/arm.c (require_pic_register): Remove usage of
3327         ENTRY_BLOCK_PTR macro.
3328         (arm_r3_live_at_start_p): Likewise.
3329         (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
3330         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
3331         * config/frv/frv.c (frv_optimize_membar_global): Likewise.
3332         * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
3333         ENTRY_BLOCK_PTR macro.
3334         * config/i386/i386.c (ix86_count_insn): Likewise.
3335         (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
3336         (ix86_pad_short_function): Likewise.
3337         (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
3338         (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
3339         (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
3340         (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
3341         (ix86_expand_epilogue): Likewise.
3342         * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
3343         (ia64_expand_prologue): Likewise.
3345 2013-11-19  Catherine Moore  <clm@codesourcery.com>
3347         * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
3348         * config/mips/mips.opt (mfix-rm7000): New option.
3349         * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
3350         * config/mips/mips.c (mips_reorg_process_insns): Disable
3351         noreorder for TARGET_FIX_RM7000.
3353 2013-11-19  Oleg Endo  <olegendo@gcc.gnu.org>
3355         * config/sh/sh-c.c: Fix typo in include of file attribs.h.
3357 2013-11-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3359         * config/arm/arm.c (arm_new_rtx_costs):
3360         Handle narrow mode add-shifts properly.
3361         * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
3362         * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
3363         Declare extern.
3365 2013-11-19  James Greenhalgh  <james.greenhalgh@arm.com>
3367         * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
3369 2013-11-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3371         * config/rs6000/vector.md ("mov<mode>"): Do not call
3372         rs6000_emit_le_vsx_move to move into or out of GPRs.
3373         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
3374         source and destination are not GPR hard regs.
3376 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
3378         * basic-block.h (n_edges_for_function): Rename macro to...
3379         (n_edges_for_fn): ...this.
3380         (n_edges): Eliminate macro as work towards making uses of
3381         cfun be explicit.
3383         * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
3384         to "n_edges_for_fn".
3386         * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
3387         (clear_edges): Likewise.
3388         (free_edge): Likewise.
3389         * cfghooks.c (dump_flow_info): Likewise.
3390         * cprop.c (is_too_expensive): Likewise.
3391         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
3392         * gcse.c (is_too_expensive): Likewise.
3393         (prune_insertions_deletions): Likewise.
3394         * mcf.c (create_fixup_graph): Likewise.
3395         * sched-rgn.c (haifa_find_rgns): Likewise.
3396         * tree-cfg.c (gimple_dump_cfg): Likewise.
3397         * var-tracking.c (variable_tracking_main_1): Likewise.
3399 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3401         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
3402         length lines.
3404 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3406         * config/aarch64/aarch64.md
3407         (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
3409 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3411         * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
3413 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
3415         * varasm.c (align_variable): Give error instead of warning for
3416         unsupported alignment.
3417         (assemble_noswitch_variable): Likewise.
3419 2013-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
3421         * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
3422         cb_file_change.
3424 2013-11-19  Peter Bergner  <bergner@vnet.ibm.com>
3426         * loop-doloop.c (doloop_optimize_loops): Remove unused
3427         loop iterator argument from FOR_EACH_LOOP.
3429 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
3431         Convert gimple types from a union to C++ inheritance.
3432         * Makefile.in (GIMPLE_H): Add dep on is-a.h.
3433         * coretypes.h (union gimple_statement_d): Remove declaration.
3434         (gimple): Convert from being a "union gimple_statement_d *"
3435         to a "struct gimple_statement_base *".
3436         (const_gimple): Likewise (with "const").
3437         * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
3438         (ggc_alloc_cleared_gimple_statement_stat): ...this.
3439         * gimple-pretty-print.c (debug): Change parameter from a
3440         "gimple_statement_d &" to a "gimple_statement_base &".
3441         (debug): Change parameter from a "gimple_statement_d *" to
3442         a "gimple_statement_base *".
3443         * gimple-pretty-print.h (debug): Update declarations as above.
3444         * gimple.c (gimple_alloc_stat): Update for renaming of
3445         ggc_alloc_cleared_gimple_statement_d_stat to
3446         ggc_alloc_cleared_gimple_statement_stat.
3447         * gimple.h: Include "is-a.h" for use by is_a_helper
3448         specializations in followup autogenerated patch.
3449         (struct gimple statement_base): Make this type usable as a base
3450         class by adding "desc", "tag" and "variable_size" to GTY, thus
3451         using opting-in to gengtype's support for simple inheritance.
3452         (gimple_statement_with_ops_base): Convert to a subclass of
3453         gimple_statement_base, dropping initial "gsbase" field.  Note that
3454         this type is abstract, with no GSS_ value, and thus no GTY tag value.
3455         (gimple_statement_with_ops): Convert to a subclass of
3456         gimple_statement_with_ops_base, dropping initial "opbase" field.
3457         Add tag value to GTY marking.  Update marking of op field to
3458         reflect how num_ops field is accessed via inheritance.
3459         (gimple_statement_with_memory_ops_base): Convert to a subclass of
3460         gimple_statement_with_ops_base, dropping initial "opbase" field.
3461         Add tag value to GTY marking.
3462         (gimple_statement_with_memory_ops): Convert to a subclass of
3463         public gimple_statement_with_memory_ops_base, dropping initial
3464         "membase" field.  Add tag value to GTY marking.  Update marking
3465         of op field to reflect how num_ops field is accessed via inheritance.
3466         (gimple_statement_call): Analogous changes that also update the
3467         marking of the "u" union.
3468         (gimple_statement_omp): Convert to a subclass of
3469         gimple_statement_base, dropping initial "gsbase" field, adding
3470         tag value to GTY marking.
3471         (gimple_statement_bind): Likewise.
3472         (gimple_statement_catch): Likewise.
3473         (gimple_statement_eh_filter): Likewise.
3474         (gimple_statement_eh_else): Likewise.
3475         (gimple_statement_eh_mnt): Likewise.
3476         (gimple_statement_phi): Likewise.
3477         (gimple_statement_eh_ctrl): Likewise.
3478         (gimple_statement_try): Likewise.
3479         (gimple_statement_wce): Likewise.
3480         (gimple_statement_asm): Convert to a subclass of
3481         gimple_statement_with_memory_ops_base, dropping initial
3482         "membase" field, adding tag value to GTY marking, and updating
3483         marking of op field.
3484         (gimple_statement_omp_critical): Convert to a subclass of
3485         gimple_statement_omp, dropping initial "omp" field, adding tag
3486         value to GTY marking.
3487         (gimple_statement_omp_for): Likewise.
3488         (gimple_statement_omp_parallel): Likewise.
3489         (gimple_statement_omp_task): Convert to a subclass of
3490         gimple_statement_omp_parallel, dropping initial "par" field,
3491         adding tag value to GTY marking.
3492         (gimple_statement_omp_sections): Convert to a subclass of
3493         gimple_statement_omp, dropping initial "omp" field, adding
3494         tag value to GTY marking.
3495         (gimple_statement_omp_continue): Convert to a subclass of
3496         gimple_statement_base, dropping initial "gsbase" field, adding
3497         tag value to GTY marking.
3498         (gimple_statement_omp_single): Convert to a subclass of
3499         gimple_statement_omp, dropping initial "omp" field, adding
3500         tag value to GTY marking.
3501         (gimple_statement_omp_atomic_load): Convert to a subclass of
3502         gimple_statement_base, dropping initial "gsbase" field, adding
3503         tag value to GTY marking.
3504         (gimple_statement_omp_atomic_store): Convert to a subclass of
3505         gimple_statement_base, dropping initial "gsbase" field, adding
3506         tag value to GTY marking.
3507         (gimple_statement_transaction): Convert to a subclass of
3508         gimple_statement_with_memory_ops_base, dropping initial "gsbase"
3509         field, adding tag value to GTY marking.
3510         (union gimple_statement_d): Remove.
3511         * system.h (CONST_CAST_GIMPLE): Update to use
3512         "struct gimple_statement_base *" rather than
3513         "union gimple_statement_d *".
3514         * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
3515         gimple_statement_d to gimple_statement_base.
3517         * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
3518         (gimple_set_use_ops): Port from union to usage of as_a.
3519         (gimple_set_vuse): Likewise.
3520         (gimple_set_vdef): Likewise.
3521         (gimple_call_internal_fn): Port from union to a static_cast,
3522         given that the type has already been asserted.
3523         (gimple_omp_body_ptr): Port from unchecked union usage to
3524         a static_cast.
3525         (gimple_omp_set_body): Likewise.
3527         * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
3528         gimple types to a true class hierarchy.
3529         (update_call_edge_frequencies): Likewise.
3530         (gsi_insert_seq_nodes_before): Likewise.
3531         (gsi_insert_seq_nodes_after): Likewise.
3532         (gsi_split_seq_after): Likewise.
3533         (gsi_set_stmt): Likewise.
3534         (gsi_split_seq_before): Likewise.
3535         (gsi_remove): Likewise.
3536         * gimple-iterator.h (gsi_one_before_end_p): Likewise.
3537         (gsi_next): Likewise.
3538         (gsi_prev): Likewise.
3539         * gimple-pretty-print.c (dump_gimple_debug): Likewise.
3540         * gimple-ssa.h (gimple_vuse_op): Likewise.
3541         (gimple_vdef_op): Likewise.
3542         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
3543         * gimple-streamer-out.c (output_gimple_stmt): Likewise.
3544         * gimple.c (gimple_set_code): Likewise.
3545         (gimple_alloc_stat): Likewise.
3546         (gimple_set_subcode): Likewise.
3547         (gimple_build_call_internal_1): Likewise.
3548         (gimple_check_failed): Likewise.
3549         (gimple_call_flags): Likewise.
3550         (gimple_set_bb): Likewise.
3551         * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
3552         (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
3553         (is_a_helper <gimple_statement_call> (gimple)): Likewise.
3554         (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
3555         (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
3556         (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
3557         (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
3558         (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
3559         (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
3560         (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
3561         (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
3562         (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
3563         (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
3564         (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
3565         (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
3566         (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
3567         (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
3568         (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
3569         (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
3570         (is_a_helper <gimple_statement_try> (gimple)): Likewise.
3571         (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
3572         (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
3573         (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
3574         (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
3575         (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
3576         (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
3577         Likewise.
3578         (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
3579         Likewise.
3580         (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
3581         Likewise.
3582         (is_a_helper <const gimple_statement_omp_atomic_store>
3583         (const_gimple)): Likewise.
3584         (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
3585         Likewise.
3586         (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
3587         Likewise.
3588         (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
3589         Likewise.
3590         (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
3591         Likewise.
3592         (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
3593         Likewise.
3594         (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
3595         Likewise.
3596         (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
3597         Likewise.
3598         (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
3599         (is_a_helper <const gimple_statement_transaction> (const_gimple)):
3600         Likewise.
3601         (gimple_seq_last): Update for conversion of gimple types to a true
3602         class hierarchy.
3603         (gimple_seq_set_last): Likewise.
3604         (gimple_code): Likewise.
3605         (gimple_bb): Likewise.
3606         (gimple_block): Likewise.
3607         (gimple_set_block): Likewise.
3608         (gimple_location): Likewise.
3609         (gimple_location_ptr): Likewise.
3610         (gimple_set_location): Likewise.
3611         (gimple_no_warning_p): Likewise.
3612         (gimple_set_no_warning): Likewise.
3613         (gimple_set_visited): Likewise.
3614         (gimple_visited_p): Likewise.
3615         (gimple_set_plf): Likewise.
3616         (gimple_plf): Likewise.
3617         (gimple_set_uid): Likewise.
3618         (gimple_uid): Likewise.
3619         (gimple_init_singleton): Likewise.
3620         (gimple_modified_p): Likewise.
3621         (gimple_set_modified): Likewise.
3622         (gimple_expr_code): Likewise.
3623         (gimple_has_volatile_ops): Likewise.
3624         (gimple_set_has_volatile_ops): Likewise.
3625         (gimple_omp_subcode): Likewise.
3626         (gimple_omp_set_subcode): Likewise.
3627         (gimple_omp_return_set_nowait): Likewise.
3628         (gimple_omp_section_set_last): Likewise.
3629         (gimple_omp_parallel_set_combined_p): Likewise.
3630         (gimple_omp_atomic_set_need_value): Likewise.
3631         (gimple_omp_atomic_set_seq_cst): Likewise.
3632         (gimple_num_ops): Likewise.
3633         (gimple_set_num_ops): Likewise.
3634         (gimple_assign_nontemporal_move_p): Likewise.
3635         (gimple_assign_set_nontemporal_move): Likewise.
3636         (gimple_assign_rhs_code): Likewise.
3637         (gimple_assign_set_rhs_code): Likewise.
3638         (gimple_call_internal_p): Likewise.
3639         (gimple_call_with_bounds_p): Likewise.
3640         (gimple_call_set_with_bounds): Likewise.
3641         (gimple_call_set_tail): Likewise.
3642         (gimple_call_tail_p): Likewise.
3643         (gimple_call_set_return_slot_opt): Likewise.
3644         (gimple_call_return_slot_opt_p): Likewise.
3645         (gimple_call_set_from_thunk): Likewise.
3646         (gimple_call_from_thunk_p): Likewise.
3647         (gimple_call_set_va_arg_pack): Likewise.
3648         (gimple_call_va_arg_pack_p): Likewise.
3649         (gimple_call_set_nothrow): Likewise.
3650         (gimple_call_set_alloca_for_var): Likewise.
3651         (gimple_call_alloca_for_var_p): Likewise.
3652         (gimple_call_copy_flags): Likewise.
3653         (gimple_cond_code): Likewise.
3654         (gimple_cond_set_code): Likewise.
3655         (gimple_cond_make_false): Likewise.
3656         (gimple_cond_make_true): Likewise.
3657         (gimple_asm_volatile_p): Likewise.
3658         (gimple_asm_set_volatile): Likewise.
3659         (gimple_asm_set_input): Likewise.
3660         (gimple_asm_input_p): Likewise.
3661         (gimple_try_kind): Likewise.
3662         (gimple_try_set_kind): Likewise.
3663         (gimple_try_catch_is_cleanup): Likewise.
3664         (gimple_try_set_catch_is_cleanup): Likewise.
3665         (gimple_wce_cleanup_eh_only): Likewise.
3666         (gimple_wce_set_cleanup_eh_only): Likewise.
3667         (gimple_debug_bind_p): Likewise.
3668         (gimple_debug_source_bind_p): Likewise.
3669         (gimple_omp_for_set_kind): Likewise.
3670         (gimple_omp_for_set_combined_p): Likewise.
3671         (gimple_omp_for_set_combined_into_p): Likewise.
3672         (gimple_omp_target_set_kind): Likewise.
3673         (gimple_transaction_subcode): Likewise.
3674         (gimple_transaction_set_subcode): Likewise.
3675         (gimple_predict_predictor): Likewise.
3676         (gimple_predict_set_predictor): Likewise.
3677         (gimple_predict_outcome): Likewise.
3678         (gimple_predict_set_outcome): Likewise.
3679         (gimple_transaction_set_label): Likewise.
3680         (gimple_transaction_set_body): Likewise.
3681         (gimple_transaction_label_ptr): Likewise.
3682         (gimple_transaction_label): Likewise.
3683         (gimple_transaction_body_ptr): Likewise.
3684         (gimple_omp_continue_set_control_use): Likewise.
3685         (gimple_omp_continue_control_use_ptr): Likewise.
3686         (gimple_omp_continue_control_use): Likewise.
3687         (gimple_omp_continue_set_control_def): Likewise.
3688         (gimple_omp_continue_control_def_ptr): Likewise.
3689         (gimple_omp_continue_control_def): Likewise.
3690         (gimple_omp_atomic_load_rhs_ptr): Likewise.
3691         (gimple_omp_atomic_load_rhs): Likewise.
3692         (gimple_omp_atomic_load_set_rhs): Likewise.
3693         (gimple_omp_atomic_load_lhs_ptr): Likewise.
3694         (gimple_omp_atomic_load_lhs): Likewise.
3695         (gimple_omp_atomic_load_set_lhs): Likewise.
3696         (gimple_omp_atomic_store_val_ptr): Likewise.
3697         (gimple_omp_atomic_store_val): Likewise.
3698         (gimple_omp_atomic_store_set_val): Likewise.
3699         (gimple_omp_for_cond): Likewise.
3700         (gimple_omp_for_set_cond): Likewise.
3701         (gimple_omp_sections_set_control): Likewise.
3702         (gimple_omp_sections_control_ptr): Likewise.
3703         (gimple_omp_sections_control): Likewise.
3704         (gimple_omp_sections_set_clauses): Likewise.
3705         (gimple_omp_sections_clauses_ptr): Likewise.
3706         (gimple_omp_sections_clauses): Likewise.
3707         (gimple_omp_teams_set_clauses): Likewise.
3708         (gimple_omp_teams_clauses_ptr): Likewise.
3709         (gimple_omp_teams_clauses): Likewise.
3710         (gimple_omp_target_set_data_arg): Likewise.
3711         (gimple_omp_target_data_arg_ptr): Likewise.
3712         (gimple_omp_target_data_arg): Likewise.
3713         (gimple_omp_target_set_child_fn): Likewise.
3714         (gimple_omp_target_child_fn_ptr): Likewise.
3715         (gimple_omp_target_child_fn): Likewise.
3716         (gimple_omp_target_set_clauses): Likewise.
3717         (gimple_omp_target_clauses_ptr): Likewise.
3718         (gimple_omp_target_clauses): Likewise.
3719         (gimple_omp_single_set_clauses): Likewise.
3720         (gimple_omp_single_clauses_ptr): Likewise.
3721         (gimple_omp_single_clauses): Likewise.
3722         (gimple_omp_task_set_arg_align): Likewise.
3723         (gimple_omp_task_arg_align_ptr): Likewise.
3724         (gimple_omp_task_arg_align): Likewise.
3725         (gimple_omp_task_set_arg_size): Likewise.
3726         (gimple_omp_task_arg_size_ptr): Likewise.
3727         (gimple_omp_task_arg_size): Likewise.
3728         (gimple_omp_task_set_copy_fn): Likewise.
3729         (gimple_omp_task_copy_fn_ptr): Likewise.
3730         (gimple_omp_task_copy_fn): Likewise.
3731         (gimple_omp_task_set_data_arg): Likewise.
3732         (gimple_omp_task_data_arg_ptr): Likewise.
3733         (gimple_omp_task_data_arg): Likewise.
3734         (gimple_omp_task_set_child_fn): Likewise.
3735         (gimple_omp_task_child_fn_ptr): Likewise.
3736         (gimple_omp_task_child_fn): Likewise.
3737         (gimple_omp_task_set_clauses): Likewise.
3738         (gimple_omp_task_clauses_ptr): Likewise.
3739         (gimple_omp_task_clauses): Likewise.
3740         (gimple_omp_parallel_set_data_arg): Likewise.
3741         (gimple_omp_parallel_data_arg_ptr): Likewise.
3742         (gimple_omp_parallel_data_arg): Likewise.
3743         (gimple_omp_parallel_set_child_fn): Likewise.
3744         (gimple_omp_parallel_child_fn_ptr): Likewise.
3745         (gimple_omp_parallel_child_fn): Likewise.
3746         (gimple_omp_parallel_set_clauses): Likewise.
3747         (gimple_omp_parallel_clauses_ptr): Likewise.
3748         (gimple_omp_parallel_clauses): Likewise.
3749         (gimple_omp_for_set_pre_body): Likewise.
3750         (gimple_omp_for_pre_body_ptr): Likewise.
3751         (gimple_omp_for_set_incr): Likewise.
3752         (gimple_omp_for_incr_ptr): Likewise.
3753         (gimple_omp_for_incr): Likewise.
3754         (gimple_omp_for_set_final): Likewise.
3755         (gimple_omp_for_final_ptr): Likewise.
3756         (gimple_omp_for_final): Likewise.
3757         (gimple_omp_for_set_initial): Likewise.
3758         (gimple_omp_for_initial_ptr): Likewise.
3759         (gimple_omp_for_initial): Likewise.
3760         (gimple_omp_for_set_index): Likewise.
3761         (gimple_omp_for_index_ptr): Likewise.
3762         (gimple_omp_for_index): Likewise.
3763         (gimple_omp_for_collapse): Likewise.
3764         (gimple_omp_for_set_clauses): Likewise.
3765         (gimple_omp_for_clauses_ptr): Likewise.
3766         (gimple_omp_for_clauses): Likewise.
3767         (gimple_omp_critical_set_name): Likewise.
3768         (gimple_omp_critical_name_ptr): Likewise.
3769         (gimple_omp_critical_name): Likewise.
3770         (gimple_eh_dispatch_set_region): Likewise.
3771         (gimple_eh_dispatch_region): Likewise.
3772         (gimple_resx_set_region): Likewise.
3773         (gimple_resx_region): Likewise.
3774         (gimple_phi_set_arg): Likewise.
3775         (gimple_phi_arg): Likewise.
3776         (gimple_phi_set_result): Likewise.
3777         (gimple_phi_result_ptr): Likewise.
3778         (gimple_phi_result): Likewise.
3779         (gimple_phi_num_args): Likewise.
3780         (gimple_phi_capacity): Likewise.
3781         (gimple_wce_set_cleanup): Likewise.
3782         (gimple_wce_cleanup_ptr): Likewise.
3783         (gimple_try_set_cleanup): Likewise.
3784         (gimple_try_set_eval): Likewise.
3785         (gimple_try_cleanup_ptr): Likewise.
3786         (gimple_try_eval_ptr): Likewise.
3787         (gimple_eh_else_set_e_body): Likewise.
3788         (gimple_eh_else_set_n_body): Likewise.
3789         (gimple_eh_else_e_body_ptr): Likewise.
3790         (gimple_eh_else_n_body_ptr): Likewise.
3791         (gimple_eh_must_not_throw_set_fndecl): Likewise.
3792         (gimple_eh_must_not_throw_fndecl): Likewise.
3793         (gimple_eh_filter_set_failure): Likewise.
3794         (gimple_eh_filter_set_types): Likewise.
3795         (gimple_eh_filter_failure_ptr): Likewise.
3796         (gimple_eh_filter_types_ptr): Likewise.
3797         (gimple_eh_filter_types): Likewise.
3798         (gimple_catch_set_handler): Likewise.
3799         (gimple_catch_set_types): Likewise.
3800         (gimple_catch_handler_ptr): Likewise.
3801         (gimple_catch_types_ptr): Likewise.
3802         (gimple_catch_types): Likewise.
3803         (gimple_asm_string): Likewise.
3804         (gimple_asm_set_label_op): Likewise.
3805         (gimple_asm_label_op): Likewise.
3806         (gimple_asm_set_clobber_op): Likewise.
3807         (gimple_asm_clobber_op): Likewise.
3808         (gimple_asm_set_output_op): Likewise.
3809         (gimple_asm_output_op_ptr): Likewise.
3810         (gimple_asm_output_op): Likewise.
3811         (gimple_asm_set_input_op): Likewise.
3812         (gimple_asm_input_op_ptr): Likewise.
3813         (gimple_asm_input_op): Likewise.
3814         (gimple_asm_nlabels): Likewise.
3815         (gimple_asm_nclobbers): Likewise.
3816         (gimple_asm_noutputs): Likewise.
3817         (gimple_asm_ninputs): Likewise.
3818         (gimple_bind_set_block): Likewise.
3819         (gimple_bind_block): Likewise.
3820         (gimple_bind_add_seq): Likewise.
3821         (gimple_bind_add_stmt): Likewise.
3822         (gimple_bind_set_body): Likewise.
3823         (gimple_bind_body_ptr): Likewise.
3824         (gimple_bind_append_vars): Likewise.
3825         (gimple_bind_set_vars): Likewise.
3826         (gimple_bind_vars): Likewise.
3827         (gimple_call_clobber_set): Likewise.
3828         (gimple_call_use_set): Likewise.
3829         (gimple_call_set_internal_fn): Likewise.
3830         (gimple_call_set_fntype): Likewise.
3831         (gimple_call_fntype): Likewise.
3832         (gimple_omp_return_lhs_ptr): Likewise.
3833         (gimple_omp_return_lhs): Likewise.
3834         (gimple_omp_return_set_lhs): Likewise.
3835         (gimple_omp_taskreg_set_data_arg): Likewise.
3836         (gimple_omp_taskreg_data_arg_ptr): Likewise.
3837         (gimple_omp_taskreg_data_arg): Likewise.
3838         (gimple_omp_taskreg_set_child_fn): Likewise.
3839         (gimple_omp_taskreg_child_fn_ptr): Likewise.
3840         (gimple_omp_taskreg_child_fn): Likewise.
3841         (gimple_omp_taskreg_set_clauses): Likewise.
3842         (gimple_omp_taskreg_clauses_ptr): Likewise.
3843         (gimple_omp_taskreg_clauses): Likewise.
3844         (gimple_vuse): Likewise.
3845         (gimple_vdef): Likewise.
3846         (gimple_vuse_ptr): Likewise.
3847         (gimple_vdef_ptr): Likewise.
3848         * tree-inline.c (copy_debug_stmt): Likewise.
3849         * tree-phinodes.c (make_phi_node): Likewise.
3851         * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
3852         (is_a_helper <gimple_statement_with_ops>::test): New.
3853         (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
3854         (is_a_helper <gimple_statement_with_memory_ops>::test): New.
3856         * gimple-streamer-in.c (input_gimple_stmt): Port from union
3857         access to use of as_a.
3858         * gimple.c (gimple_build_asm_1): Likewise.
3859         (gimple_build_try): Likewise.  Also, return a specific subclass
3860         rather than just gimple.
3861         (gimple_build_resx): Port from union access to use of as_a.
3862         (gimple_build_eh_dispatch): Likewise.
3863         (gimple_build_omp_for): Likewise.  Also, convert allocation of iter
3864         now that gengtype no longer provides a typed allocator function.
3865         (gimple_copy): Likewise.
3866         * gimple.h (gimple_build_try): Return a specific subclass rather
3867         than just gimple.
3868         * gimplify.c (gimplify_cleanup_point_expr): Replace union access
3869         with subclass access by making use of new return type of
3870         gimple_build_try.
3871         * tree-phinodes.c: (allocate_phi_node): Return a
3872         "gimple_statement_phi *" rather than just a gimple.
3873         (resize_phi_node): Likewise.
3874         (make_phi_node): Replace union access with subclass access by
3875         making use of new return type of allocate_phi_node.
3876         (reserve_phi_args_for_new_edge): Replace union access with as_a.
3877         (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
3878         than just a gimple.
3879         (remove_phi_args): Update for change to remove_phi_arg_num.
3881         * gdbhooks.py (GimplePrinter.to_string): Update lookup of
3882         code field to reflect inheritance, rather than embedding of
3883         the base gimple type.
3885 2013-11-19  Richard Biener  <rguenther@suse.de>
3887         * cfgloop.h (struct loop_iterator): C++-ify, add constructor
3888         and destructor and make fel_next a member function.
3889         (fel_next): Transform into ...
3890         (loop_iterator::next): ... this.
3891         (fel_init): Transform into ...
3892         (loop_iterator::loop_iterator): ... this.
3893         (loop_iterator::~loop_iterator): New.
3894         (FOR_EACH_LOOP): Remove loop-iterator argument.
3895         (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
3896         * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
3897         graphite-clast-to-gimple.c, graphite-scop-detection.c,
3898         graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
3899         loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
3900         modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
3901         tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
3902         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
3903         tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
3904         tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
3905         tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
3906         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
3907         uses of FOR_EACH_LOOP and remove loop_iterator variables.  Replace
3908         FOR_EACH_LOOP_BREAK with break.
3910 2013-11-19  Richard Biener  <rguenther@suse.de>
3912         PR tree-optimization/59164
3913         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
3914         Uncomment assert.
3915         * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
3916         whether we can create an epilogue loop to reflect thecases where
3917         we create one.
3919 2013-11-19  Andrew MacLeod  <amacleod@redhat.com>
3921         * graphite-sese-to-poly.c: Include expr.h.
3923 2013-11-19  Richard Biener  <rguenther@suse.de>
3925         PR middle-end/58956
3926         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
3927         loads into stmts that may clobber it.
3929 2013-11-19  Bernd Schmidt  <bernds@codesourcery.com>
3931         * cgraphunit.c (symtab_terminator): New variable.
3932         (queued_nodes): Renamed from first.  Use symtab_terminator as
3933         initializer.
3934         (analyze_functions): Adjust accordingly.
3935         (cgraph_process_new_functions): Return void.
3936         * cgraph.h (cgraph_process_new_functions): Adjust declaration.
3938 2013-11-19  Marek Polacek  <polacek@redhat.com>
3940         * opts.c (common_handle_option): Add -fsanitize=null option.
3941         Turn off -fdelete-null-pointer-checks option when doing the
3942         NULL pointer checking.
3943         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
3944         * tree-pass.h (make_pass_ubsan): Declare.
3945         (make_pass_sanopt): Declare.
3946         * timevar.def (TV_TREE_UBSAN): New timevar.
3947         * passes.def: Add pass_sanopt and pass_ubsan.
3948         * ubsan.h (ubsan_null_ckind): New enum.
3949         (ubsan_mismatch_data): New struct.
3950         (ubsan_expand_null_ifn): Declare.
3951         (ubsan_create_data): Adjust declaration.
3952         (ubsan_type_descriptor): Likewise.
3953         * asan.c: Include "ubsan.h".
3954         (pass_data_sanopt): New pass.
3955         (execute_sanopt): New function.
3956         (gate_sanopt): Likewise.
3957         (make_pass_sanopt): Likewise.
3958         (class pass_sanopt): New class.
3959         * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
3960         gimple-iterator.h and cfgloop.h.
3961         (PROB_VERY_UNLIKELY): Define.
3962         (tree_type_map_hash): New function.
3963         (ubsan_type_descriptor): Add new parameter.
3964         Improve type name generation.
3965         (ubsan_create_data): Add new parameter.  Add pointer data into
3966         ubsan structure.
3967         (ubsan_expand_null_ifn): New function.
3968         (instrument_member_call): Likewise.
3969         (instrument_mem_ref): Likewise.
3970         (instrument_null): Likewise.
3971         (ubsan_pass): Likewise.
3972         (gate_ubsan): Likewise.
3973         (make_pass_ubsan): Likewise.
3974         (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
3975         (class pass_ubsan): New class.
3976         (pass_data_ubsan): New pass.
3977         * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
3978         * internal-fn.c (expand_UBSAN_NULL): New function.
3979         * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
3980         even when !flag_toplevel_reorder.
3981         * internal-fn.def (UBSAN_NULL): New.
3983 2013-11-19  Jan Hubicka  <jh@suse.cz>
3985         * cgraph.c (cgraph_create_indirect_edge): Use
3986         get_polymorphic_call_info.
3987         * cgraph.h (cgraph_indirect_call_info): Add outer_type,
3988         maybe_in_construction and maybe_derived_type.
3989         * ipa-utils.h (ipa_polymorphic_call_context): New structure.
3990         (ipa_dummy_polymorphic_call_context): New global var.
3991         (possible_polymorphic_call_targets): Add context paramter.
3992         (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
3993         (possible_polymorphic_call_target_p): Likewise.
3994         (get_polymorphic_call_info): New function.
3995         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
3996         (add_type_duplicate): Remove forgotten debug output.
3997         (method_class_type): Add sanity check.
3998         (maybe_record_node): Add FINALP parameter.
3999         (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
4000         by info by get_binfo_at_offset.
4001         (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
4002         parameters; pass them to record-binfo.
4003         (polymorphic_call_target_d): Add context and FINAL.
4004         (polymorphic_call_target_hasher::hash): Hash context.
4005         (polymorphic_call_target_hasher::equal): Compare context.
4006         (free_polymorphic_call_targets_hash):
4007         (get_class_context): New function.
4008         (contains_type_p): New function.
4009         (get_polymorphic_call_info): New function.
4010         (walk_bases): New function.
4011         (possible_polymorphic_call_targets): Add context parameter; honnor it.
4012         (dump_possible_polymorphic_call_targets): Dump context.
4013         (possible_polymorphic_call_target_p): Add context.
4014         (update_type_inheritance_graph): Update comment.s
4015         (ipa_set_jf_known_type): Assert that compoentn type is known.
4016         (ipa_note_param_call): Do not tamper with offsets.
4017         (ipa_analyze_indirect_call_uses): When offset is being changed; clear
4018         outer type.
4019         (update_indirect_edges_after_inlining): Likewise.
4020         (ipa_write_indirect_edge_info): Stream new fields.
4021         (ipa_read_indirect_edge_info): Stream in new fields.
4023 2013-11-19  Jan Hubicka  <jh@suse.cz>
4025         * tree-pretty-print.c (dump_generic_node): Print class type of
4026         OBJ_TYPE_REF.
4028 2013-11-19  Joey Ye  <joey.ye@arm.com>
4030         * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
4031         * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
4032         for new option.
4033         * config/arm/arm.c (arm_option_override): By default disable
4034         -marm-pic-data-is-text-relative.
4035         (legitimize_pic_address): Use arm_pic_data_is_text_relative.
4036         (arm_assemble_integer): Likewise.
4037         * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
4038         New macro to initialize -marm-pic-data-is-text-relative.
4040 2013-11-19  Bin Cheng  <bin.cheng@arm.com>
4042         * tree-ssa-loop-ivopts.c (enum ainc_type): New.
4043         (address_cost_data): New field.
4044         (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
4045         Use ainc_costs for auto-increment rtx patterns.  Cleanup TWS.
4047 2013-11-19  James Greenhalgh  <james.greenhalgh@arm.com>
4049         * config/aarch64/aarch64.md: Remove v8type from all insns.
4051 2013-11-19  Richard Biener  <rguenther@suse.de>
4053         PR tree-optimization/57517
4054         * tree-predcom.c (combinable_refs_p): Verify the combination
4055         is always executed when the refs are.
4057 2013-11-19  Jeff Law  <law@redhat.com>
4059         * tree-ssa-threadupdate.c: Include ssa-iterators.h
4060         (copy_phi_arg_into_existing_phi): New function.
4061         (any_remaining_duplicated_blocks): Likewise.
4062         (ssa_fix_duplicate_block_edges): Handle multiple duplicated
4063         blocks on a jump threading path.
4065         * tree-ssa-threadupdate.c (thread_through_loop_header):  Do not
4066         thread through a joiner which has the latch edge.
4068 2013-11-19  Jan Hubicka  <jh@suse.cz>
4070         * md.texi (setmem): Document new parameter.
4071         * optabs.c (maybe_gen_insn): Support 9 operands.
4072         * builtins.c (determine_block_size): Add probable_max_size;
4073         support anti-ranges.
4074         (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
4075         probable_max_size.
4076         * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
4077         emit_block_move, clear_storage_hints, set_storage_via_setmem):
4078         Likewise.
4079         * expr.h (emit_block_move_hints, clear_storage_hints,
4080         set_storage_via_setmem): Update prototype.
4081         * i386.md (setmem, movmem patterns): Add 9th operand.
4082         * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
4083         * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
4084         argument; pass it to decide_alg.
4086 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
4088         * basic-block.h (n_basic_blocks_for_function): Rename macro to...
4089         (n_basic_blocks_for_fn): ...this.
4091         (n_basic_blocks): Eliminate macro as work towards making uses of
4092         cfun be explicit.
4094         * cfgloop.c (init_loops_structure): Update for renaming of
4095         "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
4096         * graph.c (draw_cfg_nodes_no_loops): Likewise.
4097         * ipa-utils.c (ipa_merge_profiles): Likewise.
4098         * lto-streamer-in.c (make_new_block): Likewise.
4099         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
4100         (dump_function_to_file): Likewise.
4102         * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
4103         macro with "n_basic_blocks_for_fn (cfun)".
4104         * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
4105         (duplicate_computed_gotos): Likewise.
4106         (reorder_basic_blocks): Likewise.
4107         * bt-load.c (augment_live_range): Likewise.
4108         * cfg.c (expunge_block): Likewise.
4109         (compact_blocks): Likewise.
4110         * cfganal.c (single_pred_before_succ_order): Likewise.
4111         (compute_idf): Likewise.
4112         (flow_dfs_compute_reverse_init): Likewise.
4113         (pre_and_rev_post_order_compute): Likewise.
4114         (pre_and_rev_post_order_compute_fn): Likewise.
4115         (inverted_post_order_compute): Likewise.
4116         (post_order_compute): Likewise.
4117         (print_edge_list): Likewise.
4118         (find_unreachable_blocks): Likewise.
4119         (mark_dfs_back_edges): Likewise.
4120         * cfgcleanup.c (try_optimize_cfg): Likewise.
4121         (try_forward_edges): Likewise.
4122         * cfghooks.c (dump_flow_info): Likewise.
4123         * cfgloop.c (verify_loop_structure): Likewise.
4124         (get_loop_body): Likewise.
4125         (flow_loops_find): Likewise.
4126         * cfgloopmanip.c (add_loop): Likewise.
4127         (remove_path): Likewise.
4128         (find_path): Likewise.
4129         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
4130         (rtl_verify_bb_layout): Likewise.
4131         (entry_of_function): Likewise.
4132         (rtl_create_basic_block): Likewise.
4133         * coverage.c (coverage_compute_cfg_checksum): Likewise.
4134         * cprop.c (one_cprop_pass): Likewise.
4135         (is_too_expensive): Likewise.
4136         * df-core.c (df_compute_cfg_image): Likewise.
4137         (df_compact_blocks): Likewise.
4138         (df_worklist_dataflow_doublequeue): Likewise.
4139         * dominance.c (calculate_dominance_info): Likewise.
4140         (calc_dfs_tree): Likewise.
4141         (calc_dfs_tree_nonrec): Likewise.
4142         (init_dom_info): Likewise.
4143         * domwalk.c (cmp_bb_postorder): Likewise.
4144         * function.c (thread_prologue_and_epilogue_insns): Likewise.
4145         (generate_setjmp_warnings): Likewise.
4146         * fwprop.c (build_single_def_use_links): Likewise.
4147         * gcse.c (is_too_expensive): Likewise.
4148         (one_code_hoisting_pass): Likewise.
4149         (one_pre_gcse_pass): Likewise.
4150         * graphite.c (graphite_initialize): Likewise.
4151         * haifa-sched.c (haifa_sched_init): Likewise.
4152         * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
4153         * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
4154         * ira-build.c (ira_build): Likewise.
4155         * lcm.c (compute_nearerout): Likewise.
4156         (compute_available): Likewise.
4157         (compute_laterin): Likewise.
4158         (compute_antinout_edge): Likewise.
4159         * lra-lives.c (lra_create_live_ranges): Likewise.
4160         * lra.c (has_nonexceptional_receiver): Likewise.
4161         * mcf.c (create_fixup_graph): Likewise.
4162         * profile.c (branch_prob): Likewise.
4163         * reg-stack.c (convert_regs_2): Likewise.
4164         * regrename.c (regrename_analyze): Likewise.
4165         * reload1.c (has_nonexceptional_receiver): Likewise.
4166         * reorg.c (dbr_schedule): Likewise.
4167         * sched-deps.c (sched_deps_init): Likewise.
4168         * sched-ebb.c (schedule_ebbs): Likewise.
4169         * sched-rgn.c (extend_regions): Likewise.
4170         (schedule_insns): Likewise.
4171         (sched_rgn_init): Likewise.
4172         (extend_rgns): Likewise.
4173         (haifa_find_rgns): Likewise.
4174         * sel-sched-ir.c (recompute_rev_top_order): Likewise.
4175         (sel_recompute_toporder): Likewise.
4176         * sel-sched.c (run_selective_scheduling): Likewise.
4177         * store-motion.c (one_store_motion_pass): Likewise.
4178         (remove_reachable_equiv_notes): Likewise.
4179         * tracer.c (tracer): Likewise.
4180         (tail_duplicate): Likewise.
4181         * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
4182         (dump_cfg_stats): Likewise.
4183         (gimple_dump_cfg): Likewise.
4184         (create_bb): Likewise.
4185         (build_gimple_cfg): Likewise.
4186         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
4187         * tree-inline.c (optimize_inline_calls): Likewise.
4188         (fold_marked_statements): Likewise.
4189         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
4190         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
4191         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
4192         * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
4193         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
4194         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
4195         * tree-ssa-pre.c (do_pre): Likewise.
4196         (init_pre): Likewise.
4197         (compute_avail): Likewise.
4198         * tree-ssa-reassoc.c (init_reassoc): Likewise.
4199         * tree-ssa-sccvn.c (init_scc_vn): Likewise.
4200         * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
4201         (init_worklist): Likewise.
4202         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
4203         * var-tracking.c (variable_tracking_main_1): Likewise.
4204         (vt_find_locations): Likewise.
4205         (vt_stack_adjustments): Likewise.
4206         * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
4207         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
4209 2013-11-18  Jan Hubicka  <jh@suse.cz>
4211         * profile.c (compute_branch_probabilities): Do not sanity check
4212         run_max.
4214 2013-11-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
4216         * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
4217         GET_MODE_PRECISION.
4218         * fold-const.c (fold_single_bit_test_into_sign_test)
4219         (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
4221 2013-11-18  Teresa Johnson  <tejohnson@google.com>
4223         * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
4224         cfglayout after bb reordering.
4225         * passes.def: Move compgotos before bb reordering since it goes into
4226         cfglayout.
4228 2013-11-18  Bernd Schmidt  <bernds@codesourcery.com>
4230         * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
4231         * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
4232         static.
4233         (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
4234         make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
4235         pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
4236         * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
4237         * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
4238         Remove all_lto_gen_passes.
4239         * passes.c (pass_manager::dump_passes): Remove its use.
4240         (pass_manager::register_pass): Likewise.
4241         (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
4242         (pass_manager::pass_manager): Don't initialize or use it.
4243         (write_lto): New static function.
4244         (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
4245         instead of using all_lto_gen_passes.
4246         * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
4247         pass_ipa_lto_finish_out): Delete.
4248         * tree-pass.h (make_pass_ipa_lto_gimple_out,
4249         make_pass_ipa_lto_finish_out): Don't declare.
4251 2013-11-18  Jeff Law  <law@redhat.com>
4253         * tree-ssa-threadupdate.c (redirection_data): Record two
4254         duplicated blocks instead of just one.
4255         (local_info): Explain why we don't create a template for the
4256         second duplicated block in a thread path.
4257         (create_block_for_threading): Accept argument indicating array
4258         index into redirection_data to store its result.
4259         (lookup_redirection_data): Initialize both duplicate blocks.
4260         (ssa_create_duplicates): If a jump threading path needs multiple
4261         blocks duplicated, then duplicate them.
4262         (ssa_fix_duplicate_block_edges): Corresponding changes.
4263         (ssa_fixup_template_block, thread_single_edge):  Likewise.
4265 2013-11-18  Marek Polacek  <polacek@redhat.com>
4267         * doc/invoke.texi: Extend -fsanitize=undefined documentation.
4269 2013-11-18  Andrew Pinski <apinski@cavium.com>
4270             Steve Ellcey  <sellcey@mips.com>
4272         PR target/56552
4273         * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
4274         type restriction from equality_operator on conditonal move.
4275         (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
4276         (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
4278 2013-11-18  Jeff Law  <law@redhat.com>
4280         * tree-ssa-threadupdate.c: Fix file block comment.
4281         Fix minor indention issue.
4283 2013-11-18  Uros Bizjak  <ubizjak@gmail.com>
4285         * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
4286         ix86_address_subreg_operand.  Move subreg checks to
4287         ix86_validate_address_register.  Move address override check to
4288         ix86_legitimate_address_p.
4289         (ix86_validate_address_register): New function.
4290         (ix86_legitimate_address_p): Call ix86_validate_address_register
4291         to validate base and index registers.  Add address override check
4292         from ix86_decompose_address.
4293         (ix86_decompose_address): Remove.
4295 2013-11-18  Richard Biener  <rguenther@suse.de>
4297         PR tree-optimization/59125
4298         PR tree-optimization/54570
4299         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
4300         is not complete do not treat component-references with offset zero
4301         but different fields as equal.
4302         * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
4303         (compute_object_sizes): Apply TLC.  Propagate the constant
4304         results into all uses and fold their stmts.
4305         * passes.def (pass_all_optimizations): Move pass_object_sizes
4306         after the first pass_forwprop and before pass_fre.
4308 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4310         * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
4311         * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
4312         (tree_ctz): Remove cast to unsigned type.
4313         * builtins.c (fold_builtin_memory_op): Likewise.
4314         * dwarf2out.c (descr_info_loc): Likewise.
4315         * godump.c (go_output_typedef): Likewise.
4316         * omp-low.c (expand_omp_simd): Likewise.
4317         * stor-layout.c (excess_unit_span): Likewise.
4318         * tree-object-size.c (addr_object_size): Likewise.
4319         * tree-sra.c (analyze_all_variable_accesses): Likewise.
4320         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
4321         (simplify_rotate): Likewise.
4322         * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
4323         (handle_pointer_plus): Likewise.
4324         * tree-switch-conversion.c (check_range): Likewise.
4325         * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
4326         * tsan.c (instrument_builtin_call): Likewise.
4327         * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
4328         * trans-mem.c (tm_log_add): Likewise.
4329         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
4330         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
4331         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
4332         * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
4334 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4336         * tree.h (host_integerp, tree_low_cst): Delete.
4337         * tree.c (host_integerp, tree_low_cst): Delete.
4339 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4341         * expr.h: Update comments to refer to tree_to_[su]hwi rather
4342         than tree_low_cst.
4343         * fold-const.c (fold_binary_loc): Likewise.
4344         * expr.c (store_constructor): Use tree_to_uhwi rather than
4345         tree_low_cst.
4346         * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
4347         * stmt.c (emit_case_dispatch_table): Likewise.
4348         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
4350 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4352         * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
4353         config/aarch64/aarch64.c, config/alpha/predicates.md,
4354         config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
4355         config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
4356         config/mep/mep-pragma.c, config/mips/mips.c,
4357         config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
4358         dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
4359         function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
4360         predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
4361         tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
4362         tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
4363         tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
4364         tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
4365         tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
4366         Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
4368 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4370         * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
4371         config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
4372         config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
4373         coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
4374         fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
4375         predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
4376         tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
4377         tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
4378         tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
4379         tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
4380         Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
4382 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4384         * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
4385         * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
4387 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4389         * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
4390         than host_integerp.
4392 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4394         * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
4395         config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
4396         gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
4397         tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
4398         tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
4399         tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
4400         tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
4401         config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
4402         config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
4403         config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
4404         gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
4405         tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
4406         tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
4407         tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
4408         tree_fits_uhwi_p throughout.
4410 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4412         * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
4413         config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
4414         config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
4415         expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
4416         gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
4417         omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
4418         stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
4419         tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
4420         tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
4421         tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
4422         tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
4423         tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
4424         varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
4425         throughout.
4427 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
4429         * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
4430         * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
4432 2013-11-18  Kirill Yukhin  <kirill.yukhin@intel.com>
4434         * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
4435         flag if it kills its address, not its post-increment.
4437 2013-11-18  Ilya Enkovich  <ilya.enkovich@intel.com>
4439         * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
4440         * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
4441         * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
4442         * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
4443         * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
4444         (gimple_call_with_bounds_p): New.
4445         (gimple_call_set_with_bounds): New.
4446         (gimple_call_num_nobnd_args): Remove.
4447         (gimple_call_nobnd_arg): Remove.
4448         * tree.h (CALL_WITH_BOUNDS_P): New.
4449         * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
4451 2013-11-18  Trevor Saunders  <tsaunders@mozilla.com>
4453         * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
4454         (symtab_node_name): Rename to symtab_node::name.
4455         (cgraph_node_asm_name): Remove.
4456         (varpool_node_asm_name): Remove.
4457         * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
4458         ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
4459         ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
4460         ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
4461         tree-ssa-structalias.c value-prof.c varpool.c Adjust.
4463 2013-11-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4465         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
4466         * config/arm/arm.c (arm_cortex_a53_tune): New.
4467         * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
4469 2013-11-12  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
4471         * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
4472         (case ${target}): Add bdver4.
4473         * config/i386/bdver3.md: Add bdver4.
4474         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
4475         -march=native recognize bdver4 processors.
4476         * config/i386/i386-c.c (ix86_target_macros_internal): Add
4477         bdver4 def_and_undef
4478         * config/i386/i386.c (struct processor_costs bdver4_cost): New.
4479         (m_BDVER4): New definition.
4480         (m_AMD_MULTIPLE): Includes m_BDVER4.
4481         (processor_target_table): Add bdver4 entry.
4482         (static const char *const cpu_names): Add bdver4 entry.
4483         (software_prefetching_beneficial_p): Add bdver3.
4484         (ix86_option_override_internal): Add bdver4 instruction sets.
4485         (ix86_issue_rate): Add bdver4.
4486         (ix86_adjust_cost): Add bdver4.
4487         (ia32_multipass_dfa_lookahead): Add bdver4.
4488         (enum processor_model): Add M_AMDFAM15H_BDVER4.
4489         (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
4490         (has_dispatch): Add bdver4.
4491         * config/i386/i386.h (TARGET_BDVER4): New definition.
4492         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
4493         (enum processor_type): Add PROCESSOR_BDVER4.
4494         * config/i386/i386.md (define_attr "cpu"): Add bdver4.
4495         * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
4496         * doc/extend.texi: Add details about bdver4.
4497         * doc/invoke.texi: Add details about bdver4. Add
4498         fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
4500 2013-11-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4502         * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
4503         sdmode_stack_slot also in little-endian mode.
4505 2013-11-17  Jan Hubicka  <jh@suse.cz>
4507         * doc/md.texi (setmem, movstr): Update documentation.
4508         * builtins.c (determine_block_size): New function.
4509         (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
4510         (expand_builtin_memset_args): Use it and pass it to
4511         set_storage_via_setmem.
4512         * expr.c (emit_block_move_via_movmem): Add min_size/max_size
4513         parameters; update call to expander.
4514         (emit_block_move_hints): Add min_size/max_size parameters.
4515         (clear_storage_hints): Likewise.
4516         (set_storage_via_setmem): Likewise.
4517         (clear_storage): Update.
4518         * expr.h (emit_block_move_hints, clear_storage_hints,
4519         set_storage_via_setmem): Update prototypes.
4520         * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
4521         (ix86_expand_movmem, ix86_expand_setmem): Remove.
4522         (ix86_expand_movmem, ix86_expand_setmem): Remove.
4523         * i386.md (movmem, setmem): Pass parameters.
4525 2013-11-17  Uros Bizjak  <ubizjak@gmail.com>
4527         PR target/59153
4528         * config/i386/i386.c (ix86_address_subreg_operand): Do not
4529         reject non-integer subregs.
4530         (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
4531         Move check for invalid x32 constant addresses ...
4532         (ix86_legitimate_address_p): ... here.
4534 2011-11-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4536         * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
4537         parameter and use it in REG_FRAME_RELATED_EXPR note.
4538         (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
4539         parameter.
4540         (rs6000_emit_prologue): Likewise, but for little endian VSX
4541         stores, pass the source register of the store instead.
4543 2013-11-17  Andrew MacLeod  <amacleod@redhat.com>
4545         * gimple.h: Reorder prototypes to match .c declaration order, and
4546         remove protyotypes for functions not in gimple.c.
4547         (LABEL): Move to tree-into-ssa.c.
4548         * gimple.c: Remove unused prototypes.
4549         (get_base_address): Move to tree.c.
4550         * tree.c (get_base_address): Relocate from gimple.c.
4551         * builtins.h (validate_gimple_arglist): Add prototype.
4552         * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
4553         * cfgexpand.h: New File.
4554         (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
4555         * tree.h (build_addr): Move to tree-nested.h.
4556         * tree-nested.h: New File.
4557         (build_addr, lower_nested_functions, insert_field_into_struct): Add
4558         prototypes.
4559         * tree-inline.h (estimated_stack_frame_size): Remove prototype.
4560         * ipa-inline-analysis.c: Include cfgexpand.h.
4561         * cgraphunit.c: Include tree-nested.h.
4562         * omp-low.c: Likewise.
4563         * tree-parloops.c: Likewise.
4564         * gimple-low.h: Likewise.
4565         * tree-profile.h: Likewise.
4566         * expr.c: Include cfgexpand.h.
4567         * tree-affine.c: Likewise.
4568         * tree-ssa.c: Likewise.
4569         * tree-ssa-loop-im.c: Include trans-mem.h.
4570         * tree-ssa-tail-merge.c: Likewise.
4571         * value-prof.c: Include builtins.h and tree-nested.h.
4572         * tree-into-ssa.c (LABEL): Define here.
4574 2013-11-16  Joern Rennecke  <joern.rennecke@embecosm.com>
4576         * config/arc/arc.c (arc_predicate_delay_insns): New function.
4577         (pass_data_arc_predicate_delay_insns): New pass_data instance.
4578         (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
4579         (make_pass_arc_predicate_delay_insns): New function.
4580         (arc_init): Register pass_arc_predicate_delay_insns if
4581         flag_delayed_branch is active.
4583 2013-11-16  Joern Rennecke  <joern.rennecke@embecosm.com>
4585         * config/arc/constraints.md (Rcq): Simplify register number test.
4587 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
4589         * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
4591 2013-11-15  Kaz Kojima  <kkojima@gcc.gnu.org>
4593         * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
4594         is null.
4596 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
4598         * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
4599         * gimple-pretty-print.c (dump_omp_for): Add case for
4600         GF_OMP_FOR_KIND_CILKSIMD.
4601         * gimple.h (enum gf_mask): Restructure entries to add
4602         GF_OMP_FOR_KIND_CILKSIMD.
4603         * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
4604         (gimplify_omp_for): Handle CILK_SIMD.
4605         (gimplify_expr): Add ccase for CILK_SIMD.
4606         * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
4607         (build_outer_var_ref): Same.
4608         (check_omp_nesting_restrictions): Same.
4609         (lower_rec_input_clauses): Same.
4610         (lower_lastprivate_clauses): Same.
4611         (expand_omp_for): Same.
4612         (execute_expand_omp): Check flag_enable_cilkplus.
4613         (execute_lower_omp): Same.
4614         (diagnose_sb_0): Handle CILK_SIMD.
4615         (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
4616         (setjmp_or_longjmp_p): New.
4617         (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
4618         * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
4619         * tree.def: Add tree code for CILK_SIMD.
4621 2013-11-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4623         * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
4624         Remove.
4625         (altivec_vperm_<mode>): Revert earlier little endian change.
4626         (*altivec_vperm_<mode>_internal): Remove.
4627         (altivec_vperm_<mode>_uns): Revert earlier little endian change.
4628         (*altivec_vperm_<mode>_uns_internal): Remove.
4629         * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
4631 2013-11-15  Jeff Law  <law@redhat.com>
4633         * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
4634         has_abnormal_or_outgoing_edge.  Check for EH edges as well.
4635         * gimple-ssa-isolate-paths.c
4636         (find_implicit_erroneous_behaviour): Corresponding changes.
4637         Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
4638         (find_explicit_erroneous_behaviour): Likewise.
4640 2013-11-15  Jeff Law  <law@redhat.com>
4642         * ifcvt.c (find_cond_trap): Properly handle case where
4643         trap_bb == else_bb.
4645 2013-11-15  Andreas Schwab  <schwab@linux-m68k.org>
4647         * configure: Regenerate.
4649 2013-11-15  James Greenhalgh  <james.greenhalgh@arm.com>
4651         * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
4652         * config/aarch64/aarch64.md: Likewise, correct "type" attribute
4653         where it is incorrect or missing.
4655 2013-11-15  Richard Sandiford  <rdsandiford@googlemail.com>
4657         * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
4658         host_integerp test.
4659         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
4660         Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
4661         constant.
4662         * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
4663         pair with a TREE_CODE test and TREE_INT_CST_LOW.
4664         * tree-vect-generic.c (expand_vector_divmod): Likewise.
4666 2013-11-15  Richard Biener  <rguenther@suse.de>
4668         PR tree-optimization/50262
4669         * tree-ssa-alias.h (struct pt_solution): Split
4670         vars_contains_global into vars_contains_nonlocal,
4671         vars_contains_escaped and vars_contains_escaped_heap.
4672         * tree-ssa-structalias.c (label_visit): Expand comment.
4673         (handle_lhs_call): Adjust comment.
4674         (set_uids_in_ptset): Set the new flags appropriately.
4675         (pt_solution_set): Adjust.
4676         (pt_solution_set_var): Likewise.
4677         (pt_solution_ior_into): Likewise.
4678         (pt_solution_includes_global): Likewise.
4679         (pt_solutions_intersect_1): Optimize escaped handling.
4680         (compute_points_to_sets): Remove heap variable globalization.
4681         (ipa_escaped_pt): Adjust initializer.
4682         (pass_data_ipa_pta): Do not run TODO_update_ssa.
4683         * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
4684         * tree-ssa-alias.c (dump_points_to_solution): Likewise.
4686 2013-11-15  Richard Biener  <rguenther@suse.de>
4688         * tree-loop-distribution.c (tree_loop_distribution): Make sure
4689         to distribute all stores.
4691 2013-11-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4693         * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
4695 2013-11-15  Joseph Myers  <joseph@codesourcery.com>
4697         * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
4698         * configure.ac: Determine target_header_dir earlier.
4699         (--with-glibc-version): New configure option.
4700         Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
4701         gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
4702         * configure: Regenerate.
4703         * doc/install.texi (--enable-gnu-unique-object): Don't refer to
4704         native toolchains for default.
4705         (--with-glibc-version): Document.
4707 2013-11-15  Eric Botcazou  <ebotcazou@adacore.com>
4709         * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
4711 2013-11-15  Uros Bizjak  <ubizjak@gmail.com>
4713         * lto-streamer-in.c (input function): Call cgraph_create_node if
4714         cgraph_get_node failed.
4716 2013-11-14  Olivier Hainque  <hainque@adacore.com>
4718         * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
4719         defer allocation of DECL_IGNORED_P variables at toplevel unless really
4720         small.  Factorize size threshold computation from the existing one.
4721         (expand_used_vars): Refine comment.
4723 2013-11-14  Cong Hou  <congh@google.com>
4725         * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
4726         address field as it can be obtained from dr.  Rename the struct.
4727         * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
4728         steps of data references during sort.
4729         (vect_prune_runtime_alias_test_list): Adjust with the change to
4730         struct dr_with_seg_len.
4731         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
4732         Adjust with the change to struct dr_with_seg_len.
4734 2013-11-14  Jeff Law  <law@redhat.com>
4736         PR middle-end/59127
4737         * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
4738         * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
4739         * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
4740         (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
4741         edges, then ignore it.  If the statement exhibiting erroneous
4742         behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
4743         then we can not optimize.
4744         (find_explicit_erroneous_behaviour): Likewise.
4746 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
4748         * gimplify-me.h:  New file.  Add prototypes.
4749         * gimplify.h: Don't include gimple.h.
4750         (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
4751         Relocate from gimple.h.
4752         * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
4753         is_gimple_sizepos): Move to gimplify.h.
4754         (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
4755         (enum gsi_iterator_update): Move to gimple-iterator.h.
4756         * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
4757         * gimplify-me.c: New File.
4758         (force_gimple_operand_1, force_gimple_operand,
4759         force_gimple_operand_gsi_1, force_gimple_operand_gsi,
4760         gimple_regimplify_operands): Relocate from gimplify.c.
4761         * gimplify.c (force_gimple_operand_1, force_gimple_operand,
4762         force_gimple_operand_gsi_1, force_gimple_operand_gsi,
4763         gimple_regimplify_operands): Move to gimplify-me.c.
4764         (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
4765         from gimple.h.
4766         * Makefile.in (OBJS): Add gimplify-me.o
4767         * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
4768         required.
4769         * cfgloopmanip.c: Likewise.
4770         * cgraphunit.c: Likewise.
4771         * cilk-common.c: Likewise.
4772         * fold-const.c: Likewise.
4773         * function.c: Likewise.
4774         * gimple-expr.c: Likewise.
4775         * gimple-fold.c: Likewise.
4776         * gimple-ssa-strength-reduction.c: Likewise.
4777         * gimple.c: Likewise.
4778         * graphite-clast-to-gimple.c: Likewise.
4779         * graphite-sese-to-poly.c: Likewise.
4780         * ipa-prop.c: Likewise.
4781         * ipa-split.c: Likewise.
4782         * ipa.c: Likewise.
4783         * langhooks.c: Likewise.
4784         * omp-low.c: Likewise.
4785         * sese.c: Likewise.
4786         * stor-layout.c: Likewise.
4787         * targhooks.c: Likewise.
4788         * trans-mem.c: Likewise.
4789         * tree-affine.c: Likewise.
4790         * tree-cfg.c: Likewise.
4791         * tree-cfgcleanup.c: Likewise.
4792         * tree-complex.c: Likewise.
4793         * tree-if-conv.c: Likewise.
4794         * tree-inline.c: Likewise.
4795         * tree-loop-distribution.c: Likewise.
4796         * tree-nested.c: Likewise.
4797         * tree-parloops.c: Likewise.
4798         * tree-predcom.c: Likewise.
4799         * tree-profile.c: Likewise.
4800         * tree-scalar-evolution.c: Likewise.
4801         * tree-sra.c: Likewise.
4802         * tree-ssa-address.c: Likewise.
4803         * tree-ssa-ccp.c: Likewise.
4804         * tree-ssa-dce.c: Likewise.
4805         * tree-ssa-forwprop.c: Likewise.
4806         * tree-ssa-ifcombine.c: Likewise.
4807         * tree-ssa-loop-im.c: Likewise.
4808         * tree-ssa-loop-ivopts.c: Likewise.
4809         * tree-ssa-loop-manip.c: Likewise.
4810         * tree-ssa-loop-niter.c: Likewise.
4811         * tree-ssa-loop-prefetch.c: Likewise.
4812         * tree-ssa-loop-unswitch.c: Likewise.
4813         * tree-ssa-math-opts.c: Likewise.
4814         * tree-ssa-phiopt.c: Likewise.
4815         * tree-ssa-phiprop.c: Likewise.
4816         * tree-ssa-pre.c: Likewise.
4817         * tree-ssa-propagate.c: Likewise.
4818         * tree-ssa-reassoc.c: Likewise.
4819         * tree-ssa-sccvn.c: Likewise.
4820         * tree-ssa-strlen.c: Likewise.
4821         * tree-ssa.c: Likewise.
4822         * tree-switch-conversion.c: Likewise.
4823         * tree-tailcall.c: Likewise.
4824         * tree-vect-data-refs.c: Likewise.
4825         * tree-vect-generic.c: Likewise.
4826         * tree-vect-loop-manip.c: Likewise.
4827         * tree-vect-loop.c: Likewise.
4828         * tree-vect-patterns.c: Likewise.
4829         * tree-vect-stmts.c: Likewise.
4830         * tree.c: Likewise.
4831         * tsan.c: Likewise.
4832         * value-prof.c: Likewise.
4833         * config/aarch64/aarch64.c: Likewise.
4834         * config/alpha/alpha.c: Likewise.
4835         * config/darwin.c: Likewise.
4836         * config/i386/i386.c: Likewise.
4837         * config/ia64/ia64.c: Likewise.
4838         * config/mep/mep.c: Likewise.
4839         * config/mips/mips.c: Likewise.
4840         * config/rs6000/rs6000.c: Likewise.
4841         * config/s390/s390.c: Likewise.
4842         * config/sh/sh.c: Likewise.
4843         * config/sparc/sparc.c: Likewise.
4844         * config/spu/spu.c: Likewise.
4845         * config/stormy16/stormy16.c: Likewise.
4846         * config/tilegx/tilegx.c: Likewise.
4847         * config/tilepro/tilepro.c: Likewise.
4848         * config/xtensa/xtensa.c: Likewise.
4850 2013-11-14  Diego Novillo  <dnovillo@google.com>
4852         * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
4854 2013-11-14  Diego Novillo  <dnovillo@google.com>
4856         * tree.h: Include fold-const.h.
4857         (aggregate_value_p): Moved to function.h.
4858         (alloca_call_p): Moved to calls.h.
4859         (allocate_struct_function): Moved to function.h.
4860         (apply_tm_attr): Moved to attribs.h.
4861         (array_at_struct_end_p): Moved to expr.h.
4862         (array_ref_element_size): Moved to tree-dfa.h.
4863         (array_ref_low_bound): Moved to tree-dfa.h.
4864         (array_ref_up_bound): Moved to tree.h.
4865         (assemble_alias): Moved to cgraph.h.
4866         (bit_from_pos): Moved to stor-layout.h.
4867         (build_addr): Moved to tree-nested.h.
4868         (build_duplicate_type): Moved to tree-inline.h.
4869         (build_fold_addr_expr): Moved to fold-const.h.
4870         (build_fold_addr_expr_with_type): Moved to fold-const.h.
4871         (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
4872         (build_fold_indirect_ref): Moved to fold-const.h.
4873         (build_fold_indirect_ref_loc): Moved to fold-const.h.
4874         (build_personality_function): Moved to tree.h.
4875         (build_range_check): Moved to fold-const.h.
4876         (build_simple_mem_ref): Moved to fold-const.h.
4877         (build_simple_mem_ref_loc): Moved to fold-const.h.
4878         (build_tm_abort_call): Moved to trans-mem.h.
4879         (byte_from_pos): Moved to stor-layout.h.
4880         (call_expr_flags): Moved to calls.h.
4881         (can_move_by_pieces): Moved to expr.h.
4882         (categorize_ctor_elements): Moved to expr.h.
4883         (change_decl_assembler_name): Moved to gcc-symtab.h.
4884         (combine_comparisons): Moved to fold-const.h.
4885         (complete_ctor_at_level_p): Moved to tree.h.
4886         (component_ref_field_offset): Moved to tree-dfa.h.
4887         (compute_builtin_object_size): Moved to tree-object-size.h.
4888         (compute_record_mode): Moved to stor-layout.h.
4889         (constant_boolean_node): Moved to fold-const.h.
4890         (constructor_static_from_elts_p): Moved to varasm.h.
4891         (cxx11_attribute_p): Moved to attribs.h.
4892         (debug_body): Moved to print-tree.h.
4893         (debug_find_tree): Moved to tree-inline.h.
4894         (debug_fold_checksum): Moved to fold-const.h.
4895         (debug_head): Moved to print-tree.h.
4896         (debug_head): Moved to print-tree.h.
4897         (debug_raw): Moved to print-tree.h.
4898         (debug_tree): Moved to print-tree.h.
4899         (debug_vec_tree): Moved to print-tree.h.
4900         (debug_verbose): Moved to print-tree.h.
4901         (debug_verbose): Moved to print-tree.h.
4902         (decl_attributes): Moved to attribs.h.
4903         (decl_binds_to_current_def_p): Moved to varasm.h.
4904         (decl_default_tls_model): Moved to varasm.h.
4905         (decl_replaceable_p): Moved to varasm.h.
4906         (div_if_zero_remainder): Moved to fold-const.h.
4907         (double_int mem_ref_offset): Moved to fold-const.h.
4908         (dump_addr): Moved to print-tree.h.
4909         (element_precision): Moved to machmode.h.
4910         (expand_dummy_function_end): Moved to function.h.
4911         (expand_function_end): Moved to function.h.
4912         (expand_function_start): Moved to function.h.
4913         (expand_label): Moved to stmt.h.
4914         (expr_first): Moved to tree-iterator.h.
4915         (expr_last): Moved to tree-iterator.h.
4916         (finalize_size_functions): Moved to stor-layout.h.
4917         (finish_builtin_struct): Moved to stor-layout.h.
4918         (finish_record_layout): Moved to stor-layout.h.
4919         (fixup_signed_type): Moved to stor-layout.h.
4920         (fixup_unsigned_type): Moved to stor-layout.h.
4921         (flags_from_decl_or_type): Moved to calls.h.
4922         (fold): Moved to fold-const.h.
4923         (fold_abs_const): Moved to fold-const.h.
4924         (fold_binary): Moved to fold-const.h.
4925         (fold_binary_loc): Moved to fold-const.h.
4926         (fold_binary_to_constant): Moved to fold-const.h.
4927         (fold_build1): Moved to fold-const.h.
4928         (fold_build1_initializer_loc): Moved to fold-const.h.
4929         (fold_build1_loc): Moved to fold-const.h.
4930         (fold_build1_stat_loc): Moved to fold-const.h.
4931         (fold_build2): Moved to fold-const.h.
4932         (fold_build2_initializer_loc): Moved to fold-const.h.
4933         (fold_build2_loc): Moved to fold-const.h.
4934         (fold_build2_stat_loc): Moved to fold-const.h.
4935         (fold_build3): Moved to fold-const.h.
4936         (fold_build3_loc): Moved to fold-const.h.
4937         (fold_build3_stat_loc): Moved to fold-const.h.
4938         (fold_build_call_array): Moved to fold-const.h.
4939         (fold_build_call_array_initializer): Moved to fold-const.h.
4940         (fold_build_call_array_initializer_loc): Moved to fold-const.h.
4941         (fold_build_call_array_loc): Moved to fold-const.h.
4942         (fold_build_cleanup_point_expr): Moved to fold-const.h.
4943         (fold_convert): Moved to fold-const.h.
4944         (fold_convert_loc): Moved to fold-const.h.
4945         (fold_convertible_p): Moved to fold-const.h.
4946         (fold_defer_overflow_warnings): Moved to fold-const.h.
4947         (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
4948         (fold_fma): Moved to fold-const.h.
4949         (fold_ignored_result): Moved to fold-const.h.
4950         (fold_indirect_ref): Moved to fold-const.h.
4951         (fold_indirect_ref_1): Moved to fold-const.h.
4952         (fold_indirect_ref_loc): Moved to fold-const.h.
4953         (fold_read_from_constant_string): Moved to fold-const.h.
4954         (fold_real_zero_addition_p): Moved to fold-const.h.
4955         (fold_single_bit_test): Moved to fold-const.h.
4956         (fold_strip_sign_ops): Moved to fold-const.h.
4957         (fold_ternary): Moved to fold-const.h.
4958         (fold_ternary_loc): Moved to fold-const.h.
4959         (fold_unary): Moved to tree-data-ref.h.
4960         (fold_unary_ignore_overflow): Moved to fold-const.h.
4961         (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
4962         (fold_unary_loc): Moved to fold-const.h.
4963         (fold_unary_to_constant): Moved to fold-const.h.
4964         (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
4965         (fold_undefer_overflow_warnings): Moved to fold-const.h.
4966         (folding_initializer): Moved to fold-const.h.
4967         (free_temp_slots): Moved to function.h.
4968         (generate_setjmp_warnings): Moved to function.h.
4969         (get_attribute_name): Moved to attribs.h.
4970         (get_identifier): Moved to stringpool.h.
4971         (get_identifier_with_length): Moved to stringpool.h.
4972         (get_inner_reference): Moved to tree.h.
4973         (gimple_alloca_call_p): Moved to calls.h.
4974         (gimplify_parameters): Moved to function.h.
4975         (highest_pow2_factor): Moved to expr.h.
4976         (indent_to): Moved to print-tree.h.
4977         (init_attributes): Moved to attribs.h.
4978         (init_dummy_function_start): Moved to function.h.
4979         (init_function_start): Moved to function.h.
4980         (init_inline_once): Moved to tree-inline.h.
4981         (init_object_sizes): Moved to tree-object-size.h.
4982         (init_temp_slots): Moved to function.h.
4983         (init_tree_optimization_optabs): Moved to optabs.h.
4984         (initialize_sizetypes): Moved to stor-layout.h.
4985         (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
4986         (initializer_constant_valid_p): Moved to varasm.h.
4987         (int_const_binop): Moved to fold-const.h.
4988         (internal_reference_types): Moved to stor-layout.h.
4989         (invert_tree_comparison): Moved to fold-const.h.
4990         (invert_truthvalue): Moved to fold-const.h.
4991         (invert_truthvalue_loc): Moved to fold-const.h.
4992         (is_tm_ending_fndecl): Moved to trans-mem.h.
4993         (is_tm_may_cancel_outer): Moved to trans-mem.h.
4994         (is_tm_pure): Moved to trans-mem.h.
4995         (is_tm_safe): Moved to trans-mem.h.
4996         (layout_decl): Moved to stor-layout.h.
4997         (layout_type): Moved to stor-layout.h.
4998         (lookup_attribute_spec): Moved to attribs.h.
4999         (make_accum_type): Moved to stor-layout.h.
5000         (make_decl_one_only): Moved to varasm.h.
5001         (make_decl_rtl): Moved to tree.h.
5002         (make_decl_rtl_for_debug): Moved to varasm.h.
5003         (make_fract_type): Moved to stor-layout.h.
5004         (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
5005         (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
5006         (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
5007         (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
5008         (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
5009         (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
5010         (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
5011         (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
5012         (make_range): Moved to fold-const.h.
5013         (make_range_step): Moved to fold-const.h.
5014         (make_sat_signed_accum_type): Moved to stor-layout.h.
5015         (make_sat_signed_fract_type): Moved to stor-layout.h.
5016         (make_sat_unsigned_accum_type): Moved to stor-layout.h.
5017         (make_sat_unsigned_fract_type): Moved to stor-layout.h.
5018         (make_signed_accum_type): Moved to stor-layout.h.
5019         (make_signed_fract_type): Moved to stor-layout.h.
5020         (make_signed_type): Moved to stor-layout.h.
5021         (make_unsigned_accum_type): Moved to stor-layout.h.
5022         (make_unsigned_fract_type): Moved to stor-layout.h.
5023         (make_unsigned_type): Moved to stor-layout.h.
5024         (mark_decl_referenced): Moved to varasm.h.
5025         (mark_referenced): Moved to varasm.h.
5026         (may_negate_without_overflow_p): Moved to fold-const.h.
5027         (maybe_get_identifier): Moved to stringpool.h.
5028         (merge_ranges): Moved to fold-const.h.
5029         (merge_weak): Moved to varasm.h.
5030         (mode_for_size_tree): Moved to stor-layout.h.
5031         (multiple_of_p): Moved to fold-const.h.
5032         (must_pass_in_stack_var_size): Moved to calls.h.
5033         (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
5034         (native_encode_expr): Moved to fold-const.h.
5035         (native_interpret_expr): Moved to fold-const.h.
5036         (non_lvalue): Moved to fold-const.h.
5037         (non_lvalue_loc): Moved to fold-const.h.
5038         (normalize_offset): Moved to stor-layout.h.
5039         (normalize_rli): Moved to stor-layout.h.
5040         (notice_global_symbol): Moved to varasm.h.
5041         (omit_one_operand): Moved to fold-const.h.
5042         (omit_one_operand_loc): Moved to fold-const.h.
5043         (omit_two_operands): Moved to fold-const.h.
5044         (omit_two_operands_loc): Moved to fold-const.h.
5045         (operand_equal_p): Moved to tree-data-ref.h.
5046         (parse_input_constraint): Moved to stmt.h.
5047         (parse_output_constraint): Moved to stmt.h.
5048         (place_field): Moved to stor-layout.h.
5049         (pop_function_context): Moved to function.h.
5050         (pop_temp_slots): Moved to function.h.
5051         (pos_from_bit): Moved to stor-layout.h.
5052         (preserve_temp_slots): Moved to function.h.
5053         (print_node): Moved to print-tree.h.
5054         (print_node_brief): Moved to print-tree.h.
5055         (print_rtl): Moved to rtl.h.
5056         (process_pending_assemble_externals): Moved to varasm.h.
5057         (ptr_difference_const): Moved to fold-const.h.
5058         (push_function_context): Moved to function.h.
5059         (push_struct_function): Moved to function.h.
5060         (push_temp_slots): Moved to function.h.
5061         (record_tm_replacement): Moved to trans-mem.h.
5062         (relayout_decl): Moved to stor-layout.h.
5063         (resolve_asm_operand_names): Moved to stmt.h.
5064         (resolve_unique_section): Moved to varasm.h.
5065         (rli_size_so_far): Moved to stor-layout.h.
5066         (rli_size_unit_so_far): Moved to stor-layout.h.
5067         (round_down): Moved to fold-const.h.
5068         (round_down_loc): Moved to fold-const.h.
5069         (round_up): Moved to fold-const.h.
5070         (round_up_loc): Moved to fold-const.h.
5071         (set_decl_incoming_rtl): Moved to emit-rtl.h.
5072         (set_decl_rtl): Moved to tree.h.
5073         (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
5074         (set_user_assembler_name): Moved to varasm.h.
5075         (setjmp_call_p): Moved to calls.h.
5076         (size_binop): Moved to fold-const.h.
5077         (size_binop_loc): Moved to fold-const.h.
5078         (size_diffop): Moved to fold-const.h.
5079         (size_diffop_loc): Moved to fold-const.h.
5080         (size_int_kind): Moved to fold-const.h.
5081         (stack_protect_epilogue): Moved to function.h.
5082         (start_record_layout): Moved to stor-layout.h.
5083         (supports_one_only): Moved to varasm.h.
5084         (swap_tree_comparison): Moved to fold-const.h.
5085         (tm_malloc_replacement): Moved to trans-mem.h.
5086         (tree build_fold_addr_expr_loc): Moved to fold-const.h.
5087         (tree build_invariant_address): Moved to fold-const.h.
5088         (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
5089         (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
5090         (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
5091         (tree_expr_nonnegative_p): Moved to fold-const.h.
5092         (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
5093         (tree_output_constant_def): Moved to varasm.h.
5094         (tree_overlaps_hard_reg_set): Moved to stmt.h.
5095         (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
5096         (tree_single_nonzero_warnv_p): Moved to fold-const.h.
5097         (tree_swap_operands_p): Moved to fold-const.h.
5098         (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
5099         (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
5100         (update_alignment_for_field): Moved to stor-layout.h.
5101         (use_register_for_decl): Moved to function.h.
5102         (variable_size): Moved to rtl.h.
5103         (vector_type_mode): Moved to stor-layout.h.
5104         * cgraph.h: Corresponding changes.
5105         * emit-rtl.h: Corresponding changes.
5106         * expr.h: Corresponding changes.
5107         * function.h: Corresponding changes.
5108         * optabs.h: Corresponding changes.
5109         * trans-mem.h: Corresponding changes.
5110         Protect against multiple inclusion.
5111         * tree-inline.h: Corresponding changes.
5112         * tree-iterator.h: Corresponding changes.
5113         * tree-dfa.h: Include expr.h.
5114         * tree-ssanames.h: Include stringpool.h.
5115         * attribs.h: New file.
5116         * calls.h: New file.
5117         * fold-const.h: New file.
5118         * gcc-symtab.h: New file.
5119         * print-rtl.h: New file.
5120         * print-tree.h: New file.
5121         * stmt.h: New file.
5122         * stor-layout.h: New file.
5123         * strinpool.h: New file.
5124         * tree-nested.h: New file
5125         * tree-object-size.h: New file.
5126         * varasm.h: New file.
5128 2013-11-14  Diego Novillo  <dnovillo@google.com>
5130         * alias.c: Include varasm.h.
5131         Include expr.h.
5132         * asan.c: Include calls.h.
5133         Include stor-layout.h.
5134         Include varasm.h.
5135         * attribs.c: Include stringpool.h.
5136         Include attribs.h.
5137         Include stor-layout.h.
5138         * builtins.c: Include stringpool.h.
5139         Include stor-layout.h.
5140         Include calls.h.
5141         Include varasm.h.
5142         Include tree-object-size.h.
5143         * calls.c: Include stor-layout.h.
5144         Include varasm.h.
5145         Include stringpool.h.
5146         Include attribs.h.
5147         * cfgexpand.c: Include stringpool.h.
5148         Include varasm.h.
5149         Include stor-layout.h.
5150         Include stmt.h.
5151         Include print-tree.h.
5152         * cgraph.c: Include varasm.h.
5153         Include calls.h.
5154         Include print-tree.h.
5155         * cgraphclones.c: Include stringpool.h.
5156         Include function.h.
5157         Include emit-rtl.h.
5158         Move inclusion of rtl.h earlier in the file.
5159         * cgraphunit.c: Include varasm.h.
5160         Include stor-layout.h.
5161         Include stringpool.h.
5162         * cilk-common.c: Include stringpool.h.
5163         Include stor-layout.h.
5164         * combine.c: Include stor-layout.h.
5165         * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
5166         Include stringpool.h.
5167         Include calls.h.
5168         * config/aarch64/aarch64.c: Include stringpool.h.
5169         Include stor-layout.h.
5170         Include calls.h.
5171         Include varasm.h.
5172         * config/alpha/alpha.c: Include stor-layout.h.
5173         Include calls.h.
5174         Include varasm.h.
5175         * config/arc/arc.c: Include varasm.h.
5176         Include stor-layout.h.
5177         Include stringpool.h.
5178         Include calls.h.
5179         * config/arm/arm.c: Include stringpool.h.
5180         Include stor-layout.h.
5181         Include calls.h.
5182         Include varasm.h.
5183         * config/avr/avr-c.c: Include stor-layout.h.
5184         * config/avr/avr-log.c: Include print-tree.h.
5185         * config/avr/avr.c: Include print-tree.h.
5186         Include calls.h.
5187         Include stor-layout.h.
5188         Include stringpool.h.
5189         * config/bfin/bfin.c: Include varasm.h.
5190         Include calls.h.
5191         * config/c6x/c6x.c: Include stor-layout.h.
5192         Include varasm.h.
5193         Include calls.h.
5194         Include stringpool.h.
5195         * config/cr16/cr16.c: Include stor-layout.h.
5196         Include calls.h.
5197         * config/cris/cris.c: Include varasm.h.
5198         Include stor-layout.h.
5199         Include calls.h.
5200         Include stmt.h.
5201         * config/darwin.c: Include stringpool.h.
5202         Include varasm.h.
5203         Include stor-layout.h.
5204         * config/epiphany/epiphany.c: Include stor-layout.h.
5205         Include varasm.h.
5206         Include calls.h.
5207         Include stringpool.h.
5208         * config/fr30/fr30.c: Include stor-layout.h.
5209         Include varasm.h.
5210         * config/frv/frv.c: Include varasm.h.
5211         Include stor-layout.h.
5212         Include stringpool.h.
5213         * config/h8300/h8300.c: Include stor-layout.h.
5214         Include varasm.h.
5215         Include calls.h.
5216         Include stringpool.h.
5217         * config/i386/i386.c: Include stringpool.h.
5218         Include attribs.h.
5219         Include calls.h.
5220         Include stor-layout.h.
5221         Include varasm.h.
5222         * config/i386/winnt-cxx.c: Include stringpool.h.
5223         Include attribs.h.
5224         * config/i386/winnt.c: Include stringpool.h.
5225         Include varasm.h.
5226         * config/ia64/ia64-c.c: Include stringpool.h.
5227         * config/ia64/ia64.c: Include stringpool.h.
5228         Include stor-layout.h.
5229         Include calls.h.
5230         Include varasm.h.
5231         * config/iq2000/iq2000.c: Include stor-layout.h.
5232         Include calls.h.
5233         Include varasm.h.
5234         * config/lm32/lm32.c: Include calls.h.
5235         * config/m32c/m32c.c: Include stor-layout.h.
5236         Include varasm.h.
5237         Include calls.h.
5238         * config/m32r/m32r.c: Include stor-layout.h.
5239         Include varasm.h.
5240         Include stringpool.h.
5241         Include calls.h.
5242         * config/m68k/m68k.c: Include calls.h.
5243         Include stor-layout.h.
5244         Include varasm.h.
5245         * config/mcore/mcore.c: Include stor-layout.h.
5246         Include varasm.h.
5247         Include stringpool.h.
5248         Include calls.h.
5249         * config/mep/mep.c: Include varasm.h.
5250         Include calls.h.
5251         Include stringpool.h.
5252         Include stor-layout.h.
5253         * config/microblaze/microblaze.c: Include varasm.h.
5254         Include stor-layout.h.
5255         Include calls.h.
5256         * config/mips/mips.c: Include varasm.h.
5257         Include stringpool.h.
5258         Include stor-layout.h.
5259         Include calls.h.
5260         * config/mmix/mmix.c: Include varasm.h.
5261         Include stor-layout.h.
5262         Include calls.h.
5263         * config/mn10300/mn10300.c: Include stor-layout.h.
5264         Include varasm.h.
5265         Include calls.h.
5266         * config/moxie/moxie.c: Include stor-layout.h.
5267         Include varasm.h.
5268         Include calls.h.
5269         * config/msp430/msp430.c: Include stor-layout.h.
5270         Include calls.h.
5271         * config/nds32/nds32.c: Include stor-layout.h.
5272         Include varasm.h.
5273         Include calls.h.
5274         * config/pa/pa.c: Include stor-layout.h.
5275         Include stringpool.h.
5276         Include varasm.h.
5277         Include calls.h.
5278         * config/pdp11/pdp11.c: Include stor-layout.h.
5279         Include varasm.h.
5280         Include calls.h.
5281         * config/picochip/picochip.c: Include calls.h.
5282         Include stor-layout.h.
5283         Include stringpool.h.
5284         Include varasm.h.
5285         * config/rl78/rl78.c: Include varasm.h.
5286         Include stor-layout.h.
5287         Include calls.h.
5288         * config/rs6000/rs6000-c.c: Include stor-layout.h.
5289         Include stringpool.h.
5290         * config/rs6000/rs6000.c: Include stringpool.h.
5291         Include stor-layout.h.
5292         Include calls.h.
5293         Include print-tree.h.
5294         Include varasm.h.
5295         * config/rx/rx.c: Include varasm.h.
5296         Include stor-layout.h.
5297         Include calls.h.
5298         * config/s390/s390.c: Include print-tree.h.
5299         Include stringpool.h.
5300         Include stor-layout.h.
5301         Include varasm.h.
5302         Include calls.h.
5303         * config/score/score.c: Include stringpool.h.
5304         Include calls.h.
5305         Include varasm.h.
5306         Include stor-layout.h.
5307         * config/sh/sh-c.c: Include stringpool.h.
5308         Include attribs.h.h.
5309         * config/sh/sh.c: Include stringpool.h.
5310         Include stor-layout.h.
5311         Include calls.h.
5312         Include varasm.h.
5313         * config/sol2-c.c: Include stringpool.h.
5314         Include attribs.h.
5315         * config/sol2-cxx.c: Include stringpool.h.
5316         * config/sol2.c: Include stringpool.h.
5317         Include varasm.h.
5318         * config/sparc/sparc.c: Include stringpool.h.
5319         Include stor-layout.h.
5320         Include calls.h.
5321         Include varasm.h.
5322         * config/spu/spu-c.c: Include stringpool.h.
5323         * config/spu/spu.c: Include stringpool.h.
5324         Include stor-layout.h.
5325         Include calls.h.
5326         Include varasm.h.
5327         * config/stormy16/stormy16.c: Include stringpool.h.
5328         Include stor-layout.h.
5329         Include varasm.h.
5330         Include calls.h.
5331         * config/tilegx/tilegx.c: Include stringpool.h.
5332         Include stor-layout.h.
5333         Include varasm.h.
5334         Include calls.h.
5335         * config/tilepro/tilepro.c: Include stringpool.h.
5336         Include stor-layout.h.
5337         Include varasm.h.
5338         Include calls.h.
5339         * config/v850/v850-c.c: Include stringpool.h.
5340         Include attribs.h.
5341         * config/v850/v850.c: Include stringpool.h.
5342         Include stor-layout.h.
5343         Include varasm.h.
5344         Include calls.h.
5345         * config/vax/vax.c: Include calls.h.
5346         Include varasm.h.
5347         * config/vms/vms.c: Include stringpool.h.
5348         * config/vxworks.c: Include stringpool.h.
5349         * config/xtensa/xtensa.c: Include stringpool.h.
5350         Include stor-layout.h.
5351         Include calls.h.
5352         Include varasm.h.
5353         * convert.c: Include stor-layout.h.
5354         * coverage.c: Include stringpool.h.
5355         Include stor-layout.h.
5356         * dbxout.c: Include varasm.h.
5357         Include stor-layout.h.
5358         * dojump.c: Include stor-layout.h.
5359         * dse.c: Include stor-layout.h.
5360         * dwarf2asm.c: Include stringpool.h.
5361         Include varasm.h.
5362         * dwarf2cfi.c: Include stor-layout.h.
5363         * dwarf2out.c: Include rtl.h.
5364         Include stringpool.h.
5365         Include stor-layout.h.
5366         Include varasm.h.
5367         Include function.h.
5368         Include emit-rtl.h.
5369         Move inclusion of rtl.h earlier in the file.
5370         * emit-rtl.c: Include varasm.h.
5371         * except.c: Include stringpool.h.
5372         Include stor-layout.h.
5373         * explow.c: Include stor-layout.h.
5374         * expmed.c: Include stor-layout.h.
5375         * expr.c: Include stringpool.h.
5376         Include stor-layout.h.
5377         Include attribs.h.
5378         Include varasm.h.
5379         * final.c: Include varasm.h.
5380         * fold-const.c: Include stor-layout.h.
5381         Include calls.h.
5382         Include tree-iterator.h.
5383         * function.c: Include stor-layout.h.
5384         Include varasm.h.
5385         Include stringpool.h.
5386         * genattrtab.c (write_header): Emit includes for varasm.h,
5387         stor-layout.h and calls.h.
5388         * genautomata.c (main): Likewise.
5389         * genemit.c: Likewise.
5390         * genopinit.c: Likewise.
5391         * genoutput.c (output_prologue): Likewise.
5392         * genpeep.c: Likewise.
5393         * genpreds.c (write_insn_preds_c): Likewise.
5394         * gengtype.c (open_base_files): Add stringpool.h.
5395         * gimple-expr.c: Include stringpool.h.
5396         Include stor-layout.h.
5397         * gimple-fold.c: Include stringpool.h.
5398         Include expr.h.
5399         Include stmt.h.
5400         Include stor-layout.h.
5401         * gimple-low.c: Include tree-nested.h.
5402         Include calls.h.
5403         * gimple-pretty-print.c: Include stringpool.h.
5404         * gimple-ssa-strength-reduction.c: Include stor-layout.h.
5405         Include expr.h.
5406         * gimple-walk.c: Include stmt.h.
5407         * gimple.c: Include calls.h.
5408         Include stmt.h.
5409         Include stor-layout.h.
5410         * gimplify.c: Include stringpool.h.
5411         Include calls.h.
5412         Include varasm.h.
5413         Include stor-layout.h.
5414         Include stmt.h.
5415         Include print-tree.h.
5416         Include expr.h.
5417         * gimplify-me.c: Include stmt.h
5418         Include stor-layout.h
5419         * internal-fn.c: Include stor-layout.h.
5420         * ipa-devirt.c: Include print-tree.h.
5421         Include calls.h.
5422         * ipa-inline-analysis.c: Include stor-layout.h.
5423         Include stringpool.h.
5424         Include print-tree.h.
5425         * ipa-inline.c: Include trans-mem.h.
5426         Include calls.h.
5427         * ipa-prop.c: Include expr.h.
5428         Include stor-layout.h.
5429         Include print-tree.h.
5430         * ipa-pure-const.c: Include print-tree.h.
5431         Include calls.h.
5432         * ipa-reference.c: Include calls.h.
5433         * ipa-split.c: Include stringpool.h.
5434         Include expr.h.
5435         Include calls.h.
5436         * ipa.c: Include calls.h.
5437         Include stringpool.h.
5438         * langhooks.c: Include stringpool.h.
5439         Include attribs.h.
5440         * lto-cgraph.c: Include stringpool.h.
5441         * lto-streamer-in.c: Include stringpool.h.
5442         * lto-streamer-out.c: Include stor-layout.h.
5443         Include stringpool.h.
5444         * omp-low.c: Include stringpool.h.
5445         Include stor-layout.h.
5446         Include expr.h.
5447         * optabs.c: Include stor-layout.h.
5448         Include stringpool.h.
5449         Include varasm.h.
5450         * passes.c: Include varasm.h.
5451         * predict.c: Include calls.h.
5452         * print-rtl.c: Include print-tree.h.
5453         * print-tree.c: Include varasm.h.
5454         Include print-rtl.h.
5455         Include stor-layout.h.
5456         * realmpfr.c: Include stor-layout.h.
5457         * reg-stack.c: Include varasm.h.
5458         * sdbout.c: Include varasm.h.
5459         Include stor-layout.h.
5460         * simplify-rtx.c: Include varasm.h.
5461         * stmt.c: Include varasm.h.
5462         Include stor-layout.h.
5463         * stor-layout.c: Include stor-layout.h.
5464         Include stringpool.h.
5465         Include varasm.h.
5466         Include print-tree.h.
5467         * symtab.c: Include rtl.h.
5468         Include print-tree.h.
5469         Include varasm.h.
5470         Include function.h.
5471         Include emit-rtl.h.
5472         * targhooks.c: Include stor-layout.h.
5473         Include varasm.h.
5474         * toplev.c: Include varasm.h.
5475         Include tree-inline.h.
5476         * trans-mem.c: Include calls.h.
5477         Include function.h.
5478         Include rtl.h.
5479         Include emit-rtl.h.
5480         * tree-affine.c: Include expr.h.
5481         * tree-browser.c: Include print-tree.h.
5482         * tree-call-cdce.c: Include stor-layout.h.
5483         * tree-cfg.c: Include trans-mem.h.
5484         Include stor-layout.h.
5485         Include print-tree.h.
5486         * tree-complex.c: Include stor-layout.h.
5487         * tree-data-ref.c: Include expr.h.
5488         * tree-dfa.c: Include stor-layout.h.
5489         * tree-eh.c: Include expr.h.
5490         Include calls.h.
5491         * tree-emutls.c: Include stor-layout.h.
5492         Include varasm.h.
5493         * tree-if-conv.c: Include stor-layout.h.
5494         * tree-inline.c: Include stor-layout.h.
5495         Include calls.h.
5496         * tree-loop-distribution.c: Include stor-layout.h.
5497         * tree-nested.c: Include stringpool.h.
5498         Include stor-layout.h.
5499         * tree-object-size.c: Include tree-object-size.h.
5500         * tree-outof-ssa.c: Include stor-layout.h.
5501         * tree-parloops.c: Include stor-layout.h.
5502         Include tree-nested.h.
5503         * tree-pretty-print.c: Include stor-layout.h.
5504         Include expr.h.
5505         * tree-profile.c: Include varasm.h.
5506         Include tree-nested.h.
5507         * tree-scalar-evolution.c: Include expr.h.
5508         * tree-sra.c: Include stor-layout.h.
5509         * tree-ssa-address.c: Include stor-layout.h.
5510         * tree-ssa-ccp.c: Include stor-layout.h.
5511         * tree-ssa-dce.c: Include calls.h.
5512         * tree-ssa-dom.c: Include stor-layout.h.
5513         * tree-ssa-forwprop.c: Include stor-layout.h.
5514         * tree-ssa-ifcombine.c: Include stor-layout.h.
5515         * tree-ssa-loop-ivopts.c: Include stor-layout.h.
5516         * tree-ssa-loop-niter.c: Include calls.h.
5517         Include expr.h.
5518         * tree-ssa-loop-prefetch.c: Include stor-layout.h.
5519         * tree-ssa-math-opts.c: Include stor-layout.h.
5520         * tree-ssa-operands.c: Include stmt.h.
5521         Include print-tree.h.
5522         * tree-ssa-phiopt.c: Include stor-layout.h.
5523         * tree-ssa-reassoc.c: Include stor-layout.h.
5524         * tree-ssa-sccvn.c: Include stor-layout.h.
5525         * tree-ssa-sink.c: Include stor-layout.h.
5526         * tree-ssa-strlen.c: Include stor-layout.h.
5527         * tree-ssa-structalias.c: Include stor-layout.h.
5528         Include stmt.h.
5529         * tree-ssa-tail-merge.c: Include stor-layout.h.
5530         Include trans-mem.h.
5531         * tree-ssa-uncprop.c: Include stor-layout.h.
5532         * tree-ssa.c: Include stor-layout.h.
5533         * tree-ssanames.c: Include stor-layout.h.
5534         * tree-streamer-in.c: Include stringpool.h.
5535         * tree-streamer-out.c: Include stor-layout.h.
5536         * tree-switch-conversion.c: Include varasm.h.
5537         Include stor-layout.h.
5538         * tree-tailcall.c: Include stor-layout.h.
5539         * tree-vect-data-refs.c: Include stor-layout.h.
5540         * tree-vect-generic.c: Include stor-layout.h.
5541         * tree-vect-loop.c: Include stor-layout.h.
5542         * tree-vect-patterns.c: Include stor-layout.h.
5543         * tree-vect-slp.c: Include stor-layout.h.
5544         * tree-vect-stmts.c: Include stor-layout.h.
5545         * tree-vectorizer.c: Include stor-layout.h.
5546         * tree-vrp.c: Include stor-layout.h.
5547         Include calls.h.
5548         * tree.c: Include stor-layout.h.
5549         Include calls.h.
5550         Include attribs.h.
5551         Include varasm.h.
5552         * tsan.c: Include expr.h.
5553         * ubsan.c: Include stor-layout.h.
5554         Include stringpool.h.
5555         * value-prof.c: Include tree-nested.h.
5556         Include calls.h.
5557         * var-tracking.c: Include varasm.h.
5558         Include stor-layout.h.
5559         * varasm.c: Include stor-layout.h.
5560         Include stringpool.h.
5561         Include gcc-symtab.h.
5562         Include varasm.h.
5563         * varpool.c: Include varasm.h.
5564         * vmsdbgout.c: Include varasm.h.
5565         * xcoffout.c: Include varasm.h.
5567 2013-11-14  Joern Rennecke  <joern.rennecke@embecosm.com>
5569         * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
5570         use (.&-4) idiom.
5572 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5574         * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
5576 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5577             Alan Modra  <amodra@gmail.com>
5579         * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
5580         (RS6000_SAVE_TOC): Remove.
5581         (RS6000_TOC_SAVE_SLOT): New macro.
5582         * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
5583         (rs6000_parm_start): Use it.
5584         (rs6000_function_arg_advance_1): Likewise.
5585         (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
5586         (rs6000_emit_epilogue): Likewise.
5587         (rs6000_call_aix): Likewise.
5588         (rs6000_output_function_prologue): Do not save/restore r11
5589         around calling _mcount for ABI_ELFv2.
5591 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5592             Alan Modra  <amodra@gmail.com>
5594         * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
5595         Add prototype.
5596         * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
5597         (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
5598         * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
5599         (rs6000_function_parms_need_stack): Likewise.
5600         (rs6000_reg_parm_stack_space): Likewise.
5601         (rs6000_function_arg): Do not replace BLKmode by Pmode when
5602         returning a register argument.
5604 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5605             Michael Gschwind  <mkg@us.ibm.com>
5607         * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
5608         (ALTIVEC_ARG_MAX_RETURN): Likewise.
5609         (FUNCTION_VALUE_REGNO_P): Use them.
5610         * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
5611         (rs6000_return_in_msb): New function.
5612         (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
5613         Handle aggregates of up to 16 bytes for ELFv2.
5614         (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
5616 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5617             Michael Gschwind  <mkg@us.ibm.com>
5619         * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
5620         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
5621         (rs6000_discover_homogeneous_aggregate): Likewise.
5622         (rs6000_function_arg_boundary): Handle homogeneous aggregates.
5623         (rs6000_function_arg_advance_1): Likewise.
5624         (rs6000_function_arg): Likewise.
5625         (rs6000_arg_partial_bytes): Likewise.
5626         (rs6000_psave_function_arg): Handle BLKmode arguments.
5628 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5629             Michael Gschwind  <mkg@us.ibm.com>
5631         * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
5632         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
5633         (rs6000_discover_homogeneous_aggregate): Likewise.
5634         (rs6000_function_arg_boundary): Handle homogeneous aggregates.
5635         (rs6000_function_arg_advance_1): Likewise.
5636         (rs6000_function_arg): Likewise.
5637         (rs6000_arg_partial_bytes): Likewise.
5638         (rs6000_psave_function_arg): Handle BLKmode arguments.
5640 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5642         * config/rs6000/rs6000.c (machine_function): New member
5643         r2_setup_needed.
5644         (rs6000_emit_prologue): Set r2_setup_needed if necessary.
5645         (rs6000_output_mi_thunk): Set r2_setup_needed.
5646         (rs6000_output_function_prologue): Output global entry point
5647         prologue and local entry point marker if needed for ABI_ELFv2.
5648         Output -mprofile-kernel code here.
5649         (output_function_profiler): Do not output -mprofile-kernel
5650         code here; moved to rs6000_output_function_prologue.
5651         (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
5653         (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
5654         (rs6000_output_function_entry): Likewise.
5655         (rs6000_assemble_integer): Likewise.
5656         (rs6000_elf_encode_section_info): Likewise.
5657         (rs6000_elf_declare_function_name): Do not create dot symbols
5658         or .opd section for ABI_ELFv2.
5660         (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
5661         (rs6000_trampoline_init): Likewise.
5662         (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
5664         (rs6000_call_aix): Handle ELFv2 indirect calls.  Do not check
5665         for function descriptors in ABI_ELFv2.
5667         * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
5668         on ABI_AIX only, not ABI_ELFv2.
5669         ("*call_value_indirect_aix<mode>"): Likewise.
5670         ("*call_indirect_elfv2<mode>"): New pattern.
5671         ("*call_value_indirect_elfv2<mode>"): Likewise.
5673         * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
5674         check for function descriptors in ABI_ELFv2.
5675         ("current_file_function_operand"): Likewise.
5677         * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
5678         (toc): Undefine.
5679         (FUNC_NAME): Define ELFv2 variant.
5680         (JUMP_TARGET): Likewise.
5681         (FUNC_START): Likewise.
5682         (HIDDEN_FUNC): Likewise.
5683         (FUNC_END): Likeiwse.
5685 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5687         * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
5688         and --with-abi=elfv2.
5689         * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
5690         * config/rs6000/rs6000.opt (mabi=elfv1): New option.
5691         (mabi=elfv2): Likewise.
5692         * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
5693         * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
5694         if !RS6000_BI_ARCH.
5695         (ELFv2_ABI_CHECK): New macro.
5696         (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
5697         rs6000_current_abi to ABI_AIX or ABI_ELFv2.
5698         (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
5699         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
5700         _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
5702         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
5703         (debug_stack_info): Likewise.
5704         (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
5705         (rs6000_legitimize_tls_address): Likewise.
5706         (rs6000_conditional_register_usage): Likewise.
5707         (rs6000_emit_move): Likewise.
5708         (init_cumulative_args): Likewise.
5709         (rs6000_function_arg_advance_1): Likewise.
5710         (rs6000_function_arg): Likewise.
5711         (rs6000_arg_partial_bytes): Likewise.
5712         (rs6000_output_function_entry): Likewise.
5713         (rs6000_assemble_integer): Likewise.
5714         (rs6000_savres_strategy): Likewise.
5715         (rs6000_stack_info): Likewise.
5716         (rs6000_function_ok_for_sibcall): Likewise.
5717         (rs6000_emit_load_toc_table): Likewise.
5718         (rs6000_savres_routine_name): Likewise.
5719         (ptr_regno_for_savres): Likewise.
5720         (rs6000_emit_prologue): Likewise.
5721         (rs6000_emit_epilogue): Likewise.
5722         (rs6000_output_function_epilogue): Likewise.
5723         (output_profile_hook): Likewise.
5724         (output_function_profiler): Likewise.
5725         (rs6000_trampoline_size): Likewise.
5726         (rs6000_trampoline_init): Likewise.
5727         (rs6000_elf_output_toc_section_asm_op): Likewise.
5728         (rs6000_elf_encode_section_info): Likewise.
5729         (rs6000_elf_reloc_rw_mask): Likewise.
5730         (rs6000_elf_declare_function_name): Likewise.
5731         (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
5732         except that rs6000_compat_align_parm is always assumed false.
5733         (rs6000_gimplify_va_arg): Likewise.
5734         (rs6000_call_aix): Update comment.
5735         (rs6000_sibcall_aix): Likewise.
5736         * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
5737         Treat ABI_ELFv2 the same as ABI_AIX.
5738         ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
5739         ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
5740         ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
5741         ("load_toc_aix_si"): Likewise.
5742         ("load_toc_aix_di"): Likewise.
5743         ("call"): Likewise.
5744         ("call_value"): Likewise.
5745         ("*call_local_aix<mode>"): Likewise.
5746         ("*call_value_local_aix<mode>"): Likewise.
5747         ("*call_nonlocal_aix<mode>"): Likewise.
5748         ("*call_value_nonlocal_aix<mode>"): Likewise.
5749         ("*call_indirect_aix<mode>"): Likewise.
5750         ("*call_value_indirect_aix<mode>"): Likewise.
5751         ("sibcall"): Likewise.
5752         ("sibcall_value"): Likewise.
5753         ("*sibcall_aix<mode>"): Likewise.
5754         ("*sibcall_value_aix<mode>"): Likewise.
5755         * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
5756         ("current_file_function_operand"): Likewise.
5758 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5760         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
5761         by making use of the fact that for vector / floating point arguments
5762         passed both in VRs/FPRs and in the fixed parameter area, the partial
5763         bytes mechanism is in fact not used.
5765 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5767         * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
5768         (rs6000_finish_function_arg): Likewise.
5769         (rs6000_function_arg): Use rs6000_psave_function_arg and
5770         rs6000_finish_function_arg to handle both vector and floating
5771         point arguments that are also passed in GPRs / the stack.
5773 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5775         * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
5776         (USE_ALTIVEC_FOR_ARG_P): Likewise.
5777         (rs6000_darwin64_record_arg_advance_recurse): Update uses.
5778         (rs6000_function_arg_advance_1):Likewise.
5779         (rs6000_darwin64_record_arg_recurse): Likewise.
5780         (rs6000_function_arg): Likewise.
5781         (rs6000_arg_partial_bytes): Likewise.
5783 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5785         * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
5786         "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
5787         (rs6000_savres_strategy): Likewise.
5788         (rs6000_return_addr): Likewise.
5789         (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
5790         testing for ABI_V4 (since ABI_DARWIN is impossible here).
5791         (rs6000_emit_prologue): Likewise.
5792         (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
5793         (rs6000_elf_declare_function_name): Remove duplicated test.
5794         * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
5795         for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
5796         ("load_toc_v4_PIC_1_normal"): Likewise.
5797         ("load_toc_v4_PIC_1_476"): Likewise.
5798         ("load_toc_v4_PIC_1b"): Likewise.
5799         ("load_toc_v4_PIC_1b_normal"): Likewise.
5800         ("load_toc_v4_PIC_1b_476"): Likewise.
5801         ("load_toc_v4_PIC_2"): Likewise.
5802         ("load_toc_v4_PIC_3b"): Likewise.
5803         ("load_toc_v4_PIC_3c"): Likewise.
5804         * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
5805         (RS6000_SAVE_AREA): Likewise.
5806         (FP_ARG_MAX_REG): Likewise.
5807         (RETURN_ADDRESS_OFFSET): Likewise.
5808         * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
5809         of ABI_AIX.
5810         (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
5811         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
5813 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5815         * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
5816         (rs6000_call_aix): ... this.  Handle both direct and indirect calls.
5817         Create call insn directly instead of via various gen_... routines.
5818         Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
5819         (rs6000_sibcall_aix): New function.
5820         * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
5821         (TOC_SAVE_OFFSET_64BIT): Likewise.
5822         (AIX_FUNC_DESC_TOC_32BIT): Likewise.
5823         (AIX_FUNC_DESC_TOC_64BIT): Likewise.
5824         (AIX_FUNC_DESC_SC_32BIT): Likewise.
5825         (AIX_FUNC_DESC_SC_64BIT): Likewise.
5826         ("call" expander): Call rs6000_call_aix.
5827         ("call_value" expander): Likewise.
5828         ("call_indirect_aix<ptrsize>"): Replace this pattern ...
5829         ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
5830         ("*call_indirect_aix<mode>"): ... by this insn pattern.
5831         ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
5832         ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
5833         ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
5834         ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
5835         ("*call_nonlocal_aix<mode>"): ... this pattern.
5836         ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
5837         ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
5838         ("*call_local_aix<mode>"): New insn pattern.
5839         ("*call_value_local_aix<mode>"): Likewise.
5840         ("sibcall" expander): Call rs6000_sibcall_aix.
5841         ("sibcall_value" expander): Likewise.  Move earlier in file.
5842         ("*sibcall_nonlocal_aix<mode>"): Replace by ...
5843         ("*sibcall_aix<mode>"): ... this pattern.
5844         ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
5845         ("*sibcall_value_aix<mode>"): ... this pattern.
5846         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
5847         (rs6000_call_aix): Add prototype.
5848         (rs6000_sibcall_aix): Likewise.
5850 2013-11-14  Jakub Jelinek  <jakub@redhat.com>
5852         PR sanitizer/59122
5853         * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
5854         isn't confused by the artificial decl.
5856 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5858         * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
5859         RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
5860         Instead, add USEs of all modified call-saved CR fields to the
5861         insn storing the result to the stack slot, and provide an
5862         appropriate REG_FRAME_RELATED_EXPR for that insn.
5863         * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
5864         * config/rs6000/predicates.md ("crsave_operation"): New predicate.
5866 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5867             Alan Modra  <amodra@gmail.com>
5869         * function.c (assign_parms): Use all.reg_parm_stack_space instead
5870         of re-evaluating REG_PARM_STACK_SPACE target macro.
5871         (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE.  Use it
5872         instead of evaluating target macro REG_PARM_STACK_SPACE every time.
5873         (assign_parm_find_entry_rtl): Update call.
5874         * calls.c (initialize_argument_information): Update call.
5875         (emit_library_call_value_1): Likewise.
5876         * expr.h (locate_and_pad_parm): Update prototype.
5878 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5880         * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
5881         arguments.
5883 2013-11-14  DJ Delorie  <dj@redhat.com>
5885         * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
5886         to 16 bits.
5888 2013-11-14  Jeff Law  <law@redhat.com>
5890         * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
5891         EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
5893 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
5895         * doc/invoke.texi: Update documentation for AArch64's -mcpu
5896         and -mtune options.
5898 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
5900         * config/aarch64/aarch64-cores.def (example-1): Remove.
5901         (example-2): Likewise.
5902         * config/aarch64/aarch64-tune.md: Regenerate.
5903         * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
5904         (generic_sched): Remove "large", "small".
5905         * config/aarch64/large.md: Delete.
5906         * config/aarch64/small.md: Delete.
5908 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
5910         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
5911         * config/aarch64/aarch64-tune.md: Regenerate.
5912         * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
5913         (generic_sched): "no" if we are tuning for cortexa15.
5914         * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
5915         relative path.
5917 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
5919         * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
5920         * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
5921         * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
5922         (all_cores): Use cortexa53 when tuning for "generic".
5923         (aarch64_override_options): Fix comment.
5924         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
5925         * config/aarch64/aarch64-generic.md: Delete.
5927 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
5929         * config/aarch64/aarch64.c (all_architectures): Remove "generic".
5931 2013-11-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5933         * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
5934         (generic_rtx_cost_table): Remove.
5935         (aarch64_rtx_costs): Use fields from cpu_cost_table.
5936         * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
5937         insn_extra_cost.
5938         (cpu_rtx_cost_table): Remove.
5940 2013-11-14  Julian Brown  <julian@codesourcery.com>
5941             Joey Ye  <joey.ye@arm.com>
5943         * config/arm/arm.c (arm_cortex_m_branch_cost): New.
5944         (arm_v7m_tune): New.
5945         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
5946         arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
5947         arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
5948         * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
5950 2013-11-14  Kirill Yukhin  <kirill.yukhin@intel.com>
5952         PR target/57491
5953         * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
5954         flag setting.
5956 2013-11-14  Jakub Jelinek  <jakub@redhat.com>
5957             Uros Bizjak  <ubizjak@gmail.com>
5959         PR target/59101
5960         * config/i386/i386.md (*anddi_2): Only allow CCZmode if
5961         operands[2] satisfies_constraint_Z that might have bit 31 set.
5963 2013-11-13  Jeff Law  <law@redhat.com>
5965         PR tree-optimization/59102
5966         * gimple-ssa-isolate-paths.c
5967         (insert_trap_and_remove_trailing_statments): Ensure STMT is a
5968         gimple assignment before looking at gimple_assign_lhs.
5970 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
5972         * ira.c: Add comment about threads at the top of file.
5974 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
5976         * ira-color.c (coalesce_allocnos): Don't allocate and free
5977         sorted_copies.
5979 2013-11-14  Tom de Vries  <tom@codesourcery.com>
5981         * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
5982         equality for GIMPLE_ASSIGN.
5984 2013-11-14  Tom de Vries  <tom@codesourcery.com>
5986         * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
5987         function out of ...
5988         (gimple_equal_p): ... here.
5990 2013-11-14  Tom de Vries  <tom@codesourcery.com>
5992         * trans-mem.c (is_tm_ending): New function.
5993         * gimple.h (is_tm_ending): Declare.
5994         * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
5995         BUILT_IN_TM_COMMIT.
5996         (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
5998 2013-11-14  Tom de Vries  <tom@codesourcery.com>
6000         * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
6002 2013-11-13  Andrew MacLeod  <amacleod@redhat.com>
6004         * gimple-walk.h: New File.  Relocate prototypes from gimple.h.
6005         (struct walk_stmt_info):  Relocate here from gimple.h.
6006         * gimple-iterator.h: New File.  Relocate prototypes from gimple.h.
6007         (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
6008         (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
6009         gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
6010         gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
6011         gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
6012         gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
6013         * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
6014         (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
6015         gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
6016         gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
6017         gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
6018         gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
6019         (struct walk_stmt_info): Move to gimple-walk.h.
6020         (gimple_seq_set_location): Move to gimple.c
6021         * gimple-walk.c: New File.
6022         (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
6023         walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
6024         walk_stmt_load_store_ops): Relocate here from gimple.c.
6025         * gimple-iterator.c: Include gimple-iterator.h.
6026         * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
6027         walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
6028         walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
6029         gimple-walk.c.
6030         (gimple_seq_set_location): Relocate from gimple.h.
6031         * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
6032         * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
6033         * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
6034         * Makefile.in (OBJS): Add gimple-walk.o
6035         * asan.c: Update Include list as required for gimple-iterator.h and
6036         gimple-walk.h.
6037         * cfgexpand.c: Likewise.
6038         * cfgloop.c: Likewise.
6039         * cfgloopmanip.c: Likewise.
6040         * cgraph.c: Likewise.
6041         * cgraphbuild.c: Likewise.
6042         * cgraphunit.c: Likewise.
6043         * gimple-fold.c: Likewise.
6044         * gimple-low.c: Likewise.
6045         * gimple-pretty-print.c: Likewise.
6046         * gimple-ssa-isolate-paths.c: Likewise.
6047         * gimple-ssa-strength-reduction.c: Likewise.
6048         * gimple-streamer-in.c: Likewise.
6049         * gimple-streamer-out.c: Likewise.
6050         * gimplify.c: Likewise.
6051         * graphite-blocking.c: Likewise.
6052         * graphite-clast-to-gimple.c: Likewise.
6053         * graphite-dependences.c: Likewise.
6054         * graphite-interchange.c: Likewise.
6055         * graphite-optimize-isl.c: Likewise.
6056         * graphite-poly.c: Likewise.
6057         * graphite-scop-detection.c: Likewise.
6058         * graphite-sese-to-poly.c: Likewise.
6059         * graphite.c: Likewise.
6060         * ipa-inline-analysis.c: Likewise.
6061         * ipa-profile.c: Likewise.
6062         * ipa-prop.c: Likewise.
6063         * ipa-pure-const.c: Likewise.
6064         * ipa-split.c: Likewise.
6065         * lto-streamer-in.c: Likewise.
6066         * lto-streamer-out.c: Likewise.
6067         * omp-low.c: Likewise.
6068         * predict.c: Likewise.
6069         * profile.c: Likewise.
6070         * sese.c: Likewise.
6071         * tracer.c: Likewise.
6072         * trans-mem.c: Likewise.
6073         * tree-call-cdce.c: Likewise.
6074         * tree-cfg.c: Likewise.
6075         * tree-cfgcleanup.c: Likewise.
6076         * tree-complex.c: Likewise.
6077         * tree-data-ref.c: Likewise.
6078         * tree-dfa.c: Likewise.
6079         * tree-eh.c: Likewise.
6080         * tree-emutls.c: Likewise.
6081         * tree-if-conv.c: Likewise.
6082         * tree-inline.c: Likewise.
6083         * tree-into-ssa.c: Likewise.
6084         * tree-loop-distribution.c: Likewise.
6085         * tree-nested.c: Likewise.
6086         * tree-nrv.c: Likewise.
6087         * tree-object-size.c: Likewise.
6088         * tree-outof-ssa.c: Likewise.
6089         * tree-parloops.c: Likewise.
6090         * tree-predcom.c: Likewise.
6091         * tree-profile.c: Likewise.
6092         * tree-scalar-evolution.c: Likewise.
6093         * tree-sra.c: Likewise.
6094         * tree-ssa-ccp.c: Likewise.
6095         * tree-ssa-coalesce.c: Likewise.
6096         * tree-ssa-copy.c: Likewise.
6097         * tree-ssa-copyrename.c: Likewise.
6098         * tree-ssa-dce.c: Likewise.
6099         * tree-ssa-dom.c: Likewise.
6100         * tree-ssa-dse.c: Likewise.
6101         * tree-ssa-forwprop.c: Likewise.
6102         * tree-ssa-ifcombine.c: Likewise.
6103         * tree-ssa-live.c: Likewise.
6104         * tree-ssa-loop-ch.c: Likewise.
6105         * tree-ssa-loop-im.c: Likewise.
6106         * tree-ssa-loop-ivcanon.c: Likewise.
6107         * tree-ssa-loop-ivopts.c: Likewise.
6108         * tree-ssa-loop-manip.c: Likewise.
6109         * tree-ssa-loop-niter.c: Likewise.
6110         * tree-ssa-loop-prefetch.c: Likewise.
6111         * tree-ssa-loop.c: Likewise.
6112         * tree-ssa-math-opts.c: Likewise.
6113         * tree-ssa-phiopt.c: Likewise.
6114         * tree-ssa-phiprop.c: Likewise.
6115         * tree-ssa-pre.c: Likewise.
6116         * tree-ssa-propagate.c: Likewise.
6117         * tree-ssa-reassoc.c: Likewise.
6118         * tree-ssa-sink.c: Likewise.
6119         * tree-ssa-strlen.c: Likewise.
6120         * tree-ssa-structalias.c: Likewise.
6121         * tree-ssa-tail-merge.c: Likewise.
6122         * tree-ssa-ter.c: Likewise.
6123         * tree-ssa-threadedge.c: Likewise.
6124         * tree-ssa-threadupdate.c: Likewise.
6125         * tree-ssa-uncprop.c: Likewise.
6126         * tree-ssa-uninit.c: Likewise.
6127         * tree-ssa.c: Likewise.
6128         * tree-stdarg.c: Likewise.
6129         * tree-switch-conversion.c: Likewise.
6130         * tree-tailcall.c: Likewise.
6131         * tree-vect-data-refs.c: Likewise.
6132         * tree-vect-generic.c: Likewise.
6133         * tree-vect-loop-manip.c: Likewise.
6134         * tree-vect-loop.c: Likewise.
6135         * tree-vect-patterns.c: Likewise.
6136         * tree-vect-slp.c: Likewise.
6137         * tree-vect-stmts.c: Likewise.
6138         * tree-vectorizer.c: Likewise.
6139         * tree-vrp.c: Likewise.
6140         * tree.c: Likewise.
6141         * tsan.c: Likewise.
6142         * value-prof.c: Likewise.
6143         * vtable-verify.c: Likewise.
6145 2013-11-13  Steven Bosscher  <steven@gcc.gnu.org>
6147         * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
6148         fix.
6150 2013-11-13  Jeff Law  <law@redhat.com>
6152         * PR middle-end/59119
6153         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
6154         function, extracted from gimple_ssa_isolate_erroneous_paths.
6155         (find_explicit_erroneous_behaviour): Similarly.
6156         (insert_trap_and_remove_trailing_statements): Remove statements
6157         in reverse order.
6159 2013-11-13  Steven Bosscher  <steven@gcc.gnu.org>
6161         * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
6162         Make that check explicit.  BB_HEAD cannot be NULL, remove check for it.
6163         * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
6164         looking at INSN_CODE.
6165         * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
6166         active_insn_p object, respect basic block boundaries.
6167         * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
6168         follows immediately after the jump table data label.
6169         * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
6170         * config/sh/sh.c (barrier_align): Likewise.  Rearrange code such
6171         that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
6173 2013-11-13  Teresa Johnson  <tejohnson@google.com>
6175         PR ipa/58862
6176         * predict.c (drop_profile): Error is currently too strict.
6177         (handle_missing_profiles): Pass call_count to drop_profile.
6179 2013-11-13  Teresa Johnson  <tejohnson@google.com>
6181         PR ipa/58862
6182         * ipa-inline.c (edge_badness): Fix overflow.
6184 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
6186         PR rtl-optimization/59036
6187         * ira-color.c (struct allocno_color_data): Add new members
6188         first_thread_allocno, next_thread_allocno, thread_freq.
6189         (sorted_copies): New static var.
6190         (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
6191         (allocno_thread_conflict_p, merge_threads)
6192         (form_threads_from_copies, form_threads_from_bucket)
6193         (form_threads_from_colorable_allocno, init_allocno_threads): New
6194         functions.
6195         (bucket_allocno_compare_func): Add comparison by thread frequency
6196         and threads.
6197         (add_allocno_to_ordered_bucket): Rename to
6198         add_allocno_to_ordered_colorable_bucket.  Remove parameter.
6199         (push_only_colorable): Call form_threads_from_bucket.
6200         (color_pass): Call init_allocno_threads.  Use
6201         consideration_allocno_bitmap instead of coloring_allocno_bitmap
6202         for nuillify allocno color data.
6203         (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
6204         (coalesce_allocnos): Use static sorted copies.
6206 2013-11-13  Jakub Jelinek  <jakub@redhat.com>
6208         * passes.c (execute_todo): Don't call do_per_function if
6209         flags are zero.
6210         (execute_one_ipa_transform_pass, execute_one_pass): Don't call
6211         execute_function_dump if dump_file is NULL.
6213 2013-11-13  Martin Jambor  <mjambor@suse.cz>
6215         * cgraph.c (cgraph_get_create_node): Do what
6216         cgraph_get_create_real_symbol_node used to do.
6217         (cgraph_get_create_real_symbol_node): Removed.  Changed all users to
6218         call cgraph_get_create_node.
6219         * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
6220         * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
6221         cgraph_get_create_node.  Assert we get a node.
6223 2013-11-13  Tejas Belagod  <tejas.belagod@arm.com>
6225         * config/aarch64/aarch64-simd.md (vec_extract): New.
6227 2013-11-13  Tejas Belagod  <tejas.belagod@arm.com>
6229         * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
6230         the constraint.
6232 2013-11-13  Eric Botcazou  <ebotcazou@adacore.com>
6234         * cfgexpand.c (expand_used_vars): Allocate space for partitions based
6235         on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
6236         or if optimization is enabled.
6237         * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
6238         require that all the names based on a PARM_DECL or a RESULT_DECL that
6239         isn't ignored for debug info be coalesced.
6241 2013-11-13  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
6243         * config/c6x/c6x.c: Include "gimple-expr.h".
6245 2013-11-13  Richard Biener  <rguenther@suse.de>
6247         * gimple-streamer-out.c (output_gimple_stmt): Also wrap
6248         decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
6249         * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
6250         dealing with type mismatches inside component reference chains.
6252 2013-11-13  Marc Glisse  <marc.glisse@inria.fr>
6254         PR tree-optimization/59077
6255         * ipa-pure-const.c (better_state): Update *state.
6257 2013-11-13  Christophe Lyon  <christophe.lyon@linaro.org>
6259         * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
6260         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
6261         Update offset calculations.
6263 2013-11-13  Eric Botcazou  <ebotcazou@adacore.com>
6265         PR ada/35998
6266         * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
6267         for fields.  Do not add the attribute if the size is negative.
6269 2013-11-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6271         * config/arm/arm.c: Include aarch-cost-tables.h.
6272         (generic_extra_costs): Move from here...
6273         * config/arm/aarch-cost-tables.h: ... To here.  New file.
6275 2013-11-13  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6276             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6277             Sergey Lega  <sergey.s.lega@intel.com>
6278             Anna Tikhonova  <anna.tikhonova@intel.com>
6279             Ilya Tocar  <ilya.tocar@intel.com>
6280             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6281             Ilya Verbin  <ilya.verbin@intel.com>
6282             Kirill Yukhin  <kirill.yukhin@intel.com>
6283             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6285         * config/i386/i386.c (ix86_print_operand): Support z-masking.
6286         * config/i386/predicate.md (const_0_to_4_operand): New.
6287         (const_0_to_5_operand): Ditto.
6288         * config/i386/sse.md (UNSPEC_COMPRESS): New.
6289         (UNSPEC_COMPRESS_STORE): Ditto.
6290         (UNSPEC_EXPAND): Ditto.
6291         (UNSPEC_EMBEDDED_ROUNDING): Ditto.
6292         (define_mode_attr ssescalarsize): Ditto.
6293         (avx512f_load<mode>_mask): Ditto.
6294         (avx512f_store<mode>_mask): Ditto.
6295         (avx512f_storedqu<mode>_mask): Ditto.
6296         (avx512f_vmcmp<mode>3_mask): Ditto.
6297         (avx512f_fmadd_<mode>_mask): Ditto.
6298         (avx512f_fmadd_<mode>_mask3): Ditto.
6299         (avx512f_fmsub_<mode>_mask): Ditto.
6300         (avx512f_fmsub_<mode>_mask3): Ditto.
6301         (avx512f_fnmadd_<mode>_mask): Ditto.
6302         (avx512f_fnmadd_<mode>_mask3): Ditto.
6303         (avx512f_fnmsub_<mode>_mask): Ditto.
6304         (avx512f_fnmsub_<mode>_mask3): Ditto.
6305         (avx512f_fmaddsub_<mode>_mask): Ditto.
6306         (avx512f_fmaddsub_<mode>_mask3): Ditto.
6307         (avx512f_fmsubadd_<mode>_mask): Ditto.
6308         (avx512f_fmsubadd_<mode>_mask3): Ditto.
6309         (vec_unpacku_float_lo_v16si): Ditto.
6310         (avx512f_vextract<shuffletype>32x4_mask): Ditto.
6311         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
6312         (avx512f_vextract<shuffletype>64x4_mask): Ditto.
6313         (vec_extract_lo_<mode>_maskm): Ditto.
6314         (vec_extract_hi_<mode>_maskm): Ditto.
6315         (avx512f_vternlog<mode>_mask): Ditto.
6316         (avx512f_shufps512_mask): Ditto.
6317         (avx512f_fixupimm<mode>_mask): Ditto.
6318         (avx512f_shufpd512_mask): Ditto.
6319         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
6320         (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
6321         (*avx512f_<code>v8div16qi2_store_mask): Ditto.
6322         (ashr<mode>3<mask_name>): Ditto.
6323         (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
6324         (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
6325         (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
6326         (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
6327         (avx512f_pshufdv3_mask): Ditto.
6328         (avx512f_perm<mode>_mask): Ditto.
6329         (avx512f_vpermi2var<mode>3_mask): Ditto.
6330         (avx512f_vpermt2var<mode>3_mask): Ditto.
6331         (avx512f_compress<mode>_mask): Ditto.
6332         (avx512f_compressstore<mode>_mask): Ditto.
6333         (avx512f_expand<mode>_mask): Ditto.
6334         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
6335         to support masking.
6336         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
6337         (<plusminus_insn><mode>3<mask_name>): Ditto.
6338         (*<plusminus_insn><mode>3<mask_name>): Ditto.
6339         (mul<mode>3<mask_name>): Ditto.
6340         (*mul<mode>3<mask_name>): Ditto.
6341         (<sse>_div<mode>3<mask_name>): Ditto.
6342         (<mask_codefor>rcp14<mode><mask_name>): Ditto.
6343         (<sse>_sqrt<mode>2<mask_name>): Ditto.
6344         (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
6345         (<code><mode>3<mask_name>/smaxmin): Ditto.
6346         (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
6347         (*<code><mode>3<mask_name>/smaxmin): Ditto.
6348         (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
6349         (ufloatv16siv16sf2<mask_name>): Ditto.
6350         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
6351         (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
6352         (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
6353         (float<si2dfmodelower><mode>2<mask_name>): Ditto.
6354         (ufloatv8siv8df<mask_name>): Ditto.
6355         (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
6356         (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
6357         (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
6358         (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
6359         (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
6360         (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
6361         (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
6362         (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
6363         (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
6364         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
6365         (vec_extract_lo_<mode><mask_name>): Ditto.
6366         (vec_extract_hi_<mode><mask_name>): Ditto.
6367         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
6368         (avx512f_movddup512<mask_name>): Ditto.
6369         (avx512f_unpcklpd512<mask_name>): Ditto.
6370         (*avx512f_unpcklpd512<mask_name>): Ditto.
6371         (*avx512f_vmscalef<mode>): Ditto.
6372         (avx512f_scalef<mode><mask_name>): Ditto.
6373         (avx512f_getexp<mode><mask_name>): Ditto.
6374         (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
6375         (avx512f_rndscale<mode><mask_name>): Ditto.
6376         (avx512f_shufps512_1<mask_name>): Ditto.
6377         (avx512f_shufpd512_1<mask_name>): Ditto.
6378         (<plusminus_insn><mode>3<mask_name>): Ditto.
6379         (*<plusminus_insn><mode>3<mask_name>): Ditto.
6380         (vec_widen_umult_even_v16si<mask_name>): Ditto.
6381         (*vec_widen_umult_even_v16si<mask_name>): Ditto.
6382         (vec_widen_smult_even_v16si<mask_name>): Ditto.
6383         (*vec_widen_smult_even_v16si<mask_name>): Ditto.
6384         (mul<mode>3<mask_name>): Ditto.
6385         (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
6386         (<shift_insn><mode>3<mask_name>): Ditto.
6387         (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
6388         (avx512f_<rotate><mode><mask_name>): Ditto.
6389         (<code><mode>3<mask_name>/maxmin): Ditto.
6390         (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
6391         (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
6392         (*andnot<mode>3<mask_name>): Ditto.
6393         (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
6394         (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
6395         (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
6396         (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
6397         (vec_set_lo_<mode><mask_name>): Ditto.
6398         (vec_set_hi_<mode><mask_name>): Ditto.
6399         (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
6400         (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
6401         (avx512f_pshufd_1<mask_name>): Ditto.
6402         (<mask_codefor>abs<mode>2<mask_name>): Ditto.
6403         (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
6404         (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
6405         (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
6406         (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
6407         (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
6408         (avx512er_exp2<mode><mask_name>): Ditto.
6409         (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
6410         (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
6411         (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
6412         (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
6413         (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
6414         (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
6415         (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
6416         (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
6417         (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
6418         (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
6419         (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
6420         (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
6421         (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
6422         (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
6423         (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
6424         (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
6425         (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
6426         (avx512f_getmant<mode><mask_name>): Ditto.
6427         (clz<mode>2<mask_name>): Ditto.
6428         (<mask_codefor>conflict<mode><mask_name>): Ditto.
6429         (*srcp14<mode>): Remove visibility.
6430         (*rsqrt14<mode>): Ditto.
6431         (*fma_fmsub_<mode>): Ditto.
6432         (*fma_fnmadd_<mode>): Ditto.
6433         (*avx512f_rndscale<mode>): Ditto.
6434         * config/i386/subst.md: New file.
6436 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
6438         * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
6439         * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
6440         (atomic_load_explicit, atomic_exchange_explicit)
6441         (atomic_compare_exchange_strong_explicit)
6442         (atomic_compare_exchange_weak_explicit): Use __auto_type to
6443         declare variable initialized with PTR argument.
6445 2013-11-12  Jeff Law  <law@redhat.com>
6447         * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
6448         backedge_seen_p.  Set, use and pass it to children appropriately.
6449         (thread_through_normal_block): Similarly.
6450         (thread_across_edge): Similarly.
6452         * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
6453         memory references as volatile.
6454         (insert_trap_and_remove_trailing_statements): Fix comment.
6456 2013-11-12  Vladimir Makarov  <vmakarov@redhat.com>
6458         PR other/58712
6459         * ira-costs.c (record_operand_costs): Check operands number for
6460         the single set.
6462 2013-11-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
6464         PR target/59054
6465         * config/rs6000/rs6000.md (movdi_internal32): Eliminate
6466         constraints that would allow DImode into the traditional Altivec
6467         registers, but cause undesirable code generation when loading 0 as
6468         a constant.
6469         (movdi_internal64): Likewise.
6470         (cmp<mode>_fpr): Do not use %x for CR register output.
6471         (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
6472         -mallow-upper-sf debug switches are used.
6474 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
6476         * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
6477         create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
6478         Relocate prototypes from gimple.h.
6479         * gimplify.h: New File.  Relocate some prototypes from gimple.h here.
6480         (gimple_predicate, enum fallback, enum gimplify_status): Relocate
6481         from gimple.h.
6482         * gimple.h: Move some prototypes to gimplify.h.
6483         (gimple_predicate, enum fallback, enum gimplify_status): Move to
6484         gimplify.h.
6485         (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
6486         Relocate from gimpify.c.
6487         * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
6488         create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
6489         is_gimple_reg_rhs) Relocate from gimplify.c.
6490         * gimplify.c (mark_addressable): Move to gimple-expr.c.
6491         (gimple_seq_add_stmt_without_update): Move to gimple.c.
6492         (remove_suffix, tmp_var_id_num, create_tmp_var_name,
6493         create_tmp_var_raw, create_tmp_var, create_tmp_reg,
6494         is_gimple_reg_rhs): Move to gimple-expr.c.
6495         (should_carry_location_p): Move to gimple.c.
6496         (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
6497         to gimple.h.
6498         (annotate_one_with_location, annotate_all_with_location_after,
6499         annotate_all_with_location): Move to gimple.c.
6500         (compare_case_labels, sort_case_labels,
6501         preprocess_case_label_vec_for_gimple): Move to gimple.c.
6502         (rhs_predicate_for): Make static.
6503         (gimplify_assign): Relocate from gimple.c.
6504         * gimple.c (gimplify_assign): Move to gimplify.c.
6505         (gimple_seq_add_stmt_without_update, should_carry_location_p,
6506         annotate_one_with_location, annotate_all_with_location_after,
6507         annotate_all_with_location, compare_case_labels, sort_case_labels,
6508         preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
6509         * tree.h (unshare_expr, unshare_expr_without_location,
6510         mark_addressable): Move prototypes to gimplify.h.
6511         * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
6512         tmp_var_id_num
6513         * asan.c: Include gimplify.h rather than gimple.h.
6514         * cfgloopmanip.c: Likewise.
6515         * cgraphunit.c: Likewise.
6516         * cilk-common.c: Likewise.
6517         * dwarf2out.c: Dont include gimple.h.
6518         * fold-const.c: Include gimplify.h rather than gimple.h.
6519         * function.c: Likewise.
6520         * gimple-fold.c: Likewise.
6521         * gimple-ssa-strength-reduction.c: Likewise.
6522         * graphite-clast-to-gimple.c: Likewise.
6523         * graphite-sese-to-poly.c: Likewise.
6524         * ipa-prop.c: Likewise.
6525         * ipa-split.c: Likewise.
6526         * ipa.c: Likewise.
6527         * langhooks.c: Dont include gimple.h.
6528         * loop-init.c: Include gimplify.h rather than gimple.h.
6529         * omp-low.c: Likewise.
6530         * sese.c: Likewise.
6531         * stor-layout.c: Likewise.
6532         * targhooks.c: Likewise.
6533         * trans-mem.c: Likewise.
6534         * tree-affine.c: Likewise.
6535         * tree-cfg.c: Likewise.
6536         * tree-cfgcleanup.c: Likewise.
6537         * tree-complex.c: Likewise.
6538         * tree-if-conv.c: Likewise.
6539         * tree-inline.c: Likewise.
6540         * tree-iterator.c: Likewise.
6541         * tree-loop-distribution.c: Likewise.
6542         * tree-nested.c: Likewise.
6543         * tree-parloops.c: Likewise.
6544         * tree-predcom.c: Likewise.
6545         * tree-profile.c: Likewise.
6546         * tree-scalar-evolution.c: Likewise.
6547         * tree-sra.c: Likewise.
6548         * tree-ssa-address.c: Likewise.
6549         * tree-ssa-ccp.c: Likewise.
6550         * tree-ssa-dce.c: Likewise.
6551         * tree-ssa-forwprop.c: Likewise.
6552         * tree-ssa-ifcombine.c: Likewise.
6553         * tree-ssa-loop-im.c: Likewise.
6554         * tree-ssa-loop-ivopts.c: Likewise.
6555         * tree-ssa-loop-manip.c: Likewise.
6556         * tree-ssa-loop-niter.c: Likewise.
6557         * tree-ssa-loop-prefetch.c: Likewise.
6558         * tree-ssa-loop-unswitch.c: Likewise.
6559         * tree-ssa-math-opts.c: Likewise.
6560         * tree-ssa-phiopt.c: Likewise.
6561         * tree-ssa-phiprop.c: Likewise.
6562         * tree-ssa-pre.c: Likewise.
6563         * tree-ssa-propagate.c: Likewise.
6564         * tree-ssa-reassoc.c: Likewise.
6565         * tree-ssa-sccvn.c: Likewise.
6566         * tree-ssa-strlen.c: Likewise.
6567         * tree-ssa.c: Likewise.
6568         * tree-switch-conversio: Likewise.n.c
6569         * tree-tailcall.c: Likewise.
6570         * tree-vect-data-refs.c: Likewise.
6571         * tree-vect-generic.c: Likewise.
6572         * tree-vect-loop-manip.c: Likewise.
6573         * tree-vect-loop.c: Likewise.
6574         * tree-vect-patterns.c: Likewise.
6575         * tree-vect-stmts.c: Likewise.
6576         * tsan.c: Likewise.
6577         * value-prof.c: Likewise.
6578         * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
6579         * config/alpha/alpha.c: Likewise.
6580         * config/darwin.c: Likewise.
6581         * config/i386/i386.c: Likewise.
6582         * config/ia64/ia64.c: Likewise.
6583         * config/mep/mep.c: Likewise.
6584         * config/mips/mips.c: Likewise.
6585         * config/rs6000/rs6000.c: Likewise.
6586         * config/s390/s390.c: Likewise.
6587         * config/sh/sh.c: Likewise.
6588         * config/sparc/sparc.c: Likewise.
6589         * config/spu/spu.c: Likewise.
6590         * config/stormy16/stormy16.c: Likewise.
6591         * config/tilegx/tilegx.c: Likewise.
6592         * config/tilepro/tilepro.c: Likewise.
6593         * config/xtensa/xtensa.c: Likewise.
6595 2013-11-12  Adam Butcher  <adam@jessamine.co.uk>
6597         * tree.c (grow_tree_vec_stat): New function ...
6598         * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
6599         and macro front-end.
6601 2013-11-12  Marek Polacek  <polacek@redhat.com>
6603         * final.c (update_alignments): Initialize label to NULL_RTX.
6605 2013-11-12  Jeff Law  <law@redhat.com>
6607         * gimple-ssa-isolate-paths.c (check_loadstore): New function.
6608         (insert_trap_and_remove_trailing_statements): New argument OP which
6609         is the NULL pointer.  Emit the trap after the load/store through
6610         the NULL pointer.  Simplify the RHS of a store through a NULL pointer
6611         when trivial to do so.
6612         (isolate_path): Corresponding changes.
6613         (gimple_ssa_isolate_erroneous_path): Likewise.
6615 2013-11-12  Teresa Johnson  <tejohnson@google.com>
6616             Jan Hubicka  <jh@suse.cz>
6618         * predict.c (drop_profile): New function.
6619         (handle_missing_profiles): Ditto.
6620         (counts_to_freqs): Don't overwrite estimated frequencies
6621         when function has no profile counts.
6622         * predict.h (handle_missing_profiles): Declare.
6623         * tree-inline.c (freqs_to_counts): New function.
6624         (copy_cfg_body): Invoke freqs_to_counts as needed.
6625         * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
6627 2013-11-12  H.J. Lu  <hongjiu.lu@intel.com>
6629         PR target/59088
6630         * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
6631         Set for m_HASWELL.
6632         (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
6634 2013-11-12  H.J. Lu  <hongjiu.lu@intel.com>
6636         PR target/59084
6637         * config/i386/i386.c (ix86_option_override_internal): Check
6638         X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
6639         X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
6640         MASK_AVX256_SPLIT_UNALIGNED_LOAD and
6641         MASK_AVX256_SPLIT_UNALIGNED_STORE.
6643         * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
6644         Clear m_COREI7_AVX and update comments.
6645         (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
6647 2013-11-12  Martin Jambor  <mjambor@suse.cz>
6649         PR rtl-optimization/10474
6650         * ira.c (interesting_dest_for_shprep): New function.
6651         (split_live_ranges_for_shrink_wrap): Likewise.
6652         (find_moveable_pseudos): Move calculation of dominance info,
6653         df_analysios and the final anlyses to...
6654         (ira): ...here, call split_live_ranges_for_shrink_wrap.
6656 2013-11-12  Bin Cheng  <bin.cheng@arm.com>
6658         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
6659         Handle type conversion.
6661 2013-11-11  Martin Liska  <marxin.liska@gmail.com>
6662             Jan Hubicka  <jh@suse.cz>
6664         * cgraph.c (dump_cgraph_node): Profile dump added.
6665         * cgraph.h (struct cgraph_node): New time profile variable added.
6666         * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
6667         * gcov-io.h (gcov_type): New profiler type introduced.
6668         * ipa-profile.c (lto_output_node): Streaming for time profile added.
6669         (input_node): Time profiler is read from LTO stream.
6670         * predict.c (maybe_hot_count_p): Hot prediction changed.
6671         * profile.c (instrument_values): New case for time profiler added.
6672         (compute_value_histograms): Read of time profile.
6673         * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
6674         * tree-profile.c (init_ic_make_global_vars): Time profiler
6675         function added.
6676         (gimple_init_edge_profiler): TP function instrumentation.
6677         (gimple_gen_time_profiler): New.
6678         * value-prof.c (gimple_add_histogram_value): Support for time profiler
6679         added.
6680         (dump_histogram_value): TP type added to dumps.
6681         (visit_hist): More sensitive check that takes TP into account.
6682         (gimple_find_values_to_profile): TP instrumentation.
6683         * value-prof.h (hist_type): New histogram type added.
6684         (struct histogram_value_t): Pointer to struct function added.
6685         * libgcc/Makefile.in: New GCOV merge function for TP added.
6686         * libgcov.c: function_counter variable introduced.
6687         (_gcov_merge_time_profile): New.
6688         (_gcov_time_profiler): New.
6690 2013-11-11  Marc Glisse  <marc.glisse@inria.fr>
6691             Jeff Law  <law@redhat.com>
6693         * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
6694         ao_ref_init_from_ptr_and_size for builtins.
6696 2013-11-11  Uros Bizjak  <ubizjak@gmail.com>
6697             H.J. Lu  <hongjiu.lu@intel.com>
6699         PR target/58853
6700         * config/i386/x86-tune.def
6701         (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
6702         TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
6703         * config/i386/i386.h
6704         (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
6705         TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES.  Update for renamed
6706         X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
6707         * config/i386/i386.c (ix86_expand_set_or_movmem): Use
6708         TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
6709         misaligned_prologue_used.  Check that
6710         desired_aling <= epilogue_size_needed.
6712 2013-11-11  Cong Hou  <congh@google.com>
6714         PR tree-optimization/59050
6715         * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
6717 2013-11-11  Joern Rennecke  <joern.rennecke@embecosm.com>
6719         PR middle-end/59049
6720         * expmed.c (emit_store_flag): Fail for const-const comparison.
6722 2013-11-11  Tristan Gingold  <gingold@adacore.com>
6723             Eric Botcazou  <ebotcazou@adacore.com>
6725         * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
6726         * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
6727         * tree.def (CONSTRUCTOR): Likewise.
6728         * doc/generic.texi (CONSTRUCTOR): Likewise.  Update description.
6729         * gimplify.c (gimplify_init_constructor): Do not clear the object when
6730         the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
6732 2013-11-11  Basile Starynkevitch  <basile@starynkevitch.net>
6734         * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
6735         diagnostic_finish.
6737 2013-11-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6739         * config/arm/arm.c (arm_new_rtx_costs): Return after handling
6740         comparisons.
6742 2013-11-11  Joern Rennecke  <joern.rennecke@embecosm.com>
6744         * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
6746 2013-11-08  Jeff Law  <law@redhat.com>
6748         * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
6749         threading paths first, then perform PHI node checks if applicable.
6751 2013-11-10  Karlson2k  <k2k@narod.ru>
6752             Kai Tietz  <ktietz@redhat.com>
6754         PR plugin/52872
6755         * configure.ac: Adding for exported symbols check
6756         and for rdynamic-check executable-extension.
6757         * configure: Regenerated.
6759 2013-11-10  Uros Bizjak  <ubizjak@gmail.com>
6761         * mode-switching.c (optimize_mode_switching): Mark block as
6762         nontransparent, if last_mode at block exit is different from no_mode.
6764 2013-11-09  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
6766         * function.c (NAME__MAIN): Move to...
6767         * cfgexpand.c (NAME__MAIN): ...here.
6769 2013-11-09  Richard Sandiford  <rdsandiford@googlemail.com>
6771         * target.def (can_use_doloop_p): New hook.
6772         * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
6773         * doc/tm.texi: Regenerate.
6774         * doc/md.texi (doloop_begin, doloop_end): Update documentation.
6775         * hooks.h (hook_bool_dint_dint_uint_true): Declare.
6776         * hooks.c (hook_bool_dint_dint_uint_true): New function.
6777         * targhooks.h (can_use_doloop_if_innermost): Declare.
6778         * targhooks.c (can_use_doloop_if_innermost): New function.
6779         * target.h: Include double-int.h.
6780         * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
6781         Remove iteration count, maximum iteration count, loop depth and
6782         enter-at-top inputs from doloop_begin and doloop_end.
6783         * config/arc/arc.md (doloop_begin, doloop_end): Update for new
6784         interface.
6785         * config/arc/arc.c (arc_can_use_doloop_p): New function.
6786         (TARGET_CAN_USE_DOLOOP_P): Define.
6787         * config/arm/thumb2.md (doloop_end): Update for new interface.
6788         * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
6789         * config/bfin/bfin.md (doloop_end): Update for new interface.
6790         * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
6791         (TARGET_CAN_USE_DOLOOP_P): Define.
6792         * config/c6x/c6x.md (doloop_end): Update for new interface.
6793         * config/ia64/ia64.md (doloop_end): Update for new interface.
6794         * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
6795         * config/mep/mep.md (doloop_begin, doloop_end): Update for new
6796         interface.
6797         * config/mep/mep.c (mep_emit_doloop): Likewise.
6798         (TARGET_CAN_USE_DOLOOP_P): Define.
6799         * config/rs6000/rs6000.md (doloop_end): Update for new interface.
6800         * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
6801         * config/s390/s390.md (doloop_end): Update for new interface.
6802         * config/sh/sh.md (doloop_end): Likewise.
6803         * config/spu/spu.md (doloop_end): Likewise.
6804         * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
6805         * config/tilegx/tilegx.md (doloop_end): Update for new interface.
6806         * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
6807         * config/tilepro/tilepro.md (doloop_end): Update for new interface.
6808         * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
6809         * config/v850/v850.md (doloop_begin, doloop_end): Update for new
6810         interface.
6811         * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
6813 2013-11-08  H.J. Lu  <hongjiu.lu@intel.com>
6815         PR other/59055
6816         * doc/extend.texi: Move Cilk Plus Builtins node before Other
6817         Builtins node.
6819 2013-11-08  Andrew MacLeod  <amacleod@redhat.com>
6820             Joseph Myers  <joseph@codesourcery.com>
6822         * ginclude/stdatomic.h: New file.
6823         * Makefile.in (USER_H): Add stdatomic.h.
6825 2013-11-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6827         * config/arm/arm.c (arm_new_rtx_costs): Break after handling
6828         comparisons.
6830 2013-11-08  Jeff Law  <law@redhat.com>
6832         * tree-ssa-threadupdate.h (delete_thread_path): Declare.
6833         * tree-ssa-threadupdate.c (delete_thread_path): New function.
6834         (ssa_redirect_edges, thread_block_1): Use it.
6835         (thread_through_loop_header, mark_threaded_blocks): Likewise.
6836         (thread_through_all_blocks, register_jump_thread): Likewise.
6837         * tree-ssa-threadedge.c (thread_across_edge): Likewise.
6839 2013-11-08  James Greenhalgh  <james.greenhalgh@arm.com>
6841         * config/arm/aarch-common.c
6842         (search_term): New typedef.
6843         (shift_rtx_costs): New array.
6844         (arm_rtx_shift_left_p): New.
6845         (arm_find_sub_rtx_with_search_term): Likewise.
6846         (arm_find_sub_rtx_with_code): Likewise.
6847         (arm_early_load_addr_dep): Add sanity checking.
6848         (arm_no_early_alu_shift_dep): Likewise.
6849         (arm_no_early_alu_shift_value_dep): Likewise.
6850         (arm_no_early_mul_dep): Likewise.
6851         (arm_no_early_store_addr_dep): Likewise.
6853 2013-11-08  Richard Biener  <rguenther@suse.de>
6855         PR tree-optimization/59047
6856         * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
6858 2013-11-08  Ilya Enkovich  <ilya.enkovich@intel.com>
6860         * common.opt (fcheck-pointer-bounds): Move to ...
6861         * c-family/c.opt: ... here.
6862         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
6863         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
6864         * langhooks.h (lang_hooks): Remove chkp_supported field.
6865         * toplev.c (process_options): Remove chkp_supported check.
6867 2013-11-08  Richard Biener  <rguenther@suse.de>
6869         PR tree-optimization/59038
6870         PR tree-optimization/58955
6871         * tree-loop-distribution.c (pg_add_dependence_edges): Revert
6872         previous change.  Handle known dependences correctly.
6874 2013-11-08  Tom de Vries  <tom@codesourcery.com>
6876         * config/rs6000/t-xilinx: Remove duplicate contents.
6878 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
6879             Joseph Myers  <joseph@codesourcery.com>
6881         * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
6882         (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
6883         TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
6884         (struct tree_base): Add atomic_flag field.
6885         * tree.h (TYPE_ATOMIC): New accessor macro.
6886         (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
6887         (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
6888         (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
6889         (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
6890         * tree.c (set_type_quals): Set TYPE_ATOMIC.
6891         (find_atomic_core_type): New function.
6892         (build_qualified_type): Adjust alignment for qualified types.
6893         (build_atomic_base): New function
6894         (build_common_tree_nodes): Build atomicQI_type_node,
6895         atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
6896         atomicTI_type_node.
6897         * print-tree.c (print_node): Print atomic qualifier.
6898         * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
6899         * target.def (atomic_assign_expand_fenv): New hook.
6900         * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
6901         * doc/tm.texi: Regenerate.
6902         * targhooks.c (default_atomic_assign_expand_fenv): New function.
6903         * targhooks.h (default_atomic_assign_expand_fenv): Declare.
6904         * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
6905         * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
6906         function type.
6907         * config/i386/i386.c (enum ix86_builtins): Add
6908         IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
6909         IX86_BUILTIN_FNCLEX.
6910         (bdesc_special_args): Add __builtin_ia32_fnstenv,
6911         __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
6912         (ix86_expand_builtin): Handle the new built-in functions.
6913         (ix86_atomic_assign_expand_fenv): New function.
6914         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
6915         * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
6916         (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
6917         (fnstenv, fldenv, fnstsw, fnclex): New insns.
6919 2013-11-07  Steve Ellcey  <sellcey@mips.com>
6921         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
6922         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
6923         (MULTILIB_DIRNAMES): Add fp64 directory.
6924         (MULTILIB_EXCEPTIONS): Add new exclusions.
6926 2013-11-07  Aldy Hernandez  <aldyh@redhat.com>
6928         * gimplify.c (gimple_regimplify_operands): Do not set
6929         SSA_NAME_DEF_STMT.
6930         * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
6931         (rewrite_close_phi_out_of_ssa): Same.
6932         (rewrite_phi_out_of_ssa): Same.
6933         (rewrite_degenerate_phi): Same.
6934         (handle_scalar_deps_crossing_scop_limits): Same.
6935         * tree-if-conv.c (predicate_scalar_phi): Same.
6936         * tree-parloops.c (create_loads_for_reductions): Same.
6937         (create_final_loads_for_reduction): Same.
6938         (create_loads_and_stores_for_name): Same.
6939         (transform_to_exit_first_loop): Same.
6940         (create_parallel_loop): Same.
6941         * tree-ssa-loop-im.c
6942         (move_computations_dom_walker::before_dom_children): Same.
6943         * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
6944         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
6945         * tree-ssa-propagate.c (substitute_and_fold): Same.
6946         * tree-vect-loop.c (vect_finalize_reduction): Same.
6947         * tree-vect-stmts.c (vectorizable_call): Same.
6949 2013-11-07  Mike Stump  <mikestump@comcast.net>
6951         * config/pdp11/pdp11.c: Include dbxout.h.
6952         * config/picochip/picochip.c: Likewise.
6954 2013-11-07  Cong Hou  <congh@google.com>
6956         PR tree-optimization/56764
6957         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
6958         Combine alias checks if it is possible to amortize the runtime
6959         overhead.  Return the number of alias checks after merging.
6960         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
6961         Use the function vect_create_cond_for_alias_checks () to check
6962         the number of alias checks.
6964 2013-11-07  Jeff Law  <law@redhat.com>
6966         * varpool.c (ctor_for_folding): Fix typo in comment.
6968 2013-11-07  Joern Rennecke  <joern.rennecke@embecosm.com>
6970         * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
6971         reg_a := reg_b + reg_a  ==>  reg_a := reg_a + reg_b
6973 2013-11-07  Jeff Law  <law@redhat.com>
6975         * doc/invoke.texi (-fisolate-erroneous-paths): Document.
6977         * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
6978         No longer check if we have __builtin_trap, assume it's available.
6980 2013-11-07  Diego Novillo  <dnovillo@google.com>
6982         * attribs.c (lookup_scoped_attribute_spec): Make static.
6983         (get_attribute_namespace): Likewise.
6984         * builtins.c (more_const_call_expr_args_p): Move from tree.h.
6985         (validate_arglist): Move earlier in the file. Make static.
6986         (expand_stack_restore): Move from stmt.c
6987         (expand_stack_save): Move from stmt.c
6988         (rewrite_call_expr_array): Move earlier in the file.
6989         (rewrite_call_expr_valist): Likewise.
6990         * cfgexpand.c: Include hard-reg-set.h before tree.h
6991         Include recog.h.
6992         Include output.h.
6993         (expand_asm_loc): Move from stmt.c.
6994         (n_occurrences): Move from stmt.c.
6995         (check_operand_nalternatives): Move from stmt.c.
6996         (tree_conflicts_with_clobbers_p): Move from stmt.c.
6997         (expand_asm_operands): Move from stmt.c
6998         (expand_asm_stmt): Move from stmt.c
6999         (expand_computed_goto): Move from stmt.c
7000         (expand_goto): Move from stmt.c
7001         (expand_null_return_1): Move from stmt.c
7002         (expand_null_return): Move from stmt.c
7003         (expand_value_return): Move from stmt.c
7004         (expand_return): Move from stmt.c
7005         (expand_main_function): Move from function.c
7006         (stack_protect_prologue): Move from function.c
7007         * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
7008         (build_function_decl_skip_args): Move from tree.c.
7009         * explow.c (tree_expr_size): Move from tree.c.
7010         * expr.c (addr_expr_of_non_mem_decl_p): Remove.
7011         (fields_length): Move from tree.c.
7012         * fold-const.c (size_low_cst): Move from tree.c.
7013         (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
7014         (tree_expr_nonzero_p): Make static. Move earlier in the file.
7015         (fold_build3_initializer_loc): Remove.
7016         (tree_invalid_nonnegative_warnv_p): Make static.
7017         * function.c (expand_main_function): Move to cfgexpand.c.
7018         (stack_protect_prologue): Move to cfgexpand.c.
7019         (set_insn_locations): Move earlier in the file.
7020         * gimple-fold.c: Include langhooks.h.
7021         (truth_type_for): Move from tree.c.
7022         * print-tree.c (print_vec_tree): Remove.
7023         * stmt.c (expand_computed_goto): Move to cfgexpand.c.
7024         (expand_goto): Move to cfgexpand.c.
7025         (n_occurrences): Move to cfgexpand.c.
7026         (expand_asm_loc): Move to cfgexpand.c
7027         (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
7028         (expand_asm_operands): Move to cfgexpand.c.
7029         (expand_asm_stmt): Move to cfgexpand.c.
7030         (check_operand_nalternatives): Move to cfgexpand.c
7031         (expand_null_return): Move to cfgexpand.c.
7032         (expand_value_return): Move to cfgexpand.c.
7033         (expand_null_return_1): Move to cfgexpand.c.
7034         (expand_return): Move to cfgexpand.c.
7035         (expand_stack_save): Move to builtins.c.
7036         (expand_stack_restore): Move to builtins.c
7037         * symtab.c: Include output.h.
7038         (decl_assembler_name_hash): Move from tree.c.
7039         (decl_assembler_name_equal): Move from tree.c.
7040         * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
7041         * tree-eh.c (in_array_bounds_p): Move from tree.c.
7042         (range_in_array_bounds_p): Move from tree.c.
7043         * tree-object-size.c (fini_object_sizes): Make static.
7044         * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
7045         * tree-vrp.c (ssa_name_nonnegative_p): Remove.
7046         * tree.c (decl_assembler_name_equal): Move to symtab.c.
7047         (tree_expr_size): Move to explow.c.
7048         (decl_assembler_name_hash): Move to symtab.c.
7049         (real_twop): Remove.
7050         (tree_expr_size): Move to explow.c.
7051         (stabilize_reference_1): Move earlier in the file. Make static.
7052         (omp_remove_redundant_declare_simd_attrs): Remove.
7053         (simple_cst_list_equal): Move earlier in the file. Make static.
7054         (size_low_cst): Move to fold-const.c.
7055         (build_type_no_quals): Remove.
7056         (build_function_type_skip_args): Move to cgraphclones.c.
7057         (build_function_decl_skip_args): Move to cgraphclones.c.
7058         (in_array_bounds_p): Move to tree-eh.c.
7059         (range_in_array_bounds_p): Move to tree-eh.c.
7060         (truth_type_for): Move to gimple-fold.c.
7061         (list_equal_p): Remove.
7062         * tree.h (decl_assembler_name_equal): Remove.
7063         (decl_assembler_name_hash): Remove.
7064         (truth_type_for): Remove.
7065         (build_type_no_quals): Remove.
7066         (build_function_decl_skip_args): Remove.
7067         (in_array_bounds_p): Remove.
7068         (range_in_array_bounds_p): Remove.
7069         (size_low_cst): Remove.
7070         (omp_remove_redundant_declare_simd_attrs): Remove.
7071         (tree_expr_size): Remove.
7072         (fields_length): Remove.
7073         (stabilize_reference_1): Remove.
7074         (expand_goto): Remove.
7075         (expand_stack_save): Remove.
7076         (expand_stack_restore): Remove.
7077         (expand_return): Remove.
7078         (fold_build3_initializer_loc): Remove.
7079         (tree_expr_nonzero_p): Remove.
7080         (tree_invalid_nonnegative_warnv_p): Remove.
7081         (tree_expr_nonzero_warnv_p): Remove.
7082         (fold_builtin_snprintf_chk): Remove.
7083         (validate_arglist): Remove.
7084         (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
7085         (simple_cst_list_equal): Remove.
7086         (real_twop): Remove.
7087         (expand_main_function): Remove.
7088         (stack_protect_prologue): Remove.
7089         (print_vec_tree): Remove.
7090         (lookup_scoped_attribute_spec): Remove.
7091         (get_attribute_namespace): Remove.
7092         (expand_computed_goto): Remove.
7093         (expand_asm_stmt): Remove.
7094         (list_equal_p): Remove.
7095         (ssa_name_nonnegative_p): Remove.
7096         (fini_object_sizes): Remove.
7097         (addr_expr_of_non_mem_decl_p): Remove.
7098         (is_tm_safe_or_pure): Move to trans-mem.c.
7099         (more_const_call_expr_args_p): Remove.
7100         (save_vtable_map_decl): Remove.
7102 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
7104         * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
7105         linker plugins, too.
7107         * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
7108         link to libgomp and its dependencies.
7109         * config/ia64/hpux.h (LIB_SPEC): Likewise.
7110         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
7111         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
7112         * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
7114 2013-11-07  Jakub Jelinek  <jakub@redhat.com>
7116         * tree-ssa-loop-niter.c: Include tree-ssanames.h.
7117         (determine_value_range): Add loop argument.  Use get_range_info to
7118         improve range.
7119         (bound_difference): Adjust caller.
7121 2013-11-07  Richard Biener  <rguenther@suse.de>
7122             Jakub Jelinek  <jakub@redhat.com>
7124         * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
7125         latches from header PHI arguments from the latch edge.
7127 2013-11-07  Paolo Carlini  <paolo.carlini@oracle.com>
7129         PR c++/58176
7130         * varasm.c (output_constant): Handle NULLPTR_TYPE.
7132 2013-11-07  H.J. Lu  <hongjiu.lu@intel.com>
7134         * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
7135         misaligned_prologue_used when it has been set.
7137 2013-11-07  Yury Gribov  <y.gribov@samsung.com>
7138             Jakub Jelinek  <jakub@redhat.com>
7140         PR sanitizer/59029
7141         * asan.c (get_mem_refs_of_builtin_call): Allow
7142         integer literals as addresses in instrumented builtins.
7144 2013-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7146         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
7147         Explain why plus_constant is not used.
7149 2013-11-07  Richard Biener  <rguenther@suse.de>
7151         * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
7152         (canonicalize_value): ... this.  Also handle stripping of
7153         TREE_OVERFLOW.
7154         (get_value, set_lattice_value, get_value_for_expr): Adjust.
7155         * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
7156         * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
7158 2013-11-07  Richard Biener  <rguenther@suse.de>
7160         * tree-dfa.c (get_ref_base_and_extent): Fix casting.
7162 2013-11-07  H.J. Lu  <hongjiu.lu@intel.com>
7164         PR target/59034
7165         * config/i386/i386.md (push peepholer/splitter): Use Pmode
7166         with stack_pointer_rtx.
7168 2013-11-07  Bin Cheng  <bin.cheng@arm.com>
7170         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
7171         using operand_equal_p.
7173 2013-11-07  Bin Cheng  <bin.cheng@arm.com>
7175         * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
7176         * tree-affine.c (get_inner_reference_aff): Return base.
7177         * tree-affine.h (get_inner_reference_aff): Change prototype.
7179 2013-11-06  Tobias Burnus  <burnus@net-b.de>
7181         * doc/invoke.texi (Wdate-time): Fix typo.
7183 2013-11-06  Oleg Endo  <olegendo@gcc.gnu.org>
7185         * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
7186         cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
7187         fp_arith_reg_operand instead of arith_reg_operand.
7189 2013-11-06  Oleg Endo  <olegendo@gcc.gnu.org>
7191         * config/sh/sh.md (adddi3): Remove empty constraints.
7192         Remove can_create_pseudo_p and arith_reg_operand check.
7193         (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
7194         Split before reload.
7196 2013-11-06  Jeff Law  <law@redhat.com>
7197             Tom Tromey  <tromey@redhat.com>
7199         * gdbinit.in: Disable strict type checking.
7201 2013-11-06  Vladimir Makarov  <vmakarov@redhat.com>
7203         * tree-pass.h (make_pass_live_range_shrinkage): New external.
7204         * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
7205         * sched-rgn.c (gate_handle_live_range_shrinkage): New.
7206         (rest_of_handle_live_range_shrinkage): Ditto
7207         (class pass_live_range_shrinkage): Ditto.
7208         (pass_data_live_range_shrinkage): Ditto.
7209         (make_pass_live_range_shrinkage): Ditto.
7210         * sched-int.h (initialize_live_range_shrinkage): New prototype.
7211         (finish_live_range_shrinkage): Ditto.
7212         * sched-deps.c (create_insn_reg_set): Make void return value.
7213         * passes.def: Add pass_live_range_shrinkage.
7214         * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
7215         * haifa-sched.c (live_range_shrinkage_p): New.
7216         (initialize_live_range_shrinkage, finish_live_range_shrinkage):
7217         New functions.
7218         (rank_for_schedule): Add code for pressure relief through live
7219         range shrinkage.
7220         (schedule_insn): Print more debug info.
7221         (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
7222         through live range shrinkage.
7223         * doc/invoke.texi (-flive-range-shrinkage): New.
7224         * common.opt (flive-range-shrinkage): New.
7226 2013-11-06  Uros Bizjak  <ubizjak@gmail.com>
7228         PR target/59021
7229         * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
7230         AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
7231         (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
7232         RTXes that return in AVX256 register.
7234 2013-11-06  Richard Biener  <rguenther@suse.de>
7236         PR tree-optimization/58653
7237         * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
7238         (prepare_initializers_chain): Adjust.
7240 2013-11-06  Andrew MacLeod  <amacleod@redhat.com>
7242         * gimple.h (block_in_transaction): Move to basic-block.h and rename.
7243         (gimple_in_transaction): Use bb_in_transaction.
7244         * basic-block.h (bb_in_transaction): Relocate here and rename.
7245         * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
7247 2013-11-06  Richard Biener  <rguenther@suse.de>
7249         * tree.c (drop_tree_overflow): New function.
7250         * tree.h (drop_tree_overflow): Declare.
7251         * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
7252         * tree-vrp.c (range_int_cst_singleton_p): Use
7253         is_overflow_infinity instead of testing TREE_OVERFLOW.
7254         (extract_range_from_assert): Likewise.
7255         (zero_nonzero_bits_from_vr): Likewise.
7256         (extract_range_basic): Likewise.
7257         (register_new_assert_for): Use drop_tree_overflow.
7258         (vrp_visit_phi_node): Likewise.
7260 2013-11-06  Eric Botcazou  <ebotcazou@adacore.com>
7262         * config/i386/i386.c (ix86_expand_prologue): Optimize stack
7263         checking for leaf functions without dynamic stack allocation.
7264         * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
7265         (ia64_expand_prologue): Likewise.
7266         * config/mips/mips.c (mips_expand_prologue): Likewise.
7267         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
7268         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
7269         (sparc_flat_expand_prologue): Likewise.
7271 2013-11-06  James Greenhalgh  <james.greenhalgh@arm.com>
7273         * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
7274         (__ST3_LANE_FUNC): Likewise.
7275         (__ST4_LANE_FUNC): Likewise.
7277 2013-11-06  Nick Clifton  <nickc@redhat.com>
7279         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
7280         name returned by msp430_mcu_name.
7281         (LIB_SPEC): If a -T option has not been specified then set a
7282         default, mcu-specific, linker script.
7283         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
7284         * config/msp430/msp430.c (msp430x_names): Likewise.
7285         Alpha sort the names for ease of comparison.
7286         (msp430_mcu_name): New function:  Returns a string suitable for
7287         use as a C preprocessor symbol based upon the name of the MCU
7288         being targeted.
7289         (msp430_option_override): Accept msp430x and msp430xv2 as generic
7290         mcu names.
7291         * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
7293         * gcc.c (do_spec_1): Do not insert a space after a %* substitution
7294         unless it is the last part of a spec substring.
7295         * doc/invoke.texi (Spec Files): Document space insertion
7296         behaviour of %*.
7298 2013-11-06  Christian Bruel  <christian.bruel@st.com>
7300         * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
7301         Factorize probabilities, Use adjust_address instead of
7302         adjust_automodify_address when possible. Enable for optimize.
7303         (sh_expand_strlen): New function.
7304         * config/sh/sh-protos.h (sh_expand_strlen): Declare.
7305         * config/sh/sh.md (strlensi): New pattern.
7306         (UNSPEC_BUILTIN_STRLEN): Define.
7308 2013-11-06  Jakub Jelinek  <jakub@redhat.com>
7310         PR middle-end/58970
7311         * expr.c (get_bit_range): Handle *offset == NULL_TREE.
7312         (expand_assignment): If *bitpos is negative, set *offset
7313         and adjust *bitpos, so that it is not negative.
7315 2013-11-06  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
7317         * config/i386/bdver3.md : Added two additional decoder units
7318         to support issue rate of 4 and remodeled vector unit.
7319         * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
7320         architectures is set to 4.
7321         * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
7322         lookahead is set to 4 for BD architectures.
7324 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7326         * config/rs6000/rs6000.c (rs6000_option_override_internal):
7327         Remove restriction against use of VSX instructions when generating
7328         code for little endian mode.
7330 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7332         * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
7333         for both big and little endian.
7334         (mulv8hi3): Swap input operands for merge high and merge low
7335         instructions for little endian.
7337 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7339         * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
7340         define_insn to define_expand that uses even patterns for big
7341         endian and odd patterns for little endian.
7342         (vec_widen_smult_even_v16qi): Likewise.
7343         (vec_widen_umult_even_v8hi): Likewise.
7344         (vec_widen_smult_even_v8hi): Likewise.
7345         (vec_widen_umult_odd_v16qi): Likewise.
7346         (vec_widen_smult_odd_v16qi): Likewise.
7347         (vec_widen_umult_odd_v8hi): Likewise.
7348         (vec_widen_smult_odd_v8hi): Likewise.
7349         (altivec_vmuleub): New define_insn.
7350         (altivec_vmuloub): Likewise.
7351         (altivec_vmulesb): Likewise.
7352         (altivec_vmulosb): Likewise.
7353         (altivec_vmuleuh): Likewise.
7354         (altivec_vmulouh): Likewise.
7355         (altivec_vmulesh): Likewise.
7356         (altivec_vmulosh): Likewise.
7358 2013-11-05  Mike Stump  <mikestump@comcast.net>
7360         * Makefile.in (mostlyclean): Remove c-family objects.
7362 2013-11-05  Ian Lance Taylor  <iant@google.com>
7364         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
7365         If possible, add .cfi directives to record change to bx.
7366         * config/i386/i386.c (ix86_emit_cfi): New function.
7367         * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
7369 2013-11-05  Steven Bosscher  <steven@gcc.gnu.org>
7371         * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
7372         immediately after a label for a tablejump pattern.
7374         * config/arm/arm.c (is_jump_table): Remove.
7375         (create_fix_barrier): Use tablejump_p instead.
7376         (arm_reorg): Likewise.
7377         (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
7378         (thumb2_output_casesi): Likewise.
7379         * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
7380         * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
7381         casesi_shift_media, casesi_load_media): Likewise.
7382         * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
7383         * config/microblaze/microblaze.md: Likewise.
7385 2013-11-05  Tobias Burnus  <burnus@net-b.de>
7387         * doc/invoke.texi (-Wdate-time): Document.
7389 2013-11-05  Richard Sandiford  <rdsandiford@googlemail.com>
7391         * double-int.c (lshift_double, rshift_double): Remove
7392         SHIFT_COUNT_TRUNCATED handling.
7394 2013-11-05  Jeff Law  <law@redhat.com>
7396         * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
7397         * common.opt (-fisolate-erroneous-paths): Add option and documentation.
7398         * gimple-ssa-isolate-paths.c: New file.
7399         * gimple.c (check_loadstore): New function.
7400         (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
7401         Verify OP is in the argument list and the argument corresponding
7402         to OP is a pointer type.  Use operand_equal_p rather than
7403         pointer equality when testing if OP is on the nonnull list.
7404         Use check_loadstore rather than count_ptr_derefs.  Handle
7405         GIMPLE_RETURN statements.
7406         * tree-vrp.c (infer_nonnull_range): Remove.
7407         * gimple.h (infer_nonnull_range): Declare.
7408         * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
7409         * passes.def: Add pass_isolate_erroneous_paths.
7410         * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
7411         * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
7412         * tree-ssa.c (struct count_ptr_d): Remove.
7413         (count_ptr_derefs, count_uses_and_derefs): Remove.
7414         * tree-ssa.h (count_uses_and_derefs): Remove.
7416 2013-11-05  Jakub Jelinek  <jakub@redhat.com>
7418         PR rtl-optimization/58997
7419         * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
7420         get_iv_value to be in iv->mode rather than iv->extend_mode.
7421         (iv_extend): Likewise.  Otherwise, if iv->extend != extend,
7422         use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
7423         * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
7424         mode.
7426 2013-11-05  Andrew MacLeod  <amacleod@redhat.com>
7428         * gimple.h: Move some prototypes to gimple-expr.h and add to include
7429         list.
7430         (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
7431         Move to gimple-expr.h.
7432         * gimple-expr.h: New file.  Relocate some prototypes from gimple.h.
7433         (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
7434         is_gimple_id, virtual_operand_p, is_gimple_addressable,
7435         is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
7436         Relocate here.
7437         * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
7438         gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
7439         is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
7440         is_gimple_address, is_gimple_invariant_address,
7441         is_gimple_ip_invariant_address, is_gimple_min_invariant,
7442         is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
7443         virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
7444         is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
7445         gimple_decl_printable_name, useless_type_conversion_p,
7446         types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
7447         gimple-expr.[ch].
7448         * gimple-expr.c: New File.
7449         (useless_type_conversion_p, gimple_set_body, gimple_body,
7450         gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
7451         gimple_can_coalesce_p, extract_ops_from_tree_1,
7452         gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
7453         is_gimple_address, is_gimple_invariant_address,
7454         is_gimple_ip_invariant_address, is_gimple_min_invariant,
7455         is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
7456         is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
7457         is_gimple_mem_ref_addr): Relocate here.
7458         * Makefile.in (OBJS): Add gimple-expr.o.
7460 2013-11-05  David Malcolm  <dmalcolm@redhat.com>
7462         * gengtype-parse.c (struct_field_seq): Support empty structs.
7464 2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
7466         * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
7468 2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
7470         * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
7471         for !TARGET_80387.
7472         * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
7473         _SOFT_FLOAT here.
7474         (LONG_DOUBLE_TYPE_SIZE): New define.
7475         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
7477 2013-11-05  Paolo Carlini  <paolo.carlini@oracle.com>
7479         PR c++/58724
7480         * doc/extend.texi [visibility ("visibility_type")]: Add example
7481         about visibility attribute on namespace declaration.
7483 2013-11-05  Richard Biener  <rguenther@suse.de>
7485         PR ipa/58492
7486         * passes.def (all_passes): Start with pass_fixup_cfg again.
7488 2013-11-05  Richard Biener  <rguenther@suse.de>
7490         PR tree-optimization/58955
7491         * tree-loop-distribution.c (pg_add_dependence_edges): Fix
7492         edge direction.
7494 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7496         * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
7497         little endian.
7498         (vec_pack_ufix_trunc_v2df): Likewise.
7500 2013-11-05  H.J. Lu  <hongjiu.lu@intel.com>
7502         PR middle-end/58981
7503         * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
7504         pattern, instead of word_mode.
7506         * expr.c (emit_block_move_via_movmem): Don't use mode wider than
7507         Pmode for size.
7508         (set_storage_via_setmem): Likewise.
7510 2013-11-05  Andrew MacLeod  <amacleod@redhat.com>
7512         * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
7513         gimple.h and the rest of the condition in eliminate_build.
7514         (eliminate_build): Call new routine.
7515         * gimple.h (phi_ssa_name_p): Delete.
7517 2013-11-05  Trevor Saunders  <tsaunders@mozilla.com>
7519         * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
7520         case of no prefix and reserving zero slots, because when that's the
7521         case we'll never get here.
7522         * vec.h (va_heap::reserve): Don't try and handle
7523         vec_prefix::calculate_allocation returning zero because that should
7524         never happen.
7526 2013-11-05  Richard Biener  <rguenther@suse.de>
7528         PR middle-end/58941
7529         * tree-dfa.c (get_ref_base_and_extent): Merge common code
7530         in MEM_REF and TARGET_MEM_REF handling.  Make sure to
7531         process trailing array detection before diving into the
7532         view-converted object (and possibly apply some extra offset).
7534 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
7536         * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
7537         New function.
7538         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
7540 2013-11-05  Marc Glisse  <marc.glisse@inria.fr>
7542         PR tree-optimization/58958
7543         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
7544         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
7546 2013-11-05  Marc Glisse  <marc.glisse@inria.fr>
7548         * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
7549         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
7551 2013-11-05  Jakub Jelinek  <jakub@redhat.com>
7553         PR tree-optimization/58984
7554         * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
7555         set *SIZE_P if non-NULL on success.
7556         (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
7557         callers.
7558         (ipcp_transform_function): Likewise.  Punt if size of access
7559         is different from TYPE_SIZE on v->value's type.
7561 2013-11-05  Tobias Burnus  <burnus@net-b.de>
7563         * doc/invoke.texi (-fopenmp-simd): Document new option.
7564         * gimplify.c (gimplify_body): Accept -fopenmp-simd.
7565         * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
7566         * tree.c (attribute_value_equal): Ditto.
7568 2013-11-04  Wei Mi  <wmi@google.com>
7570         * sched-rgn.c (add_branch_dependences): Keep insns in
7571         a SCHED_GROUP at the end of BB to remain their location.
7573 2013-11-04  Wei Mi  <wmi@google.com>
7575         * config/i386/i386.c (memory_address_length): Extract a part
7576         of code to rip_relative_addr_p.
7577         (rip_relative_addr_p): New Function.
7578         (ix86_macro_fusion_p): Ditto.
7579         (ix86_macro_fusion_pair_p): Ditto.
7580         * config/i386/i386.h: Add new tune features about macro-fusion.
7581         * config/i386/x86-tune.def (DEF_TUNE): Ditto.
7582         * doc/tm.texi: Generated.
7583         * doc/tm.texi.in: Ditto.
7584         * haifa-sched.c (try_group_insn): New Function.
7585         (group_insns_for_macro_fusion): Ditto.
7586         (sched_init): Call group_insns_for_macro_fusion.
7587         * target.def: Add two hooks: macro_fusion_p and
7588         macro_fusion_pair_p.
7590 2013-11-04  Kostya Serebryany  <kcc@google.com>
7592         Update to match the changed asan API.
7593         * asan.c (asan_function_start): New function.
7594         (asan_emit_stack_protection): Update the string stored in the
7595         stack red zone to match new API.  Store the PC of the current
7596         function in the red zone.
7597         (asan_global_struct): Update the __asan_global definition to match
7598         the new API.
7599         (asan_add_global): Ditto.
7600         * asan.h (asan_function_start): New prototype.
7601         * final.c (final_start_function): Call asan_function_start.
7602         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
7603         to __asan_init_v3.
7605 2013-11-04  Wei Mi  <wmi@google.com>
7607         * config/i386/i386-c.c (ix86_target_macros_internal): Separate
7608         PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
7609         * config/i386/i386.c (ix86_option_override_internal): Ditto.
7610         (ix86_issue_rate): Ditto.
7611         (ix86_adjust_cost): Ditto.
7612         (ia32_multipass_dfa_lookahead): Ditto.
7613         (ix86_sched_init_global): Ditto.
7614         (get_builtin_code_for_version): Ditto.
7615         * config/i386/i386.h (enum target_cpu_default): Ditto.
7616         (enum processor_type): Ditto.
7617         * config/i386/x86-tune.def (DEF_TUNE): Ditto.
7619 2013-11-04  Vladimir Makarov  <vmakarov@redhat.com>
7621         PR rtl-optimization/58967
7622         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
7623         !lra_in_progress for mode sizes bigger word.
7625 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7627         * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
7628         arguments to merge instruction for little endian.
7629         (vec_widen_umult_lo_v16qi): Likewise.
7630         (vec_widen_smult_hi_v16qi): Likewise.
7631         (vec_widen_smult_lo_v16qi): Likewise.
7632         (vec_widen_umult_hi_v8hi): Likewise.
7633         (vec_widen_umult_lo_v8hi): Likewise.
7634         (vec_widen_smult_hi_v8hi): Likewise.
7635         (vec_widen_smult_lo_v8hi): Likewise.
7637 2013-11-04  Ian Lance Taylor  <iant@google.com>
7639         * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
7640         * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
7641         builtins that take pointers.
7642         * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
7643         * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
7644         (run_gcc): Pass -fnon-call-exceptions.
7646 2013-11-04  Jakub Jelinek  <jakub@redhat.com>
7648         * optabs.c (expand_vec_perm): Revert one incorrect line from
7649         2013-10-31 change.
7651         PR tree-optimization/58978
7652         * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
7653         use_stmt by single_imm_use directly.  Only call single_imm_use
7654         on SSA_NAMEs.
7656 2013-11-04  Vladimir Makarov  <vmakarov@redhat.com>
7658         PR rtl-optimization/58968
7659         * lra-spills.c (return_regno_p): New function.
7660         (lra_final_code_change): Use it.
7662 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
7664         * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
7665         * target.def (float_exceptions_rounding_supported_p): New hook.
7666         * targhooks.c (default_float_exceptions_rounding_supported_p): New
7667         function.
7668         * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
7669         * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
7670         New @hook.
7671         * doc/tm.texi: Regenerate.
7672         * config.gcc (powerpc*-*-linux*): Set extra_objs.
7673         * config/rs6000/rs6000-linux.c: New file.
7674         * config/rs6000/rs6000-protos.h
7675         (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
7676         * config/rs6000/linux.h
7677         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
7678         * config/rs6000/linux64.h
7679         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
7680         * config/rs6000/t-linux (rs6000-linux.o): New rule.
7681         * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
7683 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7685         * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
7686         Replace the define_insn_and_split with a define_insn and two
7687         define_splits, with the split after reload re-permuting the source
7688         register to its original value.
7689         (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
7690         (*vsx_le_perm_store_v8hi): Likewise.
7691         (*vsx_le_perm_store_v16qi): Likewise.
7693 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7695         * config/rs6000/vector.md (vec_pack_trunc_v2df):  Adjust for
7696         little endian.
7698 2013-11-04  Jakub Jelinek  <jakub@redhat.com>
7700         PR tree-optimization/58946
7701         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
7702         bbs with bbinfo[idx].op != NULL before all blocks with
7703         bbinfo[idx].op == NULL.
7705 2013-11-04  Richard Sandiford  <rdsandiford@googlemail.com>
7707         * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
7708         (avr_dump_double_int_hex): Likewise.
7709         (avr_log_vadump): Remove %D and %X handling.
7710         * config/avr/avr.c (avr_double_int_push_digit): Delete.
7711         (avr_map_op_t): Change map from double_int to unsigned int.
7712         (avr_map_op): Update accordingly.
7713         (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
7714         (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
7715         unsigned ints rather than double_ints.
7717 2013-11-03  Marek Polacek  <polacek@redhat.com>
7719         Implement -fsanitize=vla-bound.
7720         * opts.c (common_handle_option): Handle vla-bound.
7721         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
7722         * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
7723         * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
7725 2013-11-02  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
7727         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
7728         little endian.
7730 2013-11-02  Uros Bizjak  <ubizjak@gmail.com>
7732         * config/i386/constraints.md (Ts, Tv): New address constrains.
7733         * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
7734         constraint for address_no_seg_operand.
7735         * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
7736         (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
7737         (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
7738         (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
7739         (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
7740         (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
7741         (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
7742         (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
7743         constraint for vsib_address_operand.
7745 2013-11-02  Steven Bosscher  <steven@gcc.gnu.org>
7747         * gcse.c (pre_delete): Remove references to regmove from comments.
7748         * recog.c: (validate_replace_rtx_1): Likewise.
7749         * config/rl78/rl78.c: Likewise.
7750         * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
7751         * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
7752         * common/config/mmix/mmix-common.c: Likewise.
7754 2013-11-01  Trevor Saunders  <tsaunders@mozilla.com>
7756         * function.c (reorder_blocks): Convert block_stack to a stack_vec.
7757         * gimplify.c (gimplify_compound_lval): Likewise.
7758         * graphite-clast-to-gimple.c (gloog): Likewise.
7759         * graphite-dependences.c (loop_is_parallel_p): Likewise.
7760         * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
7761         (limit_scop); Likewise.
7762         (build_scops): Likewise.
7763         (dot_scop): Likewise.
7764         * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
7765         (build_scop_drs): Likewise.
7766         (insert_stmts): Likewise.
7767         (insert_out_of_ssa_copy): Likewise.
7768         (remove_phi): Likewise.
7769         (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
7770         * hw-doloop.c (discover_loop): Likewise.
7771         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
7772         * tree-dfa.c (dump_enumerated_decls): Likewise.
7773         * tree-if-conv.c (if_convertable_loop_p): Likewise.
7774         * tree-inline.c (tree_function_versioning): Likewise.
7775         * tree-loop-distribution.c (build_rdg): Likewise.
7776         (rdg_flag_vertex_and_dependent): Likewise.
7777         (distribute_loop): Likewise.
7778         * tree-parloops.c (loop_parallel_p): Likewise.
7779         (eliminate_local_variables): Likewise.
7780         (separate_decls_in_region): Likewise.
7781         * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
7782         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
7783         * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
7784         * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
7785         * tree-vect-patterns.c (vect_pattern_recog): Likewise.
7786         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
7787         (vectorizable_condition): Likewise.
7789 2013-11-01  Uros Bizjak  <ubizjak@gmail.com>
7791         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
7792         * configure: Regenerate.
7793         * config/i386/i386.md (*movdi_internal): Change
7794         HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
7795         (*movdf_internal): Ditto.
7796         * config/i386/mmx.md (*mov<mode>_internal): Ditto.
7797         * config/i386/sse.md (vec_concatv2di): Output interunit movq
7798         for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
7800 2013-10-31  Robert Suchanek  <Robert.Suchanek@imgtec.com>
7802         * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
7803         after comment.
7805 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
7807         Automated part of renaming of symtab_node_base to symtab_node.
7809         Patch autogenerated by rename_symtab.py from
7810         https://github.com/davidmalcolm/gcc-refactoring-scripts
7811         revision 58bb219cc090b2f4516a9297d868c245495ee622
7812         with ChangeLog entry fixed up by hand.
7814         * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
7815         symtab_node.
7816         (cgraph_node_for_asm): Likewise.
7817         * cgraph.h (symtab_node_base): Likewise.
7818         (cgraph_node): Likewise.
7819         (varpool_node): Likewise.
7820         (is_a_helper <cgraph_node>::test): Likewise.
7821         (is_a_helper <varpool_node>::test): Likewise.
7822         (symtab_nodes): Likewise.
7823         (symtab_register_node): Likewise.
7824         (symtab_unregister_node): Likewise.
7825         (symtab_remove_node): Likewise.
7826         (symtab_get_node): Likewise.
7827         (symtab_node_for_asm): Likewise.
7828         (symtab_node_asm_name): Likewise.
7829         (symtab_node_name): Likewise.
7830         (symtab_insert_node_to_hashtable): Likewise.
7831         (symtab_add_to_same_comdat_group): Likewise.
7832         (symtab_dissolve_same_comdat_group_list): Likewise.
7833         (dump_symtab_node): Likewise.
7834         (debug_symtab_node): Likewise.
7835         (dump_symtab_base): Likewise.
7836         (verify_symtab_node): Likewise.
7837         (verify_symtab_base): Likewise.
7838         (symtab_used_from_object_file_p): Likewise.
7839         (symtab_alias_ultimate_target): Likewise.
7840         (symtab_resolve_alias): Likewise.
7841         (fixup_same_cpp_alias_visibility): Likewise.
7842         (symtab_for_node_and_aliases): Likewise.
7843         (symtab_nonoverwritable_alias): Likewise.
7844         (availability symtab_node_availability): Likewise.
7845         (symtab_semantically_equivalent_p): Likewise.
7846         (fixup_same_cpp_alias_visibility): Likewise.
7847         (symtab_prevail_in_asm_name_hash): Likewise.
7848         (cgraph): Likewise.
7849         (varpool): Likewise.
7850         (varpool_first_variable): Likewise.
7851         (varpool_next_variable): Likewise.
7852         (varpool_first_static_initializer): Likewise.
7853         (varpool_next_static_initializer): Likewise.
7854         (varpool_first_defined_variable): Likewise.
7855         (varpool_next_defined_variable): Likewise.
7856         (cgraph_first_defined_function): Likewise.
7857         (cgraph_next_defined_function): Likewise.
7858         (cgraph_first_function): Likewise.
7859         (cgraph_next_function): Likewise.
7860         (cgraph_first_function_with_gimple_body): Likewise.
7861         (cgraph_next_function_with_gimple_body): Likewise.
7862         (symtab_alias_target): Likewise.
7863         (symtab_real_symbol_p): Likewise.
7864         (symtab_can_be_discarded): Likewise.
7865         * cgraphbuild.c (mark_address): Likewise.
7866         (mark_load): Likewise.
7867         (mark_store): Likewise.
7868         * cgraphunit.c (decide_is_symbol_needed): Likewise.
7869         (first): Likewise.
7870         (enqueue_node): Likewise.
7871         (referred_to_p): Likewise.
7872         (cgraph_process_same_body_aliases): Likewise.
7873         (analyze_functions): Likewise.
7874         (handle_alias_pairs): Likewise.
7875         (output_weakrefs): Likewise.
7876         (compile): Likewise.
7877         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
7878         * ipa-inline-analysis.c (inline_write_summary): Likewise.
7879         * ipa-prop.c (remove_described_reference): Likewise.
7880         (try_decrement_rdesc_refcount): Likewise.
7881         (ipa_edge_duplication_hook): Likewise.
7882         * ipa-ref.c (ipa_record_reference): Likewise.
7883         (ipa_maybe_record_reference): Likewise.
7884         (ipa_clone_ref): Likewise.
7885         (ipa_clone_references): Likewise.
7886         (ipa_clone_referring): Likewise.
7887         (ipa_find_reference): Likewise.
7888         (ipa_remove_stmt_references): Likewise.
7889         (ipa_clear_stmts_in_references): Likewise.
7890         * ipa-ref.h (symtab_node_base): Likewise.
7891         (ipa_ref): Likewise.
7892         (ipa_record_reference): Likewise.
7893         (ipa_maybe_record_reference): Likewise.
7894         (ipa_clone_references): Likewise.
7895         (ipa_clone_referring): Likewise.
7896         (ipa_clone_ref): Likewise.
7897         (ipa_find_reference): Likewise.
7898         (ipa_remove_stmt_references): Likewise.
7899         (ipa_clear_stmts_in_references): Likewise.
7900         * ipa-reference.c (ipa_reference_write_optimization_summary):
7901         Likewise.
7902         * ipa.c (enqueue_node): Likewise.
7903         (process_references): Likewise.
7904         (walk_polymorphic_call_targets): Likewise.
7905         (symtab_remove_unreachable_nodes): Likewise.
7906         (address_taken_from_non_vtable_p): Likewise.
7907         (comdat_can_be_unshared_p_1): Likewise.
7908         (comdat_can_be_unshared_p): Likewise.
7909         (can_replace_by_local_alias): Likewise.
7910         (function_and_variable_visibility): Likewise.
7911         * is-a.h: Likewise (within example in comment).
7912         * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
7913         (lto_symtab_encoder_encode): Likewise.
7914         (lto_symtab_encoder_delete_node): Likewise.
7915         (lto_symtab_encoder_in_partition_p): Likewise.
7916         (lto_set_symtab_encoder_in_partition): Likewise.
7917         (output_refs): Likewise.
7918         (compute_ltrans_boundary): Likewise.
7919         (output_symtab): Likewise.
7920         (input_node): Likewise.
7921         (input_ref): Likewise.
7922         (input_edge): Likewise.
7923         (input_cgraph_1): Likewise.
7924         (input_refs): Likewise.
7925         (output_cgraph_opt_summary): Likewise.
7926         (input_node_opt_summary): Likewise.
7927         (input_cgraph_opt_section): Likewise.
7928         * lto-section-in.c (lto_free_function_in_decl_state_for_node):
7929         Likewise.
7930         * lto-streamer-out.c (lto_output): Likewise.
7931         (output_symbol_p): Likewise.
7932         (produce_symtab): Likewise.
7933         * lto-streamer.h (lto_encoder_entry): Likewise.
7934         (lto_free_function_in_decl_state_for_node): Likewise.
7935         (lto_symtab_encoder_encode): Likewise.
7936         (lto_symtab_encoder_delete_node): Likewise.
7937         (lto_symtab_encoder_in_partition_p): Likewise.
7938         (lto_set_symtab_encoder_in_partition): Likewise.
7939         (lto_symtab_encoder_lookup): Likewise.
7940         (lsei_node): Likewise.
7941         (lto_symtab_encoder_deref): Likewise.
7942         * symtab.c (symtab_hash): Likewise.
7943         (assembler_name_hash): Likewise.
7944         (symtab_nodes): Likewise.
7945         (hash_node): Likewise.
7946         (eq_node): Likewise.
7947         (hash_node_by_assembler_name): Likewise.
7948         (eq_assembler_name): Likewise.
7949         (insert_to_assembler_name_hash): Likewise.
7950         (unlink_from_assembler_name_hash): Likewise.
7951         (symtab_prevail_in_asm_name_hash): Likewise.
7952         (symtab_register_node): Likewise.
7953         (symtab_insert_node_to_hashtable): Likewise.
7954         (symtab_unregister_node): Likewise.
7955         (symtab_get_node): Likewise.
7956         (symtab_remove_node): Likewise.
7957         (symtab_initialize_asm_name_hash): Likewise.
7958         (symtab_node_for_asm): Likewise.
7959         (symtab_add_to_same_comdat_group): Likewise.
7960         (symtab_dissolve_same_comdat_group_list): Likewise.
7961         (symtab_node_asm_name): Likewise.
7962         (symtab_node_name): Likewise.
7963         (dump_symtab_base): Likewise.
7964         (dump_symtab_node): Likewise.
7965         (dump_symtab): Likewise.
7966         (debug_symtab_node): Likewise.
7967         (verify_symtab_base): Likewise.
7968         (verify_symtab_node): Likewise.
7969         (verify_symtab): Likewise.
7970         (symtab_used_from_object_file_p): Likewise.
7971         (symtab_node_availability): Likewise.
7972         (symtab_alias_ultimate_target): Likewise.
7973         (fixup_same_cpp_alias_visibility): Likewise.
7974         (symtab_resolve_alias): Likewise.
7975         (symtab_for_node_and_aliases): Likewise.
7976         (symtab_for_node_and_aliases): Likewise.
7977         (symtab_nonoverwritable_alias_1): Likewise.
7978         (symtab_nonoverwritable_alias): Likewise.
7979         (symtab_semantically_equivalent_p): Likewise.
7980         * value-prof.c (init_node_map): Likewise.
7981         * varasm.c (find_decl): Likewise.
7982         * varpool.c (varpool_node_for_asm): Likewise.
7983         (varpool_remove_unreferenced_decls): Likewise.
7985 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
7987         Manual part of renaming of symtab_node_base to symtab_node.
7989         * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
7990         clashes with the preferred name for the base class.
7991         (const_symtab_node): Remove redundant typedef.
7993 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
7995         * optabs.c (expand_vec_perm): Avoid vector mode punning
7996         SUBREGs in SET_DEST.
7997         * expmed.c (store_bit_field_1): Likewise.
7998         * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
7999         vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
8000         vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
8001         * config/i386/i386.c (ix86_expand_vector_move_misalign,
8002         ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
8003         ix86_expand_sse_unpack, ix86_expand_args_builtin,
8004         ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
8005         emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
8006         expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
8007         expand_vec_perm_vpshufb2_vpermq,
8008         expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
8009         expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
8010         ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
8011         (expand_vec_perm_palignr): Likewise.  Modify a copy of *d rather
8012         than *d itself.
8014 2013-10-31  Uros Bizjak  <ubizjak@gmail.com>
8016         * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
8017         Use gcc_unreachable for unhandled modes.  Do not check results of
8018         expand_simple_binop.  If not expanded to target, move the result.
8020 2013-10-31  Chung-Ju Wu  <jasonwucj@gmail.com>
8021             Shiva Chen  <shiva0217@gmail.com>
8023         * config.gcc (nds32*-*-*): Add nds32 target.
8024         * config/nds32/nds32.c: New file.
8025         * config/nds32/nds32.h: New file.
8026         * config/nds32/nds32.md: New file.
8027         * config/nds32/constants.md: New file.
8028         * config/nds32/constraints.md: New file.
8029         * config/nds32/iterators.md: New file.
8030         * config/nds32/nds32-doubleword.md: New file.
8031         * config/nds32/nds32-intrinsic.md: New file.
8032         * config/nds32/nds32_intrinsic.h: New file.
8033         * config/nds32/nds32-modes.def: New file.
8034         * config/nds32/nds32-multiple.md: New file.
8035         * config/nds32/nds32.opt: New file.
8036         * config/nds32/nds32-opts.h: New file.
8037         * config/nds32/nds32-protos.h: New file.
8038         * config/nds32/nds32-peephole2.md: New file.
8039         * config/nds32/pipelines.md: New file.
8040         * config/nds32/predicates.md: New file.
8041         * config/nds32/t-mlibs: New file.
8042         * common/config/nds32: New directory and files.
8044         * doc/invoke.texi (NDS32 options): Document nds32 specific options.
8045         * doc/md.texi (NDS32 family): Document nds32 specific constraints.
8046         * doc/install.texi (Cross-Compiler-Specific Options): Document
8047         --with-nds32-lib for nds32 target.
8048         * doc/extend.texi (Function Attributes, Target Builtins): Document
8049         nds32 specific attributes.
8051 2013-10-31  Vladimir Makarov  <vmakarov@redhat.com>
8053         * lra-constraints (process_alt_operands): Use the result
8054         elimination register for operand when matching constraints.
8056 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
8058         * tree-vrp.c (maybe_set_nonzero_bits): New function.
8059         (remove_range_assertions): Call it.
8061         * tree.c (tree_ctz): New function.
8062         * tree.h (tree_ctz): New prototype.
8063         * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
8064         first argument from tree to const_tree.
8065         * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
8066         * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
8067         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
8068         static.
8069         * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
8070         * tree-vect-loop.c (vect_analyze_loop_operations,
8071         vect_transform_loop): Don't force scalar loop for bound just because
8072         number of iterations is unknown, only do it if it is not known to be
8073         a multiple of vectorization_factor.
8074         * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
8076         * gimple-pretty-print.c (dump_ssaname_info): Print newline also
8077         in case of VR_VARYING.  Print get_nonzero_bits if not all ones.
8078         * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
8079         (set_nonzero_bits, get_nonzero_bits): New prototypes.
8080         * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
8081         a default def isn't partially constant.
8082         (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
8083         is known to be partially zero.
8084         (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
8085         to see if a default def isn't partially constant.
8086         * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
8087         creation of a range, if VR_RANGE, try to improve nonzero_bits from
8088         the range.
8089         (set_nonzero_bits, get_nonzero_bits): New functions.
8091         * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
8092         * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
8093         * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
8094         (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
8095         uses but in the condition and ASSERT_EXPR and the other successor of
8096         the predecessor bb is __builtin_unreachable (), set_range_info of the
8097         ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
8099 2013-10-31  Martin Jambor  <mjambor@suse.cz>
8101         PR rtl-optimization/58934
8102         Revert:
8103         2013-10-30  Martin Jambor  <mjambor@suse.cz>
8104         PR rtl-optimization/10474
8105         * ira.c (find_moveable_pseudos): Do not calculate dominance info
8106         nor df analysis.
8107         (interesting_dest_for_shprep): New function.
8108         (split_live_ranges_for_shrink_wrap): Likewise.
8109         (ira): Calculate dominance info and df analysis. Call
8110         split_live_ranges_for_shrink_wrap.
8112 2013-10-31  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
8113             Yury Gribov  <y.gribov@samsung.com>
8115         PR sanitizer/58543
8116         * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
8117         shadow pointer to avoid clobbering the main one.
8119 2013-10-31  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
8121         * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
8123 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
8125         PR bootstrap/58933
8126         * ira-color.c (update_costs_from_copies): Add new parameter.  Use
8127         it for calling update_costs_from_allocno.
8128         (assign_hard_reg): Call restore_costs_from_copies only for
8129         !retry_p.  Pass new argument to update_costs_from_copies.
8130         (color_pass): Pass new argument to update_costs_from_copies.
8131         (ira_mark_allocation_change): Ditto.
8133 2013-10-30  Sharad Singhai  <singhai@google.com>
8135         PR middle-end/58134
8136         * opts.c (common_handle_option): Remove deprecated option
8137         -ftree-vectorizer-verbose.
8138         * doc/invoke.texi (Debugging Options): Ditto.
8139         * opts-global.c (handle_common_deferred_options): Ditto.
8140         (dump_remap_tree_vectorizer_verbose): Delete.
8141         * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
8143 2013-10-30  DJ Delorie  <dj@redhat.com>
8145         * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
8146         that take no arguments.
8148 2013-10-30  Joern Rennecke  <joern.rennecke@embecosm.com>
8150         PR other/58545
8151         * reload1.c (update_eliminables_and_spill): New function, broken
8152         out of reload.
8153         (reload): Use it.  Check for frame size change after frame size
8154         alignment, and call update_eliminables_and_spill first if continue-ing.
8156 2013-10-30  Cong Hou  <congh@google.com>
8158         PR target/58762
8159         * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
8160         * config/i386/i386.c (ix86_expand_sse2_abs): New function.
8161         * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
8163 2013-10-18  Mikael Pettersson  <mikpelinux@gmail.com>
8165         PR rtl-optimization/58369
8166         * reload1.c (compute_reload_subreg_offset): New function.
8167         (choose_reload_regs): Use it to pass endian-correct
8168         offset to subreg_regno_offset.
8170 2013-10-30  Tobias Burnus  <burnus@net-b.de>
8172         PR other/33426
8173         * tree-cfg.c (replace_loop_annotate): Replace warning by
8174         warning_at.
8176 2013-10-30  Jason Merrill  <jason@redhat.com>
8178         * configure.ac (loose_warn): Add -Wno-format if
8179         --disable-build-format-warnings.
8181 2013-10-30  David Malcolm  <dmalcolm@redhat.com>
8183         * cgraphunit.c (analyze_functions): Split symtab_node declarations
8184         onto multiple lines to make things easier for rename_symtab.py.
8186         * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
8187         (symtab_semantically_equivalent_p): Likewise.
8189 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
8191         PR target/58784
8192         * lra.c (check_rtl): Remove address check before LRA work.
8194 2013-10-30  Marc Glisse  <marc.glisse@inria.fr>
8196         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
8197         POINTER_PLUS_EXPR in the defining statement.
8199 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
8201         * regmove.c: Remove.
8202         * tree-pass.h (make_pass_regmove): Remove.
8203         * timevar.def (TV_REGMOVE): Remove.
8204         * passes.def (pass_regmove): Remove.
8205         * opts.c (default_options_table): Remove entry for regmove.
8206         * doc/passes.texi: Remove regmove pass description.
8207         * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
8208         options.
8209         (-fdump-rtl-regmove): Ditto.
8210         * common.opt (foptimize-register-move, fregmove): Ignore.
8211         * Makefile.in (OBJS): Remove regmove.o.
8212         * regmove.c: Remove.
8213         * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
8214         and type.
8215         (struct ira_allocno) New member allocno_prefs.
8216         (ALLOCNO_PREFS): New macro.
8217         (ira_prefs, ira_prefs_num): New external vars.
8218         (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
8219         (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
8220         (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
8221         Ditto.
8222         (ira_add_allocno_copy_to_list): Remove prototype.
8223         (ira_swap_allocno_copy_ends_if_necessary): Ditto.
8224         (ira_pref_iterator): New type.
8225         (ira_pref_iter_init, ira_pref_iter_cond): New functions.
8226         (FOR_EACH_PREF): New macro.
8227         * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
8228         (ira_get_dup_out_num): Ditto. Rename from get_dup_num.  Modify the
8229         code.
8230         (ira_setup_alts): New function.
8231         (decrease_live_ranges_number): New function.
8232         (ira): Call the above function.
8233         * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
8234         (ira_create_allocno): Initialize allocno prefs.
8235         (pref_pool, pref_vec): New static vars.
8236         (initiate_prefs, find_allocno_pref, ira_create_pref): New
8237         functions.
8238         (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
8239         (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
8240         (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
8241         (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
8242         (ira_add_allocno_copy_to_list): Make static.  Rename to
8243         add_allocno_copy_to_list.
8244         (ira_swap_allocno_copy_ends_if_necessary): Make static.  Rename to
8245         swap_allocno_copy_ends_if_necessary.
8246         (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
8247         ira_remove_allocno_prefs.
8248         (ira_flattening): Ditto.
8249         (ira_build): Call initiate_prefs, print_prefs.
8250         (ira_destroy): Call finish_prefs.
8251         * ira-color.c (struct update_cost_record): New.
8252         (struct allocno_color_data): Add new member update_cost_records.
8253         (update_cost_record_pool): New static var.
8254         (init_update_cost_records, get_update_cost_record): New functions.
8255         (free_update_cost_record_list, finish_update_cost_records): Ditto.
8256         (struct update_cost_queue_elem): Add member from.
8257         (initiate_cost_update): Call init_update_cost_records.
8258         (finish_cost_update): Call finish_update_cost_records.
8259         (queue_update_cost, get_next_update_cost): Add new param from.
8260         (Update_allocno_cost, update_costs_from_allocno): New functions.
8261         (update_costs_from_prefs): Ditto.
8262         (update_copy_costs): Rename to update_costs_from_copies.
8263         (restore_costs_from_copies): New function.
8264         (update_conflict_hard_regno_costs): Don't go back.
8265         (assign_hard_reg): Call restore_costs_from_copies.  Add printing
8266         more debug info.
8267         (pop_allocnos): Add priniting more debug info.
8268         (color_allocnos): Remove prefs for conflicting hard regs.
8269         Call update_costs_from_prefs.
8270         * ira-conflicts.c (commutative_constraint_p): Move to ira.c
8271         (get_dup_num): Rename, modify, and move to ira.c
8272         (process_regs_for_copy): Add prefs.
8273         (add_insn_allocno_copies): Put src as first arg of
8274         process_regs_for_copy.  Remove dead code.  Call ira_setup_alts.
8275         * ira-costs.c (record_reg_classes): Modify and move code into
8276         record_operands_costs.
8277         (find_costs_and_classes): Create prefs for the hard reg of small
8278         reg class.
8279         (process_bb_node_for_hard_reg_moves): Add prefs.
8281 2013-10-30  Richard Biener  <rguenther@suse.de>
8283         PR middle-end/57100
8284         * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
8285         * cfganal.c (pre_and_rev_post_order_compute_fn): New function
8286         as worker for ...
8287         (pre_and_rev_post_order_compute): ... which now wraps it.
8288         * graph.c (draw_cfg_nodes_no_loops): Use
8289         pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
8290         on cfun.
8292 2013-10-30  Christian Bruel  <christian.bruel@st.com>
8294         * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
8295         (sh_expand_cmpstr): Handle known align and schedule improvements.
8296         * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
8297         * config/sh/sh.md (cmpstrnsi): New pattern.
8299 2013-10-30  Martin Jambor  <mjambor@suse.cz>
8301         PR rtl-optimization/10474
8302         * ira.c (find_moveable_pseudos): Do not calculate dominance info
8303         nor df analysis.
8304         (interesting_dest_for_shprep): New function.
8305         (split_live_ranges_for_shrink_wrap): Likewise.
8306         (ira): Calculate dominance info and df analysis. Call
8307         split_live_ranges_for_shrink_wrap.
8309 2013-10-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8311         PR target/58854
8312         * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
8314 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
8316         * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
8317         * tree.h (POINTER_BOUNDS_P): New.
8318         (BOUNDED_TYPE_P): New.
8319         (BOUNDED_P): New.
8320         (pointer_bounds_type_node): New.
8321         * tree.c (build_common_tree_nodes): Initialize
8322         pointer_bounds_type_node.
8323         * gimple.h (gimple_call_get_nobnd_arg_index): New.
8324         (gimple_call_num_nobnd_args): New.
8325         (gimple_call_nobnd_arg): New.
8326         (gimple_return_retbnd): New.
8327         (gimple_return_set_retbnd): New
8328         * gimple.c (gimple_build_return): Increase number of ops
8329         for return statement.
8330         (gimple_call_get_nobnd_arg_index): New.
8331         * gimple-pretty-print.c (dump_gimple_return): Print second op.
8333 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
8335         * ipa.c (cgraph_build_static_cdtor_1): Support contructors
8336         with "chkp ctor" and "bnd_legacy" attributes.
8337         * gimplify.c (gimplify_init_constructor): Avoid infinite
8338         loop during gimplification of bounds initializer.
8340 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
8342         * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
8343         (handle_bnd_legacy): New.
8344         (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
8345         * doc/extend.texi: Document bnd_variable_size and bnd_legacy
8346         attributes.
8348 2013-10-29  Ilya Enkovich  <ilya.enkovich@intel.com>
8350         * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
8351         (BT_FN_PTR_CONST_PTR): New.
8352         (BT_FN_CONST_PTR_CONST_PTR): New.
8353         (BT_FN_PTR_CONST_PTR_SIZE): New.
8354         (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
8355         (BT_FN_VOID_PTRPTR_CONST_PTR): New.
8356         (BT_FN_VOID_CONST_PTR_SIZE): New.
8357         (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
8358         * chkp-builtins.def: New.
8359         * builtins.def: include chkp-builtins.def.
8360         (DEF_CHKP_BUILTIN): New.
8361         * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
8362         BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
8363         BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
8364         BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
8365         BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
8366         BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
8367         BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
8368         BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
8369         BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
8370         BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
8371         * common.opt (fcheck-pointer-bounds): New.
8372         * toplev.c (process_options): Check Pointer Bounds Checker is
8373         supported.
8374         * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
8376 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
8378         * target.def (builtin_chkp_function): New.
8379         (chkp_bound_type): New.
8380         (chkp_bound_mode): New.
8381         (fn_abi_va_list_bounds_size): New.
8382         (load_bounds_for_arg): New.
8383         (store_bounds_for_arg): New.
8384         * targhooks.h (default_load_bounds_for_arg): New.
8385         (default_store_bounds_for_arg): New.
8386         (default_fn_abi_va_list_bounds_size): New.
8387         (default_chkp_bound_type): New.
8388         (default_chkp_bound_mode): New.
8389         (default_builtin_chkp_function): New.
8390         * targhooks.c (default_load_bounds_for_arg): New.
8391         (default_store_bounds_for_arg): New.
8392         (default_fn_abi_va_list_bounds_size): New.
8393         (default_chkp_bound_type): New.
8394         (default_chkp_bound_mode); New.
8395         (default_builtin_chkp_function): New.
8396         * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
8397         (TARGET_LOAD_BOUNDS_FOR_ARG): New.
8398         (TARGET_STORE_BOUNDS_FOR_ARG): New.
8399         (TARGET_BUILTIN_CHKP_FUNCTION): New.
8400         (TARGET_CHKP_BOUND_TYPE): New.
8401         (TARGET_CHKP_BOUND_MODE): New.
8402         * doc/tm.texi: Regenerated.
8403         * langhooks.h (lang_hooks): Add chkp_supported field.
8404         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
8405         (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
8407 2013-10-29  Andrew Pinski <apinski@cavium.com>
8409         * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
8410         (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
8411         fails, combining the branches anyways.
8412         (tree_ssa_ifcombine): Inverse the order of the basic block walk,
8413         increases the number of combinings.
8414         * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
8416 2013-10-29  Mike Stump  <mikestump@comcast.net>
8418         * machmode.def (PARTIAL_INT_MODE): Add precision and name.
8419         * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
8420         (make_vector_mode): Increase namebuf to 16.
8421         (emit_insn_modes_h): When processing BImode, don't
8422         also match partial int modes.
8423         (emit_class_narrowest_mode): Likewise.
8425         * config/bfin/bfin-modes.def: Add precision to PDI.
8426         * config/m32c/m32c-modes.def: Add precision to PSI.
8427         * config/msp430/msp430-modes.def: Add precision to PSI.
8428         * config/rs6000/rs6000-modes.def: Add precision to PTI.
8429         * config/sh/sh-modes.def: Add precision to PSI and PDI.
8431 2013-10-29  Oleg Endo  <olegendo@gcc.gnu.org>
8433         PR target/54236
8434         * config/sh/sh.md (*addc): Rename existing variations to ...
8435         (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
8436         (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
8437         *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
8438         * config/sh/sh.c (addsubcosts): Handle some addc special cases.
8440 2013-10-29  Teresa Johnson  <tejohnson@google.com>
8442         PR ipa/58862
8443         * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
8444         insanities when updating probabilities.
8446 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
8448         * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
8449         prettyprinter for cgraph_node to reflect the conversion of the
8450         symtable types to a C++ class hierarchy: it now *is* a
8451         symtab_node_base, rather than having one (named "symbol").
8453 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
8455         * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
8456         __cilkrts_pop_frame.  If matched, then return true for built-in
8457         function name.
8458         (expand_builtin): Added BUILT_IN_CILK_DETACH and
8459         BUILT_IN_CILK_POP_FRAME case.
8460         * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
8461         (lhs_cilk_detect_spawn): Likewise.
8462         (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
8463         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
8464         (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
8465         (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
8466         (LANG_HOOKS_CILKPLUS): Likewise.
8467         * tree.h (CILK_SPAWN_FN): Likewise.
8468         * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
8469         * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
8470         (OBJS): Added cilk-common.o.
8471         (BUILTINS_DEF): Added cilk-builtins.def.
8472         * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
8473         (lhd_cilk_detect_spawn): Likewise.
8474         * langhooks.h (lang_hooks_for_cilkplus): New struct.
8475         (struct lang_hooks): Added new field called "cilkplus."
8476         * cilk-common.c: New file.
8477         * cilk.h: Likewise.
8478         * cilk-builtins.def: Likewise.
8479         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
8480         "__cilk" macro and set it to 200.
8481         * function.h (struct function::cilk_frame_decl): New field.
8482         (struct function::is_cilk_function): Likewise.
8483         (struct function::calls_cilk_spawn): Likewise.
8484         * gimplify.c (gimplify_call_expr): Added a check if the function call
8485         being gimplified is a spawn detach point.  If so, then add pop_frame
8486         and detach function calls.
8487         (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
8488         for gimplifying _Cilk_spawn and _Cilk_sync statements.
8489         (gimplify_return_expr): Added a check for _Cilk_spawn usage in
8490         function.  If so, added a _Cilk_sync and gimplified it.
8491         (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
8492         INIT_EXPRs.  If so, then call gimplify_cilk_spawn.
8493         * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
8494         spawner function.
8495         (can_inline_edge_p): Prevent inling of spawnee function.
8496         * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
8497         for functions that use Cilk keywords.
8498         * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
8499         * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
8500         CILK_SYNC_STMT cases.
8501         * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
8502         trees.
8503         * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
8504         (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
8505         * passes.texi (Cilk Keywords): New section that describes the compiler
8506         code changes for handling Cilk Keywords.
8508 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
8510         Patch autogenerated by refactor_symtab.py from
8511         https://github.com/davidmalcolm/gcc-refactoring-scripts
8512         revision 58bb219cc090b2f4516a9297d868c245495ee622
8514         * asan.c (asan_finish_file): Update for conversion of symtab types to
8515         a true class hierarchy.
8516         * cfgexpand.c (estimated_stack_frame_size): Likewise.
8517         * cgraph.c (cgraph_get_body): Likewise.
8518         (cgraph_get_create_real_symbol_node): Likewise.
8519         (verify_cgraph_node): Likewise.
8520         (verify_edge_corresponds_to_fndecl): Likewise.
8521         (verify_edge_count_and_frequency): Likewise.
8522         (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
8523         (cgraph_can_remove_if_no_direct_calls_p): Likewise.
8524         (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
8525         (cgraph_node_cannot_return): Likewise.
8526         (cgraph_set_pure_flag_1): Likewise.
8527         (cgraph_set_const_flag_1): Likewise.
8528         (cgraph_set_nothrow_flag_1): Likewise.
8529         (cgraph_make_node_local_1): Likewise.
8530         (cgraph_for_node_and_aliases): Likewise.
8531         (cgraph_for_node_thunks_and_aliases): Likewise.
8532         (cgraph_node_can_be_local_p): Likewise.
8533         (cgraph_node_cannot_be_local_p_1): Likewise.
8534         (cgraph_function_body_availability): Likewise.
8535         (dump_cgraph_node): Likewise.
8536         (cgraph_rtl_info): Likewise.
8537         (cgraph_mark_address_taken_node): Likewise.
8538         (cgraph_remove_node): Likewise.
8539         (cgraph_release_function_body): Likewise.
8540         (cgraph_update_edges_for_call_stmt_node): Likewise.
8541         (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
8542         (cgraph_make_edge_direct): Likewise.
8543         (cgraph_resolve_speculation): Likewise.
8544         (cgraph_speculative_call_info): Likewise.
8545         (cgraph_turn_edge_to_speculative): Likewise.
8546         (cgraph_create_edge_1): Likewise.
8547         (cgraph_set_call_stmt): Likewise.
8548         (cgraph_node_for_asm): Likewise.
8549         (cgraph_add_thunk): Likewise.
8550         (cgraph_same_body_alias): Likewise.
8551         (cgraph_create_function_alias): Likewise.
8552         (cgraph_create_node): Likewise.
8553         (cgraph_create_empty_node): Likewise.
8554         (record_function_versions): Likewise.
8555         (used_from_object_file_p): Likewise.
8556         * cgraph.h (symtab_can_be_discarded): Likewise.
8557         (symtab_real_symbol_p): Likewise.
8558         (cgraph_mark_force_output_node): Likewise.
8559         (cgraph_edge_recursive_p): Likewise.
8560         (symtab_alias_target): Likewise.
8561         (varpool_all_refs_explicit_p): Likewise.
8562         (varpool_can_remove_if_no_refs): Likewise.
8563         (cgraph_only_called_directly_or_aliased_p): Likewise.
8564         (cgraph_next_function_with_gimple_body): Likewise.
8565         (cgraph_first_function_with_gimple_body): Likewise.
8566         (cgraph_function_with_gimple_body_p): Likewise.
8567         (cgraph_next_function): Likewise.
8568         (cgraph_first_function): Likewise.
8569         (cgraph_next_defined_function): Likewise.
8570         (cgraph_first_defined_function): Likewise.
8571         (varpool_next_defined_variable): Likewise.
8572         (varpool_first_defined_variable): Likewise.
8573         (varpool_next_static_initializer): Likewise.
8574         (varpool_first_static_initializer): Likewise.
8575         (varpool_next_variable): Likewise.
8576         (varpool_first_variable): Likewise.
8577         (varpool_node_name): Likewise.
8578         (varpool): Likewise.
8579         (cgraph): Likewise.
8580         (is_a_helper <varpool_node>::test): Likewise.
8581         (is_a_helper <cgraph_node>::test): Likewise.
8582         (varpool_variable_node): Likewise.
8583         (cgraph_function_or_thunk_node): Likewise.
8584         (varpool_alias_target): Likewise.
8585         (cgraph_alias_target): Likewise.
8586         (cgraph_node_name): Likewise.
8587         (varpool_node_asm_name): Likewise.
8588         (cgraph_node_asm_name): Likewise.
8589         * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
8590         (cgraph_rebuild_references): Likewise.
8591         (rebuild_cgraph_edges): Likewise.
8592         (record_eh_tables): Likewise.
8593         (build_cgraph_edges): Likewise.
8594         (mark_store): Likewise.
8595         (mark_load): Likewise.
8596         (mark_address): Likewise.
8597         (record_type_list): Likewise.
8598         (record_reference): Likewise.
8599         * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
8600         (cgraph_materialize_clone): Likewise.
8601         (cgraph_function_versioning): Likewise.
8602         (cgraph_copy_node_for_versioning): Likewise.
8603         (update_call_expr): Likewise.
8604         (cgraph_find_replacement_node): Likewise.
8605         (cgraph_create_virtual_clone): Likewise.
8606         (cgraph_clone_node): Likewise.
8607         * cgraphunit.c (compile): Likewise.
8608         (output_weakrefs): Likewise.
8609         (output_in_order): Likewise.
8610         (expand_function): Likewise.
8611         (assemble_thunks_and_aliases): Likewise.
8612         (expand_thunk): Likewise.
8613         (mark_functions_to_output): Likewise.
8614         (handle_alias_pairs): Likewise.
8615         (analyze_functions): Likewise.
8616         (walk_polymorphic_call_targets): Likewise.
8617         (varpool_finalize_decl): Likewise.
8618         (process_function_and_variable_attributes): Likewise.
8619         (cgraph_process_same_body_aliases): Likewise.
8620         (analyze_function): Likewise.
8621         (cgraph_add_new_function): Likewise.
8622         (cgraph_finalize_function): Likewise.
8623         (referred_to_p): Likewise.
8624         (cgraph_reset_node): Likewise.
8625         (cgraph_process_new_functions): Likewise.
8626         (enqueue_node): Likewise.
8627         (decide_is_symbol_needed): Likewise.
8628         * coverage.c (coverage_compute_profile_id): Likewise.
8629         * dbxout.c (dbxout_expand_expr): Likewise.
8630         * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
8631         (reference_to_unused): Likewise.
8632         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
8633         * gimplify.c (unvisit_body): Likewise.
8634         (unshare_body): Likewise.
8635         * ipa-cp.c (ipcp_generate_summary): Likewise.
8636         (ipcp_decision_stage): Likewise.
8637         (identify_dead_nodes): Likewise.
8638         (decide_whether_version_node): Likewise.
8639         (decide_about_value): Likewise.
8640         (perhaps_add_new_callers): Likewise.
8641         (create_specialized_node): Likewise.
8642         (update_profiling_info): Likewise.
8643         (ipcp_propagate_stage): Likewise.
8644         (estimate_local_effects): Likewise.
8645         (good_cloning_opportunity_p): Likewise.
8646         (devirtualization_time_bonus): Likewise.
8647         (propagate_constants_accross_call): Likewise.
8648         (initialize_node_lattices): Likewise.
8649         (ipcp_cloning_candidate_p): Likewise.
8650         (determine_versionability): Likewise.
8651         (print_all_lattices): Likewise.
8652         (print_lattice): Likewise.
8653         (ipcp_discover_new_direct_edges): Likewise.
8654         * ipa-devirt.c (ipa_devirt): Likewise.
8655         (likely_target_p): Likewise.
8656         (update_type_inheritance_graph): Likewise.
8657         (possible_polymorphic_call_target_p): Likewise.
8658         (dump_possible_polymorphic_call_targets): Likewise.
8659         (devirt_variable_node_removal_hook): Likewise.
8660         (record_binfo): Likewise.
8661         (maybe_record_node): Likewise.
8662         (build_type_inheritance_graph): Likewise.
8663         * ipa-inline-analysis.c (inline_write_summary): Likewise.
8664         (inline_generate_summary): Likewise.
8665         (inline_analyze_function): Likewise.
8666         (do_estimate_growth): Likewise.
8667         (simple_edge_hints): Likewise.
8668         (estimate_node_size_and_time): Likewise.
8669         (estimate_edge_devirt_benefit): Likewise.
8670         (compute_inline_parameters): Likewise.
8671         (estimate_function_body_sizes): Likewise.
8672         (compute_bb_predicates): Likewise.
8673         (initialize_inline_failed): Likewise.
8674         (dump_inline_summary): Likewise.
8675         (dump_inline_edge_summary): Likewise.
8676         * ipa-inline-transform.c (inline_transform): Likewise.
8677         (preserve_function_body_p): Likewise.
8678         (save_inline_function_body): Likewise.
8679         (inline_call): Likewise.
8680         (clone_inlined_nodes): Likewise.
8681         (can_remove_node_now_p): Likewise.
8682         (can_remove_node_now_p_1): Likewise.
8683         * ipa-inline.c (early_inliner): Likewise.
8684         (early_inline_small_functions): Likewise.
8685         (inline_always_inline_functions): Likewise.
8686         (ipa_inline): Likewise.
8687         (flatten_function): Likewise.
8688         (inline_small_functions): Likewise.
8689         (speculation_useful_p): Likewise.
8690         (recursive_inlining): Likewise.
8691         (update_caller_keys): Likewise.
8692         (reset_edge_caches): Likewise.
8693         (update_edge_key): Likewise.
8694         (edge_badness): Likewise.
8695         (relative_time_benefit): Likewise.
8696         (want_inline_self_recursive_call_p): Likewise.
8697         (want_inline_small_function_p): Likewise.
8698         (want_early_inline_function_p): Likewise.
8699         (num_calls): Likewise.
8700         (can_early_inline_edge_p): Likewise.
8701         (can_inline_edge_p): Likewise.
8702         (report_inline_failed_reason): Likewise.
8703         * ipa-profile.c (ipa_profile): Likewise.
8704         (ipa_propagate_frequency): Likewise.
8705         (ipa_propagate_frequency_1): Likewise.
8706         (ipa_profile_generate_summary): Likewise.
8707         * ipa-prop.c (ipcp_transform_function): Likewise.
8708         (read_replacements_section): Likewise.
8709         (ipa_prop_read_section): Likewise.
8710         (ipa_modify_call_arguments): Likewise.
8711         (ipa_print_node_params): Likewise.
8712         (propagate_controlled_uses): Likewise.
8713         (update_indirect_edges_after_inlining): Likewise.
8714         (remove_described_reference): Likewise.
8715         (ipa_make_edge_direct_to_target): Likewise.
8716         (ipa_analyze_node): Likewise.
8717         (ipa_analyze_params_uses): Likewise.
8718         (ipa_compute_jump_functions): Likewise.
8719         (ipa_get_callee_param_type): Likewise.
8720         (ipa_print_node_jump_functions): Likewise.
8721         (ipa_initialize_node_params): Likewise.
8722         (ipa_populate_param_decls): Likewise.
8723         (ipa_func_spec_opts_forbid_analysis_p): Likewise.
8724         (write_agg_replacement_chain): Likewise.
8725         (ipa_write_node_info): Likewise.
8726         (ipa_edge_duplication_hook): Likewise.
8727         (try_decrement_rdesc_refcount): Likewise.
8728         * ipa-pure-const.c (propagate_nothrow): Likewise.
8729         (propagate_pure_const): Likewise.
8730         (pure_const_read_summary): Likewise.
8731         (pure_const_write_summary): Likewise.
8732         (analyze_function): Likewise.
8733         * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
8734         (ipa_ref_referring_ref_list): Likewise.
8735         * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
8736         (ipa_remove_stmt_references): Likewise.
8737         (ipa_find_reference): Likewise.
8738         (ipa_dump_referring): Likewise.
8739         (ipa_dump_references): Likewise.
8740         (ipa_record_reference): Likewise.
8741         * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
8742         (ipa_reference_write_optimization_summary): Likewise.
8743         (write_node_summary_p): Likewise.
8744         (propagate): Likewise.
8745         (read_write_all_from_decl): Likewise.
8746         (generate_summary): Likewise.
8747         (analyze_function): Likewise.
8748         (propagate_bits): Likewise.
8749         (ipa_reference_get_not_written_global): Likewise.
8750         (ipa_reference_get_not_read_global): Likewise.
8751         * ipa-split.c (execute_split_functions): Likewise.
8752         (split_function): Likewise.
8753         * ipa-utils.c (ipa_merge_profiles): Likewise.
8754         (dump_cgraph_node_set): Likewise.
8755         (ipa_reverse_postorder): Likewise.
8756         (ipa_edge_within_scc): Likewise.
8757         (ipa_get_nodes_in_cycle): Likewise.
8758         (ipa_free_postorder_info): Likewise.
8759         (ipa_reduced_postorder): Likewise.
8760         (searchc): Likewise.
8761         (recursive_call_p): Likewise.
8762         * ipa.c (ipa_cdtor_merge): Likewise.
8763         (record_cdtor_fn): Likewise.
8764         (function_and_variable_visibility): Likewise.
8765         (varpool_externally_visible_p): Likewise.
8766         (cgraph_externally_visible_p): Likewise.
8767         (comdat_can_be_unshared_p): Likewise.
8768         (comdat_can_be_unshared_p_1): Likewise.
8769         (address_taken_from_non_vtable_p): Likewise.
8770         (ipa_discover_readonly_nonaddressable_vars): Likewise.
8771         (symtab_remove_unreachable_nodes): Likewise.
8772         (walk_polymorphic_call_targets): Likewise.
8773         (process_references): Likewise.
8774         (enqueue_node): Likewise.
8775         (has_addr_references_p): Likewise.
8776         (cgraph_non_local_node_p_1): Likewise.
8777         * is-a.h (varpool_analyze_node): Likewise.
8778         * lto-cgraph.c (input_symtab): Likewise.
8779         (merge_profile_summaries): Likewise.
8780         (input_cgraph_1): Likewise.
8781         (input_edge): Likewise.
8782         (input_varpool_node): Likewise.
8783         (input_node): Likewise.
8784         (input_overwrite_node): Likewise.
8785         (compute_ltrans_boundary): Likewise.
8786         (output_refs): Likewise.
8787         (lto_output_varpool_node): Likewise.
8788         (lto_output_node): Likewise.
8789         (reachable_from_other_partition_p): Likewise.
8790         (referenced_from_other_partition_p): Likewise.
8791         (lto_output_edge): Likewise.
8792         (output_node_opt_summary): Likewise.
8793         (add_node_to): Likewise.
8794         (reachable_from_this_partition_p): Likewise.
8795         (lto_set_symtab_encoder_in_partition): Likewise.
8796         (lto_symtab_encoder_in_partition_p): Likewise.
8797         (lto_set_symtab_encoder_encode_initializer): Likewise.
8798         (lto_symtab_encoder_encode_initializer_p): Likewise.
8799         (lto_set_symtab_encoder_encode_body): Likewise.
8800         (lto_symtab_encoder_encode_body_p): Likewise.
8801         * lto-section-in.c (lto_free_function_in_decl_state_for_node):
8802         Likewise.
8803         * lto-streamer-in.c (lto_read_body): Likewise.
8804         (fixup_call_stmt_edges): Likewise.
8805         (fixup_call_stmt_edges_1): Likewise.
8806         * lto-streamer-out.c (produce_symtab): Likewise.
8807         (output_symbol_p): Likewise.
8808         (write_symbol): Likewise.
8809         (lto_output): Likewise.
8810         (copy_function): Likewise.
8811         (output_function): Likewise.
8812         * passes.c (function_called_by_processed_nodes_p): Likewise.
8813         (ipa_write_optimization_summaries): Likewise.
8814         (ipa_write_summaries): Likewise.
8815         (do_per_function_toporder): Likewise.
8816         (do_per_function): Likewise.
8817         (dump_passes): Likewise.
8818         * symtab.c (symtab_semantically_equivalent_p): Likewise.
8819         (symtab_nonoverwritable_alias): Likewise.
8820         (symtab_nonoverwritable_alias_1): Likewise.
8821         (symtab_for_node_and_aliases): Likewise.
8822         (symtab_resolve_alias): Likewise.
8823         (fixup_same_cpp_alias_visibility): Likewise.
8824         (symtab_alias_ultimate_target): Likewise.
8825         (symtab_used_from_object_file_p): Likewise.
8826         (verify_symtab_base): Likewise.
8827         (dump_symtab_base): Likewise.
8828         (symtab_node_name): Likewise.
8829         (symtab_node_asm_name): Likewise.
8830         (symtab_dissolve_same_comdat_group_list): Likewise.
8831         (symtab_add_to_same_comdat_group): Likewise.
8832         (symtab_unregister_node): Likewise.
8833         (symtab_insert_node_to_hashtable): Likewise.
8834         (symtab_register_node): Likewise.
8835         (unlink_from_assembler_name_hash): Likewise.
8836         (insert_to_assembler_name_hash): Likewise.
8837         (eq_assembler_name): Likewise.
8838         (hash_node_by_assembler_name): Likewise.
8839         (eq_node): Likewise.
8840         (hash_node): Likewise.
8841         * toplev.c (wrapup_global_declaration_2): Likewise.
8842         * trans-mem.c (ipa_tm_execute): Likewise.
8843         (ipa_tm_transform_clone): Likewise.
8844         (ipa_tm_transform_transaction): Likewise.
8845         (ipa_tm_transform_calls_redirect): Likewise.
8846         (ipa_tm_insert_gettmclone_call): Likewise.
8847         (ipa_tm_insert_irr_call): Likewise.
8848         (ipa_tm_create_version): Likewise.
8849         (ipa_tm_create_version_alias): Likewise.
8850         (ipa_tm_mark_forced_by_abi_node): Likewise.
8851         (ipa_tm_mark_force_output_node): Likewise.
8852         (ipa_tm_diagnose_tm_safe): Likewise.
8853         (ipa_tm_mayenterirr_function): Likewise.
8854         (ipa_tm_scan_irr_function): Likewise.
8855         (ipa_tm_note_irrevocable): Likewise.
8856         (ipa_tm_scan_calls_clone): Likewise.
8857         (get_cg_data): Likewise.
8858         * tree-eh.c (tree_could_trap_p): Likewise.
8859         * tree-emutls.c (ipa_lower_emutls): Likewise.
8860         (create_emultls_var): Likewise.
8861         (lower_emutls_function_body): Likewise.
8862         (gen_emutls_addr): Likewise.
8863         (emutls_decl): Likewise.
8864         (new_emutls_decl): Likewise.
8865         * tree-inline.c (tree_function_versioning): Likewise.
8866         (optimize_inline_calls): Likewise.
8867         (expand_call_inline): Likewise.
8868         (estimate_num_insns): Likewise.
8869         (copy_bb): Likewise.
8870         (delete_unreachable_blocks_update_callgraph): Likewise.
8871         * tree-nested.c (gimplify_all_functions): Likewise.
8872         (create_nesting_tree): Likewise.
8873         (check_for_nested_with_variably_modified): Likewise.
8874         * tree-pretty-print.c (dump_function_header): Likewise.
8875         * tree-profile.c (tree_profiling): Likewise.
8876         * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
8877         (modify_function): Likewise.
8878         (convert_callers): Likewise.
8879         (convert_callers_for_node): Likewise.
8880         * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
8881         (associate_varinfo_to_alias): Likewise.
8882         (create_variable_info_for): Likewise.
8883         (get_constraint_for_ssa_var): Likewise.
8884         * tree-vectorizer.c (increase_alignment): Likewise.
8885         * tree.c (find_decls_types_in_var): Likewise.
8886         (find_decls_types_in_node): Likewise.
8887         (free_lang_data_in_decl): Likewise.
8888         * value-prof.c (gimple_ic_transform): Likewise.
8889         (gimple_ic): Likewise.
8890         (check_ic_target): Likewise.
8891         (init_node_map): Likewise.
8892         * varasm.c (decl_binds_to_current_def_p): Likewise.
8893         (default_binds_local_p_1): Likewise.
8894         (dump_tm_clone_pairs): Likewise.
8895         (assemble_alias): Likewise.
8896         (find_decl): Likewise.
8897         (mark_decl_referenced): Likewise.
8898         * varpool.c (varpool_for_node_and_aliases): Likewise.
8899         (varpool_extra_name_alias): Likewise.
8900         (varpool_create_variable_alias): Likewise.
8901         (add_new_static_var): Likewise.
8902         (varpool_finalize_named_section_flags): Likewise.
8903         (varpool_remove_unreferenced_decls): Likewise.
8904         (enqueue_node): Likewise.
8905         (varpool_assemble_decl): Likewise.
8906         (assemble_aliases): Likewise.
8907         (varpool_analyze_node): Likewise.
8908         (cgraph_variable_initializer_availability): Likewise.
8909         (varpool_add_new_variable): Likewise.
8910         (ctor_for_folding): Likewise.
8911         (dump_varpool_node): Likewise.
8912         (varpool_remove_initializer): Likewise.
8913         (varpool_remove_node): Likewise.
8914         (varpool_node_for_decl): Likewise.
8915         (varpool_create_empty_node): Likewise.
8916         * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
8917         (ix86_get_function_versions_dispatcher): Likewise.
8919 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
8921         * cgraph.h (symtab_node_base): Convert to a class;
8922         add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
8923         chain_next/prev from symtab_node_def.
8924         (cgraph_node): Inherit from symtab_node; add GTY option
8925         tag ("SYMTAB_FUNCTION").
8926         (varpool_node): Inherit from symtab_node; add GTY option
8927         tag ("SYMTAB_VARIABLE").
8928         (symtab_node_def): Remove.
8929         (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
8930         (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
8931         (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
8932         (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
8934         * ipa-ref.h (symtab_node_def): Drop.
8935         (symtab_node): Change underlying type from symtab_node_def to
8936         symtab_node_base.
8937         (const_symtab_node): Likwise.
8939         * is-a.h: Update examples in comment.
8941         * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
8942         (assembler_name_hash): Likewise.
8944 2013-10-29  Martin Liska  <marxin.liska@gmail.com>
8946         * doc/tree-ssa.texi (gimple_phi_result): Document.
8947         (gimple_phi_num_args, gimple_phi_arg): Likewise.
8948         (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
8949         (PHI_RESULT, PHI_NUM_ARGS): Remove.
8950         (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
8952 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
8954         * expr.h: Revert change and include tree-core.h.
8955         * rtl.h: Revert change and don't include tree-core.h.
8957 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
8959         * config/darwin.c: Include gimple.h.
8960         * config/i386/winnt.c: Likewise.
8962 2013-10-29  Marc Glisse  <marc.glisse@inria.fr>
8964         PR tree-optimization/19831
8965         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
8967 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
8969         * tree-outof-ssa.h: Remove include files.
8970         * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
8971         * expr.c: Likewise.
8972         * tree-ssa-coalesce.c: Likewise.
8973         * cfgexpand.c: Likewise.
8974         * tree-ssa-ter.c: Likewise.
8975         * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
8976         * lto-streamer.h: Likewise.
8977         * cgraphbuild.c: Add gimple.h to include list.
8978         * data-streamer-in.c: Likewise.
8979         * ipa-cp.c: Likewise.
8980         * tree-streamer.c: Likewise.
8981         * lto-compress.c: Likewise.
8982         * ipa-reference.c: Likewise.
8983         * data-streamer-out.c: Likewise.
8984         * lto-cgraph.c: Likewise.
8985         * cgraphclones.c: Likewise.
8986         * ipa-utils.c: Likewise.
8987         * data-streamer.c: Likewise.
8988         * ipa-split.c: Likewise.
8989         * lto-section-in.c: Likewise.
8990         * tree-streamer-out.c: Likewise.
8991         * ipa-prop.c: Likewise.
8992         * tree-streamer-in.c: Likewise.
8993         * symtab.c: Likewise.
8994         * opts-global.c: Likewise.
8995         * lto-opts.c: Likewise.
8996         * lto-section-out.c: Likewise.
8997         * lto-streamer.c: Likewise.
8998         * rtl.h: Add tree-core.h to include list.
8999         * expr.h: Remove tree-core.h from include list.
9000         * gimple.h: Likewise.
9001         * ipa-utils.h: Likewise.
9002         * streamer-hooks.h: Likewise.
9003         * streamer-hooks.c: Include input.h.
9005 2013-10-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9007         * config/arm/arm.c (cortexa7_extra_costs): New table.
9008         (arm_cortex_a7_tune): New.
9009         * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
9011 2013-10-29  Eric Botcazou  <ebotcazou@adacore.com>
9013         * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
9015 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
9017         * doc/gty.texi ("Inheritance and GTY"): Make it clear that
9018         to use autogenerated markers for a class-hierarchy, every class
9019         must have a GTY marker.
9020         * gengtype.h (struct type): Add linked list of subclasses to
9021         the "s" member of the union.
9022         (add_subclass): New decl.
9023         * gengtype-state.c (read_state_struct_type): Set up subclass
9024         linked list.
9025         * gengtype.c (get_ultimate_base_class): New.
9026         (add_subclass): New.
9027         (new_structure): Set up subclass linked list.
9028         (set_gc_used_type): Propagate usage information to subclasses.
9029         (output_mangled_typename): Use get_ultimate_base_class.
9030         (walk_subclasses): Use the subclass linked list, avoiding an
9031         O(N^2) when writing out all types.
9032         (walk_type): Issue an error if the base class is missing a tag,
9033         rather than generating bogus C code.  Add a gcc_unreachable
9034         default case, in case people omit tags from concrete subclasses,
9035         or get the values wrong.
9036         (write_func_for_structure): Issue an error for subclasses for
9037         which the base doesn't have a "desc", since otherwise the
9038         autogenerated routines for the base would silently fail to visit
9039         any subclass fields.
9040         (write_root): Use get_ultimate_base_class, tweaking constness of
9041         tp to match that function's signature.
9043 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
9045         * doc/gty.texi (GTY Options): Add note about inheritance to
9046         description of desc and tag.
9047         (Inheritance and GTY): New.
9049 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
9051         * gengtype-parse.c (opts_have): Drop "static" so that
9052         we can use this from gengtype.c.
9053         * gengtype.c (set_gc_used_type): Mark any base class as used;
9054         update field traversal to visit inherited fields.
9055         (output_mangled_typename):  Convert references to classes within
9056         an inheritance hierarchy to reference the ultimate base class,
9057         since only it will have gt_ functions.
9058         (get_string_option): New.
9059         (walk_subclasses): New.
9060         (walk_type): Treat GTY structs that have a "desc" as being the
9061         root of an inheritance hierarchy.  Generate a switch on it
9062         within the marking function which walks all subclasses, adding
9063         cases for them via walk_subclasses.  For subclasses, visit all
9064         fields of the type (including inherited ones).
9065         (write_func_for_structure): Don't write fns for subclasses, only
9066         for the ultimate base class within an inheritance hierarchy.
9067         Subclasses-marking will be handled by the base class marking functions.
9068         (write_types): Likewise.
9069         (write_local_func_for_structure): Likewise.
9070         (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
9071         a "tag" option (and are thus concrete subclasses).
9072         (write_root): Use the marker function for the ultimate base class.
9073         * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
9074         (opts_have): Add declaration.
9076 2013-10-28  Vladimir Makarov  <vmakarov@redhat.com>
9078         * lra-spills.c (lra_final_code_change): Remove useless move insns
9079         originated from moves of pseudos.
9081 2013-10-28  Jeff Law  <law@redhat.com>
9083         * lower-subreg.c (resolve_simple_move): Fix comment typo.
9085 2013-10-28  Trevor Saunders  <tsaunders@mozilla.com>
9087         * df-scan.c (df_collection_rec): Adjust.
9088         (copy_defs): New constant.
9089         (copy_uses): Likewise.
9090         (copy_eq_uses): Likewise.
9091         (copy_mw): Likewise.
9092         (copy_all): Likewise.
9093         (df_insn_rescan): Adjust.
9094         (df_notes_rescan): Likewise.
9095         (df_swap_refs): Likewise.
9096         (df_sort_and_compress_refs): Likewise.
9097         (df_sort_and_compress_mws): Likewise.
9098         (df_install_refs): Likewise.
9099         (df_install_mws): Likewise.
9100         (df_refs_add_to_chains): Add flags parameter controlling which vectors
9101         are coppied.
9102         (df_bb_refs_record): Adjust.
9103         (df_record_entry_block_defs): Likewise.
9104         (df_record_exit_block_defs): Likewise.
9105         (df_refs_verify): Likewise.
9106         (df_mws_verify): Likewise.
9107         (df_insn_refs_verify): Likewise.
9108         (df_bb_verify): Likewise.
9109         * ipa-pure-const.c (finish_state): Remove.
9110         (propagate): Adjust.
9111         * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
9112         tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
9113         var-tracking.c: Adjust.
9114         * vec.c (stack_vecs): Remove.
9115         (register_stack_vec): Likewise.
9116         (stack_vec_register_index): Likewise.
9117         (unregister_stack_vec): Likewise.
9118         * vec.h (struct va_stack): Remove.
9119         (struct vec<T, A, vl_ptr>): Specialize as
9120         struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
9121         allocation strategy compatable with the vl_ptr layout.
9122         (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
9123         specialization anyway.
9124         (class stack_vec): New class.
9125         (vec_stack_alloc): Remove.
9126         (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
9128 2013-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9129             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9130             Sergey Lega  <sergey.s.lega@intel.com>
9131             Anna Tikhonova  <anna.tikhonova@intel.com>
9132             Ilya Tocar  <ilya.tocar@intel.com>
9133             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9134             Ilya Verbin  <ilya.verbin@intel.com>
9135             Kirill Yukhin  <kirill.yukhin@intel.com>
9136             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9138         * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
9139         (*prefetch_avx512pf_<mode>): New.
9140         * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
9141         (avx512f_maskcmp<mode>3): Ditto.
9142         (vashrv16si3): Ditto.
9144 2013-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9145             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9146             Sergey Lega  <sergey.s.lega@intel.com>
9147             Anna Tikhonova  <anna.tikhonova@intel.com>
9148             Ilya Tocar  <ilya.tocar@intel.com>
9149             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9150             Ilya Verbin  <ilya.verbin@intel.com>
9151             Kirill Yukhin  <kirill.yukhin@intel.com>
9152             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9154         * config/i386/i386.md (any_truncate): New.
9155         (trunsuffix): Ditto.
9156         * config/i386/predicates.md (const_8_to_9_operand): New.
9157         (const_10_to_11_operand): Ditto.
9158         (const_12_to_13_operand): Ditto.
9159         (const_14_to_15_operand): Ditto.
9160         (const_16_to_19_operand): Ditto.
9161         (const_20_to_23_operand): Ditto.
9162         (const_24_to_27_operand): Ditto.
9163         (const_28_to_31_operand): Ditto.
9164         * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
9165         (cvtusi2<ssescalarmodesuffix>32): New.
9166         (cvtusi2<ssescalarmodesuffix>64): Ditto.
9167         (ufloatv16siv16sf2): Ditto.
9168         (avx512f_fix_notruncv16sfv16si): Ditto.
9169         (avx512f_ufix_notruncv16sfv16si): Ditto.
9170         (avx512f_vcvtss2usi): Ditto.
9171         (avx512f_vcvtss2usiq): Ditto.
9172         (avx512f_vcvttss2usi): Ditto.
9173         (avx512f_vcvttss2usiq): Ditto.
9174         (avx512f_vcvtsd2usi): Ditto.
9175         (avx512f_vcvtsd2usiq): Ditto.
9176         (avx512f_vcvttsd2usi): Ditto.
9177         (avx512f_vcvttsd2usiq): Ditto.
9178         (ufloatv8siv8df): Ditto.
9179         (avx512f_cvtdq2pd512_2): Ditto.
9180         (avx512f_cvtpd2dq512): Ditto.
9181         (avx512f_ufix_notruncv8dfv8si): Ditto.
9182         (avx512f_cvtpd2ps512): Ditto.
9183         (vec_unpacks_lo_v16sf): Ditto.
9184         (vec_unpacks_hi_v16sf): Ditto.
9185         (vec_unpacks_float_hi_v16si): Ditto.
9186         (vec_unpacks_float_lo_v16si): Ditto.
9187         (avx512f_unpckhps512): Ditto.
9188         (avx512f_unpcklps512): Ditto.
9189         (avx512f_movshdup512): Ditto.
9190         (avx512f_movsldup512): Ditto.
9191         (vec_extract_lo_v32hi): Ditto.
9192         (vec_extract_hi_v32hi): Ditto.
9193         (vec_extract_lo_v64qi): Ditto.
9194         (vec_extract_hi_v64qi): Ditto.
9195         (avx512f_unpckhpd512): Ditto.
9196         (avx512f_movddup512): Ditto.
9197         (avx512f_unpcklpd512): Ditto.
9198         (*avx512f_unpcklpd512): Ditto.
9199         (avx512f_shufps512_1): Ditto.
9200         (avx512f_shufpd512_1): Ditto.
9201         (avx512f_interleave_highv8di): Ditto.
9202         (avx512f_interleave_lowv8di): Ditto.
9203         (PMOV_DST_MODE): Ditto.
9204         (pmov_src_mode): Ditto.
9205         (pmov_src_lower): Ditto.
9206         (pmov_suff): Ditto.
9207         (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
9208         (*avx512f_<code>v8div16qi2): Ditto.
9209         (*avx512f_<code>v8div16qi2_store): Ditto.
9210         (vec_widen_umult_even_v16si): Ditto.
9211         (*vec_widen_umult_even_v16si): Ditto.
9212         (vec_widen_smult_even_v16si): Ditto.
9213         (*vec_widen_smult_even_v16si): Ditto.
9214         (avx512f_interleave_highv16si): Ditto.
9215         (avx512f_interleave_lowv16si): Ditto.
9216         (avx512f_<code>v16qiv16si2): Ditto.
9217         (avx512f_<code>v16hiv16si2): Ditto.
9218         (avx512f_<code>v8qiv8di2): Ditto.
9219         (avx512f_<code>v8hiv8di2): Ditto.
9220         (avx512f_<code>v8siv8di2): Ditto.
9221         (avx512cd_maskb_vec_dupv8di): Ditto.
9222         (avx512cd_maskw_vec_dupv16si): Ditto.
9223         (avx512f_vcvtph2ps512): Ditto.
9224         (avx512f_vcvtps2ph512): Ditto.
9225         (VEC_EXTRACT_MODE): Extened with wider modes.
9226         (VEC_PERM_AVX2): Ditto.
9227         (VEC_PERM_CONST): Ditto.
9229 2013-10-28  Joern Rennecke  <joern.rennecke@embecosm.com>
9231         * config/arc/arc.c (arc_ccfsm_post_advance):
9232         Add comment about TYPE_RETURN.
9234 2013-10-28  Bin Cheng  <bin.cheng@arm.com>
9236         * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
9237         Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
9238         (strip_offset): Convert offset to unsigned number.
9240 2013-10-27  Tom de Vries  <tom@codesourcery.com>
9242         * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
9243         Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
9245 2013-10-27  Oleg Endo  <olegendo@gcc.gnu.org>
9247         * config/sh/sh.c (MSW, LSW): Move and rename macros to...
9248         * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
9249         (TARGET_BIG_ENDIAN): New macro.
9250         * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
9251         Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
9252         * config/sh/sh.c: Likewise.
9253         * config/sh/sh.h: Likewise.
9255 2013-10-27  Hans-Peter Nilsson  <hp@axis.com>
9257         * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
9258         removed PRED_MUDFLAP with PRED_NORETURN.  Correct file-path in comment.
9260 2013-10-26  Oleg Endo  <olegendo@gcc.gnu.org>
9262         * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
9263         Fix formatting.
9264         (cmpstr_t, cmpstrsi): Fix formatting.
9266 2013-10-26  Oleg Endo  <olegendo@gcc.gnu.org>
9268         PR target/52483
9269         * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
9270         addressing, do not use general_operand for memory operands.
9272 2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
9274         Revert:
9275         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
9276         * lra-spills.c (lra_final_code_change): Remove useless move insns.
9278 2013-10-26  Jeff Law  <law@redhat.com>
9280         * predict.c (PRED_MUDFLAP): Remove.
9281         * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
9283         * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
9284         (OBJS): Remove tree-nomudflap.o
9285         (GTFILES): Remove tree-mudflap.c
9286         * builtins.c (expand_builtin_alloc): Remove mudflap support.
9287         * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
9288         (mfwrap_spec, mflib_spec): Likewise.
9289         (cpp_unique_options, cc1_options, static_specs): Likewise.
9290         * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
9291         * passes.def: Likewise.
9292         * toplev.c (compile_file, process_options): Likewise.
9293         * tree-inline.c (copy_tree_r): Likewise.
9294         * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
9295         * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
9296         (build_constant_desc, output_constant_def_contents): Likewise.
9297         (categorize_decl_for_section): Likewise.
9298         * tree-mudflap.c: Removed.
9299         * tree-mudflap.h: Removed.
9300         * tree-nomudflap.c: Removed.
9301         * bfin/uclinux.h (MFWRAP_SPEC): Remove.
9302         * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
9303         * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
9304         * config/sol2.h (MFLIB_SPEC): Likewise.
9305         * doc/install.texi: Remove mudflap references.
9306         * doc/passes.texi: Similarly.
9307         * doc/sourcebuild.texi: Similarly.
9308         * doc/invoke.texi: Remove mudlfap related options.
9310 2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
9312         PR rtl-optimization/58759
9313         * lra-constraints.c (lra_constraints): Remove wrong condition to
9314         remove insn setting up an equivalent pseudo.
9316 2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
9318         * config/rs6000/rs6000-protos.h
9319         (rs6000_secondary_memory_needed_mode): New prototype.
9320         * config/rs6000/rs6000.c: Include ira.h.
9321         (TARGET_LRA_P): Redefine.
9322         (rs6000_legitimate_offset_address_p): Call
9323         legitimate_constant_pool_address_p in strict mode for LRA.
9324         (rs6000_legitimate_address_p): Ditto.
9325         (legitimate_lo_sum_address_p): Add code for LRA.  Use lra_in_progress.
9326         (rs6000_emit_move): Add LRA version of code to generate load/store
9327         of SDmode values.
9328         (rs6000_secondary_memory_needed_mode): New.
9329         (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
9330         (rs6000_secondary_reload_class): Return NO_REGS for LRA for
9331         constants, memory, and FP registers.
9332         (rs6000_lra_p): New.
9333         * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
9334         * config/rs6000/rs6000.opt (mlra): New option.
9335         * lra-spills.c (lra_final_code_change): Remove useless move insns.
9337 2013-10-25  Yufeng Zhang  <yufeng.zhang@arm.com>
9339         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
9340         has_single_use () and not do the conversion if has_single_use ()
9341         returns false for the multiplication result.
9343 2013-10-25  David Malcolm  <dmalcolm@redhat.com>
9345         * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
9346         to "NODE", since this works on a "tree", not an
9347         "enum tree_code".
9348         (CONSTANT_CLASS_P): Likewise.
9349         (TYPE_P): Likewise.
9350         (DECL_P): Likewise.
9351         (INDIRECT_REF_P): Likewise.
9352         (REFERENCE_CLASS_P): Likewise.
9353         (COMPARISON_CLASS_P): Likewise.
9354         (UNARY_CLASS_P): Likewise.
9355         (BINARY_CLASS_P): Likewise.
9356         (STATEMENT_CLASS_P): Likewise.
9357         (VL_EXP_CLASS_P): Likewise.
9358         (EXPRESSION_CLASS_P): Likewise.
9359         (IS_TYPE_OR_DECL_P): Likewise.
9361 2013-10-25  Marc Glisse  <marc.glisse@inria.fr>
9363         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
9364         ADDR_EXPR in the defining statement.
9366 2013-10-25  Richard Biener  <rguenther@suse.de>
9368         PR tree-optimization/58626
9369         * tree-loop-distribution.c (enum rdg_dep_type): Remove
9370         anti_dd, output_dd and input_dd.
9371         (struct rdg_edge): Remove level and relation members.
9372         (RDGE_LEVEL, RDGE_RELATION): Remove.
9373         (dot_rdg_1): Adjust.
9374         (create_rdg_edge_for_ddr): Remove.
9375         (create_rdg_edges_for_scalar): Adjust.
9376         (create_edge_for_control_dependence): Likewise.
9377         (create_rdg_edges): Split into ...
9378         (create_rdg_flow_edges): ... this
9379         (create_rdg_cd_edges): ... and this.
9380         (free_rdg): Adjust.
9381         (build_rdg): Likewise, do not compute data dependences or
9382         add edges for them.
9383         (pg_add_dependence_edges): New function.
9384         (pgcmp): Likewise.
9385         (distribute_loop): First apply all non-dependence based
9386         partition mergings.  Then compute dependences between partitions
9387         and merge and order partitions according to them.
9389 2013-10-25  Eric Botcazou  <ebotcazou@adacore.com>
9391         PR rtl-optimization/58831
9392         * alias.c (init_alias_analysis): At the beginning of each iteration,
9393         set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
9395 2013-10-25  Eric Botcazou  <ebotcazou@adacore.com>
9397         * recog.c (search_ofs): New static variable moved from...
9398         (peep2_find_free_register): ...here.
9399         (peephole2_optimize): Initialize it.
9401 2013-10-25  Tobias Burnus  <burnus@net-b.de>
9403         * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
9405 2013-10-25  Uros Bizjak  <ubizjak@gmail.com>
9407         * config/i386/i386.h (TARGET_MPX): New define.
9408         (TARGET_MPX_P): Ditto.
9410 2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
9412         * config/i386/constraints.md (B): New.
9413         (Ti): New.
9414         (Tb): New.
9415         * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
9416         * config/i386/i386-modes.def (BND32): New.
9417         (BND64): New.
9418         * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
9419         * config/i386/i386.c (isa_opts): Add mmpx.
9420         (regclass_map): Add bound registers.
9421         (dbx_register_map): Likewise.
9422         (dbx64_register_map): Likewise.
9423         (svr4_dbx_register_map): Likewise.
9424         (PTA_MPX): New.
9425         (ix86_option_override_internal): Support MPX ISA.
9426         (ix86_conditional_register_usage): Support bound registers.
9427         (print_reg): Likewise.
9428         (ix86_code_end): Add MPX bnd prefix.
9429         (output_set_got): Likewise.
9430         (ix86_output_call_insn): Likewise.
9431         (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
9432         (ix86_print_operand_punct_valid_p): Likewise.
9433         (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
9434         UNSPEC_BNDMK_ADDR.
9435         (ix86_class_likely_spilled_p): Add bound regs support.
9436         (ix86_hard_regno_mode_ok): Likewise.
9437         (x86_order_regs_for_local_alloc): Likewise.
9438         (ix86_bnd_prefixed_insn_p): New.
9439         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
9440         (FIXED_REGISTERS): Add bound registers.
9441         (CALL_USED_REGISTERS): Likewise.
9442         (REG_ALLOC_ORDER): Likewise.
9443         (HARD_REGNO_NREGS): Likewise.
9444         (TARGET_MPX): New.
9445         (VALID_BND_REG_MODE): New.
9446         (FIRST_BND_REG): New.
9447         (LAST_BND_REG): New.
9448         (reg_class): Add BND_REGS.
9449         (REG_CLASS_NAMES): Likewise.
9450         (REG_CLASS_CONTENTS): Likewise.
9451         (BND_REGNO_P): New.
9452         (ANY_BND_REG_P): New.
9453         (BNDmode): New.
9454         (HI_REGISTER_NAMES): Add bound registers.
9455         * config/i386/i386.md (UNSPEC_BNDMK): New.
9456         (UNSPEC_BNDMK_ADDR): New.
9457         (UNSPEC_BNDSTX): New.
9458         (UNSPEC_BNDLDX): New.
9459         (UNSPEC_BNDLDX_ADDR): New.
9460         (UNSPEC_BNDCL): New.
9461         (UNSPEC_BNDCU): New.
9462         (UNSPEC_BNDCN): New.
9463         (UNSPEC_MPX_FENCE): New.
9464         (BND0_REG): New.
9465         (BND1_REG): New.
9466         (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
9467         (length_immediate): Likewise.
9468         (prefix_0f): Likewise.
9469         (memory): Likewise.
9470         (prefix_rep): Check for bnd prefix.
9471         (length_nobnd): New.
9472         (length): Use length_nobnd if specified.
9473         (BND): New.
9474         (bnd_ptr): New.
9475         (BNDCHECK): New.
9476         (bndcheck): New.
9477         (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
9478         (*jcc_2): Likewise.
9479         (jump): Likewise.
9480         (simple_return_internal): Likewise.
9481         (simple_return_pop_internal): Likewise.
9482         (*indirect_jump): Add MPX bnd prefix.
9483         (*tablejump_1): Likewise.
9484         (simple_return_internal_long): Likewise.
9485         (simple_return_indirect_internal): Likewise.
9486         (<mode>_mk): New.
9487         (*<mode>_mk): New.
9488         (mov<mode>): New.
9489         (*mov<mode>_internal_mpx): New.
9490         (<mode>_<bndcheck>): New.
9491         (*<mode>_<bndcheck>): New.
9492         (<mode>_ldx): New.
9493         (*<mode>_ldx): New.
9494         (<mode>_stx): New.
9495         (*<mode>_stx): New.
9496         * config/i386/predicates.md (lea_address_operand): Rename to...
9497         (address_no_seg_operand): ... this.
9498         (address_mpx_no_base_operand): New.
9499         (address_mpx_no_index_operand): New.
9500         (bnd_mem_operator): New.
9501         * config/i386/i386.opt (mmpx): New.
9502         * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
9503         * doc/rtl.texi Add documentation for BND32mode and BND64mode.
9505 2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
9507         * mode-classes.def (MODE_POINTER_BOUNDS): New.
9508         * tree.def (POINTER_BOUNDS_TYPE): New.
9509         * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
9510         (POINTER_BOUNDS_MODE): New.
9511         (make_pointer_bounds_mode): New.
9512         * machmode.h (POINTER_BOUNDS_MODE_P): New.
9513         * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
9514         (layout_type): Support POINTER_BOUNDS_TYPE.
9515         * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
9516         * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
9517         (type_contains_placeholder_1): Likewise.
9518         * tree.h (POINTER_BOUNDS_TYPE_P): New.
9519         * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
9520         * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
9522 2013-10-24  Igor Shevlyakov  <igor.shevlyakov@gmail.com>
9524         * expr.c (expand_expr_real_1): Use mode of memory reference rather than
9525         mode of address computation when calling memory_address_addr_space.
9527 2013-08-24  Richard Henderson  <rth@twiddle.net>
9529         PR rtl/58542
9530         * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
9531         instead of create_convert_operand_to.
9532         (maybe_emit_sync_lock_test_and_set): Likewise.
9533         (expand_atomic_compare_and_swap): Likewise.
9534         (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
9536 2013-08-24  Sriraman Tallam  <tmsriram@google.com>
9538         * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
9539         Change param_is to use the struct and not the pointer to the struct.
9541 2013-10-24  Andrew MacLeod  <amacleod@redhat.com>
9543         * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
9544         * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
9545         Move to targhooks.c.
9546         (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
9547         * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
9548         Relocate from gimplify.c.
9549         * targhooks.h: Add 2 prototypes.
9550         * tree.h: Delete 2 prototypes.
9552 2013-10-24  Igor Shevlyakov  <igor.shevlyakov@gmail.com>
9554         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
9555         [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
9557 2013-10-24  Cong Hou  <congh@google.com>
9559         * convert.c (convert_to_real): Guard those unsafe math function
9560         convertions with flag_unsafe_math_optimizations.  Handle sqrt()
9561         specially.
9563 2013-10-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
9565         PR ipa/58712
9566         * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
9567         as argument.
9568         (cgraph_create_edge): Use the new argument.
9569         (cgraph_create_indirect_edge): Likewise.
9571 2013-10-24  Joern Rennecke  <joern.rennecke@embecosm.com>
9573         * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
9574         TYPE_UNCOND_BRANCH.
9575         (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
9576         changes statep->state.
9578 2013-10-24  Tobias Burnus  <burnus@net-b.de>
9580         PR other/33426
9581         * tree-cfg.c (replace_loop_annotate): New function.
9582         (execute_build_cfg): Call it.
9583         * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
9584         * internal-fn.c (expand_ANNOTATE): New function.
9585         * internal-fn.def (ANNOTATE): Define as new internal function.
9586         * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
9587         * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
9588         * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
9589         * doc/extend.texi (Pragmas): Document #pragma ivdep.
9590         * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
9592 2013-10-17  Ian Bolton  <ian.bolton@arm.com>
9593             Marcus Shawcroft  <marcus.shawcroft@arm.com>
9595         * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
9596         Special case reload SP+C into none GENERAL_REGS.
9598 2013-10-24  Michael Matz  <matz@suse.de>
9600         * gengtype.c (is_file_equal): Check that files will be same length.
9602 2013-10-25  Christian Bruel  <christian.bruel@st.com>
9604         * config.gcc (sh-*): Add sh-mem.o to extra_obj.
9605         * config/sh/t-sh (sh-mem.o): New rule.
9606         * config/sh/sh-mem.cc (expand_block_move): Moved here.
9607         (sh_expand_cmpstr): New function.
9608         * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
9609         * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
9610         * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
9611         (rotlhi3_8): Rename.
9613 2013-10-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9615         * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
9616         * Makefile.in (CXXDEPMODE): Assign and change users.
9617         (CCDEPMODE): Delete.
9618         * configure: Regenerate.
9620 2013-10-23  David Malcolm  <dmalcolm@redhat.com>
9622         * gengtype-parse.c (require_without_advance): New.
9623         (type): For GTY-marked types that are not GTY((user)), parse any
9624         base classes, requiring them to be single-inheritance, and not
9625         be templates.  For non-GTY-marked types and GTY((user)),
9626         continue to skip over any C++ inheritance specification.
9627         * gengtype-state.c (state_writer::write_state_struct_type):
9628         Write base class of type (if any).
9629         (read_state_struct_type): Read base class of type (if any).
9630         * gengtype.c (new_structure): Add a "base_class" parameter.
9631         (create_optional_field_): Update for new parameter to new_structure.
9632         (adjust_field_rtx_def): Likewise.
9633         (adjust_field_tree_exp): Likewise.
9634         * gengtype.h (struct type): Add "base_class" field to the s
9635         union field.
9636         (new_structure): Add "base" parameter.
9638 2013-10-23  Sriraman Tallam  <tmsriram@google.com>
9640         PR target/57756
9641         * config/i386/i386.c (ix86_option_override_internal):
9642         Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
9643         (ix86_valid_target_attribute_tree):
9644         Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
9645         Change TARGET_SSE to TARGET_SSE_P (opts->...)
9647 2013-10-23  Andrew MacLeod  <amacleod@redhat.com>
9649         * tree-ssa-loop.h: Remove include files.
9650         * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
9651         * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
9652         * graphite-clast-to-gimple.c: Likewise.
9653         * graphite-scop-detection.c: Likewise.
9654         * graphite-sese-to-poly.c: Likewise.
9655         * ipa-inline-analysis.c: Likewise.
9656         * ipa-pure-const.c: Likewise.
9657         * loop-init.c: Likewise.
9658         * passes.c: Likewise.
9659         * predict.c: Likewise.
9660         * tree-cfg.c: Likewise.
9661         * tree-cfgcleanup.c: Likewise.
9662         * tree-chrec.c: Likewise.
9663         * tree-data-ref.c: Likewise.
9664         * tree-loop-distribution.c: Likewise.
9665         * tree-parloops.c: Likewise.
9666         * tree-predcom.c: Likewise.
9667         * tree-scalar-evolution.c: Likewise.
9668         * tree-ssa-address.c: Likewise.
9669         * tree-ssa.c: Likewise.
9670         * tree-ssa-dce.c: Likewise.
9671         * tree-ssa-loop.c: Likewise.
9672         * tree-ssa-loop-im.c: Likewise.
9673         * tree-ssa-loop-ivcanon.c: Likewise.
9674         * tree-ssa-loop-ivopts.c: Likewise.
9675         * tree-ssa-loop-manip.c: Likewise.
9676         * tree-ssa-loop-niter.c: Likewise.
9677         * tree-ssa-loop-prefetch.c: Likewise.
9678         * tree-ssa-loop-unswitch.c: Likewise.
9679         * tree-ssa-reassoc.c: Likewise.
9680         * tree-vect-data-refs.c: Likewise.
9681         * tree-vect-loop.c: Likewise.
9682         * tree-vect-loop-manip.c: Likewise.
9683         * tree-vectorizer.c: Likewise.
9684         * tree-vect-stmts.c: Likewise.
9685         * tree-vrp.c: Likewise.
9687 2013-10-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9689         * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
9691 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
9693         PR tree-optimization/58775
9694         PR tree-optimization/58791
9695         * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
9696         (insert_stmt_after): Rewritten, don't move the stmt, but really
9697         insert it.
9698         (get_stmt_uid_with_default): Remove.
9699         (build_and_add_sum): Use insert_stmt_after and
9700         reassoc_stmt_dominates_stmt_p.  Fix up uid if bb contains only labels.
9701         (update_range_test): Set uid on stmts added by
9702         force_gimple_operand_gsi.  Don't immediately modify statements
9703         in inter-bb optimization, just update oe->op values.
9704         (optimize_range_tests): Return bool whether any changed have been made.
9705         (update_ops): New function.
9706         (struct inter_bb_range_test_entry): New type.
9707         (maybe_optimize_range_tests): Perform statement changes here.
9708         (not_dominated_by, appears_later_in_bb, get_def_stmt,
9709         ensure_ops_are_available): Remove.
9710         (find_insert_point): Rewritten.
9711         (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
9712         return LHS of the (new resp. old) stmt.  Don't call
9713         ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
9714         instead of last, move new stmt at the right place.
9715         (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
9716         (negate_value): Likewise.  Set uids.
9717         (break_up_subtract_bb): Initialize uids.
9718         (reassociate_bb): Adjust rewrite_expr_tree caller.
9719         (do_reassoc): Don't call renumber_gimple_stmt_uids.
9721 2013-10-23  David Edelsohn  <dje.gcc@gmail.com>
9723         PR target/58838
9724         * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
9725         TARGET_32BIT final condition.
9726         (mulsi3_internal2 and splitter): Same.
9728 2013-10-23  Jeff Law  <law@redhat.com>
9730         * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
9731         through joiner blocks with abnormal outgoing edges.
9733         * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
9734         Add parameter JOINERS, to allow/disallow threading through joiner
9735         blocks.
9736         (thread_block): New.  Call thread_block_1.
9737         (mark_threaded_blocks): Remove code to filter out certain cases
9738         of threading through joiner blocks.
9739         (thread_through_all_blocks): Document how we can have a dangling
9740         edge AUX field and clear it.
9742 2013-10-23  Ian Lance Taylor  <iant@google.com>
9744         * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
9745         (C++ Dialect Options): Likewise.
9746         (Optimize Options): Likewise.
9748 2013-10-23  Tom de Vries  <tom@codesourcery.com>
9750         PR tree-optimization/58805
9751         * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
9753 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
9755         * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
9756         sequence based on get_range_info returned range.
9758 2013-10-23  Andrew MacLeod  <amacleod@redhat.com>
9760         * tree-ssa.h: Remove all #include's
9761         * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
9762         * alias.c: Move required includes from tree-ssa.h.
9763         * asan.c: Likewise.
9764         * builtins.c: Likewise.
9765         * calls.c: Likewise.
9766         * cfgexpand.c: Likewise.
9767         * cfghooks.c: Likewise.
9768         * cfgloop.c: Likewise.
9769         * cfgloopmanip.c: Likewise.
9770         * cgraph.c: Likewise.
9771         * cgraphbuild.c: Likewise.
9772         * cgraphclones.c: Likewise.
9773         * cgraphunit.c: Likewise.
9774         * dse.c: Likewise.
9775         * except.c: Likewise.
9776         * expr.c: Likewise.
9777         * final.c: Likewise.
9778         * fold-const.c: Likewise.
9779         * ggc-page.c: Likewise.
9780         * gimple-builder.c: Likewise.
9781         * gimple-fold.c: Likewise.
9782         * gimple-iterator.c: Likewise.
9783         * gimple-low.c: Likewise.
9784         * gimple-pretty-print.c: Likewise.
9785         * gimple-ssa-strength-reduction.c: Likewise.
9786         * gimple-streamer-in.c: Likewise.
9787         * gimple-streamer-out.c: Likewise.
9788         * gimplify.c: Likewise.
9789         * graphite-blocking.c: Likewise.
9790         * graphite-clast-to-gimple.c: Likewise.
9791         * graphite-dependences.c: Likewise.
9792         * graphite-interchange.c: Likewise.
9793         * graphite-optimize-isl.c: Likewise.
9794         * graphite-poly.c: Likewise.
9795         * graphite-scop-detection.c: Likewise.
9796         * graphite-sese-to-poly.c: Likewise.
9797         * graphite.c: Likewise.
9798         * ipa-cp.c: Likewise.
9799         * ipa-inline-analysis.c: Likewise.
9800         * ipa-inline-transform.c: Likewise.
9801         * ipa-inline.c: Likewise.
9802         * ipa-prop.c: Likewise.
9803         * ipa-pure-const.c: Likewise.
9804         * ipa-reference.c: Likewise.
9805         * ipa-split.c: Likewise.
9806         * ipa-utils.c: Likewise.
9807         * loop-init.c: Likewise.
9808         * lto-cgraph.c: Likewise.
9809         * lto-section-in.c: Likewise.
9810         * lto-section-out.c: Likewise.
9811         * lto-streamer-in.c: Likewise.
9812         * lto-streamer-out.c: Likewise.
9813         * lto-streamer.c: Likewise.
9814         * omp-low.c: Likewise.
9815         * passes.c: Likewise.
9816         * predict.c: Likewise.
9817         * print-tree.c: Likewise.
9818         * profile.c: Likewise.
9819         * sese.c: Likewise.
9820         * targhooks.c: Likewise.
9821         * tracer.c: Likewise.
9822         * trans-mem.c: Likewise.
9823         * tree-call-cdce.c: Likewise.
9824         * tree-cfg.c: Likewise.
9825         * tree-cfgcleanup.c: Likewise.
9826         * tree-chrec.c: Likewise.
9827         * tree-complex.c: Likewise.
9828         * tree-data-ref.c: Likewise.
9829         * tree-dfa.c: Likewise.
9830         * tree-eh.c: Likewise.
9831         * tree-emutls.c: Likewise.
9832         * tree-if-conv.c: Likewise.
9833         * tree-inline.c: Likewise.
9834         * tree-into-ssa.c: Likewise.
9835         * tree-loop-distribution.c: Likewise.
9836         * tree-mudflap.c: Likewise.
9837         * tree-nested.c: Likewise.
9838         * tree-nrv.c: Likewise.
9839         * tree-object-size.c: Likewise.
9840         * tree-outof-ssa.c: Likewise.
9841         * tree-parloops.c: Likewise.
9842         * tree-phinodes.c: Likewise.
9843         * tree-predcom.c: Likewise.
9844         * tree-pretty-print.c: Likewise.
9845         * tree-profile.c: Likewise.
9846         * tree-scalar-evolution.c: Likewise.
9847         * tree-sra.c: Likewise.
9848         * tree-ssa-address.c: Likewise.
9849         * tree-ssa-alias.c: Likewise.
9850         * tree-ssa-ccp.c: Likewise.
9851         * tree-ssa-coalesce.c: Likewise.
9852         * tree-ssa-copy.c: Likewise.
9853         * tree-ssa-copyrename.c: Likewise.
9854         * tree-ssa-dce.c: Likewise.
9855         * tree-ssa-dom.c: Likewise.
9856         * tree-ssa-dse.c: Likewise.
9857         * tree-ssa-forwprop.c: Likewise.
9858         * tree-ssa-ifcombine.c: Likewise.
9859         * tree-ssa-live.c: Likewise.
9860         * tree-ssa-loop-ch.c: Likewise.
9861         * tree-ssa-loop-im.c: Likewise.
9862         * tree-ssa-loop-ivcanon.c: Likewise.
9863         * tree-ssa-loop-ivopts.c: Likewise.
9864         * tree-ssa-loop-manip.c: Likewise.
9865         * tree-ssa-loop-niter.c: Likewise.
9866         * tree-ssa-loop-prefetch.c: Likewise.
9867         * tree-ssa-loop-unswitch.c: Likewise.
9868         * tree-ssa-loop.c: Likewise.
9869         * tree-ssa-math-opts.c: Likewise.
9870         * tree-ssa-operands.c: Likewise.
9871         * tree-ssa-phiopt.c: Likewise.
9872         * tree-ssa-phiprop.c: Likewise.
9873         * tree-ssa-pre.c: Likewise.
9874         * tree-ssa-propagate.c: Likewise.
9875         * tree-ssa-reassoc.c: Likewise.
9876         * tree-ssa-sccvn.c: Likewise.
9877         * tree-ssa-sink.c: Likewise.
9878         * tree-ssa-strlen.c: Likewise.
9879         * tree-ssa-structalias.c: Likewise.
9880         * tree-ssa-tail-merge.c: Likewise.
9881         * tree-ssa-ter.c: Likewise.
9882         * tree-ssa-threadedge.c: Likewise.
9883         * tree-ssa-threadupdate.c: Likewise.
9884         * tree-ssa-uncprop.c: Likewise.
9885         * tree-ssa-uninit.c: Likewise.
9886         * tree-ssa.c: Likewise.
9887         * tree-ssanames.c: Likewise.
9888         * tree-stdarg.c: Likewise.
9889         * tree-streamer-in.c: Likewise.
9890         * tree-switch-conversion.c: Likewise.
9891         * tree-tailcall.c: Likewise.
9892         * tree-vect-data-refs.c: Likewise.
9893         * tree-vect-generic.c: Likewise.
9894         * tree-vect-loop-manip.c: Likewise.
9895         * tree-vect-loop.c: Likewise.
9896         * tree-vect-patterns.c: Likewise.
9897         * tree-vect-slp.c: Likewise.
9898         * tree-vect-stmts.c: Likewise.
9899         * tree-vectorizer.c: Likewise.
9900         * tree-vrp.c: Likewise.
9901         * tree.c: Likewise.
9902         * tsan.c: Likewise.
9903         * value-prof.c: Likewise.
9904         * var-tracking.c: Likewise.
9905         * varpool.c: Likewise.
9906         * vtable-verify.c: Likewise.
9908 2013-10-23  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9910         * config/tilegx/tilegx.c: Include "tree.h".
9912 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
9914         * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
9915         the info, not after it.
9916         (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
9917         dump_ssaname_info call.
9918         (pp_gimple_stmt_1): Adjust caller.
9919         (dump_phi_nodes): Likewise.  Don't print "# " here.
9921 2013-10-22  Jan Hubicka  <jh@suse.cz>
9923         * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
9924         tuning flag.
9925         * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
9926         * i386.c (expand_small_movmem_or_setmem): New function.
9927         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
9928         function.
9929         (alg_usable_p): Add support for value ranges; cleanup.
9930         (ix86_expand_set_or_movmem): Add support for misaligned moves.
9932 2013-10-22  Sterling Augustine  <saugustine@google.com>
9934         * doc/invoke.texi: Document -ggnu-pubnames.
9935         * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
9936         logic.
9937         * dwarf2out.c: Include gdb/gdb-index.h.
9938         (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
9939         debug_generate_pub_sections.
9940         (is_java, output_pubtables, output_pubname): New functions.
9941         (include_pubname_in_output): Handle debug_generate_pub_sections at
9942         level 2.
9943         (size_of_pubnames): Use new local space_for_flags based on
9944         debug_generate_pub_sections.
9945         (output_pubnames): Unify pubnames and pubtypes output logic.
9946         Genericize comments.  Call output_pubname.
9947         (dwarf2out_finish): Move logic to output_pubnames and call it.
9949 2013-10-22  Uros Bizjak  <ubizjak@gmail.com>
9951         PR target/58779
9952         * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
9953         Remove CCCmode handling.
9954         <case LTU>: Return 'c' suffix for CCCmode.
9955         <case GEU>: Return 'nc' suffix for CCCmode.
9956         (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
9957         * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
9958         (*sub<mode>3_cc_overflow): Ditto.
9959         (*subsi3_zext_cc_overflow): Ditto.
9961 2013-10-22  Steve Ellcey  <sellcey@mips.com>
9963         * config/mips/mips.c (mips_rtx_costs):  Fix cost estimate for nor
9964         (AND (NOT OP1) (NOT OP2)).
9966 2013-10-22  Bill Schmidt  <wschmidt@vnet.ibm.com>
9968         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
9969         meaning of merge-high and merge-low masks for little endian; avoid
9970         use of vector-pack masks for little endian for mismatched modes.
9972 2013-10-22  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9974         * config/tilepro/tilepro.c: Include "tree.h".
9976 2013-10-22  Andreas Schwab  <schwab@suse.de>
9978         * config/m68k/m68k.c (notice_update_cc): Handle register conflict
9979         with PRE_DEC.
9981 2013-10-22  Paolo Carlini  <paolo.carlini@oracle.com>
9983         * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
9984         [Ed Smith-Rowland]): New entries.
9985         ([Stephen M. Webb]): Update.
9987 2013-10-22  Andrew MacLeod  <amacleod@redhat.com>
9989         * tree-ssa-ter.h: Remove duplicate copy of file contents.
9991 2013-10-21  Marek Polacek  <polacek@redhat.com>
9993         PR middle-end/58809
9994         * fold-const.c (fold_range_test): Return 0 if the type is not
9995         an integral type.
9997 2013-10-21  Richard Sandiford  <rdsandiford@googlemail.com>
9999         * system.h: Move hwint.h include further down.
10000         * hwint.h (sext_hwi, zext_hwi): Define unconditionally.  Add
10001         gcc_checking_asserts.
10002         * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
10004 2013-10-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10006         Fix volatile issues in optimize_bit_field_compare.
10007         * fold-const.c (optimize_bit_field_compare): Bail out if
10008         lvolatilep or rvolatilep.
10010 2013-10-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10012         Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
10013         and get_inner_reference returning different pmode for non-volatile
10014         bit-field members dependent on flag_strict_volatile_bitfields.
10015         * stor-layout.c (layout_decl): Remove special handling of
10016         flag_strict_volatile_bitfields.
10017         * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
10018         if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
10020 2013-10-21  Paulo Matos  <pmatos@broadcom.com>
10022         * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
10023         calculations.
10025 2013-10-21  Jeff Law  <law@redhat.com>
10027         * tree-ssa-threadedge.c (thread_through_normal_block): New
10028         argument VISITED.  Remove VISISTED as a local variable.  When we
10029         have a threadable jump, verify the destination of the jump has not
10030         been visised.
10031         (thread_across_edge): Allocate VISITED bitmap once at function
10032         scope and use it throughout.  Make sure to set appropriate bits in
10033         VISITED for E (start of jump thread path).
10034         * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
10035         through a joiner if any edge on the path has a recorded jump thread.
10037 2013-10-21  Ian Lance Taylor  <iant@google.com>
10039         * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
10040         don't imply that attributes can solve all problems.
10041         (Directory Options): Fix typo.
10043 2013-10-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10045         * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
10046         extend and extend_add.
10048 2013-10-21  Richard Biener  <rguenther@suse.de>
10050         PR tree-optimization/58794
10051         * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
10052         of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
10054 2013-10-21  Richard Biener  <rguenther@suse.de>
10056         PR middle-end/58742
10057         * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
10058         to (T) X for sign-changing conversions (or no conversion).
10060 2013-10-20  Uros Bizjak  <ubizjak@gmail.com>
10062         * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
10064 2013-10-20  Jan Hubicka  <jh@suse.cz>
10066         * config/i386/i386-tune.def: Add comment; organize into categories
10068 2013-10-21  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
10070         * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
10071         argument.  Update function comment.
10072         (expand_set_or_movmem_via_rep): New function combining
10073         expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
10074         (expand_movmem_via_rep_mov): Remove.
10075         expand_setmem_via_rep_stos): Remove.
10076         (expand_movmem_epilogue): Update calls correspondingly.
10077         (expand_setmem_epilogue_via_loop): Likewise.
10078         (emit_memset): New.
10079         (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
10080         (expand_set_or_movmem_prologue): New function combining
10081         expand_movmem_prologue and expand_setmem_prologue.
10082         (expand_movmem_prologue): Remove.
10083         (expand_setmem_prologue): Remove.
10084         (expand_set_or_movmem_constant_prologue): New function combining
10085         expand_constant_movmem_prologue and expand_constant_setmem_prologue.
10086         (expand_constant_movmem_prologue): Remove.
10087         (expand_constant_setmem_prologue): Remove.
10088         (promote_duplicated_reg): Allow vector-const0 value.
10089         (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
10090         and ix86_expand_setmem.
10091         (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
10092         (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
10094 2013-10-21  Diego Novillo  <dnovillo@google.com>
10096         * asan.c: Include tree.h
10097         * bb-reorder.c: Likewise.
10098         * cfgcleanup.c: Likewise.
10099         * cfgloopmanip.c: Likewise.
10100         * data-streamer-in.c: Likewise.
10101         * data-streamer-out.c: Likewise.
10102         * data-streamer.c: Likewise.
10103         * dwarf2cfi.c: Likewise.
10104         * graphite-blocking.c: Likewise.
10105         * graphite-clast-to-gimple.c: Likewise.
10106         * graphite-dependences.c: Likewise.
10107         * graphite-interchange.c: Likewise.
10108         * graphite-optimize-isl.c: Likewise.
10109         * graphite-poly.c: Likewise.
10110         * graphite-scop-detection.c: Likewise.
10111         * graphite-sese-to-poly.c: Likewise.
10112         * graphite.c: Likewise.
10113         * ipa-devirt.c: Likewise.
10114         * ipa-profile.c: Likewise.
10115         * ipa.c: Likewise.
10116         * ira.c: Likewise.
10117         * loop-init.c: Likewise.
10118         * loop-unroll.c: Likewise.
10119         * lower-subreg.c: Likewise.
10120         * lto/lto-object.c: Likewise.
10121         * recog.c: Likewise.
10122         * reginfo.c: Likewise.
10123         * tree-loop-distribution.c: Likewise.
10124         * tree-parloops.c: Likewise.
10125         * tree-ssa-strlen.c: Likewise.
10126         * tree-streamer.c: Likewise.
10127         * value-prof.c: Likewise.
10128         * target-globals.c: Likewise.
10129         * expr.h: Include tree-core.h instead of tree.h.
10130         * gimple.h: Likewise.
10131         * ipa-prop.h: Likewise.
10132         * ipa-utils.h: Likewise.
10133         * lto-streamer.h: Likewise.
10134         * streamer-hooks.h: Likewise.
10135         * ipa-reference.h: Include cgraph.h instead of tree.h.
10136         * cgraph.h: Include basic-block.h instead of tree.h.
10137         * tree-streamer.h: Do not include tree.h.
10138         * genattrtab.c (write_header): Generate inclusion of tree.h.
10139         * genautomata.c (main): Likewise.
10140         * genemit.c: Likewise.
10141         * genopinit.c: Likewise.
10142         * genoutput.c (output_prologue): Likewise.
10143         * genpeep.c: Likewise.
10145 2013-10-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10147         * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
10148         little endian.
10149         (vec_unpacku_hi_v8hi): Likewise.
10150         (vec_unpacku_lo_v16qi): Likewise.
10151         (vec_unpacku_lo_v8hi): Likewise.
10153 2013-10-20  Jan Hubicka  <jh@suse.cz>
10155         * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
10156         X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
10157         (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
10159 2013-10-20  Richard Sandiford  <rdsandiford@googlemail.com>
10161         * config/mips/mips.h (ISA_HAS_WSBH): Define.
10162         * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
10163         constants.
10164         (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
10166 2013-10-19  John David Anglin  <danglin@gcc.gnu.org>
10168         PR target/58603
10169         * system.h: Undef m_slot.
10171 2013-10-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10173         * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
10174         all elements for both endian flavors.
10176 2013-10-19  Uros Bizjak  <ubizjak@gmail.com>
10178         PR target/58792
10179         * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
10180         ST1_REG and XMM1_REG for 32bit and 64bit targets.  Also add DI_REG
10181         and SI_REG for 64bit SYSV ABI targets.
10183 2013-10-19  Uros Bizjak  <ubizjak@gmail.com>
10185         * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
10186         to multi_reg_return.  Clarify that we are skipping USEs of multiple
10187         return registers.  Use bool type where appropriate.
10189 2013-10-18  Jan Hubicka  <jh@suse.cz>
10191         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
10192         for cold functions.
10193         * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
10194         (X86_TUNE_PUSH_MEMORY): Likewise.
10195         (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
10196         X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
10197         (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
10198         New.
10199         * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
10200         x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
10201         Remove.
10202         (ix86_option_override_internal): Update to use tune features instead
10203         of variables.
10205 2013-10-18  Cong Hou  <congh@google.com>
10207         PR tree-optimization/58508
10208         * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
10209         statement that contains data refs with zero-step.
10211 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
10213         * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
10214         sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
10215         * gimple-low.c (gimple_check_call_arg,
10216         gimple_check_call_matching_types): Move to cgraph.c.
10217         * gimple-low.h: Remove prototype.
10218         * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
10219         Relocate from gimple-low.c.
10220         * cgraph.h: Add prototype.  Don't include basic-block.h.
10221         * gimplify.c: Add gimple-low to include list.
10222         * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
10223         * tree-eh.c: Add gimple-low to include list.
10224         * tree-nested.c: Likewise.
10225         * cfgexpand.c: Add tree-ssa-address.h to include list.
10226         * expr.c: Likewise.
10227         * gimple-fold.c: Likewise.
10228         * gimple-ssa-strength-reduction.c: Likewise.
10229         * trans-mem.c: Likewise.
10230         * tree-mudflap.c: Likewise.
10231         * tree-ssa-loop-ivopts.c: Likewise.
10232         * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
10233         (degenerate_phi_result): Move to tree-phinodes.c.
10234         * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
10235         * tree-ssa-threadedge.c: Likewise.
10236         * tree-vrp.c: Likewise.
10237         * tree-phinodes.c (degenerate_phi_result): Relocate here.
10238         * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
10239         * tree-phinodes.h (degenerate_phi_result): Add prototype.
10240         * tree-ssa-copy.c: Include tree-ssa-dom.h.
10241         * tree-ssa-forwprop.c: Likewise.
10242         * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
10243         pass_data_cleanup_cfg_post_optimizing,
10244         make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
10245         * tree-optimize.c: Delete File.
10246         * graphite.c: Include tree-cfgcleanup.h.
10247         * passes.c: Likewise.
10248         * tree-cfg.c: Likewise.
10249         * tree-profile.c: Likewise.
10250         * tree-ssa-dse.c: Likewise.
10251         * tree-ssa-loop-ivcanon.c: Likewise.
10252         * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
10253         * tree-outof-ssa.c: Include sbitmap.h.
10254         * tree-ssa-live.c: Likewise.
10255         * tree-ssa-propagate.c: Likewise.
10256         * tree-ssa-structalias.c: Likewise.
10257         * tree-stdarg.c: Likewise.
10258         * Makefile.in (OBJS): Delete tree-optimize.o.
10259         * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
10260         * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
10261         * varasm.c: Include basic-block.h.
10262         * cfgloop.h: Include function.h instead of basic-block.h
10263         (bb_loop_depth): Move to cfgloop.c.
10264         * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
10266 2013-10-18  Teresa Johnson  <tejohnson@google.com>
10268         * predict.c (probably_never_executed): Compare frequency-based
10269         count to number of training runs.
10270         * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
10272 2013-10-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10274         * config/arm/arm.c (cortexa9_extra_costs): New table.
10275         (arm_cortex_a9_tune): Use cortexa9_extra_costs.
10277 2013-10-18  Jeff Law  <law@redhat.com>
10279         * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
10281         * tree-ssa-threadupdate.c: Include "dbgcnt.h".
10282         (register_jump_thread): Add "registered_jump_thread" debug
10283         counter support.
10284         * dbgcnt.def (registered_jump_thread): New debug counter.
10286 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
10288         * config/rs6000/rs6000.c: Include cgraph.h.
10290 2013-10-18  Teresa Johnson  <tejohnson@google.com>
10292         * tree-ssa-tail-merge.c (replace_block_by): Update edge
10293         weights during merging.
10295 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
10297         * tree-cfg.h: Rename from tree-flow.h.  Remove #includes.
10298         * tree-ssa.h: Relocate required #includes from tree-cfg.h.
10299         * tree-ssa-operands.h: Remove prototype.
10300         * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
10301         * gimple.c (virtual_operand_p): Relocate from gimple.c.
10302         * gimple.h: Add prototype.
10303         * gimple-ssa.h: Include tree-ssa-operands.h.
10304         * tree-dump.c: Add tree-cfg.h to include list.
10305         * tree-ssa-alias.c: Add ipa-reference.h to include list.
10306         * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
10307         * config/i386/i386.c: Don't include tree-flow.h.
10308         * config/rs6000/rs6000.c: Likewise.
10310 2013-10-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
10312         * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
10314 2013-10-18  Richard Biener  <rguenther@suse.de>
10316         * stor-layout.c (layout_type): Do not change TYPE_PRECISION
10317         or TYPE_UNSIGNED of integral types.
10318         (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
10319         NULL_TREE for zero-precision integral types.
10321 2013-10-18  James Greenhalgh  <james.greenhalgh@arm.com>
10323         * config/aarch64/arm_neon.h
10324         (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
10326 2013-10-17  Sriraman Tallam  <tmsriram@google.com>
10328         PR target/57756
10329         * opth-gen.awk: Define target_flags_explicit.
10331 2013-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
10333         * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
10334         fields to the reg_addr array that describes the valid addressing
10335         mode for any register, general purpose registers, floating point
10336         registers, and Altivec registers.
10337         (FIRST_RELOAD_REG_CLASS): Likewise.
10338         (LAST_RELOAD_REG_CLASS): Likewise.
10339         (struct reload_reg_map_type): Likewise.
10340         (reload_reg_map_type): Likewise.
10341         (RELOAD_REG_VALID): Likewise.
10342         (RELOAD_REG_MULTIPLE): Likewise.
10343         (RELOAD_REG_INDEXED): Likewise.
10344         (RELOAD_REG_OFFSET): Likewise.
10345         (RELOAD_REG_PRE_INCDEC): Likewise.
10346         (RELOAD_REG_PRE_MODIFY): Likewise.
10347         (reg_addr): Likewise.
10348         (mode_supports_pre_incdec_p): New helper functions to say whether
10349         a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
10350         (mode_supports_pre_modify_p): Likewise.
10351         (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
10352         print the valid address mode bits for each mode.
10353         (rs6000_debug_print_mode): Likewise.
10354         (rs6000_debug_reg_global): Likewise.
10355         (rs6000_setup_reg_addr_masks): New function to set up the address
10356         mask bits for each type.
10357         (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
10358         Call rs6000_setup_reg_addr_masks to set up the address mask bits.
10359         (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
10360         mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
10361         PRE_MODIFY are supported.
10362         (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
10363         registers, instead of {src,dest}_av_p.
10364         (rs6000_print_options_internal): Tweak the debug output slightly.
10366 2013-10-17  Uros Bizjak  <ubizjak@gmail.com>
10368         * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
10369         isa attribute.
10371 2013-10-17  Andrew MacLeod  <amacleod@redhat.com>
10373         * tree-flow.h (struct omp_region): Move to omp-low.c.
10374         Remove omp_ prototypes and variables.
10375         * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
10376         (copy_var_decl): Relocate prototype from tree-flow.h.
10377         * gimple.c (copy_var_decl): Relocate from omp-low.c.
10378         * tree.h: Move prototype to omp-low.h.
10379         * omp-low.h: New File.  Relocate prototypes here.
10380         * omp-low.c (struct omp_region): Make local here.
10381         (root_omp_region): Make static.
10382         (copy_var_decl) Move to gimple.c.
10383         (new_omp_region): Make static.
10384         (make_gimple_omp_edges): New.  Refactored from tree-cfg.c make_edges.
10385         * tree-cfg.c: Include omp-low.h.
10386         (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
10387         * gimplify.c: Include omp-low.h.
10388         * tree-parloops.c: Likewise.
10390 2013-10-17  Uros Bizjak  <ubizjak@gmail.com>
10392         * config/i386/i386.c (ix86_fixup_binary_operands): When both source
10393         operands are in memory, prefer to force non-matched operand 1 to
10394         the register.
10396 2013-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
10398         PR target/58673
10399         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
10400         restrict TImode addresses to single indirect registers if both
10401         -mquad-memory and -mvsx-timode are used.
10402         (rs6000_output_move_128bit): Use quad_load_store_p to determine if
10403         we should emit load/store quad.  Remove using %y for quad memory
10404         addresses.
10406         * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
10407         constraints to allow load/store quad on machines where TImode is
10408         not allowed in VSX registers.  Use 'n' instead of 'F' constraint
10409         for TImode to load integer constants.
10411 2013-10-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10413         * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
10415 2013-10-17  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10417         * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
10418         handling of STACK_REG.
10420 2013-10-17  Richard Biener  <rguenther@suse.de>
10422         PR tree-optimization/58143
10423         * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
10424         New function.
10425         (rewrite_to_defined_overflow): Likewise.
10426         (move_computations_dom_walker::before_dom): Rewrite stmts
10427         with undefined signed overflow that are not always executed
10428         into unsigned arithmetic.
10430 2013-10-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
10432         PR target/57756
10433         * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
10434         explicit isa flag to be an options variable, instead of using
10435         global_options_set.  Remove define from rs6000.h.
10436         * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
10438         * config/rs6000/rs6000.c (rs6000_option_override_internal):
10439         Initialize rs6000_isa_flags_explicit.
10440         (rs6000_function_specific_save): Add gcc_options* parameter, so
10441         that the powerpc builds after the 2013-10-15 changes.
10442         (rs6000_function_specific_restore): Likewise.
10444 2013-10-16  DJ Delorie  <dj@redhat.com>
10446         * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
10447         op is a REG before checking REGNO.
10448         (rl78_alloc_physical_registers): Verify pattern is a SET before
10449         checking SET_SRC.
10451 2013-10-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10453         * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
10454         endianness.
10455         (vec_unpacks_lo_v4sf): Likewise.
10456         (vec_unpacks_float_hi_v4si): Likewise.
10457         (vec_unpacks_float_lo_v4si): Likewise.
10458         (vec_unpacku_float_hi_v4si): Likewise.
10459         (vec_unpacku_float_lo_v4si): Likewise.
10461 2013-10-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10463         * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
10464         (vsx_concat_v2sf): Likewise.
10466 2013-10-16  James Greenhalgh  <james.greenhalgh@arm.com>
10468         * config/aarch64/aarch64.md
10469         (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
10471 2013-10-16  Andrew MacLeod  <amacleod@redhat.com>
10473         PR tree-optimization/58697
10474         * cfgloop.c (get_estimated_loop_iterations_int): Rename from
10475         estimated_loop_iterations_int.
10476         (max_stmt_executions_int): Call get_max_loop_iterations_int.
10477         (get_max_loop_iterations_int): New.  HWINT version of
10478         get_max_loop_iterations.
10479         * cfgloop.h: Add prototypes.
10480         * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
10481         * loop-unroll.c (decide_peel_once_rolling): Call
10482         get_estimated_loop_iterations_int.
10483         * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
10484         * tree-ssa-loop-niter.h: Tweak prototypes.
10486 2013-10-16  David Malcolm  <dmalcolm@redhat.com>
10488         * gengtype-parse.c (struct_field_seq): Ignore access-control
10489         keywords ("public:" etc).
10491 2013-10-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10493         * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
10494         FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
10496 2013-10-16  Yvan Roux  <yvan.roux@linaro.org>
10498         * config/arm/arm.opt (mlra): New option.
10499         * config/arm/arm.c (arm_lra_p): New function.
10500         (TARGET_LRA_P): Define.
10502 2013-10-16  Paulo Matos  <pmatos@broadcom.com>
10504         * tree-core.h (tree_code_name): Remove.
10505         * tree.h (get_tree_code_name): New prototype.
10506         * tree.c (tree_code_name): Make static.
10507         (get_tree_code_name): New function.
10508         (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
10509         tree_class_check_failed, tree_range_check_failed,
10510         tree_not_class_check_failed, omp_clause_check_failed,
10511         tree_contains_struct_check_failed, tree_operand_check_failed): Use new
10512         wrapper get_tree_code_name instead of calling tree_code_name directly.
10513         * tree-vrp.c (dump_asserts_for): Likewise.
10514         * tree-dump.c (dequeue_and_dump): Likewise.
10515         * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
10516         * tree-pretty-print.h (pp_unsupported_tree): Likewise.
10517         * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
10518         * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
10519         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
10520         dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
10521         dump_gimple_omp_for): Likewise.
10522         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
10523         * tree-ssa-pre.c (print_pre_expr): Likewise.
10524         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
10525         * print-tree.c (print_node_brief, print_node): Likewise.
10526         * gimple.c (gimple_check_failed): Likewise.
10527         * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
10528         * config/frv/frv.c (frv_init_cumulative_args): Likewise.
10529         * config/mep/mep.c (mep_validate_vliw): Likewise.
10530         * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
10531         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
10533 2013-10-16  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
10535         * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
10536         for AMD bdver3.
10538 2013-10-16  Hans-Peter Nilsson  <hp@axis.com>
10540         * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
10541         (MULTILIB_MATCHES): Add multilib for -march=v8.
10543 2013-10-15  Sriraman Tallam  <tmsriram@google.com>
10545         PR target/57756
10546         * optc-save-gen.awk: Add extra parameter to the save and restore
10547         target calls.
10548         * opth-gen.awk: Generate new TARGET_* macros  to accept a parameter.
10549         * tree.c (build_optimization_node): New parameter.  Add extra parameter
10550         to call to cl_optimization_save.
10551         (build_target_option_node): New parameter. Add extra parameter
10552         to call to cl_target_option_save.
10553         * tree.h (build_optimization_node): New parameter.
10554         (build_target_option_node): New parameter.
10555         * c-family/c-common.c (handle_optimize_attribute): Fix calls to
10556         build_optimization_node and build_target_option_node.
10557         * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
10558         (handle_pragma_push_options): Ditto.
10559         * toplev.c (process_options): Ditto.
10560         * opts.c (init_options_struct): Check for opts_set non-null.
10561         * target.def (target_option.save): New parameter.
10562         (target_option.restore): New parameter.
10563         * tm.texi: Generate.
10564         * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
10565         (ix86_pragma_target_parse): Ditto.
10566         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
10567         parameters.
10568         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
10569         to  build_optimization_node and build_target_option_node.
10570         (rs6000_valid_attribute_p): Ditto.
10571         (rs6000_pragma_target_parse): Ditto.
10572         * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
10573         data.
10574         * config/i386/i386.h:
10575         TARGET_64BIT_P: New Macro
10576         TARGET_MMX_P: New Macro.
10577         TARGET_3DNOW_P: New Macro.
10578         TARGET_3DNOW_A_P: New Macro.
10579         TARGET_SSE_P: New Macro.
10580         TARGET_SSE2_P: New Macro.
10581         TARGET_SSE3_P: New Macro.
10582         TARGET_SSSE3_P: New Macro.
10583         TARGET_SSE4_1_P: New Macro.
10584         TARGET_SSE4_2_P: New Macro.
10585         TARGET_AVX_P: New Macro.
10586         TARGET_AVX2_P: New Macro.
10587         TARGET_AVX512F_P: New Macro.
10588         TARGET_AVX512PF_P: New Macro.
10589         TARGET_AVX512ER_P: New Macro.
10590         TARGET_AVX512CD_P: New Macro.
10591         TARGET_FMA_P: New Macro.
10592         TARGET_SSE4A_P: New Macro.
10593         TARGET_FMA4_P: New Macro.
10594         TARGET_XOP_P: New Macro.
10595         TARGET_LWP_P: New Macro.
10596         TARGET_ABM_P: New Macro.
10597         TARGET_BMI_P: New Macro.
10598         TARGET_BMI2_P: New Macro.
10599         TARGET_LZCNT_P: New Macro.
10600         TARGET_TBM_P: New Macro.
10601         TARGET_POPCNT_P: New Macro.
10602         TARGET_SAHF_P: New Macro.
10603         TARGET_MOVBE_P: New Macro.
10604         TARGET_CRC32_P: New Macro.
10605         TARGET_AES_P: New Macro.
10606         TARGET_PCLMUL_P: New Macro.
10607         TARGET_CMPXCHG16B_P: New Macro.
10608         TARGET_FSGSBASE_P: New Macro.
10609         TARGET_RDRND_P: New Macro.
10610         TARGET_F16C_P: New Macro.
10611         TARGET_RTM_P: New Macro.
10612         TARGET_HLE_P: New Macro.
10613         TARGET_RDSEED_P: New Macro.
10614         TARGET_PRFCHW_P: New Macro.
10615         TARGET_ADX_P: New Macro.
10616         TARGET_FXSR_P: New Macro.
10617         TARGET_XSAVE_P: New Macro.
10618         TARGET_XSAVEOPT_P: New Macro.
10619         TARGET_LP64_P: New Macro.
10620         TARGET_X32_P: New Macro.
10621         TARGET_FPMATH_DEFAULT_P: New Macro.
10622         TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
10623         * config/i386/i386.c (ix86_option_override_internal): New parameters.
10624         opts and opts_set.
10625         Change ix86_tune_string to access opts->x_ix86_tune_string.
10626         Change ix86_isa_flags to access opts->x_ix86_isa_flags.
10627         Change ix86_arch_string to access opts->x_ix86_arch_string.
10628         Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
10629         Change ix86_pmode to access opts->x_ix86_pmode.
10630         Change ix86_abi to access opts->x_ix86_abi.
10631         Change ix86_cmodel to access opts->x_ix86_cmodel.
10632         Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
10633         Change ix86_isa_flags_explicit to access
10634         opts->x_ix86_isa_flags_explicit.
10635         Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
10636         Change ix86_regparm to access opts->x_ix86_regparm.
10637         Change ix86_branch_cost to access opts->x_ix86_branch_cost.
10638         Change ix86_preferred_stack_boundary_arg to access
10639         opts->x_ix86_preferred_stack_boundary_arg.
10640         Change ix86_force_align_arg_pointer to access
10641         opts->x_ix86_force_align_arg_pointer.
10642         Change ix86_incoming_stack_boundar_arg to access
10643         opts->x_ix86_incoming_stack_boundar_arg.
10644         Change ix86_fpmath to access opts->x_ix86_fpmath.
10645         Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
10646         Change ix86_recip_name to access opts->x_ix86_recip_name.
10647         Change ix86_stack_protector_guard to access
10648         opts->x_ix86_stack_protector_guard.
10649         Change ix86_tune_memcpy_strategy to access
10650         opts->x_ix86_tune_memcpy_strategy.
10651         Change ix86_tune_memset_strategy to access
10652         opts->x_ix86_tune_memset_strategy.
10653         Change global_options to access opts.
10654         Change global_options_set to access opts_set.
10655         Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
10656         Change TARGET_MMX to TARGET_MMX_P (opts->...).
10657         Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
10658         Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
10659         Change TARGET_SSE to TARGET_SSE_P (opts->...).
10660         Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
10661         Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
10662         Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
10663         Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
10664         Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
10665         Change TARGET_AVX to TARGET_AVX_P (opts->...).
10666         Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
10667         Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
10668         Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
10669         Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
10670         Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
10671         Change TARGET_FMA to TARGET_FMA_P (opts->...).
10672         Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
10673         Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
10674         Change TARGET_XOP to TARGET_XOP_P (opts->...).
10675         Change TARGET_LWP to TARGET_LWP_P (opts->...).
10676         Change TARGET_ABM to TARGET_ABM_P (opts->...).
10677         Change TARGET_BMI to TARGET_BMI_P (opts->...).
10678         Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
10679         Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
10680         Change TARGET_TBM to TARGET_TBM_P (opts->...).
10681         Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
10682         Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
10683         Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
10684         Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
10685         Change TARGET_AES to TARGET_AES_P (opts->...).
10686         Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
10687         Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
10688         Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
10689         Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
10690         Change TARGET_F16C to TARGET_F16C_P (opts->...).
10691         Change TARGET_RTM to TARGET_RTM_P (opts->...).
10692         Change TARGET_HLE to TARGET_HLE_P (opts->...).
10693         Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
10694         Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
10695         Change TARGET_ADX to TARGET_ADX_P (opts->...).
10696         Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
10697         Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
10698         Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
10699         Change TARGET_LP64 to TARGET_LP64_P (opts->...).
10700         Change TARGET_X32 to TARGET_X32_P (opts->...).
10701         Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
10702         Change TARGET_FLOAT_RETURNS_IN_80387 to
10703         TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
10704         (ix86_function_specific_save): New parameter. Use opts-> fields
10705         to replace global fields.
10706         (ix86_function_specific_restore): Ditto.
10707         (ix86_valid_target_attribute_inner_p): New parameters.
10708         Fix recursive call.
10709         Fix call to ix86_handle_option and set_option.
10710         (ix86_valid_target_attribute_tree): New parameters.
10711         Change global_options to access opts.
10712         Change global_options_set to access opts_set.
10713         Fix call to ix86_valid_target_attribute_inner_p.
10714         Change ix86_tune_string to access opts->x_ix86_tune_string.
10715         Change ix86_arch_string to access opts->x_ix86_arch_string.
10716         Change ix86_fpmath to access opts->x_ix86_fpmath
10717         Fix call to ix86_option_override_internal.
10718         Fix call to ix86_add_new_builtins.
10719         Fix calls to build_optimization_node and build_target_option_node.
10720         (ix86_valid_target_attribute_p): Remove access to global_options.
10721         Use new gcc_options structure func_options.
10722         Fix call to ix86_valid_target_attribute_tree.
10723         Fix call to  build_optimization_node.
10724         (get_builtin_code_for_version): Fix call to
10725         ix86_valid_target_attribute_tree.
10727 2013-10-15  David Malcolm  <dmalcolm@redhat.com>
10729         * Makefile.in (PICFLAG): New.
10730         (enable_host_shared): New.
10731         (INTERNAL_CFLAGS): Use PICFLAG.
10732         (LIBIBERTY): Use pic build of libiberty.a if configured with
10733         --enable-host-shared.
10734         * configure.ac: Add --enable-host-shared, setting up new
10735         PICFLAG variable.
10736         * configure: Regenerate.
10737         * doc/install.texi (--enable-shared): Add note contrasting it with ...
10738         (--enable-host-shared): New option.
10740 2013-10-15  Richard Biener  <rguenther@suse.de>
10742         * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
10743         for built-in functions.
10745 2013-10-15  Zhenqiang Chen  <zhenqiang.chen@arm.com>
10747         * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
10748         (optimize_range_tests_1): New function,
10749         extracted from optimize_range_tests.
10750         (optimize_range_tests_xor): Similarly.
10751         (optimize_range_tests_diff): New function.
10752         (optimize_range_tests): Use optimize_range_tests_1.
10754 2013-10-15  Cong Hou  <congh@google.com>
10756         * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
10757         requirement of the reduction pattern so that one operand of the
10758         reduction operation can come from outside of the loop.
10760 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10762         * config/arm/neon-schedgen.ml: Remove.
10763         * config/arm/cortex-a9-neon.md: Remove comment regarding
10764         neon-schedgen.ml.
10766 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10768         * config/arm/types: Remove old neon types.
10770 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10772         * config/arm/cortex-a7.md
10773         (cortex_a7_neon_type): New.
10774         (cortex_a7_neon_mul): Update for new types.
10775         (cortex_a7_neon_mla): Likewise.
10776         (cortex_a7_neon): Likewise.
10778 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10780         * config/arm/cortex-a15-neon.md
10781         (cortex_a15_neon_type): New,
10783         (cortex_a15_neon_int_1): Remove.
10784         (cortex_a15_neon_int_2): Likewise.
10785         (cortex_a15_neon_int_3): Likewise.
10786         (cortex_a15_neon_int_4): Likewise.
10787         (cortex_a15_neon_int_5): Likewise.
10788         (cortex_a15_neon_vqneg_vqabs): Likewise.
10789         (cortex_a15_neon_vmov): Likewise.
10790         (cortex_a15_neon_vaba): Likewise.
10791         (cortex_a15_neon_vaba_qqq): Likewise.
10792         (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10793         (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10794         (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10795         Likewise.
10796         (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10797         (cortex_a15_neon_mla_qqq_8_16): Likewise.
10798         (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
10799         (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10800         (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10801         (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
10802         (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10803         (cortex_a15_neon_shift_1): Likewise.
10804         (cortex_a15_neon_shift_2): Likewise.
10805         (cortex_a15_neon_shift_3): Likewise.
10806         (cortex_a15_neon_vshl_ddd): Likewise.
10807         (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10808         (cortex_a15_neon_vsra_vrsra): Likewise.
10809         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
10810         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
10811         (cortex_a15_neon_bp_3cycle): Likewise.
10812         (cortex_a15_neon_ldm_2): Likewise.
10813         (cortex_a15_neon_stm_2): Likewise.
10814         (cortex_a15_neon_mcr): Likewise.
10815         (cortex_a15_neon_mrc): Likewise.
10816         (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
10817         (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
10818         (cortex_a15_neon_fp_vmul_ddd): Likewise.
10819         (cortex_a15_neon_fp_vmul_qqd): Likewise.
10820         (cortex_a15_neon_fp_vmla_ddd): Likewise.
10821         (cortex_a15_neon_fp_vmla_qqq): Likewise.
10822         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
10823         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
10824         (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10825         (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10826         (cortex_a15_neon_bp_simple): Likewise.
10827         (cortex_a15_neon_bp_2cycle): Likewise.
10828         (cortex_a15_neon_bp_3cycle): Likewise.
10829         (cortex_a15_neon_vld1_1_2_regs): Likewise.
10830         (cortex_a15_neon_vld1_3_4_regs): Likewise.
10831         (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10832         (cortex_a15_neon_vld2_4_regs): Likewise.
10833         (cortex_a15_neon_vld3_vld4): Likewise.
10834         (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10835         (cortex_a15_neon_vst1_3_4_regs): Likewise.
10836         (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
10837         (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
10838         (cortex_a15_neon_vst3_vst4): Rename to...
10839         (cortex_a15_neon_vst4): This, update for new attributes.
10840         (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
10841         (cortex_a15_neon_vld3_vld4_lane): Likewise.
10842         (cortex_a15_neon_vst1_vst2_lane): Likewise.
10843         (cortex_a15_neon_vst3_vst4_lane): Likewise.
10844         (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
10845         (cortex_a15_neon_ldm_2): Likewise.
10846         (cortex_a15_neon_stm_2): Likewise.
10847         (cortex_a15_neon_mcr): Likewise.
10848         (cortex_a15_neon_mcr_2_mcrr): Likewise.
10849         (cortex_a15_neon_mrc): Likewise.
10850         (cortex_a15_neon_mrrc): Likewise.
10852         (cortex_a15_neon_abd): New.
10853         (cortex_a15_neon_abd_q): Likewise.
10854         (cortex_a15_neon_aba): Likewise.
10855         (cortex_a15_neon_aba_q): Likewise.
10856         (cortex_a15_neon_acc): Likewise.
10857         (cortex_a15_neon_acc_q): Likewise.
10858         (cortex_a15_neon_arith_basic): Likewise.
10859         (cortex_a15_neon_arith_complex): Likewise.
10860         (cortex_a15_neon_multiply): Likewise.
10861         (cortex_a15_neon_multiply_q): Likewise.
10862         (cortex_a15_neon_mla): Likewise.
10863         (cortex_a15_neon_mla_q): Likewise.
10864         (cortex_a15_neon_sat_mla_long): Likewise.
10865         (cortex_a15_neon_shift_acc): Likewise.
10866         (cortex_a15_neon_shift_imm_basic): Likewise.
10867         (cortex_a15_neon_shift_imm_complex): Likewise.
10868         (cortex_a15_neon_shift_reg_basic): Likewise.
10869         (cortex_a15_neon_shift_reg_basic_q): Likewise.
10870         (cortex_a15_neon_shift_reg_complex): Likewise.
10871         (cortex_a15_neon_shift_reg_complex_q): Likewise.
10872         (cortex_a15_neon_fp_negabs): Likewise
10873         (cortex_a15_neon_fp_arith): Likewise
10874         (cortex_a15_neon_fp_arith_q): Likewise
10875         (cortex_a15_neon_fp_cvt_int): Likewise
10876         (cortex_a15_neon_fp_cvt_int_q): Likewise
10877         (cortex_a15_neon_fp_cvt_16): Likewise
10878         (cortex_a15_neon_fp_mul): Likewise
10879         (cortex_a15_neon_fp_mul_q): Likewise
10880         (cortex_a15_neon_fp_mla): Likewise
10881         (cortex_a15_neon_fp_mla_q): Likewise
10882         (cortex_a15_neon_fp_recps_rsqrte): Likewise.
10883         (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
10884         (cortex_a15_neon_bitops): Likewise.
10885         (cortex_a15_neon_bitops_q): Likewise.
10886         (cortex_a15_neon_from_gp): Likewise.
10887         (cortex_a15_neon_from_gp_q): Likewise.
10888         (cortex_a15_neon_tbl3_tbl4): Likewise.
10889         (cortex_a15_neon_zip_q): Likewise.
10890         (cortex_a15_neon_to_gp): Likewise.
10891         (cortex_a15_neon_load_a): Likewise.
10892         (cortex_a15_neon_load_b): Likewise.
10893         (cortex_a15_neon_load_c): Likewise.
10894         (cortex_a15_neon_load_d): Likewise.
10895         (cortex_a15_neon_load_e): Likewise.
10896         (cortex_a15_neon_load_f): Likewise.
10897         (cortex_a15_neon_store_a): Likewise.
10898         (cortex_a15_neon_store_b): Likewise.
10899         (cortex_a15_neon_store_c): Likewise.
10900         (cortex_a15_neon_store_d): Likewise.
10901         (cortex_a15_neon_store_e): Likewise.
10902         (cortex_a15_neon_store_f): Likewise.
10903         (cortex_a15_neon_store_g): Likewise.
10904         (cortex_a15_neon_store_h): Likewise.
10905         (cortex_a15_vfp_to_from_gp): Likewise.
10907 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10909         * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
10911         (cortex_a9_neon_vshl_ddd): Remove.
10912         (cortex_a9_neon_vst3_vst4): Likewise.
10913         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
10915         (cortex_a9_neon_bit_ops_q): New.
10917         (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
10918         (cortex_a9_neon_int_2): Likewise.
10919         (cortex_a9_neon_int_3): Likewise.
10920         (cortex_a9_neon_int_4): Likewise.
10921         (cortex_a9_neon_int_5): Likewise.
10922         (cortex_a9_neon_vqneg_vqabs): Likewise.
10923         (cortex_a9_neon_vmov): Likewise.
10924         (cortex_a9_neon_vaba): Likewise.
10925         (cortex_a9_neon_vaba_qqq): Likewise.
10926         (cortex_a9_neon_shift_1): Likewise.
10927         (cortex_a9_neon_shift_2): Likewise.
10928         (cortex_a9_neon_shift_3): Likewise.
10929         (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10930         (cortex_a9_neon_vsra_vrsra): Likewise.
10931         (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10932         (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10933         (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10934         Likewise.
10935         (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10936         (cortex_a9_neon_mla_qqq_8_16): Likewise.
10937         (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
10938         Likewise.
10939         (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10940         (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10941         (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
10942         (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10943         (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
10944         (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
10945         (cortex_a9_neon_fp_vsum): Likewise.
10946         (cortex_a9_neon_fp_vmul_ddd): Likewise.
10947         (cortex_a9_neon_fp_vmul_qqd): Likewise.
10948         (cortex_a9_neon_fp_vmla_ddd): Likewise.
10949         (cortex_a9_neon_fp_vmla_qqq): Likewise.
10950         (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
10951         (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
10952         (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10953         (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10954         (cortex_a9_neon_bp_simple): Likewise.
10955         (cortex_a9_neon_bp_2cycle): Likewise.
10956         (cortex_a9_neon_bp_3cycle): Likewise.
10957         (cortex_a9_neon_ldr): Likewise.
10958         (cortex_a9_neon_str): Likewise.
10959         (cortex_a9_neon_vld1_1_2_regs): Likewise.
10960         (cortex_a9_neon_vld1_3_4_regs): Likewise.
10961         (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10962         (cortex_a9_neon_vld2_4_regs): Likewise.
10963         (cortex_a9_neon_vld3_vld4): Likewise.
10964         (cortex_a9_neon_vld1_vld2_lane): Likewise.
10965         (cortex_a9_neon_vld3_vld4_lane): Likewise.
10966         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
10967         (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10968         (cortex_a9_neon_vst1_3_4_regs): Likewise.
10969         (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
10970         (cortex_a9_neon_vst1_vst2_lane): Likewise.
10971         (cortex_a9_neon_vst3_vst4_lane): Likewise.
10972         (cortex_a9_neon_mcr): Likewise.
10973         (cortex_a9_neon_mcr_2_mcrr): Likewise.
10974         (cortex_a9_neon_mrc): Likewise.
10975         (cortex_a9_neon_mrrc): Likewise.
10977 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10979         * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
10981         (cortex_a8_neon_vshl_ddd): Remove.
10982         (cortex_a8_neon_vst3_vst4): Likewise.
10983         (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
10985         (cortex_a8_neon_bit_ops_q): New.
10987         (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
10988         (cortex_a8_neon_int_2): Likewise..
10989         (cortex_a8_neon_int_3): Likewise.
10990         (cortex_a8_neon_int_5): Likewise.
10991         (cortex_a8_neon_vqneg_vqabs): Likewise.
10992         (cortex_a8_neon_int_4): Likewise.
10993         (cortex_a8_neon_vaba): Likewise.
10994         (cortex_a8_neon_vaba_qqq): Likewise.
10995         (cortex_a8_neon_shift_1): Likewise.
10996         (cortex_a8_neon_shift_2): Likewise.
10997         (cortex_a8_neon_shift_3): Likewise.
10998         (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10999         (cortex_a8_neon_vsra_vrsra): Likewise.
11000         (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
11001         (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
11002         (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
11003         Likewise.
11004         (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
11005         (cortex_a8_neon_mla_qqq_8_16): Likewise.
11006         (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
11007         Likewise.
11008         (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
11009         (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
11010         (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
11011         (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
11012         (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
11013         (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
11014         (cortex_a8_neon_fp_vsum): Likewise.
11015         (cortex_a8_neon_fp_vmul_ddd): Likewise.
11016         (cortex_a8_neon_fp_vmul_qqd): Likewise.
11017         (cortex_a8_neon_fp_vmla_ddd): Likewise.
11018         (cortex_a8_neon_fp_vmla_qqq): Likewise.
11019         (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
11020         (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
11021         (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
11022         (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
11023         (cortex_a8_neon_bp_simple): Likewise.
11024         (cortex_a8_neon_bp_2cycle): Likewise.
11025         (cortex_a8_neon_bp_3cycle): Likewise.
11026         (cortex_a8_neon_ldr): Likewise.
11027         (cortex_a8_neon_str): Likewise.
11028         (cortex_a8_neon_vld1_1_2_regs): Likewise.
11029         (cortex_a8_neon_vld1_3_4_regs): Likewise.
11030         (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
11031         (cortex_a8_neon_vld2_4_regs): Likewise.
11032         (cortex_a8_neon_vld3_vld4): Likewise.
11033         (cortex_a8_neon_vld1_vld2_lane): Likewise.
11034         (cortex_a8_neon_vld3_vld4_lane): Likewise.
11035         (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
11036         (cortex_a8_neon_vst1_3_4_regs): Likewise.
11037         (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
11038         (cortex_a8_neon_vst1_vst2_lane): Likewise.
11039         (cortex_a8_neon_vst3_vst4_lane): Likewise.
11040         (cortex_a8_neon_mcr): Likewise.
11041         (cortex_a8_neon_mcr_2_mcrr): Likewise.
11042         (cortex_a8_neon_mrc): Likewise.
11043         (cortex_a8_neon_mrrc): Likewise.
11045 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
11047         * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
11048         (fp): New.
11049         * config/aarch64/aarch64-simd.md (neon_type): Remove.
11050         (aarch64_simd_dup<mode>): Add "type" attribute.
11051         (aarch64_dup_lane<mode>): Likewise.
11052         (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
11053         (*aarch64_simd_mov<mode>): Likewise.
11054         (aarch64_simd_mov_from_<mode>low): Likewise.
11055         (aarch64_simd_mov_from_<mode>high): Likewise.
11056         (orn<mode>3): Likewise.
11057         (bic<mode>3): Likewise.
11058         (add<mode>3): Likewise.
11059         (sub<mode>3): Likewise.
11060         (mul<mode>3): Likewise.
11061         (*aarch64_mul3_elt<mode>): Likewise.
11062         (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
11063         (*aarch64_mul3_elt_to_128df): Likewise.
11064         (*aarch64_mul3_elt_to_64v2df): Likewise.
11065         (neg<mode>2): Likewise.
11066         (abs<mode>2): Likewise.
11067         (abd<mode>_3): Likewise.
11068         (aba<mode>_3): Likewise.
11069         (fabd<mode>_3): Likewise.
11070         (*fabd_scalar<mode>3): Likewise.
11071         (and<mode>3): Likewise.
11072         (ior<mode>3): Likewise.
11073         (xor<mode>3): Likewise.
11074         (one_cmpl<mode>2): Likewise.
11075         (aarch64_simd_vec_set<mode>): Likewise.
11076         (aarch64_simd_lshr<mode>): Likewise.
11077         (aarch64_simd_ashr<mode>): Likewise.
11078         (aarch64_simd_imm_shl<mode>): Likewise.
11079         (aarch64_simd_reg_sshl<mode): Likewise.
11080         (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
11081         (aarch64_simd_reg_shl<mode>_signed): Likewise.
11082         (aarch64_simd_vec_setv2di): Likewise.
11083         (aarch64_simd_vec_set<mode>): Likewise.
11084         (aarch64_mla<mode>): Likewise.
11085         (*aarch64_mla_elt<mode>): Likewise.
11086         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
11087         (aarch64_mls<mode>): Likewise.
11088         (*aarch64_mls_elt<mode>): Likewise.
11089         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
11090         (<su><maxmin><mode>3): Likewise.
11091         (move_lo_quad_<mode>): Likewise.
11092         (aarch64_simd_move_hi_quad_<mode>): Likewise.
11093         (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
11094         (vec_pack_trunc_<mode>): Likewise.
11095         (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
11096         (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
11097         (*aarch64_<su>mlal_lo<mode>): Likewise.
11098         (*aarch64_<su>mlal_hi<mode>): Likewise.
11099         (*aarch64_<su>mlsl_lo<mode>): Likewise.
11100         (*aarch64_<su>mlsl_hi<mode>): Likewise.
11101         (*aarch64_<su>mlal<mode>): Likewise.
11102         (*aarch64_<su>mlsl<mode>): Likewise.
11103         (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
11104         (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
11105         (add<mode>3): Likewise.
11106         (sub<mode>3): Likewise.
11107         (mul<mode>3): Likewise.
11108         (div<mode>3): Likewise.
11109         (neg<mode>2): Likewise.
11110         (abs<mode>2): Likewise.
11111         (fma<mode>4): Likewise.
11112         (*aarch64_fma4_elt<mode>): Likewise.
11113         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
11114         (*aarch64_fma4_elt_to_128df): Likewise.
11115         (*aarch64_fma4_elt_to_64v2df): Likewise.
11116         (fnma<mode>4): Likewise.
11117         (*aarch64_fnma4_elt<mode>): Likewise.
11118         (*aarch64_fnma4_elt_<vswap_width_name><mode>
11119         (*aarch64_fnma4_elt_to_128df): Likewise.
11120         (*aarch64_fnma4_elt_to_64v2df): Likewise.
11121         (<frint_pattern><mode>2): Likewise.
11122         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
11123         (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
11124         (vec_unpacks_lo_v4sf): Likewise.
11125         (aarch64_float_extend_lo_v2df): Likewise.
11126         (vec_unpacks_hi_v4sf): Likewise.
11127         (aarch64_float_truncate_lo_v2sf): Likewise.
11128         (aarch64_float_truncate_hi_v4sf): Likewise.
11129         (aarch64_vmls<mode>): Likewise.
11130         (<su><maxmin><mode>3): Likewise.
11131         (<maxmin_uns><mode>3): Likewise.
11132         (reduc_<sur>plus_<mode>): Likewise.
11133         (reduc_<sur>plus_v2di): Likewise.
11134         (reduc_<sur>plus_v2si): Likewise.
11135         (reduc_<sur>plus_<mode>): Likewise.
11136         (aarch64_addpv4sf): Likewise.
11137         (clz<mode>2): Likewise.
11138         (reduc_<maxmin_uns>_<mode>): Likewise.
11139         (reduc_<maxmin_uns>_v2di): Likewise.
11140         (reduc_<maxmin_uns>_v2si): Likewise.
11141         (reduc_<maxmin_uns>_<mode>): Likewise.
11142         (reduc_<maxmin_uns>_v4sf): Likewise.
11143         (aarch64_simd_bsl<mode>_internal): Likewise.
11144         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
11145         (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
11146         (aarch64_get_lane<mode>): Likewise.
11147         (*aarch64_combinez<mode>): Likewise.
11148         (aarch64_combine<mode>): Likewise.
11149         (aarch64_simd_combine<mode>): Likewise.
11150         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
11151         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
11152         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
11153         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
11154         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
11155         (aarch64_<sur>h<addsub><mode>): Likewise.
11156         (aarch64_<sur><addsub>hn<mode>): Likewise.
11157         (aarch64_<sur><addsub>hn2<mode>): Likewise.
11158         (aarch64_pmul<mode>): Likewise.
11159         (aarch64_<su_optab><optab><mode>): Likewise.
11160         (aarch64_<sur>qadd<mode>): Likewise.
11161         (aarch64_sqmovun<mode>): Likewise.
11162         (aarch64_<sur>qmovn<mode>): Likewise.
11163         (aarch64_s<optab><mode>): Likewise.
11164         (aarch64_sq<r>dmulh<mode>): Likewise.
11165         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
11166         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
11167         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
11168         (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
11169         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
11170         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
11171         (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
11172         (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
11173         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
11174         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
11175         (aarch64_sqdmull<mode>): Likewise.
11176         (aarch64_sqdmull_lane<mode>_internal): Likewise.
11177         (aarch64_sqdmull_n<mode>): Likewise.
11178         (aarch64_sqdmull2<mode>_internal): Likewise.
11179         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
11180         (aarch64_sqdmull2_n<mode>_internal): Likewise.
11181         (aarch64_<sur>shl<mode>): Likewise.
11182         (aarch64_<sur>q<r>shl<mode>
11183         (aarch64_<sur>shll_n<mode>): Likewise.
11184         (aarch64_<sur>shll2_n<mode>): Likewise.
11185         (aarch64_<sur>shr_n<mode>): Likewise.
11186         (aarch64_<sur>sra_n<mode>): Likewise.
11187         (aarch64_<sur>s<lr>i_n<mode>): Likewise.
11188         (aarch64_<sur>qshl<u>_n<mode>): Likewise.
11189         (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
11190         (aarch64_cm<optab><mode>): Likewise.
11191         (aarch64_cm<optab>di): Likewise.
11192         (aarch64_cm<optab><mode>): Likewise.
11193         (aarch64_cm<optab>di): Likewise.
11194         (aarch64_cmtst<mode>): Likewise.
11195         (aarch64_cmtstdi): Likewise.
11196         (aarch64_cm<optab><mode>): Likewise.
11197         (*aarch64_fac<optab><mode>): Likewise.
11198         (aarch64_addp<mode>): Likewise.
11199         (aarch64_addpdi): Likewise.
11200         (sqrt<mode>2): Likewise.
11201         (vec_load_lanesoi<mode>): Likewise.
11202         (vec_store_lanesoi<mode>): Likewise.
11203         (vec_load_lanesci<mode>): Likewise.
11204         (vec_store_lanesci<mode>): Likewise.
11205         (vec_load_lanesxi<mode>): Likewise.
11206         (vec_store_lanesxi<mode>): Likewise.
11207         (*aarch64_mov<mode>): Likewise.
11208         (aarch64_ld2<mode>_dreg): Likewise.
11209         (aarch64_ld2<mode>_dreg): Likewise.
11210         (aarch64_ld3<mode>_dreg): Likewise.
11211         (aarch64_ld3<mode>_dreg): Likewise.
11212         (aarch64_ld4<mode>_dreg): Likewise.
11213         (aarch64_ld4<mode>_dreg): Likewise.
11214         (aarch64_tbl1<mode>): Likewise.
11215         (aarch64_tbl2v16qi): Likewise.
11216         (aarch64_combinev16qi): Likewise.
11217         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
11218         (aarch64_st2<mode>_dreg): Likewise.
11219         (aarch64_st2<mode>_dreg): Likewise.
11220         (aarch64_st3<mode>_dreg): Likewise.
11221         (aarch64_st3<mode>_dreg): Likewise.
11222         (aarch64_st4<mode>_dreg): Likewise.
11223         (aarch64_st4<mode>_dreg): Likewise.
11224         (*aarch64_simd_ld1r<mode>): Likewise.
11225         (aarch64_frecpe<mode>): Likewise.
11226         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
11227         (aarch64_frecps<mode>): Likewise.
11229 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
11231         * config/arm/iterators.md (V_elem_ch): New.
11232         (q): Likewise.
11233         (VQH_type): Likewise.
11234         * config/arm/arm.md (is_neon_type): New.
11235         (conds): Use is_neon_type.
11236         (anddi3_insn): Update type attribute.
11237         (xordi3_insn): Likewise.
11238         (one_cmpldi2): Likewise.
11239         * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
11240         * config/arm/neon.md (neon_mov): Update type attribute.
11241         (*movmisalign<mode>_neon_store): Likewise.
11242         (*movmisalign<mode>_neon_load): Likewise.
11243         (vec_set<mode>_internal): Likewise.
11244         (vec_set<mode>_internal): Likewise.
11245         (vec_setv2di_internal): Likewise.
11246         (vec_extract<mode>): Likewise.
11247         (vec_extract<mode>): Likewise.
11248         (vec_extractv2di): Likewise.
11249         (*add<mode>3_neon): Likewise.
11250         (adddi3_neon): Likewise.
11251         (*sub<mode>3_neon): Likewise.
11252         (subdi3_neon): Likewise.
11253         (fma<VCVTF:mode>4): Likewise.
11254         (fma<VCVTF:mode>4_intrinsic): Likewise.
11255         (*fmsub<VCVTF:mode>4): Likewise.
11256         (fmsub<VCVTF:mode>4_intrinsic): Likewise.
11257         (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
11258         (ior<mode>3): Likewise.
11259         (and<mode>3): Likewise.
11260         (orn<mode>3_neon): Likewise.
11261         (orndi3_neon): Likewise.
11262         (bic<mode>3_neon): Likewise.
11263         (bicdi3_neon): Likewise.
11264         (xor<mode>3): Likewise.
11265         (one_cmpl<mode>2): Likewise.
11266         (abs<mode>2): Likewise.
11267         (neg<mode>2): Likewise.
11268         (negdi2_neon): Likewise.
11269         (*umin<mode>3_neon): Likewise.
11270         (*umax<mode>3_neon): Likewise.
11271         (*smin<mode>3_neon): Likewise.
11272         (*smax<mode>3_neon): Likewise.
11273         (vashl<mode>3): Likewise.
11274         (vashr<mode>3_imm): Likewise.
11275         (vlshr<mode>3_imm): Likewise.
11276         (ashl<mode>3_signed): Likewise.
11277         (ashl<mode>3_unsigned): Likewise.
11278         (neon_load_count): Likewise.
11279         (ashldi3_neon_noclobber): Likewise.
11280         (ashldi3_neon): Likewise.
11281         (signed_shift_di3_neon): Likewise.
11282         (unsigned_shift_di3_neon): Likewise.
11283         (ashrdi3_neon_imm_noclobber): Likewise.
11284         (lshrdi3_neon_imm_noclobber): Likewise.
11285         (<shift>di3_neon): Likewise.
11286         (widen_ssum<mode>3): Likewise.
11287         (widen_usum<mode>3): Likewise.
11288         (quad_halves_<code>v4si): Likewise.
11289         (quad_halves_<code>v4sf): Likewise.
11290         (quad_halves_<code>v8hi): Likewise.
11291         (quad_halves_<code>v16qi): Likewise.
11292         (reduc_splus_v2di): Likewise.
11293         (neon_vpadd_internal<mode>): Likewise.
11294         (neon_vpsmin<mode>): Likewise.
11295         (neon_vpsmax<mode>): Likewise.
11296         (neon_vpumin<mode>): Likewise.
11297         (neon_vpumax<mode>): Likewise.
11298         (*ss_add<mode>_neon): Likewise.
11299         (*us_add<mode>_neon): Likewise.
11300         (*ss_sub<mode>_neon): Likewise.
11301         (*us_sub<mode>_neon): Likewise.
11302         (neon_vadd<mode>_unspec): Likewise.
11303         (neon_vaddl<mode>): Likewise.
11304         (neon_vaddw<mode>): Likewise.
11305         (neon_vhadd<mode>): Likewise.
11306         (neon_vqadd<mode>): Likewise.
11307         (neon_vaddhn<mode>): Likewise.
11308         (neon_vmul<mode>): Likewise.
11309         (neon_vfms<VCVTF:mode>): Likewise.
11310         (neon_vmlal<mode>): Likewise.
11311         (neon_vmls<mode>): Likewise.
11312         (neon_vmlsl<mode>): Likewise.
11313         (neon_vqdmulh<mode>): Likewise.
11314         (neon_vqdmlal<mode>): Likewise.
11315         (neon_vqdmlsl<mode>): Likewise.
11316         (neon_vmull<mode>): Likewise.
11317         (neon_vqdmull<mode>): Likewise.
11318         (neon_vsub<mode>_unspec): Likewise.
11319         (neon_vsubl<mode>): Likewise.
11320         (neon_vsubw<mode>): Likewise.
11321         (neon_vqsub<mode>): Likewise.
11322         (neon_vhsub<mode>): Likewise.
11323         (neon_vsubhn<mode>): Likewise.
11324         (neon_vceq<mode>): Likewise.
11325         (neon_vcge<mode>): Likewise.
11326         (neon_vcgeu<mode>): Likewise.
11327         (neon_vcgt<mode>): Likewise.
11328         (neon_vcgtu<mode>): Likewise.
11329         (neon_vcle<mode>): Likewise.
11330         (neon_vclt<mode>): Likewise.
11331         (neon_vcage<mode>): Likewise.
11332         (neon_vcagt<mode>): Likewise.
11333         (neon_vtst<mode>): Likewise.
11334         (neon_vabd<mode>): Likewise.
11335         (neon_vabdl<mode>): Likewise.
11336         (neon_vaba<mode>): Likewise.
11337         (neon_vabal<mode>): Likewise.
11338         (neon_vmax<mode>): Likewise.
11339         (neon_vmin<mode>): Likewise.
11340         (neon_vpaddl<mode>): Likewise.
11341         (neon_vpadal<mode>): Likewise.
11342         (neon_vpmax<mode>): Likewise.
11343         (neon_vpmin<mode>): Likewise.
11344         (neon_vrecps<mode>): Likewise.
11345         (neon_vrsqrts<mode>): Likewise.
11346         (neon_vqabs<mode>): Likewise.
11347         (neon_vqneg<mode>): Likewise.
11348         (neon_vcls<mode>): Likewise.
11349         (clz<mode>2): Likewise.
11350         (popcount<mode>2): Likewise.
11351         (neon_vrecpe<mode>): Likewise.
11352         (neon_vrsqrte<mode>): Likewise.
11353         (neon_vget_lane<mode>_sext_internal): Likewise.
11354         (neon_vget_lane<mode>_zext_internal): Likewise.
11355         (neon_vdup_n<mode>): Likewise.
11356         (neon_vdup_n<mode>): Likewise.
11357         (neon_vdup_nv2di): Likewise.
11358         (neon_vdup_lane<mode>_interal): Likewise.
11359         (*neon_vswp<mode>): Likewise.
11360         (neon_vcombine<mode>): Likewise.
11361         (float<mode><V_cvtto>2): Likewise.
11362         (floatuns<mode><V_cvtto>2): Likewise.
11363         (fix_trunc<mode><V_cvtto>2): Likewise.
11364         (fixuns_trunc<mode><V_cvtto>2
11365         (neon_vcvt<mode>): Likewise.
11366         (neon_vcvt<mode>): Likewise.
11367         (neon_vcvtv4sfv4hf): Likewise.
11368         (neon_vcvtv4hfv4sf): Likewise.
11369         (neon_vcvt_n<mode>): Likewise.
11370         (neon_vcvt_n<mode>): Likewise.
11371         (neon_vmovn<mode>): Likewise.
11372         (neon_vqmovn<mode>): Likewise.
11373         (neon_vqmovun<mode>): Likewise.
11374         (neon_vmovl<mode>): Likewise.
11375         (neon_vmul_lane<mode>): Likewise.
11376         (neon_vmul_lane<mode>): Likewise.
11377         (neon_vmull_lane<mode>): Likewise.
11378         (neon_vqdmull_lane<mode>): Likewise.
11379         (neon_vqdmulh_lane<mode>): Likewise.
11380         (neon_vqdmulh_lane<mode>): Likewise.
11381         (neon_vmla_lane<mode>): Likewise.
11382         (neon_vmla_lane<mode>): Likewise.
11383         (neon_vmlal_lane<mode>): Likewise.
11384         (neon_vqdmlal_lane<mode>): Likewise.
11385         (neon_vmls_lane<mode>): Likewise.
11386         (neon_vmls_lane<mode>): Likewise.
11387         (neon_vmlsl_lane<mode>): Likewise.
11388         (neon_vqdmlsl_lane<mode>): Likewise.
11389         (neon_vext<mode>): Likewise.
11390         (neon_vrev64<mode>): Likewise.
11391         (neon_vrev32<mode>): Likewise.
11392         (neon_vrev16<mode>): Likewise.
11393         (neon_vbsl<mode>_internal): Likewise.
11394         (neon_vshl<mode>): Likewise.
11395         (neon_vqshl<mode>): Likewise.
11396         (neon_vshr_n<mode>): Likewise.
11397         (neon_vshrn_n<mode>): Likewise.
11398         (neon_vqshrn_n<mode>): Likewise.
11399         (neon_vqshrun_n<mode>): Likewise.
11400         (neon_vshl_n<mode>): Likewise.
11401         (neon_vqshl_n<mode>): Likewise.
11402         (neon_vqshlu_n<mode>): Likewise.
11403         (neon_vshll_n<mode>): Likewise.
11404         (neon_vsra_n<mode>): Likewise.
11405         (neon_vsri_n<mode>): Likewise.
11406         (neon_vsli_n<mode>): Likewise.
11407         (neon_vtbl1v8qi): Likewise.
11408         (neon_vtbl2v8qi): Likewise.
11409         (neon_vtbl3v8qi): Likewise.
11410         (neon_vtbl4v8qi): Likewise.
11411         (neon_vtbl1v16qi): Likewise.
11412         (neon_vtbl2v16qi): Likewise.
11413         (neon_vcombinev16qi): Likewise.
11414         (neon_vtbx1v8qi): Likewise.
11415         (neon_vtbx2v8qi): Likewise.
11416         (neon_vtbx3v8qi): Likewise.
11417         (neon_vtbx4v8qi): Likewise.
11418         (*neon_vtrn<mode>_insn): Likewise.
11419         (*neon_vzip<mode>_insn): Likewise.
11420         (*neon_vuzp<mode>_insn): Likewise.
11421         (neon_vld1<mode>): Likewise.
11422         (neon_vld1_lane<mode>): Likewise.
11423         (neon_vld1_lane<mode>): Likewise.
11424         (neon_vld1_dup<mode>): Likewise.
11425         (neon_vld1_dup<mode>): Likewise.
11426         (neon_vld1_dupv2di): Likewise.
11427         (neon_vst1<mode>): Likewise.
11428         (neon_vst1_lane<mode>): Likewise.
11429         (neon_vst1_lane<mode>): Likewise.
11430         (neon_vld2<mode>): Likewise.
11431         (neon_vld2<mode>): Likewise.
11432         (neon_vld2_lane<mode>): Likewise.
11433         (neon_vld2_lane<mode>): Likewise.
11434         (neon_vld2_dup<mode>): Likewise.
11435         (neon_vst2<mode>): Likewise.
11436         (neon_vst2<mode>): Likewise.
11437         (neon_vst2_lane<mode>): Likewise.
11438         (neon_vst2_lane<mode>): Likewise.
11439         (neon_vld3<mode>): Likewise.
11440         (neon_vld3qa<mode>): Likewise.
11441         (neon_vld3qb<mode>): Likewise.
11442         (neon_vld3_lane<mode>): Likewise.
11443         (neon_vld3_lane<mode>): Likewise.
11444         (neon_vld3_dup<mode>): Likewise.
11445         (neon_vst3<mode>): Likewise.
11446         (neon_vst3qa<mode>): Likewise.
11447         (neon_vst3qb<mode>): Likewise.
11448         (neon_vst3_lane<mode>): Likewise.
11449         (neon_vst3_lane<mode>): Likewise.
11450         (neon_vld4<mode>): Likewise.
11451         (neon_vld4qa<mode>): Likewise.
11452         (neon_vld4qb<mode>): Likewise.
11453         (neon_vld4_lane<mode>): Likewise.
11454         (neon_vld4_lane<mode>): Likewise.
11455         (neon_vld4_dup<mode>): Likewise.
11456         (neon_vst4<mode>): Likewise.
11457         (neon_vst4qa<mode>): Likewise.
11458         (neon_vst4qb<mode>): Likewise.
11459         (neon_vst4_lane<mode>): Likewise.
11460         (neon_vst4_lane<mode>): Likewise.
11461         (neon_vec_unpack<US>_lo_<mode>): Likewise.
11462         (neon_vec_unpack<US>_hi_<mode>): Likewise.
11463         (neon_vec_<US>mult_lo_<mode>): Likewise.
11464         (neon_vec_<US>mult_hi_<mode>): Likewise.
11465         (neon_vec_<US>shiftl_<mode>): Likewise.
11466         (neon_unpack<US>_<mode>): Likewise.
11467         (neon_vec_<US>mult_<mode>): Likewise.
11468         (vec_pack_trunc_<mode>): Likewise.
11469         (neon_vec_pack_trunc_<mode>): Likewise.
11470         (neon_vabd<mode>_2): Likewise.
11471         (neon_vabd<mode>_3): Likewise.
11473 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
11475         * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
11476         (load_pair): Update type attribute.
11477         (store_pair): Update type attribute.
11478         * config/aarch64/iterators.md (q): New.
11480 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
11482         * config/arm/types.md: Add new types for Neon insns.
11484 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11485             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11486             Sergey Lega  <sergey.s.lega@intel.com>
11487             Anna Tikhonova  <anna.tikhonova@intel.com>
11488             Ilya Tocar  <ilya.tocar@intel.com>
11489             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11490             Ilya Verbin  <ilya.verbin@intel.com>
11491             Kirill Yukhin  <kirill.yukhin@intel.com>
11492             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11494         * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
11495         UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
11496         UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
11497         (rcp14<mode>): New.
11498         (srcp14<mode>): Ditto.
11499         (rsqrt14<mode>): Ditto.
11500         (rsqrt14<mode>): Ditto.
11501         (avx512f_vmscalef<mode>): Ditto.
11502         (avx512f_scalef<mode>): Ditto.
11503         (avx512f_getexp<mode>): Ditto.
11504         (avx512f_sgetexp<mode>): Ditto.
11505         (avx512f_fixupimm<mode>): Ditto.
11506         (avx512f_sfixupimm<mode>): Ditto.
11507         (avx512f_rndscale<mode>): Ditto.
11508         (*avx512er_exp2<mode>): Ditto.
11509         (*avx512er_rcp28<mode>): Ditto.
11510         (avx512er_rsqrt28<mode>): Ditto.
11511         (avx512f_getmant<mode>): Ditto.
11512         (avx512f_getmant<mode>): Ditto.
11513         (avx512f_rndscale<mode>): Fix formatting.
11515 2013-10-15  Martin Jambor  <mjambor@suse.cz>
11517         * ipa-utils.h (ipa_edge_within_scc): Declare.
11518         * ipa-cp.c (edge_within_scc): Moved...
11519         * ipa-utils.c (ipa_edge_within_scc): ...here.  Updated all callers.
11521 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11522             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11523             Sergey Lega  <sergey.s.lega@intel.com>
11524             Anna Tikhonova  <anna.tikhonova@intel.com>
11525             Ilya Tocar  <ilya.tocar@intel.com>
11526             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11527             Ilya Verbin  <ilya.verbin@intel.com>
11528             Kirill Yukhin  <kirill.yukhin@intel.com>
11529             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11531         * config/i386/predicates.md (const_8_to_15_operand): New.
11532         (const_16_to_31_operand): Ditto.
11533         * config/i386/sse.md (V8FI): New.
11534         (V16FI): Ditto.
11535         (reduc_splus_v8df): Ditto.
11536         (reduc_splus_v16sf): Ditto.
11537         (avx512f_vextract<shuffletype>32x4_1): Ditto.
11538         (vec_extract_hi_<mode>): Ditto.
11539         (avx512f_vinsert<shuffletype>32x4_1): Ditto.
11540         (vec_set_lo_<mode>): Ditto.
11541         (vec_set_hi_<mode>): Ditto.
11542         (avx512f_shuf_<shuffletype>64x2_1): Ditto.
11543         (avx512f_shuf_<shuffletype>32x4_1): Ditto.
11544         (avx512f_pshufd_1): Ditto.
11545         (avx512f_broadcast<mode>): Ditto.
11546         (avx512f_broadcast<mode>): Ditto.
11547         (define_split): Split vec_extract_lo into move.
11548         (ssequartermode): Ditto.
11549         (ssedoublemode): Extened with wider modes.
11550         (vec_extract_lo_<mode>): Ditto.
11552 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11553             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11554             Sergey Lega  <sergey.s.lega@intel.com>
11555             Anna Tikhonova  <anna.tikhonova@intel.com>
11556             Ilya Tocar  <ilya.tocar@intel.com>
11557             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11558             Ilya Verbin  <ilya.verbin@intel.com>
11559             Kirill Yukhin  <kirill.yukhin@intel.com>
11560             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11562         * config/i386/predicates.md (register_or_constm1_operand): New.
11563         * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
11564         UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
11565         UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
11566         UNSPEC_SCATTER_PREFETCH
11567         (VI48_512): New.
11568         (avx512f_ucmp<mode>3): Ditto.
11569         (avx512f_vternlog<mode>): Ditto.
11570         (avx512f_align<mode>): Ditto.
11571         (<shift_insn><mode>3): Ditto.
11572         (avx512f_<rotate>v<mode>): Ditto.
11573         (avx512f_<rotate><mode>): Ditto.
11574         (avx512f_eq<mode>3): Ditto.
11575         (avx512f_eq<mode>3_1): Ditto.
11576         (avx512f_gt<mode>3): Ditto.
11577         (avx512f_testm<mode>3): Ditto.
11578         (avx512f_testnm<mode>3): Ditto.
11579         (avx512pf_gatherpf<mode>): Ditto.
11580         (*avx512pf_gatherpf<mode>_mask): Ditto.
11581         (*avx512pf_gatherpf<mode>): Ditto.
11582         (avx512pf_scatterpf<mode>): Ditto.
11583         (*avx512pf_scatterpf<mode>_mask): Ditto.
11584         (*avx512pf_scatterpf<mode>): Ditto.
11585         (avx512f_vec_dup_gpr<mode>): Ditto.
11586         (clz<mode>2): Ditto.
11587         (conflict<mode>): Ditto.
11588         (REDUC_SMINMAX_MODE): Extened with wider modes.
11589         (reduc_<code>_<mode>): Ditto.
11590         (vlshr<mode>3): Ditto.
11591         (vashl<mode>3): Ditto.
11593 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11594             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11595             Sergey Lega  <sergey.s.lega@intel.com>
11596             Anna Tikhonova  <anna.tikhonova@intel.com>
11597             Ilya Tocar  <ilya.tocar@intel.com>
11598             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11599             Ilya Verbin  <ilya.verbin@intel.com>
11600             Kirill Yukhin  <kirill.yukhin@intel.com>
11601             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11603         * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
11604         UNSPEC_SCATTER.
11605         (VI48F_512): New.
11606         (avx512fmaskmode): Ditto.
11607         (bcstscalarsuff): Ditto.
11608         (avx512f_blendm<mode>): Ditto.
11609         (cmp_imm_predicate): Ditto.
11610         (avx512f_cmp<mode>3): Ditto.
11611         (avx512f_vec_dup<mode>): Ditto.
11612         (avx512f_vec_dup_mem<mode>): Ditto.
11613         (avx512f_vpermi2var<mode>3): Ditto.
11614         (avx512f_vpermt2var<mode>3): Ditto.
11615         (vec_init<mode>): Ditto.
11616         (avx512f_gathersi<mode>): Ditto.
11617         (*avx512f_gathersi<mode>): Ditto.
11618         (*avx512f_gathersi<mode>_2): Ditto.
11619         (avx512f_gatherdi<mode>): Ditto.
11620         (*avx512f_gatherdi<mode>): Ditto.
11621         (*avx512f_gatherdi<mode>_2): Ditto.
11622         (avx512f_scattersi<mode>): Ditto.
11623         (*avx512f_scattersi<mode>): Ditto.
11624         (avx512f_scatterdi<mode>): Ditto.
11625         (*avx512f_scatterdi<mode>): Ditto.
11626         (sseintprefix): Extened with wider modes.
11627         (VEC_GATHER_IDXSI): Ditto.
11628         (VEC_GATHER_IDXDI): Ditto.
11629         (VEC_GATHER_SRCDI): Ditto.
11631 2013-10-15  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
11632             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11634         * config/arm/t-aprofile: New file.
11635         * config.gcc: Handle --with-multilib-list option.
11637 2013-10-15  Bernd Schmidt  <bernds@codesourcery.com>
11639         * reload1.c (reloads_unique_chain_p): Ensure that r1 is
11640         the input for r2.
11642 2013-10-15  Richard Biener  <rguenther@suse.de>
11644         * tree-loop-distribution.c (build_empty_rdg): Inline into
11645         single user.
11646         (rdg_flag_vertex): Inline into single user.
11647         (rdg_flag_vertex_and_dependent): Likewise.
11648         (build_rdg_partition_for_vertex): Remove processed bitmap.
11649         (rdg_build_partitions): Simplify.
11651 2013-10-15  Richard Biener  <rguenther@suse.de>
11653         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
11654         Restructure forwarding through conversions and copies to
11655         avoid performing copy-propagation the wrong way.  Adjust
11656         recursion invocations.
11657         (forward_propagate_addr_expr): Add argument stating if we
11658         are recursing from a single-use.
11659         (ssa_forward_propagate_and_combine): Adjust.
11661 2013-10-14  David Malcolm  <dmalcolm@redhat.com>
11663         * dumpfile.h (gcc::dump_manager): New class, to hold state
11664         relating to dumpfile management.
11665         (get_dump_file_name): Remove in favor of method of dump_manager.
11666         (dump_initialized_p): Likewise.
11667         (dump_start): Likewise.
11668         (dump_finish): Likewise.
11669         (dump_switch_p): Likewise.
11670         (dump_register): Likewise.
11671         (get_dump_file_info): Likewise.
11672         * context.c (gcc::context::context): Construct the dump_manager
11673         instance.
11674         * context.h (gcc::context::get_dumps): New.
11675         (gcc::context::m_dumps): New.
11676         * coverage.c (coverage_init): Port to dump_manager API.
11677         * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
11678         (extra_dump_files_in_use): Likewise.
11679         (extra_dump_files_alloced): Likewise.
11680         (gcc::dump_manager::dump_manager): New.
11681         (dump_register): Convert to...
11682         (gcc::dump_manager::dump_register): ...method, replacing
11683         function-static next_dump with m_next_dump field.
11684         (get_dump_file_info): Convert to...
11685         (gcc::dump_manager::get_dump_file_info): ...method.
11686         (get_dump_file_name): Convert to...
11687         (gcc::dump_manager::get_dump_file_name): ...method.
11688         (dump_start): Convert to...
11689         (gcc::dump_manager::dump_start): ...method.
11690         (dump_finish): Convert to...
11691         (gcc::dump_manager::dump_finish): ...method.
11692         (dump_begin): Replace body with...
11693         (gcc::dump_manager::dump_begin): ...new method.
11694         (dump_phase_enabled_p): Convert to...
11695         (gcc::dump_manager::dump_phase_enabled_p): ...method.
11696         (dump_phase_enabled_p): Convert to...
11697         (gcc::dump_manager::dump_phase_enabled_p): ...method.
11698         (dump_initialized_p):  Convert to...
11699         (gcc::dump_manager::dump_initialized_p): ...method.
11700         (dump_flag_name): Replace body with...
11701         (gcc::dump_manager::dump_flag_name): ...new method.
11702         (dump_enable_all): Convert to...
11703         (gcc::dump_manager::dump_enable_all): ...new method.
11704         (opt_info_enable_passes): Convert to...
11705         (gcc::dump_manager::opt_info_enable_passes): ...new method.
11706         (dump_switch_p_1): Convert to...
11707         (gcc::dump_manager::dump_switch_p_1): ...new method.
11708         (dump_switch_p):  Convert to...
11709         (gcc::dump_manager::dump_switch_p): ...new method.
11710         (opt_info_switch_p): Port to dump_manager API.
11711         (enable_rtl_dump_file): Likewise.
11712         * opts-global.c (handle_common_deferred_options): Port to new
11713         dump_manager API.
11714         * passes.c (pass_manager::finish_optimization_passes): Likewise.
11715         (pass_manager::register_one_dump_file): Likewise.
11716         (pass_manager::register_pass): Likewise.
11717         (pass_init_dump_file): Likewise.
11718         (pass_fini_dump_file): Likewise.
11719         * statistics.c (statistics_early_init): Likewise.
11721 2013-10-14  Richard Biener  <rguenther@suse.de>
11723         * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
11724         iterative_hash_canonical_type, gimple_canonical_type_hash,
11725         gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
11726         gimple_register_canonical_type, print_gimple_types_stats,
11727         free_gimple_type_tables): Move to lto/lto.c
11728         (gt-gimple.h): Do not include.
11729         * gimple.h (gimple_register_canonical_type,
11730         print_gimple_types_stats, free_gimple_type_tables): Remove.
11731         * Makefile.in (GTFILES): Remove gimple.c.
11733 2013-10-14  Travis Snoozy  <quandary@remstate.com>
11735         PR target/58716
11736         * config/msp430/msp430.c (msp430_option_override): Correct thinko
11737         scanning for msp430x targets.
11739 2013-10-14  Eric Botcazou  <ebotcazou@adacore.com>
11741         PR bootstrap/58509
11742         * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
11743         (registers_ok_for_ldd_peep): Move around.
11744         * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
11745         * config/sparc/sparc.md (widening peepholes): Use it.
11747 2013-10-14  Richard Biener  <rguenther@suse.de>
11749         PR middle-end/58712
11750         PR middle-end/55358
11751         * gimple.c (iterative_hash_canonical_type): Make sure to
11752         record the hash into the correct hashtable slot.
11754 2013-10-13  Eric Botcazou  <ebotcazou@adacore.com>
11756         PR rtl-optimization/58662
11757         * combine.c (try_combine): Take into account death nodes on I2 when
11758         splitting a PARALLEL of two independent SETs.  Fix dump message.
11760 2013-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
11762         PR target/51244
11763         * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
11764         * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
11765         extra_objs.
11766         * config/sh/t-sh (sh_treg_combine.o): New entry.
11767         * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
11768         implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
11769         (register_sh_passes): New function.  Register sh_treg_combine pass.
11770         (sh_option_override): Invoke it.
11771         (sh_canonicalize_comparison): Handle op0_preserve_value.
11772         * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
11773         opportunities.  Canonicalize branch condition.
11774         (nott): Allow only if pseudos can be created for non-SH2A.
11776 2013-10-12  H.J. Lu  <hongjiu.lu@intel.com>
11778         PR target/58690
11779         * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
11780         (ix86_expand_movmem): Replace copy_addr_to_reg with
11781         ix86_copy_addr_to_reg.
11782         (ix86_expand_setmem): Likewise.
11784 2013-10-12  Alexander Monakov  <amonakov@ispras.ru>
11786         * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
11787         provided by ix86_fp_compare_mode instead of CCFPUmode.
11789 2013-10-12  James Greenhalgh  <james.greenhalgh@arm.com>
11791         * config/aarch64/arm_neon.h
11792         (vtbx<1,3>_<psu>8): Fix register constriants.
11794 2013-10-11  Jeff Law  <law@redhat.com>
11796         PR tree-optimization/58640
11797         * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
11798         threading paths that cross over two loop entry points.
11800 2013-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11802         * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
11803         handle vector float as well.
11804         (*vsx_le_perm_load_v4si): Likewise.
11805         (*vsx_le_perm_store_v2di): Likewise.
11806         (*vsx_le_perm_store_v4si): Likewise.
11808 2013-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11810         * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
11811         directly to circumvent subtract from splat{31} workaround.
11812         * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
11813         prototype.
11814         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
11815         * config/rs6000/altivec.md (define_c_enum "unspec"): Add
11816         UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
11817         (altivec_vperm_<mode>): Convert to define_insn_and_split to
11818         separate big and little endian logic.
11819         (*altivec_vperm_<mode>_internal): New define_insn.
11820         (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
11821         separate big and little endian logic.
11822         (*altivec_vperm_<mode>_uns_internal): New define_insn.
11823         (vec_permv16qi): Add little endian logic.
11825 2013-10-11  Marc Glisse  <marc.glisse@inria.fr>
11827         * doc/extend.texi (returns_nonnull): Remove arguments.
11829 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11830             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11831             Sergey Lega  <sergey.s.lega@intel.com>
11832             Anna Tikhonova  <anna.tikhonova@intel.com>
11833             Ilya Tocar  <ilya.tocar@intel.com>
11834             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11835             Ilya Verbin  <ilya.verbin@intel.com>
11836             Kirill Yukhin  <kirill.yukhin@intel.com>
11837             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11839         * config/i386/sse.md (VI48F_256_512): New.
11840         (avx2_permvar<mode>): Change to ...
11841         (<avx2_avx512f>_permvar<mode>): This.
11843 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11844             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11845             Sergey Lega  <sergey.s.lega@intel.com>
11846             Anna Tikhonova  <anna.tikhonova@intel.com>
11847             Ilya Tocar  <ilya.tocar@intel.com>
11848             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11849             Ilya Verbin  <ilya.verbin@intel.com>
11850             Kirill Yukhin  <kirill.yukhin@intel.com>
11851             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11853         * config/i386/i386.c (bdesc_args): Change corresponding pattern for
11854         __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
11855         * config/i386/sse.md (VI4_AVX): New.
11856         (sf2simodelower): Ditto.
11857         (sse2_cvtps2dq): Change to ...
11858         (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
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_512): New.
11871         (VI_512): Ditto.
11872         (vcond<V_512:mode><VF_512:mode>): Ditto.
11873         (vcond<V_512:mode><VI_512:mode>): Ditto.
11874         (vcondu<V_512:mode><VI_512:mode>): Ditto.
11876 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11877             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11878             Sergey Lega  <sergey.s.lega@intel.com>
11879             Anna Tikhonova  <anna.tikhonova@intel.com>
11880             Ilya Tocar  <ilya.tocar@intel.com>
11881             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11882             Ilya Verbin  <ilya.verbin@intel.com>
11883             Kirill Yukhin  <kirill.yukhin@intel.com>
11884             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11886         * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
11887         * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
11888         (FMAMODE): Ditto.
11889         (fma<mode>4): Removed condition.
11890         (fms<mode>4): Ditto.
11891         (fnma<mode>4): Ditto.
11892         (fnms<mode>4): Ditto.
11893         (fma4i_fmadd_<mode>): Ditto.
11894         (*fma_fmadd_<mode>): Ditto.
11895         (*fma_fmsub_<mode>): Ditto.
11896         (*fma_fnmadd_<mode>): Ditto.
11897         (*fma_fnmsub_<mode>): Ditto.
11898         (fmaddsub_<mode>): Allow for TARGET_AVX512F.
11899         (*fma_fmaddsub_<mode>): Ditto.
11900         (*fma_fmsubadd_<mode>): Ditto.
11901         (*fmai_fmadd_<mode>): Ditto.
11902         (*fmai_fmsub_<mode>): Ditto.
11903         (*fmai_fnmadd_<mode>): Ditto.
11904         (*fmai_fnmsub_<mode>): Ditto.
11906 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11907             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11908             Sergey Lega  <sergey.s.lega@intel.com>
11909             Anna Tikhonova  <anna.tikhonova@intel.com>
11910             Ilya Tocar  <ilya.tocar@intel.com>
11911             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11912             Ilya Verbin  <ilya.verbin@intel.com>
11913             Kirill Yukhin  <kirill.yukhin@intel.com>
11914             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11916         * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
11917         (VI124_256): Changed to ...
11918         (VI124_256_48_512): This.
11919         (ssepackmode): Extended with wider modes.
11920         (<code><mode>3): Changed iterator.
11921         (*avx2_<code><mode>3): Ditto.
11922         (vec_pack_trunc_<mode>): Ditto.
11924 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11925             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11926             Sergey Lega  <sergey.s.lega@intel.com>
11927             Anna Tikhonova  <anna.tikhonova@intel.com>
11928             Ilya Tocar  <ilya.tocar@intel.com>
11929             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11930             Ilya Verbin  <ilya.verbin@intel.com>
11931             Kirill Yukhin  <kirill.yukhin@intel.com>
11932             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11934         * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
11935         (VI8F_256_512): Ditto.
11936         (abs<mode>2): Changed iterator.
11937         (avx2_perm<mode>): Changed to ...
11938         (<avx2_avx512f>_perm<mode>): This.
11939         (avx2_perm<mode>_1): Changed to ...
11940         (<avx2_avx512f>_perm<mode>_1): This.
11942 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11943             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11944             Sergey Lega  <sergey.s.lega@intel.com>
11945             Anna Tikhonova  <anna.tikhonova@intel.com>
11946             Ilya Tocar  <ilya.tocar@intel.com>
11947             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11948             Ilya Verbin  <ilya.verbin@intel.com>
11949             Kirill Yukhin  <kirill.yukhin@intel.com>
11950             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11952         * config/i386/sse.md (VI48_AVX512F): New.
11953         (VI48_AVX2): Changed to ...
11954         (VI48_AVX2_48_AVX512F): This.
11955         (avx2_ashrv<mode>): Changed to ...
11956         (<avx2_avx512f>_ashrv<mode>): This.
11957         (avx2_<shift_insn>v<mode>): Changed to ...
11958         (<avx2_avx512f>_<shift_insn>v<mode>): This.
11960 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11961             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11962             Sergey Lega  <sergey.s.lega@intel.com>
11963             Anna Tikhonova  <anna.tikhonova@intel.com>
11964             Ilya Tocar  <ilya.tocar@intel.com>
11965             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11966             Ilya Verbin  <ilya.verbin@intel.com>
11967             Kirill Yukhin  <kirill.yukhin@intel.com>
11968             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11970         * config/i386/sse.md (VI4_AVX512F): New.
11971         (VI8_AVX2_AVX512F): Ditto.
11972         (mul<mode>3): Extended with wider modes.
11973         (*<sse4_1_avx2>_mul<mode>3): Ditto.
11974         (mul<mode>3): Ditto.
11975         (vec_widen_<s>mult_odd_<mode>): Ditto.
11977 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11978             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11979             Sergey Lega  <sergey.s.lega@intel.com>
11980             Anna Tikhonova  <anna.tikhonova@intel.com>
11981             Ilya Tocar  <ilya.tocar@intel.com>
11982             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11983             Ilya Verbin  <ilya.verbin@intel.com>
11984             Kirill Yukhin  <kirill.yukhin@intel.com>
11985             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11987         * config/i386/sse.md (VI2_AVX512F): New.
11988         (VI124_AVX512F): Ditto.
11989         (sseunpackmode): Extended with wider modes.
11990         (sseunpackfltmode): Ditto.
11991         (vec_unpacks_float_hi_<mode>): Ditto.
11992         (vec_unpacks_float_lo_<mode>): Ditto.
11993         (vec_unpacku_float_hi_<mode>): Ditto.
11994         (vec_unpacku_float_lo_<mode>): Ditto.
11995         (vec_unpacks_lo_<mode>): Ditto.
11996         (vec_unpacks_hi_<mode>): Ditto.
11997         (vec_unpacku_lo_<mode>): Ditto.
11998         (vec_unpacku_hi_<mode>): Ditto.
12000 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12001             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12002             Sergey Lega  <sergey.s.lega@intel.com>
12003             Anna Tikhonova  <anna.tikhonova@intel.com>
12004             Ilya Tocar  <ilya.tocar@intel.com>
12005             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12006             Ilya Verbin  <ilya.verbin@intel.com>
12007             Kirill Yukhin  <kirill.yukhin@intel.com>
12008             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12010         * config/i386/i386.md (multdiv): New.
12011         (multdiv_mnemonic): Ditto.
12012         * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
12013         (<sse>_vm<multdiv_mnemonic><mode>3): This.
12014         (<sse>_vmdiv<mode>3): Removed.
12016 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12017             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12018             Sergey Lega  <sergey.s.lega@intel.com>
12019             Anna Tikhonova  <anna.tikhonova@intel.com>
12020             Ilya Tocar  <ilya.tocar@intel.com>
12021             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12022             Ilya Verbin  <ilya.verbin@intel.com>
12023             Kirill Yukhin  <kirill.yukhin@intel.com>
12024             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12026         * config/i386/sse.md (V): Extended with wider modes.
12027         (VF2): Ditto.
12028         (ssehalfvecmode): Ditto.
12029         (i128): Ditto.
12030         (ssepackfltmode): Ditto.
12031         (avx_vec_concat<mode>): Ditto.
12032         (V_256_512): New iterator.
12033         (VF2_512_256): Ditto.
12034         (si2dfmode): New attribute.
12035         (si2dfmodelower): Ditto.
12036         (sf2dfmode): Ditto.
12037         (concat_tg_mode): Ditto.
12038         (floatv4siv4df2): Changed to ...
12039         (float<si2dfmodelower><mode>2): This.
12040         (avx_cvtps2pd256): Changed to ...
12041         (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
12042         (vec_pack_trunc_v4df): Changed to ...
12043         (vec_pack_trunc_<mode>): This.
12044         (avx_vpermil<mode>): Changed to ...
12045         (<sse2_avx_avx512f>_vpermil<mode>): This.
12046         (<fixsuffix>fix_truncv8dfv8si2): New.
12047         (vec_pack_sfix_trunc_v8df): Ditto.
12048         (avx512f_rndscale<mode>): Ditto.
12049         (avx512f_roundpd512): Ditto.
12050         (vec_pack_ufix_trunc_<mode>): Updated iterator.
12052 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12053             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12054             Sergey Lega  <sergey.s.lega@intel.com>
12055             Anna Tikhonova  <anna.tikhonova@intel.com>
12056             Ilya Tocar  <ilya.tocar@intel.com>
12057             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12058             Ilya Verbin  <ilya.verbin@intel.com>
12059             Kirill Yukhin  <kirill.yukhin@intel.com>
12060             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12062         * config/i386/i386.md (any_fix): New iterator.
12063         (fixsuffix): New attribute.
12064         * config/i386/sse.md (VF1): Extened with wider modes.
12065         (VI): Ditto.
12066         (VI_AVX2): Ditto.
12067         (VI8): Ditto.
12068         (sseintvecmodelower): Ditto.
12069         (ssescalarmode): Ditto.
12070         (ssescalarnum): Ditto.
12071         (VF1_128_256): New.
12072         (ssexmmmode): Ditto.
12073         (<fixsuffix>fix_truncv16sfv16si2): Ditto.
12074         (<sse>_rcp<mode>2): Change iterator.
12075         (rsqrt<mode>2): Ditto.
12076         (<sse>_rsqrt<mode>2): Ditto.
12077         (avx2_vec_dup<mode>): Ditto.
12078         (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
12079         (round<mode>2_sfix): Ditto.
12080         (avx2_pbroadcast<mode>): Ditto.
12081         (*andnot<mode>3): Handle XI mode.
12082         (*<code><mode>3): Ditto.
12083         (AVXTOSSEMODE): Removed.
12084         (avx_vpermil<mode>): Changed to ...
12085         (<sse2_avx_avx512f>_vpermil<mode>): This.
12087 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12088             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12089             Sergey Lega  <sergey.s.lega@intel.com>
12090             Anna Tikhonova  <anna.tikhonova@intel.com>
12091             Ilya Tocar  <ilya.tocar@intel.com>
12092             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12093             Ilya Verbin  <ilya.verbin@intel.com>
12094             Kirill Yukhin  <kirill.yukhin@intel.com>
12095             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12097         * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
12098         (<sse>_comi): Ditto.
12099         (<sse>_ucomi): Ditto.
12100         (sse_cvtss2siq_2): Ditto.
12101         (sse2_cvtsd2si): Ditto.
12102         (sse2_cvtsd2siq): Ditto.
12103         (sse2_cvttsd2si): Ditto.
12104         (sse2_cvttsd2siq): Ditto.
12105         (<shift_insn><mode>3): Ditto.
12106         (sse2_cvtsi2sdq): Update constraint and prefix.
12107         (sse_cvtsi2ss): Update prefix.
12108         (sse_cvtsi2ssq): Ditto.
12110 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
12112         * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
12113         ignore internal calls.
12115 2013-10-11  Richard Biener  <rguenther@suse.de>
12117         * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
12118         and (ab) for SSA_NAMEs.  Mark INTEGER_CSTs with (OVF) if
12119         TREE_OVERFLOW is set.
12121 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
12123         * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
12125         * gimple.c: GIMPLE statements have subcodes, not sub-codes.
12126         * gimple.h: Likewise.
12128         * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
12130         * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
12131         macros.
12133         * doc/gimple.texi (is_gimple_omp): Move into the correct section.
12135         * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
12136         * configure: Regenerate.
12138 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
12140         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
12141         and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
12142         formatting fixes, use pp_colon instead of pp_character (..., ':'),
12143         similarly pp_right_paren.
12144         (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
12145         OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
12146         allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
12147         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
12148         clauses.
12149         (omp_declare_simd_clauses_equal,
12150         omp_remove_redundant_declare_simd_attrs): New functions.
12151         (attribute_value_equal): Use omp_declare_simd_clauses_equal.
12152         (walk_tree_1): Handle new OpenMP 4.0 clauses.
12153         * tree.h (OMP_LOOP_CHECK): Define.
12154         (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
12155         OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
12156         (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
12157         OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
12158         OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
12159         OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
12160         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
12161         OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
12162         OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
12163         OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
12164         OMP_CLAUSE_SIMDLEN_EXPR): Define.
12165         (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
12166         (omp_remove_redundant_declare_simd_attrs): New prototype.
12167         * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
12168         GIMPLE_OMP_TEAMS): New codes.
12169         (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
12170         * omp-low.c (struct omp_context): Add cancel_label and cancellable
12171         fields.
12172         (target_nesting_level): New variable.
12173         (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
12174         OMP_CLAUSE_DIST_SCHEDULE.  Don't fallback to library implementation
12175         for collapse > 1 static schedule unless ordered.
12176         (get_ws_args_for): Add par_stmt argument.  Handle combined loops.
12177         (determine_parallel_type): Adjust get_ws_args_for caller.
12178         (install_var_field): Handle mask & 4 for double indirection.
12179         (scan_sharing_clauses): Ignore shared clause on teams construct.
12180         Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
12181         (create_omp_child_function): If inside target or declare target
12182         constructs, set "omp declare target" attribute on the child function.
12183         (find_combined_for): New function.
12184         (scan_omp_parallel): Handle combined loops.
12185         (scan_omp_target, scan_omp_teams): New functions.
12186         (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
12187         restrictions and set ctx->cancellable for cancellable constructs.
12188         (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
12189         selected builtin calls.  Handle GIMPLE_OMP_TASKGROUP,
12190         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
12191         (build_omp_barrier): Add lhs argument, return gimple rather than tree.
12192         (omp_clause_aligned_alignment): New function.
12193         (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
12194         (lower_rec_input_clauses): Add FD argument.  Ignore shared clauses
12195         on teams constructs.  Handle user defined reductions and new
12196         OpenMP 4.0 clauses.
12197         (lower_reduction_clauses): Don't set placeholder to address of ref
12198         if it has already the right type.
12199         (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
12200         (expand_parallel_call): Use the new non-_start suffixed builtins,
12201         handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
12202         and GOMP_parallel_end after the call.
12203         (expand_task_call): Handle OMP_CLAUSE_DEPEND.
12204         (expand_omp_for_init_counts): Handle combined loops.
12205         (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
12206         loops.
12207         (expand_omp_for_generic): Likewise.  Use GOMP_loop_end_cancel at the
12208         end of cancellable loops.
12209         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
12210         Likewise.  Handle collapse > 1 loops.
12211         (expand_omp_simd): Handle combined loops.
12212         (expand_omp_for): Add inner_stmt argument, adjust callers of
12213         expand_omp_for* functions, use expand_omp_for_static*chunk even
12214         for collapse > 1 unless ordered.
12215         (expand_omp_sections): Use GOMP_sections_end_cancel at the end
12216         of cancellable sections.
12217         (expand_omp_single): Remove need_barrier variable, just rely on
12218         gimple_omp_return_nowait_p.  Adjust build_omp_barrier caller.
12219         (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
12220         (expand_omp_atomic_load, expand_omp_atomic_store,
12221         expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
12222         (expand_omp_target): New function.
12223         (expand_omp): Handle combined loops.  Handle GIMPLE_OMP_TASKGROUP,
12224         GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
12225         (build_omp_regions_1): Immediately close region for
12226         GF_OMP_TARGET_KIND_UPDATE.
12227         (maybe_add_implicit_barrier_cancel): New function.
12228         (lower_omp_sections): Adjust lower_rec_input_clauses caller.  Handle
12229         cancellation.
12230         (lower_omp_single): Likewise.  Add clobber after the barrier.
12231         (lower_omp_taskgroup): New function.
12232         (lower_omp_for): Handle combined loops.  Adjust
12233         lower_rec_input_clauses caller.  Handle cancellation.
12234         (lower_depend_clauses): New function.
12235         (lower_omp_taskreg): Lower depend clauses.  Adjust
12236         lower_rec_input_clauses caller.  Add clobber after the call.  Handle
12237         cancellation.
12238         (lower_omp_target, lower_omp_teams): New functions.
12239         (lower_omp_1): Handle cancellation.  Handle GIMPLE_OMP_TASKGROUP,
12240         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
12241         and GOMP_cancellation_point calls.
12242         (lower_omp): Fold stmts inside of target region.
12243         (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
12244         GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
12245         * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
12246         (BT_FN_VOID_OMPFN_PTR_UINT,
12247         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
12248         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
12249         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
12250         (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
12251         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
12252         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
12253         BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
12254         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
12255         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
12256         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
12257         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
12258         call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
12259         BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
12260         BUILT_IN_GOMP_SECTIONS_END_CANCEL.  Don't handle
12261         BUILT_IN_GOMP_PARALLEL_END.
12262         * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
12263         GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
12264         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
12265         GF_OMP_FOR_KIND_DISTRIBUTE.
12266         (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
12267         (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
12268         (dump_gimple_omp_return): Print lhs if it has any.
12269         (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
12270         gimple_omp_atomic_seq_cst_p.
12271         (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
12272         and GIMPLE_OMP_TEAMS.
12273         * langhooks.c (lhd_omp_mappable_type): New function.
12274         * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
12275         * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
12276         hook.
12277         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
12278         GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
12279         (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
12280         (struct gimplify_omp_ctx): Add combined_loop field.
12281         (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
12282         on stmts inside of target region.
12283         (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
12284         (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
12285         ORT_TARGET and ORT_TARGET_DATA.
12286         (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
12287         Handle GOVD_MAP.
12288         (omp_notice_threadprivate_variable): Complain about threadprivate
12289         variables in target region.
12290         (omp_notice_variable): Complain about vars with non-mappable type
12291         in target region.  Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
12292         (omp_check_private): Ignore ORT_TARGET* regions.
12293         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
12294         gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
12295         (find_combined_omp_for): New function.
12296         (gimplify_omp_for): Handle gimplification of combined loops.
12297         (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
12298         OMP_TEAMS.
12299         (gimplify_omp_target_update): New function.
12300         (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
12301         (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
12302         OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
12303         (gimplify_body): If fndecl has "omp declare target" attribute, add
12304         implicit ORT_TARGET context around it.
12305         * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
12306         OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
12307         * tree-nested.c (convert_nonlocal_reference_stmt,
12308         convert_local_reference_stmt, convert_gimple_call): Handle
12309         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12310         * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
12311         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
12312         instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
12313         (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
12314         BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
12315         BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
12316         BUILT_IN_GOMP_LOOP_END_CANCEL,
12317         BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
12318         BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
12319         BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
12320         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
12321         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
12322         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
12323         BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
12324         BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
12325         (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
12326         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
12327         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
12328         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
12329         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
12330         BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
12331         * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
12332         Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12333         * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
12334         gimple_build_omp_teams): New functions.
12335         (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
12336         GIMPLE_OMP_TASKGROUP.  Walk optional lhs on GIMPLE_OMP_RETURN.
12337         (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
12338         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12339         * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
12340         GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
12341         GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
12342         GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
12343         GF_OMP_ATOMIC_SEQ_CST): New.
12344         (gimple_build_omp_taskgroup, gimple_build_omp_target,
12345         gimple_build_omp_teams): New prototypes.
12346         (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
12347         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12348         (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
12349         GIMPLE_OMP_SINGLE as end of range.
12350         (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
12351         gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
12352         gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
12353         gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
12354         gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
12355         gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
12356         gimple_omp_target_kind, gimple_omp_target_set_kind,
12357         gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
12358         gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
12359         gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
12360         gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
12361         gimple_omp_teams_set_clauses): New inlines.
12362         (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
12363         and GIMPLE_OMP_TASKGROUP.
12364         * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
12365         (enum omp_clause_depend_kind, enum omp_clause_map_kind,
12366         enum omp_clause_proc_bind_kind): New.
12367         (union omp_clause_subcode): Add depend_kind, map_kind and
12368         proc_bind_kind fields.
12369         * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
12370         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12371         * langhooks-def.h (lhd_omp_mappable_type): New prototype.
12372         (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
12373         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
12375 2013-10-10  Teresa Johnson  <tejohnson@google.com>
12377         * predict.c (tree_estimate_probability): Add new parameter
12378         for estimate_bb_frequencies.
12379         (estimate_bb_frequencies): Add new parameter to force estimation.
12380         (rebuild_frequencies): When max frequency in function is small,
12381         recompute counts from frequencies.
12382         * predict.h (estimate_bb_frequencies): New parameter.
12384 2013-10-10  David Malcolm  <dmalcolm@redhat.com>
12386         * ipa-inline.c (ipa_inline): Fix leak of "order" when
12387         optimizations are disabled.
12389 2013-10-10  David Malcolm  <dmalcolm@redhat.com>
12391         * coverage.c (coverage_finish): Fix leak of da_file_name.
12393 2013-10-10  Jan Hubicka  <jh@suse.cz>
12395         * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
12396         for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
12397         Bobcat and generic.
12399 2013-10-10  Jakub Jelinek  <jakub@redhat.com>
12401         PR middle-end/58670
12402         * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
12403         if any labels are in FALLTHRU_BB, use a special label emitted
12404         immediately after the asm goto insn rather than label_rtx
12405         of the LABEL_DECL.
12406         (expand_asm_stmt): Adjust caller.
12407         * cfgrtl.c (commit_one_edge_insertion): Force splitting of
12408         edge if the last insn in predecessor is a jump with single successor,
12409         but it isn't simplejump_p.
12411 2013-10-10  Richard Biener  <rguenther@suse.de>
12413         PR tree-optimization/58656
12414         * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
12416 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
12418         * gimplify.c: Include expr.h and tm_p.h for targets with special
12419         va-arg padding requirements.
12421 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
12423         * tree-flow.h: Move some prototypes to gimple.h.
12424         (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
12425         * gimple.h: Relocate some prototypes from tree-flow.h
12426         * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
12427         Move to gimplify.c.
12428         * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
12429         (build_va_arg_indirect_ref): Relocate and make static.
12430         (std_gimplify_va_arg_expr): Relocate here.
12431         * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
12432         * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
12434 2013-10-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12436         * doc/md.texi: Document the mnemonic attribute.
12438 2013-10-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12440         PR target/57377
12441         * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
12442         (set_attr_alternative x ...) when searching for user defined
12443         mnemonic attribute.
12445 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
12447         * config/aplha/alpha.c: Add gimple-ssa.h to include list.
12449 2013-10-09  Easwaran Raman <eraman@google.com>
12451         * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
12452         * cfgexpand.c (defer_stack_allocation): ...use here
12453         * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
12455 2013-10-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
12457         * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
12458         (operand_equal_for_value_replacement): New function, extracted from
12459         value_replacement and enhanced to catch more cases.
12460         (value_replacement): Use operand_equal_for_value_replacement.
12462 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
12464         * loop-doloop.c (doloop_modify, doloop_optimize): Use
12465         get_max_loop_iterations.
12467 2013-10-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12469         * config/arm/aarch-common.c (arm_early_load_addr_dep):
12470         Place comment above function.
12472 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
12474         * tree-flow.h: Remove all remaining prototypes, enums and structs that
12475         are not related to tree-cfg.c.
12476         * tree-ssa-address.h: New file.  Relocate prototypes.
12477         * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
12478         (addr_for_mem_ref): New.  Combine call to get_address_description and
12479         return addr_for_mem_ref.
12480         * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
12481         * tree-ssa-live.h: Adjust prototypes.
12482         * passes.c: Include tree-ssa-live.h.
12483         * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
12484         * graphite.c (graphite_transform_loops): Make static.
12485         (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
12486         make_pass_graphite, pass_data_graphite_transforms,
12487         make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
12488         * ipa-pure-const.c (warn_function_noreturn): Make static.
12489         (execute_warn_function_noreturn, gate_warn_function_noreturn,
12490         class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
12491         Relocate from tree-cfg.c
12492         * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
12493         static.
12494         (execute_warn_function_noreturn, gate_warn_function_noreturn,
12495         class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
12496         Move to ipa-pure-const.c.
12497         (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
12498         Relocate from tree-optimize.c.
12499         * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
12500         make_pass_fixup_cfg): Move to tree-cfg.c.
12501         * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
12502         Relocate some prototypes.
12503         * tree-data-ref.h (tree_check_data_deps) Add prototype.
12504         * tree-dump.c (dump_function_to_file): Remove prototype.
12505         Add tree-flow.h to the include file.
12506         * tree-dump.h: Remove prototype.
12507         * tree-parloops.h: New File.  Add prototypes.
12508         * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
12509         pass_data_parallelize_loops,  make_pass_parallelize_loops): Relocate
12510         from tree-ssa-loop.c.
12511         * tree-predcom.c (run_tree_predictive_commoning,
12512         gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
12513         Relocate here from tree-ssa-loop.c.
12514         * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
12515         ssa_name_values.release ().
12516         * tree-ssa-threadedge.h: New File.  Relocate prototypes here.
12517         (ssa_name_values): Relocate from tree-flow.h.
12518         * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
12519         * tree-ssa-loop.c (run_tree_predictive_commoning,
12520         gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
12521         graphite_transforms, gate_graphite_transforms, pass_data_graphite,
12522         make_pass_graphite, pass_data_graphite_transforms,
12523         make_pass_graphite_transforms, gate_tree_parallelize_loops,
12524         tree_parallelize_loops, pass_data_parallelize_loops,
12525         make_pass_parallelize_loops): Move to other files.
12526         * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
12527         moved here.
12528         * tree.h: Remove prototypes from tree-address.c.
12530 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
12532         * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
12533         (struct int_tree_map): Move to tree-hasher.h
12534         (SCALE, LABEL, PERCENT): Move to gimple.h
12535         * tree-flow-inline.h: Delete.  Move functions to other files.
12536         (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
12537         * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
12538         (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
12539         * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
12540         inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
12541         (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
12542         * tree-hasher.h: Don't include tree-flow.h.
12543         (struct int_tree_map): Relocate from tree-flow.h.
12544         * tree-sra.c (contains_view_convert_expr_p): Relocate from
12545         tree-flow-inline.h and make static.
12546         * tree-ssa-alias.h (ranges_overlap_p): Relocate from
12547         tree-flow-inline.h.
12548         * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
12549         tree-flow-inline.h and make static.
12550         * tree.h (is_global_var, may_be_aliased): Relocate from
12551         tree-flow-inline.h.
12552         * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
12553         * value-prof.c: No longer include tree-flow-inline.h.
12554         * tree-switch-conversion.c: No longer include tree-flow-inline.h.
12556 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
12558         * tree-flow.h: Move some protoypes.  Include new tree-ssa-loop.h.
12559         (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
12560         (enum move_pos): Move to tree-ssa-loop-im.h
12561         * cfgloop.h: Move some prototypes.
12562         (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
12563         * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
12564         * tree-ssa-loop.h: New File.  Include other tree-ssa-loop-*.h files.
12565         (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
12566         (loop_containing_stmt): Relocate from tree-flow-inline.h.
12567         * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
12568         * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
12569         (enum move_pos): Relocate here.
12570         (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
12571         tree-ssa-loop.c.
12572         (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
12573         (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
12574         make_pass_lim): Relocate here from tree-ssa-loop.c.
12575         * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
12576         tree-ssa-loop.c.
12577         (loop_edge_to_cancel, unloop_loops): Make static.
12578         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
12579         make_pass_iv_canon): Relocate from tree-ssa-loop.c.
12580         (tree_complete_unroll, gate_tree_complete_unroll,
12581         pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
12582         (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
12583         pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
12584         * tree-ssa-loop-ivopts.c: Remove local prototypes.
12585         (stmt_invariant_in_loop_p): Remove unused function.
12586         * tree-ssa-loop-ivopts.h: New file.  Add prototypes.
12587         * tree-ssa-loop-manip.h: New file.  Add prototypes.
12588         * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
12589         (gcov_type_to_double_int): Move to cfgloop.h.
12590         (double_int_cmp, bound_index,
12591         estimate_numbers_of_iterations_loop): Make static.
12592         (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
12593         (max_loop_iterations): Factor out get_max_loop_iterations.
12594         (estimated_loop_iterations_int, max_stmt_executions_int): Move to
12595         cfgloop.c.
12596         * tree-ssa-loop-niter.h: New file.  Add prototypes.
12597         * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
12598         gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
12599         make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
12600         * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
12601         gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
12602         make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
12603         * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
12604         pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
12605         (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
12606         pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
12607         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
12608         make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
12609         pass_data_complete_unroll, make_pass_complete_unroll,
12610         tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
12611         pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
12612         tree-ssa-loop-ivcanon.c.
12613         (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
12614         pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
12615         tree-ssa-loop-prefetch.c.
12616         (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
12617         tree-ssa-loop-im.c.
12618         (get_lsm_tmp_name): Relocate and add suffix parameter.
12619         (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
12620         * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
12621         * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
12622         max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
12623         (get_estimated_loop_iterations): Factor out accessor from
12624         estimated_loop_iterations in tree-ssa-loop-niter.c.
12625         (get_max_loop_iterations): Factor out accessor from
12626         _max_loop_iterations in tree-ssa-niter.c.
12627         * loop-unroll.c (decide_unroll_constant_iterations,
12628         decide_unroll_runtime_iterations, decide_peel_simple,
12629         decide_unroll_stupid): Use new get_* accessors.
12631 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
12633         PR tree-optimization/20318
12634         * doc/extend.texi (returns_nonnull): New function attribute.
12635         * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
12636         attribute.
12637         * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
12638         (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
12640 2013-10-09  Eric Botcazou  <ebotcazou@adacore.com>
12642         PR middle-end/58570
12643         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
12644         false if both components are bitfields.
12646 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
12648         * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
12649         (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
12650         (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
12651         * config/aarch64/aarch64.h
12652         (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
12653         * config/aarch64/aarch64-simd-builtins.def
12654         (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
12656 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
12658         * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
12660 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
12662         * config/aarch64/arm_neon.h (vdiv_f64): Added.
12664 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
12666         * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
12667         (vneg_f64): New intrinsic.
12668         (vneg_s8): Asm replaced with C.
12669         (vneg_s16): Likewise.
12670         (vneg_s32): Likewise.
12671         (vneg_s64): New intrinsic.
12672         (vnegq_f32): Asm replaced with C.
12673         (vnegq_f64): Likewise.
12674         (vnegq_s8): Likewise.
12675         (vnegq_s16): Likewise.
12676         (vnegq_s32): Likewise.
12677         (vnegq_s64): Likewise.
12679 2013-10-09  Renlin Li  <Renlin.Li@arm.com>
12681         * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
12683 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12685         * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
12686         packed stack special handling.
12687         (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
12688         back to fixed stack slots for FPRs saved due to stdarg.
12690 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12692         * config/s390/s390.c (s390_frame_info): Restructure function.
12694 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12696         * config/s390/s390.c (struct s390_frame_layout): New field
12697         gpr_save_slots.
12698         (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
12699         (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
12700         regs_ever_clobbered to char*.
12701         (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
12702         of cfun->has_nonlocal_label.  Ignore frame related restore INSNs.
12703         (s390_register_info): Enable FPR save slots.  Move/Copy some
12704         functionality into ...
12705         (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
12706         (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
12707         function.
12708         (s390_frame_info): Do gpr slot allocation here now.  stdarg does
12709         not imply a stack frame.
12710         (s390_init_frame_layout): Remove variable clobbered_regs.
12711         (s390_update_register_info): Remove function.
12712         (s390_hard_regno_rename_ok): Call-saved regs without a save slot
12713         cannot be used for register renaming.
12714         (s390_hard_regno_scratch_ok): New function.
12715         (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
12716         (s390_initial_elimination_offset): Change offset calculation of
12717         the return address pointer.
12718         (save_gprs): Deal with only r6 being saved from the call-saved regs.
12719         (restore_gprs): Set frame related flag.
12720         (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
12721         (s390_emit_prologue): Call s390_register_info instead of
12722         s390_update_frame_layout.  Call s390_save_gprs_to_fprs.
12723         (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
12724         (s390_optimize_prologue): Call s390_optimize_register_info.
12725         Try to remove also FPR slot save/restore INSNs.  Remove frame
12726         related flags from restore INSNs.
12728 2013-10-08  DJ Delorie  <dj@redhat.com>
12730         * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
12731         (movhi): Likewise.
12733         * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
12734         avoid conflict with the MI use of %c.
12735         * config/rl78/rl78-real.md: change %c to %C throughout.
12736         * config/rl78/rl78-virt.md: Likewise.
12738 2013-10-08  Jan Hubicka  <jh@suse.cz>
12740         * config/i386/i386.c (ix86_option_override_internal): Switch
12741         to SSE math for -ffast-math when target ISA supports SSE2.
12743 2013-10-08  Andrew MacLeod  <amacleod@redhat.com>
12745         * tree-flow.h: Remove some prototypes.
12746         * tree.h: Remove some protypes, add a couple.
12747         * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
12748         using_eh_for_cleanups_p): Add interface routines for front ends.
12749         * tree-eh.h: New file.  Add protoptyes.
12750         * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
12751         (add_stmt_to_eh_lp_fn): Make static.
12752         (lower_try_finally): Use new using_eh_for_cleanups_p.
12753         * emit-rtl.c: Include tree-eh.h.
12754         * gimple.h: Include tree-eh.h.
12756 2013-10-08  Marc Glisse  <marc.glisse@inria.fr>
12758         PR tree-optimization/58480
12759         * tree-vrp.c (infer_nonnull_range): New function.
12760         (infer_value_range): Call infer_nonnull_range.
12762 2013-10-08  Dehao Chen  <dehao@google.com>
12764         PR tree-optimization/58619
12765         * tree-inline.c (copy_phis_for_bb): Combine location data
12766         only if non-null.
12768 2013-10-08  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
12770         PR target/58423
12771         * config/arm/arm.c (arm_emit_ldrd_pop): Attach
12772         RTX_FRAME_RELATED_P on INSN.
12774 2013-10-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12776         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
12777         (altivec_expand_vec_perm_const): Call it.
12779 2013-10-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12781         * config/rs6000/vector.md (mov<mode>): Emit permuted move
12782         sequences for LE VSX loads and stores at expand time.
12783         * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
12784         prototype.
12785         * config/rs6000/rs6000.c (rs6000_const_vec): New.
12786         (rs6000_gen_le_vsx_permute): New.
12787         (rs6000_gen_le_vsx_load): New.
12788         (rs6000_gen_le_vsx_store): New.
12789         (rs6000_gen_le_vsx_move): New.
12790         * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
12791         (*vsx_le_perm_load_v4si): New.
12792         (*vsx_le_perm_load_v8hi): New.
12793         (*vsx_le_perm_load_v16qi): New.
12794         (*vsx_le_perm_store_v2di): New.
12795         (*vsx_le_perm_store_v4si): New.
12796         (*vsx_le_perm_store_v8hi): New.
12797         (*vsx_le_perm_store_v16qi): New.
12798         (*vsx_xxpermdi2_le_<mode>): New.
12799         (*vsx_xxpermdi4_le_<mode>): New.
12800         (*vsx_xxpermdi8_le_V8HI): New.
12801         (*vsx_xxpermdi16_le_V16QI): New.
12802         (*vsx_lxvd2x2_le_<mode>): New.
12803         (*vsx_lxvd2x4_le_<mode>): New.
12804         (*vsx_lxvd2x8_le_V8HI): New.
12805         (*vsx_lxvd2x16_le_V16QI): New.
12806         (*vsx_stxvd2x2_le_<mode>): New.
12807         (*vsx_stxvd2x4_le_<mode>): New.
12808         (*vsx_stxvd2x8_le_V8HI): New.
12809         (*vsx_stxvd2x16_le_V16QI): New.
12811 2013-10-07  Renlin Li  <Renlin.Li@arm.com>
12813         * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
12815 2013-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12817         * config/s390/s390.c (s390_register_info): Make the call-saved FPR
12818         loop to work also for 31bit ABI.
12819         Save the stack pointer for frame_size > 0.
12821 2013-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12823         * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
12824         ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
12825         constraint letters from expanders.
12826         ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
12827         retry count to general_operand.
12828         ("tabort"): Give operand 0 a mode.
12829         ("tabort_1"): Add mode and constraint letter for operand 0.
12830         * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
12832 2013-10-04  Jeff Law  <law@redhat.com>
12834         * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
12836         * tree-ssa-threadedge.c (thread_through_normal_block): Broken
12837         out of ...
12838         (thread_across_edge): Here.  Call it.
12840 2013-10-04  Cary Coutant  <ccoutant@google.com>
12842         * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
12843         discarding a location list expression (or a piece of one).
12845 2013-10-03  Jan Hubicka  <jh@suse.cz>
12847         * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
12848         rate of 2.  Core2, Corei7 and Haswell has issue rate of 4.
12849         (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
12851 2013-10-03  Jan Hubicka  <jh@suse.cz>
12853         * config/i386/i386.c (ix86_option_override_internal): Do not enable
12854         accumulate-outgoing-args when producing unwind info.
12856 2013-10-03  Wei Mi  <wmi@google.com>
12858         * lra-constraints.c (insert_move_for_subreg): New function
12859         extracted from simplify_operand_subreg.
12860         (simplify_operand_subreg): Add reload for paradoxical subreg.
12862 2013-10-03  Rong Xu  <xur@google.com>
12864         * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
12865         the candidate of builtin_expect such that we should fix the
12866         size/time estimation.
12867         (estimate_function_body_sizes): Do the acutally size/time fix-up
12868         for builtin_expect.
12870 2013-10-03  Rong Xu  <xur@google.com>
12872         * predict.c (tree_predict_by_opcode): Get the probability
12873         for builtin_expect from param builtin_expect_probability.
12874         * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
12875         * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
12876         * doc/invoke.texi: Add documentation for builtin-expect-probability.
12878 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
12880         PR c++/19476
12881         * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
12882         * calls.c (alloca_call_p): Use get_callee_fndecl.
12883         * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
12884         * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
12885         Likewise.
12886         (vrp_visit_stmt): Remove duplicated code.
12888 2013-10-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
12890         * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
12891         ceildf2, btruncdf2, instead of vsx_* name.
12893         * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
12894         iterators to only do V2DF and V4SF here.  Move the DF code to
12895         rs6000.md where it is combined with SF mode.  Replace <VSv> with
12896         just 'v' since only vector operations are handled with these insns
12897         after moving the DF support to rs6000.md.
12898         (vsx_sub<mode>3): Likewise.
12899         (vsx_mul<mode>3): Likewise.
12900         (vsx_div<mode>3): Likewise.
12901         (vsx_fre<mode>2): Likewise.
12902         (vsx_neg<mode>2): Likewise.
12903         (vsx_abs<mode>2): Likewise.
12904         (vsx_nabs<mode>2): Likewise.
12905         (vsx_smax<mode>3): Likewise.
12906         (vsx_smin<mode>3): Likewise.
12907         (vsx_sqrt<mode>2): Likewise.
12908         (vsx_rsqrte<mode>2): Likewise.
12909         (vsx_fms<mode>4): Likewise.
12910         (vsx_nfma<mode>4): Likewise.
12911         (vsx_copysign<mode>3): Likewise.
12912         (vsx_btrunc<mode>2): Likewise.
12913         (vsx_floor<mode>2): Likewise.
12914         (vsx_ceil<mode>2): Likewise.
12915         (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
12916         (vsx_sminsf3): Likewise.
12917         (vsx_fmadf4): Likewise.
12918         (vsx_fmsdf4): Likewise.
12919         (vsx_nfmadf4): Likewise.
12920         (vsx_nfmsdf4): Likewise.
12921         (vsx_cmpdf_internal1): Likewise.
12923         * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
12924         simpler to select whether a target has SPE or traditional floating
12925         point support in iterators.
12926         (TARGET_DF_SPE): Likewise.
12927         (TARGET_SF_FPR): Likewise.
12928         (TARGET_DF_FPR): Likewise.
12929         (TARGET_SF_INSN): Macros to say whether floating point support
12930         exists for a given operation for expanders.
12931         (TARGET_DF_INSN): Likewise.
12933         * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
12934         combining of SF/DF mode operations, using both traditional and VSX
12935         registers.
12936         (Fvsx): Likewise.
12937         (Ff): Likewise.
12938         (Fv): Likewise.
12939         (Fs): Likewise.
12940         (Ffre): Likewise.
12941         (FFRE): Likewise.
12942         (abs<mode>2): Combine SF/DF modes using traditional floating point
12943         instructions.  Add support for using the upper DF registers with
12944         VSX support, and SF registers with power8-vector support.  Update
12945         expanders for operations supported by both the SPE and traditional
12946         floating point units.
12947         (abs<mode>2_fpr): Likewise.
12948         (nabs<mode>2): Likewise.
12949         (nabs<mode>2_fpr): Likewise.
12950         (neg<mode>2): Likewise.
12951         (neg<mode>2_fpr): Likewise.
12952         (add<mode>3): Likewise.
12953         (add<mode>3_fpr): Likewise.
12954         (sub<mode>3): Likewise.
12955         (sub<mode>3_fpr): Likewise.
12956         (mul<mode>3): Likewise.
12957         (mul<mode>3_fpr): Likewise.
12958         (div<mode>3): Likewise.
12959         (div<mode>3_fpr): Likewise.
12960         (sqrt<mode>3): Likewise.
12961         (sqrt<mode>3_fpr): Likewise.
12962         (fre<Fs>): Likewise.
12963         (rsqrt<mode>2): Likewise.
12964         (cmp<mode>_fpr): Likewise.
12965         (smax<mode>3): Likewise.
12966         (smin<mode>3): Likewise.
12967         (smax<mode>3_vsx): Likewise.
12968         (smin<mode>3_vsx): Likewise.
12969         (negsf2): Delete SF operations that are merged with DF.
12970         (abssf2): Likewise.
12971         (addsf3): Likewise.
12972         (subsf3): Likewise.
12973         (mulsf3): Likewise.
12974         (divsf3): Likewise.
12975         (fres): Likewise.
12976         (fmasf4_fpr): Likewise.
12977         (fmssf4_fpr): Likewise.
12978         (nfmasf4_fpr): Likewise.
12979         (nfmssf4_fpr): Likewise.
12980         (sqrtsf2): Likewise.
12981         (rsqrtsf_internal1): Likewise.
12982         (smaxsf3): Likewise.
12983         (sminsf3): Likewise.
12984         (cmpsf_internal1): Likewise.
12985         (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
12986         (negdf2): Delete DF operations that are merged with SF.
12987         (absdf2): Likewise.
12988         (nabsdf2): Likewise.
12989         (adddf3): Likewise.
12990         (subdf3): Likewise.
12991         (muldf3): Likewise.
12992         (divdf3): Likewise.
12993         (fred): Likewise.
12994         (rsqrtdf_internal1): Likewise.
12995         (fmadf4_fpr): Likewise.
12996         (fmsdf4_fpr): Likewise.
12997         (nfmadf4_fpr): Likewise.
12998         (nfmsdf4_fpr): Likewise.
12999         (sqrtdf2): Likewise.
13000         (smaxdf3): Likewise.
13001         (smindf3): Likewise.
13002         (cmpdf_internal1): Likewise.
13003         (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
13004         (btrunc<mode>2): Delete separate expander, and combine with the
13005         insn and add VSX instruction support.  Use TARGET_<MODE>_FPR.
13006         (btrunc<mode>2_fpr): Likewise.
13007         (ceil<mode>2): Likewise.
13008         (ceil<mode>2_fpr): Likewise.
13009         (floor<mode>2): Likewise.
13010         (floor<mode>2_fpr): Likewise.
13011         (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
13012         Add support for using the upper registers with VSX and
13013         power8-vector.  Move insns to be closer to the define_expands. On
13014         VSX systems, prefer the traditional form of FMA over the VSX
13015         version, since the traditional form allows the target not to
13016         overlap with the inputs.
13017         (fms<mode>4_fpr): Likewise.
13018         (nfma<mode>4_fpr): Likewise.
13019         (nfms<mode>4_fpr): Likewise.
13021 2013-10-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13022             Richard Earnshaw  <richard.earnshaw@arm.com>
13024         * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
13025         (struct mult_cost_table): Likewise.
13026         (struct mem_cost_table): Likewise.
13027         (struct fp_cost_table): Likewise.
13028         (struct vector_cost_table): Likewise.
13029         (cpu_cost_table): Likewise.
13030         * config/arm/arm.opt (mold-rts-costs): New option.
13031         (mnew-generic-costs): Likewise.
13032         * config/arm/arm.c (generic_extra_costs): New table.
13033         (cortexa15_extra_costs): Likewise.
13034         (arm_slowmul_tune): Use NULL as new costs.
13035         (arm_fastmul_tune): Likewise.
13036         (arm_strongarm_tune): Likewise.
13037         (arm_xscale_tune): Likewise.
13038         (arm_9e_tune): Likewise.
13039         (arm_v6t2_tune): Likewise.
13040         (arm_cortex_a5_tune): Likewise.
13041         (arm_cortex_a9_tune): Likewise.
13042         (arm_v6m_tune): Likewise.
13043         (arm_fa726te_tune): Likewise.
13044         (arm_cortex_a15_tune): Use cortex15_extra_costs.
13045         (arm_cortex_tune): Use generict_extra_costs.
13046         (shifter_op_p): New function.
13047         (arm_unspec_cost): Likewise.
13048         (LIBCALL_COST): Define.
13049         (arm_new_rtx_costs): New function.
13050         (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
13051         table is available. Use old costs otherwise unless mnew-generic-costs
13052         is specified.
13053         * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
13054         (cpu_cost_table): Declare.
13056 2013-10-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
13058         PR target/58460
13059         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
13060         (*subs_mul_imm_<mode>)
13061         (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
13062         (*sub_<shift>_<mode>)
13063         (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
13064         Remove k constraint.
13066 2013-10-03  Ian Bolton  <ian.bolton@arm.com>
13068         * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
13069         code.
13070         * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
13072 2013-10-02  Teresa Johnson  <tejohnson@google.com>
13074         * predict.c (probably_never_executed): New function.
13075         (probably_never_executed_bb_p): Invoke probably_never_executed.
13076         (probably_never_executed_edge_p): Ditto.
13077         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
13078         Treat profile insanities conservatively.
13080 2013-10-02  John David Anglin  <danglin@gcc.gnu.org>
13082         * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
13084 2013-10-02  Vladimir Makarov  <vmakarov@redhat.com>
13086         * lra-constraints.c (process_alt_operand): Calculate scratch_p and
13087         use it.  Use smaller increase for scratch.  Don't increase reject
13088         for early clobber scratch.
13089         * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
13090         setting eliminated regs except setting fp from hfp.
13091         (lra_eliminate): Check lra_insn_recog_data on NULL.
13093 2013-10-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
13095         PR target/58587
13096         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
13097         setting -mvsx-timode by default until the underlying problem is fixed.
13098         (RS6000_CPU, power7 defaults): Likewise.
13100 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
13102         * config/x-linux (host-linux.o): Remove header dependencies.
13103         Use $(COMPILE) and $(POSTCOMPILE).
13104         * config/t-linux-android (linux-android.o): Ditto.
13106 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
13108         * Makefile.in (expmed.o-warn): Remove.
13110 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
13112         * graphite-scop-detection.c: Include tree-ssa-propagate,h.
13113         * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
13115 2013-10-02  Teresa Johnson  <tejohnson@google.com>
13117         * dojump.c (do_jump_1): Divide probability between
13118         both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
13120 2013-10-02  Tom Tromey  <tromey@redhat.com>
13122         * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
13124 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
13126         * tree-flow.h: Remove some prototypes.
13127         * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
13128         mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
13129         * tree-into-ssa.c (mark_virtual_operand_for_renaming,
13130         mark_virtual_phi_result_for_renaming): Relocate here.
13131         * tree-into-ssa.h: Add prototypes.
13132         * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
13133         single_pred_before_succ_order.
13134         (blocks_in_phiopt_order): Rename and move to cfganal.c.
13135         (nonfreeing_call_p) Move to gimple.c.
13136         * cfganal.c (single_pred_before_succ_order): Move and renamed from
13137         tree-ssa-phiopt.c.
13138         * basic-block.h (single_pred_before_succ_order): Add prototype.
13139         * gimple.c (nonfreeing_call_p): Relocate here.
13140         * gimple.h: Add prototype.
13141         * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
13142         * tree-ssa-dom.h: New file.  Relocate prototypes here.
13143         * tree-ssa.h: Include tree-ssa-dom.h.
13145 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
13147         * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
13148         Use $(COMPILE) and $(POSTCOMPILE).
13150         * config/alpha/x-alpha (driver-alpha.o): Ditto.
13152 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
13154         * tree-flow.h: Remove some prototypes.
13155         * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
13156         * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
13157         * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
13158         propagate_tree_value*): Move from here to...
13159         * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
13160         propagate_tree_value*): Relocate here.
13161         * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
13162         * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
13163         * gimple-fold.c: Remove gimple-fold.h from include list.
13164         * tree-vrp.c: Remove gimple-fold.h from include list.
13165         * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
13166         * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
13167         * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
13168         * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
13169         * sese.c: Add tree-ssa-propagate.h to include list.
13171 2013-10-02  Richard Biener  <rguenther@suse.de>
13173         * tree-loop-distribution.c: Include tree-vectorizer.h for
13174         find_loop_location.
13175         (enum partition_kind): Remove PKIND_REDUCTION.
13176         (struct partition_s): Remove has_writes member, add reduction_p member.
13177         (partition_alloc): Adjust.
13178         (partition_builtin_p): Likewise.
13179         (partition_has_writes): Remove.
13180         (partition_reduction_p): New function.
13181         (partition_merge_into): Likewise.
13182         (generate_code_for_partition): Commonize builtin partition
13183         handling tail.
13184         (rdg_cannot_recompute_vertex_p): Remove.
13185         (already_processed_vertex_p): Likewise.
13186         (rdg_flag_vertex): Do not set has_writes.
13187         (classify_partition): Adjust.
13188         (rdg_build_partitions): Do not set has_writes, treat all
13189         partitions as useful.
13190         (distribute_loop): Record number of library calls generated.  Adjust.
13191         (tree_loop_distribution): Report number of loops and library
13192         calls generated as opt-info.
13194 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
13196         * tree-flow.h: Include new .h files.  Move prototypes.
13197         * tree-cfgcleanup.h: New file.  Add prototypes from tree-flow.h.
13198         * tree-dfa.h: New File.  Add prototypes from tree-flow.h.
13199         (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
13200         * tree-pretty-print.h: Add prototypes from tree-flow.h.
13201         * tree-into-ssa.h: New File.  Add prototypes from tree-flow.h.
13202         ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
13203         * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
13204         * tree.h (get_ref_base_and_extent): Move prototype out.
13205         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
13206         tree-dfa.h.
13207         * gimple-low.h: New File.  Add prototypes from tree-flow.h.
13208         * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
13209         * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
13210         * tree-scalar-evolution.c: Include tree.h.
13211         * sese.c: Include tree.h.
13212         * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
13213         * dwarf2out.c: Include tree-dfa.h.
13214         * tree-chrec.c: Include tree.h.
13215         * tree-data-ref.c: Include tree.h.
13217 2013-10-02  Yufeng Zhang  <yufeng.zhang@arm.com>
13219         * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
13220         Fix whitespace.
13222 2013-10-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13224         * config/t-sol2 (sol2-c.o): Remove header dependencies.
13225         Use $(COMPILE) and $(POSTCOMPILE).
13226         (sol2-cxx.o): Likewise.
13227         (sol2-stubs.o): Likewise.
13228         (sol2.o): Likewise.
13229         * config/x-solaris (host-solaris.o): Likewise.
13231         * config/sparc/t-sparc (sparc.o): Remove.
13232         (sparc-c.o): Remove header dependencies.
13233         Use $(COMPILE) and $(POSTCOMPILE).
13234         * config/sparc/x-sparc: Likewise.
13236 2013-10-02  Joern Rennecke  <joern.rennecke@embecosm.com>
13238         * config/arc/arc-opts.h: Add 2013 to Copyright years.
13239         * config/arc/arc700.md: Likewise.
13240         * config/arc/arc-modes.def: Likewise.
13241         * config/arc/arc-simd.h: Likewise.
13242         * config/arc/t-arc-uClibc: Likewise.
13243         * config/arc/t-arc-newlib: Likewise.
13245 2013-10-02  Renlin Li  <renlin.li@arm.com>
13247         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
13248         plus_constant.
13249         (aarch64_expand_epilogue): Likewise.
13251 2013-10-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13252             Yufeng Zhang  <yufeng.zhang@arm.com>
13254         * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
13255         declaration.
13256         (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
13257         'base_in' represent a conversion and legal_cast_p_1 holds; set
13258         'base_in' with the returned value from get_unwidened.
13260 2013-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13262         * config/arm/arm.c (arm_legitimize_reload_address): Explain why
13263         plus_constant is not used.
13265 2013-10-01  Wei Mi  <wmi@google.com>
13267         * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
13268         * config/i386/i386.md: Add define_peephole2 to
13269         break partial reg stall for cvtss2sd/cvtsd2ss.
13271 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
13273         * config/arc/arc.c (pass_arc_ifcvt::clone):
13274         Update for ctxt_ -> m_ctxt change.
13276 2013-10-01  Jeff Law  <law@redhat.com>
13278         * tree-ssa-threadupdate.c (struct redirection_data): Delete
13279         outgoing_edge and intermediate_edge fields.  Instead store the path.
13280         (redirection_data::hash): Hash on the last edge's destination index.
13281         (redirection_data::equal): Check the entire thread path.
13282         (lookup_redirectio_data): Corresponding changes.
13283         (create_edge_and_update_destination_phis): Likewise.
13284         (thread_single_edge): Likewise.
13286 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
13287             Diego Novillo <dnovillo@google.com>
13289         * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
13290         (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
13291         (vld32wh_insn, vld32wl_insn): Delete commented-out old
13292         versions of these patterns.
13294         * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
13295         (__builtin_arc_aligned): Likewise.
13297         * config/arc/arc.md: Expand adc_0 comment stating the intended
13298         purpose and why it isn't ready.
13299         Replace commented out call_value_via_label_mixed with a
13300         plain comment about bl_s.
13302         * config/arc/arc.c (stdio.h): Don't include directly.
13303         (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
13304         Remove if (1) condition.
13305         (arc_encode_section_info): Fix comment.
13307 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
13309         * config/arc/arc.c (arc_conditional_register_usage):
13310         Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
13311         Also set reg_alloc_order for DMA config regs.
13313 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
13314             Jeremy Bennett  <jeremy.bennett@embecosm.com>
13316         * doc/install.texi (--with-cpu): Mention ARC.
13317         (arc-*-elf32): New paragraph.
13318         (arc-linux-uclibc): Likewise.
13319         * doc/md.texi (Machine Constraints): Add ARC part.
13320         * doc/invoke.texi: (menu): Add ARC Options.
13321         (Machine Dependent Options) <ARC Options>: Add synopsis.
13322         (node ARC Options): Add.
13323         * doc/extend.texi (long_call / short_call attribute): Add ARC.
13324         (ARC Built-in Functions): New section defining
13325         generic ARC built-in functions.
13326         (ARC SIMD Built-in Functions): New section defining SIMD specific
13327         built-in functions.
13328         (Declaring Attributes of Functions): Extended
13329         description of short_call and long_call attributes for ARC and
13330         added index entries.
13332 2013-10-01  Saurabh Verma  <saurabh.verma@codito.com>
13333             Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>
13334             Joern Rennecke  <joern.rennecke@embecosm.com>
13335             Muhammad Khurram Riaz  <khurram.riaz@arc.com>
13336             Brendan Kehoe  <brendan@zen.org>
13337             Michael Eager  <eager@eagercon.com>
13338             Simon Cook  <simon.cook@embecosm.com>
13339             Jeremy Bennett  <jeremy.bennett@embecosm.com>
13341         * config/arc, common/config/arc: New directories.
13343 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
13344             Brendan Kehoe  <brendan@zen.org>
13345             Simon Cook  <simon.cook@embecosm.com>
13347         * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
13349 2013-10-01  Andrew MacLeod  <amacleod@redhat.com>
13351         * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
13352         * tree-ssa-coalesce.h: New. Move prototype to here.
13353         * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
13354         * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
13355         (gimple_can_coalesce_p): Move to...
13356         * gimple.c (gimple_can_coalesce_p): Here.
13358 2013-10-01  Andrew MacLeod  <amacleod@redhat.com>
13360         * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
13361         (dump_decl_set): Move to gimple.c.
13362         * gimple.h: Don't include tree-ssa-operands.h.
13363         (dump_decl_set): Add prototype.
13364         (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
13365         Move to gimple-ssa.h.
13366         (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
13367         gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
13368         gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
13369         gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
13370         * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
13371         than PHI_ARG_DEF.
13372         (dump_decl_set): Relocate here.
13373         * gimple-ssa.h: New file.
13374         (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
13375         Relocate from gimple.h.
13376         * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
13377         * tree-ssa-operands.c (swap_ssa_operands): Rename from
13378         swap_tree_operands and remove non-ssa path.
13379         (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
13380         * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
13381         swap_ssa_operands.
13382         * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
13383         vect_is_simple_reduction_1): Use swap_ssa_operands.
13384         * tree-flow.h: Move various prototypes to tree-phinodes.h.
13385         (enum need_phi_state): Move to tree-into-ssa.c.
13386         (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
13387         BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
13388         (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
13389         * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
13390         link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
13391         relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
13392         next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
13393         num_imm_uses): Move to ssa-iterators.h.
13394         (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
13395         (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
13396         tree-phinodes.h.
13397         (op_iter_done, op_iter_next_def, op_iter_next_tree,
13398         clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
13399         op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
13400         single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
13401         num_ssa_operands, delink_stmt_imm_use, single_phi_def,
13402         op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
13403         end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
13404         first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
13405         end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
13406         (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
13407         gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
13408         gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
13409         phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
13410         (set_phi_nodes): Move to tree-phinodes.h.
13411         * tree-ssa-operands.h (enum ssa_op_iter_type,
13412         struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
13413         ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
13414         (dump_decl_set): Remove prototype.
13415         (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
13416         * tree-phinodes.h: New file.  Move some prototypes from tree-flow.h.
13417         (set_phi_nodes): Relocate from tree-flow-inline.h.
13418         (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
13419         tree-flow-inline.h
13420         * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
13421         include list.  Temporarily add gimple.h to include list.
13422         * ssa-iterators.h: New file.
13423         (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
13424         BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
13425         (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
13426         FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
13427         Relocate from tree-ssa-operands.h.
13428         (delink_imm_use, link_imm_use_to_list, link_imm_use,
13429         set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
13430         relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
13431         next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
13432         num_imm_uses, get_use_from_ptr, get_def_from_ptr,
13433         phi_arg_index_from_use, op_iter_done, op_iter_next_def,
13434         op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
13435         op_iter_init_use, op_iter_init_def, op_iter_init_tree,
13436         single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
13437         zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
13438         single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
13439         end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
13440         link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
13441         first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
13442         Relocate from tree-flow-inline.h.
13443         * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
13445 2013-10-01  Vidya Praveen  <vidyapraveen@arm.com>
13447         * aarch64-simd.md
13448         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
13449         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
13450         Insert '\t' to output template.
13451         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
13452         (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
13453         gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
13454         (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
13456 2013-10-01  Uros Bizjak  <ubizjak@gmail.com>
13458         * doc/install.texi (Host/target specific installation notes for GCC):
13459         Put @anchor before @heading.
13460         * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
13461         Use @email for email addresses.
13463 2013-10-01  Jeff Law  <law@redhat.com>
13465         * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
13466         a vec.  Only delete the path if we create one without successfully
13467         registering a jump thread.
13468         * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
13469         as a pointer.
13470         * tree-ssa-threadupdate.c (threaded_edges): Remove.  No longer used
13471         (paths): New vector of jump threading paths.
13472         (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
13473         (THREAD_PATH): New accessor macro for the entire thread path.
13474         (lookup_redirection_data): Get intermediate and final outgoing edge
13475         from the thread path.
13476         (create_edge_and_update_destination_phis): Copy the threading path.
13477         (ssa_fix_duplicate_block_edges): Get edges and block types from the
13478         jump threading path.
13479         (ssa_redirect_edges): Get edges and block types from the jump threading
13480         path.  Free the path vector.
13481         (thread_block): Get edges from the jump threading path.  Look at the
13482         entire path to see if we thread to a loop exit.  If we cancel a jump
13483         thread request, then free the path vector.
13484         (thread_single_edge): Get edges and block types from the jump threading
13485         path.  Free the path vector.
13486         (thread_through_loop_header): Get edges and block types from the jump
13487         threading path.  Free the path vector.
13488         (mark_threaded_blocks): Iterate over the vector of paths and store
13489         the path on the appropriate edge.  Get edges and block types from the
13490         jump threading path.
13491         (mark_threaded_blocks): Get edges and block types from the jump
13492         threading path.  Free the path vector.
13493         (thread_through_all_blocks): Use the vector of paths rather than
13494         a vector of 3-edge sets.
13495         (register_jump_thread): Accept pointer to a path vector rather
13496         than the path vector itself.  Store the path vector for later use.
13497         Simplify.
13499 2013-10-01  Jakub Jelinek  <jakub@redhat.com>
13500             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13502         PR target/58574
13503         * config/s390/s390.c (s390_split_branches): Modify check for table
13504         jump insns.
13505         (s390_chunkify_start): Rearrange table jump insn check in order to
13506         deal with compare and branch insns correctly.
13508 2013-10-01  Kugan Vivekanandarajah  <kuganv@linaro.org>
13510         PR target/58578
13511         Revert
13512         2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
13513         * config/arm/arm.md (arm_ashldi3_1bit):  define_insn into
13514         define_insn_and_split.
13515         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
13516         (shiftsi3_compare): New pattern.
13517         (rrx): New pattern.
13518         * config/arm/unspecs.md (UNSPEC_RRX): New.
13520 2013-10-01  Alan Modra  <amodra@gmail.com>
13522         * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
13523         casing inout operands.
13525 2013-10-01  Richard Biener  <rguenther@suse.de>
13527         PR tree-optimization/58553
13528         * tree-loop-distribution.c (struct partition_s): Add niter member.
13529         (classify_partition): Populate niter member for the partition
13530         and properly identify whether the relevant store happens before
13531         or after the loop exit.
13532         (generate_memset_builtin): Use niter member from the partition.
13533         (generate_memcpy_builtin): Likewise.
13535 2013-09-30  Richard Sandiford  <rdsandiford@googlemail.com>
13537         * vec.h (vec_prefix, vec): Prefix member names with "m_".
13538         * vec.c (vec_prefix::calculate_allocation): Update accordingly.
13540 2013-09-30  Richard Sandiford  <rdsandiford@googlemail.com>
13542         * basic-block.h (edge_list): Prefix member names with "m_".
13543         * context.h (context): Likewise.
13544         * domwalk.h (dom_walker): Likewise.
13545         * gengtype-state.c (s_expr_writer, state_writer): Likewise.
13546         * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
13547         * hash-table.h (hash_table): Likewise.
13548         * machmode.h (bit_field_mode_iterator): Likewise.
13549         * pass_manager.h (pass_list): Likewise.
13550         * tree-into-ssa.c (mark_def_dom_walker): Likewise.
13551         * tree-pass.h (pass_data): Likewise.
13552         * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
13553         * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
13554         * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
13555         * asan.c (pass_data_asan): Update accordingly.
13556         * cfganal.c (control_dependences::find_control_dependence): Likewise.
13557         (control_dependences::control_dependences): Likewise.
13558         (control_dependences::~control_dependences): Likewise.
13559         (control_dependences::~control_dependences): Likewise.
13560         (control_dependences::get_edges_dependent_on): Likewise.
13561         * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
13562         (pass_data_remove_cgraph_callee_edges::clone): Likewise.
13563         * context.c (gcc::context::context): Likewise.
13564         * cprop.c (pass_rtl_cprop::clone): Likewise.
13565         * domwalk.c (dom_walker::walk): Likewise.
13566         * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
13567         * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
13568         * mode-switching.c (pass_mode_switching::clone): Likewise.
13569         * passes.c (opt_pass::opt_pass): Likewise.
13570         (pass_manager::pass_manager): Likewise.
13571         * predict.c (pass_strip_predict_hints::clone): Likewise.
13572         * recog.c (pass_data pass_data_peephole2::clone): Likewise.
13573         (pass_split_all_insns::clone): Likewise.
13574         * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
13575         Likewise.
13576         (bit_field_mode_iterator::next_mode): Likewise.
13577         (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
13578         * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
13579         * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
13580         * tree-complex.c (pass_lower_complex::clone): Likewise.
13581         * tree-eh.c (pass_cleanup_eh::clone): Likewise.
13582         * tree-object-size.c (pass_object_sizes::clone): Likewise.
13583         * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
13584         * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
13585         (pass_fold_builtins::clone): Likewise.
13586         * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
13587         * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
13588         * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
13589         (pass_cd_dce::clone): Likewise.
13590         * tree-ssa-dom.c (pass_dominator::clone): Likewise.
13591         (pass_phi_only_cprop::clone): Likewise.
13592         * tree-ssa-dse.c (pass_dse::clone): Likewise.
13593         * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
13594         * tree-ssa-loop.c (pass_lim::clone): Likewise.
13595         * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
13596         * tree-ssa-pre.c (pass_fre::clone): Likewise.
13597         * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
13598         * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
13599         * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
13600         * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
13601         * tree-vrp.c (pass_vrp::clone): Likewise.
13602         * tsan.c (pass_tsan::clone): Likewise.
13604 2013-09-30  Jakub Jelinek  <jakub@redhat.com>
13606         PR middle-end/58564
13607         * fold-const.c (tree_unary_nonnegative_warnv_p): Use
13608         INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
13610         PR middle-end/58564
13611         * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
13612         optimization, punt if sign_bit_p looked through any zero extension.
13614 2013-09-30  Teresa Johnson  <tejohnson@google.com>
13616         * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
13617         Update redirected out edge count in joiner case.
13618         (ssa_redirect_edges): Common the joiner and non-joiner cases
13619         so that joiner case gets profile updates.
13621 2013-09-30  Richard Biener  <rguenther@suse.de>
13623         PR tree-optimization/58554
13624         * tree-loop-distribution.c (classify_partition): Require
13625         unconditionally executed stores for memcpy and memset recognition.
13626         (tree_loop_distribution): Calculate dominance info.
13628 2013-09-30  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
13630         * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
13631         (NO_PROFILE_COUNTERS): Likewise.
13632         (PROFILE_HOOK): Likewise.
13633         (FUNCTION_PROFILER): Likewise.
13634         * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
13636 2013-09-30  Iain Sandoe  <iain@codesourcery.com>
13638         * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
13639         calls and defines in TARGET_MACHO conditional.
13640         (load_macho_picbase_di): Likewise.
13641         (reload_macho_picbase): Likewise.
13642         (reload_macho_picbase_si): Likewise.
13643         (reload_macho_picbase_di): Likewise.
13644         (nonlocal_goto_receiver): Likewise.
13646 2013-09-30  Nick Clifton  <nickc@redhat.com>
13648         * config/msp430/msp430.c (msp430x_names): New array.  Lists MCUs
13649         that use the MSP430X ISA.
13650         (msp430_option_override): Scan -mmcu command line option for any
13651         MCU name that supports the MSP430X ISA.
13652         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
13653         -mmcu options which enable the MSP430X ISA.
13655 2013-09-30  Richard Biener  <rguenther@suse.de>
13657         PR middle-end/58532
13658         * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
13659         before looking for setjmp-like calls.
13661 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
13663         PR target/10901
13664         * config/darwin-protos.h (machopic_get_function_picbase): New.
13665         * config/darwin.c (machopic_get_function_picbase): New.
13666         * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
13667         label for a new func.  (load_macho_picbase_di): Likewise.
13668         (reload_macho_picbase): New expand.
13669         (reload_macho_picbase_si): New insn.
13670         (reload_macho_picbase_di): New insn.
13671         (nonlocal_goto_receiver): New define and split.
13672         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
13673         (unspecv enum): Add UNSPECV_NLGR.
13675 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
13677         * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
13678         that altivec registers are correctly sized on Darwin.
13680 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
13682         * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
13683         darwin-driver.o): Use COMPILE and POSTCOMPILE.
13684         * config/x-darwin (host-darwin.o): Likewise.
13685         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
13686         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
13687         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
13689 2013-09-29  Uros Bizjak  <ubizjak@gmail.com>
13691         * doc/invoke.texi: Fix usage of @tie{} command.
13693 2013-09-29  Eric Botcazou  <ebotcazou@adacore.com>
13695         * config/sparc/sync.md: Add peephole for consecutive memory barriers.
13697 2013-09-28  Jan Hubicka  <jh@suse.cz>
13699         * config/i386/x86-tune.def: Add documentation for each of the options;
13700         add whitespace.
13702 2013-09-28  Jan Hubicka  <jh@suse.cz>
13704         * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
13705         generic.
13706         (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
13707         (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
13708         (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
13709         (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
13710         (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
13712 2013-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
13714         * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
13715         bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
13716         cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
13717         cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
13718         combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
13719         cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
13720         df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
13721         dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
13722         errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
13723         fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
13724         gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
13725         genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
13726         genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
13727         genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
13728         gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
13729         gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
13730         gimple.h, godump.c, graphite-clast-to-gimple.c,
13731         graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
13732         graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
13733         hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
13734         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
13735         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
13736         ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
13737         loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
13738         lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
13739         mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
13740         pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
13741         predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
13742         profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
13743         regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
13744         reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
13745         sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
13746         statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
13747         system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
13748         tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
13749         tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
13750         tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
13751         tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
13752         tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
13753         tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
13754         tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
13755         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
13756         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13757         tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
13758         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
13759         tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
13760         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
13761         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
13762         tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
13763         tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
13764         tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
13765         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
13766         tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
13767         tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
13768         varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
13769         whitespace before "(".
13771 2013-09-28  Sandra Loosemore  <sandra@codesourcery.com>
13773         * expr.h (extract_bit_field): Remove packedp parameter.
13774         * expmed.c (extract_fixed_bit_field): Remove packedp parameter
13775         from forward declaration.
13776         (store_split_bit_field): Remove packedp arg from calls to
13777         extract_fixed_bit_field.
13778         (extract_bit_field_1): Remove packedp parameter and packedp
13779         argument from recursive calls and calls to extract_fixed_bit_field.
13780         (extract_bit_field): Remove packedp parameter and corresponding
13781         arg to extract_bit_field_1.
13782         (extract_fixed_bit_field): Remove packedp parameter.  Remove code
13783         to issue warnings.
13784         (extract_split_bit_field): Remove packedp arg from call to
13785         extract_fixed_bit_field.
13786         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
13787         (copy_blkmode_from_reg): Likewise.
13788         (copy_blkmode_to_reg): Likewise.
13789         (read_complex_part): Likewise.
13790         (store_field): Likewise.
13791         (expand_expr_real_1): Likewise.
13792         * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
13793         to extract_bit_field.
13794         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
13795         call to extract_bit_field.
13796         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
13797         call to extract_bit_field.
13798         * doc/invoke.texi (Code Gen Options): Remove mention of warnings
13799         and special packedp behavior from -fstrict-volatile-bitfields
13800         documentation.
13802 2013-09-27  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
13804         * lra-eliminations.c (init_elim_table): Guard value_p.
13806 2013-09-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
13808         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
13809         DFmode, DImode, and SFmode in the upper VSX registers based on the
13810         -mupper-regs-{df,sf} flags.  Fix wu constraint to be ALTIVEC_REGS
13811         if -mpower8-vector.  Combine -mvsx-timode handling with the rest
13812         of the VSX register handling.
13814         * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
13815         (f32_sv): Likewise.
13816         (zero_extendsidi2_lfiwzx): Add support for loading into the
13817         Altivec registers with -mpower8-vector.  Use wu/wv constraints to
13818         only do VSX memory options on Altivec registers.
13819         (extendsidi2_lfiwax): Likewise.
13820         (extendsfdf2_fpr): Likewise.
13821         (mov<mode>_hardfloat, SF/SD modes): Likewise.
13822         (mov<mode>_hardfloat32, DF/DD modes): Likewise.
13823         (mov<mode>_hardfloat64, DF/DD modes): Likewise.
13824         (movdi_internal64): Likewise.
13826 2013-09-27  Xinliang David Li  <davidxl@google.com>
13828         * opts.c (finish_options): Adjust parameters
13829         according to vect cost model.
13830         (common_handle_option): Set dynamic vect cost
13831         model for FDO.
13832         targhooks.c (default_add_stmt_cost): Compute stmt cost
13833         unconditionally.
13834         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
13835         Use helper function.
13836         * tree-vectorizer.h (unlimited_cost_model): New function.
13837         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
13838         * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
13839         function.
13840         (vect_enhance_data_refs_alignment): Ditto.
13841         * flag-types.h: New enum.
13842         * common/config/i386/i386-common.c (ix86_option_init_struct):
13843         No need to initialize vect_cost_model flag.
13844         * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
13845         unconditionally.
13847 2013-09-27  Diego Novillo  <dnovillo@google.com>
13849         * gimple.h (enum ssa_mode): Remove.
13851 2013-09-27  Paulo Matos  <pmatos@broadcom.com>
13853         * cfgloop.h (number_of_loops): Fix typo in check for null.
13855 2013-09-27  Jakub Jelinek  <jakub@redhat.com>
13857         PR middle-end/58551
13858         * tree-cfg.c (move_sese_region_to_fn): Also move loops that
13859         are children of outermost saved_cfun's loop, and set it up to
13860         be moved to dest_cfun's outermost loop.  Fix up num_nodes adjustments
13861         if loop != loop0 and SESE region contains bbs that belong to loop0.
13863 2013-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
13865         * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
13866         (binary_scale_code_p, get_base_term, get_index_term): New functions.
13867         (set_address_segment, set_address_base, set_address_index)
13868         (set_address_disp): Accept the argument unconditionally.
13869         (baseness): Remove must_be_base_p and must_be_index_p checks.
13870         (decompose_normal_address): Classify as much as possible in the
13871         main loop.
13873 2013-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
13875         * cse.c (count_reg_usage): Handle INT_LIST.
13876         * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
13877         * reginfo.c (reg_scan_mark_refs): Likewise.
13878         * reload1.c (eliminate_regs_1): Likewise.
13880 2013-09-27  Iain Sandoe  <iain@codesourcery.com>
13882         PR middle-end/58547
13883         * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
13884         signed.
13886 2013-09-27  Richard Biener  <rguenther@suse.de>
13888         PR tree-optimization/58459
13889         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
13890         restriction not propagating into loops.
13892 2013-09-26  Florian Weimer  <fw@deneb.enyo.de>
13894         * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
13895         * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
13896         * doc/tree-ssa.texi (Walking use-def chains): Delete.
13898 2013-09-26  Richard Biener  <rguenther@suse.de>
13900         * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
13902 2013-09-26  Richard Biener  <rguenther@suse.de>
13904         * alias.h (component_uses_parent_alias_set): Rename to ...
13905         (component_uses_parent_alias_set_from): ... this.
13906         * alias.c (component_uses_parent_alias_set): Rename to ...
13907         (component_uses_parent_alias_set_from): ... this and return
13908         the desired parent.
13909         (reference_alias_ptr_type_1): Use the result from
13910         component_uses_parent_alias_set_from instead of stripping
13911         components one at a time.
13912         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
13914 2013-09-26  Andrew MacLeod  <amacleod@redhat.com>
13916         * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
13917         Move prototypes to...
13918         * tree-ssa-ter.h: New File.  Move prototypes here.
13919         * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
13920         * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
13921         * tree-outof-ssa.c (ssa_is_replaceable_p): New.  Refactor common bits
13922         from is_replaceable_p.
13923         * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
13924         (ter_is_replaceable_p): New.  Use new refactored ssa_is_replaceable_p.
13925         (process_replaceable): Use ter_is_replaceable_p.
13926         (find_replaceable_in_bb): Use ter_is_replaceable_p.
13927         * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c.  Use
13928         newly refactored ssa_is_replaceable_p.
13929         * cfgexpand.c: Include tree-outof-ssa.h.
13930         * ssaexpand.h: Delete.
13932 2013-09-26  Andrew MacLeod <amacleod@redhat.com>
13934         * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
13935         (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
13936         tree-ssa.c
13937         (create_gimple_tmp): Delete.
13938         (get_expr_type, build_assign, build_type_cast): Move to...
13939         * gimple-builder.c: New File.
13940         (get_expr_type): Relocate from gimple.c.
13941         (build_assign, build_type_cast): Change to only create ssanames.
13942         * gimple.h: Move prototypes to...
13943         * gimple-builder.h: New File. Here.
13944         * tree-ssa.h: And here.
13945         * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
13946         count_uses_and_derefs): Relocate from gimple.c.
13947         (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
13948         * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
13949         * tree-ssa-math-opts (execute_cse_reciprocals): Use
13950         gimple_replace_ssa_lhs.
13951         * asan.c: Include gimple-builder.h.
13952         * Makefile.in: Add gimple-builder.o.
13954 2013-09-26  Richard Biener  <rguenther@suse.de>
13956         * tree-ssa-live.c (var_map_base_init): Handle SSA names with
13957         DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
13958         (loe_visit_block): Use gcc_checking_assert.
13959         * tree-ssa-coalesce.c (create_outofssa_var_map): Use
13960         gimple_assign_ssa_name_copy_p.
13961         (gimple_can_coalesce_p): Adjust according to the var_map_base_init
13962         change.
13964 2013-09-26  David Edelsohn  <dje.gcc@gmail.com>
13966         * config/rs6000/t-rs6000 (rs6000.o): Remove.
13967         (rs6000-c.o): Use COMPILE and POSTCOMPILE.
13969 2013-09-26  Richard Biener  <rguenther@suse.de>
13971         PR tree-optimization/58539
13972         * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
13973         the fact that debug statements are not taking part in loop-closed
13974         SSA construction.
13976 2013-09-26  Nick Clifton  <nickc@redhat.com>
13978         * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
13979         time warning message.
13980         (msp430_print_operand_raw): Delete unused letter parameter.
13981         (TARGET_PRINT_OPERAND_ADDRESS): Define.
13982         (msp430_print_operand_address): New function.
13983         (msp430_print_operand): Move address printing code from here to
13984         new function.
13985         * config/msp430/msp430.md (movsipsi2): Add comment in generated
13986         assembler.
13987         (zero_extendpsisi2): Likewise.
13988         (extendpsisi2): New pattern.
13989         (andneghi3): New pattern.
13991 2013-09-26  Yvan Roux  <yvan.roux@linaro.org>
13993         * config/aarch64/aarch64.opt (mlra): New option.
13994         * config/aarch64/aarch64.c (aarch64_lra_p): New function.
13995         (TARGET_LRA_P): Define.
13997 2013-09-26  Eric Botcazou  <ebotcazou@adacore.com>
13999         * expr.c (expand_assignment): Remove obsolete comment.
14001 2013-09-25  Jeff Law  <law@redhat.com>
14003         * tree-flow.h (thread_through_all_blocks): Prototype moved into
14004         tree-ssa-threadupdate.h.
14005         (register_jump_thread): Similarly.
14006         * tree-ssa-threadupdate.h: New header file.
14007         * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
14008         * tree-vrp.c: Likewise.
14009         * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
14010         (thread_around_empty_blocks): Change type of path vector argument to
14011         an edge,type pair from just an edge.  Initialize both elements when
14012         appending to a jump threading path.  Tweak references to elements
14013         appropriately.
14014         (thread_across_edge): Similarly.  Release memory for the elements
14015         as needed.
14016         * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
14017         (dump_jump_thread_path): New function broken out from
14018         register_jump_thread.
14019         (register_jump_thread): Use dump_jump_thread_path.  Change type of
14020         path vector entries.  Search the path for NULL edges and dump
14021         the path if one is found.  Tweak the conversion of path to 3-edge
14022         form to use the block copy type information embedded in the path.
14024 2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
14026         * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
14028 2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
14029             Vladimir Makarov  <vmakarov@redhat.com>
14031         * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
14032         from the least significant bit.
14033         (strip_address_mutations): Add bitfield operations handling.
14034         (must_be_index_p): Add shifting and rotate operations handling.
14035         (set_address_base): Use must_be_base_p predicate.
14036         (set_address_index): Use must_be_index_p predicate.
14038 2013-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14039             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14040             Sergey Lega  <sergey.s.lega@intel.com>
14041             Anna Tikhonova  <anna.tikhonova@intel.com>
14042             Ilya Tocar  <ilya.tocar@intel.com>
14043             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14044             Ilya Verbin  <ilya.verbin@intel.com>
14045             Kirill Yukhin  <kirill.yukhin@intel.com>
14046             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14048         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
14049         Use new names.
14050         (ix86_expand_vector_move_misalign): Support new unaligned load and
14051         stores and use new names.
14052         (CODE_FOR_sse2_storedqu): Rename to ...
14053         (CODE_FOR_sse2_storedquv16qi): ... this.
14054         (CODE_FOR_sse2_loaddqu): Rename to ...
14055         (CODE_FOR_sse2_loaddquv16qi): ... this.
14056         (CODE_FOR_avx_loaddqu256): Rename to ...
14057         (CODE_FOR_avx_loaddquv32qi): ... this.
14058         (CODE_FOR_avx_storedqu256): Rename to ...
14059         (CODE_FOR_avx_storedquv32qi): ... this.
14060         * config/i386/i386.md (fpint_logic): New.
14061         * config/i386/sse.md (VMOVE): Extend for AVX512.
14062         (VF): Ditto.
14063         (VF_128_256): New.
14064         (VF_512): Ditto.
14065         (VI_UNALIGNED_LOADSTORE): Ditto.
14066         (sse2_avx_avx512f): Ditto.
14067         (sse2_avx2): Extend for AVX512.
14068         (sse4_1_avx2): Ditto.
14069         (avx2_avx512f): New.
14070         (sse): Extend for AVX512.
14071         (sse2): Ditto.
14072         (sse4_1): Ditto.
14073         (avxsizesuffix): Ditto.
14074         (sseintvecmode): Ditto.
14075         (ssePSmode): Ditto.
14076         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
14077         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
14078         (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
14079         (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
14080         (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
14081         (<sse2_avx_avx512f>_storedqu<mode): ... this.
14082         (<sse>_movnt<mode>): Replace constraint "x" with "v".
14083         (STORENT_MODE): Extend for AVX512.
14084         (*absneg<mode>2): Replace constraint "x" with "v".
14085         (*mul<mode>3): Ditto.
14086         (*ieee_smin<mode>3): Ditto.
14087         (*ieee_smax<mode>3): Ditto.
14088         (avx_cmp<mode>3): Replace VF with VF_128_256.
14089         (*<sse>_maskcmp<mode>3_comm): Ditto.
14090         (<sse>_maskcmp<mode>3): Ditto.
14091         (<sse>_andnot<mode>3): Extend for AVX512.
14092         (<code><mode>3, anylogic): Replace VF with VF_128_256.
14093         (<code><mode>3, fpint_logic): New.
14094         (*<code><mode>3): Extend for AVX512.
14095         (avx512flogicsuff): New.
14096         (avx512f_<logic><mode>): Ditto.
14097         (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
14098         VF_128_256.
14099         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
14100         (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
14101         (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
14102         (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
14103         (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
14104         (xop_vpermil2<mode>3): Ditto.
14105         (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
14106         (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
14107         (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
14108         (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
14110 2013-09-25  Tom Tromey  <tromey@redhat.com>
14112         * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
14113         (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
14114         (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
14115         (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
14116         (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
14117         (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
14118         (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
14119         (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
14120         (GRAPHITE_HTAB_H): Remove.
14122 2013-09-25  Tom Tromey  <tromey@redhat.com>
14124         * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
14126 2013-09-25  Tom Tromey  <tromey@redhat.com>
14128         * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
14130 2013-09-25  Tom Tromey  <tromey@redhat.com>
14132         * config/i386/t-i386 (i386.o): Remove.
14133         (i386-c.o): Use COMPILE and POSTCOMPILE.
14135 2013-09-25  Tom Tromey  <tromey@redhat.com>
14137         * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
14139 2013-09-25  Tom Tromey  <tromey@redhat.com>
14141         * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
14142         (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
14143         (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
14144         (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
14145         (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
14146         (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
14147         (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
14148         (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
14149         (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
14150         (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
14151         (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
14152         (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
14153         (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
14154         (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
14155         (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
14156         (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
14157         (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
14158         (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
14159         (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
14160         (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
14161         (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
14162         (tree-ssa-pre.o, tree-ssa-sccvn.o)
14163         (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
14164         (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
14165         (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
14166         (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
14167         (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
14168         (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
14169         (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
14170         (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
14171         (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
14172         (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
14173         (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
14174         (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
14175         (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
14176         (graphite-clast-to-gimple.o, graphite-dependences.o)
14177         (graphite-interchange.o, graphite-poly.o)
14178         (graphite-scop-detection.o, graphite-sese-to-poly.o)
14179         (graphite-optimize-isl.o, tree-vect-loop.o)
14180         (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
14181         (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
14182         (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
14183         (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
14184         (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
14185         (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
14186         (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
14187         (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
14188         (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
14189         (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
14190         (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
14191         (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
14192         (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
14193         (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
14194         (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
14195         (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
14196         (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
14197         (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
14198         (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
14199         (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
14200         (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
14201         (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
14202         (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
14203         (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
14204         (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
14205         (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
14206         (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
14207         (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
14208         (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
14209         (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
14210         (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
14211         (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
14212         (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
14213         (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
14214         (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
14215         (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
14216         (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
14217         (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
14218         (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
14219         (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
14220         (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
14221         (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
14222         (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
14223         (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
14224         (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
14225         (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
14226         (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
14227         (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
14228         (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
14229         (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
14230         (gcov-dump.o): Remove.
14231         (default-c.o): Use COMPILE and POSTCOMPILE.
14232         (CFLAGS-gcc.o): New variable.
14233         ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
14235 2013-09-25  Tom Tromey  <tromey@redhat.com>
14237         * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
14238         (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
14239         (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
14240         (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
14241         (c-family/c-pragma.o, c-family/c-pretty-print.o)
14242         (c-family/c-semantics.o, c-family/c-ada-spec.o)
14243         (c-family/array-notation-common.o, c-family/stub-objc.o)
14244         (c-family/c-ubsan.o): Remove.
14246 2013-09-25  Tom Tromey  <tromey@redhat.com>
14248         * Makefile.in (C_TREE_H): Reference c/c-tree.h.
14250 2013-09-25  Tom Tromey  <tromey@redhat.com>
14252         * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
14253         to add -DENABLE_SHARED_LIBGCC.
14254         (gcc.o): Don't use subshell.
14256 2013-09-25  Tom Tromey  <tromey@redhat.com>
14258         * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
14259         * configure.ac: Don't invoke AM_PROG_CC_C_O.
14260         (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
14261         * configure, config.in: Rebuild.
14263 2013-09-25  Tom Tromey  <tromey@redhat.com>
14265         * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
14266         (COMPILE, POSTCOMPILE): New variables.
14267         (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
14268         (DEPFILES): New variable.
14269         Include ".Po" files.
14270         * configure.ac: Add checks for dependency checking.
14271         * configure, aclocal.m4: Regenerate.
14273 2013-09-25  Tom Tromey  <tromey@redhat.com>
14275         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
14276         ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
14278 2013-09-25  Tom Tromey  <tromey@redhat.com>
14280         * Makefile.in (generated_files): Add options.h,
14281         target-hooks-def.h, insn-opinit.h,
14282         common/common-target-hooks-def.h, pass-instances.def,
14283         c-family/c-target-hooks-def.h.
14285 2013-09-25  Jeff Law  <law@redhat.com>
14287         * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
14288         than foo[foo.length () - 1] to access last member in a vec.
14289         * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
14291 2013-09-25  Richard Biener  <rguenther@suse.de>
14293         PR middle-end/58521
14294         * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
14296 2013-09-25  Jan Hubicka  <jh@suse.cz>
14298         * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
14299         test.
14301 2013-09-25  Marek Polacek  <polacek@redhat.com>
14303         PR sanitizer/58420
14304         * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
14305         when determining the type name.
14307 2013-09-24  Oleg Endo  <olegendo@gcc.gnu.org>
14309         * config/sh/sh.md: Fix formatting.
14311 2013-09-24  Xinliang David Li  <davidxl@google.com>
14313         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
14314         max peel iterations parameter.
14315         * param.def: New parameter.
14316         * doc/invoke.texi: Document New parameter.
14318 2013-09-24  Christophe Lyon  <christophe.lyon@linaro.org>
14320         * gimple-pretty-print.c: Various whitespace tweaks.
14321         * tree-core.h: Likewise.
14322         * tree-pretty-print.c: Likewise.
14323         * tree-ssa-alias.c: Likewise.
14324         * tree-ssa-copy.c: Likewise.
14325         * tree-ssanames.c: Likewise.
14326         * tree-ssanames.h: Likewise.
14327         * tree-vrp.c: Likewise.
14329 2013-09-24  Alan Modra  <amodra@gmail.com>
14331         PR middle-end/57134
14332         PR middle-end/57586
14333         * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
14334         for output operands that disallow regs.  Don't use EXPAND_WRITE on
14335         inout operands.
14337 2013-09-24  Richard Biener  <rguenther@suse.de>
14339         PR middle-end/58513
14340         * tree.c (reference_alias_ptr_type): Move ...
14341         * alias.c (reference_alias_ptr_type): ... here and implement
14342         in terms of the new reference_alias_ptr_type_1.
14343         (ref_all_alias_ptr_type_p): New helper.
14344         (get_deref_alias_set_1): Drop flag_strict_aliasing here,
14345         use ref_all_alias_ptr_type_p.
14346         (get_deref_alias_set): Add flag_strict_aliasing check here.
14347         (reference_alias_ptr_type_1): New function, split out from ...
14348         (get_alias_set): ... here.
14349         (alias_ptr_types_compatible_p): New function.
14350         * alias.h (reference_alias_ptr_type): Declare.
14351         (alias_ptr_types_compatible_p): Likewise.
14352         * tree.h (reference_alias_ptr_type): Remove.
14353         * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
14354         to compare MEM_REF alias types.
14356 2013-09-24  Richard Biener  <rguenther@suse.de>
14358         * tree-vrp.c (vrp_finalize): Check for SSA name presence.
14360 2013-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
14362         * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
14363         reload helper function arrays into a single array reg_addr.
14364         (reload_fpr_gpr): Likewise.
14365         (reload_gpr_vsx): Likewise.
14366         (reload_vsx_gpr): Likewise.
14367         (struct rs6000_reg_addr): Likewise.
14368         (reg_addr): Likewise.
14369         (rs6000_debug_reg_global): Change rs6000_vector_reload,
14370         reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
14371         (rs6000_init_hard_regno_mode_ok): Likewise.
14372         (rs6000_secondary_reload_direct_move): Likewise.
14373         (rs6000_secondary_reload): Likewise.
14375         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
14376         constraints: wu, ww, and wy.  Repurpose wv constraint added during
14377         power8 changes.  Put wg constraint in alphabetical order.
14379         * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
14380         for future work to add ISA 2.07 VSX single precision support.
14381         (-mvsx-scalar-double): Change default from -1 to 1, update
14382         documentation comment.
14383         (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
14384         (-mupper-regs-df): New debug switch to control whether DF values
14385         can go in the traditional Altivec registers.
14386         (-mupper-regs-sf): New debug switch to control whether SF values
14387         can go in the traditional Altivec registers.
14389         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
14390         and wy constraints.
14391         (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
14392         loop variables.  Rename -mvsx-scalar-memory to -mupper-regs-df.
14393         Add new constraints, wu/ww/wy.  Repurpose wv constraint.
14394         (rs6000_debug_legitimate_address_p): Print if we are running
14395         before, during, or after reload.
14396         (rs6000_secondary_reload): Add a comment.
14397         (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
14399         * config/rs6000/constraints.md (wa constraint): Sort w<x>
14400         constraints.  Update documentation string.
14401         (wd constraint): Likewise.
14402         (wf constraint): Likewise.
14403         (wg constraint): Likewise.
14404         (wn constraint): Likewise.
14405         (ws constraint): Likewise.
14406         (wt constraint): Likewise.
14407         (wx constraint): Likewise.
14408         (wz constraint): Likewise.
14409         (wu constraint): New constraint for ISA 2.07 SFmode scalar
14410         instructions.
14411         (ww constraint): Likewise.
14412         (wy constraint): Likewise.
14413         (wv constraint): Repurpose ISA 2.07 constraint that we did not use
14414         in the previous submissions.
14415         * doc/md.texi (PowerPC and IBM RS6000): Likewise.
14417 2013-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
14419         * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
14420         (REG_BR_PROB): Say that the probability is stored in an int_list.
14421         * reg-notes.def: Update commentary to mention INT_LIST.
14422         * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
14423         (INT_LIST): New rtx.
14424         * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
14425         * rtlanal.c (int_reg_note_p): New function.
14426         (alloc_reg_note): Assert that the note does not have an int argument.
14427         (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
14428         * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
14429         * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
14430         rather than an INSN_LIST.  Handle INT_LIST.
14431         * ifcvt.c (cond_exec_process_insns): Take the probability as an int
14432         rather than an rtx.  Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
14433         (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
14434         Manipulate them as ints rather than rtxes.
14435         * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
14436         * regmove.c (copy_src_to_dest): Likewise.
14437         * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
14439         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
14440         into the cases that need it.
14441         * config/arm/arm.c (arm_unwind_emit): Likewise.
14443         * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
14444         * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
14445         * loop-doloop.c (add_test, doloop_modify): Likewise.
14446         * loop-unswitch.c (compare_and_jump_seq): Likewise.
14447         * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
14448         * predict.c (combine_predictions_for_insn): Likewise.
14449         * print-rtl.c (print_rtx): Handle INT_LIST.
14450         * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
14451         * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
14452         * config/arm/arm.c (emit_unlikely_jump): Likewise.
14453         * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
14454         (ix86_split_fp_branch, predict_jump): Likewise.
14455         * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
14456         * config/sh/sh.c (expand_cbranchsi4): Likewise.
14457         * config/spu/spu.c (ea_load_store_inline): Likewise.
14459         * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
14460         value of a REG_BR_PROB note.
14461         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
14462         (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
14463         * emit-rtl.c (try_split): Likewise.
14464         * predict.c (br_prob_note_reliable_p): Likewise.
14465         (invert_br_probabilities, combine_predictions_for_insn): Likewise.
14466         * reorg.c (mostly_true_jump): Likewise.
14467         * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
14468         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
14469         * config/i386/i386.c (ix86_print_operand): Likewise.
14470         * config/ia64/ia64.c (ia64_print_operand): Likewise.
14471         * config/mmix/mmix.c (mmix_print_operand): Likewise.
14472         * config/rs6000/rs6000.c (output_cbranch): Likewise.
14473         * config/s390/s390.c (s390_expand_tbegin): Likewise.
14474         * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
14475         * config/sparc/sparc.c (output_cbranch): Likewise.
14476         * config/spu/spu.c (get_branch_target): Likewise.
14477         * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
14478         * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
14480 2013-09-23  Jan Hubicka  <jh@suse.cz>
14482         * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
14483         for ipa-devirt.
14484         * ipa-utils.h (possible_polymorphic_call_target_p): New function.
14485         * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
14486         of external calls
14487         * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
14488         (gimple_fold_call): Dump inconsistent devirtualizations; add
14489         sanity check for type based devirtualizations.
14490         * ipa-prop.c: Include ipa-utils.h
14491         (ipa_intraprocedural_devirtualization): Add sanity check.
14492         (try_make_edge_direct_virtual_call): Likewise.
14494 2013-09-23  Eric Botcazou  <ebotcazou@adacore.com>
14496         * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
14497         assignment statements.
14499 2013-09-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
14501         * gimple-pretty-print.c (dump_ssaname_info): New function.
14502         (dump_gimple_phi): Call it.
14503         (pp_gimple_stmt_1): Likewise.
14504         * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
14505         (range_info_def): Declare.
14506         * tree-pretty-print.c (pp_double_int): New function.
14507         (dump_generic_node): Call it.
14508         * tree-pretty-print.h (pp_double_int): Declare.
14509         * tree-ssa-alias.c (dump_alias_info): Check pointer type.
14510         * tree-ssanames.h (range_info_def): New structure.
14511         (value_range_type): Move definition here.
14512         (set_range_info, value_range_type, duplicate_ssa_name_range_info):
14513         Declare.
14514         * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
14515         initialization.
14516         (set_range_info): New function.
14517         (get_range_info): Likewise.
14518         (duplicate_ssa_name_range_info): Likewise.
14519         (duplicate_ssa_name_fn): Check pointer type and call
14520         duplicate_ssa_name_range_info.
14521         * tree-ssa-copy.c (fini_copy_prop): Likewise.
14522         * tree-vrp.c (value_range_type): Remove definition, now in
14523         tree-ssanames.h.
14524         (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
14525         * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
14526         (SSA_NAME_RANGE_INFO): New macro.
14528 2013-09-23  Richard Biener  <rguenther@suse.de>
14530         PR tree-optimization/58464
14531         * tree-ssa-pre.c (phi_trans_lookup): Remove.
14532         (phi_trans_add): Change to add conditionally on being not present.
14533         (phi_translate_1): Remove recursion detection here.
14534         (phi_translate): Pre-seed the cache with NULL to catch
14535         recursion here in a more generic way.
14536         (bitmap_find_leader): Adjust comment.
14537         (get_representative_for): Dump value-numbers.
14538         (create_expression_by_pieces): Likewise.
14539         (insert_into_preds_of_block): Likewise.
14541 2013-09-23  Christian Bruel  <christian.bruel@st.com>
14543         PR target/58475
14544         * config/sh/sh.md (movsf_ie): Allow fpul_operand.
14545         * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
14547 2013-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
14549         Revert r202780:
14550         2013-09-20  Renlin Li  <renlin.li@arm.com>
14552         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
14553         plus_constant.
14554         (aarch64_expand_epilogue): Likewise.
14555         (aarch64_legitimize_reload_address): Likewise.
14557 2013-09-22  Eric Botcazou  <ebotcazou@adacore.com>
14559         * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
14560         NULL_TREE before pushing them onto the vector.  Likewise for labels.
14562 2013-09-21  Eric Botcazou  <ebotcazou@adacore.com>
14564         * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
14565         comparison operators when -fno-trapping-math is in effect.
14566         * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
14567         comparison operators in TFmode and assert that unsupported operators
14568         cannot reach here.
14569         (ia64_print_operand): Likewise.
14571 2013-09-21  Jan Hubicka  <jh@suse.cz>
14573         * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
14574         (sse_typeless_stores): Enable for core
14575         (sse_load0_by_pxor): Likewise.
14576         (four_jump_limit): Disable for core.
14577         (pad_returns): Likewise.
14578         (avoid_vector_decode): Likewise.
14579         (fuse_cmp_and_branch): Enable for cores.
14580         * i386.c (x86_accumulate_outgoing_args): Disable for cores.
14582 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
14584         PR middle-end/56791
14585         * config/pa/pa.c (pa_option_override): Disable auto increment and
14586         decrement instructions until reload is completed.
14588         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
14589         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
14590         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
14592 2013-09-20  DJ Delorie  <dj@redhat.com>
14593             Nick Clifton  <nickc@redhat.com>
14595         * config/rl78/rl78.c: Various whitespace and comment tweaks.
14596         (need_to_save): Save bank 0 on interrupts.
14597         (characterize_address): Strip far address wrappers.
14598         (rl78_as_legitimate_address): Likewise.
14599         (transcode_memory_rtx): Likewise.
14600         (rl78_peep_movhi_p): Disable this peephole after devirt.
14601         (rl78_propogate_register_origins): Forget all origins when a
14602         CLOBBER is seen.
14603         * config/rl78/rl78-virt.md: Various whitespace tweaks.
14604         * config/rl78/rl78-real.md: Various whitespace tweaks.  Additional
14605         peephole2's.
14606         * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
14607         * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
14608         * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
14609         relocating.
14610         * config/rl78/constraints.md: Various whitespace and paren tweaks.
14612 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
14614         * config/pa/pa.md: In "scc" insn patterns, change output template to
14615         handle const0_rtx in reg_or_0_operand operands.
14617 2013-09-20  Martin Husemann  <martin@NetBSD.org>
14619         PR target/56875
14620         * config/vax/vax.c (vax_output_int_move): Use D format specifier.
14621         * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
14623 2013-09-20  Richard Biener  <rguenther@suse.de>
14625         PR middle-end/58484
14626         * tree-scalar-evolution.c (struct scev_info_str): Shrink by
14627         remembering SSA name version and block index.
14628         (new_scev_info_str): Adjust.
14629         (hash_scev_info): Likewise.  Also hash the block index.
14630         (eq_scev_info): Adjust.
14631         (find_var_scev_info): Likewise.
14632         (struct instantiate_cache_entry): Remove.
14633         (struct instantiate_cache_type): Use a htab to map name, block
14634         to chrec.
14635         (instantiate_cache_type::~instantiate_cache_type): Adjust.
14636         (get_instantiated_value_entry): Likewise.
14637         (hash_idx_scev_info, eq_idx_scev_info): New functions.
14638         (instantiate_scev_name): Adjust.
14640 2013-09-20  Jeff Law  <law@redhat.com>
14642         * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
14644 2013-09-20  Yufeng Zhang  <yufeng.zhang@arm.com>
14646         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
14647         Call aarch64_simd_expand_args to update op[argc].
14649 2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
14651         * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
14652         plugin argument.
14654 2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
14656         * gengtype.c (file_rules): Added rule for *.cc files.
14657         (get_output_file_with_visibility): Give fatal message when no
14658         rules found.
14660 2013-09-20  Renlin Li  <renlin.li@arm.com>
14662         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
14663         (aarch64_expand_epilogue): Likewise.
14664         (aarch64_legitimize_reload_address): Likewise.
14666 2013-09-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14668         PR middle-end/57748
14669         * expr.c (expand_assignment): Remove misalignp code path.
14671 2013-09-20  Marek Polacek  <polacek@redhat.com>
14673         PR sanitizer/58413
14674         * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
14675         TYPE_PRECISION.  Add asserts.
14677 2013-09-20  Richard Biener  <rguenther@suse.de>
14679         PR tree-optimization/58453
14680         * tree-loop-distribution.c (distribute_loop): Apply the cost
14681         model for -ftree-loop-distribute-patterns, too.
14683 2013-09-20  Richard Biener  <rguenther@suse.de>
14685         PR middle-end/58473
14686         * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
14687         make type comparison less strict.
14689 2013-09-20  Alan Modra  <amodra@gmail.com>
14691         * configure: Regenerate.
14692         * aclocal.m4: Regenerate.
14694 2013-09-20  Marek Polacek  <polacek@redhat.com>
14696         PR other/58467
14697         * doc/extend.texi: Document that attribute used is meant to be used
14698         on variables with static storage duration.
14700 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
14702         PR tree-optimization/58472
14703         * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
14704         simd_lane_access set inv_p = false.
14705         * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
14706         the simduid magic VAR_DECL.
14708 2013-09-19  Jan Hubicka  <jh@suse.cz>
14710         * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
14712 2013-09-17  Jeff Law  <law@redhat.com>
14714         * tree-ssa-dom.c (record_temporary_equivalences): New function
14715         split out of dom_opt_dom_walker::after_dom_children.
14716         (dom_opt_dom_walker::thread_across_edge): Move common code
14717         in here from dom_opt_dom_walker::after_dom_children.
14718         (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
14720 2013-09-19  Jan Hubicka  <jh@suse.cz>
14722         * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
14723         (TARGET_GENERIC): Use PROCESOR_GENERIC
14724         (enum processor_type): Unify generic32 and 64.
14725         * i386.md (cpu): Likewise.
14726         * x86-tune.def (use_leave): Enable for generic32.
14727         (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
14728         * athlon.md: Change generic64 to generic in all occurences.
14729         * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
14730         (ix86_target_macros_internal): Likewise.
14731         * driver-i386.c (host_detect_local_cpu): Likewise.
14732         * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
14733         to ..
14734         (generic_memcpy, generic_memset, generic_cost): This one.
14735         (generic32_memcpy, generic32_memset, generic32_cost): Remove.
14736         (m_GENERIC32, m_GENERIC64): Remove.
14737         (m_GENERIC): Turn into one flag.
14738         (processor_target): Unify generic tunnings.
14739         (ix86_option_override_internal): Replace generic32/64 by generic.
14740         (ix86_issue_rate): Likewise.
14741         (ix86_adjust_cost): Likewise.
14743 2013-09-19  Jan Hubicka  <jh@suse.cz>
14745         * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
14746         of speculative flag.
14748 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
14750         * omp-low.c (expand_omp_sections): Always pass len - 1 to
14751         GOMP_sections_start, even if !exit_reachable.
14753 2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
14755         * lra-constraints.c (need_for_all_save_p): Use macro
14756         HARD_REGNO_CALL_PART_CLOBBERED.
14757         * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
14758         set up pseudo conflict hard regs.
14760 2013-09-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
14762         PR target/58452
14763         * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
14764         operands.
14766 2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
14768         PR rtl-optimization/58438
14769         * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
14770         * lra-constraints.c (undo_optional_reloads): Keep optional reloads
14771         from previous subpasses.
14773 2013-09-18  Richard Earnshaw  <rearnsha@arm.com>
14775         * arm.c (arm_get_frame_offsets): Validate architecture supports
14776         LDRD/STRD before accepting the tuning preference.
14777         (arm_expand_prologue): Likewise.
14778         (arm_expand_epilogue): Likewise.
14780 2013-09-18  Richard Biener  <rguenther@suse.de>
14782         PR tree-optimization/58417
14783         * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
14784         have chrecs with symbols defined in the loop as operands.
14785         (chrec_fold_multiply): Likewise.
14786         * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
14787         parameters before folding binary operations.
14788         (struct instantiate_cache_entry_hasher): Remove.
14789         (struct instantiate_cache_type): Use a pointer-map.
14790         (instantiate_cache_type::instantiate_cache_type): New function.
14791         (instantiate_cache_type::get): Likewise.
14792         (instantiate_cache_type::set): Likewise.
14793         (instantiate_cache_type::~instantiate_cache_type): Adjust.
14794         (get_instantiated_value_entry): Likewise.
14795         (global_cache): New global.
14796         (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
14797         instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
14798         instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
14799         (instantiate_scev_name): Adjust.
14800         (instantiate_scev): Construct global instead of local cache.
14801         (resolve_mixers): Likewise.
14803 2013-09-18  Daniel Morris  <danielm@ecoscentric.com>
14804             Paolo Carlini  <paolo.carlini@oracle.com>
14806         PR c++/58458
14807         * doc/implement-cxx.texi: Fix references to the C++ standards.
14809 2013-09-18  Jakub Jelinek  <jakub@redhat.com>
14811         * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
14812         * tree-vect-data-refs.c (vect_analyze_data_refs): For
14813         simd_lane_access drs, update also DR_ALIGNED_TO.
14815 2013-09-18  Marek Polacek  <polacek@redhat.com>
14817         PR sanitizer/58411
14818         * doc/extend.texi: Document no_sanitize_undefined attribute.
14819         * builtins.c (fold_builtin_0): Don't sanitize function if it has the
14820         no_sanitize_undefined attribute.
14822 2013-09-18  Nick Clifton  <nickc@redhat.com>
14824         * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
14825         (ASM_DECLARE_FUNCTION_NAME): Define.
14827 2013-09-17  Trevor Saunders  <tsaunders@mozilla.com>
14829         * compare-elim.c (find_comparison_dom_walker): New class
14830         (find_comparisons_in_bb): Rename to
14831         find_comparison_dom_walker::before_dom_children
14832         (find_comparisons): Adjust
14833         * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
14834         adjust.
14835         (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
14836         * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
14837         (init_walk_dominator_tree): Remove declaration.
14838         (fini_walk_dominator_tree): Remove declaration.
14839         * fwprop.c (single_def_use_dom_walker): New class
14840         (single_def_use_enter_block): Convert to
14841         single_def_use_dom_walker::before_dom_children.
14842         (single_def_use_leave_block): Convert to
14843         single_def_use_dom_walker::after_dom_children.
14844         (build_single_def_use_links): Adjust.
14845         * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
14846         class.
14847         (find_candidates_in_block): Convert to
14848         find_candidates_dom_walker::before_dom_children.
14849         (execute_strength_reduction): Adjust.
14850         * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
14851         (sese_dom_walker): New class.
14852         (sese_dom_walker::sese_dom_walker): New constructor.
14853         (sese_dom_walker::~sese_dom_walker): New destructor.
14854         (build_sese_conditions_before): Convert to
14855         sese_dom_walker::before_dom_children.
14856         (build_sese_conditions_after): Convert to
14857         sese_dom_walker::after_dom_children.
14858         (build_poly_scop): Adjust
14859         * tree-into-ssa.c (rewrite_dom_walker): New class
14860         (rewrite_enter_block): Convert to
14861         rewrite_dom_walker::before_dom_children.
14862         (rewrite_leave_block): Convert to
14863         rewrite_dom_walker::after_dom_children.
14864         (rewrite_update_dom_walker): New class.
14865         (rewrite_update_enter_block): Convert to
14866         rewrite_update_dom_walker::before_dom_children.
14867         (rewrite_update_leave_block): Convert to
14868         rewrite_update_dom_walker::after_dom_children.
14869         (rewrite_blocks, rewrite_into_ssa): Adjust.
14870         (mark_def_dom_walker): New class.
14871         (mark_def_dom_walker::mark_def_dom_walker): New constructor.
14872         (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
14873         (mark_def_sites_blocks): Convert to
14874         mark_def_dom_walker::before_dom_children.
14875         (mark_def_site_blocks): Remove.
14876         * tree-ssa-dom.c (dom_opt_dom_walker): New class.
14877         (tree_ssa_dominator_optimize): Adjust.
14878         (dom_thread_across_edge): Convert to method
14879         dom_opt_dom_walker::thread_across_edge.
14880         (dom_opt_enter_block): Convert to member function
14881         dom_opt_dom_walker::before_dom_children.
14882         (dom_opt_leave_block): Convert to member function
14883         dom_opt_dom_walker::after_dom_children.
14884         * tree-ssa-dse.c (dse_dom_walker): New class.
14885         (dse_enter_block): Convert to member function
14886         dse_dom_walker::before_dom_children.
14887         (tree_ssa_dse): Adjust.
14888         * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
14889         (determine_invariantness_stmt): Convert to method
14890         invariantness_dom_walker::before_dom_children.
14891         (determine_invariantness): Remove
14892         (move_computations_dom_walker): New class.
14893         (move_computations_stmt): Convert to method
14894         move_computations_dom_walker::before_dom_children.
14895         (move_computations, tree_ssa_lim): Adjust.
14896         * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
14897         (nt_init_block): Convert to method
14898         notrappping_dom_walker::before_dom_children.
14899         (nt_fini_block): Convert to method
14900         method nontrapping_dom_walker::after_dom_children.
14901         (get_non_trapping): Adjust.
14902         * tree-ssa-pre.c (eliminate_dom_walker): New class.
14903         (eliminate_bb): Convert to method
14904         eliminate_dom_walker::before_dom_children.
14905         (eliminate_leave_block): Convert to method
14906         eliminate_dom_walker::after_dom_children.
14907         (eliminate): Adjust.
14908         * tree-ssa-strlen.c (strlen_dom_walker): New class.
14909         (strlen_enter_block): Convert to method
14910         strlen_dom_walker::before_dom_children.
14911         (strlen_leave_block): Convert to method
14912         method strlen_dom_walker::after_dom_children.
14913         (tree_ssa_strlen): Adjust.
14914         * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
14915         (tree_ssa_uncprop): Adjust.
14916         (uncprop_leave_block): Convert to method
14917         uncprop_dom_walker::after_dom_children.
14918         (uncprop_leave_block): Convert to method
14919         uncprop_dom_walker::before_dom_children.
14921 2013-09-18  Bin Cheng  <bin.cheng@arm.com>
14923         * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
14924         branch in same basic block.  Check both src and dest of the move insn.
14926 2013-09-17  Nick Clifton  <nickc@redhat.com>
14928         * config/rl78/rl78-real.md (bf): New pattern.
14929         (bt): New pattern.
14930         * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
14931         (rl78_print_operand): Do not put a # before a %B.
14932         * config/rl78/rl78.opt: Tweak doc strings.
14934 2013-09-17  DJ Delorie  <dj@redhat.com>
14936         * config/rl78/constraints.md (Wcv): Allow up to $r31.
14937         * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
14938         (rl78_option_override): Likewise, if -mallregs.
14939         (is_virtual_register): Likewise.
14940         * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
14941         (REGNO_OK_FOR_BASE_P): Likewise.
14942         * config/rl78/rl78.opt (-mallregs): New.
14944 2013-09-17  Nick Clifton  <nickc@redhat.com>
14946         * config/rl78/rl78.c (need_to_save): Change return type to bool.
14947         For interrupt functions: save all call clobbered registers if the
14948         interrupt handler is not a leaf function.
14949         (rl78_expand_prologue): Always recompute the frame information.
14950         For interrupt functions: only select bank 0 if one of the bank 0
14951         registers is going to be psuhed.
14953 2013-09-17  DJ Delorie  <dj@redhat.com>
14955         * config/rl78/constraints.md: For each W* constraint, rename to C*
14956         and create a W* constraint that checks for an optional ES: prefix
14957         pattern also.
14958         * config/rl78/rl78.md (UNS_ES_ADDR): New.
14959         (es_addr): New.  Used to wrap far addresses.
14960         * config/rl78/rl78-protos.h (rl78_es_addr): New.
14961         (rl78_es_base): New.
14962         * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
14963         wrapped far addresses.
14964         (rl78_print_operand_1): Unwrap far addresses before processing.
14965         (rl78_lo16): Wrap far addresses in unspecs.
14966         (rl78_es_addr): New.
14967         (rl78_es_base): New.
14968         (insn_ok_now): Check for not-yet-wrapped far addresses.
14969         (transcode_memory_rtx): Properly re-wrap far addresses.
14971 2013-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14973         * config/sparc/t-rtems: Add leon3 multilibs.
14975 2013-09-17  Cong Hou  <congh@google.com>
14977         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
14978         when checking the dot production pattern. The type of rhs operand
14979         of multiply is now checked correctly.
14981 2013-09-17  Jeff Law  <law@redhat.com>
14983         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
14984         edge implied equivalences into successor phis.
14985         * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
14986         here from tree-ssa-threadedge.c.
14987         (mark_threaded_blocks): When threading through a joiner, if both
14988         successors of the joiner's clone reach the same block, verify the
14989         PHI arguments are equal.  If not, cancel the jump threading request.
14990         * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
14991         tree-ssa-threadupdate.c
14992         (thread_across_edge): Don't check PHI argument equality when
14993         threading through joiner block here.
14995 2013-09-17  Andrew MacLeod <amacleod@redhat.com>
14997         * tree-flow.h (ssa_undefined_value_p): Remove prototype.
14998         * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
14999         (warn_uninit, warn_uninitialized_vars,
15000         execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
15001         Move to tree-ssa-uninit.c.
15002         * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
15003         (has_undefined_value_p): New.  Pass dependant parts of
15004         ssa_undefined_value_p.
15005         (uninit_undefined_value_p): Use has_undefined_value_p.
15006         (warn_uninit, warn_uninitialized_vars,
15007         execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
15008         Move from tree-ssa.c.
15009         * tree-ssa.h: Adjust prototypes.
15011 2013-09-17  Jan Hubicka  <jh@suse.cz>
15013         PR middle-end/58332
15014         * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
15015         * ipa-inline.c (can_inline_edge_p): Do not downgrade
15016         FUNCTION_NOT_OPTIMIZED.
15017         * ipa-inline-analysis.c (compute_inline_parameters): Function
15018         not optimized is not inlinable unless it is alwaysinline.
15019         (inline_analyze_function): Force calls in not optimized
15020         function not inlinable.
15022 2013-09-17  Jan Hubicka  <jh@suse.cz>
15024         PR middle-end/58329
15025         * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
15026         to return NULL.
15027         * ipa.c (function_and_variable_visibility): Likewise.
15028         * ipa-profile.c (ipa_profile): Likewise.
15030 2013-09-17  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15032         PR ipa/58398
15033         * cgraph.c (cgraph_function_body_availability): Check for ifunc
15034         attribute, and don't inline the resolver in this case.
15036 2013-09-17  Teresa Johnson  <tejohnson@google.com>
15038         * coverage.c (get_coverage_counts): Add missing newline.
15040 2013-09-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15042         PR tree-optimization/58088
15043         * fold-const.c (mask_with_trailing_zeros): New function.
15044         (fold_binary_loc): Make sure we don't recurse infinitely
15045         when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
15046         Use mask_with_trailing_zeros where appropriate.
15048 2013-09-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
15050         * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
15051         of 'prev' var to get better distance estimation.
15053 2013-09-17  Eric Botcazou  <ebotcazou@adacore.com>
15055         * tree-inline.h (struct copy_body_data): Add transform_parameter.
15056         * tree-inline.c (is_parameter_of): New predicate.
15057         (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
15058         a parameter has been remapped.
15059         (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
15060         (optimize_inline_calls): Initialize transform_parameter.
15061         (copy_gimple_seq_and_replace_locals): Likewise.
15062         (tree_function_versioning): Likewise.
15063         (maybe_inline_call_in_expr): Likewise.
15065 2013-09-17  Nick Clifton  <nickc@redhat.com>
15067         * config/msp430/msp430-protos.h: Add prototypes for new functions.
15068         * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
15069         interrupt handlers.
15070         (is_attr_func): New function.
15071         (msp430_is_interrupt_func): New function.
15072         (is_naked_func): New function.
15073         (is_reentrant_func): New function.
15074         (is_critical_func): New function.
15075         (msp430_start_function): Add annotations for function attributes.
15076         (msp430_attr): New function.
15077         (msp430_attribute_table): New.
15078         (msp430_function_section): New function.
15079         (TARGET_ASM_FUNCTION_SECTION): Define.
15080         (msp430_builtin): New enum.
15081         (msp430_init_builtins): New function.
15082         (msp430_builtin_devl): New function.
15083         (msp430_expand_builtin): New function.
15084         (TARGET_INIT_BUILTINS): Define.
15085         (TARGET_EXPAND_BUILTINS): Define.
15086         (TARGET_BUILTIN_DECL): Define.
15087         (msp430_expand_prologue): Add support for naked, interrupt,
15088         critical and reentrant functions.
15089         (msp430_expand_epilogue): Likewise.
15090         (msp430_print_operand): Handle 'O' character.
15091         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
15092         NO_TRAMPOLINES.
15093         * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
15094         UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
15095         (pushm): Use a 'n' rather than an 'i' constraint.
15096         (msp_return): Add generation of the interrupt return instruction.
15097         (disable_interrupts): New pattern.
15098         (enable_interrupts): New pattern.
15099         (push_intr_state): New pattern.
15100         (pop_intr_state): New pattern.
15101         (bic_SR): New pattern.
15102         (bis_SR): New pattern.
15103         * doc/extend.texi: Document MSP430 function attributes and builtin
15104         functions.
15106 2013-09-17  Richard Biener  <rguenther@suse.de>
15108         PR tree-optimization/58432
15109         * tree-loop-distribution.c (tree_loop_distribution): Also
15110         scan PHIs for outside loop uses and seed a partition from them.
15112 2013-09-17  Bin Cheng  <bin.cheng@arm.com>
15114         * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
15115         (restructure_reference): Call backtrace_base_for_ref.
15117 2013-09-17  Alan Modra  <amodra@gmail.com>
15119         PR target/57589
15120         * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
15121         patch.
15123 2013-09-16  DJ Delorie  <dj@redhat.com>
15125         * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
15126         vregs location for RL78/G10.
15127         (rl78_expand_prologue): Avoid SEL on G10.
15128         (rl78_expand_epilogue): Likewise.
15129         (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
15130         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
15131         __RL78_G10__ when appropriate.
15132         (ASM_SPEC): Pass -mg10 along to the assembler.
15133         * config/rl78/rl78.md (sel_rb): Disable for G10.
15134         * config/rl78/rl78.opt: Add -mg10 option.
15135         * config/rl78/t-rl78: Add -mg10 multilib.
15137 2013-09-16  Xinliang David Li  <davidxl@google.com>
15139         * tree-if-conv.c (main_tree_if_conversion): Check new flag.
15140         * omp-low.c (omp_max_vf): Ditto.
15141         (expand_omp_simd): Ditto.
15142         * tree-vectorizer.c (vectorize_loops): Ditto.
15143         (gate_vect_slp): Ditto.
15144         (gate_increase_alignment): Ditto.
15145         * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
15146         * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
15147         (gate_tree_vectorize): Name change.
15148         (tree_vectorize): Ditto.
15149         (pass_vectorize::gate): Call new function.
15150         (pass_vectorize::execute): Ditto.
15151         * opts.c: O3 default setting change.
15152         (finish_options): Check new flag.
15153         * doc/invoke.texi: Document new flags.
15154         * common.opt: New flags.
15156 2013-09-16  Andreas Schwab  <schwab@linux-m68k.org>
15158         * doc/tm.texi.in (Cond Exec Macros): Remove node.
15159         (Condition Code): Don't reference it.
15160         * doc/tm.texi: Regenerate.
15162 2013-09-16  Vladimir Makarov  <vmakarov@redhat.com>
15164         PR middle-end/58418
15165         * lra-constraints.c (undo_optional_reloads): Consider all optional
15166         reload even if it did not get a hard reg.
15168 2013-09-16  Teresa Johnson  <tejohnson@google.com>
15170         * dumpfile.c (dump_loc): Remove newline emission.
15171         * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
15172         emission to dump_printf_loc calls where missing.
15173         (vect_mark_for_runtime_alias_test): Ditto.
15174         (vect_analyze_data_ref_dependence): Ditto.
15175         (vect_analyze_data_ref_dependences): Ditto.
15176         (vect_slp_analyze_data_ref_dependence): Ditto.
15177         (vect_slp_analyze_data_ref_dependences): Ditto.
15178         (vect_compute_data_ref_alignment): Ditto.
15179         (vect_update_misalignment_for_peel): Ditto.
15180         (vect_verify_datarefs_alignment): Ditto.
15181         (vector_alignment_reachable_p): Ditto.
15182         (vect_get_data_access_cost): Ditto.
15183         (vect_enhance_data_refs_alignment): Ditto.
15184         (vect_find_same_alignment_drs): Ditto.
15185         (vect_analyze_data_refs_alignment): Ditto.
15186         (vect_analyze_group_access): Ditto.
15187         (vect_analyze_data_ref_access): Ditto.
15188         (vect_analyze_data_ref_accesses): Ditto.
15189         (vect_prune_runtime_alias_test_list): Ditto.
15190         (vect_analyze_data_refs): Ditto.
15191         (vect_create_addr_base_for_vector_ref): Ditto.
15192         (vect_create_data_ref_ptr): Ditto.
15193         (vect_grouped_store_supported): Ditto.
15194         (vect_grouped_load_supported): Ditto.
15195         * value-prof.c (check_counter): Ditto.
15196         (check_ic_target): Ditto.
15197         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
15198         (vect_recog_widen_mult_pattern): Ditto.
15199         (vect_recog_widen_sum_pattern): Ditto.
15200         (vect_recog_over_widening_pattern): Ditto.
15201         (vect_recog_widen_shift_pattern): Ditto.
15202         (vect_recog_rotate_pattern): Ditto.
15203         (vect_recog_vector_vector_shift_pattern): Ditto.
15204         (vect_recog_divmod_pattern): Ditto.
15205         (vect_recog_mixed_size_cond_pattern): Ditto.
15206         (vect_recog_bool_pattern): Ditto.
15207         (vect_pattern_recog_1): Ditto.
15208         (vect_pattern_recog): Ditto.
15209         * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
15210         (vect_is_simple_iv_evolution): Ditto.
15211         (vect_analyze_scalar_cycles_1): Ditto.
15212         (vect_get_loop_niters): Ditto.
15213         (vect_analyze_loop_1): Ditto.
15214         (vect_analyze_loop_form): Ditto.
15215         (vect_analyze_loop_operations): Ditto.
15216         (vect_analyze_loop_2): Ditto.
15217         (vect_analyze_loop): Ditto.
15218         (report_vect_op): Ditto.
15219         (vect_is_slp_reduction): Ditto.
15220         (vect_is_simple_reduction_1): Ditto.
15221         (vect_get_known_peeling_cost): Ditto.
15222         (vect_estimate_min_profitable_iters): Ditto.
15223         (vect_model_reduction_cost): Ditto.
15224         (vect_model_induction_cost): Ditto.
15225         (get_initial_def_for_induction): Ditto.
15226         (vect_create_epilog_for_reduction): Ditto.
15227         (vectorizable_reduction): Ditto.
15228         (vectorizable_induction): Ditto.
15229         (vectorizable_live_operation): Ditto.
15230         (vect_loop_kill_debug_uses): Ditto.
15231         (vect_transform_loop): Ditto.
15232         * tree-vect-stmts.c (vect_mark_relevant): Ditto.
15233         (vect_stmt_relevant_p): Ditto.
15234         (process_use): Ditto.
15235         (vect_mark_stmts_to_be_vectorized): Ditto.
15236         (vect_model_simple_cost): Ditto.
15237         (vect_model_promotion_demotion_cost): Ditto.
15238         (vect_model_store_cost): Ditto.
15239         (vect_get_store_cost): Ditto.
15240         (vect_model_load_cost): Ditto.
15241         (vect_get_load_cost): Ditto.
15242         (vect_init_vector_1): Ditto.
15243         (vect_get_vec_def_for_operand): Ditto.
15244         (vect_finish_stmt_generation): Ditto.
15245         (vectorizable_call): Ditto.
15246         (vectorizable_conversion): Ditto.
15247         (vectorizable_assignment): Ditto.
15248         (vectorizable_shift): Ditto.
15249         (vectorizable_operation): Ditto.
15250         (vectorizable_store): Ditto.
15251         (vectorizable_load): Ditto.
15252         (vectorizable_condition): Ditto.
15253         (vect_analyze_stmt): Ditto.
15254         (vect_transform_stmt): Ditto.
15255         (vect_is_simple_use): Ditto.
15256         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
15257         (vect_can_advance_ivs_p): Ditto.
15258         (vect_update_ivs_after_vectorizer): Ditto.
15259         (vect_do_peeling_for_loop_bound): Ditto.
15260         (vect_gen_niters_for_prolog_loop): Ditto.
15261         (vect_update_inits_of_drs): Ditto.
15262         (vect_create_cond_for_alias_checks): Ditto.
15263         * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
15264         (vect_build_slp_tree_1): Ditto.
15265         (vect_supported_load_permutation_p): Ditto.
15266         (vect_analyze_slp_instance): Ditto.
15267         (vect_analyze_slp): Ditto.
15268         (vect_make_slp_decision): Ditto.
15269         (vect_detect_hybrid_slp): Ditto.
15270         (vect_bb_vectorization_profitable_p): Ditto.
15271         (vect_slp_analyze_bb_1): Ditto.
15272         (vect_update_slp_costs_according_to_vf): Ditto.
15273         (vect_get_mask_element): Ditto.
15274         (vect_transform_slp_perm_load): Ditto.
15275         (vect_schedule_slp_instance): Ditto.
15276         (vect_schedule_slp): Ditto.
15277         (vect_slp_transform_bb): Ditto.
15278         * profile.c (read_profile_edge_counts): Ditto.
15279         (compute_branch_probabilities): Ditto.
15280         * coverage.c (get_coverage_counts): Ditto.
15282 2013-09-16  Diego Novillo  <dnovillo@google.com>
15284         * tree-core.h: Add missing comment lines from refactoring of tree.h.
15286 2013-09-16  Jan Hubicka  <jh@suse.cz>
15288         * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
15289         abstract functions; for static functions check the presence of body.
15291 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
15293         * config/aarch64/aarch64-simd-builtins.def (fma): New.
15294         * config/aarch64/aarch64-simd.md
15295         (aarch64_mla_elt<mode>): New.
15296         (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
15297         (aarch64_mls_elt<mode>): Likewise.
15298         (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
15299         (aarch64_fma4_elt<mode>): Likewise.
15300         (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
15301         (aarch64_fma4_elt_to_128v2df): Likewise.
15302         (aarch64_fma4_elt_to_64df): Likewise.
15303         (fnma<mode>4): Likewise.
15304         (aarch64_fnma4_elt<mode>): Likewise.
15305         (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
15306         (aarch64_fnma4_elt_to_128v2df): Likewise.
15307         (aarch64_fnma4_elt_to_64df): Likewise.
15308         * config/aarch64/iterators.md (VDQSF): New.
15309         * config/aarch64/arm_neon.h
15310         (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
15311         (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
15313 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
15315         * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
15316         (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
15317         (aarch64_mul3_elt_to_128df): Likewise.
15318         (aarch64_mul3_elt_to_64v2df): Likewise.
15319         * config/aarch64/iterators.md (VEL): Also handle DFmode.
15320         (VMUL): New.
15321         (VMUL_CHANGE_NLANES) Likewise.
15322         (h_con): Likewise.
15323         (f): Likewise.
15324         * config/aarch64/arm_neon.h
15325         (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
15327 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
15329         * config/aarch64/arm_neon.h
15330         (vcvtx_high_f32_f64): Fix parameters.
15332 2013-09-16  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
15333             Uros Bizjak  <ubizjak@gmail.com>
15335         * config/alpha.c: Include tree-ssanames.h.
15337 2013-09-16  Richard Biener  <rguenther@suse.de>
15339         * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
15340         (dot_rdg_1): Handle control_dd.
15341         (create_edge_for_control_dependence): New function.
15342         (create_rdg_edges): Add control dependences if asked for.
15343         (build_rdg): Likewise.
15344         (generate_loops_for_partition): If there are not necessary
15345         control stmts remove all their dependencies.
15346         (collect_condition_stmts, rdg_flag_loop_exits): Remove.
15347         (distribute_loop): Pass on control dependences.
15348         (tree_loop_distribution): Compute control dependences and remove
15349         restriction on number of loop nodes.
15351 2013-09-16  Jakub Jelinek  <jakub@redhat.com>
15353         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
15354         for internal calls.
15356 2013-09-16  Richard Sandiford  <rdsandiford@googlemail.com>
15358         * cse.c (try_const_anchors): Punt on CC modes.
15360 2013-09-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
15362         * config/vax/constraints.md (T): Add missing CONSTANT_P check.
15364 2013-09-14  John David Anglin  <danglin@gcc.gnu.org>
15366         PR target/58382
15367         * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
15368         calls to word_mode.
15370 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
15372         PR target/48094
15373         * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
15374         seen.
15375         (darwin_objc1_section): Likewise.
15376         (darwin_file_end): Emit Image Info section when required.
15378 2013-09-14  Jan Hubicka  <jh@suse.cz>
15380         * tree-into-ssa.c (gate_into_ssa): New.
15381         (pass_data_build_ssa): Use it.
15382         * cgraph.h (expand_thunk): Update prototype.
15383         * cgraphunit.c (analyze_function): Expand thunks early.
15384         (expand_thunk): Fix DECL_CONTEXT of reust_decl;
15385         build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
15386         set lowered flag; do not add new function.
15387         (assemble_thunks_and_aliases): Update.
15388         * tree-ssa.c (gate_init_datastructures): New gate.
15389         (pass_data_init_datastructures): Use it.
15391 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
15393         PR target/58269
15394         * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
15395         xmm register set described in the psABI.
15397 2013-09-13  Evgeny Gavrin <e.gavrin@samsung.com>
15399         * dwarf2out.c (should_emit_struct_debug): Add check
15400         for type_decl variable is not NULL.
15402 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
15404         * config.gcc: Use new winnt-c.c target hooks
15405         * config/t-winnt: New file
15406         * config/winnt-c.c: New file
15407         * doc/tm.texi.in: Document new hook
15408         * doc/tm.texi: Regenerated
15410 2013-09-13  Jan Hubicka  <jh@suse.cz>
15412         PR middle-end/58094
15413         * ipa-inline.c (check_callers): New function.
15414         (check_caller_edge): Remove.
15415         (want_inline_function_to_all_callers_p): Also permit alises that are
15416         called dirrectly.
15417         (inline_to_all_callers): Terminate the walk when devirtualization
15418         introduce new calls.
15420 2013-09-13  Jan Hubicka  <jh@suse.cz>
15422         * ipa-inline-analysis.c (struct growth_data): Add node.
15423         (do_estimate_growth_1): Fix detection of recursion.
15425 2013-09-13  Jakub Jelinek  <jakub@redhat.com>
15427         PR tree-optimization/58392
15428         * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
15429         to avoid shadowing of outer loop variable.  If
15430         saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
15431         replace_by_duplicate_decl simduid of loops that have it set and
15432         set dest_cfun->has_simduid_loops and/or
15433         dest_cfun->has_force_vect_loops.
15434         * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
15435         instead of maybe_lookup_decl.
15436         * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
15437         Use id->blocks_to_copy instead of blocks_to_copy.  Adjust recursive
15438         call.  Copy over force_vect and copy and remap simduid.  Set
15439         cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
15440         (copy_cfg_body): Remove blocks_to_copy argument.  Use
15441         id->blocks_to_copy instead of blocks_to_copy.  Adjust copy_loops
15442         caller.  Don't set cfun->has_simduid_loops and/or
15443         cfun->has_force_vect_loops here.
15444         (copy_body): Remove blocks_to_copy argument.  Adjust copy_cfg_body
15445         caller.
15446         (expand_call_inline, tree_function_versioning): Adjust copy_body
15447         callers.
15449 2013-09-13  Martin Jambor  <mjambor@suse.cz>
15451         PR bootstrap/58388
15452         * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
15453         the assert if the edge was a speculative one.
15455 2013-09-13  Richard Biener  <rguenther@suse.de>
15457         * tree-data-ref.h (known_dependences_p): Move here ...
15458         * tree-loop-distribution.c (known_dependences_p): ... from here.
15459         (dump_rdg_component, debug_rdg_component): Remove.
15460         (dump_rdg): Adjust.
15461         (generate_loops_for_partition): Use gimple_uid instead of
15462         relying on matching stmt visit order.
15463         (rdg_build_partitions): Take starting stmt vector.
15464         (ldist_gen): Merge into ...
15465         (distribute_loop): ... this function.  Do not compute starting
15466         vertices vector.
15467         * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
15469 2013-09-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15471         * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
15472         Set type attribute correctly. Set predicable_short_it attribute.
15473         (cmpsi_shiftsi): Remove %? from output template.
15475 2013-09-13  Richard Biener  <rguenther@suse.de>
15477         * tree-loop-distribution.c (struct rdg_component,
15478         rdg_defs_used_in_other_loops_p, free_rdg_components,
15479         rdg_build_components): Remove.
15480         (stmts_from_loop): Do not record virtual PHIs.
15481         (generate_loops_for_partition): Skip virtual PHIs.
15482         (build_rdg_partition_for_component): Rename to ...
15483         (build_rdg_partition_for_vertex): ... this and adjust.
15484         (rdg_build_partitions): Take a vector of starting vertices
15485         instead of components.  Remove unnecessary leftover handling.
15486         (ldist_gen): Do not build components or record other stores.
15487         (distribute_loop): Do not distribute loops containing stmts
15488         with side-effects.
15490 2013-09-13  Christian Bruel  <christian.bruel@st.com>
15492         PR target/58314
15493         * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
15495 2013-09-13  Kai Tietz  <ktietz@redhat.com>
15497         * config.gcc: Separate cases for mingw and cygwin targets,
15498         and add 64-bit cygwin target case.
15500         * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
15501         dll-export inline-functions.
15502         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
15504 2013-09-13  Jeff Law  <law@redhat.com>
15506         PR middle-end/58387
15507         Revert:
15508         2013-09-06  Jeff Law  <law@redhat.com>
15510         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
15511         edge implied equivalences into successor phis.
15513 2013-09-12  DJ Delorie  <dj@redhat.com>
15515         * config/rl78/rl78-virt.md: Change from | to \; for asm line
15516         separators.
15518 2013-09-12  Brooks Moses  <bmoses@google.com>
15520         PR driver/42955
15521         * Makefile.in: Do not install driver binaries in $(target)/bin.
15523 2013-09-12  DJ Delorie  <dj@redhat.com>
15525         * config/rl78/rl78.opt (mrelax): New.
15526         * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
15527         * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
15529         * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
15530         between SP and FP.
15531         (rl78_expand_epilogue): Likewise.
15533 2013-09-12  Vladimir Makarov  <vmakarov@redhat.com>
15535         PR middle-end/58335
15536         * lra-eliminations.c (remove_reg_equal_offset_note): New.
15537         (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
15538         pointer elimination with using remove_reg_equal_offset_note.
15540 2013-09-12  DJ Delorie  <dj@redhat.com>
15542         * config/msp430/: New port.
15543         * config.gcc (msp430): Added.
15544         * doc/invoke.texi: Document MSP430 options.
15545         * doc/install.texi: Document msp430-elf
15546         * doc/md.texi: Document msp430-elf
15547         * doc/contrib.texi: Document msp430-elf
15549         * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
15550         PSImode.
15552 2013-09-12  Martin Jambor  <mjambor@suse.cz>
15554         PR ipa/58389
15555         * ipa-prop.c (remove_described_reference): Give up if the edge in the
15556         reference descriptor is NULL.
15557         (ipa_edge_removal_hook): If owning a reference descriptor, set its
15558         edge to NULL.
15560 2013-09-12  Andrew MacLeod  <amacleod@redhat.com>
15562         * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
15563         (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
15564         num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
15565         * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
15566         make_temp_ssa_name): move to tree-ssanames.h
15567         * tree-ssa-alias.h: Move prototype.
15568         * tree-ssa.h: Include tree-ssanames.h.
15569         * tree-ssanames.c (FREE_SSANAMES): Move to here.
15570         * tree-ssanames.h: New.  Move items from tree-flow*.h
15571         * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
15573 2013-09-12  Richard Biener  <rguenther@suse.de>
15575         PR tree-optimization/58404
15576         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
15577         propagate non-invariant addresses into dereferences wrapped
15578         in component references.
15580 2013-09-12  Richard Biener  <rguenther@suse.de>
15582         PR tree-optimization/58402
15583         * passes.def: Move pass_late_warn_uninitialized later.
15585 2013-09-12  Andrew MacLeod  <amacleod@redhat.com>
15587         * tree-ssa.h: New.  Move content from tree-flow.h and
15588         tree-flow-inline.h.
15589         * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
15590         Move prototypes belonging to tree-ssa.c.
15591         * tree-flow-inline.h (redirect_edge_var_map_def,
15592         redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
15593         tree-ssa.h.
15594         * gimple.h: Adjust prototypes.
15595         * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
15596         to...
15597         * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
15598         * tree.h: Move prototype to tree-ssa.h.
15599         * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
15600         * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
15601         * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
15602         cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
15603         cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
15604         ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
15605         gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
15606         gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
15607         graphite-blocking.c, graphite-clast-to-gimple.c,
15608         graphite-dependences.c, graphite-interchange.c,
15609         graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
15610         graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
15611         ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
15612         ipa-reference.c, ipa-split.c, ipa-utils.c,
15613         loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
15614         lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
15615         passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
15616         tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
15617         tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
15618         tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
15619         tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
15620         tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
15621         tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
15622         tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
15623         tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
15624         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
15625         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
15626         tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
15627         value-prof.c, var-tracking.c,
15628         varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
15630 2013-09-12  Richard Biener  <rguenther@suse.de>
15632         PR tree-optimization/58396
15633         * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
15634         (build_rdg): Take a loop-nest parameter, fix memleaks.
15635         (distribute_loop): Compute loop-nest here and pass it to build_rdg.
15637 2013-09-12  Yuri Rumyantsev  <ysrumyan@gmail.com>
15639         * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
15640         for SLM.
15642 2013-09-12  Cameron McInally  <cameron.mcinally@nyu.edu>
15644         * doc/extend.texi: Fix errors in x86 FMA builtin naming.
15645         The FMA instruction names should have a 'v' prefix.
15647 2013-09-12  Richard Biener  <rguenther@suse.de>
15649         * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
15650         (dot_rdg): Use popen instead of system in optional code.
15651         (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
15652         (already_processed_vertex_p): Adjust.
15653         (has_anti_or_output_dependence, predecessor_has_mem_write,
15654         mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
15655         rdg_flag_uses): Remove.
15656         (rdg_flag_vertex): Simplify.
15657         (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
15658         remove recursion.
15659         (build_rdg_partition_for_component): Process the first vertex
15660         of a component only.
15661         (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
15663 2013-09-12  Alan Modra  <amodra@gmail.com>
15665         * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
15667 2013-09-11  DJ Delorie  <dj@redhat.com>
15668             Nick Clifton  <nickc@redhat.com>
15670         * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
15671         (rl78_stack_based_mem): New.
15672         * config/rl78/constraints.md (Iv08): New.
15673         (Iv16): New.
15674         (Iv24): New.
15675         (Is09): New.
15676         (Is17): New.
15677         (Is25): New.
15678         (ISsi): New.
15679         (IShi): New.
15680         (ISqi): New.
15681         * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
15682         (movhi): Likewise.
15683         (movsi): Change from expand to insn-and-split.
15684         (ashrsi3): Clobber AX.
15685         (lshrsi3): New.
15686         (ashlsi3): New.
15687         (cbranchsi4): New.
15688         * config/rl78/rl78.md (CC_REG): Fix.
15689         (addsi3): Allow memory and immediate operands.
15690         (addsi3_internal): Split into...
15691         (addsi3_internal_virt): ...new, and ...
15692         (addsi3_internal_real): ...new.
15693         (subsi): New.
15694         (subsi3_internal_virt): New.
15695         (subsi3_internal_real): New.
15696         (mulsi3): Add memory operand.
15697         (mulsi3_rl78): Likewise.
15698         (mulsi3_g13): Likewise.
15699         * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
15700         (cbranchqi4_real): Add more constraint options.
15701         (cbranchhi4_real): Expand pattern.
15702         (cbranchhi4_real_signed): New.
15703         (cbranchhi4_real_inverted): New.
15704         (cbranchsi4_real_lt): New.
15705         (cbranchsi4_real_ge): New.
15706         (cbranchsi4_real_signed): New.
15707         (cbranchsi4_real): New.
15708         (peephole2): New.
15709         * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
15710         constant shifts.
15711         (lshrsi3_virt): Likewise.
15712         (ashlsi3_virt): Likewise.
15713         (cbranchqi4_virt_signed): New.
15714         (cbranchhi4_virt_signed): New.
15715         (cbranchsi4_virt): New.
15716         * config/rl78/rl78.c: Whitespace fixes throughout.
15717         (move_elim_pass): New.
15718         (pass_data_rl78_move_elim): New.
15719         (pass_rl78_move_elim): New.
15720         (make_pass_rl78_move_elim): New.
15721         (rl78_devirt_info): Run devirt earlier.
15722         (rl78_move_elim_info): New.
15723         (rl78_asm_file_start): Register it.
15724         (rl78_split_movsi): New.
15725         (rl78_as_legitimate_address): Allow virtual base registers when
15726         appropriate.
15727         (rl78_addr_space_convert): Remove spurious debug stuff.
15728         (rl78_print_operand_1): Add z,s,S,r,E modifiers.
15729         (rl78_print_operand): More cases for not printing '#'.
15730         (rl78_expand_compare): Remove most of the logic.
15731         (content_memory): New.
15732         (clear_content_memory): New.
15733         (get_content_index): New.
15734         (get_content_name): New.
15735         (display_content_memory): New.
15736         (update_content): New.
15737         (record_content): New.
15738         (already_contains): New.
15739         (insn_ok_now): Re-recog insns with virtual registers.
15740         (add_postponed_content_update): New.
15741         (process_postponed_content_update): New.
15742         (gen_and_emit_move): New.
15743         (transcode_memory_rtx): Record new location content.
15744         Use gen_and_emit_move.
15745         (force_into_acc): New.
15746         (move_to_acc): Use gen_and_emit_move.
15747         (move_from_acc): Likewise.
15748         (move_acc_to_reg): Likewise.
15749         (move_to_x): Likewise.
15750         (move_to_hl): Likewise.
15751         (move_to_de): Likewise.
15752         (rl78_alloc_physical_registers_op1): Record location content.
15753         (has_constraint): New.
15754         (rl78_alloc_physical_registers_op2): Record location content.
15755         Optimize use of HL.
15756         (rl78_alloc_physical_registers_ro1): Likewise.
15757         (rl78_alloc_physical_registers_cmp): Likewise.
15758         (rl78_alloc_physical_registers_umul): Likewise.
15759         (rl78_alloc_address_registers_macax): New.
15760         (rl78_alloc_physical_registers): Initialize and set location
15761         content memory as needed.
15762         (rl78_reorg): Make sure split2 is called.
15763         (rl78_rtx_costs): New.
15765 2013-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
15767         * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
15768         for (not (neg ...)) and (neg (not ...)) cases.
15770 2013-09-11  Richard Biener  <rguenther@suse.de>
15772         PR middle-end/58377
15773         * passes.def: Split critical edges before late uninit warning passes.
15774         * tree-cfg.c (pass_split_crit_edges): Implement clone method.
15776 2013-09-11  Jakub Jelinek  <jakub@redhat.com>
15778         PR tree-optimization/58385
15779         * fold-const.c (build_range_check): If both low and high are NULL,
15780         use omit_one_operand_loc to preserve exp side-effects.
15782 2013-09-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15784         * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
15786 2013-09-11  Richard Biener  <rguenther@suse.de>
15788         * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
15789         dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
15790         dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
15791         create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
15792         stmts_from_loop, known_dependences_p, build_empty_rdg,
15793         build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
15794         * tree-loop-distribution.c: ... here.
15795         * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
15796         RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
15797         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
15798         struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
15799         * tree-loop-distribution.c: ... here.
15800         * tree-loop-distribution.c: Include gimple-pretty-print.h.
15801         (struct partition_s): Add loops member.
15802         (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
15803         rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
15804         build_rdg_partition_for_component, rdg_build_partitions): Adjust.
15806 2013-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15807             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15808             Sergey Lega  <sergey.s.lega@intel.com>
15809             Anna Tikhonova  <anna.tikhonova@intel.com>
15810             Ilya Tocar  <ilya.tocar@intel.com>
15811             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15812             Ilya Verbin  <ilya.verbin@intel.com>
15813             Kirill Yukhin  <kirill.yukhin@intel.com>
15814             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15816         * config/i386/constraints.md (k): New.
15817         (Yk): Ditto.
15818         * config/i386/i386.c (const regclass_map): Add new mask registers.
15819         (dbx_register_map): Ditto.
15820         (dbx64_register_map): Ditto.
15821         (svr4_dbx_register_map): Ditto.
15822         (ix86_conditional_register_usage): Squash mask registers if AVX512F is
15823         disabled.
15824         (ix86_preferred_reload_class): Disable constants for mask registers.
15825         (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
15826         (ix86_hard_regno_mode_ok): Support new mask registers.
15827         (x86_order_regs_for_local_alloc): Ditto.
15828         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
15829         (FIXED_REGISTERS): Add new mask registers.
15830         (CALL_USED_REGISTERS): Ditto.
15831         (REG_ALLOC_ORDER): Ditto.
15832         (VALID_MASK_REG_MODE): New.
15833         (FIRST_MASK_REG): Ditto.
15834         (LAST_MASK_REG): Ditto.
15835         (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
15836         (MAYBE_MASK_CLASS_P): New.
15837         (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
15838         (REG_CLASS_CONTENTS): Ditto.
15839         (MASK_REGNO_P): New.
15840         (ANY_MASK_REG_P): Ditto.
15841         (HI_REGISTER_NAMES): Add new mask registers.
15842         * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
15843         MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
15844         mask registers.
15845         (attribute "type"): Add mskmov, msklog.
15846         (attribute "length_immediate"): Support them.
15847         (attribute "memory"): Ditto.
15848         (attribute "prefix_0f"): Ditto.
15849         (*movhi_internal): Support new mask registers.
15850         (*movqi_internal): Ditto.
15851         (define_split): Split out clobber pattern is a logic
15852         insn on mask registers.
15853         (*k<logic><mode>): New.
15854         (*andhi_1): Extend to support mask regs.
15855         (*andqi_1): Extend to support mask regs.
15856         (kandn<mode>): New.
15857         (define_split): Split and-not to and and not if operands
15858         are not mask regs.
15859         (*<code><mode>_1): Separate HI mode to new pattern...
15860         (*<code>hi_1): This.
15861         (*<code>qi_1): Extend to support mask regs.
15862         (kxnor<mode>): New.
15863         (kortestzhi): Ditto.
15864         (kortestchi): Ditto.
15865         (kunpckhi): Ditto.
15866         (*one_cmpl<mode>2_1): Remove HImode and handle it...
15867         (*one_cmplhi2_1): ...Here, now with mask registers support.
15868         (*one_cmplqi2_1): Support new mask registers.
15869         (HI/QImode arithmetics splitter): Don't split if mask registers
15870         are used.
15871         (HI/QImode not splitter): Ditto.
15872         * config/i386/predicated.md (mask_reg_operand): New.
15873         (general_reg_operand): Ditto.
15875 2013-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15877         * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
15878         * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
15880 2013-09-10  Jeff Law  <law@redhat.com>
15882         PR tree-optimization/58380
15883         * tree-ssa-threadupdate.c (thread_block): Recognize another case
15884         of threading through a buried loop header.
15886         * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
15887         return value for single successor case.
15889 2013-09-10  Jan Hubicka  <jh@suse.cz>
15891         * ipa-devirt.c (ipa_devirt): Enable with LTO.
15893 2013-09-10  Richard Earnshaw  <rearnsha@arm.com>
15895         PR target/58361
15896         * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
15897         support conditional execution.
15898         (combine_vcvt_f64_<FCVTI32typename>): Likewise.
15900 2013-09-10  Vladimir Makarov  <vmakarov@redhat.com>
15902         * lra.c (lra): Clear lra_optional_reload_pseudos before every
15903         constraint pass.
15904         * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
15905         Check destination too to check move insn.
15906         (undo_optional_reloads): Add check that the original peudo did not
15907         changed its allocation and the optional reload was inherited on last
15908         inheritance pass.  Break loop after deciding to keep optional reload.
15909         (lra_undo_inheritance): Add check that inherited pseudo still in
15910         memory.
15912 2013-09-10  James Greenhalgh  <james.greenhalgh@arm.com>
15914         * config/aarch64/aarch64.md (generic_sched): New.
15915         * config/aarch64/aarch64-generic.md (load): Make conditional
15916         on generic_sched attribute.
15917         (nonload): Likewise.
15919 2013-09-10  Jan Hubicka  <jh@suse.cz>
15921         * lto-cgraph.c: Include ipa-utils.h.
15922         (compute_ltrans_boundary): Also add possible targets into the boundary.
15924 2013-09-10  Jan Hubicka  <jh@suse.cz>
15926         * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
15927         VAR_DECL of vtable rather than full expression.
15929 2013-09-10  Jan Hubicka  <jh@suse.cz>
15930             Paolo Carlini  <paolo.carlini@oracle.com>
15932         * cgraphunit.c (analyze_functions): Save input_location, set it
15933         to UNKNOWN_LOCATION and restore it at the end.
15935 2013-09-10  Martin Jambor  <mjambor@suse.cz>
15937         * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
15938         represented by a thunk.
15940 2013-09-10  Jeff Law  <law@redhat.com>
15942         PR tree-optimization/58343
15943         * tree-ssa-threadupdate.c (thread_block): Identify and disable
15944         jump threading requests through loop headers buried in the middle
15945         of a jump threading path.
15947         * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
15948         in return value/type.
15950 2013-09-10  Jakub Jelinek  <jakub@redhat.com>
15952         PR rtl-optimization/58365
15953         * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
15954         resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
15955         it differs.
15957 2013-09-10  Richard Biener  <rguenther@suse.de>
15959         * tree-data-ref.h (build_rdg): Drop all parameters but loop.
15960         * tree-data-ref.c (create_rdg_vertices): Collect all data
15961         references, signal failure to the caller, use data-ref API.
15962         (build_rdg): Compute data references only once.  Maintain lifetime
15963         of data references and data dependences from within RDG.
15964         (free_rdg): Free dependence relations.
15965         * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
15966         inventing extra dependences.
15967         (distribute_loop): Update for RDG API changes.
15969 2013-09-10  Kai Tietz  <ktietz@redhat.com>
15971         * doc/invoke.texi (fms-extensions): Document changed
15972         behavior for ms-abi targets.
15973         * config/i386/i386.c (ix86_option_override_internal):
15974         Set default value of option -fms-extension for ms-abi targets.
15976 2013-09-10  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
15978         * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
15980 2013-09-10  Alan Modra  <amodra@gmail.com>
15982         PR target/58330
15983         * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
15985 2013-09-10  Alan Modra  <amodra@gmail.com>
15987         * config/rs6000/predicates.md (add_cint_operand): New.
15988         (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
15989         * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
15990         using add_cint_operand.
15991         (largetoc_high_plus_aix): Likewise.
15993 2013-09-09  Jakub Jelinek  <jakub@redhat.com>
15995         PR tree-optimization/58364
15996         * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
15997         BOOLEAN_TYPE, only invert in_p and continue with arg0 if
15998         the current range can't be an unconditional true or false.
16000 2013-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
16002         * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
16004 2013-09-09  Uros Bizjak  <ubizjak@gmail.com>
16006         * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
16008 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
16010         PR c++/43452
16011         * doc/invoke.texi (-Wdelete-incomplete): Document it.
16013 2013-09-09  Ian Bolton  <ian.bolton@arm.com>
16015         * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
16016         NO_REGS for immediate that can't be moved directly into FP_REGS.
16018 2013-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16020         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
16021         comparison with negated operand.
16022         * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
16023         RTL form.
16025 2013-09-09  Richard Biener  <rguenther@suse.de>
16027         PR middle-end/58326
16028         * cfgloopmanip.c (fix_bb_placements): When fixing the placement
16029         of a subloop record all its block as affecting loop-closed SSA form.
16031 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
16033         * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
16034         of an rtx/bitpos pair.
16035         (store_fixed_bit_field): Update accordingly.
16037 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
16039         * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
16040         GEN_INT.
16041         * builtins.c (expand_errno_check): Likewise.
16042         * dwarf2cfi.c (init_return_column_size): Likewise.
16043         * except.c (sjlj_mark_call_sites): Likewise.
16044         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
16045         * lra-constraints.c (emit_inc): Likewise.
16046         * ree.c (combine_set_extension): Likewise.
16047         * regmove.c (fixup_match_2): Likewise.
16048         * reload1.c (inc_for_reload): Likewise.
16050 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
16052         * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
16053         (force_to_mode, simplify_shift_const_1, simplify_comparison):
16054         Use gen_int_mode with the mode of the associated simplify_* call.
16055         * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
16056         * expmed.c (expand_shift_1): Likewise.
16057         * function.c (instantiate_virtual_regs_in_insn): Likewise.
16058         * loop-iv.c (iv_number_of_iterations): Likewise.
16059         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
16060         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
16062 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
16064         * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
16065         of the associated expand_* call.
16066         (asan_emit_stack_protection): Likewise.
16067         * builtins.c (round_trampoline_addr): Likewise.
16068         * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
16069         * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
16070         (emit_store_flag): Likewise.
16071         * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
16072         (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
16073         Likewise.
16074         * function.c (instantiate_virtual_regs_in_insn): Likewise.
16075         * ifcvt.c (noce_try_store_flag_constants): Likewise.
16076         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
16077         * modulo-sched.c (generate_prolog_epilog): Likewise.
16078         * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
16079         (expand_ctz, expand_ffs, expand_unop): Likewise.
16081 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
16083         * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
16084         of the associated gen_rtx_* call.
16085         * caller-save.c (init_caller_save): Likewise.
16086         * combine.c (find_split_point, make_extraction): Likewise.
16087         (make_compound_operation): Likewise.
16088         * dwarf2out.c (mem_loc_descriptor): Likewise.
16089         * explow.c (plus_constant, probe_stack_range): Likewise.
16090         * expmed.c (expand_mult_const): Likewise.
16091         * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
16092         * reload1.c (init_reload): Likewise.
16093         * valtrack.c (cleanup_auto_inc_dec): Likewise.
16094         * var-tracking.c (adjust_mems): Likewise.
16095         * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
16096         rather than gen_rtx_fmt_ee.
16098 2013-09-09  Jan Hubicka  <jh@suse.cz>
16100         PR middle-end/58294
16101         * value-prof.c (gimple_ic): Copy also abnormal edges.
16103 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
16105         * asan.c (asan_shadow_cst): Use gen_int_mode.
16107 2013-09-08  Jan Hubicka  <jh@suse.cz>
16109         * ipa-profile.c: Add toplevel comment.
16110         (ipa_propagate_frequency_1): Be more conservative when profile is read.
16111         (contains_hot_call_p): New function.
16112         (ipa_propagate_frequency): Set frequencies based on counts when
16113         profile is read.
16114         * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
16115         profile; do not tamper with profile after inlining if it is read.
16117 2013-09-08  Jan Hubicka  <jh@suse.cz>
16119         * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
16120         speculative edges.
16122 2013-09-08  Jan Hubicka  <jh@suse.cz>
16124         * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
16125         summary generation.
16127 2013-09-08  Jeff Law  <law@redhat.com>
16129         PR bootstrap/58340
16130         * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
16131         of 'found'.
16133 2013-09-08  Andi Kleen  <ak@linux.intel.com>
16135         * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
16137 2013-09-08  Jan Hubicka  <jh@suse.cz>
16139         * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
16141 2013-09-08  Richard Sandiford  <rdsandiford@googlemail.com>
16143         * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
16144         for non-debug insns.
16145         * lra.c (new_insn_reg): Take the containing insn as a parameter.
16146         Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
16147         (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
16148         accordingly.
16150 2013-09-08  Jan Hubicka  <jh@suse.cz>
16152         * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
16153         targets and devirtualize to BUILT_IN_UNREACHABLE.
16154         * timevar.def (TV_IPA_UNREACHABLE): New timevar.
16155         * ipa.c (walk_polymorphic_call_targets): New function.
16156         (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
16157         functions; use the new timevar.
16158         * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
16159         was removed from the program.
16160         (record_binfo): If BINFO corresponds to an anonymous namespace, we may
16161         not consider it in the walk when its vtable is dead.
16162         (possible_polymorphic_call_targets_1): Pass anonymous flag to
16163         record_binfo.
16164         (devirt_variable_node_removal_hook): New function.
16165         (possible_polymorphic_call_targets): Also register
16166         devirt_variable_node_removal_hook.
16167         (ipa_devirt): Do not do non-speculative devirtualization.
16168         (gate_ipa_devirt): One execute if devirtualizing speculatively.
16170 2013-09-08  Jan Hubicka  <jh@suse.cz>
16172         * cgraph.h (varpool_node_hook, varpool_node_hook_list,
16173         varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
16174         varpool_remove_variable_insertion_hook): Declare.
16175         * varpool.c (varpool_node_hook_list): New structure.
16176         (first_varpool_node_removal_hook,
16177         first_varpool_variable_insertion_hook): New variables.
16178         (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
16179         varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
16180         varpool_remove_variable_insertion_hook,
16181         varpool_call_variable_insertion_hooks): New functions.
16182         (varpool_remove_node): Use it.
16184 2013-09-08  Paolo Carlini  <paolo.carlini@oracle.com>
16186         PR c++/54941
16187         * diagnostic.c (diagnostic_build_prefix): When s.file is
16188         "<built-in>" don't output line and column numbers.
16190 2013-09-06  Jan Hubicka  <jh@suse.cz>
16192         * cgraphunit.c (expand_thunk): Get body before touching arguments.
16193         * lto-streamer-out.c: Stream thunks, too.
16194         * lto-streamer-in.c (input_function): Pop cfun here
16195         (lto_read_body): Instead of here.
16197 2013-09-06  Caroline Tice  <cmtice@google.com>
16199         * doc/install.texi: Add documentation for the --enable-vtable-verify
16200         and the --disable-libvtv configure options.
16202 2013-09-06  Jeff Law  <law@redhat.com>
16204         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
16205         edge implied equivalences into successor phis.
16207 2013-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
16209         * resource.c (mark_referenced_resources): Handle COND_EXEC.
16211 2013-09-06  Claudiu Zissulescu  <claziss@synopsys.com>
16213         * resource.c (mark_target_live_regs): Compute resources taking
16214         into account if a call is predicated or not.
16216 2013-09-06  Eric Botcazou  <ebotcazou@adacore.com>
16218         * toplev.c (output_stack_usage): Be prepared for suffixes created by
16219         the compiler in the function names.
16221 2013-09-06  Jan Hubicka  <jh@suse.cz>
16223         PR middle-end/58094
16224         * ipa-inline.c (has_caller_p): New function.
16225         (want_inline_function_to_all_callers_p): Use it.
16226         (sum_callers, inline_to_all_callers): Break out from ...
16227         (ipa_inline): ... here.
16229 2013-09-06  Jan Hubicka  <jh@suse.cz>
16231         * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
16232         only when AVX is enabled.
16234 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
16236         * config/aarch64/aarch64.md
16237         (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
16238         is fpsimd_<load/store>2.
16239         (load_pair<mode>): Likewise.
16240         (store_pair<mode>): Likewise.
16242 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
16244         * config/arm/types.md (type): Add "mrs" type.
16245         * config/aarch64/aarch64.md
16246         (aarch64_load_tp_hard): Make type "mrs".
16247         * config/arm/arm.md
16248         (load_tp_hard): Make type "mrs".
16249         * config/arm/cortex-a15.md: Update with new attributes.
16250         * config/arm/cortex-a5.md: Update with new attributes.
16251         * config/arm/cortex-a53.md: Update with new attributes.
16252         * config/arm/cortex-a7.md: Update with new attributes.
16253         * config/arm/cortex-a8.md: Update with new attributes.
16254         * config/arm/cortex-a9.md: Update with new attributes.
16255         * config/arm/cortex-m4.md: Update with new attributes.
16256         * config/arm/cortex-r4.md: Update with new attributes.
16257         * config/arm/fa526.md: Update with new attributes.
16258         * config/arm/fa606te.md: Update with new attributes.
16259         * config/arm/fa626te.md: Update with new attributes.
16260         * config/arm/fa726te.md: Update with new attributes.
16262 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
16264         * config/aarch64/aarch64.md
16265         (*movti_aarch64): Use "multiple" for type where v8type is "move2".
16266         (*movtf_aarch64): Likewise.
16267         * config/arm/arm.md
16268         (thumb1_movdi_insn): Use "multiple" for type where more than one
16269         instruction is used for a move.
16270         (*arm32_movhf): Likewise.
16271         (*thumb_movdf_insn): Likewise.
16273 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
16275         * config/arm/types.md (type): Rename fcpys to fmov.
16276         * config/arm/vfp.md
16277         (*arm_movsi_vfp): Rename type fcpys as fmov.
16278         (*thumb2_movsi_vfp): Likewise
16279         (*movhf_vfp_neon): Likewise
16280         (*movhf_vfp): Likewise
16281         (*movsf_vfp): Likewise
16282         (*thumb2_movsf_vfp): Likewise
16283         (*movsfcc_vfp): Likewise
16284         (*thumb2_movsfcc_vfp): Likewise
16285         * config/aarch64/aarch64-simd.md
16286         (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
16287         * config/aarch64/aarch64.md
16288         (*movsi_aarch64): Replace type mov_reg with fmovs.
16289         (*movdi_aarch64): Likewise
16290         (*movsf_aarch64): Likewise
16291         (*movdf_aarch64): Likewise
16292         * config/arm/arm.c
16293         (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
16294         * config/arm/iwmmxt.md
16295         (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
16296         * config/arm/arm1020e.md: Update with new attributes.
16297         * config/arm/cortex-a15-neon.md: Update with new attributes.
16298         * config/arm/cortex-a5.md: Update with new attributes.
16299         * config/arm/cortex-a53.md: Update with new attributes.
16300         * config/arm/cortex-a7.md: Update with new attributes.
16301         * config/arm/cortex-a8-neon.md: Update with new attributes.
16302         * config/arm/cortex-a9.md: Update with new attributes.
16303         * config/arm/cortex-m4-fpu.md: Update with new attributes.
16304         * config/arm/cortex-r4f.md: Update with new attributes.
16305         * config/arm/marvell-pj4.md: Update with new attributes.
16306         * config/arm/vfp11.md: Update with new attributes.
16308 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
16310         * config/aarch64/aarch64.md
16311         (*madd<mode>): Fix type attribute.
16312         (*maddsi_uxtw): Likewise.
16313         (*msub<mode>): Likewise.
16314         (*msubsi_uxtw): Likewise.
16315         (<su_optab>maddsidi4): Likewise.
16316         (<su_optab>msubsidi4): Likewise.
16318 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
16320         * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
16321         * config/arm/arm.md (core_cycles): Remove fdiv.
16322         * config/arm/vfp.md:
16323         (*sqrtsf2_vfp): Update for attribute changes.
16324         (*sqrtdf2_vfp): Likewise.
16325         * config/aarch64/aarch64.md:
16326         (sqrt<mode>2): Update for attribute changes.
16327         * config/arm/arm1020e.md: Update with new attributes.
16328         * config/arm/cortex-a15-neon.md: Update with new attributes.
16329         * config/arm/cortex-a5.md: Update with new attributes.
16330         * config/arm/cortex-a53.md: Update with new attributes.
16331         * config/arm/cortex-a7.md: Update with new attributes.
16332         * config/arm/cortex-a8-neon.md: Update with new attributes.
16333         * config/arm/cortex-a9.md: Update with new attributes.
16334         * config/arm/cortex-m4-fpu.md: Update with new attributes.
16335         * config/arm/cortex-r4f.md: Update with new attributes.
16336         * config/arm/marvell-pj4.md: Update with new attributes.
16337         * config/arm/vfp11.md: Update with new attributes.
16339 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
16341         * config/arm/types.md
16342         (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
16343         * config/aarch64/aarch64.md
16344         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
16345         new attributes.
16346         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
16347         (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
16348         (float<GPI:mode><GPF:mode>2): Likewise.
16349         * config/arm/vfp.md
16350         (*truncsisf2_vfp): Update with new attributes.
16351         (*truncsidf2_vfp): Likewise.
16352         (fixuns_truncsfsi2): Likewise.
16353         (fixuns_truncdfsi2): Likewise.
16354         (*floatsisf2_vfp): Likewise.
16355         (*floatsidf2_vfp): Likewise.
16356         (floatunssisf2): Likewise.
16357         (floatunssidf2): Likewise.
16358         (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
16359         (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
16360         * config/arm/arm1020e.md: Update with new attributes.
16361         * config/arm/cortex-a15-neon.md: Update with new attributes.
16362         * config/arm/cortex-a5.md: Update with new attributes.
16363         * config/arm/cortex-a53.md: Update with new attributes.
16364         * config/arm/cortex-a7.md: Update with new attributes.
16365         * config/arm/cortex-a8-neon.md: Update with new attributes.
16366         * config/arm/cortex-a9.md: Update with new attributes.
16367         * config/arm/cortex-m4-fpu.md: Update with new attributes.
16368         * config/arm/cortex-r4f.md: Update with new attributes.
16369         * config/arm/marvell-pj4.md: Update with new attributes.
16370         * config/arm/vfp11.md: Update with new attributes.
16372 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
16374         * config/aarch64/arm_neon.h
16375         (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
16376         (vqtbx<1,2,3,4><q>_s8): Likewise.
16378 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
16380         * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
16381         * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
16382         (add<mode>3): Add type attribute.
16383         (add<mode>3): Likewise.
16384         (usadd<mode>3): Likewise.
16385         (ssadd<mode>3): Likewise.
16386         (sub<mode>3): Likewise.
16387         (sub<mode>3): Likewise.
16388         (ussub<mode>3): Likewise.
16389         (sssub<mode>3): Likewise.
16390         (ssmulsa3): Likewise.
16391         (usmulusa3): Likewise.
16392         (arm_usatsihi): Likewise.
16393         * config/arm/vfp.md
16394         (*movdi_vfp): Add types for all instructions.
16395         (*movdi_vfp_cortexa8): Likewise.
16396         (*movhf_vfp_neon): Likewise.
16397         (*movhf_vfp): Likewise.
16398         (*movdf_vfp): Likewise.
16399         (*thumb2_movdf_vfp): Likewise.
16400         (*thumb2_movdfcc_vfp): Likewise.
16401         * config/arm/arm.md: Add type attribute to all insn patterns.
16402         (*thumb1_adddi3): Add type attribute.
16403         (*arm_adddi3): Likewise.
16404         (*adddi_sesidi_di): Likewise.
16405         (*adddi_zesidi_di): Likewise.
16406         (*thumb1_addsi3): Likewise.
16407         (addsi3_compare0): Likewise.
16408         (*addsi3_compare0_scratch): Likewise.
16409         (*compare_negsi_si): Likewise.
16410         (cmpsi2_addneg): Likewise.
16411         (*addsi3_carryin_<optab>): Likewise.
16412         (*addsi3_carryin_alt2_<optab>): Likewise.
16413         (*addsi3_carryin_clobercc_<optab>): Likewise.
16414         (*subsi3_carryin): Likewise.
16415         (*subsi3_carryin_const): Likewise.
16416         (*subsi3_carryin_compare): Likewise.
16417         (*subsi3_carryin_compare_const): Likewise.
16418         (*arm_subdi3): Likewise.
16419         (*thumb_subdi3): Likewise.
16420         (*subdi_di_zesidi): Likewise.
16421         (*subdi_di_sesidi): Likewise.
16422         (*subdi_zesidi_di): Likewise.
16423         (*subdi_sesidi_di): Likewise.
16424         (*subdi_zesidi_ze): Likewise.
16425         (thumb1_subsi3_insn): Likewise.
16426         (*arm_subsi3_insn): Likewise.
16427         (*anddi3_insn): Likewise.
16428         (*anddi_zesidi_di): Likewise.
16429         (*anddi_sesdi_di): Likewise.
16430         (*ne_zeroextracts): Likewise.
16431         (*ne_zeroextracts): Likewise.
16432         (*ite_ne_zeroextr): Likewise.
16433         (*ite_ne_zeroextr): Likewise.
16434         (*anddi_notdi_di): Likewise.
16435         (*anddi_notzesidi): Likewise.
16436         (*anddi_notsesidi): Likewise.
16437         (andsi_notsi_si): Likewise.
16438         (thumb1_bicsi3): Likewise.
16439         (*iordi3_insn): Likewise.
16440         (*iordi_zesidi_di): Likewise.
16441         (*iordi_sesidi_di): Likewise.
16442         (*thumb1_iorsi3_insn): Likewise.
16443         (*xordi3_insn): Likewise.
16444         (*xordi_zesidi_di): Likewise.
16445         (*xordi_sesidi_di): Likewise.
16446         (*arm_xorsi3): Likewise.
16447         (*andsi_iorsi3_no): Likewise.
16448         (*smax_0): Likewise.
16449         (*smax_m1): Likewise.
16450         (*arm_smax_insn): Likewise.
16451         (*smin_0): Likewise.
16452         (*arm_smin_insn): Likewise.
16453         (*arm_umaxsi3): Likewise.
16454         (*arm_uminsi3): Likewise.
16455         (*minmax_arithsi): Likewise.
16456         (*minmax_arithsi_): Likewise.
16457         (*satsi_<SAT:code>): Likewise.
16458         (arm_ashldi3_1bit): Likewise.
16459         (arm_ashrdi3_1bit): Likewise.
16460         (arm_lshrdi3_1bit): Likewise.
16461         (*arm_negdi2): Likewise.
16462         (*thumb1_negdi2): Likewise.
16463         (*arm_negsi2): Likewise.
16464         (*thumb1_negsi2): Likewise.
16465         (*negdi_extendsid): Likewise.
16466         (*negdi_zero_extend): Likewise.
16467         (*arm_abssi2): Likewise.
16468         (*thumb1_abssi2): Likewise.
16469         (*arm_neg_abssi2): Likewise.
16470         (*thumb1_neg_abss): Likewise.
16471         (one_cmpldi2): Likewise.
16472         (extend<mode>di2): Likewise.
16473         (*compareqi_eq0): Likewise.
16474         (*arm_extendhisi2addsi): Likewise.
16475         (*arm_movdi): Likewise.
16476         (*thumb1_movdi_insn): Likewise.
16477         (*arm_movt): Likewise.
16478         (*thumb1_movsi_insn): Likewise.
16479         (pic_add_dot_plus_four): Likewise.
16480         (pic_add_dot_plus_eight): Likewise.
16481         (tls_load_dot_plus_eight): Likewise.
16482         (*thumb1_movhi_insn): Likewise.
16483         (*thumb1_movsf_insn): Likewise.
16484         (*movdf_soft_insn): Likewise.
16485         (*thumb_movdf_insn): Likewise.
16486         (cbranchsi4_insn): Likewise.
16487         (cbranchsi4_scratch): Likewise.
16488         (*negated_cbranchsi4): Likewise.
16489         (*tbit_cbranch): Likewise.
16490         (*tlobits_cbranch): Likewise.
16491         (*tstsi3_cbranch): Likewise.
16492         (*cbranchne_decr1): Likewise.
16493         (*addsi3_cbranch): Likewise.
16494         (*addsi3_cbranch_scratch): Likewise.
16495         (*arm_cmpdi_insn): Likewise.
16496         (*arm_cmpdi_unsig): Likewise.
16497         (*arm_cmpdi_zero): Likewise.
16498         (*thumb_cmpdi_zero): Likewise.
16499         (*deleted_compare): Likewise.
16500         (*mov_scc): Likewise.
16501         (*mov_negscc): Likewise.
16502         (*mov_notscc): Likewise.
16503         (*cstoresi_eq0_thumb1_insn): Likewise.
16504         (cstoresi_nltu_thumb1): Likewise.
16505         (cstoresi_ltu_thu): Likewise.
16506         (thumb1_addsi3_addgeu): Likewise.
16507         (*arm_jump): Likewise.
16508         (*thumb_jump): Likewise.
16509         (*check_arch2): Likewise.
16510         (arm_casesi_internal): Likewise.
16511         (thumb1_casesi_dispatch): Likewise.
16512         (*arm_indirect_jump): Likewise.
16513         (*thumb1_indirect_jump): Likewise.
16514         (nop): Likewise.
16515         (*and_scc): Likewise.
16516         (*ior_scc): Likewise.
16517         (*compare_scc): Likewise.
16518         (*cond_move): Likewise.
16519         (*cond_arith): Likewise.
16520         (*cond_sub): Likewise.
16521         (*cmp_ite0): Likewise.
16522         (*cmp_ite1): Likewise.
16523         (*cmp_and): Likewise.
16524         (*cmp_ior): Likewise.
16525         (*ior_scc_scc): Likewise.
16526         (*ior_scc_scc_cmp): Likewise.
16527         (*and_scc_scc): Likewise.
16528         (*and_scc_scc_cmp): Likewise.
16529         (*and_scc_scc_nod): Likewise.
16530         (*negscc): Likewise.
16531         (movcond_addsi): Likewise.
16532         (movcond): Likewise.
16533         (*ifcompare_plus_move): Likewise.
16534         (*if_plus_move): Likewise.
16535         (*ifcompare_move_plus): Likewise.
16536         (*if_move_plus): Likewise.
16537         (*ifcompare_arith_arith): Likewise.
16538         (*if_arith_arith): Likewise.
16539         (*ifcompare_arith_move): Likewise.
16540         (*if_arith_move): Likewise.
16541         (*ifcompare_move_arith): Likewise.
16542         (*if_move_arith): Likewise.
16543         (*ifcompare_move_not): Likewise.
16544         (*if_move_not): Likewise.
16545         (*ifcompare_not_move): Likewise.
16546         (*if_not_move): Likewise.
16547         (*ifcompare_shift_move): Likewise.
16548         (*if_shift_move): Likewise.
16549         (*ifcompare_move_shift): Likewise.
16550         (*if_move_shift): Likewise.
16551         (*ifcompare_shift_shift): Likewise.
16552         (*ifcompare_not_arith): Likewise.
16553         (*ifcompare_arith_not): Likewise.
16554         (*if_arith_not): Likewise.
16555         (*ifcompare_neg_move): Likewise.
16556         (*if_neg_move): Likewise.
16557         (*ifcompare_move_neg): Likewise.
16558         (*if_move_neg): Likewise.
16559         (prologue_thumb1_interwork): Likewise.
16560         (*cond_move_not): Likewise.
16561         (*sign_extract_onebit): Likewise.
16562         (*not_signextract_onebit): Likewise.
16563         (stack_tie): Likewise.
16564         (align_4): Likewise.
16565         (align_8): Likewise.
16566         (consttable_end): Likewise.
16567         (consttable_1): Likewise.
16568         (consttable_2): Likewise.
16569         (consttable_4): Likewise.
16570         (consttable_8): Likewise.
16571         (consttable_16): Likewise.
16572         (*thumb1_tablejump): Likewise.
16573         (prefetch): Likewise.
16574         (force_register_use): Likewise.
16575         (thumb_eh_return): Likewise.
16576         (load_tp_hard): Likewise.
16577         (load_tp_soft): Likewise.
16578         (tlscall): Likewise.
16579         (*arm_movtas_ze): Likewise.
16580         (*arm_rev): Likewise.
16581         (*arm_revsh): Likewise.
16582         (*arm_rev16): Likewise.
16583         * config/arm/thumb2.md
16584         (*thumb2_smaxsi3): Likewise.
16585         (*thumb2_sminsi3): Likewise.
16586         (*thumb32_umaxsi3): Likewise.
16587         (*thumb2_uminsi3): Likewise.
16588         (*thumb2_negdi2): Likewise.
16589         (*thumb2_abssi2): Likewise.
16590         (*thumb2_neg_abss): Likewise.
16591         (*thumb2_movsi_insn): Likewise.
16592         (tls_load_dot_plus_four): Likewise.
16593         (*thumb2_movhi_insn): Likewise.
16594         (*thumb2_mov_scc): Likewise.
16595         (*thumb2_mov_negs): Likewise.
16596         (*thumb2_mov_negs): Likewise.
16597         (*thumb2_mov_nots): Likewise.
16598         (*thumb2_mov_nots): Likewise.
16599         (*thumb2_movsicc_): Likewise.
16600         (*thumb2_movsfcc_soft_insn): Likewise.
16601         (*thumb2_indirect_jump): Likewise.
16602         (*thumb2_and_scc): Likewise.
16603         (*thumb2_ior_scc): Likewise.
16604         (*thumb2_ior_scc_strict_it): Likewise.
16605         (*thumb2_cond_move): Likewise.
16606         (*thumb2_cond_arith): Likewise.
16607         (*thumb2_cond_ari): Likewise.
16608         (*thumb2_cond_sub): Likewise.
16609         (*thumb2_negscc): Likewise.
16610         (*thumb2_movcond): Likewise.
16611         (thumb2_casesi_internal): Likewise.
16612         (thumb2_casesi_internal_pic): Likewise.
16613         (*thumb2_alusi3_short): Likewise.
16614         (*thumb2_mov<mode>_shortim): Likewise.
16615         (*thumb2_addsi_short): Likewise.
16616         (*thumb2_subsi_short): Likewise.
16617         (thumb2_addsi3_compare0): Likewise.
16618         (*thumb2_cbz): Likewise.
16619         (*thumb2_cbnz): Likewise.
16620         (*thumb2_one_cmplsi2_short): Likewise.
16621         (*thumb2_negsi2_short): Likewise.
16622         (*orsi_notsi_si): Likewise.
16623         * config/arm/arm1020e.md: Update with new attributes.
16624         * config/arm/arm1026ejs.md: Update with new attributes.
16625         * config/arm/arm1136jfs.md: Update with new attributes.
16626         * config/arm/arm926ejs.md: Update with new attributes.
16627         * config/arm/cortex-a15.md: Update with new attributes.
16628         * config/arm/cortex-a5.md: Update with new attributes.
16629         * config/arm/cortex-a53.md: Update with new attributes.
16630         * config/arm/cortex-a7.md: Update with new attributes.
16631         * config/arm/cortex-a8.md: Update with new attributes.
16632         * config/arm/cortex-a9.md: Update with new attributes.
16633         * config/arm/cortex-m4.md: Update with new attributes.
16634         * config/arm/cortex-r4.md: Update with new attributes.
16635         * config/arm/fa526.md: Update with new attributes.
16636         * config/arm/fa606te.md: Update with new attributes.
16637         * config/arm/fa626te.md: Update with new attributes.
16638         * config/arm/fa726te.md: Update with new attributes.
16640 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
16642         * config/aarch64/aarch64-simd.md
16643         (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
16644         <vwx> iterator to ensure correct register choice.
16645         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
16646         (aarch64_sqdmull_n<mode>): Likewise.
16647         (aarch64_sqdmull2_n<mode>_internal): Likewise.
16648         * config/aarch64/arm_neon.h
16649         (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
16650         (vml<as><q>_n_<su>16): Likewise.
16651         (vml<as>l_high_lane<q>_<su>16): Likewise.
16652         (vml<as>l_high_n_<su>16): Likewise.
16653         (vml<as>l_lane<q>_<su>16): Likewise.
16654         (vml<as>l_n_<su>16): Likewise.
16655         (vmul<q>_lane<q>_<su>16): Likewise.
16656         (vmul<q>_n_<su>16): Likewise.
16657         (vmull_lane<q>_<su>16): Likewise.
16658         (vmull_n_<su>16): Likewise.
16659         (vmull_high_lane<q>_<su>16): Likewise.
16660         (vmull_high_n_<su>16): Likewise.
16661         (vqrdmulh<q>_n_s16): Likewise.
16663 2013-09-06  Tejas Belagod  <tejas.belagod@arm.com>
16665         * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
16666         have the correct lane parameter.
16668 2013-09-06  Richard Biener <rguenther@suse.de>
16670         * cfganal.c (control_dependences::~control_dependences):
16671         Properly free all of the vector.
16673 2013-09-06  Kirill Yukhin  <kirill.yukhin@intel.com>
16675         PR target/58269
16676         * config/i386/i386.c (ix86_conditional_register_usage):
16677         Proper initialize extended SSE registers.
16679 2013-09-06  Jan Hubicka  <jh@suse.cz>
16681         PR tree-optimization/58311
16682         * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
16684 2013-09-06  Jan Hubicka  <jh@suse.cz>
16686         * Makefile.in (tree-sra.o): Update dependencies.
16687         * tree-sra.c: Include ipa-utils.h
16688         (scan_function): Use recursive_call_p.
16689         (has_caller_p): New function.
16690         (cgraph_for_node_and_aliases): Count also callers of aliases.
16692 2013-09-06  Jan Hubicka  <jh@suse.cz>
16694         PR middle-end/58094
16695         * cgraph.h (symtab_semantically_equivalent_p): Declare.
16696         * tree-tailcall.c: Include ipa-utils.h.
16697         (find_tail_calls): Use it.
16698         * ipa-pure-const.c (check_call): Likewise.
16699         * ipa-utils.c (recursive_call_p): New function.
16700         * ipa-utils.h (recursive_call_p): Dclare.
16701         * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
16702         (symtab_semantically_equivalent_p): New function.
16703         * Makefile.in (tree-tailcall.o): Update dependencies.
16705 2013-09-06  Eric Botcazou  <ebotcazou@adacore.com>
16707         * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
16708         non-inlinable part.
16710 2013-09-06  Richard Biener  <rguenther@suse.de>
16712         * lto-streamer.h (lto_global_var_decls): Remove.
16713         * Makefile.in (OBJS): Remove lto-symtab.o.
16714         (lto-symtab.o): Remove.
16715         (GTFILES): Remove lto-symtab.c
16716         * lto-symtab.c: Move to lto/
16718 2013-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16720         * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
16721         (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
16722         (UNSPEC_FPINT_RINT): New constant definitions.
16723         (FPINT, fpint_name, fpint_roundingmode): New integer iterator
16724         definition with 2 attributes.
16725         ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
16726         ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
16727         definitions.
16729 2013-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16731         * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
16732         ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
16733         Set the mnemonic attribute to "bcr_flush".  Set the "z196prop"
16734         attribute to "z196_alone".
16735         * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
16736         "zEC12_simple".
16738 2013-09-06  Richard Biener  <rguenther@suse.de>
16740         * basic-block.h (class control_dependences): New.
16741         * tree-ssa-dce.c (control_dependence_map): Remove.
16742         (cd): New global.
16743         (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
16744         (set_control_dependence_map_bit, clear_control_dependence_bitmap,
16745         find_pdom, find_control_dependence, find_all_control_dependences):
16746         Move to cfganal.c.
16747         (mark_control_dependent_edges_necessary,
16748         find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
16749         tree_dce_done, perform_tree_ssa_dce): Adjust.
16750         * cfganal.c (set_control_dependence_map_bit,
16751         clear_control_dependence_bitmap, find_pdom, find_control_dependence,
16752         find_all_control_dependences): Move from tree-ssa-dce.c and
16753         implement as methods of control_dependences class.
16754         (control_dependences::control_dependences): New.
16755         (control_dependences::~control_dependences): Likewise.
16756         (control_dependences::get_edges_dependent_on): Likewise.
16757         (control_dependences::get_edge): Likewise.
16759 2013-09-04  Jan Hubicka  <jh@suse.cz>
16761         * tree.c (types_same_for_odr): Drop overactive check.
16762         * ipa-devirt.c (hash_type_name): Likewise.
16764 2013-09-04  Jan Hubicka  <jh@suse.cz>
16766         * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
16767         (analyze_functions): ... here.
16769 2013-09-04  Jan Hubicka  <jh@suse.cz>
16771         PR middle-end/58201
16772         * cgraphunit.c (analyze_functions): Clear AUX fields
16773         after processing; initialize assembler name has.
16775 2013-09-05  Jeff Law  <law@redhat.com>
16777         * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
16778         from thread_around_empty_block.  Record threading path into PATH.
16779         Recurse if threading through the initial block is successful.
16780         (thread_across_edge): Corresponding changes to slightly simplify.
16782 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
16784         * config/aarch64/aarch64.md
16785         (type): Remove frecpe, frecps, frecpx.
16786         (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
16787         fix to be a TARGET_SIMD instruction.
16788         (aarch64_frecps): Remove.
16789         * config/aarch64/aarch64-simd.md
16790         (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
16791         (aarch64_frecps<mode>): Handle all float/vector of float modes.
16793 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
16794             Sofiane Naci  <sofiane.naci@arm.com>
16796         * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
16797         into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
16798         Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
16799         "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
16800         "logic_reg", "logics_reg", "rev".  Expand "arlo_shift" into
16801         "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
16802         "logics_shift_imm".  Expand "arlo_shift_reg" into "alu_shift_reg",
16803         "alus_shift_reg", "logic_shift_reg", "logics_shift_reg".  Expand "clz"
16804         into "clz, "rbit".  Rename "shift" to "shift_imm".
16805         * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
16806         changes.  Update for attribute changes all occurrences of arlo_* and
16807         shift* types.
16808         * config/arm/arm-fixed.md: Update for attribute changes
16809         all occurrences of arlo_* types.
16810         * config/arm/thumb2.md: Update for attribute changes all occurrences
16811         of arlo_* types.
16812         * config/arm/arm.c (xscale_sched_adjust_cost):  (rtx insn, rtx
16813         (cortexa7_older_only): Likewise.
16814         (cortexa7_younger):  Likewise.
16815         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
16816         (1020alu_shift_op): Likewise.
16817         (1020alu_shift_reg_op): Likewise.
16818         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
16819         (alu_shift_op): Likewise.
16820         (alu_shift_reg_op): Likewise.
16821         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
16822         (11_alu_shift_op): Likewise.
16823         (11_alu_shift_reg_op): Likewise.
16824         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
16825         (9_alu_shift_reg_op): Likewise.
16826         * config/arm/cortex-a15.md (cortex_a15_alu): Update for
16827         attribute changes.
16828         (cortex_a15_alu_shift): Likewise.
16829         (cortex_a15_alu_shift_reg): Likewise.
16830         * config/arm/cortex-a5.md (cortex_a5_alu): Update for
16831         attribute changes.
16832         (cortex_a5_alu_shift): Likewise.
16833         * config/arm/cortex-a53.md (cortex_a53_alu): Update for
16834         attribute changes.
16835         (cortex_a53_alu_shift): Likewise.
16836         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
16837         attribute changes.
16838         (cortex_a7_alu_reg): Likewise.
16839         (cortex_a7_alu_shift): Likewise.
16840         * config/arm/cortex-a8.md (cortex_a8_alu): Update for
16841         attribute changes.
16842         (cortex_a8_alu_shift): Likewise.
16843         (cortex_a8_alu_shift_reg): Likewise.
16844         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
16845         (cortex_a9_dp_shift): Likewise.
16846         * config/arm/cortex-m4.md (cortex_m4_alu): Update for
16847         attribute changes.
16848         * config/arm/cortex-r4.md
16849         (cortex_r4_alu): Update for attribute changes.
16850         (cortex_r4_mov): Likewise.
16851         (cortex_r4_alu_shift_reg): Likewise.
16852         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
16853         (526_alu_shift_op): Likewise.
16854         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
16855         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
16856         (626te_alu_shift_op): Likewise.
16857         * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
16858         (726te_alu_shift_op): Likewise.
16859         (726te_alu_shift_reg_op): Likewise.
16860         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
16861         (mp626_alu_shift_op): Likewise.
16862         * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
16863         (pj4_alu_conds): Likewise.
16864         (pj4_shift): Likewise.
16865         (pj4_shift_conds): Likewise.
16866         (pj4_alu_shift): Likewise.
16867         (pj4_alu_shift_conds): Likewise.
16868         * config/aarch64/aarch64.md: Update for attribute change
16869         all occurrences of arlo_* and shift* types.
16871 2013-09-05  Mike Stump  <mikestump@comcast.net>
16873         * tree.h: Move documentation for tree_function_decl to tree-core.h
16874         with the declaration.
16876 2013-09-05  Peter Bergner  <bergner@vnet.ibm.com>
16878         PR target/58139
16879         * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
16880         looking for widest mode.
16882 2013-09-05  Eric Botcazou  <ebotcazou@adacore.com>
16884         * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
16886 2013-09-05  Richard Biener  <rguenther@suse.de>
16888         PR tree-optimization/58137
16889         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
16890         Do not create vectors of pointers.
16891         * tree-vect-loop.c (get_initial_def_for_induction): Use proper
16892         types for the components of the vector initializer.
16893         * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
16894         allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
16896 2013-09-05  Martin Jambor  <mjambor@suse.cz>
16898         * ipa-prop.c (remove_described_reference): Accept missing references,
16899         return false if that hppens, otherwise return true.
16900         (cgraph_node_for_jfunc): New function.
16901         (try_decrement_rdesc_refcount): Likewise.
16902         (try_make_edge_direct_simple_call): Use them.
16903         (ipa_edge_removal_hook): Remove references from rdescs.
16904         (ipa_edge_duplication_hook): Clone rdescs and their references
16905         when the new edge has the same caller as the old one.
16906         * cgraph.c (cgraph_resolve_speculation): Remove speculative
16907         reference before removing any edges.
16909 2013-09-05  Richard Earnshaw  <rearnsha@arm.com>
16911         * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
16912         initial store.
16913         * thumb2.md (thumb2_storewb_parisi): New pattern.
16915 2013-09-05  Yufeng Zhang  <yufeng.zhang@arm.com>
16917         * config/aarch64/aarch64-option-extensions.def: Add
16918         AARCH64_OPT_EXTENSION of 'crc'.
16919         * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
16920         (AARCH64_ISA_CRC): Ditto.
16921         * doc/invoke.texi (-march and -mcpu feature modifiers): Add
16922         description of the CRC extension.
16924 2013-09-05  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16926         * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
16927         * config/rs6000/linux.h: Ditto.
16928         * alpha/linux.h: Ditto.
16929         * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
16930         no_c99_libc_has_function.
16931         * config/c6x/uclinux-elf.h: Ditto.
16932         * config/lm32/uclinux-elf.h: Ditto.
16933         * config/m68k/uclinux.h: Ditto.
16934         * config/moxie/uclinux.h: Ditto.
16935         * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
16936         (crisv32-*-linux*, cris-*-linux*): Ditto.
16937         * config/bfin/bfin.c: Include "tm_p.h".
16939 2013-09-05  Richard Biener  <rguenther@suse.de>
16941         * tree-vect-loop.c (vect_analyze_loop_operations): Properly
16942         check for a definition without a basic-block.
16944 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
16945             Sofiane Naci <sofiane.naci@arm.com>
16947         * config/aarch64/aarch64.md
16948         (*movti_aarch64): Rename r_2_f and f_2_r.
16949         (*movsf_aarch64): Likewise.
16950         (*movdf_aarch64): Likewise.
16951         (*movtf_aarch64): Likewise.
16952         (aarch64_movdi_<mode>low): Likewise.
16953         (aarch64_movdi_<mode>high): Likewise.
16954         (aarch64_mov<mode>high_di): Likewise.
16955         (aarch64_mov<mode>low_di): Likewise.
16956         (aarch64_movtilow_tilow): Likewise.
16957         * config/arm/arm.md (attribute "neon_type"): Delete.  Move attribute
16958         values to config/arm/types.md
16959         (attribute "conds"): Update for attribute change.
16960         (anddi3_insn): Likewise.
16961         (iordi3_insn): Likewise.
16962         (xordi3_insn): Likewise.
16963         (one_cmpldi2): Likewise.
16964         * config/arm/types.md (type): Add Neon types.
16965         * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
16966         use "type" attribute.
16967         (movmisalign<mode>_neon_store): Likewise.
16968         (movmisalign<mode>_neon_load): Likewise.
16969         (vec_set<mode>_internal): Likewise.
16970         (vec_setv2di_internal): Likewise.
16971         (vec_extract<mode>): Likewise.
16972         (vec_extractv2di): Likewise.
16973         (add<mode>3_neon): Likewise.
16974         (adddi3_neon): Likewise.
16975         (sub<mode>3_neon): Likewise.
16976         (subdi3_neon): Likewise.
16977         (mul<mode>3_neon): Likewise.
16978         (mul<mode>3add<mode>_neon): Likewise.
16979         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
16980         (fma<VCVTF:mode>4)): Likewise.
16981         (fma<VCVTF:mode>4_intrinsic): Likewise.
16982         (fmsub<VCVTF:mode>4)): Likewise.
16983         (fmsub<VCVTF:mode>4_intrinsic): Likewise.
16984         (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
16985         (ior<mode>3): Likewise.
16986         (and<mode>3): Likewise.
16987         (anddi3_neon): Likewise.
16988         (orn<mode>3_neon): Likewise.
16989         (orndi3_neon): Likewise.
16990         (bic<mode>3_neon): Likewise.
16991         (bicdi3_neon): Likewise.
16992         (xor<mode>3): Likewise.
16993         (one_cmpl<mode>2): Likewise.
16994         (abs<mode>2): Likewise.
16995         (neg<mode>2): Likewise.
16996         (umin<mode>3_neon): Likewise.
16997         (umax<mode>3_neon): Likewise.
16998         (smin<mode>3_neon): Likewise.
16999         (smax<mode>3_neon): Likewise.
17000         (vashl<mode>3): Likewise.
17001         (vashr<mode>3_imm): Likewise.
17002         (vlshr<mode>3_imm): Likewise.
17003         (ashl<mode>3_signed): Likewise.
17004         (ashl<mode>3_unsigned): Likewise.
17005         (neon_load_count): Likewise.
17006         (ashldi3_neon_noclobber): Likewise.
17007         (signed_shift_di3_neon): Likewise.
17008         (unsigned_shift_di3_neon): Likewise.
17009         (ashrdi3_neon_imm_noclobber): Likewise.
17010         (lshrdi3_neon_imm_noclobber): Likewise.
17011         (widen_ssum<mode>3): Likewise.
17012         (widen_usum<mode>3): Likewise.
17013         (quad_halves_<code>v4si): Likewise.
17014         (quad_halves_<code>v4sf): Likewise.
17015         (quad_halves_<code>v8hi): Likewise.
17016         (quad_halves_<code>v16qi): Likewise.
17017         (reduc_splus_v2di): Likewise.
17018         (neon_vpadd_internal<mode>): Likewise.
17019         (neon_vpsmin<mode>): Likewise.
17020         (neon_vpsmax<mode>): Likewise.
17021         (neon_vpumin<mode>): Likewise.
17022         (neon_vpumax<mode>): Likewise.
17023         (ss_add<mode>_neon): Likewise.
17024         (us_add<mode>_neon): Likewise.
17025         (ss_sub<mode>_neon): Likewise.
17026         (us_sub<mode>_neon): Likewise.
17027         (neon_vadd<mode>_unspec): Likewise.
17028         (neon_vaddl<mode>): Likewise.
17029         (neon_vaddw<mode>): Likewise.
17030         (neon_vhadd<mode>): Likewise.
17031         (neon_vqadd<mode>): Likewise.
17032         (neon_vaddhn<mode>): Likewise.
17033         (neon_vmul<mode>): Likewise.
17034         (neon_vmla<mode>): Likewise.
17035         (neon_vmlal<mode>): Likewise.
17036         (neon_vmls<mode>): Likewise.
17037         (neon_vmlsl<mode>): Likewise.
17038         (neon_vqdmulh<mode>): Likewise.
17039         (neon_vqdmlal<mode>): Likewise.
17040         (neon_vqdmlsl<mode>): Likewise.
17041         (neon_vmull<mode>): Likewise.
17042         (neon_vqdmull<mode>): Likewise.
17043         (neon_vsub<mode>_unspec): Likewise.
17044         (neon_vsubl<mode>): Likewise.
17045         (neon_vsubw<mode>): Likewise.
17046         (neon_vqsub<mode>): Likewise.
17047         (neon_vhsub<mode>): Likewise.
17048         (neon_vsubhn<mode>): Likewise.
17049         (neon_vceq<mode>): Likewise.
17050         (neon_vcge<mode>): Likewise.
17051         (neon_vcgeu<mode>): Likewise.
17052         (neon_vcgt<mode>): Likewise.
17053         (neon_vcgtu<mode>): Likewise.
17054         (neon_vcle<mode>): Likewise.
17055         (neon_vclt<mode>): Likewise.
17056         (neon_vcage<mode>): Likewise.
17057         (neon_vcagt<mode>): Likewise.
17058         (neon_vtst<mode>): Likewise.
17059         (neon_vabd<mode>): Likewise.
17060         (neon_vabdl<mode>): Likewise.
17061         (neon_vaba<mode>): Likewise.
17062         (neon_vabal<mode>): Likewise.
17063         (neon_vmax<mode>): Likewise.
17064         (neon_vmin<mode>): Likewise.
17065         (neon_vpaddl<mode>): Likewise.
17066         (neon_vpadal<mode>): Likewise.
17067         (neon_vpmax<mode>): Likewise.
17068         (neon_vpmin<mode>): Likewise.
17069         (neon_vrecps<mode>): Likewise.
17070         (neon_vrsqrts<mode>): Likewise.
17071         (neon_vqabs<mode>): Likewise.
17072         (neon_vqneg<mode>): Likewise.
17073         (neon_vcls<mode>): Likewise.
17074         (clz<mode>2): Likewise.
17075         (popcount<mode>2): Likewise.
17076         (neon_vrecpe): Likewise.
17077         (neon_vrsqrte): Likewise.
17078         (neon_vget_lane<mode>_sext_internal): Likewise.
17079         (neon_vget_lane<mode>_zext_internal): Likewise.
17080         (neon_vdup_n<mode>): Likewise.
17081         (neon_vdup_nv2di): Likewise.
17082         (neon_vdpu_lane<mode>_internal): Likewise.
17083         (neon_vswp<mode>): Likewise.
17084         (float<mode><V_cvtto>2): Likewise.
17085         (floatuns<mode><V_cvtto>2): Likewise.
17086         (fix_trunc<mode><V_cvtto>)2): Likewise
17087         (fixuns_trunc<mode><V_cvtto)2): Likewise.
17088         (neon_vcvt<mode>): Likewise.
17089         (neon_vcvtv4sfv4hf): Likewise.
17090         (neon_vcvtv4hfv4sf): Likewise.
17091         (neon_vcvt_n<mode>): Likewise.
17092         (neon_vmovn<mode>): Likewise.
17093         (neon_vqmovn<mode>): Likewise.
17094         (neon_vqmovun<mode>): Likewise.
17095         (neon_vmovl<mode>): Likewise.
17096         (neon_vmul_lane<mode>): Likewise.
17097         (neon_vmull_lane<mode>): Likewise.
17098         (neon_vqdmull_lane<mode>): Likewise.
17099         (neon_vqdmulh_lane<mode>): Likewise.
17100         (neon_vmla_lane<mode>): Likewise.
17101         (neon_vmlal_lane<mode>): Likewise.
17102         (neon_vqdmlal_lane<mode>): Likewise.
17103         (neon_vmls_lane<mode>): Likewise.
17104         (neon_vmlsl_lane<mode>): Likewise.
17105         (neon_vqdmlsl_lane<mode>): Likewise.
17106         (neon_vext<mode>): Likewise.
17107         (neon_vrev64<mode>): Likewise.
17108         (neon_vrev32<mode>): Likewise.
17109         (neon_vrev16<mode>): Likewise.
17110         (neon_vbsl<mode>_internal): Likewise.
17111         (neon_vshl<mode>): Likewise.
17112         (neon_vqshl<mode>): Likewise.
17113         (neon_vshr_n<mode>): Likewise.
17114         (neon_vshrn_n<mode>): Likewise.
17115         (neon_vqshrn_n<mode>): Likewise.
17116         (neon_vqshrun_n<mode>): Likewise.
17117         (neon_vshl_n<mode>): Likewise.
17118         (neon_vqshl_n<mode>): Likewise.
17119         (neon_vqshlu_n<mode>): Likewise.
17120         (neon_vshll_n<mode>): Likewise.
17121         (neon_vsra_n<mode>): Likewise.
17122         (neon_vsri_n<mode>): Likewise.
17123         (neon_vsli_n<mode>): Likewise.
17124         (neon_vtbl1v8qi): Likewise.
17125         (neon_vtbl2v8qi): Likewise.
17126         (neon_vtbl3v8qi): Likewise.
17127         (neon_vtbl4v8qi): Likewise.
17128         (neon_vtbx1v8qi): Likewise.
17129         (neon_vtbx2v8qi): Likewise.
17130         (neon_vtbx3v8qi): Likewise.
17131         (neon_vtbx4v8qi): Likewise.
17132         (neon_vtrn<mode>_internal): Likewise.
17133         (neon_vzip<mode>_internal): Likewise.
17134         (neon_vuzp<mode>_internal): Likewise.
17135         (neon_vld1<mode>): Likewise.
17136         (neon_vld1_lane<mode>): Likewise.
17137         (neon_vld1_dup<mode>): Likewise.
17138         (neon_vld1_dupv2di): Likewise.
17139         (neon_vst1<mode>): Likewise.
17140         (neon_vst1_lane<mode>): Likewise.
17141         (neon_vld2<mode>): Likewise.
17142         (neon_vld2_lane<mode>): Likewise.
17143         (neon_vld2_dup<mode>): Likewise.
17144         (neon_vst2<mode>): Likewise.
17145         (neon_vst2_lane<mode>): Likewise.
17146         (neon_vld3<mode>): Likewise.
17147         (neon_vld3qa<mode>): Likewise.
17148         (neon_vld3qb<mode>): Likewise.
17149         (neon_vld3_lane<mode>): Likewise.
17150         (neon_vld3_dup<mode>): Likewise.
17151         (neon_vst3<mode>): Likewise.
17152         (neon_vst3qa<mode>): Likewise.
17153         (neon_vst3qb<mode>): Likewise.
17154         (neon_vst3_lane<mode>): Likewise.
17155         (neon_vld4<mode>): Likewise.
17156         (neon_vld4qa<mode>): Likewise.
17157         (neon_vld4qb<mode>): Likewise.
17158         (neon_vld4_lane<mode>): Likewise.
17159         (neon_vld4_dup<mode>): Likewise.
17160         (neon_vst4<mode>): Likewise.
17161         (neon_vst4qa<mode>): Likewise.
17162         (neon_vst4qb<mode>): Likewise.
17163         (neon_vst4_lane<mode>): Likewise.
17164         (neon_vec_unpack<US>_lo_<mode>): Likewise.
17165         (neon_vec_unpack<US>_hi_<mode>): Likewise.
17166         (neon_vec_<US>mult_lo_<mode>): Likewise.
17167         (neon_vec_<US>mult_hi_<mode>): Likewise.
17168         (neon_vec_<US>shiftl_<mode>): Likewise.
17169         (neon_unpack<US>_<mode>): Likewise.
17170         (neon_vec_<US>mult_<mode>): Likewise.
17171         (vec_pack_trunc_<mode>): Likewise.
17172         (neon_vec_pack_trunk_<mode>): Likewise.
17173         (neon_vabd<mode>_2): Likewise.
17174         (neon_vabd<mode>_3): Likewise.
17175         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
17176         (thumb2_movsi_vfp): Likewise.
17177         (movdi_vfp): Likewise.
17178         (movdi_vfp_cortexa8): Likewise.
17179         (movhf_vfp_neon): Likewise.
17180         (movhf_vfp): Likewiwse.
17181         (movsf_vfp): Likewiwse.
17182         (thumb2_movsf_vfp): Likewiwse.
17183         (movdf_vfp): Likewise.
17184         (thumb2_movdf_vfp): Likewise.
17185         (movsfcc_vfp): Likewise.
17186         (thumb2_movsfcc_vfp): Likewise.
17187         (movdfcc_vfp): Likewise.
17188         (thumb2_movdfcc_vfp): Likewise.
17189         * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
17190         * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
17191         (v10_v2c): Likewise.
17192         * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
17193         attribute change.
17194         (cortex_a15_neon_int_2): Likewise.
17195         (cortex_a15_neon_int_3): Likewise.
17196         (cortex_a15_neon_int_4): Likewise.
17197         (cortex_a15_neon_int_5): Likewise.
17198         (cortex_a15_neon_vqneg_vqabs): Likewise.
17199         (cortex_a15_neon_vmov): Likewise.
17200         (cortex_a15_neon_vaba): Likewise.
17201         (cortex_a15_neon_vaba_qqq): Likewise.
17202         (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17203         (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
17204         (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
17205         scalar_64_32_long_scalar): Likewise.
17206         (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17207         (cortex_a15_neon_mla_qqq_8_16): Likewise.
17208         (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
17209         lotype_qdd_64_32_long): Likewise.
17210         (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
17211         (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
17212         (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
17213         (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
17214         (cortex_a15_neon_shift_1): Likewise.
17215         (cortex_a15_neon_shift_2): Likewise.
17216         (cortex_a15_neon_shift_3): Likewise.
17217         (cortex_a15_neon_vshl_ddd): Likewise.
17218         (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
17219         (cortex_a15_neon_vsra_vrsra): Likewise.
17220         (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
17221         (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
17222         (cortex_a15_neon_fp_vmul_ddd): Likewise.
17223         (cortex_a15_neon_fp_vmul_qqd): Likewise.
17224         (cortex_a15_neon_fp_vmla_ddd): Likewise.
17225         (cortex_a15_neon_fp_vmla_qqq): Likewise.
17226         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
17227         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
17228         (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
17229         (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
17230         (cortex_a15_neon_bp_simple): Likewise.
17231         (cortex_a15_neon_bp_2cycle): Likewise.
17232         (cortex_a15_neon_bp_3cycle): Likewise.
17233         (cortex_a15_neon_vld1_1_2_regs): Likewise.
17234         (cortex_a15_neon_vld1_3_4_regs): Likewise.
17235         (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
17236         (cortex_a15_neon_vld2_4_regs): Likewise.
17237         (cortex_a15_neon_vld3_vld4): Likewise.
17238         (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
17239         (cortex_a15_neon_vst1_3_4_regs): Likewise.
17240         (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
17241         (cortex_a15_neon_vst3_vst4): Likewise.
17242         (cortex_a15_neon_vld1_vld2_lane): Likewise.
17243         (cortex_a15_neon_vld3_vld4_lane" 10
17244         (cortex_a15_neon_vst1_vst2_lane): Likewise.
17245         (cortex_a15_neon_vst3_vst4_lane): Likewise.
17246         (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
17247         (cortex_a15_neon_ldm_2): Likewise.0
17248         (cortex_a15_neon_stm_2): Likewise.
17249         (cortex_a15_neon_mcr): Likewise.
17250         (cortex_a15_neon_mcr_2_mcrr): Likewise.
17251         (cortex_a15_neon_mrc): Likewise.
17252         (cortex_a15_neon_mrrc): Likewise.
17253         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
17254         change.
17255         (cortex_a15_alu_shift): Likewise.
17256         (cortex_a15_alu_shift_reg): Likewise.
17257         (cortex_a15_mult32): Likewise.
17258         (cortex_a15_mult64): Likewise.
17259         (cortex_a15_block): Likewise.
17260         (cortex_a15_branch): Likewise.
17261         (cortex_a15_load1): Likewise.
17262         (cortex_a15_load3): Likewise.
17263         (cortex_a15_store1): Likewise.
17264         (cortex_a15_store3): Likewise.
17265         (cortex_a15_call): Likewise.
17266         * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
17267         (cortex_a5_f2r): Likewise.
17268         * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
17269         change.
17270         (cortex_a53_f2r): Likewise.
17271         * config/arm/cortex-a7.md
17272         (cortex_a7_branch): Update for attribute change.
17273         (cortex_a7_call): Likewise.
17274         (cortex_a7_alu_imm): Likewise.
17275         (cortex_a7_alu_reg): Likewise.
17276         (cortex_a7_alu_shift): Likewise.
17277         (cortex_a7_mul): Likewise.
17278         (cortex_a7_load1): Likewise.
17279         (cortex_a7_store1): Likewise.
17280         (cortex_a7_load2): Likewise.
17281         (cortex_a7_store2): Likewise.
17282         (cortex_a7_load3): Likewise.
17283         (cortex_a7_store3): Likewise.
17284         (cortex_a7_load4): Likewise.
17285         (cortex_a7_store4): Likewise.
17286         (cortex_a7_fpalu): Likewise.
17287         (cortex_a7_fconst): Likewise.
17288         (cortex_a7_fpmuls): Likewise.
17289         (cortex_a7_neon_mul): Likewise.
17290         (cortex_a7_fpmacs): Likewise.
17291         (cortex_a7_neon_mla: Likewise.
17292         (cortex_a7_fpmuld: Likewise.
17293         (cortex_a7_fpmacd: Likewise.
17294         (cortex_a7_fpfmad: Likewise.
17295         (cortex_a7_fdivs: Likewise.
17296         (cortex_a7_fdivd: Likewise.
17297         (cortex_a7_r2f: Likewise.
17298         (cortex_a7_f2r: Likewise.
17299         (cortex_a7_f_flags: Likewise.
17300         (cortex_a7_f_loads: Likewise.
17301         (cortex_a7_f_loadd: Likewise.
17302         (cortex_a7_f_stores: Likewise.
17303         (cortex_a7_f_stored: Likewise.
17304         (cortex_a7_neon): Likewise.
17305         * config/arm/cortex-a8-neon.md
17306         (cortex_a8_neon_mrc): Update for attribute change.
17307         (cortex_a8_neon_mrrc): Likewise.
17308         (cortex_a8_neon_int_1): Likewise.
17309         (cortex_a8_neon_int_2): Likewise.
17310         (cortex_a8_neon_int_3): Likewise.
17311         (cortex_a8_neon_int_4): Likewise.
17312         (cortex_a8_neon_int_5): Likewise.
17313         (cortex_a8_neon_vqneg_vqabs): Likewise.
17314         (cortex_a8_neon_vmov): Likewise.
17315         (cortex_a8_neon_vaba): Likewise.
17316         (cortex_a8_neon_vaba_qqq): Likewise.
17317         (cortex_a8_neon_vsma): Likewise.
17318         (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17319         (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
17320         (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
17321         long_scalar): Likewise.
17322         (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17323         (cortex_a8_neon_mla_qqq_8_16): Likewise.
17324         (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
17325         long_scalar_qdd_64_32_long): Likewise.
17326         (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
17327         (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
17328         (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
17329         (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
17330         (cortex_a8_neon_shift_1): Likewise.
17331         (cortex_a8_neon_shift_2): Likewise.
17332         (cortex_a8_neon_shift_3): Likewise.
17333         (cortex_a8_neon_vshl_ddd): Likewise.
17334         (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
17335         (cortex_a8_neon_vsra_vrsra): Likewise.
17336         (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
17337         (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
17338         (cortex_a8_neon_fp_vsum): Likewise.
17339         (cortex_a8_neon_fp_vmul_ddd): Likewise.
17340         (cortex_a8_neon_fp_vmul_qqd): Likewise.
17341         (cortex_a8_neon_fp_vmla_ddd): Likewise.
17342         (cortex_a8_neon_fp_vmla_qqq): Likewise.
17343         (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
17344         (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
17345         (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
17346         (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
17347         (cortex_a8_neon_bp_simple): Likewise.
17348         (cortex_a8_neon_bp_2cycle): Likewise.
17349         (cortex_a8_neon_bp_3cycle): Likewise.
17350         (cortex_a8_neon_ldr): Likewise.
17351         (cortex_a8_neon_str): Likewise.
17352         (cortex_a8_neon_vld1_1_2_regs): Likewise.
17353         (cortex_a8_neon_vld1_3_4_regs): Likewise.
17354         (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
17355         (cortex_a8_neon_vld2_4_regs): Likewise.
17356         (cortex_a8_neon_vld3_vld4): Likewise.
17357         (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
17358         (cortex_a8_neon_vst1_3_4_regs): Likewise.
17359         (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
17360         (cortex_a8_neon_vst3_vst4): Likewise.
17361         (cortex_a8_neon_vld1_vld2_lane): Likewise.
17362         (cortex_a8_neon_vld3_vld4_lane): Likewise.
17363         (cortex_a8_neon_vst1_vst2_lane): Likewise.
17364         (cortex_a8_neon_vst3_vst4_lane): Likewise.
17365         (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
17366         (cortex_a8_neon_mcr): Likewise.
17367         (cortex_a8_neon_mcr_2_mcrr): Likewise.
17368         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
17369         * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
17370         change.
17371         (ca9_neon_mrrc): Likewise.
17372         (cortex_a9_neon_int_1): Likewise.
17373         (cortex_a9_neon_int_2): Likewise.
17374         (cortex_a9_neon_int_3): Likewise.
17375         (cortex_a9_neon_int_4): Likewise.
17376         (cortex_a9_neon_int_5): Likewise.
17377         (cortex_a9_neon_vqneg_vqabs): Likewise.
17378         (cortex_a9_neon_vmov): Likewise.
17379         (cortex_a9_neon_vaba): Likewise.
17380         (cortex_a9_neon_vaba_qqq): Likewise.
17381         (cortex_a9_neon_vsma): Likewise.
17382         (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17383         (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
17384         (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
17385         long_scalar): Likewise.
17386         (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17387         (cortex_a9_neon_mla_qqq_8_16): Likewise.
17388         (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
17389         long_scalar_qdd_64_32_long): Likewise.
17390         (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
17391         (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
17392         (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
17393         (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
17394         (cortex_a9_neon_shift_1): Likewise.
17395         (cortex_a9_neon_shift_2): Likewise.
17396         (cortex_a9_neon_shift_3): Likewise.
17397         (cortex_a9_neon_vshl_ddd): Likewise.
17398         (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
17399         (cortex_a9_neon_vsra_vrsra): Likewise.
17400         (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
17401         (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
17402         (cortex_a9_neon_fp_vsum): Likewise.
17403         (cortex_a9_neon_fp_vmul_ddd): Likewise.
17404         (cortex_a9_neon_fp_vmul_qqd): Likewise.
17405         (cortex_a9_neon_fp_vmla_ddd): Likewise.
17406         (cortex_a9_neon_fp_vmla_qqq): Likewise.
17407         (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
17408         (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
17409         (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
17410         (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
17411         (cortex_a9_neon_bp_simple): Likewise.
17412         (cortex_a9_neon_bp_2cycle): Likewise.
17413         (cortex_a9_neon_bp_3cycle): Likewise.
17414         (cortex_a9_neon_ldr): Likewise.
17415         (cortex_a9_neon_str): Likewise.
17416         (cortex_a9_neon_vld1_1_2_regs): Likewise.
17417         (cortex_a9_neon_vld1_3_4_regs): Likewise.
17418         (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
17419         (cortex_a9_neon_vld2_4_regs): Likewise.
17420         (cortex_a9_neon_vld3_vld4): Likewise.
17421         (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
17422         (cortex_a9_neon_vst1_3_4_regs): Likewise.
17423         (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
17424         (cortex_a9_neon_vst3_vst4): Likewise.
17425         (cortex_a9_neon_vld1_vld2_lane): Likewise.
17426         (cortex_a9_neon_vld3_vld4_lane): Likewise.
17427         (cortex_a9_neon_vst1_vst2_lane): Likewise.
17428         (cortex_a9_neon_vst3_vst4_lane): Likewise.
17429         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
17430         (cortex_a9_neon_mcr): Likewise.
17431         (cortex_a9_neon_mcr_2_mcrr): Likewise.
17432         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
17433         (cortex_a9_fps): Likewise.
17434         * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
17435         change.
17436         (cortex_m4_fmuls): Likewise.
17437         * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
17438         change.
17439         (cortex_r4_mrc): Likewise.
17440         * config/arm/iterators.md: Update comment referring to neon_type.
17441         * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
17442         (iwmmxt_movsi_insn): Likewise.
17443         * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
17444         attribute change.
17445         (pj4_core_to_vfp): Likewise.
17446         * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
17447         attribute change.
17448         * config/arm/vfp11.md (vfp_fload): Update for attribute change.
17449         (vfp_fstore): Likewise.
17450         * doc/md.texi: Change references to neon_type to refer to type.
17452 2013-09-04  Dodji Seketeli  <dodji@redhat.com>
17454         * tree.h (DECL_BUILT_IN): Fix typo in comment.
17456 2013-09-04  David Edelsohn  <dje.gcc@gmail.com>
17458         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
17459         lglobl if not weak.
17461 2013-09-04  Easwaran Raman  <eraman@google.com>
17463         PR middle-end/57370
17464         * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
17465         (build_and_add_sum): Use it.
17466         (appears_later_in_bb): Simplify code.
17468 2013-09-04  Teresa Johnson  <tejohnson@google.com>
17470         * dumpfile.c (dump_finish): Don't close stderr/stdout.
17472 2013-09-04  James Greenhalgh  <james.greenhalgh@arm.com>
17474         * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
17476 2013-09-04  Jan Hubicka  <jh@suse.cz>
17478         * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
17479         * ipa-devirt.c: Include diganostic.h
17480         (odr_type_d): Add types and types_set.
17481         (hash_type_name): Work for types with vtables during LTO.
17482         (odr_hasher::remove): Fix comment; destroy types_set.
17483         (add_type_duplicate): New function,
17484         (get_odr_type): Use it.
17485         (dump_type_inheritance_graph): Dump type duplicates.
17486         * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
17487         graph.
17488         * tree.c (types_same_for_odr): Give exact answers on types with
17489         virtual tables.
17491 2013-09-04  Dodji Seketeli  <dodji@redhat.com>
17493         * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
17494         explaining their differences.
17496 2013-09-04  Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
17498         * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
17500 2013-09-03  Jeff Law  <law@redhat.com>
17502         * tree-ssa-threadedge.c (thread_across_edge): Record entire path
17503         when not threading through a joiner block.  Pass joiner/no joiner
17504         state to register_jump_thread.
17505         * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
17506         state from argument rather than implying on path length.
17507         Dump the entire jump thread path into debugging dump.
17508         * tree-flow.h (register_jump_thread): Update prototype.
17510 2013-08-29  Xinliang David Li  <davidxl@google.com>
17512         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17513         Remove a trivial gcc_assert.
17515 2013-08-29  Xinliang David Li  <davidxl@google.com>
17517         * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
17518         * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
17519         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17520         Delay base decl alignment adjustment.
17521         * tree-vectorizer.c (vect_destroy_datarefs): New function.
17522         * tree-vectorizer.h: New data structure.
17523         (set_dr_misalignment): New function.
17524         (dr_misalignment): Ditto.
17525         * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
17526         (vectorizable_load): Ditto.
17527         (ensure_base_align): New function.
17528         (vectorize_loops): Add dbg_cnt support.
17529         (execute_vect_slp): Ditto.
17530         * dbgcnt.def: New debug counter.
17531         * Makefile: New dependency.
17533 2013-09-03  Meador Inge  <meadori@codesourcery.com>
17535         Revert:
17537         2013-08-30  Meador Inge  <meadori@codesourcery.com>
17539         * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
17541 2013-09-03  David Edelsohn  <dje.gcc@gmail.com>
17543         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
17544         function descriptor.
17546 2013-09-03  Richard Biener  <rguenther@suse.de>
17548         * tree-affine.c (add_elt_to_tree): Fix association issue,
17549         avoid useless converts and make sure to always return a
17550         properly typed result.
17552 2013-09-03  Richard Biener  <rguenther@suse.de>
17554         PR middle-end/57656
17555         * fold-const.c (negate_expr_p): Fix division case.
17556         (negate_expr): Likewise.
17558 2013-09-03  Richard Biener  <rguenther@suse.de>
17560         PR lto/58285
17561         * tree-streamer-out.c: Include tm.h.
17562         * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
17564 2013-09-03  Jan Hubicka  <jh@suse.cz>
17566         * tree-profile.c (tree_profiling): Cleanup CFG when done.
17568 2013-09-03  Alan Modra  <amodra@gmail.com>
17570         * config.gcc (powerpc*-*-linux*): Add support for little-endian
17571         multilibs to big-endian target and vice versa.
17572         * config/rs6000/t-linux64: Use := assignment on all vars.
17573         (MULTILIB_EXTRA_OPTS): Remove fPIC.
17574         (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
17575         * config/rs6000/t-linux64le: New file.
17576         * config/rs6000/t-linux64bele: New file.
17577         * config/rs6000/t-linux64lebe: New file.
17579 2013-09-02  Jan Hubicka  <jh@suse.cz>
17581         * ipa-inline-transform.c (inline_transform): Do not
17582         optimize_inline_calls when not optimizing.
17584 2013-09-02  Jan Hubicka  <jh@suse.cz>
17586         * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
17587         duplicated nodes for assembler names.
17588         * symtab.c (symtab_unregister_node): Do not attempt to unlink
17589         hard registers from assembler name hash.
17591 2013-09-02  Jan Hubicka  <jh@suse.cz>
17593         * ipa-split.c (execute_split_functions): Split externally visible
17594         functions called once.
17596 2013-09-02  Martin Jambor  <mjambor@suse.cz>
17598         PR ipa/58106
17599         * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
17600         linked list.  When finding the correct duplicate, also consider also
17601         the caller in additon to its inlined_to node.
17603 2013-09-02  James Greenhalgh  <james.greenhalgh@arm.com>
17605         * config/aarch64/aarch64-simd-builtins.def
17606         (dup_lane_scalar): Remove.
17607         * config/aarch64/aarch64-simd.md
17608         (aarch64_simd_dup): Add 'w->w' alternative.
17609         (aarch64_dup_lane<mode>): Allow for VALL.
17610         (aarch64_dup_lane_scalar<mode>): Remove.
17611         (aarch64_dup_lane_<vswap_width_name><mode>): New.
17612         (aarch64_get_lane_signed<mode>): Add w->w altenative.
17613         (aarch64_get_lane_unsigned<mode>): Likewise.
17614         (aarch64_get_lane<mode>): Likewise.
17615         * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
17616         (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
17617         * config/aarch64/iterators.md (VSWAP_WIDTH): New.
17618         (VCON): Change container of V2SF.
17619         (vswap_width_name): Likewise.
17620         * config/aarch64/arm_neon.h
17621         (__aarch64_vdup_lane_any): New.
17622         (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
17623         (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
17624         (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
17626 2013-09-02  Eric Botcazou  <ebotcazou@adacore.com>
17628         PR middle-end/56382
17629         * expr.c (emit_move_complex): Do not move complex FP values as parts if
17630         the source or the destination is a single hard register.
17632 2013-09-02  Richard Biener  <rguenther@suse.de>
17634         PR middle-end/57511
17635         * tree-scalar-evolution.c (instantiate_scev_name): Allow
17636         non-linear SCEVs.
17638 2013-09-02  Richard Biener  <rguenther@suse.de>
17640         * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
17641         arithmetic to sizetype.
17643 2013-09-02  Bin Cheng  <bin.cheng@arm.com>
17645         * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
17646         Find auto-increment use both before and after candidate.
17648 2013-09-02  Marek Polacek  <polacek@redhat.com>
17650         * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
17652 2013-09-01  Jan Hubicka  <jh@suse.cz>
17654         * Makefile.in: Add ipa-profile.o
17655         (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
17656         * cgraph.c (struct cgraph_propagate_frequency_data,
17657         cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
17658         ipa-profile.c; replace cgraph_ by ipa_ prefix.
17659         * cgraph.h (cgraph_propagate_frequency): Remove.
17660         * ipa-inline-analysis.c: Include ipa-utils.h;
17661         drop duplicated cfgloop.h.
17662         (inline_update_callee_summaries): Update.
17663         * ipa-profile.c: New file.
17664         * ipa-utils.h (ipa_propagate_frequency): Declare.
17665         * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
17666         data-streamer.h, value-prof.h.
17667         (symtab_remove_unreachable_nodes): Update profile.
17668         (struct histogram_entry, histogram, histogram_pool, histogram_hash,
17669         account_time_size, cmp_counts, dump_histogram,
17670         ipa_profile_generate_summary, ipa_profile_write_summary,
17671         ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
17672         pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
17673         Move to ipa-profile.c.
17675 2013-09-01  John David Anglin  <danglin@gcc.gnu.org>
17677         * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
17679 2013-09-01  Jan Hubicka  <jh@suse.cz>
17681         * common.opt (fdevirtualize-speculatively): New function.
17682         * invoke.texi (fdevirtualize-speculatively): Document.
17683         * ipa-devirt.c: Include ipa-inline.h
17684         (likely_target_p): New function.
17685         (ipa_devirt): New function.
17686         (gate_ipa_devirt): New function.
17687         (pass_data_ipa_devirt): New static var.
17688         (pass_ipa_devirt): Likewise.
17689         (make_pass_ipa_devirt): New function.
17690         * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
17691         (common_handle_option): Disable devirtualization when
17692         value range profiling is available.
17693         * passes.def (pass_ipa_devirt): Add.
17694         * timever.def (TV_IPA_DEVIRT): New timevar.
17695         * tree-pass.h (make_pass_ipa_devirt):
17697 2013-09-01  Iain Sandoe  <iain@codesourcery.com>
17699         * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
17700         include sanitize(undefined).
17702 2013-08-31  Diego Novillo  <dnovillo@google.com>
17704         * Makefile.in (TREE_CORE_H): Define.
17705         (TREE_H): Use.
17706         (GTFILES): Add tree-core.h.
17707         * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
17708         size the array.
17709         * tree-core.h: New file.
17710         Move all data structures, enum, typedefs, global
17711         declarations and constants from ...
17712         * tree.h: ... here.
17714 2013-08-31  Jan Hubicka  <jh@suse.cz>
17716         * bulitins.c (expand_builtin): Do not early exit for gcov
17717         instrumented functions.
17719 2013-08-31  Marek Polacek  <polacek@redhat.com>
17721         * ubsan.c: Include tm_p.h.
17723 2013-08-31  Jan Hubicka  <jh@suse.cz>
17725         * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
17726         warning.
17728         * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
17729         * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
17730         * tree-cfg.c (verify_gimple_label): ... here.
17731         * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
17732         (ipa_merge_profiles): New function.
17733         * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
17734         (lto_input_function_body): Likewise.
17735         * ipa-utils.h (ipa_merge_profiles): Declare.
17736         * lto-streamer.h (lto_input_function_body): Update prototype.
17737         (emit_label_in_global_context_p): Remove.
17738         * lto-symtab.c: Include ipa-utils.h
17739         (lto_cgraph_replace_node): Use ipa_merge_profiles.
17741 2013-08-31  Jan Hubicka  <jh@suse.cz>
17743         * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
17745 2013-08-31  Jan Hubicka  <jh@suse.cz>
17747         * basic-block.h (apply_scale): Make scale parmeter gcov_type.
17749 2013-08-31  Uros Bizjak  <ubizjak@gmail.com>
17751         * config/alpha/alpha.c (alpha_emit_conditional_move): Update
17752         "cmp" RTX before signed_comparison_operator check to account
17753         for "code" changes.
17755 2013-08-30  Jan Hubicka  <jh@suse.cz>
17757         * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
17758         (detect_type_change_1): Rename to ...
17759         (detect_type_change): ... this one; early return on non-polymorphic
17760         types.
17761         (detect_type_change_ssa): Add comp_type parameter; update
17762         use of detect_type_change.
17763         (compute_complex_assign_jump_func): Add param_type parameter;
17764         update use of detect_type_change_ssa.
17765         (compute_complex_ancestor_jump_func): Likewise.
17766         (ipa_get_callee_param_type): New function.
17767         (ipa_compute_jump_functions_for_edge): Compute parameter type;
17768         update calls to the jump function computation functions.
17770 2013-08-30  Teresa Johnson  <tejohnson@google.com>
17771             Steven Bosscher  <steven@gcc.gnu.org>
17773         * cfgrtl.c (fixup_new_cold_bb): New routine.
17774         (commit_edge_insertions): Invoke fixup_partitions.
17775         (find_partition_fixes): New routine.
17776         (fixup_partitions): Ditto.
17777         (verify_hot_cold_block_grouping): Update comments.
17778         (rtl_verify_edges): Invoke find_partition_fixes.
17779         (rtl_verify_bb_pointers): Update comments.
17780         (rtl_verify_bb_layout): Ditto.
17781         * basic-block.h (probably_never_executed_edge_p): Declare.
17782         (fixup_partitions): Ditto.
17783         * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
17784         * bb-reorder.c (sanitize_hot_paths): New function.
17785         (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
17786         sanitize_hot_paths.
17787         * predict.c (probably_never_executed_edge_p): New routine.
17788         * cfg.c (check_bb_profile): Add partition insanity warnings.
17790 2013-08-30  Meador Inge  <meadori@codesourcery.com>
17792         * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
17794 2013-08-30  Marek Polacek  <polacek@redhat.com>
17796         * Makefile.in (ubsan.o): Add.
17797         (c-family/c-ubsan.o): Add.
17798         (builtins.o): Add ubsan.h dependency.
17799         * ubsan.h: New file.
17800         * ubsan.c: New file.
17801         * common.opt: Add -fsanitize=undefined option.
17802         (flag_sanitize): Add variable.
17803         (fsanitize=): Add option.  Add Driver.
17804         (fsanitize=thread): Remove option.
17805         (fsanitize=address): Likewise.
17806         (static-libubsan): New option.
17807         * doc/invoke.texi: Document the new flag and -static-libubsan.
17808         * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
17809         (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
17810         * builtin-attrs.def (ATTR_COLD): Define.
17811         (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
17812         * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
17813         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
17814         * flag-types.h (sanitize_code): New enum.
17815         * opts.c (common_handle_option): Parse command line arguments
17816         of -fsanitize=.  Add -fsanitize=unreachable option.
17817         * varasm.c (get_variable_section): Adjust.
17818         (assemble_noswitch_variable): Likewise.
17819         (assemble_variable): Likewise.
17820         (output_constant_def_contents): Likewise.
17821         (categorize_decl_for_section): Likewise.
17822         (place_block_symbol): Likewise.
17823         (output_object_block): Likewise.
17824         * builtins.def: Likewise.
17825         * toplev.c (compile_file): Likewise.
17826         (process_options): Likewise.
17827         * cppbuiltin.c: Likewise.
17828         * tsan.c (tsan_pass): Likewise.
17829         (tsan_gate): Likewise.
17830         (tsan_gate_O0): Likewise.
17831         * cfgexpand.c (partition_stack_vars): Likewise.
17832         (expand_stack_vars): Likewise.
17833         (defer_stack_allocation): Likewise.
17834         (expand_used_vars): Likewise.
17835         * cfgcleanup.c (old_insns_match_p): Likewise.
17836         * asan.c (asan_finish_file): Likewise.
17837         (asan_instrument): Likewise.
17838         (gate_asan): Likewise.
17839         (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
17840         (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
17841         (asan_global_struct): Use pointer_sized_int_node instead
17842         calling build_nonstandard_integer_type.
17843         (initialize_sanitizer_builtins): Likewise.
17844         (asan_finish_file): Likewise.
17845         * gcc.c: Document %{%:function(args):X}.
17846         (static_spec_functions): Add sanitize.
17847         (handle_spec_function): Add retval_nonnull argument and if non-NULL,
17848         store funcval != NULL there.
17849         (do_spec_1): Adjust handle_spec_function caller.
17850         (handle_braces): Allow %:function(args) as condition.
17851         (sanitize_spec_function): New function.
17852         (ADD_STATIC_LIBUBSAN_LIBS): Define.
17853         (LIBUBSAN_SPEC): Likewise.
17854         (LIBUBSAN_EARLY_SPEC): Likewise.
17855         (SANITIZER_SPEC): Handle libubsan.
17856         (SANITIZER_EARLY_SPEC): Likewise.
17857         * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
17858         instead of fsanitize=address.
17859         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
17860         instead of fsanitize=address*.
17861         * builtins.c: Include ubsan.h.
17862         (fold_builtin_0): Instrument __builtin_unreachable.
17863         * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
17864         instead of flag_asan.
17865         * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
17866         (pointer_sized_int_node): Define.
17867         * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
17869 2013-08-30  Mike Stump  <mikestump@comcast.net>
17871         * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
17872         with RE patterns.
17874 2013-08-29  Jan Hubicka  <jh@suse.cz>
17876         * cgraph.c (cgraph_function_body_availability): Handle weakref
17877         correctly.
17878         * passes.def: Remove pass_fixup_cfg.
17879         * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
17880         track when we need to remove functions.
17881         (gate_ipa_inline): Execute inlining always; add comment why.
17882         (pass_data_ipa_inline): Remove TODO_remove_functions.
17883         * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
17884         do not produce summaries.
17885         * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
17886         (symtab_nonoverwritable_alias): Assert we are not called on weakref.
17887         * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
17888         constant pool and vtable.
17890 2013-08-30  Tejas Belagod  <tejas.belagod@arm.com>
17892         * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
17893         New arm_neon.h's internal macros to specify 64-bit constants.
17894         Avoid using stdint.h's macros.
17896 2013-08-30  Joern Rennecke  <joern.rennecke@embecosm.com>
17898         * recog.c (verify_changes): Verify that changes[i].old is non-zero
17899         before applying REG_P.
17901 2013-08-30  Jakub Jelinek  <jakub@redhat.com>
17903         PR tree-optimization/58277
17904         * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
17905         after seeing too many stmts with vdef in between dombb and current
17906         bb, invalidate everything.
17908 2013-08-30  Richard Biener  <rguenther@suse.de>
17910         * fold-const.c (fold_single_bit_test): Fix overflow test.
17912 2013-08-30  Eric Botcazou  <ebotcazou@adacore.com>
17914         * function.c (assign_parm_setup_reg): For a parameter passed by pointer
17915         and which can live in a register, always retrieve the value on entry.
17916         * var-tracking.c (add_stores): Treat the copy on entry for a parameter
17917         passed by invisible reference specially.
17918         (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
17919         (vt_add_function_parameter): Correctly deal with a parameter passed by
17920         invisible reference.
17922 2013-08-30  Jan Hubicka  <jh@suse.cz>
17924         * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
17926 2013-08-30  Richard Biener  <rguenther@suse.de>
17928         PR tree-optimization/58228
17929         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
17930         allow invariant loads in nested loop vectorization.
17932 2013-08-30  Richard Biener  <rguenther@suse.de>
17934         PR tree-optimization/58223
17935         * tree-loop-distribution.c (has_anti_dependence): Rename to ...
17936         (has_anti_or_output_dependence): ... this and adjust to also
17937         look for output dependences.
17938         (mark_nodes_having_upstream_mem_writes): Adjust.
17939         (rdg_flag_uses): Likewise.
17941 2013-08-30  Richard Biener  <rguenther@suse.de>
17943         PR tree-optimization/58010
17944         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
17945         assert that we have a loop-closed PHI.
17947 2013-08-29  Jan Hubicka  <jh@suse.cz>
17949         * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
17950         * cgraph.c (cgraph_release_function_body): Free decl_in_state.
17951         * lto-section-in.c (lto_free_function_in_decl_state): New function.
17952         (lto_free_function_in_decl_state_for_node): New function.
17954 2013-08-29  Xinliang David Li  <davidxl@google.com>
17956         * loop-unroll.c (report_unroll_peel): Minor message change.
17957         * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
17958         Emit alignment peeling message with default -fopt-info.
17959         (vect_loop_versioning): Emit loop version info message.
17960         * tree-vectorizer.c (vectorize_loops): Minor message change.
17961         (execute_vect_slp): Ditto.
17963 2013-08-29  Eric Botcazou  <ebotcazou@adacore.com>
17965         * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
17966         of the clone from the DECL_NAME of the original function.
17968 2013-08-29  Oleg Endo  <olegendo@gcc.gnu.org>
17970         * passes.c (register_pass): Add overload.
17971         * tree-pass.h (register_pass): Forward declare it.  Add comment.
17973 2013-08-29  Jan Hubicka  <jh@suse.cz>
17975         * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
17976         DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
17977         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
17978         DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
17979         (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
17980         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
17981         Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
17982         (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
17984 2013-08-29  Teresa Johnson  <tejohnson@google.com>
17986         * dumpfile.c (dump_loc): Output column number.
17987         * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
17988         * doc/invoke.texi: Document optall -fopt-info flag.
17989         * profile.c (read_profile_edge_counts): Use new dump framework.
17990         (compute_branch_probabilities): Ditto.
17991         * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
17992         when pass not in any opt group.
17993         * pass_manager.h (pass_manager::get_pass_profile): New method.
17994         * value-prof.c (check_counter): Use new dump framework.
17995         (check_ic_target): Ditto.
17996         * coverage.c (get_coverage_counts): Ditto.
17997         (coverage_init): Setup new dump framework.
17999 2013-08-29  Richard Biener  <rguenther@suse.de>
18001         PR tree-optimization/58246
18002         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
18003         handle the dominance check inside a basic-block.
18005 2013-08-29  Richard Biener  <rguenther@suse.de>
18007         PR middle-end/57287
18008         * tree-ssa-copy.c (may_propagate_copy): Allow propagating
18009         of default defs that appear in abnormal PHI nodes.
18011 2013-08-29  Richard Biener  <rguenther@suse.de>
18013         PR tree-optimization/57685
18014         * tree-vrp.c (register_edge_assert_for_1): Recurse only for
18015         single-use operands to avoid exponential complexity.
18017 2013-08-28  Dehao Chen  <dehao@google.com>
18019         * ipa-inline.c (edge_badness): Fix integer underflow.
18021 2013-08-28  Uros Bizjak  <ubizjak@gmail.com>
18023         * gtm-builtins.def (_ITM_free): Declare leaf.
18025 2013-08-28  Jakub Jelinek  <jakub@redhat.com>
18027         PR target/58067
18028         * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
18029         (*tls_local_dynamic_base_64_largepic): Likewise.
18030         (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
18031         Remove predicate from call operand.
18032         * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
18033         return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
18035 2013-08-28  Jeff Law  <law@redhat.com>
18037         * tree-ssa-threadedge.c (thread_around_empty_block): Remove
18038         checks for the number of predecessors and successors allowed.
18039         * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
18040         which require copying a joiner block if there is a request which
18041         is a subpath that requires no joiner block copying.
18043 2013-08-28  Jan Hubicka  <jh@suse.cz>
18045         * lto-streamer-out.c (DFS_write_tree_body): Drop
18046         BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
18047         (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
18048         BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
18049         * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
18050         Do not read DECL_ERROR_ISSUED.
18051         (unpack_ts_decl_with_vis_value_fields): Do not read
18052         DECL_DEFER_OUTPUT.
18053         (lto_input_ts_binfo_tree_pointers): Do not read
18054         BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
18055         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
18056         write DECL_ERROR_ISSUED..
18057         (pack_ts_decl_with_vis_value_fields): Do not write
18058         DECL_DEFER_OUTPUT.
18059         (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
18060         BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
18061         * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
18062         * tree.h (tree_decl_common): Update comment.
18063         (DECL_ERROR_ISSUED): Remove.
18065 2013-08-28  Jakub Jelinek  <jakub@redhat.com>
18067         PR middle-end/58257
18068         * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
18070 2013-08-28  Jan Hubicka  <jh@suse.cz>
18072         * builtins.def (free): Declare leaf.
18074 2013-08-27  David Malcolm  <dmalcolm@redhat.com>
18076         * gdbhooks.py: New.
18077         * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
18078         * configure: Regenerate.
18080 2013-08-27  Martin Jambor  <mjambor@suse.cz>
18082         * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
18083         (ipa_ancestor_jf_data): Likewise.
18084         (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
18085         (ipa_get_jf_pass_through_type_preserved): New function.
18086         (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
18087         (ipa_get_jf_ancestor_type_preserved): New function.
18088         * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
18089         (ipa_get_jf_ancestor_result): Likewise.
18090         (propagate_vals_accross_pass_through): Use
18091         ipa_get_jf_pass_through_result to do all the value mappings.
18092         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
18093         type_preserved flag.
18094         (ipa_set_jf_cst_copy): New function.
18095         (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
18096         (ipa_set_jf_arith_pass_through): Likewise.
18097         (ipa_set_ancestor_jf): Likewise.
18098         (compute_complex_assign_jump_func): Set type_preserved instead of
18099         punting.
18100         (ipa_compute_jump_functions_for_edge): Likewise.
18101         (combine_known_type_and_ancestor_jfs): Honor type_preserved.
18102         (update_jump_functions_after_inlining): Update type_preserved.
18103         Explicitely create jump functions when combining one with pass_through.
18104         (ipa_write_jump_function): Stream the type_preserved flags.
18105         (ipa_read_jump_function): Likewise.
18107 2013-08-27  Jakub Jelinek  <jakub@redhat.com>
18108             Aldy Hernandez  <aldyh@redhat.com>
18110         * Makefile.in (omp-low.o): Depend on $(TARGET_H).
18111         * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
18112         * function.h (struct function): Add has_force_vect_loops and
18113         has_simduid_loops.
18114         * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
18115         * gimple.c (gimple_build_omp_critical): Add KIND argument and
18116         handle it.
18117         * gimple.def: Update CLAUSES comments.
18118         * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
18119         (gimple_build_omp_for): Add argument to prototype.
18120         (gimple_omp_for_kind): New.
18121         (gimple_omp_for_set_kind): New.
18122         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
18123         GOVD_DATA_SHARE_CLASS.
18124         (enum omp_region_type): Add ORT_SIMD.
18125         (gimple_add_tmp_var): Handle ORT_SIMD.
18126         (gimplify_var_or_parm_decl): Same.
18127         (is_gimple_stmt): Same.
18128         (omp_firstprivatize_variable): Same.
18129         (omp_add_variable): Only use splay_tree_insert if lookup failed.
18130         (omp_notice_variable): Handle ORT_SIMD.
18131         (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
18132         (omp_check_private): Handle ORT_SIMD.
18133         (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
18134         OMP_CLAUSE_SAFELEN.
18135         (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
18136         Handle OMP_CLAUSE_LASTPRIVATE.
18137         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
18138         OMP_CLAUSE_SAFELEN.
18139         (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
18140         (gimplify_expr): Handle OMP_SIMD.
18141         * internal-fn.c (expand_GOMP_SIMD_LANE): New.
18142         (expand_GOMP_SIMD_VF): New.
18143         (expand_GOMP_SIMD_LAST_LANE): New.
18144         * internal-fn.def (GOMP_SIMD_LANE): New.
18145         (GOMP_SIMD_VF): New.
18146         (GOMP_SIMD_LAST_LANE): New.
18147         * omp-low.c: Include target.h.
18148         (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
18149         OMP_CLAUSE_SAFELEN.
18150         (check_omp_nesting_restrictions): Same.
18151         (omp_max_vf): New.
18152         (lower_rec_simd_input_clauses): New.
18153         (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
18154         OMP_CLAUSE_LINEAR.
18155         (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
18156         GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
18157         (expand_omp_build_assign): New.
18158         (expand_omp_for_init_counts): New.
18159         (expand_omp_for_init_vars): New.
18160         (extract_omp_for_update_vars): New.
18161         (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
18162         and rewrite accordingly.
18163         (expand_omp_simd): New.
18164         (expand_omp_for): Use expand_omp_simd.
18165         (lower_omp_for_lastprivate): Unshare vinit when appropriate.
18166         (lower_omp_for): Do not lower the body.
18167         * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
18168         in their own loops.
18169         * tree-flow.h (find_omp_clause): Remove prototype.
18170         * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
18171         forcing vectorization of the loop, or if flag_tree_vectorize.
18172         (gate_tree_if_conversion): Similarly.
18173         * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
18174         gimple_build_omp_for.
18175         (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
18176         * tree-parloops (create_parallel_loop): Pass kind argument to
18177         gimple_build_omp_for.
18178         * tree-pretty-print.c (dump_omp_clause): Add cases for
18179         OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
18180         OMP_CLAUSE__SIMDUID_.
18181         (dump_generic_node): Handle OMP_SIMD.
18182         * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
18183         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
18184         unroll OMP_SIMD loops here.
18185         * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
18186         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
18187         loop->safelen.
18188         (vect_analyze_data_refs): Handle simd loops.
18189         * tree-vect-loop.c (vectorizable_live_operation): Handle
18190         IFN_GOMP_SIMD*.
18191         * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
18192         (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
18193         (vectorizable_load): Same.
18194         * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
18195         (struct simduid_to_vf): New.
18196         (simduid_to_vf::hash): New.
18197         (simduid_to-vf::equal): New.
18198         (struct simd_array_to_simduid): New.
18199         (simd_array_to_simduid::hash): New.
18200         (simd_array_to_simduid::equal): New.
18201         (adjust_simduid_builtins): New.
18202         (struct note_simd_array_uses_struct): New.
18203         (note_simd_array_uses_cb): New.
18204         (note_simd_array_uses): New.
18205         (vectorize_loops): Handle simd hints and adjust simd builtins
18206         accordingly.
18207         * tree-vectorizer.h (struct _stmt_vec_info): Add
18208         simd_lane_access_p field.
18209         (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
18210         * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
18211         OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
18212         (omp_clause_code_name): Same.
18213         (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
18214         OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
18215         * tree.def (OMP_SIMD): New entry.
18216         * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
18217         OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
18218         (OMP_CLAUSE_DECL): Adjust range for new clauses.
18219         (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
18220         (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
18221         (OMP_CLAUSE_LINEAR_STEP): New.
18222         (OMP_CLAUSE_SAFELEN_EXPR): New.
18223         (OMP_CLAUSE__SIMDUID__DECL): New.
18224         (find_omp_clause): New prototype.
18226 2013-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18228         * config/i386/driver-i386.c (host_detect_local_cpu): Update
18229         Haswell processor detection.
18231 2013-08-27  Christian Widmer  <shadow@umbrox.de>
18233         PR target/57927
18234         * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
18235         of Ivy Bridge and Haswell processors.  Assume core-avx2 for unknown
18236         AVX2 capable processors.
18238 2013-08-27  Tejas Belagod  <tejas.belagod@arm.com>
18240         * config/aarch64/arm_neon.h: Replace all inline asm implementations
18241         of vget_low_* with implementations in terms of other intrinsics.
18243 2013-08-27  Marc Glisse  <marc.glisse@inria.fr>
18245         PR middle-end/57219
18246         * doc/extend.texi (__builtin_isinf_sign): Restrict the return
18247         values to -1, 0 and 1.
18249 2013-08-27  Vidya Praveen  <vidyapraveen@arm.com>
18251         * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
18252         UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
18253         (<optab><mode>3_insn): Remove.
18254         (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
18255         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
18256         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
18257         (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
18258         (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
18259         (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
18260         (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
18261         (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
18262         (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
18263         (ror<mode>3_insn): Likewise.
18264         * config/aarch64/predicates.md (aarch64_simd_register): New.
18266 2013-08-27  Richard Biener  <rguenther@suse.de>
18268         PR tree-optimization/57521
18269         * tree-if-conv.c (if_convertible_bb_p): Verify that at least
18270         one edge is non-critical.
18271         (find_phi_replacement_condition): Make sure to use a non-critical
18272         edge.  Cleanup and remove old bug workarounds.
18273         (bb_postdominates_preds): Remove.
18274         (if_convertible_loop_p_1): Do not compute post-dominators.
18275         (combine_blocks): Do not free post-dominators.
18276         (main_tree_if_conversion): Likewise.
18277         (pass_data_if_conversion): Add TODO_verify_ssa.
18279 2013-08-27  DJ Delorie  <dj@redhat.com>
18281         * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
18283 2013-08-27  Yufeng Zhang  <yufeng.zhang@arm.com>
18285         * function.c (assign_parm_find_data_types): Set passed_mode and
18286         nominal_mode to the TYPE_MODE of nominal_type for the built
18287         pointer type in case of the struct-pass-by-reference.
18289 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
18291         * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
18292         (UINT16_TYPE): Change default to "unsigned int".
18294         * config/avr/avr.opt (mfract-convert-truncate): New option.
18295         * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
18296         is set, round negative fractional integers according to n1169
18297         when converting to integer types.
18299 2013-08-26  Jan Hubicka  <jh@suse.cz>
18301         * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
18302         methods can not be called indirectly when their address is not taken.
18304 2013-08-26  Jan Hubicka  <jh@suse.cz>
18306         * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
18307         ctor_for_folding.
18309 2013-08-26  Jan Hubicka  <jh@suse.cz>
18311         * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
18312         can be unshared.
18314 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
18316         * reload.c (find_valid_class): Allow classes that do not include
18317         FIRST_PSEUDO_REGISTER - 1.
18319 2013-08-26  Jan Hubicka  <jh@suse.cz>
18321         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
18322         fix edge count/frequency when speculation failed; fix type check
18323         for the direct call.
18325 2013-08-26  Jan Hubicka  <jh@suse.cz>
18327         * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
18329 2013-08-26  Jan Hubicka  <jh@suse.cz>
18331         * ipa-inline-transform.c (inline_transform): Be ready for basic block
18332         to be changed by edge redirection.
18334 2013-08-26  Jan Hubicka  <jh@suse.cz>
18336         * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
18337         formating; add sanity check.
18338         (cgraph_resolve_speculation): Add FIXME about scaling profiles.
18339         (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
18340         * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
18341         (resolve_noninline_speculation): Update callee keys, too.
18343 2013-08-26  Jan Hubicka  <jh@suse.cz>
18345         * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
18346         (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
18348 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
18350         * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
18351         into proper place.
18353 2013-08-26  Uros Bizjak  <ubizjak@gmail.com>
18355         * config/i386/i386.c (ix86_debug_options): Remove prototype.
18356         (x86_64_elf_select_section): Ditto.
18357         (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
18358         arguments.
18359         (ix86_pass_by_reference): Ditto.
18360         (output_set_got): Ditto.
18361         (ix86_unary_operator_ok): Ditto.
18362         (ix86_expand_builtin): Ditto.
18364 2013-08-23  Jan Hubicka  <jh@suse.cz>
18366         * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
18368 2013-08-23  Jan Hubicka  <jh@suse.cz>
18370         * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
18371         (tree_decl_with_vis): Add FINAL field.
18373 2013-08-23  Jeff Law  <law@redhat.com>
18375         * tree-ssa-pre.c (do_regular_insertion): Include the expression in
18376         the debugging dump when the expression is fully redundant.
18378 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18380         * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
18381         * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
18382         * pretty-print.c (pp_formatted_text_data): Likewise.
18383         (pp_write_text_to_stream): Likewise.
18384         (pp_write_text_as_dot_label_to_stream): Likewise.
18385         (pp_append_r): Likewise.
18386         (pp_format): Likewise.
18387         (pp_flush): Likewise.
18388         (pp_clear_output_area): Likewise.
18389         (pp_append_text): Likewise.
18390         (pp_formatted_text): Likewise.
18391         (pp_remaining_character_count_for_line): Likewise.
18392         (pp_newline): Likewise.
18393         (pp_character): Likewise.
18394         (output_buffer::~output_buffer): Define.
18395         (pretty_printer::~pretty_printer): Destruct output buffer.
18396         * pretty-print.h (output_buffer::~output_buffer): Declare.
18397         (pretty_printer::~pretty_printer): Declare virtual.
18399 2013-08-24  Marc Glisse  <marc.glisse@inria.fr>
18401         PR other/57324
18402         * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
18403         HOST_WIDE_INT_M1U): New macros.
18404         * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
18405         fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
18406         unsigned -1 for lshift.
18407         * cse.c (cse_insn): Likewise.
18408         * double-int.c (rshift_double, lshift_double): Likewise.
18409         * builtins.c (fold_builtin_bitop): Likewise.
18410         * combine.c (force_to_mode): Likewise.
18411         * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
18412         * simplify-rtx.c (simplify_const_unary_operation,
18413         simplify_const_binary_operation): Likewise.
18414         * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
18415         check_va_list_escapes): Likewise.
18416         * rtlanal.c (nonzero_bits1): Likewise.
18417         * expmed.c (expand_smod_pow2): Likewise.
18418         * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
18420 2013-08-23  Jan Hubicka  <jh@suse.cz>
18422         * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
18423         as having address taken.
18425 2013-08-23  Jan Hubicka  <jh@suse.cz>
18427         * ipa-utils.h (method_class_type): Declare.
18428         * ipa-devirt.c (method_class_type): Export.
18430         * cgraphunit.c (analyze_functions): Do basic devirtualization;
18431         do not walk base classes of anonymous types.
18433 2013-08-23  Kaz Kojima  <kkojima@gcc.gnu.org>
18435         PR rtl-optimization/58220
18436         PR regression/58221
18437         * final.c (reemit_insn_block_notes): Use NEXT_INSN to
18438         handle SEQUENCE insns properly.
18440 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18442         * pretty-print.h (pp_newline_and_flush): Declare.  Remove macro
18443         definition.
18444         (pp_newline_and_indent): Likewise.
18445         (pp_separate_with): Likewise.
18446         * pretty-print.c (pp_newline_and_flush): Define.
18447         (pp_newline_and_indent): Likewise.
18448         (pp_separate_with): Likewise.
18450 2013-08-23  Jakub Jelinek  <jakub@redhat.com>
18452         PR target/58218
18453         * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
18454         * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
18456 2013-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
18458         * config/i386/predicates.md (ext_sse_reg_operand): New.
18459         * config/i386/i386.md (*movti_internal): Use
18460         predicate to determine if EVEX is needed.
18461         (*movsi_internal): Ditto.
18462         (*movdf_internal): Ditto.
18463         (*movsf_internal): Ditto.
18464         * config/i386/mmx.md (*mov<mode>_internal): Ditto.
18466 2013-08-23  Jakub Jelinek  <jakub@redhat.com>
18468         PR tree-optimization/58209
18469         * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
18470         (find_tail_calls): Give up for pointer result types if m is non-NULL.
18471         (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
18472         emit POINTER_PLUS_EXPR.
18473         (create_tailcall_accumulator): For pointer result type accumulate in
18474         sizetype type.
18476 2013-08-22  Paolo Carlini  <paolo.carlini@oracle.com>
18478         * configure.ac: Add backslashes missing from the last change.
18479         * configure: Regenerate.
18481 2013-08-22  Jan Hubicka  <jh@susue.cz>
18483         * ipa.c (function_and_variable_visibility): First remember function
18484         was global and then make it local.
18486 2013-08-22  Julian Brown  <julian@codesourcery.com>
18488         * configure.ac: Add aarch64 to list of arches which use "nop" in
18489         debug_line test.
18490         * configure: Regenerate.
18492 2013-08-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18494         * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
18495         gnu_libc_has_function.
18496         * config/s390/tpf.h: Likewise.
18498 2013-08-22  Jan Hubicka  <jh@susue.cz>
18500         * timevar.c (validate_phases): Add cast.
18502 2013-08-22  Jan Hubicka  <jh@susue.cz>
18504         * timevar.c (validate_phases): Use size_t for memory.
18505         * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
18507 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18509         * pretty-print.h (output_buffer::output_buffer): Declare.
18510         (pretty_printer::pretty_printer): Likewise.
18511         (pp_construct): Remove.
18512         * pretty-print.c (output_buffer::output_buffer): Define.
18513         (pretty_printer::pretty_printer): Rename from pp_construct.  Simplify.
18514         * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
18515         (print_gimple_expr): Likewise.
18516         (print_gimple_seq): Likewise.
18517         (gimple_dump_bb): Likewise.
18518         * sched-vis.c (dump_value_slim): Likewise.
18519         (dump_insn_slim): Likewise.
18520         (dump_rtl_slim): Likewise.
18521         (str_pattern_slim): Likewise.
18522         * tree-mudflap.c (mf_varname_tree): Likewise.
18523         * graph.c (print_graph_cfg): Likewise.
18524         (start_graph_dump): Likewise.
18525         * tree-pretty-print.c (maybe_init_pretty_print): Likewise.  Use
18526         placement-new.
18527         * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
18528         pretty printer initialization.
18529         * coretypes.h (diagnostic_context): Remove superflous type alias
18530         declaration.
18531         (pretty_printer): Likewise.  Declare directly as a class.
18532         (pretty_print_info): Remove declaration as class.
18533         * asan.c (asan_emit_stack_protection): Remove call to pp_construct
18534         and pp_clear_output_area.
18535         (asan_add_global): Likewise.
18537 2013-08-22  Jan Hubicka  <jh@suse.cz>
18539         * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
18540         * ipa-utils.h (update_type_inheritance_graph): Declare.
18541         (possible_polymorphic_call_target_p): Declare.
18542         (possible_polymorphic_call_target_p): New.
18543         * ipa-devirt.c: Update toplevel comments.
18544         (cached_polymorphic_call_targets): Move up.
18545         (odr_type_d): Move ID down.
18546         (polymorphic_type_binfo_p): Update comment.
18547         (odr_hasher::remove): Likewise;
18548         (get_odr_type): Set anonymous_namespace.
18549         (dump_odr_type): Dump it.
18550         (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
18551         (maybe_record_node): Record node in cached_polymorphic_call_targets.
18552         (record_binfo): Add comment.
18553         (free_polymorphic_call_targets_hash): Do not ICE when cache is not
18554         built.
18555         (devirt_node_removal_hook): Do not iCE when cache is freed.
18556         (possible_polymorphic_call_target_p): New predicate.
18557         (update_type_inheritance_graph): New function.
18559 2013-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18560             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
18561             Sergey Lega  <sergey.s.lega@intel.com>
18562             Anna Tikhonova  <anna.tikhonova@intel.com>
18563             Ilya Tocar  <ilya.tocar@intel.com>
18564             Andrey Turetskiy  <andrey.turetskiy@intel.com>
18565             Ilya Verbin  <ilya.verbin@intel.com>
18566             Kirill Yukhin  <kirill.yukhin@intel.com>
18567             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
18569         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
18570         (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
18571         (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
18572         (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
18573         (OPTION_MASK_ISA_AVX2_UNSET): Update.
18574         (OPTION_MASK_ISA_AVX512F_UNSET): New.
18575         (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
18576         (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
18577         (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
18578         (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
18579         OPT_mavx512pf, OPT_mavx512er cases.
18580         * config/i386/constraints.md (v): New constraint.
18581         (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
18582         * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
18583         (bit_AVX512CD): New.
18584         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
18585         AVX512F, AVX512ER, AVX512PF, AVX512CD features.
18586         * config/i386/i386-c.c (ix86_target_macros_internal):
18587         Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
18588         __AVX512PF__.
18589         * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
18590         (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
18591         * config/i386/i386.c (regclass_map, dbx_register_map)
18592         (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
18593         (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
18594         (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
18595         -mavx512pf options.
18596         (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
18597         PTA_AVX512PF, PTA_AVX512CD.  Handle -mavx512f, -mavx512er, -mavx512cd,
18598         -mavx512pf options.  Fix formatting.
18599         (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
18600         targets.  Squash EVEX_SSE_REGS if AVX512F is disabled.
18601         (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
18602         -mavx512cd, -mavx512pf options.
18603         (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
18604         (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
18605         (ix86_preferred_output_reload_class): Replace SSE_REGS with
18606         ALL_SSE_REGS.
18607         (ix86_hard_regno_mode_ok): Support 512-bit registers.
18608         (ix86_set_reg_reg_cost): Ditto.
18609         (x86_order_regs_for_local_alloc): Ditto.
18610         (MAX_VECT_LEN): Extend to 64-byte.
18611         (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
18612         * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
18613         (TARGET_AVX512ER, TARGET_AVX512CD): New.
18614         (BIGGEST_ALIGNMENT): Extend to 512-bits.
18615         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
18616         (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
18617         (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
18618         (SSE_REG_MODE_P): Support new modes.
18619         (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
18620         (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
18621         (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
18622         (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
18623         (REG_CLASS_CONTENTS): Add new registers.
18624         (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
18625         (EXT_REX_SSE_REGNO_P): New.
18626         (HI_REGISTER_NAMES): Add new registers.
18627         * config/i386/i386.md: Define constants for new registers.
18628         (mode): Add new 512-bit modes.
18629         (prefix): Support evex prefix.
18630         (isa): Support avx512f, noavx512f, fma_avx512f.
18631         (ssemodesuffix): Add new 512-bit modes.
18632         (movxi): New.
18633         (*movxi_internal_avx512f): Ditto.
18634         (*movdi_internal): Replace constraint "x" with the new constraint "v".
18635         Support MODE_XI.
18636         (*movsi_internal): Likewise.
18637         (*movdf_internal): Likewise.
18638         (*movsf_internal): Likewise.
18639         (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
18640         (<code><mode>3): Likewise.
18641         * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
18642         New.
18643         * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
18644         with the new constraint "v".
18645         * config/i386/sse.md (*mov<mode>_internal): Support new registers and
18646         modes.
18647         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
18648         with the new constraint "v".
18649         (<sse2>_loaddqu<avxsizesuffix>): Likewise.
18650         (<sse2>_storedqu<avxsizesuffix>): Likewise.
18651         (*<plusminus_insn><mode>3): Likewise.
18652         (<sse>_vm<plusminus_insn><mode>3): Likewise.
18653         (*mul<mode>3): Likewise.
18654         (<sse>_vmmul<mode>3): Likewise.
18655         (<sse>_div<mode>3): Likewise.
18656         (<sse>_vmdiv<mode>3): Likewise.
18657         (<sse>_sqrt<mode>2): Likewise.
18658         (<sse>_vmsqrt<mode>2): Likewise.
18659         (*<code><mode>3_finite): Likewise.
18660         (*<code><mode>3) <smaxmin>: Likewise.
18661         (<sse>_vm<code><mode>3): Likewise.
18662         (*<code><mode>3) <any_logic>: Likewise.
18663         (*fma_fmadd_<mode>): Likewise.
18664         (*fma_fmsub_<mode>): Likewise.
18665         (*fma_fnmadd_<mode>): Likewise.
18666         (*fma_fnmsub_<mode>): Likewise.
18667         (*fma_fmaddsub_<mode>): Likewise.
18668         (*fma_fmsubadd_<mode>): Likewise.
18669         (*fmai_fmadd_<mode>): Likewise.
18670         (*fmai_fmsub_<mode>): Likewise.
18671         (*fmai_fnmadd_<mode>): Likewise.
18672         (*fmai_fnmsub_<mode>): Likewise.
18673         (sse_cvtsi2ss): Likewise.
18674         (sse_cvtsi2ssq): Likewise.
18675         (sse_cvtss2si): Likewise.
18676         (sse_cvtss2si_2): Likewise.
18677         (sse_cvtss2siq): Likewise.
18678         (sse_cvtss2siq_2): Likewise.
18679         (sse_cvttss2si): Likewise.
18680         (sse_cvtss2siq_2): Likewise.
18681         (float<sseintvecmodelower><mode>2): Likewise.
18682         (sse2_cvtsd2si_2): Likewise.
18683         (sse2_cvtsd2siq_2): Likewise.
18684         (*<plusminus_insn><mode>3): Likewise.
18685         (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
18686         (*<sse4_1_avx2>_mul<mode>3): Likewise.
18687         (ashr<mode>3): Likewise.
18688         (<shift_insn><mode>3): Likewise.
18689         (avx2_<code><mode>3): Likewise.
18690         (*avx2_<code><mode>3): Likewise.
18691         (*andnot<mode>3): Likewise.
18692         (*<code><mode>3) <any_logic>: Likewise.
18693         (abs<mode>2): Likewise.
18694         (avx2_permvar<mode>): Likewise.
18695         (avx2_perm<mode>_1): Likewise.
18696         (*avx_vpermilp<mode>): Likewise.
18697         (avx_vpermilvar<mode>3): Likewise.
18698         (avx2_ashrv<mode>): Likewise.
18699         (avx2_<shift_insn>v<mode>): Likewise.
18700         * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
18701         -mavx512cd.
18702         * doc/rtl.texi: Document XImode.
18704 2013-08-21  Jeff Law  <law@redhat.com>
18706         * tree-flow.h (register_jump_thread): Pass vector of edges
18707         instead of each important edge.
18708         * tree-ssa-threadedge.c (thread_across_edge): Build the jump
18709         thread path into a vector and pass that to register_jump_thread.
18710         * tree-ssa-threadupdate.c (register_jump_thread): Conver the
18711         passed in edge vector to the current 3-edge form.
18713         Revert:
18714         2013-08-20  Alexey Makhalov  <makhaloff@gmail.com>
18716         * dce.c (fini_dce): Call df_analyze again just in case
18717         delete_unmarked_insns removed anything.
18719 2013-08-21  Joern Rennecke  <joern.rennecke@embecosm.com>
18721         * reload.h (struct reg_equivs): Rename to ..
18722         (struct reg_equivs_s): .. this.
18724 2013-08-20  Martin Liska  <marxin.liska@gmail.com>
18726         * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
18728 2013-08-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18730         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
18732 2013-08-21  Jeff Law  <law@redhat.com>
18734         * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
18735         simplify assignments too.  If the RHS collapses to a singleton
18736         range, then return the value for the range.
18738 2013-08-21  Kirill Yukhin  <kirill.yukhin@intel.com>
18740         * config/i386/sse.md (V16): Rename to...
18741         (VMOVE): this.
18742         (mov<mode>): Update iterator name.
18743         (*mov<mode>_internal): Ditto.
18744         (push<mode>1): Ditto.
18745         (movmisalign<mode>): Ditto.
18747 2013-08-20  Jan Hubicka  <jh@suse.cz>
18749         PR bootstrap/58186
18750         * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
18751         entry for direct edges.
18752         (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
18754 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
18756         Revert my last two changes, r201865 and r201864:
18758         Revert r201865:
18759         2013-08-20  David Malcolm  <dmalcolm@redhat.com>
18761         Make opt_pass and gcc::pass_manager be GC-managed, so that pass
18762         instances can own GC refs.
18764         * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
18765         * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
18766         (gcc::context::gt_pch_nx): Likewise.
18767         (gcc::context::gt_pch_nx):  Likewise.
18768         * ggc.h (gt_ggc_mx <T>): New.
18769         (gt_pch_nx_with_op <T>): New.
18770         (gt_pch_nx <T>): New.
18771         * passes.c (opt_pass::gt_ggc_mx): New.
18772         (opt_pass::gt_pch_nx): New.
18773         (opt_pass::gt_pch_nx_with_op): New.
18774         (pass_manager::gt_ggc_mx): New.
18775         (pass_manager::gt_pch_nx): New.
18776         (pass_manager::gt_pch_nx_with_op): New.
18777         (pass_manager::operator new): Use
18778         ggc_internal_cleared_alloc_stat rather than xcalloc.
18779         * pass_manager.h (class pass_manager): Add GTY((user)) marking.
18780         (pass_manager::gt_ggc_mx): New.
18781         (pass_manager::gt_pch_nx): New.
18782         (pass_manager::gt_pch_nx_with_op): New.
18783         * tree-pass.h (class opt_pass): Add GTY((user)) marking.
18784         (opt_pass::operator new): New.
18785         (opt_pass::gt_ggc_mx): New.
18786         (opt_pass::gt_pch_nx): New.
18787         (opt_pass::gt_pch_nx_with_op): New.
18789         Revert r201864:
18790         2013-08-20  David Malcolm  <dmalcolm@redhat.com>
18792         * Makefile.in (GTFILES): Add context.h.
18793         * context.c (gcc::context::operator new): New.
18794         (gcc::context::gt_ggc_mx): New.
18795         (gcc::context::gt_pch_nx): New.
18796         (gcc::context::gt_pch_nx): New.
18797         * context.h (gcc::context): Add GTY((user)) marking.
18798         (gcc::context::operator new): New.
18799         (gcc::context::gt_ggc_mx): New.
18800         (gcc::context::gt_pch_nx): New.
18801         (gcc::context::gt_pch_nx): New.
18802         (g): Add GTY marking.
18803         (gt_ggc_mx (gcc::context *)): New.
18804         (gt_pch_nx (gcc::context *)): New.
18805         (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
18806         void *cookie)): New.
18807         * gengtype.c (open_base_files) <ifiles>: Add context.h.
18809 2013-08-20  Alexey Makhalov  <makhaloff@gmail.com>
18811         * dce.c (fini_dce): Call df_analyze again just in case
18812         delete_unmarked_insns removed anything.
18814 2013-08-20  Teresa Johnson  <tejohnson@google.com>
18816         PR rtl-optimizations/57451
18817         * final.c (reemit_insn_block_notes): Prevent lexical blocks
18818         from crossing split section boundaries.
18820 2013-08-20  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
18822         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
18823         * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
18824         with MULTLIB_DEFAULTS.
18826 2013-08-20  Nick Clifton  <nickc@redhat.com>
18828         * target.def (narrow_volatile_bitfield): Note that the default
18829         value is false, not !TARGET_STRICT_ALIGN.
18830         * doc/tm.texi: Regenerate.
18832 2013-08-20  Pavel Chupin  <pavel.v.chupin@intel.com>
18834         Fix LIB_SPEC for systems without libpthread.
18836         * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
18837         * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
18838         for Android.
18839         * config/i386/linux-common.h: Likewise.
18840         * config/mips/linux-common.h: Likewise.
18842 2013-08-20  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
18844         * tree-ssa-ccp.c (get_default_value): Remove redundant condition
18845         checks.
18847 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
18849         Make opt_pass and gcc::pass_manager be GC-managed, so that pass
18850         instances can own GC refs.
18852         * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
18853         * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
18854         (gcc::context::gt_pch_nx): Likewise.
18855         (gcc::context::gt_pch_nx):  Likewise.
18856         * ggc.h (gt_ggc_mx <T>): New.
18857         (gt_pch_nx_with_op <T>): New.
18858         (gt_pch_nx <T>): New.
18859         * passes.c (opt_pass::gt_ggc_mx): New.
18860         (opt_pass::gt_pch_nx): New.
18861         (opt_pass::gt_pch_nx_with_op): New.
18862         (pass_manager::gt_ggc_mx): New.
18863         (pass_manager::gt_pch_nx): New.
18864         (pass_manager::gt_pch_nx_with_op): New.
18865         (pass_manager::operator new): Use
18866         ggc_internal_cleared_alloc_stat rather than xcalloc.
18867         * pass_manager.h (class pass_manager): Add GTY((user)) marking.
18868         (pass_manager::gt_ggc_mx): New.
18869         (pass_manager::gt_pch_nx): New.
18870         (pass_manager::gt_pch_nx_with_op): New.
18871         * tree-pass.h (class opt_pass): Add GTY((user)) marking.
18872         (opt_pass::operator new): New.
18873         (opt_pass::gt_ggc_mx): New.
18874         (opt_pass::gt_pch_nx): New.
18875         (opt_pass::gt_pch_nx_with_op): New.
18877 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
18879         * Makefile.in (GTFILES): Add context.h.
18880         * context.c (gcc::context::operator new): New.
18881         (gcc::context::gt_ggc_mx): New.
18882         (gcc::context::gt_pch_nx): New.
18883         (gcc::context::gt_pch_nx): New.
18884         * context.h (gcc::context): Add GTY((user)) marking.
18885         (gcc::context::operator new): New.
18886         (gcc::context::gt_ggc_mx): New.
18887         (gcc::context::gt_pch_nx): New.
18888         (gcc::context::gt_pch_nx): New.
18889         (g): Add GTY marking.
18890         (gt_ggc_mx (gcc::context *)): New.
18891         (gt_pch_nx (gcc::context *)): New.
18892         (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
18893         void *cookie)): New.
18894         * gengtype.c (open_base_files) <ifiles>: Add context.h.
18896 2013-08-20  Alan Modra  <amodra@gmail.com>
18898         PR target/57865
18899         * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
18900         (rs6000_emit_epilogue): Likewise.
18902 2013-08-19  Dehao Chen  <dehao@google.com>
18904         * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
18906 2013-08-19  Peter Bergner  <bergner@vnet.ibm.com>
18907             Jakub Jelinek  <jakub@redhat.com>
18909         * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
18910         (BUILT_IN_FABSD64): Likewise.
18911         (BUILT_IN_FABSD128): Likewise.
18912         * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
18913         (fold_builtin_1): Likewise.
18914         * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
18915         destination and source operands.
18916         (*abstd2_fpr): Likewise.
18917         (*nabstd2_fpr): Likewise.
18919 2013-08-19  Richard Sandiford  <rdsandiford@googlemail.com>
18921         * config/mips/mips.c (mips_adjust_insn_length): Add checks for
18922         JUMP_P and INSN_P.
18924 2013-08-19  Aldy Hernandez  <aldyh@redhat.com>
18926         * doc/invoke.texi (-fcilkplus): Clarify that implementation is
18927         incomplete.
18929 2013-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18931         * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
18932         * builtins.c (default_libc_has_function): New.
18933         (gnu_libc_has_function): Ditto.
18934         (no_c99_libc_has_function): Ditto.
18935         (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
18936         instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
18937         (fold_builtin_sincos): Likewise.
18938         (fold_builtin_cexp): Likewise.
18939         * builtins.def (DEF_C94_BUILTIN): Likewise.
18940         (DEF_C99_BUILTIN): Likewise.
18941         (DEF_C99_C90RES_BUILTIN): Likewise.
18942         (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
18943         definitions to using this define.
18944         * config/darwin-protos.h (darwin_libc_has_function): New.
18945         * config/darwin.c (darwin_libc_has_function): Ditto.
18946         * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
18947         TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
18948         * config/darwin.h: Ditto.
18949         * config/elfos.h: Ditto.
18950         * config/freebsd.h: Ditto.
18951         * config/i386/cygming.h: Ditto.
18952         * config/i386/djgpp.h: Ditto.
18953         * config/i386/i386-interix.h: Ditto.
18954         * config/microblaze/microblaze.h: Ditto.
18955         * config/mmix/mmix.h: Ditto.
18956         * config/gnu-user.h: Ditto.
18957         * config/ia64/hpux.h: Ditto.
18958         * config/pa/pa-hpux.h: Ditto.
18959         * config/pdp11/pdp11.h: Ditto.
18960         * config/picochip/picochip.h: Ditto.
18961         * config/linux.h: Ditto.
18962         * config/netbsd.h: Ditto.
18963         * config/openbsd.h: Ditto.
18964         * config/rs6000/aix43.h: Ditto.
18965         * config/rs6000/aix51.h: Ditto.
18966         * config/rs6000/aix52.h: Ditto.
18967         * config/rs6000/aix53.h: Ditto.
18968         * config/rs6000/aix61.h: Ditto.
18969         * config/rs6000/darwin.h: Ditto.
18970         * config/rs6000/linux.h: Ditto.
18971         * config/rs6000/linux64.h: Ditto.
18972         * config/s390/tpf.h: Ditto.
18973         * config/sol2-10.h: Ditto.
18974         * config/sol2.h: Ditto.
18975         * config/vms/vms.h: Ditto.
18976         * config/vxworks.h: Ditto.
18977         * config/linux-android.c (linux_android_libc_has_function):
18978         New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
18979         * config/linux-protos.h (linux_android_libc_has_function):
18980         New declaration.
18981         * config/i386/i386.c (ix86_libc_has_function): New.
18982         * config/i386/i386-protos.h
18983         (ix86_libc_has_function): New declaration.
18984         * config/i386/i386.md
18985         ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
18986         ("isinf<mode>2): Likewise.
18987         * convert.c (convert_to_integer): Using new target hook
18988         TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
18989         TARGET_C99_FUNCTIONS.
18990         * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
18991         * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
18992         * coretypes.h (function_class): New enum for different
18993         classes of functions.
18994         * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
18995         * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
18996         (TARGET_HAS_SINCOS): Likewise.
18997         (TARGET_LIBC_HAS_FUNCTION): New.
18998         * doc/tm.texi: Regenerated.
18999         * targhooks.h (default_libc_has_function): New declaration.
19000         (no_c99_libc_has_function): Ditto.
19001         (gnu_libc_has_function): Ditto.
19002         * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
19003         and TARGET_HAS_SINCOS.
19005 2013-08-18  Jan Hubicka  <jh@suse.cz>
19007         * Makeifle-in (ipa-devirt.o): New.
19008         (GTFILES): Add ipa-utils.h and ipa-devirt.c
19009         * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
19010         (analyze_functions): Look into possible targets of polymorphic call.
19011         * dumpfile.c (dump_files): Add type-inheritance dump.
19012         * dumpfile.h (TDI_inheritance): New.
19013         * ipa-devirt.c: New file.
19014         * ipa-utils.h (odr_type_d): Forward declare.
19015         (odr_type): New type.
19016         (build_type_inheritance_graph): Declare.
19017         (possible_polymorphic_call_targets): Declare and introduce inline
19018         variant when only edge is pased.
19019         (dump_possible_polymorphic_call_targets): Likewise.
19020         * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
19021         * tree.c (type_in_anonymous_namespace_p): Break out from ...
19022         (types_same_for_odr): ... here.
19023         * tree.h (type_in_anonymous_namespace_p): Declare.
19025 2013-08-18  Jakub Jelinek  <jakub@redhat.com>
19027         PR tree-optimization/58006
19028         * tree-parloops.c (take_address_of): Don't ICE if get_name
19029         returns NULL.
19030         (eliminate_local_variables_stmt): Remove clobber stmts.
19032 2013-08-18  Eric Botcazou  <ebotcazou@adacore.com>
19034         * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
19035         error message is issued for an alias to undefined symbol.
19037 2013-08-18  Jan Hubicka  <jh@suse.cz>
19039         * cgraph.c (cgraph_create_indirect_edge): Discover
19040         polymorphic calls and record basic info into indirect_info.
19041         * gimple-fold.c (gimple_fold_call): When doing BINFO based
19042         devirtualization, ignore objc function calls.
19043         * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
19044         call with no parm index info.
19045         * ipa-prop.c (ipa_analyze_call_uses): Likewise.
19046         * tree.c (virtual_method_call_p): New function.
19047         * tree.h (virtual_method_call_p): Declare.
19049 2013-08-16  Jan Hubicka  <jh@suse.cz>
19051         PR middle-end/58179
19052         * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
19054 2013-08-16  David Edelsohn  <dje.gcc@gmail.com>
19056         * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
19057         attribute.
19059 2013-08-16  David Malcolm  <dmalcolm@redhat.com>
19061         * gengtype.c (type_for_name): Add special-case support for
19062         locating types within the "gcc::" namespace.
19063         (open_base_files): Emit a "using namespace gcc" directive.
19065 2013-08-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
19067         PR target/58160
19068         * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
19069         memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
19071         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
19072         array instead of each individual operand as a separate argument.
19073         (emit_fusion_gpr_load): Likewise.
19074         (expand_fusion_gpr_load): Add new function declaration.
19076         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
19077         signature to have the operands passed as an array, instead of as
19078         separate arguments.  Allow ZERO_EXTEND to be in the memory
19079         address, and also SIGN_EXTEND if -mpower8-fusion-sign.  Do not
19080         depend on the register live/dead flags when peepholes are run.
19081         (expand_fusion_gpr_load): New function to be called from the
19082         peephole2 pass, to change the register that addis sets to be the
19083         target register.
19084         (emit_fusion_gpr_load): Change the calling signature to have the
19085         operands passed as an array, instead of as separate arguments.
19086         Allow ZERO_EXTEND to be in the memory address, and also
19087         SIGN_EXTEND if -mpower8-fusion-sign.
19089         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
19090         unspec enumeration.
19091         (power8 fusion peephole/peephole2): Rework the fusion peepholes to
19092         adjust the register addis loads up in the peephole2 pass.  Do not
19093         depend on the register live/dead state when the peephole pass is done.
19095 2013-08-16  David Malcolm  <dmalcolm@redhat.com>
19097         * gengtype.c (create_user_defined_type): Ensure that the kind
19098         is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
19099         declaration is seen before the GTY((user)) marking.
19101 2013-08-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19103         PR target/58105
19104         * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
19106 2013-08-16  Jan Hubicka  <jh@suse.cz>
19108         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
19109         arugment expected_type.
19110         (gimple_fold_call): Use it.
19111         * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
19112         * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
19113         * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
19114         (try_make_edge_direct_virtual_call): Likewise.
19115         * tree.c (obj_type_ref_class): New.
19116         * tree.h (obj_type_ref_class): Use it.
19118 2013-08-16  Gabriel Dos Reis  <gdr@integrable-solutions.net>
19120         * sched-vis.c (rtl_slim_pp_initialized): Remove.
19121         (rtl_slim_pp): Likewise.
19122         (init_rtl_slim_pretty_print): Likewise.
19123         (dump_value_slim):  Don't call it.  Use local pretty printer.
19124         (dump_insn_slim): Likewise.
19125         (dump_rtl_slim): Likewise.
19126         (str_pattern_slim): Likewise.
19127         * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
19128         Simplify.
19130 2013-08-16  Jakub Jelinek  <jakub@redhat.com>
19132         PR tree-optimization/58164
19133         * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
19134         walk gimple_goto_dest of GIMPLE_GOTO.
19136         PR tree-optimization/58165
19137         * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
19138         bi_call must be the last stmt in a bb, don't split_block, instead
19139         use fallthru edge from it and give up if there is none.
19140         Release conds vector when returning early.
19142 2013-08-14  Xinliang David Li  <davidxl@google.com>
19144         * config/i386/i386.c (ix86_option_override_internal):
19145         Remove unused variable and field.
19147 2013-08-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19149         PR target/57949
19150         * doc/invoke.texi: Add documentation of mcompat-align-parm option.
19151         * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
19152         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
19153         and Linux, correct BLKmode alignment when 128-bit alignment is
19154         required and compatibility flag is not set.
19155         (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
19156         for zero-size arguments when compatibility flag is not set.
19158 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
19160         PR tree-optimization/58145
19161         * tree-sra.c (build_ref_for_offset): If prev_base has
19162         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
19164 2013-08-14  Xinliang David Li  <davidxl@google.com>
19166         * config/i386/i386.c (ix86_option_override_internal):
19167         Fix uninitialized variable error.
19169 2013-08-14  Xinliang David Li  <davidxl@google.com>
19171         * config/i386/i386.opt: Define two new options.
19172         * config/i386/x86-tune.def: Add arch selector field in macros.
19173         * config/i386/i386.h: Adjust macro definition.
19174         * config/i386/i386.c (ix86_option_override_internal):
19175         Refactor the code.
19176         (parse_mtune_ctrl_str): New function.
19177         (set_ix86_tune_features): New function.
19178         (ix86_function_specific_restore): Call the new helper function.
19180 2013-08-14  Andrey Belevantsev  <abel@ispras.ru>
19182         PR rtl-optimization/57662
19183         * sel-sched.c (code_motion_process_successors): When the current insn
19184         is removed after the recursive traversal, break from the loop.
19185         Add comments and debug printouts.
19187 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
19188             Alexandre Oliva  <aoliva@redhat.com>
19190         PR target/58067
19191         * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
19192         and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
19193         there also UNSPEC_PLTOFF.
19195 2013-08-14  Marek Polacek  <polacek@redhat.com>
19197         * ipa-inline-analysis.c (add_clause): Avoid shifting integer
19198         NUM_CONDITIONS bit positions.
19200 2013-08-13  Cary Coutant  <ccoutant@google.com>
19202         * dwarf2out.c (CHECKSUM_BLOCK): New macro.
19203         (attr_checksum): Hash vector contents instead of pointer.
19204         (attr_checksum_ordered): Likewise.
19206 2013-08-13  Uros Bizjak  <ubizjak@gmail.com>
19208         * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
19209         when Pmode != word_mode.  Add length_address attribute.
19210         (sse3_monitor_<mode>): Merge from sse3_monitor and
19211         sse3_monitor64_<mode> insn patterns.  Emit addr32 prefix when
19212         Pmode != word_mode.  Update insn length attribute.
19213         * config/i386/i386.c (ix86_option_override_internal): Update
19214         ix86_gen_monitor selection for merged sse3_monitor insn.
19216 2013-08-13  Julian Brown  <julian@codesourcery.com>
19218         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
19219         perform invalid legitimization on greater-than-word-size modes for
19220         TARGET_E500_DOUBLE.
19222 2013-08-13  Vladimir Makarov  <vmakarov@redhat.com>
19224         * ira.c (setup_class_translate_array): Use aclass instead of cl
19225         for classes not fully covered by allocno classes.
19227 2013-08-13  Jakub Jelinek  <jakub@redhat.com>
19229         PR tree-optimization/57661
19230         * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
19231         * tree-inline.c (tree_function_versioning): Initialize it.
19232         (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
19233         if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
19234         that is not being copied.
19236         PR sanitizer/56417
19237         * asan.c (instrument_strlen_call): Fix typo in comment.
19238         Use char * type even for the lhs of POINTER_PLUS_EXPR.
19240 2013-08-13  Steve Ellcey  <sellcey@mips.com>
19242         * config/mips/mips.md (prefetch): Use lw instead of ld on
19243         loongson in 32bit mode.
19245 2013-08-13  Nick Clifton  <nickc@redhat.com>
19247         * config.gcc: (avr-linux): Allow for tmake_file not being empty.
19249 2013-08-13  Jan Hubicka  <jh@suse.cz>
19251         * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
19252         introduced edge; fix typo in sanity check.
19253         (cgraph_resolve_speculation): Export; improve diagnostic.
19254         (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
19255         speculation at type mismatch.
19256         * cgraph.h (cgraph_turn_edge_to_speculative): Update.
19257         (cgraph_resolve_speculation): Declare.
19258         (symtab_can_be_discarded): New function.
19259         * value-prof.c (gimple_ic_transform): Remove actual transform code.
19260         * ipa-inline-transform.c (speculation_removed): New global var.
19261         (clone_inlined_nodes): See if speculation can be removed.
19262         (inline_call): If speculations was removed, we growths may not match.
19263         * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
19264         (speculation_useful_p): New function.
19265         (resolve_noninline_speculation): New function.
19266         (inline_small_functions): Resolve useless speculations.
19267         * ipa-inline.h (speculation_useful_p): Declare
19268         * ipa.c (can_replace_by_local_alias): Simplify.
19269         (ipa_profile): Produce speculative calls in non-lto, too;
19270         add simple cost model; produce local aliases.
19272 2013-08-13  David Malcolm  <dmalcolm@redhat.com>
19274         * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
19275         PASS_MANAGER_H.
19277 2013-08-12  Paolo Carlini  <paolo.carlini@oracle.com>
19279         * config/i386/i386.c (ix86_function_versions): Use error + inform.
19281 2013-08-12  Uros Bizjak  <ubizjak@gmail.com>
19283         * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
19284         iterator instead of X87MODEF.
19286 2013-08-12  Perez Read  <netfirewall@gmail.com>
19288         PR target/58132
19289         * config/i386/i386.md (*movabs<mode>_1):  Add <ptrsize> PTR before
19290         operand 0 for intel asm alternative.
19291         (*movabs<mode>_2): Ditto for operand 1.
19293 2013-08-12  James Greenhalgh  <james.greenhalgh@arm.com>
19295         * config/aarch64/arm_none.h
19296         (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
19298 2013-08-12  Nick Clifton  <nickc@redhat.com>
19300         * config.gcc (m32r-linux): Allow for tmake_file not being empty.
19302 2013-08-12  Yuri Rumyantsev  <ysrumyan@gmail.com>
19304         * config/i386/i386.md (floatunssi<mode>2 expand): Add new
19305         expand for QI/HImode operand to produce more effictive code for
19306         unsigned char(short) --> float(double) conversion.
19308 2013-08-12  Alexander Monakov  <amonakov@ispras.ru>
19310         * doc/invoke.texi: Mention that -ftls-model does not force the final
19311         model.
19313 2013-08-12  Marek Polacek  <polacek@redhat.com>
19314             Marc Glisse  <marc.glisse@inria.fr>
19316         PR tree-optimization/57980
19317         * tree-tailcall.c (process_assignment): Call build_minus_one_cst
19318         when creating -1 constant.
19320 2013-08-10  Jan Hubicka  <jh@suse.cz>
19322         Workaround binutils PR14342.
19323         * tree-profile.c (init_ic_make_global_vars): Add LTO path.
19324         (gimple_init_edge_profiler): Likewise.
19325         (gimple_gen_ic_func_profiler): Likewise.
19327 2013-08-09  Jan Hubicka  <jh@suse.cz>
19329         * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
19331 2013-08-09  Xinliang David Li  <davidxl@google.com>
19333         * config/i386/stringop.def: New file.
19334         * config/i386/stringop.opt: New file.
19335         * config/i386/i386-opts.h: Include stringopt.def.
19336         * config/i386/i386.opt: Include stringopt.opt.
19337         * config/i386/i386.c (ix86_option_override_internal):
19338         Override default size based stringop inline strategies with options.
19339         * config/i386/i386.c (ix86_parse_stringop_strategy_string):
19340         New function.
19342 2013-08-09  Jan Hubicka  <jh@suse.cz>
19344         * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
19346 2013-08-09  Jan Hubicka  <jh@suse.cz>
19348         * cgraph.c (cgraph_resolve_speculation): Cut frequency to
19349         CGRAPH_FREQ_MAX.
19350         (dump_cgraph_node): Dump profile-id.
19351         * cgraph.h (cgraph_indirect_call_info): Add common_target_id
19352         and common_target_probability.
19353         * lto-cgraph.c (lto_output_edge): Stream common targets.
19354         (lto_output_node): Stream profile ids.
19355         (input_node): Stream profile ids.
19356         (input_edge): Stream common targets.
19357         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
19358         * ipa.c: Include value-prof.h
19359         (ipa_profile_generate_summary): Turn indirect call statement histograms
19360         into common targets.
19361         (ipa_profile): Turn common targets into speculative edges.
19363 2013-08-09  Jan Hubicka  <jh@suse.cz>
19365         * cgraph.h (cgraph_node): Add profile_id.
19366         * value-prof.c (cgraph_node_map): Turn into pointer_map.
19367         (init_node_map): Rewrite to handle hashes increas of incremental IDs.
19368         (del_node_map): Update.
19369         (find_func_by_funcdef_no): Replace by ...
19370         (find_func_by_profile_id): ... this one.
19371         (gimple_ic_transform): Do not remove useful histograms when
19372         speculation is not done; dump info when indirect call removal
19373         can happen at LTO.
19374         * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
19375         * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
19376         (__gcov_indirect_call_profiler_v2): .. this one.
19377         * profile.h (init_node_map): Update.
19378         * coverage.c (coverage_compute_profile_id): New function.
19379         * coverage.h (coverage_compute_profile_id): Declare.
19380         * tree-profile.c (init_ic_make_global_vars): Make
19381         __gcov_indirect_call_callee and  __gcov_indirect_call_counters global.
19382         (gimple_init_edge_profiler): Update prototype of
19383         __gcov_indirect_call_profiler.
19384         (gimple_gen_ic_func_profiler): Simplify.
19385         (tree_profiling): Use init_node_map
19387 2013-08-09  Jan Hubicka  <jh@suse.cz>
19389         * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
19390         non-speculative refs.
19391         * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
19392         (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
19393         (cgraph_set_call_stmt): Likewise.
19394         (cgraph_create_edge_1): Fix release checking compilatoin;
19395         clear lto_stmt_uid.
19396         (cgraph_free_edge): Free indirect info.
19397         (cgraph_turn_edge_to_speculative): New function.
19398         (cgraph_speculative_call_info): New function.
19399         (cgraph_make_edge_direct): Return direct edge; handle speculation.
19400         (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
19401         (dump_cgraph_node): Dump speculation.
19402         (verify_edge_count_and_frequency): Accept speculative edges.
19403         (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
19404         (verify_cgraph_node): Handle speculation.
19405         * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
19406         (cgraph_set_call_stmt): Update prototype.
19407         (cgraph_make_edge_direct): Update prototype.
19408         (cgraph_speculative_call_info): Declare.
19409         * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
19410         to change; update call of ipa_find_references.
19411         * ipa-ref.c (ipa_record_reference): Fix return value; clear
19412         lto_stmt_uid and speculative flags.
19413         (ipa_dump_references): Dump speculation.
19414         (ipa_clone_references): Clone speculative flag.
19415         (ipa_clone_referring): Likewise.
19416         (ipa_clone_ref): New function.
19417         (ipa_find_reference): Look into lto_stmt_uids
19418         (ipa_clear_stmts_in_references): Do not clear speculative calls.
19419         * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
19420         (ipa_find_reference): Update declaration.
19421         (ipa_clone_ref): Declare.
19422         * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
19423         stream speculative flag.
19424         (lto_output_ref): Stream statements uids and speculation.
19425         (input_ref): Likewise.
19426         (input_edge): Stream speuclation.
19427         * cgraphclones.c (cgraph_clone_edge): Clone speculation.
19428         (cgraph_set_call_stmt_including_clones): Handle speculation.
19429         * ipa-inline.c (heap_edge_removal_hook): New function.
19430         (inline_small_functions): Register it.
19431         * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
19432         also initialize refs.
19433         * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
19434         edge to change.
19435         (try_make_edge_direct_simple_call): Likewise.
19436         (try_make_edge_direct_simple_call): Likewise.
19437         (update_indirect_edges_after_inlining): Likewise.
19438         (remove_described_reference): Look proper lto_stmt_uid.
19439         (propagate_controlled_uses): Likewise.
19440         (propagate_controlled_uses): Liekwise.
19441         * tree-inline.c (copy_bb): Copy speculative edges.
19442         (redirect_all_calls): New function.
19443         (copy_cfg_body): Do redirection after loop info is updated.
19444         (delete_unreachable_blocks_update_callgraph): Updadte speculation.
19446 2013-08-09  Jan Hubicka  <jh@suse.cz>
19448         * lto-streamer-out.c (output_function): Renumber PHIs.
19449         * lto-streamer-in.c (input_function): Likewise.
19451 2013-08-09  James Greenhalgh  <james.greenhalgh@arm.com>
19453         * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
19454         (get_lane_unsigned): Likewise.
19455         (dup_lane_scalar): Likewise.
19456         (get_lane): enable for VALL.
19457         * config/aarch64/aarch64-simd.md
19458         (aarch64_dup_lane_scalar<mode>): Remove.
19459         (aarch64_get_lane_signed<mode>): Likewise.
19460         (aarch64_get_lane_unsigned<mode>): Likewise.
19461         (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
19462         (aarch64_get_lane_zero_extendsi<mode>): Likewise.
19463         (aarch64_get_lane<mode>): Enable for all vector modes.
19464         (aarch64_get_lanedi): Remove misleading constraints.
19465         * config/aarch64/arm_neon.h
19466         (__aarch64_vget_lane_any): Define.
19467         (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
19468         (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
19469         (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
19470         * config/aarch64/iterators.md (VDQQH): New.
19471         (VDQQHS): Likewise.
19472         (vwcore): Likewise.
19474 2013-08-09  Eric Botcazou  <ebotcazou@adacore.com>
19476         * configure.ac: Add GAS check for LEON instructions on SPARC.
19477         * configure: Regenerate.
19478         * config.in: Likewise.
19479         * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
19480         sparc*-*-* block.
19481         * config/sparc/sparc.opt (LEON, LEON3): New masks.
19482         * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
19483         for LEON or LEON3.
19484         (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
19485         (AS_LEON_FLAG): New macro.
19486         * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
19487         and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
19488         Deal with LEON and LEON3 for the memory model.
19489         * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
19490         (atomic_compare_and_swap<mode>_1): Likewise.
19491         (*atomic_compare_and_swap<mode>_1): Likewise.
19493 2013-08-09  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19495         * config/arm/neon.md (vcond): Fix floating-point vector
19496         comparisons against 0.
19498 2013-08-08  Vladimir Makarov  <vmakarov@redhat.com>
19500         * lra-constraints.c (emit_spill_move): Remove assert.
19501         (process_alt_operands): Add more debugging
19502         output.  Increase reject for spilling into memory.  Decrease
19503         reject for reloading scratch.
19504         (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
19506 2013-08-08  Steve Ellcey  <sellcey@mips.com>
19508         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
19509         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
19510         micromips incompatible.  Add nan2008.
19511         (MULTILIB_DIRNAMES): Add nan2008.
19512         (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
19513         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
19514         and micromips incompatible.  Add nan2008.
19515         (MULTILIB_DIRNAMES): Add nan2008.
19516         (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
19518 2013-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
19520         PR rtl-optimization/58079
19521         * combine.c (combine_simplify_rtx): Avoid using SUBST if
19522         simplify_comparison has widened a comparison with an integer.
19524 2013-08-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19526         * config/arm/neon.md (movmisalign<mode>): Disable when we
19527         don't allow unaligned accesses.
19528         (*movmisalign<mode>_neon_store): Likewise.
19529         (*movmisalign<mode>_neon_load): Likewise.
19530         (*movmisalign<mode>_neon_store): Likewise.
19531         (*movmisalign<mode>_neon_load): Likewise.
19533 2013-08-08  Jan Hubicka  <jh@suse.cz>
19535         * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
19536         (make_pass_rebuild_cgraph_edges): Also clear references.
19537         * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
19538         * ipa-inline-transform.c (inline_transform): Remove all references
19539         after inlining.
19540         * cgraphunit.c (expand_function): Remove all references after
19541         expansion.
19542         * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
19543         (ipa_find_reference): Rewrite to iterator.
19544         (remove_stmt_references): Likewise.
19545         (ipa_clear_stmts_in_references): New function.
19546         * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
19547         * cgraphclones.c (cgraph_materialize_all_clones): Remove or
19548         clear references.
19549         * ipa-split.c (split_function): Remove references in split function.
19551 2013-08-08  Richard Earnshaw  <rearnsha@arm.com>
19553         PR target/57431
19554         * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
19555         (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
19557 2013-08-08  Richard Earnshaw  <rearnsha@arm.com>
19559         PR target/56979
19560         * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
19561         suggested mode for the assignment isn't compatible with the
19562         registers required.
19564 2013-08-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19566         PR target/58065
19567         * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
19569 2013-08-07  Xinliang David Li  <davidxl@google.com>
19571         * config/i386/i386.opt: New option -mtune-ctrl=.
19572         * config/i386/x86-tune.def: New file.
19573         * config/i386/i386.h: include x86-tune.def.
19574         * config/i386/i386.c (ix86_option_override_internal):
19575         Parsing -mtune-ctrl= option and set tune features.
19577 2013-08-07  Oleg Endo  <olegendo@gcc.gnu.org>
19579         PR other/12081
19580         * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
19581         (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
19582         to gen_2arg_fn_t.
19584 2013-08-07  Eric Botcazou  <ebotcazou@adacore.com>
19586         * rtl.h (update_alignments): Declare.
19587         * final.c (grow_label_align): New function extracted from...
19588         (shorten_branches): ...here.  Call it.
19589         (update_alignments): New function.
19590         * reorg.c (sibling_labels): New variable.
19591         (get_label_before): Add SIBLING parameter.  If it is non-zero, push
19592         the new label along with it onto the sibling_labels vector.
19593         (fill_simple_delay_slots): Adjust call to get_label_before.
19594         (fill_slots_from_thread): Likewise.
19595         (relax_delay_slots): Likewise.
19596         (make_return_insns): Likewise.
19597         (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
19599 2013-08-07  Eric Botcazou  <ebotcazou@adacore.com>
19601         * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
19602         document its semantics.
19603         (diagnostic_report_diagnostic): Adjust accordingly.
19605 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
19607         * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
19608         (sparc_option_override): ...and port to new C++ pass API.
19609         * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
19611 2013-08-07  Peter Bergner  <bergner@vnet.ibm.com>
19613         * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
19615 2013-08-06  Caroline Tice  <cmtice@google.com>
19617         * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
19618         (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
19619         * tree-pass.h: Add pass_vtable_verify.
19620         * varasm.c (assemble_variable): Add code to properly set the comdat
19621         section and name for the .vtable_map_vars section.
19622         (assemble_vtyv_preinit_initializer): New function.
19623         (default_sectin_type_flags):  Make sure .vtable_map_vars section has
19624         LINK_ONCE flag.
19625         * output.h: Add function decl for assemble_vtv_preinit_initializer.
19626         * vtable-verify.c: New file.
19627         * vtable-verify.h: New file.
19628         * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
19629         initialiation levels.
19630         * timevar.def (TV_VTABLE_VERIFICATION): New definition.
19631         * passes.def: Insert pass_vtable_verify.
19632         * aclocal.m4: Reorder includes.
19633         * doc/invoke.texi:  Document the -fvtable-verify=, -fvtv-debug, and
19634         -fvtv-counts options.
19635         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
19636         as appropriate, if -fvtable-verify=... is used.
19637         (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
19638         -fvtable-verify=... is used.
19639         * Makefile.in (OBJS):  Add vtable-verify.o to list.
19640         (vtable-verify.o): Add new build rule.
19641         (GTFILES): Add vtable-verify.c to list.
19642         * common.opt (fvtable-verify=): New flag.
19643         (vtv_priority): Values for fvtable-verify= flag.
19644         (fvtv-counts): New flag.
19645         (fvtv-debug): New flag.
19646         * tree.h (save_vtable_map_decl): New extern function decl.
19648 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
19650         * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
19651         (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
19652         (pass_data_rl78_devirt): ...new pass_data instance and...
19653         (make_pass_rl78_devirt): ...new function.
19654         (rl78_asm_file_start): Port pass registration to new C++ API.
19656 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
19658         * coretypes.h (rtl_opt_pass): Add.
19659         (gcc::context): Add.
19660         * config/epiphany/epiphany.c (pass_mode_switch_use): New.
19661         (epiphany_init): Port to new C++ pass API.
19662         (epiphany_optimize_mode_switching): Likewise.
19663         * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
19664         (pass_manager::get_pass_mode_switching): New.
19665         (pass_manager::get_pass_peephole2): New.
19666         * mode-switching.c (pass_mode_switching): Add clone method.
19667         * recog.c (pass_peephole2): Add clone method.
19668         (pass_split_all_insns): Add clone method.
19670 2013-08-06  David Malcolm  <dmalcolm@redhat.com>
19672         * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
19673         (mips_option_override): ...here, porting to new C++ API for passes.
19675 2013-08-06  Jan Hubicka  <jh@suse.cz>
19677         * cgraph.c (cgraph_get_body): New function based on lto.c
19678         implementation.
19679         * cgraph.h (cgraph_get_body): Declare.
19680         * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
19681         LTO paths.
19682         * cgraphunit.c (expand_function): Get body prior expanding.
19683         * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
19684         * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
19685         really need.
19686         * passes.c (do_per_function_toporder): Get body.
19687         * tree-inline.c (expand_call_inline): Get body prior inlining it.
19688         * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
19690 2013-08-06  Martin Jambor  <mjambor@suse.cz>
19692         PR fortran/57987
19693         * cgraphunit.c (cgraph_finalize_function): Assert that nested function
19694         is not re-finalized.  Rename second parameter to no_collect.
19696 2013-08-06  Martin Jambor  <mjambor@suse.cz>
19698         PR middle-end/58041
19699         * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
19700         MEM_REF has proper alignment information.
19702 2013-08-05  Oleg Endo  <olegendo@gcc.gnu.org>
19704         PR other/12081
19705         * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
19706         class insn_gen_fn.
19707         * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
19708         rtx (*) (rtx, ...) with insn_gen_fn.
19709         * genoutput.c (output_insn_data): Cast gen_? function pointers to
19710         insn_gen_fn::stored_funcptr.  Add initializer braces.
19712 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
19714         Rewrite how instances of passes are cloned to remove assumptions
19715         about their sizes (thus allowing pass subclasses to have
19716         additional data fields, albeit non-GC-managed ones at this point).
19718         * passes.c (make_pass_instance): Now that passes have clone
19719         methods, rewrite this function to eliminate XNEW and memcpy
19720         calls that used hardcoded sizes.  Since this function no longer
19721         creates pass instances, rename it to...
19722         (add_pass_instance): ...this.  Document the old way that passes were
19723         numbered and flagged, and rework this function to continue using it.
19724         (next_pass_1): Add an initial_pass argument for use by
19725         add_pass_instance.
19726         (position_pass): When adding multiple instances of a pass, use
19727         the pass's clone method, rather than relying on the XNEW/memcpy
19728         within the former make_pass_instance (now add_pass_instance).
19729         (pass_manager::pass_manager): When invoking next_pass_1, also supply
19730         the initial instance of the current pass within the pass manager.
19732 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
19734         This is the automated part of the conversion of passes from C
19735         structs to C++ classes.
19737         Patch autogenerated by refactor_passes.py from
19738         https://github.com/davidmalcolm/gcc-refactoring-scripts
19739         revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
19741         * asan.c (pass_asan): Convert from a global struct to a subclass of
19742         gimple_opt_pass along with...
19743         (pass_data_asan): ...new pass_data instance and...
19744         (make_pass_asan): ...new function.
19745         (pass_asan_O0): Convert from a global struct to a subclass of
19746         gimple_opt_pass along with...
19747         (pass_data_asan_O0): ...new pass_data instance and...
19748         (make_pass_asan_O0): ...new function.
19749         * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
19750         subclass of rtl_opt_pass along with...
19751         (pass_data_inc_dec): ...new pass_data instance and...
19752         (make_pass_inc_dec): ...new function.
19753         * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
19754         a subclass of rtl_opt_pass along with...
19755         (pass_data_reorder_blocks): ...new pass_data instance and...
19756         (make_pass_reorder_blocks): ...new function.
19757         (pass_duplicate_computed_gotos): Convert from a global struct to a
19758         subclass of rtl_opt_pass along with...
19759         (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
19760         (make_pass_duplicate_computed_gotos): ...new function.
19761         (pass_partition_blocks): Convert from a global struct to a subclass of
19762         rtl_opt_pass along with...
19763         (pass_data_partition_blocks): ...new pass_data instance and...
19764         (make_pass_partition_blocks): ...new function.
19765         * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
19766         struct to a subclass of rtl_opt_pass along with...
19767         (pass_data_branch_target_load_optimize1): ...new pass_data instance
19768         and...
19769         (make_pass_branch_target_load_optimize1): ...new function.
19770         (pass_branch_target_load_optimize2): Convert from a global struct to a
19771         subclass of rtl_opt_pass along with...
19772         (pass_data_branch_target_load_optimize2): ...new pass_data instance
19773         and...
19774         (make_pass_branch_target_load_optimize2): ...new function.
19775         * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
19776         of rtl_opt_pass along with...
19777         (pass_data_jump): ...new pass_data instance and...
19778         (make_pass_jump): ...new function.
19779         (pass_jump2): Convert from a global struct to a subclass of
19780         rtl_opt_pass along with...
19781         (pass_data_jump2): ...new pass_data instance and...
19782         (make_pass_jump2): ...new function.
19783         * cfgexpand.c (pass_expand): Convert from a global struct to a
19784         subclass of rtl_opt_pass along with...
19785         (pass_data_expand): ...new pass_data instance and...
19786         (make_pass_expand): ...new function.
19787         * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
19788         of rtl_opt_pass along with...
19789         (pass_data_free_cfg): ...new pass_data instance and...
19790         (make_pass_free_cfg): ...new function.
19791         (pass_into_cfg_layout_mode): Convert from a global struct to a
19792         subclass of rtl_opt_pass along with...
19793         (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
19794         (make_pass_into_cfg_layout_mode): ...new function.
19795         (pass_outof_cfg_layout_mode): Convert from a global struct to a
19796         subclass of rtl_opt_pass along with...
19797         (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
19798         (make_pass_outof_cfg_layout_mode): ...new function.
19799         * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
19800         struct to a subclass of gimple_opt_pass along with...
19801         (pass_data_build_cgraph_edges): ...new pass_data instance and...
19802         (make_pass_build_cgraph_edges): ...new function.
19803         (pass_rebuild_cgraph_edges): Convert from a global struct to a
19804         subclass of gimple_opt_pass along with...
19805         (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
19806         (make_pass_rebuild_cgraph_edges): ...new function.
19807         (pass_remove_cgraph_callee_edges): Convert from a global struct to a
19808         subclass of gimple_opt_pass along with...
19809         (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
19810         and...
19811         (make_pass_remove_cgraph_callee_edges): ...new function.
19812         * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
19813         struct to a subclass of rtl_opt_pass along with...
19814         (pass_data_stack_adjustments): ...new pass_data instance and...
19815         (make_pass_stack_adjustments): ...new function.
19816         * combine.c (pass_combine): Convert from a global struct to a subclass
19817         of rtl_opt_pass along with...
19818         (pass_data_combine): ...new pass_data instance and...
19819         (make_pass_combine): ...new function.
19820         * compare-elim.c (pass_compare_elim_after_reload): Convert from a
19821         global struct to a subclass of rtl_opt_pass along with...
19822         (pass_data_compare_elim_after_reload): ...new pass_data instance
19823         and...
19824         (make_pass_compare_elim_after_reload): ...new function.
19825         * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
19826         of rtl_opt_pass along with...
19827         (pass_data_rtl_cprop): ...new pass_data instance and...
19828         (make_pass_rtl_cprop): ...new function.
19829         * cse.c (pass_cse): Convert from a global struct to a subclass of
19830         rtl_opt_pass along with...
19831         (pass_data_cse): ...new pass_data instance and...
19832         (make_pass_cse): ...new function.
19833         (pass_cse2): Convert from a global struct to a subclass of
19834         rtl_opt_pass along with...
19835         (pass_data_cse2): ...new pass_data instance and...
19836         (make_pass_cse2): ...new function.
19837         (pass_cse_after_global_opts): Convert from a global struct to a
19838         subclass of rtl_opt_pass along with...
19839         (pass_data_cse_after_global_opts): ...new pass_data instance and...
19840         (make_pass_cse_after_global_opts): ...new function.
19841         * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
19842         of rtl_opt_pass along with...
19843         (pass_data_ud_rtl_dce): ...new pass_data instance and...
19844         (make_pass_ud_rtl_dce): ...new function.
19845         (pass_fast_rtl_dce): Convert from a global struct to a subclass of
19846         rtl_opt_pass along with...
19847         (pass_data_fast_rtl_dce): ...new pass_data instance and...
19848         (make_pass_fast_rtl_dce): ...new function.
19849         * df-core.c (pass_df_initialize_opt): Convert from a global struct to
19850         a subclass of rtl_opt_pass along with...
19851         (pass_data_df_initialize_opt): ...new pass_data instance and...
19852         (make_pass_df_initialize_opt): ...new function.
19853         (pass_df_initialize_no_opt): Convert from a global struct to a
19854         subclass of rtl_opt_pass along with...
19855         (pass_data_df_initialize_no_opt): ...new pass_data instance and...
19856         (make_pass_df_initialize_no_opt): ...new function.
19857         (pass_df_finish): Convert from a global struct to a subclass of
19858         rtl_opt_pass along with...
19859         (pass_data_df_finish): ...new pass_data instance and...
19860         (make_pass_df_finish): ...new function.
19861         * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
19862         rtl_opt_pass along with...
19863         (pass_data_rtl_dse1): ...new pass_data instance and...
19864         (make_pass_rtl_dse1): ...new function.
19865         (pass_rtl_dse2): Convert from a global struct to a subclass of
19866         rtl_opt_pass along with...
19867         (pass_data_rtl_dse2): ...new pass_data instance and...
19868         (make_pass_rtl_dse2): ...new function.
19869         * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
19870         subclass of rtl_opt_pass along with...
19871         (pass_data_dwarf2_frame): ...new pass_data instance and...
19872         (make_pass_dwarf2_frame): ...new function.
19873         * except.c (pass_set_nothrow_function_flags): Convert from a global
19874         struct to a subclass of rtl_opt_pass along with...
19875         (pass_data_set_nothrow_function_flags): ...new pass_data instance
19876         and...
19877         (make_pass_set_nothrow_function_flags): ...new function.
19878         (pass_convert_to_eh_region_ranges): Convert from a global struct to a
19879         subclass of rtl_opt_pass along with...
19880         (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
19881         and...
19882         (make_pass_convert_to_eh_region_ranges): ...new function.
19883         * final.c (pass_compute_alignments): Convert from a global struct to a
19884         subclass of rtl_opt_pass along with...
19885         (pass_data_compute_alignments): ...new pass_data instance and...
19886         (make_pass_compute_alignments): ...new function.
19887         (pass_final): Convert from a global struct to a subclass of
19888         rtl_opt_pass along with...
19889         (pass_data_final): ...new pass_data instance and...
19890         (make_pass_final): ...new function.
19891         (pass_shorten_branches): Convert from a global struct to a subclass of
19892         rtl_opt_pass along with...
19893         (pass_data_shorten_branches): ...new pass_data instance and...
19894         (make_pass_shorten_branches): ...new function.
19895         (pass_clean_state): Convert from a global struct to a subclass of
19896         rtl_opt_pass along with...
19897         (pass_data_clean_state): ...new pass_data instance and...
19898         (make_pass_clean_state): ...new function.
19899         * function.c (pass_instantiate_virtual_regs): Convert from a global
19900         struct to a subclass of rtl_opt_pass along with...
19901         (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
19902         (make_pass_instantiate_virtual_regs): ...new function.
19903         (pass_leaf_regs): Convert from a global struct to a subclass of
19904         rtl_opt_pass along with...
19905         (pass_data_leaf_regs): ...new pass_data instance and...
19906         (make_pass_leaf_regs): ...new function.
19907         (pass_thread_prologue_and_epilogue): Convert from a global struct to a
19908         subclass of rtl_opt_pass along with...
19909         (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
19910         and...
19911         (make_pass_thread_prologue_and_epilogue): ...new function.
19912         (pass_match_asm_constraints): Convert from a global struct to a
19913         subclass of rtl_opt_pass along with...
19914         (pass_data_match_asm_constraints): ...new pass_data instance and...
19915         (make_pass_match_asm_constraints): ...new function.
19916         * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
19917         subclass of rtl_opt_pass along with...
19918         (pass_data_rtl_fwprop): ...new pass_data instance and...
19919         (make_pass_rtl_fwprop): ...new function.
19920         (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
19921         rtl_opt_pass along with...
19922         (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
19923         (make_pass_rtl_fwprop_addr): ...new function.
19924         * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
19925         rtl_opt_pass along with...
19926         (pass_data_rtl_pre): ...new pass_data instance and...
19927         (make_pass_rtl_pre): ...new function.
19928         (pass_rtl_hoist): Convert from a global struct to a subclass of
19929         rtl_opt_pass along with...
19930         (pass_data_rtl_hoist): ...new pass_data instance and...
19931         (make_pass_rtl_hoist): ...new function.
19932         * gimple-low.c (pass_lower_cf): Convert from a global struct to a
19933         subclass of gimple_opt_pass along with...
19934         (pass_data_lower_cf): ...new pass_data instance and...
19935         (make_pass_lower_cf): ...new function.
19936         * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
19937         from a global struct to a subclass of gimple_opt_pass along with...
19938         (pass_data_strength_reduction): ...new pass_data instance and...
19939         (make_pass_strength_reduction): ...new function.
19940         * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
19941         of rtl_opt_pass along with...
19942         (pass_data_rtl_ifcvt): ...new pass_data instance and...
19943         (make_pass_rtl_ifcvt): ...new function.
19944         (pass_if_after_combine): Convert from a global struct to a subclass of
19945         rtl_opt_pass along with...
19946         (pass_data_if_after_combine): ...new pass_data instance and...
19947         (make_pass_if_after_combine): ...new function.
19948         (pass_if_after_reload): Convert from a global struct to a subclass of
19949         rtl_opt_pass along with...
19950         (pass_data_if_after_reload): ...new pass_data instance and...
19951         (make_pass_if_after_reload): ...new function.
19952         * init-regs.c (pass_initialize_regs): Convert from a global struct to
19953         a subclass of rtl_opt_pass along with...
19954         (pass_data_initialize_regs): ...new pass_data instance and...
19955         (make_pass_initialize_regs): ...new function.
19956         * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
19957         of ipa_opt_pass_d along with...
19958         (pass_data_ipa_cp): ...new pass_data instance and...
19959         (make_pass_ipa_cp): ...new function.
19960         * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
19961         global struct to a subclass of gimple_opt_pass along with...
19962         (pass_data_inline_parameters): ...new pass_data instance and...
19963         (make_pass_inline_parameters): ...new function.
19964         * ipa-inline.c (pass_early_inline): Convert from a global struct to a
19965         subclass of gimple_opt_pass along with...
19966         (pass_data_early_inline): ...new pass_data instance and...
19967         (make_pass_early_inline): ...new function.
19968         (pass_ipa_inline): Convert from a global struct to a subclass of
19969         ipa_opt_pass_d along with...
19970         (pass_data_ipa_inline): ...new pass_data instance and...
19971         (make_pass_ipa_inline): ...new function.
19972         * ipa-pure-const.c (pass_local_pure_const): Convert from a global
19973         struct to a subclass of gimple_opt_pass along with...
19974         (pass_data_local_pure_const): ...new pass_data instance and...
19975         (make_pass_local_pure_const): ...new function.
19976         (pass_ipa_pure_const): Convert from a global struct to a subclass of
19977         ipa_opt_pass_d along with...
19978         (pass_data_ipa_pure_const): ...new pass_data instance and...
19979         (make_pass_ipa_pure_const): ...new function.
19980         * ipa-reference.c (pass_ipa_reference): Convert from a global struct
19981         to a subclass of ipa_opt_pass_d along with...
19982         (pass_data_ipa_reference): ...new pass_data instance and...
19983         (make_pass_ipa_reference): ...new function.
19984         * ipa-split.c (pass_split_functions): Convert from a global struct to
19985         a subclass of gimple_opt_pass along with...
19986         (pass_data_split_functions): ...new pass_data instance and...
19987         (make_pass_split_functions): ...new function.
19988         (pass_feedback_split_functions): Convert from a global struct to a
19989         subclass of gimple_opt_pass along with...
19990         (pass_data_feedback_split_functions): ...new pass_data instance and...
19991         (make_pass_feedback_split_functions): ...new function.
19992         * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
19993         global struct to a subclass of simple_ipa_opt_pass along with...
19994         (pass_data_ipa_function_and_variable_visibility): ...new pass_data
19995         instance and...
19996         (make_pass_ipa_function_and_variable_visibility): ...new function.
19997         (pass_ipa_free_inline_summary): Convert from a global struct to a
19998         subclass of simple_ipa_opt_pass along with...
19999         (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
20000         (make_pass_ipa_free_inline_summary): ...new function.
20001         (pass_ipa_whole_program_visibility): Convert from a global struct to a
20002         subclass of ipa_opt_pass_d along with...
20003         (pass_data_ipa_whole_program_visibility): ...new pass_data instance
20004         and...
20005         (make_pass_ipa_whole_program_visibility): ...new function.
20006         (pass_ipa_profile): Convert from a global struct to a subclass of
20007         ipa_opt_pass_d along with...
20008         (pass_data_ipa_profile): ...new pass_data instance and...
20009         (make_pass_ipa_profile): ...new function.
20010         (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
20011         ipa_opt_pass_d along with...
20012         (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
20013         (make_pass_ipa_cdtor_merge): ...new function.
20014         * ira.c (pass_ira): Convert from a global struct to a subclass of
20015         rtl_opt_pass along with...
20016         (pass_data_ira): ...new pass_data instance and...
20017         (make_pass_ira): ...new function.
20018         (pass_reload): Convert from a global struct to a subclass of
20019         rtl_opt_pass along with...
20020         (pass_data_reload): ...new pass_data instance and...
20021         (make_pass_reload): ...new function.
20022         * jump.c (pass_cleanup_barriers): Convert from a global struct to a
20023         subclass of rtl_opt_pass along with...
20024         (pass_data_cleanup_barriers): ...new pass_data instance and...
20025         (make_pass_cleanup_barriers): ...new function.
20026         * loop-init.c (pass_loop2): Convert from a global struct to a subclass
20027         of rtl_opt_pass along with...
20028         (pass_data_loop2): ...new pass_data instance and...
20029         (make_pass_loop2): ...new function.
20030         (pass_rtl_loop_init): Convert from a global struct to a subclass of
20031         rtl_opt_pass along with...
20032         (pass_data_rtl_loop_init): ...new pass_data instance and...
20033         (make_pass_rtl_loop_init): ...new function.
20034         (pass_rtl_loop_done): Convert from a global struct to a subclass of
20035         rtl_opt_pass along with...
20036         (pass_data_rtl_loop_done): ...new pass_data instance and...
20037         (make_pass_rtl_loop_done): ...new function.
20038         (pass_rtl_move_loop_invariants): Convert from a global struct to a
20039         subclass of rtl_opt_pass along with...
20040         (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
20041         (make_pass_rtl_move_loop_invariants): ...new function.
20042         (pass_rtl_unswitch): Convert from a global struct to a subclass of
20043         rtl_opt_pass along with...
20044         (pass_data_rtl_unswitch): ...new pass_data instance and...
20045         (make_pass_rtl_unswitch): ...new function.
20046         (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
20047         subclass of rtl_opt_pass along with...
20048         (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
20049         and...
20050         (make_pass_rtl_unroll_and_peel_loops): ...new function.
20051         (pass_rtl_doloop): Convert from a global struct to a subclass of
20052         rtl_opt_pass along with...
20053         (pass_data_rtl_doloop): ...new pass_data instance and...
20054         (make_pass_rtl_doloop): ...new function.
20055         * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
20056         a subclass of rtl_opt_pass along with...
20057         (pass_data_lower_subreg): ...new pass_data instance and...
20058         (make_pass_lower_subreg): ...new function.
20059         (pass_lower_subreg2): Convert from a global struct to a subclass of
20060         rtl_opt_pass along with...
20061         (pass_data_lower_subreg2): ...new pass_data instance and...
20062         (make_pass_lower_subreg2): ...new function.
20063         * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
20064         struct to a subclass of ipa_opt_pass_d along with...
20065         (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
20066         (make_pass_ipa_lto_gimple_out): ...new function.
20067         (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
20068         of ipa_opt_pass_d along with...
20069         (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
20070         (make_pass_ipa_lto_finish_out): ...new function.
20071         * mode-switching.c (pass_mode_switching): Convert from a global struct
20072         to a subclass of rtl_opt_pass along with...
20073         (pass_data_mode_switching): ...new pass_data instance and...
20074         (make_pass_mode_switching): ...new function.
20075         * modulo-sched.c (pass_sms): Convert from a global struct to a
20076         subclass of rtl_opt_pass along with...
20077         (pass_data_sms): ...new pass_data instance and...
20078         (make_pass_sms): ...new function.
20079         * omp-low.c (pass_expand_omp): Convert from a global struct to a
20080         subclass of gimple_opt_pass along with...
20081         (pass_data_expand_omp): ...new pass_data instance and...
20082         (make_pass_expand_omp): ...new function.
20083         (pass_lower_omp): Convert from a global struct to a subclass of
20084         gimple_opt_pass along with...
20085         (pass_data_lower_omp): ...new pass_data instance and...
20086         (make_pass_lower_omp): ...new function.
20087         (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
20088         of gimple_opt_pass along with...
20089         (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
20090         (make_pass_diagnose_omp_blocks): ...new function.
20091         * passes.c (pass_early_local_passes): Convert from a global struct to
20092         a subclass of simple_ipa_opt_pass along with...
20093         (pass_data_early_local_passes): ...new pass_data instance and...
20094         (make_pass_early_local_passes): ...new function.
20095         (pass_all_early_optimizations): Convert from a global struct to a
20096         subclass of gimple_opt_pass along with...
20097         (pass_data_all_early_optimizations): ...new pass_data instance and...
20098         (make_pass_all_early_optimizations): ...new function.
20099         (pass_all_optimizations): Convert from a global struct to a subclass
20100         of gimple_opt_pass along with...
20101         (pass_data_all_optimizations): ...new pass_data instance and...
20102         (make_pass_all_optimizations): ...new function.
20103         (pass_all_optimizations_g): Convert from a global struct to a subclass
20104         of gimple_opt_pass along with...
20105         (pass_data_all_optimizations_g): ...new pass_data instance and...
20106         (make_pass_all_optimizations_g): ...new function.
20107         (pass_rest_of_compilation): Convert from a global struct to a subclass
20108         of rtl_opt_pass along with...
20109         (pass_data_rest_of_compilation): ...new pass_data instance and...
20110         (make_pass_rest_of_compilation): ...new function.
20111         (pass_postreload): Convert from a global struct to a subclass of
20112         rtl_opt_pass along with...
20113         (pass_data_postreload): ...new pass_data instance and...
20114         (make_pass_postreload): ...new function.
20115         * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
20116         subclass of rtl_opt_pass along with...
20117         (pass_data_gcse2): ...new pass_data instance and...
20118         (make_pass_gcse2): ...new function.
20119         * postreload.c (pass_postreload_cse): Convert from a global struct to
20120         a subclass of rtl_opt_pass along with...
20121         (pass_data_postreload_cse): ...new pass_data instance and...
20122         (make_pass_postreload_cse): ...new function.
20123         * predict.c (pass_profile): Convert from a global struct to a subclass
20124         of gimple_opt_pass along with...
20125         (pass_data_profile): ...new pass_data instance and...
20126         (make_pass_profile): ...new function.
20127         (pass_strip_predict_hints): Convert from a global struct to a subclass
20128         of gimple_opt_pass along with...
20129         (pass_data_strip_predict_hints): ...new pass_data instance and...
20130         (make_pass_strip_predict_hints): ...new function.
20131         * recog.c (pass_peephole2): Convert from a global struct to a subclass
20132         of rtl_opt_pass along with...
20133         (pass_data_peephole2): ...new pass_data instance and...
20134         (make_pass_peephole2): ...new function.
20135         (pass_split_all_insns): Convert from a global struct to a subclass of
20136         rtl_opt_pass along with...
20137         (pass_data_split_all_insns): ...new pass_data instance and...
20138         (make_pass_split_all_insns): ...new function.
20139         (pass_split_after_reload): Convert from a global struct to a subclass
20140         of rtl_opt_pass along with...
20141         (pass_data_split_after_reload): ...new pass_data instance and...
20142         (make_pass_split_after_reload): ...new function.
20143         (pass_split_before_regstack): Convert from a global struct to a
20144         subclass of rtl_opt_pass along with...
20145         (pass_data_split_before_regstack): ...new pass_data instance and...
20146         (make_pass_split_before_regstack): ...new function.
20147         (pass_split_before_sched2): Convert from a global struct to a subclass
20148         of rtl_opt_pass along with...
20149         (pass_data_split_before_sched2): ...new pass_data instance and...
20150         (make_pass_split_before_sched2): ...new function.
20151         (pass_split_for_shorten_branches): Convert from a global struct to a
20152         subclass of rtl_opt_pass along with...
20153         (pass_data_split_for_shorten_branches): ...new pass_data instance
20154         and...
20155         (make_pass_split_for_shorten_branches): ...new function.
20156         * ree.c (pass_ree): Convert from a global struct to a subclass of
20157         rtl_opt_pass along with...
20158         (pass_data_ree): ...new pass_data instance and...
20159         (make_pass_ree): ...new function.
20160         * reg-stack.c (pass_stack_regs): Convert from a global struct to a
20161         subclass of rtl_opt_pass along with...
20162         (pass_data_stack_regs): ...new pass_data instance and...
20163         (make_pass_stack_regs): ...new function.
20164         (pass_stack_regs_run): Convert from a global struct to a subclass of
20165         rtl_opt_pass along with...
20166         (pass_data_stack_regs_run): ...new pass_data instance and...
20167         (make_pass_stack_regs_run): ...new function.
20168         * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
20169         subclass of rtl_opt_pass along with...
20170         (pass_data_cprop_hardreg): ...new pass_data instance and...
20171         (make_pass_cprop_hardreg): ...new function.
20172         * reginfo.c (pass_reginfo_init): Convert from a global struct to a
20173         subclass of rtl_opt_pass along with...
20174         (pass_data_reginfo_init): ...new pass_data instance and...
20175         (make_pass_reginfo_init): ...new function.
20176         * regmove.c (pass_regmove): Convert from a global struct to a subclass
20177         of rtl_opt_pass along with...
20178         (pass_data_regmove): ...new pass_data instance and...
20179         (make_pass_regmove): ...new function.
20180         * regrename.c (pass_regrename): Convert from a global struct to a
20181         subclass of rtl_opt_pass along with...
20182         (pass_data_regrename): ...new pass_data instance and...
20183         (make_pass_regrename): ...new function.
20184         * reorg.c (pass_delay_slots): Convert from a global struct to a
20185         subclass of rtl_opt_pass along with...
20186         (pass_data_delay_slots): ...new pass_data instance and...
20187         (make_pass_delay_slots): ...new function.
20188         (pass_machine_reorg): Convert from a global struct to a subclass of
20189         rtl_opt_pass along with...
20190         (pass_data_machine_reorg): ...new pass_data instance and...
20191         (make_pass_machine_reorg): ...new function.
20192         * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
20193         of rtl_opt_pass along with...
20194         (pass_data_sched): ...new pass_data instance and...
20195         (make_pass_sched): ...new function.
20196         (pass_sched2): Convert from a global struct to a subclass of
20197         rtl_opt_pass along with...
20198         (pass_data_sched2): ...new pass_data instance and...
20199         (make_pass_sched2): ...new function.
20200         * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
20201         to a subclass of rtl_opt_pass along with...
20202         (pass_data_stack_ptr_mod): ...new pass_data instance and...
20203         (make_pass_stack_ptr_mod): ...new function.
20204         * store-motion.c (pass_rtl_store_motion): Convert from a global struct
20205         to a subclass of rtl_opt_pass along with...
20206         (pass_data_rtl_store_motion): ...new pass_data instance and...
20207         (make_pass_rtl_store_motion): ...new function.
20208         * tracer.c (pass_tracer): Convert from a global struct to a subclass
20209         of gimple_opt_pass along with...
20210         (pass_data_tracer): ...new pass_data instance and...
20211         (make_pass_tracer): ...new function.
20212         * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
20213         to a subclass of gimple_opt_pass along with...
20214         (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
20215         (make_pass_diagnose_tm_blocks): ...new function.
20216         (pass_lower_tm): Convert from a global struct to a subclass of
20217         gimple_opt_pass along with...
20218         (pass_data_lower_tm): ...new pass_data instance and...
20219         (make_pass_lower_tm): ...new function.
20220         (pass_tm_init): Convert from a global struct to a subclass of
20221         gimple_opt_pass along with...
20222         (pass_data_tm_init): ...new pass_data instance and...
20223         (make_pass_tm_init): ...new function.
20224         (pass_tm_mark): Convert from a global struct to a subclass of
20225         gimple_opt_pass along with...
20226         (pass_data_tm_mark): ...new pass_data instance and...
20227         (make_pass_tm_mark): ...new function.
20228         (pass_tm_edges): Convert from a global struct to a subclass of
20229         gimple_opt_pass along with...
20230         (pass_data_tm_edges): ...new pass_data instance and...
20231         (make_pass_tm_edges): ...new function.
20232         (pass_tm_memopt): Convert from a global struct to a subclass of
20233         gimple_opt_pass along with...
20234         (pass_data_tm_memopt): ...new pass_data instance and...
20235         (make_pass_tm_memopt): ...new function.
20236         (pass_ipa_tm): Convert from a global struct to a subclass of
20237         simple_ipa_opt_pass along with...
20238         (pass_data_ipa_tm): ...new pass_data instance and...
20239         (make_pass_ipa_tm): ...new function.
20240         * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
20241         subclass of gimple_opt_pass along with...
20242         (pass_data_call_cdce): ...new pass_data instance and...
20243         (make_pass_call_cdce): ...new function.
20244         * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
20245         subclass of gimple_opt_pass along with...
20246         (pass_data_build_cfg): ...new pass_data instance and...
20247         (make_pass_build_cfg): ...new function.
20248         (pass_split_crit_edges): Convert from a global struct to a subclass of
20249         gimple_opt_pass along with...
20250         (pass_data_split_crit_edges): ...new pass_data instance and...
20251         (make_pass_split_crit_edges): ...new function.
20252         (pass_warn_function_return): Convert from a global struct to a
20253         subclass of gimple_opt_pass along with...
20254         (pass_data_warn_function_return): ...new pass_data instance and...
20255         (make_pass_warn_function_return): ...new function.
20256         (pass_warn_function_noreturn): Convert from a global struct to a
20257         subclass of gimple_opt_pass along with...
20258         (pass_data_warn_function_noreturn): ...new pass_data instance and...
20259         (make_pass_warn_function_noreturn): ...new function.
20260         (pass_warn_unused_result): Convert from a global struct to a subclass
20261         of gimple_opt_pass along with...
20262         (pass_data_warn_unused_result): ...new pass_data instance and...
20263         (make_pass_warn_unused_result): ...new function.
20264         * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
20265         a subclass of gimple_opt_pass along with...
20266         (pass_data_merge_phi): ...new pass_data instance and...
20267         (make_pass_merge_phi): ...new function.
20268         * tree-complex.c (pass_lower_complex): Convert from a global struct to
20269         a subclass of gimple_opt_pass along with...
20270         (pass_data_lower_complex): ...new pass_data instance and...
20271         (make_pass_lower_complex): ...new function.
20272         (pass_lower_complex_O0): Convert from a global struct to a subclass of
20273         gimple_opt_pass along with...
20274         (pass_data_lower_complex_O0): ...new pass_data instance and...
20275         (make_pass_lower_complex_O0): ...new function.
20276         * tree-eh.c (pass_lower_eh): Convert from a global struct to a
20277         subclass of gimple_opt_pass along with...
20278         (pass_data_lower_eh): ...new pass_data instance and...
20279         (make_pass_lower_eh): ...new function.
20280         (pass_refactor_eh): Convert from a global struct to a subclass of
20281         gimple_opt_pass along with...
20282         (pass_data_refactor_eh): ...new pass_data instance and...
20283         (make_pass_refactor_eh): ...new function.
20284         (pass_lower_resx): Convert from a global struct to a subclass of
20285         gimple_opt_pass along with...
20286         (pass_data_lower_resx): ...new pass_data instance and...
20287         (make_pass_lower_resx): ...new function.
20288         (pass_lower_eh_dispatch): Convert from a global struct to a subclass
20289         of gimple_opt_pass along with...
20290         (pass_data_lower_eh_dispatch): ...new pass_data instance and...
20291         (make_pass_lower_eh_dispatch): ...new function.
20292         (pass_cleanup_eh): Convert from a global struct to a subclass of
20293         gimple_opt_pass along with...
20294         (pass_data_cleanup_eh): ...new pass_data instance and...
20295         (make_pass_cleanup_eh): ...new function.
20296         * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
20297         to a subclass of simple_ipa_opt_pass along with...
20298         (pass_data_ipa_lower_emutls): ...new pass_data instance and...
20299         (make_pass_ipa_lower_emutls): ...new function.
20300         * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
20301         a subclass of gimple_opt_pass along with...
20302         (pass_data_if_conversion): ...new pass_data instance and...
20303         (make_pass_if_conversion): ...new function.
20304         * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
20305         subclass of gimple_opt_pass along with...
20306         (pass_data_build_ssa): ...new pass_data instance and...
20307         (make_pass_build_ssa): ...new function.
20308         * tree-loop-distribution.c (pass_loop_distribution): Convert from a
20309         global struct to a subclass of gimple_opt_pass along with...
20310         (pass_data_loop_distribution): ...new pass_data instance and...
20311         (make_pass_loop_distribution): ...new function.
20312         * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
20313         subclass of gimple_opt_pass along with...
20314         (pass_data_mudflap_1): ...new pass_data instance and...
20315         (make_pass_mudflap_1): ...new function.
20316         (pass_mudflap_2): Convert from a global struct to a subclass of
20317         gimple_opt_pass along with...
20318         (pass_data_mudflap_2): ...new pass_data instance and...
20319         (make_pass_mudflap_2): ...new function.
20320         * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
20321         subclass of gimple_opt_pass along with...
20322         (pass_data_mudflap_1): ...new pass_data instance and...
20323         (make_pass_mudflap_1): ...new function.
20324         (pass_mudflap_2): Convert from a global struct to a subclass of
20325         gimple_opt_pass along with...
20326         (pass_data_mudflap_2): ...new pass_data instance and...
20327         (make_pass_mudflap_2): ...new function.
20328         * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
20329         gimple_opt_pass along with...
20330         (pass_data_nrv): ...new pass_data instance and...
20331         (make_pass_nrv): ...new function.
20332         (pass_return_slot): Convert from a global struct to a subclass of
20333         gimple_opt_pass along with...
20334         (pass_data_return_slot): ...new pass_data instance and...
20335         (make_pass_return_slot): ...new function.
20336         * tree-object-size.c (pass_object_sizes): Convert from a global struct
20337         to a subclass of gimple_opt_pass along with...
20338         (pass_data_object_sizes): ...new pass_data instance and...
20339         (make_pass_object_sizes): ...new function.
20340         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
20341         global struct to a subclass of gimple_opt_pass along with...
20342         (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
20343         and...
20344         (make_pass_cleanup_cfg_post_optimizing): ...new function.
20345         (pass_fixup_cfg): Convert from a global struct to a subclass of
20346         gimple_opt_pass along with...
20347         (pass_data_fixup_cfg): ...new pass_data instance and...
20348         (make_pass_fixup_cfg): ...new function.
20349         * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
20350         (make_pass_mudflap_1): ...new function.
20351         (pass_mudflap_2): Replace declaration with that of...
20352         (make_pass_mudflap_2): ...new function.
20353         (pass_asan): Replace declaration with that of...
20354         (make_pass_asan): ...new function.
20355         (pass_asan_O0): Replace declaration with that of...
20356         (make_pass_asan_O0): ...new function.
20357         (pass_tsan): Replace declaration with that of...
20358         (make_pass_tsan): ...new function.
20359         (pass_tsan_O0): Replace declaration with that of...
20360         (make_pass_tsan_O0): ...new function.
20361         (pass_lower_cf): Replace declaration with that of...
20362         (make_pass_lower_cf): ...new function.
20363         (pass_refactor_eh): Replace declaration with that of...
20364         (make_pass_refactor_eh): ...new function.
20365         (pass_lower_eh): Replace declaration with that of...
20366         (make_pass_lower_eh): ...new function.
20367         (pass_lower_eh_dispatch): Replace declaration with that of...
20368         (make_pass_lower_eh_dispatch): ...new function.
20369         (pass_lower_resx): Replace declaration with that of...
20370         (make_pass_lower_resx): ...new function.
20371         (pass_build_cfg): Replace declaration with that of...
20372         (make_pass_build_cfg): ...new function.
20373         (pass_early_tree_profile): Replace declaration with that of...
20374         (make_pass_early_tree_profile): ...new function.
20375         (pass_cleanup_eh): Replace declaration with that of...
20376         (make_pass_cleanup_eh): ...new function.
20377         (pass_sra): Replace declaration with that of...
20378         (make_pass_sra): ...new function.
20379         (pass_sra_early): Replace declaration with that of...
20380         (make_pass_sra_early): ...new function.
20381         (pass_early_ipa_sra): Replace declaration with that of...
20382         (make_pass_early_ipa_sra): ...new function.
20383         (pass_tail_recursion): Replace declaration with that of...
20384         (make_pass_tail_recursion): ...new function.
20385         (pass_tail_calls): Replace declaration with that of...
20386         (make_pass_tail_calls): ...new function.
20387         (pass_tree_loop): Replace declaration with that of...
20388         (make_pass_tree_loop): ...new function.
20389         (pass_tree_loop_init): Replace declaration with that of...
20390         (make_pass_tree_loop_init): ...new function.
20391         (pass_lim): Replace declaration with that of...
20392         (make_pass_lim): ...new function.
20393         (pass_tree_unswitch): Replace declaration with that of...
20394         (make_pass_tree_unswitch): ...new function.
20395         (pass_predcom): Replace declaration with that of...
20396         (make_pass_predcom): ...new function.
20397         (pass_iv_canon): Replace declaration with that of...
20398         (make_pass_iv_canon): ...new function.
20399         (pass_scev_cprop): Replace declaration with that of...
20400         (make_pass_scev_cprop): ...new function.
20401         (pass_empty_loop): Replace declaration with that of...
20402         (make_pass_empty_loop): ...new function.
20403         (pass_record_bounds): Replace declaration with that of...
20404         (make_pass_record_bounds): ...new function.
20405         (pass_graphite): Replace declaration with that of...
20406         (make_pass_graphite): ...new function.
20407         (pass_graphite_transforms): Replace declaration with that of...
20408         (make_pass_graphite_transforms): ...new function.
20409         (pass_if_conversion): Replace declaration with that of...
20410         (make_pass_if_conversion): ...new function.
20411         (pass_loop_distribution): Replace declaration with that of...
20412         (make_pass_loop_distribution): ...new function.
20413         (pass_vectorize): Replace declaration with that of...
20414         (make_pass_vectorize): ...new function.
20415         (pass_slp_vectorize): Replace declaration with that of...
20416         (make_pass_slp_vectorize): ...new function.
20417         (pass_complete_unroll): Replace declaration with that of...
20418         (make_pass_complete_unroll): ...new function.
20419         (pass_complete_unrolli): Replace declaration with that of...
20420         (make_pass_complete_unrolli): ...new function.
20421         (pass_parallelize_loops): Replace declaration with that of...
20422         (make_pass_parallelize_loops): ...new function.
20423         (pass_loop_prefetch): Replace declaration with that of...
20424         (make_pass_loop_prefetch): ...new function.
20425         (pass_iv_optimize): Replace declaration with that of...
20426         (make_pass_iv_optimize): ...new function.
20427         (pass_tree_loop_done): Replace declaration with that of...
20428         (make_pass_tree_loop_done): ...new function.
20429         (pass_ch): Replace declaration with that of...
20430         (make_pass_ch): ...new function.
20431         (pass_ccp): Replace declaration with that of...
20432         (make_pass_ccp): ...new function.
20433         (pass_phi_only_cprop): Replace declaration with that of...
20434         (make_pass_phi_only_cprop): ...new function.
20435         (pass_build_ssa): Replace declaration with that of...
20436         (make_pass_build_ssa): ...new function.
20437         (pass_build_alias): Replace declaration with that of...
20438         (make_pass_build_alias): ...new function.
20439         (pass_build_ealias): Replace declaration with that of...
20440         (make_pass_build_ealias): ...new function.
20441         (pass_dominator): Replace declaration with that of...
20442         (make_pass_dominator): ...new function.
20443         (pass_dce): Replace declaration with that of...
20444         (make_pass_dce): ...new function.
20445         (pass_dce_loop): Replace declaration with that of...
20446         (make_pass_dce_loop): ...new function.
20447         (pass_cd_dce): Replace declaration with that of...
20448         (make_pass_cd_dce): ...new function.
20449         (pass_call_cdce): Replace declaration with that of...
20450         (make_pass_call_cdce): ...new function.
20451         (pass_merge_phi): Replace declaration with that of...
20452         (make_pass_merge_phi): ...new function.
20453         (pass_split_crit_edges): Replace declaration with that of...
20454         (make_pass_split_crit_edges): ...new function.
20455         (pass_pre): Replace declaration with that of...
20456         (make_pass_pre): ...new function.
20457         (pass_profile): Replace declaration with that of...
20458         (make_pass_profile): ...new function.
20459         (pass_strip_predict_hints): Replace declaration with that of...
20460         (make_pass_strip_predict_hints): ...new function.
20461         (pass_lower_complex_O0): Replace declaration with that of...
20462         (make_pass_lower_complex_O0): ...new function.
20463         (pass_lower_complex): Replace declaration with that of...
20464         (make_pass_lower_complex): ...new function.
20465         (pass_lower_vector): Replace declaration with that of...
20466         (make_pass_lower_vector): ...new function.
20467         (pass_lower_vector_ssa): Replace declaration with that of...
20468         (make_pass_lower_vector_ssa): ...new function.
20469         (pass_lower_omp): Replace declaration with that of...
20470         (make_pass_lower_omp): ...new function.
20471         (pass_diagnose_omp_blocks): Replace declaration with that of...
20472         (make_pass_diagnose_omp_blocks): ...new function.
20473         (pass_expand_omp): Replace declaration with that of...
20474         (make_pass_expand_omp): ...new function.
20475         (pass_expand_omp_ssa): Replace declaration with that of...
20476         (make_pass_expand_omp_ssa): ...new function.
20477         (pass_object_sizes): Replace declaration with that of...
20478         (make_pass_object_sizes): ...new function.
20479         (pass_strlen): Replace declaration with that of...
20480         (make_pass_strlen): ...new function.
20481         (pass_fold_builtins): Replace declaration with that of...
20482         (make_pass_fold_builtins): ...new function.
20483         (pass_stdarg): Replace declaration with that of...
20484         (make_pass_stdarg): ...new function.
20485         (pass_early_warn_uninitialized): Replace declaration with that of...
20486         (make_pass_early_warn_uninitialized): ...new function.
20487         (pass_late_warn_uninitialized): Replace declaration with that of...
20488         (make_pass_late_warn_uninitialized): ...new function.
20489         (pass_cse_reciprocals): Replace declaration with that of...
20490         (make_pass_cse_reciprocals): ...new function.
20491         (pass_cse_sincos): Replace declaration with that of...
20492         (make_pass_cse_sincos): ...new function.
20493         (pass_optimize_bswap): Replace declaration with that of...
20494         (make_pass_optimize_bswap): ...new function.
20495         (pass_optimize_widening_mul): Replace declaration with that of...
20496         (make_pass_optimize_widening_mul): ...new function.
20497         (pass_warn_function_return): Replace declaration with that of...
20498         (make_pass_warn_function_return): ...new function.
20499         (pass_warn_function_noreturn): Replace declaration with that of...
20500         (make_pass_warn_function_noreturn): ...new function.
20501         (pass_cselim): Replace declaration with that of...
20502         (make_pass_cselim): ...new function.
20503         (pass_phiopt): Replace declaration with that of...
20504         (make_pass_phiopt): ...new function.
20505         (pass_forwprop): Replace declaration with that of...
20506         (make_pass_forwprop): ...new function.
20507         (pass_phiprop): Replace declaration with that of...
20508         (make_pass_phiprop): ...new function.
20509         (pass_tree_ifcombine): Replace declaration with that of...
20510         (make_pass_tree_ifcombine): ...new function.
20511         (pass_dse): Replace declaration with that of...
20512         (make_pass_dse): ...new function.
20513         (pass_nrv): Replace declaration with that of...
20514         (make_pass_nrv): ...new function.
20515         (pass_rename_ssa_copies): Replace declaration with that of...
20516         (make_pass_rename_ssa_copies): ...new function.
20517         (pass_sink_code): Replace declaration with that of...
20518         (make_pass_sink_code): ...new function.
20519         (pass_fre): Replace declaration with that of...
20520         (make_pass_fre): ...new function.
20521         (pass_check_data_deps): Replace declaration with that of...
20522         (make_pass_check_data_deps): ...new function.
20523         (pass_copy_prop): Replace declaration with that of...
20524         (make_pass_copy_prop): ...new function.
20525         (pass_vrp): Replace declaration with that of...
20526         (make_pass_vrp): ...new function.
20527         (pass_uncprop): Replace declaration with that of...
20528         (make_pass_uncprop): ...new function.
20529         (pass_return_slot): Replace declaration with that of...
20530         (make_pass_return_slot): ...new function.
20531         (pass_reassoc): Replace declaration with that of...
20532         (make_pass_reassoc): ...new function.
20533         (pass_rebuild_cgraph_edges): Replace declaration with that of...
20534         (make_pass_rebuild_cgraph_edges): ...new function.
20535         (pass_remove_cgraph_callee_edges): Replace declaration with that of...
20536         (make_pass_remove_cgraph_callee_edges): ...new function.
20537         (pass_build_cgraph_edges): Replace declaration with that of...
20538         (make_pass_build_cgraph_edges): ...new function.
20539         (pass_local_pure_const): Replace declaration with that of...
20540         (make_pass_local_pure_const): ...new function.
20541         (pass_tracer): Replace declaration with that of...
20542         (make_pass_tracer): ...new function.
20543         (pass_warn_unused_result): Replace declaration with that of...
20544         (make_pass_warn_unused_result): ...new function.
20545         (pass_diagnose_tm_blocks): Replace declaration with that of...
20546         (make_pass_diagnose_tm_blocks): ...new function.
20547         (pass_lower_tm): Replace declaration with that of...
20548         (make_pass_lower_tm): ...new function.
20549         (pass_tm_init): Replace declaration with that of...
20550         (make_pass_tm_init): ...new function.
20551         (pass_tm_mark): Replace declaration with that of...
20552         (make_pass_tm_mark): ...new function.
20553         (pass_tm_memopt): Replace declaration with that of...
20554         (make_pass_tm_memopt): ...new function.
20555         (pass_tm_edges): Replace declaration with that of...
20556         (make_pass_tm_edges): ...new function.
20557         (pass_split_functions): Replace declaration with that of...
20558         (make_pass_split_functions): ...new function.
20559         (pass_feedback_split_functions): Replace declaration with that of...
20560         (make_pass_feedback_split_functions): ...new function.
20561         (pass_strength_reduction): Replace declaration with that of...
20562         (make_pass_strength_reduction): ...new function.
20563         (pass_ipa_lower_emutls): Replace declaration with that of...
20564         (make_pass_ipa_lower_emutls): ...new function.
20565         (pass_ipa_function_and_variable_visibility): Replace declaration with
20566         that of...
20567         (make_pass_ipa_function_and_variable_visibility): ...new function.
20568         (pass_ipa_tree_profile): Replace declaration with that of...
20569         (make_pass_ipa_tree_profile): ...new function.
20570         (pass_early_local_passes): Replace declaration with that of...
20571         (make_pass_early_local_passes): ...new function.
20572         (pass_ipa_whole_program_visibility): Replace declaration with that
20573         of...
20574         (make_pass_ipa_whole_program_visibility): ...new function.
20575         (pass_ipa_lto_gimple_out): Replace declaration with that of...
20576         (make_pass_ipa_lto_gimple_out): ...new function.
20577         (pass_ipa_increase_alignment): Replace declaration with that of...
20578         (make_pass_ipa_increase_alignment): ...new function.
20579         (pass_ipa_inline): Replace declaration with that of...
20580         (make_pass_ipa_inline): ...new function.
20581         (pass_ipa_free_lang_data): Replace declaration with that of...
20582         (make_pass_ipa_free_lang_data): ...new function.
20583         (pass_ipa_free_inline_summary): Replace declaration with that of...
20584         (make_pass_ipa_free_inline_summary): ...new function.
20585         (pass_ipa_cp): Replace declaration with that of...
20586         (make_pass_ipa_cp): ...new function.
20587         (pass_ipa_reference): Replace declaration with that of...
20588         (make_pass_ipa_reference): ...new function.
20589         (pass_ipa_pure_const): Replace declaration with that of...
20590         (make_pass_ipa_pure_const): ...new function.
20591         (pass_ipa_pta): Replace declaration with that of...
20592         (make_pass_ipa_pta): ...new function.
20593         (pass_ipa_lto_finish_out): Replace declaration with that of...
20594         (make_pass_ipa_lto_finish_out): ...new function.
20595         (pass_ipa_tm): Replace declaration with that of...
20596         (make_pass_ipa_tm): ...new function.
20597         (pass_ipa_profile): Replace declaration with that of...
20598         (make_pass_ipa_profile): ...new function.
20599         (pass_ipa_cdtor_merge): Replace declaration with that of...
20600         (make_pass_ipa_cdtor_merge): ...new function.
20601         (pass_cleanup_cfg_post_optimizing): Replace declaration with that
20602         of...
20603         (make_pass_cleanup_cfg_post_optimizing): ...new function.
20604         (pass_init_datastructures): Replace declaration with that of...
20605         (make_pass_init_datastructures): ...new function.
20606         (pass_fixup_cfg): Replace declaration with that of...
20607         (make_pass_fixup_cfg): ...new function.
20608         (pass_expand): Replace declaration with that of...
20609         (make_pass_expand): ...new function.
20610         (pass_instantiate_virtual_regs): Replace declaration with that of...
20611         (make_pass_instantiate_virtual_regs): ...new function.
20612         (pass_rtl_fwprop): Replace declaration with that of...
20613         (make_pass_rtl_fwprop): ...new function.
20614         (pass_rtl_fwprop_addr): Replace declaration with that of...
20615         (make_pass_rtl_fwprop_addr): ...new function.
20616         (pass_jump): Replace declaration with that of...
20617         (make_pass_jump): ...new function.
20618         (pass_jump2): Replace declaration with that of...
20619         (make_pass_jump2): ...new function.
20620         (pass_lower_subreg): Replace declaration with that of...
20621         (make_pass_lower_subreg): ...new function.
20622         (pass_cse): Replace declaration with that of...
20623         (make_pass_cse): ...new function.
20624         (pass_fast_rtl_dce): Replace declaration with that of...
20625         (make_pass_fast_rtl_dce): ...new function.
20626         (pass_ud_rtl_dce): Replace declaration with that of...
20627         (make_pass_ud_rtl_dce): ...new function.
20628         (pass_rtl_dce): Replace declaration with that of...
20629         (make_pass_rtl_dce): ...new function.
20630         (pass_rtl_dse1): Replace declaration with that of...
20631         (make_pass_rtl_dse1): ...new function.
20632         (pass_rtl_dse2): Replace declaration with that of...
20633         (make_pass_rtl_dse2): ...new function.
20634         (pass_rtl_dse3): Replace declaration with that of...
20635         (make_pass_rtl_dse3): ...new function.
20636         (pass_rtl_cprop): Replace declaration with that of...
20637         (make_pass_rtl_cprop): ...new function.
20638         (pass_rtl_pre): Replace declaration with that of...
20639         (make_pass_rtl_pre): ...new function.
20640         (pass_rtl_hoist): Replace declaration with that of...
20641         (make_pass_rtl_hoist): ...new function.
20642         (pass_rtl_store_motion): Replace declaration with that of...
20643         (make_pass_rtl_store_motion): ...new function.
20644         (pass_cse_after_global_opts): Replace declaration with that of...
20645         (make_pass_cse_after_global_opts): ...new function.
20646         (pass_rtl_ifcvt): Replace declaration with that of...
20647         (make_pass_rtl_ifcvt): ...new function.
20648         (pass_into_cfg_layout_mode): Replace declaration with that of...
20649         (make_pass_into_cfg_layout_mode): ...new function.
20650         (pass_outof_cfg_layout_mode): Replace declaration with that of...
20651         (make_pass_outof_cfg_layout_mode): ...new function.
20652         (pass_loop2): Replace declaration with that of...
20653         (make_pass_loop2): ...new function.
20654         (pass_rtl_loop_init): Replace declaration with that of...
20655         (make_pass_rtl_loop_init): ...new function.
20656         (pass_rtl_move_loop_invariants): Replace declaration with that of...
20657         (make_pass_rtl_move_loop_invariants): ...new function.
20658         (pass_rtl_unswitch): Replace declaration with that of...
20659         (make_pass_rtl_unswitch): ...new function.
20660         (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
20661         (make_pass_rtl_unroll_and_peel_loops): ...new function.
20662         (pass_rtl_doloop): Replace declaration with that of...
20663         (make_pass_rtl_doloop): ...new function.
20664         (pass_rtl_loop_done): Replace declaration with that of...
20665         (make_pass_rtl_loop_done): ...new function.
20666         (pass_web): Replace declaration with that of...
20667         (make_pass_web): ...new function.
20668         (pass_cse2): Replace declaration with that of...
20669         (make_pass_cse2): ...new function.
20670         (pass_df_initialize_opt): Replace declaration with that of...
20671         (make_pass_df_initialize_opt): ...new function.
20672         (pass_df_initialize_no_opt): Replace declaration with that of...
20673         (make_pass_df_initialize_no_opt): ...new function.
20674         (pass_reginfo_init): Replace declaration with that of...
20675         (make_pass_reginfo_init): ...new function.
20676         (pass_inc_dec): Replace declaration with that of...
20677         (make_pass_inc_dec): ...new function.
20678         (pass_stack_ptr_mod): Replace declaration with that of...
20679         (make_pass_stack_ptr_mod): ...new function.
20680         (pass_initialize_regs): Replace declaration with that of...
20681         (make_pass_initialize_regs): ...new function.
20682         (pass_combine): Replace declaration with that of...
20683         (make_pass_combine): ...new function.
20684         (pass_if_after_combine): Replace declaration with that of...
20685         (make_pass_if_after_combine): ...new function.
20686         (pass_ree): Replace declaration with that of...
20687         (make_pass_ree): ...new function.
20688         (pass_partition_blocks): Replace declaration with that of...
20689         (make_pass_partition_blocks): ...new function.
20690         (pass_match_asm_constraints): Replace declaration with that of...
20691         (make_pass_match_asm_constraints): ...new function.
20692         (pass_regmove): Replace declaration with that of...
20693         (make_pass_regmove): ...new function.
20694         (pass_split_all_insns): Replace declaration with that of...
20695         (make_pass_split_all_insns): ...new function.
20696         (pass_fast_rtl_byte_dce): Replace declaration with that of...
20697         (make_pass_fast_rtl_byte_dce): ...new function.
20698         (pass_lower_subreg2): Replace declaration with that of...
20699         (make_pass_lower_subreg2): ...new function.
20700         (pass_mode_switching): Replace declaration with that of...
20701         (make_pass_mode_switching): ...new function.
20702         (pass_sms): Replace declaration with that of...
20703         (make_pass_sms): ...new function.
20704         (pass_sched): Replace declaration with that of...
20705         (make_pass_sched): ...new function.
20706         (pass_ira): Replace declaration with that of...
20707         (make_pass_ira): ...new function.
20708         (pass_reload): Replace declaration with that of...
20709         (make_pass_reload): ...new function.
20710         (pass_clean_state): Replace declaration with that of...
20711         (make_pass_clean_state): ...new function.
20712         (pass_branch_prob): Replace declaration with that of...
20713         (make_pass_branch_prob): ...new function.
20714         (pass_value_profile_transformations): Replace declaration with that
20715         of...
20716         (make_pass_value_profile_transformations): ...new function.
20717         (pass_postreload_cse): Replace declaration with that of...
20718         (make_pass_postreload_cse): ...new function.
20719         (pass_gcse2): Replace declaration with that of...
20720         (make_pass_gcse2): ...new function.
20721         (pass_split_after_reload): Replace declaration with that of...
20722         (make_pass_split_after_reload): ...new function.
20723         (pass_branch_target_load_optimize1): Replace declaration with that
20724         of...
20725         (make_pass_branch_target_load_optimize1): ...new function.
20726         (pass_thread_prologue_and_epilogue): Replace declaration with that
20727         of...
20728         (make_pass_thread_prologue_and_epilogue): ...new function.
20729         (pass_stack_adjustments): Replace declaration with that of...
20730         (make_pass_stack_adjustments): ...new function.
20731         (pass_peephole2): Replace declaration with that of...
20732         (make_pass_peephole2): ...new function.
20733         (pass_if_after_reload): Replace declaration with that of...
20734         (make_pass_if_after_reload): ...new function.
20735         (pass_regrename): Replace declaration with that of...
20736         (make_pass_regrename): ...new function.
20737         (pass_cprop_hardreg): Replace declaration with that of...
20738         (make_pass_cprop_hardreg): ...new function.
20739         (pass_reorder_blocks): Replace declaration with that of...
20740         (make_pass_reorder_blocks): ...new function.
20741         (pass_branch_target_load_optimize2): Replace declaration with that
20742         of...
20743         (make_pass_branch_target_load_optimize2): ...new function.
20744         (pass_leaf_regs): Replace declaration with that of...
20745         (make_pass_leaf_regs): ...new function.
20746         (pass_split_before_sched2): Replace declaration with that of...
20747         (make_pass_split_before_sched2): ...new function.
20748         (pass_compare_elim_after_reload): Replace declaration with that of...
20749         (make_pass_compare_elim_after_reload): ...new function.
20750         (pass_sched2): Replace declaration with that of...
20751         (make_pass_sched2): ...new function.
20752         (pass_stack_regs): Replace declaration with that of...
20753         (make_pass_stack_regs): ...new function.
20754         (pass_stack_regs_run): Replace declaration with that of...
20755         (make_pass_stack_regs_run): ...new function.
20756         (pass_df_finish): Replace declaration with that of...
20757         (make_pass_df_finish): ...new function.
20758         (pass_compute_alignments): Replace declaration with that of...
20759         (make_pass_compute_alignments): ...new function.
20760         (pass_duplicate_computed_gotos): Replace declaration with that of...
20761         (make_pass_duplicate_computed_gotos): ...new function.
20762         (pass_variable_tracking): Replace declaration with that of...
20763         (make_pass_variable_tracking): ...new function.
20764         (pass_free_cfg): Replace declaration with that of...
20765         (make_pass_free_cfg): ...new function.
20766         (pass_machine_reorg): Replace declaration with that of...
20767         (make_pass_machine_reorg): ...new function.
20768         (pass_cleanup_barriers): Replace declaration with that of...
20769         (make_pass_cleanup_barriers): ...new function.
20770         (pass_delay_slots): Replace declaration with that of...
20771         (make_pass_delay_slots): ...new function.
20772         (pass_split_for_shorten_branches): Replace declaration with that of...
20773         (make_pass_split_for_shorten_branches): ...new function.
20774         (pass_split_before_regstack): Replace declaration with that of...
20775         (make_pass_split_before_regstack): ...new function.
20776         (pass_convert_to_eh_region_ranges): Replace declaration with that
20777         of...
20778         (make_pass_convert_to_eh_region_ranges): ...new function.
20779         (pass_shorten_branches): Replace declaration with that of...
20780         (make_pass_shorten_branches): ...new function.
20781         (pass_set_nothrow_function_flags): Replace declaration with that of...
20782         (make_pass_set_nothrow_function_flags): ...new function.
20783         (pass_dwarf2_frame): Replace declaration with that of...
20784         (make_pass_dwarf2_frame): ...new function.
20785         (pass_final): Replace declaration with that of...
20786         (make_pass_final): ...new function.
20787         (pass_rtl_seqabstr): Replace declaration with that of...
20788         (make_pass_rtl_seqabstr): ...new function.
20789         (pass_release_ssa_names): Replace declaration with that of...
20790         (make_pass_release_ssa_names): ...new function.
20791         (pass_early_inline): Replace declaration with that of...
20792         (make_pass_early_inline): ...new function.
20793         (pass_inline_parameters): Replace declaration with that of...
20794         (make_pass_inline_parameters): ...new function.
20795         (pass_update_address_taken): Replace declaration with that of...
20796         (make_pass_update_address_taken): ...new function.
20797         (pass_convert_switch): Replace declaration with that of...
20798         (make_pass_convert_switch): ...new function.
20799         * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
20800         to a subclass of simple_ipa_opt_pass along with...
20801         (pass_data_ipa_tree_profile): ...new pass_data instance and...
20802         (make_pass_ipa_tree_profile): ...new function.
20803         * tree-sra.c (pass_sra_early): Convert from a global struct to a
20804         subclass of gimple_opt_pass along with...
20805         (pass_data_sra_early): ...new pass_data instance and...
20806         (make_pass_sra_early): ...new function.
20807         (pass_sra): Convert from a global struct to a subclass of
20808         gimple_opt_pass along with...
20809         (pass_data_sra): ...new pass_data instance and...
20810         (make_pass_sra): ...new function.
20811         (pass_early_ipa_sra): Convert from a global struct to a subclass of
20812         gimple_opt_pass along with...
20813         (pass_data_early_ipa_sra): ...new pass_data instance and...
20814         (make_pass_early_ipa_sra): ...new function.
20815         * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
20816         subclass of gimple_opt_pass along with...
20817         (pass_data_ccp): ...new pass_data instance and...
20818         (make_pass_ccp): ...new function.
20819         (pass_fold_builtins): Convert from a global struct to a subclass of
20820         gimple_opt_pass along with...
20821         (pass_data_fold_builtins): ...new pass_data instance and...
20822         (make_pass_fold_builtins): ...new function.
20823         * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
20824         subclass of gimple_opt_pass along with...
20825         (pass_data_copy_prop): ...new pass_data instance and...
20826         (make_pass_copy_prop): ...new function.
20827         * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
20828         global struct to a subclass of gimple_opt_pass along with...
20829         (pass_data_rename_ssa_copies): ...new pass_data instance and...
20830         (make_pass_rename_ssa_copies): ...new function.
20831         * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
20832         subclass of gimple_opt_pass along with...
20833         (pass_data_dce): ...new pass_data instance and...
20834         (make_pass_dce): ...new function.
20835         (pass_dce_loop): Convert from a global struct to a subclass of
20836         gimple_opt_pass along with...
20837         (pass_data_dce_loop): ...new pass_data instance and...
20838         (make_pass_dce_loop): ...new function.
20839         (pass_cd_dce): Convert from a global struct to a subclass of
20840         gimple_opt_pass along with...
20841         (pass_data_cd_dce): ...new pass_data instance and...
20842         (make_pass_cd_dce): ...new function.
20843         * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
20844         subclass of gimple_opt_pass along with...
20845         (pass_data_dominator): ...new pass_data instance and...
20846         (make_pass_dominator): ...new function.
20847         (pass_phi_only_cprop): Convert from a global struct to a subclass of
20848         gimple_opt_pass along with...
20849         (pass_data_phi_only_cprop): ...new pass_data instance and...
20850         (make_pass_phi_only_cprop): ...new function.
20851         * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
20852         subclass of gimple_opt_pass along with...
20853         (pass_data_dse): ...new pass_data instance and...
20854         (make_pass_dse): ...new function.
20855         * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
20856         a subclass of gimple_opt_pass along with...
20857         (pass_data_forwprop): ...new pass_data instance and...
20858         (make_pass_forwprop): ...new function.
20859         * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
20860         struct to a subclass of gimple_opt_pass along with...
20861         (pass_data_tree_ifcombine): ...new pass_data instance and...
20862         (make_pass_tree_ifcombine): ...new function.
20863         * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
20864         subclass of gimple_opt_pass along with...
20865         (pass_data_ch): ...new pass_data instance and...
20866         (make_pass_ch): ...new function.
20867         * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
20868         subclass of gimple_opt_pass along with...
20869         (pass_data_tree_loop): ...new pass_data instance and...
20870         (make_pass_tree_loop): ...new function.
20871         (pass_tree_loop_init): Convert from a global struct to a subclass of
20872         gimple_opt_pass along with...
20873         (pass_data_tree_loop_init): ...new pass_data instance and...
20874         (make_pass_tree_loop_init): ...new function.
20875         (pass_lim): Convert from a global struct to a subclass of
20876         gimple_opt_pass along with...
20877         (pass_data_lim): ...new pass_data instance and...
20878         (make_pass_lim): ...new function.
20879         (pass_tree_unswitch): Convert from a global struct to a subclass of
20880         gimple_opt_pass along with...
20881         (pass_data_tree_unswitch): ...new pass_data instance and...
20882         (make_pass_tree_unswitch): ...new function.
20883         (pass_predcom): Convert from a global struct to a subclass of
20884         gimple_opt_pass along with...
20885         (pass_data_predcom): ...new pass_data instance and...
20886         (make_pass_predcom): ...new function.
20887         (pass_vectorize): Convert from a global struct to a subclass of
20888         gimple_opt_pass along with...
20889         (pass_data_vectorize): ...new pass_data instance and...
20890         (make_pass_vectorize): ...new function.
20891         (pass_graphite): Convert from a global struct to a subclass of
20892         gimple_opt_pass along with...
20893         (pass_data_graphite): ...new pass_data instance and...
20894         (make_pass_graphite): ...new function.
20895         (pass_graphite_transforms): Convert from a global struct to a subclass
20896         of gimple_opt_pass along with...
20897         (pass_data_graphite_transforms): ...new pass_data instance and...
20898         (make_pass_graphite_transforms): ...new function.
20899         (pass_check_data_deps): Convert from a global struct to a subclass of
20900         gimple_opt_pass along with...
20901         (pass_data_check_data_deps): ...new pass_data instance and...
20902         (make_pass_check_data_deps): ...new function.
20903         (pass_iv_canon): Convert from a global struct to a subclass of
20904         gimple_opt_pass along with...
20905         (pass_data_iv_canon): ...new pass_data instance and...
20906         (make_pass_iv_canon): ...new function.
20907         (pass_scev_cprop): Convert from a global struct to a subclass of
20908         gimple_opt_pass along with...
20909         (pass_data_scev_cprop): ...new pass_data instance and...
20910         (make_pass_scev_cprop): ...new function.
20911         (pass_record_bounds): Convert from a global struct to a subclass of
20912         gimple_opt_pass along with...
20913         (pass_data_record_bounds): ...new pass_data instance and...
20914         (make_pass_record_bounds): ...new function.
20915         (pass_complete_unroll): Convert from a global struct to a subclass of
20916         gimple_opt_pass along with...
20917         (pass_data_complete_unroll): ...new pass_data instance and...
20918         (make_pass_complete_unroll): ...new function.
20919         (pass_complete_unrolli): Convert from a global struct to a subclass of
20920         gimple_opt_pass along with...
20921         (pass_data_complete_unrolli): ...new pass_data instance and...
20922         (make_pass_complete_unrolli): ...new function.
20923         (pass_parallelize_loops): Convert from a global struct to a subclass
20924         of gimple_opt_pass along with...
20925         (pass_data_parallelize_loops): ...new pass_data instance and...
20926         (make_pass_parallelize_loops): ...new function.
20927         (pass_loop_prefetch): Convert from a global struct to a subclass of
20928         gimple_opt_pass along with...
20929         (pass_data_loop_prefetch): ...new pass_data instance and...
20930         (make_pass_loop_prefetch): ...new function.
20931         (pass_iv_optimize): Convert from a global struct to a subclass of
20932         gimple_opt_pass along with...
20933         (pass_data_iv_optimize): ...new pass_data instance and...
20934         (make_pass_iv_optimize): ...new function.
20935         (pass_tree_loop_done): Convert from a global struct to a subclass of
20936         gimple_opt_pass along with...
20937         (pass_data_tree_loop_done): ...new pass_data instance and...
20938         (make_pass_tree_loop_done): ...new function.
20939         * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
20940         struct to a subclass of gimple_opt_pass along with...
20941         (pass_data_cse_reciprocals): ...new pass_data instance and...
20942         (make_pass_cse_reciprocals): ...new function.
20943         (pass_cse_sincos): Convert from a global struct to a subclass of
20944         gimple_opt_pass along with...
20945         (pass_data_cse_sincos): ...new pass_data instance and...
20946         (make_pass_cse_sincos): ...new function.
20947         (pass_optimize_bswap): Convert from a global struct to a subclass of
20948         gimple_opt_pass along with...
20949         (pass_data_optimize_bswap): ...new pass_data instance and...
20950         (make_pass_optimize_bswap): ...new function.
20951         (pass_optimize_widening_mul): Convert from a global struct to a
20952         subclass of gimple_opt_pass along with...
20953         (pass_data_optimize_widening_mul): ...new pass_data instance and...
20954         (make_pass_optimize_widening_mul): ...new function.
20955         * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
20956         subclass of gimple_opt_pass along with...
20957         (pass_data_phiopt): ...new pass_data instance and...
20958         (make_pass_phiopt): ...new function.
20959         (pass_cselim): Convert from a global struct to a subclass of
20960         gimple_opt_pass along with...
20961         (pass_data_cselim): ...new pass_data instance and...
20962         (make_pass_cselim): ...new function.
20963         * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
20964         subclass of gimple_opt_pass along with...
20965         (pass_data_phiprop): ...new pass_data instance and...
20966         (make_pass_phiprop): ...new function.
20967         * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
20968         subclass of gimple_opt_pass along with...
20969         (pass_data_pre): ...new pass_data instance and...
20970         (make_pass_pre): ...new function.
20971         (pass_fre): Convert from a global struct to a subclass of
20972         gimple_opt_pass along with...
20973         (pass_data_fre): ...new pass_data instance and...
20974         (make_pass_fre): ...new function.
20975         * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
20976         subclass of gimple_opt_pass along with...
20977         (pass_data_reassoc): ...new pass_data instance and...
20978         (make_pass_reassoc): ...new function.
20979         * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
20980         subclass of gimple_opt_pass along with...
20981         (pass_data_sink_code): ...new pass_data instance and...
20982         (make_pass_sink_code): ...new function.
20983         * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
20984         subclass of gimple_opt_pass along with...
20985         (pass_data_strlen): ...new pass_data instance and...
20986         (make_pass_strlen): ...new function.
20987         * tree-ssa-structalias.c (pass_build_alias): Convert from a global
20988         struct to a subclass of gimple_opt_pass along with...
20989         (pass_data_build_alias): ...new pass_data instance and...
20990         (make_pass_build_alias): ...new function.
20991         (pass_build_ealias): Convert from a global struct to a subclass of
20992         gimple_opt_pass along with...
20993         (pass_data_build_ealias): ...new pass_data instance and...
20994         (make_pass_build_ealias): ...new function.
20995         (pass_ipa_pta): Convert from a global struct to a subclass of
20996         simple_ipa_opt_pass along with...
20997         (pass_data_ipa_pta): ...new pass_data instance and...
20998         (make_pass_ipa_pta): ...new function.
20999         * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
21000         subclass of gimple_opt_pass along with...
21001         (pass_data_uncprop): ...new pass_data instance and...
21002         (make_pass_uncprop): ...new function.
21003         * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
21004         global struct to a subclass of gimple_opt_pass along with...
21005         (pass_data_late_warn_uninitialized): ...new pass_data instance and...
21006         (make_pass_late_warn_uninitialized): ...new function.
21007         * tree-ssa.c (pass_init_datastructures): Convert from a global struct
21008         to a subclass of gimple_opt_pass along with...
21009         (pass_data_init_datastructures): ...new pass_data instance and...
21010         (make_pass_init_datastructures): ...new function.
21011         (pass_early_warn_uninitialized): Convert from a global struct to a
21012         subclass of gimple_opt_pass along with...
21013         (pass_data_early_warn_uninitialized): ...new pass_data instance and...
21014         (make_pass_early_warn_uninitialized): ...new function.
21015         (pass_update_address_taken): Convert from a global struct to a
21016         subclass of gimple_opt_pass along with...
21017         (pass_data_update_address_taken): ...new pass_data instance and...
21018         (make_pass_update_address_taken): ...new function.
21019         * tree-ssanames.c (pass_release_ssa_names): Convert from a global
21020         struct to a subclass of gimple_opt_pass along with...
21021         (pass_data_release_ssa_names): ...new pass_data instance and...
21022         (make_pass_release_ssa_names): ...new function.
21023         * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
21024         subclass of gimple_opt_pass along with...
21025         (pass_data_stdarg): ...new pass_data instance and...
21026         (make_pass_stdarg): ...new function.
21027         * tree-switch-conversion.c (pass_convert_switch): Convert from a
21028         global struct to a subclass of gimple_opt_pass along with...
21029         (pass_data_convert_switch): ...new pass_data instance and...
21030         (make_pass_convert_switch): ...new function.
21031         * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
21032         to a subclass of gimple_opt_pass along with...
21033         (pass_data_tail_recursion): ...new pass_data instance and...
21034         (make_pass_tail_recursion): ...new function.
21035         (pass_tail_calls): Convert from a global struct to a subclass of
21036         gimple_opt_pass along with...
21037         (pass_data_tail_calls): ...new pass_data instance and...
21038         (make_pass_tail_calls): ...new function.
21039         * tree-vect-generic.c (pass_lower_vector): Convert from a global
21040         struct to a subclass of gimple_opt_pass along with...
21041         (pass_data_lower_vector): ...new pass_data instance and...
21042         (make_pass_lower_vector): ...new function.
21043         (pass_lower_vector_ssa): Convert from a global struct to a subclass of
21044         gimple_opt_pass along with...
21045         (pass_data_lower_vector_ssa): ...new pass_data instance and...
21046         (make_pass_lower_vector_ssa): ...new function.
21047         * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
21048         to a subclass of gimple_opt_pass along with...
21049         (pass_data_slp_vectorize): ...new pass_data instance and...
21050         (make_pass_slp_vectorize): ...new function.
21051         (pass_ipa_increase_alignment): Convert from a global struct to a
21052         subclass of simple_ipa_opt_pass along with...
21053         (pass_data_ipa_increase_alignment): ...new pass_data instance and...
21054         (make_pass_ipa_increase_alignment): ...new function.
21055         * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
21056         gimple_opt_pass along with...
21057         (pass_data_vrp): ...new pass_data instance and...
21058         (make_pass_vrp): ...new function.
21059         * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
21060         subclass of simple_ipa_opt_pass along with...
21061         (pass_data_ipa_free_lang_data): ...new pass_data instance and...
21062         (make_pass_ipa_free_lang_data): ...new function.
21063         * tsan.c (pass_tsan): Convert from a global struct to a subclass of
21064         gimple_opt_pass along with...
21065         (pass_data_tsan): ...new pass_data instance and...
21066         (make_pass_tsan): ...new function.
21067         (pass_tsan_O0): Convert from a global struct to a subclass of
21068         gimple_opt_pass along with...
21069         (pass_data_tsan_O0): ...new pass_data instance and...
21070         (make_pass_tsan_O0): ...new function.
21071         * var-tracking.c (pass_variable_tracking): Convert from a global
21072         struct to a subclass of rtl_opt_pass along with...
21073         (pass_data_variable_tracking): ...new pass_data instance and...
21074         (make_pass_variable_tracking): ...new function.
21075         * web.c (pass_web): Convert from a global struct to a subclass of
21076         rtl_opt_pass along with...
21077         (pass_data_web): ...new pass_data instance and...
21078         (make_pass_web): ...new function.
21079         * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
21080         declaration with that of...
21081         (make_pass_mode_switch_use): ...new function.
21082         (pass_resolve_sw_modes): Replace declaration with that of...
21083         (make_pass_resolve_sw_modes): ...new function.
21084         * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
21085         from a global struct to a subclass of rtl_opt_pass along with...
21086         (pass_data_mode_switch_use): ...new pass_data instance and...
21087         (make_pass_mode_switch_use): ...new function.
21088         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
21089         from a global struct to a subclass of rtl_opt_pass along with...
21090         (pass_data_resolve_sw_modes): ...new pass_data instance and...
21091         (make_pass_resolve_sw_modes): ...new function.
21092         * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
21093         struct to a subclass of rtl_opt_pass along with...
21094         (pass_data_insert_vzeroupper): ...new pass_data instance and...
21095         (make_pass_insert_vzeroupper): ...new function.
21096         * config/sparc/sparc.c (pass_work_around_errata): Convert from a
21097         global struct to a subclass of rtl_opt_pass along with...
21098         (pass_data_work_around_errata): ...new pass_data instance and...
21099         (make_pass_work_around_errata): ...new function.
21100         * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
21101         struct to a subclass of rtl_opt_pass along with...
21102         (pass_data_mips_machine_reorg2): ...new pass_data instance and...
21103         (make_pass_mips_machine_reorg2): ...new function.
21105 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
21107         * passes.c (pass_manager::operator new): New.
21109 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
21111         Handwritten part of conversion of passes to C++ classes.
21113         * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
21114         (toplev.o): Add dep on PASS_MANAGER_H.
21115         * cgraphunit.c (cgraph_process_new_functions): Rework invocation
21116         of early local pases to reflect this moving from a global to a
21117         member of gcc::pass_manager.
21118         (cgraph_add_new_function): Likewise.
21119         * lto-cgraph.c (lto_output_node): Update for conversion of
21120         struct ipa_opt_pass_d to a C++ subclass of opt_pass.
21121         * passes.c (opt_pass::clone): New.
21122         (opt_pass::gate): New.
21123         (opt_pass::execute): New.
21124         (opt_pass::opt_pass): New.
21125         (pass_manager::execute_early_local_passes): New.
21126         (pass_manager::execute_pass_mode_switching): new.
21127         (finish_optimization_passes): Convert to...
21128         (pass_manager::finish_optimization_passes): ...this.
21129         (finish_optimization_passes): Update for conversion of passes to
21130         C++ classes.
21131         (register_dump_files_1): Use has_gate since we cannot portably
21132         check a vtable entry against NULL.
21133         (dump_one_pass): Likewise.
21134         (ipa_write_summaries_2): Likewise.
21135         (ipa_write_optimization_summaries_1): Likewise.
21136         (ipa_read_summaries_1): Likewise.
21137         (ipa_read_optimization_summaries_1): Likewise.
21138         (execute_ipa_stmt_fixups): Likewise.
21139         (pass_manager::pass_manager): Rewrite pass-creation, invoking
21140         pass-creation functions rather than wiring up globals, and
21141         storing the results in fields of pass_manager generated using
21142         pass-instances.def.
21143         (pass_manager::dump_profile_report): Update for conversion of
21144         passes to C++ classes.
21145         (pass_manager::execute_ipa_summary_passes): Likewise.
21146         (execute_one_ipa_transform_pass): Likewise.
21147         (execute_one_pass): Use has_gate and has_execute since we cannot
21148         portably check a vtable entry against NULL.
21149         * pass_manager.h (pass_manager::finish_optimization_passes): New.
21150         (pass_manager): Use pass-instances.def to add fields for the
21151         various pass instances.
21152         * toplev.c (finalize): Update for move of
21153         finish_optimization_passes to a method of gcc::pass_manager.
21154         * toplev.h (finish_optimization_passes): Move to method of class
21155         pass_manager.
21156         * tree-pass.h (struct pass_data): New.
21157         (opt_pass): Convert to C++ class, make it a subclass of pass_data.
21158         (opt_pass::gate): Convert to virtual function.
21159         (opt_pass::~opt_pass): New.
21160         (opt_pass::clone): New.
21161         (opt_pass::execute): Convert to virtual function.
21162         (opt_pass::opt_pass): New.
21163         (opt_pass::ctxt_): new.
21164         (gimple_opt_pass): Convert to subclass of opt_pass.
21165         (gimple_opt_pass::gimple_opt_pass): New.
21166         (rtl_opt_pass): Convert to subclass of opt_pass.
21167         (rtl_opt_pass::rtl_opt_pass): New.
21168         (ipa_opt_pass_d): Convert to subclass of opt_pass.
21169         (ipa_opt_pass_d::ipa_opt_pass_d): New.
21170         (simple_ipa_opt_pass): Convert to subclass of opt_pass.
21171         (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
21172         * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
21173         invocation of pass_mode_switching to reflect this moving from a
21174         global to a member of gcc::pass_manager.
21175         (ix86_option_override): Rework how pass_insert_vzeroupper is
21176         added to the pass_manager to reflect autogenerated changes.
21177         * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
21179 2013-08-05  Richard Earnshaw  <rearnsha@arm.com>
21181         PR rtl-optimization/57708
21182         * recog.c (peep2_find_free_register): Validate all regs in a
21183         multi-reg mode.
21185 2013-08-05  Jan Hubicka  <jh@suse.cz>
21187         PR lto/57602
21188         * cgraph.c (verify_cgraph_node): Accept local flags from other
21189         partitions.
21190         * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
21191         (function_and_variable_visibility): Likewise.
21192         * trans-mem.c (ipa_tm_create_version): TM versions are not local.
21194 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
21196         * graph.c (init_graph_slim_pretty_print): Remove.
21197         (print_graph_cfg): Do not call it.  Use local pretty printer.
21198         (start_graph_dump): Likewise.
21200 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
21202         * gimple-pretty-print.c (buffer): Remove.
21203         (initialized): Likewise.
21204         (maybe_init_pretty_print): Likewise.
21205         (print_gimple_stmt): Do not call it.  Use non-static local
21206         pretty_printer variable.
21207         (print_gimple_expr): Likewise.
21208         (print_gimple_seq): Likewise.
21209         (gimple_dump_bb): Likewise.
21211 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
21213         * asan.c (asan_pp): Remove.
21214         (asan_pp_initialized): Likewise.
21215         (asan_pp_initialize): Likewise.
21216         (asan_pp_string): Take a pretty_printer parameter.  Adjust callers.
21217         (asan_emit_stack_protection): Tidy.  Use local pretty printer.
21218         (asan_add_global): Likewise.
21220 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
21222         * pretty-print.h (pp_base): Remove.  Adjust dependent macros.
21223         * diagnostic.h (diagnostic_flush_buffer): Adjust.
21224         * pretty-print.c (pp_formatted_text_data): Likewise.
21225         (pp_indent): Rename from pp_base_indent.
21226         (pp_format): Rename from pp_base_format.
21227         (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
21228         (pp_format_verbatim): Rename from pp_base_format_verbatim.
21229         (pp_flush): Rename from pp_base_flush.
21230         (pp_set_line_maximum_length): Rename from
21231         pp_base_set_line_maximum_length.
21232         (pp_clear_output_area): Rename from pp_base_clear_output_area.
21233         (pp_set_prefix): Rename from pp_base_set_prefix.
21234         (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
21235         (pp_emit_prefix): Rename from pp_base_emit_prefix.
21236         (pp_append_text): Rename from pp_base_append_text.
21237         (pp_formatted_text): Rename from pp_base_formatted_text.
21238         (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
21239         (pp_remaining_character_count_for_line): Rename from
21240         pp_base_remaining_character_count_for_line.
21241         (pp_newline): Rename from pp_base_newline.
21242         (pp_character): Rename from pp_base_character.
21243         (pp_string): Rename from pp_base_string.
21244         (pp_maybe_space): Rename from pp_base_maybe_space.
21245         * asan.c (asan_pp_string): Adjust.
21246         (asan_emit_stack_protection): Likewise.
21247         (asan_add_global): Likewise.
21248         * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
21249         * tree-mudflap.c (mf_varname_tree): Likewise.
21250         * tree-pretty-print.c (pp_tree_identifier): Rename from
21251         pp_base_tree_identifier.
21252         * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
21253         Declare as function.
21255 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
21257         * pretty-print.h (pp_bar_bar): New.
21258         (pp_ampersand_ampersand): Likewise.
21259         (pp_less_equal): Likewise.
21260         (pp_greater_equal): Likewise.
21261         * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
21262         printer functions instead of pp_string or operators and punctuators.
21263         (dump_gimple_call): Likewise.
21264         (dump_gimple_omp_for): Likewise.
21265         (dump_gimple_transaction): Likewise.
21266         (dump_gimple_phi): Likewise.
21267         (pp_gimple_stmt_1): Likewise.
21268         * sched-vis.c (print_insn): Likewise.
21269         * tree-mudflap.c (mf_varname_tree): Likewise.
21270         * tree-pretty-print.c (dump_block_node): Likewise.
21271         (dump_generic_node): Likewise.
21273 2013-08-02  Jan Hubicka  <jh@suse.cz>
21275         * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
21276         boundaries.
21277         * lto-streamer-out.c (tree_is_indexable): Results decls and
21278         parm decls are not indexable.
21279         (DFS_write_tree_body): Do not follow args and results.
21280         (hash_tree): Likewise.
21281         (output_functions): Rearrange so struct function is needed
21282         only when real body is output; be able to also ouptut abstract
21283         functions; output DECL_ARGUMENTS and DECL_RESULT.
21284         (lto_output): When not in WPA, ale store abstract functions.
21285         (write_symbol): Do not care about RESULT_DECL.
21286         (output_symbol_p): Handle correctly sbtract decls.
21287         * lto-streamer-in.c (input_function): Rearrange so struct
21288         function can be NULL at entry; allow streaming of
21289         functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
21290         * ipa.c (symtab_remove_unreachable_nodes): Silence confused
21291         sanity check during LTO.
21292         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
21293         RESULT_DECl and DECL_ARGUMENTS.
21294         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
21295         Likewise.
21297 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
21299         * pretty-print.h (pp_underscore): New.
21300         (pp_comma): Tidy.
21301         * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
21302         printer functions instead of pp_character.
21303         (dump_binary_rhs): Likewise.
21304         (dump_ternary_rhs): Likewise.
21305         (dump_gimple_call_args): Likewise.
21306         (pp_points_to_solution): Likewise.
21307         (dump_gimple_call): Likewise.
21308         (dump_gimple_switch): Likewise.
21309         (dump_gimple_cond): Likewise.
21310         (dump_gimple_bind): Likewise.
21311         (dump_gimple_try): Likewise.
21312         (dump_gimple_omp_for): Likewise.
21313         (dump_gimple_omp_continue): Likewise.
21314         (dump_gimple_omp_single): Likewise.
21315         (dump_gimple_omp_sections): Likewise.
21316         (dump_gimple_omp_block): Likewise.
21317         (dump_gimple_omp_critical): Likewise.
21318         (dump_gimple_transaction): Likewise.
21319         (dump_gimple_asm): Likewise.
21320         (dump_gimple_phi): Likewise.
21321         (dump_gimple_omp_parallel): Likewise.
21322         (dump_gimple_omp_task): Likewise.
21323         (dump_gimple_omp_atomic_load): Likewise.
21324         (dump_gimple_omp_atomic_store): Likewise.
21325         (dump_gimple_mem_ops): Likewise.
21326         (pp_gimple_stmt_1): Likewise.
21327         (pp_cfg_jump): Likewise.
21328         (dump_implicit_edges): Likewise.
21329         (gimple_dump_bb_for_graph): Likewise.
21330         * graph.c (draw_cfg_node): Likewise.
21331         * langhooks.c (lhd_print_error_function): Likewise.
21332         * sched-vis.c (print_exp): Likewise.
21333         (print_value): Likewise.
21334         (print_pattern): Likewise.
21335         (print_insn): Likewise.
21336         (rtl_dump_bb_for_graph): Likewise.
21337         * tree-pretty-print.c (dump_function_declaration): Likewise.
21338         (dump_array_domain): Likewise.
21339         (dump_omp_clause): Likewise.
21340         (dump_location): Likewise.
21341         (dump_generic_node): Likewise.
21342         (print_struct_decl): Likewise.
21343         * diagnostic.c (diagnostic_show_locus): Use pp_space.
21345 2013-08-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
21347         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
21348         candidate table when replacing a candidate statement.
21349         (replace_rhs_if_not_dup): Likewise.
21350         (replace_one_candidate): Likewise.
21352 2013-08-02  Jan Hubicka  <jh@suse.cz>
21353             Martin Liska  <marxin.liska@gmail.com>
21355         * cgraphunit.c (add_new_function): Fix logic when adding from
21356         late IPA pass.
21357         (assemble_thunk): Rename to ...
21358         (expand_thunk); .. this one; export; get it working with
21359         general functions; make produced gimple valid.
21360         * cgraph.h (expand_thunk): Declare.
21362 2013-08-02  Jan Hubicka  <jh@suse.cz>
21364         * ipa-cp.c (gather_context_independent_values): Use
21365         ipa_get_param_move_cost.
21366         (get_replacement_map): Remove PARAM; move parameter folding
21367         into tree-inline.c
21368         (create_specialized_node): Update.
21369         * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
21370         assert that we have gimple body; update move_cost.
21371         (count_formal_params): Assert that we have gimple body.
21372         (ipa_dump_param): New function.
21373         (ipa_alloc_node_params): Break out from ...
21374         (ipa_initialize_node_params): ... here.
21375         (ipa_get_vector_of_formal_parms): ICE when used in WPA.
21376         (ipa_write_node_info): Stream move costs.
21377         (ipa_read_node_info): Read move costs.
21378         (ipa_update_after_lto_read): Do not recompute node params.
21379         * ipa-prop.h (ipa_param_descriptor): Add move_cost.
21380         (ipa_get_param): Check we are not in WPA.
21381         (ipa_get_param_move_cost): New.
21382         * tree-inline.c (tree_function_versioning): Fold replacement as needed.
21383         * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
21384         parm numbers to be present.
21386 2013-08-02  Vladimir Makarov  <vmakarov@redhat.com>
21388         PR rtl-optimization/58048
21389         * lra-constraints.c (process_alt_operands): Don't check asm
21390         operand on register.
21392 2013-08-02  Eric Botcazou  <ebotcazou@adacore.com>
21394         * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
21395         the implied StoreLoad barrier for atomic operations if before.
21397 2013-08-02  Jan Hubicka  <jh@suse.cz>
21398             Martin Liska  <marxin.liska@gmail.com>
21400         * cgraph.c (cgraph_function_body_availability): Do not check
21401         cgraph flags.
21402         * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
21403         symtab_node_availability): Declare.
21404         * ipa.c (can_replace_by_local_alias): New.
21405         (function_and_variable_visibility): Use it.
21406         * symtab.c (symtab_for_node_and_aliases,
21407         symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
21409 2013-08-02  Vladimir Makarov  <vmakarov@redhat.com>
21411         PR rtl-optimization/57963
21412         * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
21413         (lra_constraints): Use them.
21415 2013-08-02  Sofiane Naci  <sofiane.naci@arm.com>
21417         * config/arm/types.md (define_attr "type"): Add "load_acq"
21418         and "store_rel".
21419         * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
21420         changes.
21421         (cortex_a53_store1): Likewise.
21423 2013-08-01  Jan Hubicka  <jh@suse.cz>
21425         * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
21426         partitions are not needed.
21428 2013-08-01  Uros Bizjak  <ubizjak@gmail.com>
21430         * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
21431         * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
21432         MAYBE_NON_Q_CLASS_P where appropriate.
21434 2013-08-01  Jan Hubicka  <jh@suse.cz>
21436         * cgraph.h (release_function_body): Declare.
21437         * tree.c (free_lang_data_in_decl): Free, parameters and return values
21438         of unused delcarations.
21440 2013-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21442         * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
21443         RTL form when subtracting a constant.
21445 2013-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21447         * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
21448         Generate canonical plus rtx with negated immediate instead of minus
21449         where appropriate.
21450         * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
21452 2013-08-01  Jan Hubicka  <jh@suse.cz>
21454         * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
21455         (cgraph_release_function_body): Likewise.
21456         (cgraph_can_remove_if_no_direct_calls_p): Likewise.
21457         * cgraph.h (cgrpah_node): Rename abstract_and_needed
21458         to used_as_abstract_origin.
21459         * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
21460         symbols used as abstract origins.
21461         * cgraphunit.c (analyze_functions): Update.
21462         * ipa.c (symtab_remove_unreachable_nodes): Recompute
21463         used_as_abstract_origin.
21464         * tree-inline.c (tree_function_versioning): Update
21465         used_as_abstract_origin; be ready for DECL_RESULT and
21466         DECL_ARGUMENTS to be NULL.
21468         * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
21469         for abstract functions.
21470         * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
21471         real symbols.
21473 2013-08-01  Jan Hubicka  <jh@suse.cz>
21475         * profile.c (compute_value_histograms): Fix thinko.
21477 2013-08-01  Sofiane Naci  <sofiane.naci@arm.com>
21479         * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs.  Add
21480         aarch-common-protos.h to extra_headers.
21481         (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
21482         * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
21483         * config/aarch64/t-aarch64 (aarch-common.o): Define.
21485 2013-08-01  Sofiane Naci  <sofiane.naci@arm.com>
21487         * config/aarch64/aarch64.md (define_attr "type"): Delete.
21488         Include "../arm/types.md".  Define "type" attribute for all patterns.
21489         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
21490         attribute changes.
21492 2013-07-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
21494         * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
21495         to support power8 load fusion.
21496         (fusion_gpr_mem_load): Likewise.
21498         * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
21500         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
21501         declarations for power8 load fusion.
21502         (emit_fusion_gpr_load): Likewise.
21504         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
21505         tuning for power8, turn on fusion mode by default.  Turn on sign
21506         extending fusion mode if normal fusion mode is on, and we are at
21507         -O2 or -O3.
21508         (fusion_gpr_load_p): New function, return true if we can fuse an
21509         addis instruction with a dependent load to a GPR.
21510         (emit_fusion_gpr_load): Emit the instructions for power8 load
21511         fusion to GPRs.
21513         * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
21514         (VSX load fusion peepholes): New peepholes to fuse together an
21515         addi instruction with a VSX load instruction.
21517         * config/rs6000/rs6000.md (GPR load fusion peepholes): New
21518         peepholes to fuse an addis instruction with a load to a GPR base
21519         register.  If we are supporting sign extending fusions, convert
21520         sign extending loads to zero extending loads and add an explicit
21521         sign extension.
21523 2013-07-31  Sofiane Naci  <sofiane.naci@arm.com>
21525         * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs.  Add
21526         aarch-common-protos.h to extra_headers.
21527         (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
21528         * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
21529         (arm_early_store_addr_dep): Likewise.
21530         (arm_no_early_alu_shift_dep): Likewise.
21531         (arm_no_early_alu_shift_value_dep): Likewise.
21532         (arm_no_early_mul_dep): Likewise.
21533         (arm_no_early_store_addr_dep): Likewise.
21534         (arm_mac_accumulator_is_mul_result): Likewise.
21535         (arm_mac_accumulator_is_result): Likewise.
21536         * config/arm/aarch-common.c: ... here.  New file.
21537         * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
21538         here to ...
21539         (arm_early_store_addr_dep): Likewise.
21540         (arm_no_early_alu_shift_dep): Likewise.
21541         (arm_no_early_alu_shift_value_dep): Likewise.
21542         (arm_no_early_mul_dep): Likewise.
21543         (arm_no_early_store_addr_dep): Likewise.
21544         (arm_mac_accumulator_is_mul_result): Likewise.
21545         (arm_mac_accumulator_is_result): Likewise.
21546         * config/arm/aarch-common-protos.h: ... here.  New file.
21547         * config/arm/t-arm (aarch-common.o): Define.
21549 2013-07-31  Sofiane Naci  <sofiane.naci@arm.com>
21551         * config/arm/arm.md: Include new file "types.md".
21552         (define_attr "type"): Move from here to ...
21553         (define_attr "mul32"): Likewise.
21554         (define_attr "mul64"): Likewise.
21555         * config/arm/types.md: ... here.  New file.
21557 2013-07-31  Sebastian Huber  <sebastian.huber@embedded-brains.de>
21559         * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
21560         * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
21562 2013-07-31  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
21564         * gen-pass-instances.awk: Fix offset of substr().
21566 2013-07-31  David Malcolm  <dmalcolm@redhat.com>
21568         * Makefile.in (pass-instances.def): New.
21569         (passes.o): Replace dependency on passes.def with one on
21570         pass-instances.def
21572         * gen-pass-instances.awk: New.
21574         * passes.c (pass_manager::pass_manager): Use pass-instances.def
21575         rather than passes.def, updating local definition of NEXT_PASS
21576         macro to add an extra NUM parameter (currently unused).
21578 2013-07-30  David Malcolm  <dmalcolm@redhat.com>
21580         * Makefile.in (PASS_MANAGER_H): New.
21581         (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
21582         (passes.o): Likewise.
21583         (statistics.o): Likewise.
21584         (cgraphunit.o): Likewise.
21585         (context.o): Depend on PASS_MANAGER_H.
21587         * pass_manager.h: New.
21589         * cgraphunit.c (cgraph_add_new_function): Update for moves
21590         of globals to fields of pass_manager.
21591         (analyze_function): Likewise.
21592         (expand_function): Likewise.
21593         (ipa_passes): Likewise.
21594         (compile): Likewise.
21596         * context.c (context::context): New.
21597         * context.h  (context::context): New.
21598         (context::get_passes): New.
21599         (context::passes_): New.
21601         * lto-cgraph.c (input_node): Update for moves of globals to
21602         fields of pass_manager.
21604         * passes.c (all_passes): Remove, in favor of a field of the
21605         same name within the new class pass_manager.
21606         (all_small_ipa_passes): Likewise.
21607         (all_lowering_passes): Likewise.
21608         (all_regular_ipa_passes): Likewise.
21609         (all_late_ipa_passes): Likewise.
21610         (all_lto_gen_passes): Likewise.
21611         (passes_by_id): Likewise.
21612         (passes_by_id_size): Likewise.
21613         (gcc_pass_lists): Remove, in favor of "pass_lists" field within
21614         the new class pass_manager.
21615         (set_pass_for_id): Convert to...
21616         (pass_manager::set_pass_for_id): ...method.
21617         (get_pass_for_id): Convert to...
21618         (pass_manager::get_pass_for_id): ...method.
21619         (register_one_dump_file): Move body of implementation into...
21620         (pass_manager::register_one_dump_file): ...here.
21621         (register_dump_files_1): Convert to...
21622         (pass_manager::register_dump_files_1): ...method.
21623         (register_dump_files): Convert to...
21624         (pass_manager::register_dump_files): ...method.
21625         (create_pass_tab): Update for moves of globals to fields of
21626         pass_manager.
21627         (dump_passes): Move body of implementation into...
21628         (pass_manager::dump_passes): ...here.
21629         (register_pass): Move body of implementation into...
21630         (pass_manager::register_pass): ...here.
21631         (init_optimization_passes): Convert into...
21632         (pass_manager::pass_manager): ...constructor for new
21633         pass_manager class, and initialize the pass_lists array.
21634         (check_profile_consistency): Update for moves of globals to
21635         fields of pass_manager.
21636         (dump_profile_report): Move body of implementation into...
21637         (pass_manager::dump_profile_report): ...here.
21638         (ipa_write_summaries_1): Update for moves of pass lists from
21639         being globals to fields of pass_manager.
21640         (ipa_write_optimization_summaries): Likewise.
21641         (ipa_read_summaries):  Likewise.
21642         (ipa_read_optimization_summaries): Likewise.
21643         (execute_all_ipa_stmt_fixups): Likewise.
21645         * statistics.c (statistics_fini): Update for moves of globals to
21646         fields of pass_manager.
21648         * toplev.c (general_init): Replace call to
21649         init_optimization_passes with construction of the pass_manager
21650         instance.
21652         * tree-pass.h (all_passes): Remove, in favor of a field of the
21653         same name within the new class pass_manager.
21654         (all_small_ipa_passes): Likewise.
21655         (all_lowering_passes): Likewise.
21656         (all_regular_ipa_passes): Likewise.
21657         (all_lto_gen_passes): Likewise.
21658         (all_late_ipa_passes): Likewise.
21659         (passes_by_id): Likewise.
21660         (passes_by_id_size): Likewise.
21661         (gcc_pass_lists): Remove, in favor of "pass_lists" field within
21662         the new class pass_manager.
21663         (get_pass_for_id): Remove.
21665 2013-07-30  Richard Earnshaw  <rearnsha@arm.com>
21667         * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
21668         configs.
21670 2013-07-30  Richard Earnshaw  <rearnsha@arm.com>
21672         * arm.md (mulhi3): New expand pattern.
21674 2013-07-30  Jan Hubicka  <jh@suse.cz>
21675             Martin Liska  <marxin.liska@gmail.com>
21677         * profile.c (compute_value_histograms): Do not ICE when
21678         there is mismatch only on some counters.
21680 2013-07-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
21682         PR rtl-optimization/57637
21683         * function.c (move_insn_for_shrink_wrap): Also check the
21684         GEN set of the LIVE problem for the liveness analysis
21685         if it exists, otherwise give up.
21687 2013-07-29  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
21689         PR tree-optimization/57993
21690         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
21691         replaced statement in the candidate table.
21692         (phi_add_costs): Return infinite cost when the hidden basis does
21693         not dominate all phis on which the candidate is dependent.
21694         (replace_one_candidate): Record replaced statement in the
21695         candidate table.
21697 2013-07-29  Joern Rennecke  <joern.rennecke@embecosm.com>
21699         * config/epiphany/epiphany.md (*isub_i+2): New peephole.
21700         (ashlv2si3): New expander.
21701         (*ashlv2si3_i): New define_insn_and_split.
21702         * predicates.md (float_operation): Allow patterns with three
21703         basic sub-patterns.
21705         PR rtl-optimization/58021
21706         * mode-switching.c (create_pre_exit): Always split off preceding
21707         insns if we are not at the basic block head.
21709 2013-07-29  Maciej W. Rozycki  <macro@codesourcery.com>
21711         * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
21712         (UCLIBC_DYNAMIC_LINKER): New macro.
21713         * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
21714         `-mnan=2008'.
21715         (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
21716         (UCLIBC_DYNAMIC_LINKER32): Undefine macro first.  Handle
21717         `-mnan=2008'.
21718         (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
21719         (UCLIBC_DYNAMIC_LINKERN32): Likewise.
21720         * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
21721         for SF and DF modes.  Use ieee_quad_format for TF mode.
21722         * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
21723         * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
21724         (mips_option_override): Handle `-mnan=legacy'.
21725         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
21726         `-mabs=2008' and `-mnan=2008'.
21727         (OPTION_DEFAULT_SPECS): Add "nan" default.
21728         (ASM_SPEC): Handle `-mnan='.
21729         [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
21730         * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
21731         comment accordingly.
21732         (neg<mode>2): Likewise.
21733         * config/mips/mips.opt (mabs, mnan): New options.
21734         * doc/install.texi (Configuration): Document `--with-nan=' option.
21735         * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
21736         `-mnan=' options.
21737         (MIPS Options): Document them.
21738         * config.gcc <mips*-*-*>: Handle `--with-nan='.
21739         * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
21740         * configure: Regenerate.
21741         * config.in: Regenerate.
21743 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
21745         * config/i386/i386.md (float post-reload splitters): Do not check
21746         for subregs of SSE registers.
21748 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
21749             H.J. Lu  <hongjiu.lu@intel.com>
21751         PR target/57954
21752         PR target/57988
21753         * config/i386/i386.md (post-reload splitter
21754         to avoid partial SSE reg dependency stalls): New pattern.
21756 2013-07-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
21758         * config/s390/s390.md ("movcc"): Swap load and store instructions.
21760 2013-07-27  Joern Rennecke  <joern.rennecke@embecosm.com>
21762         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
21763         Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
21765 2013-07-26  Cary Coutant  <ccoutant@google.com>
21767         * dwarf2out.c (die_checksum_ordered): Don't include template
21768         instantiations in signature.
21769         (is_template_parameter): New function.
21770         (is_template_instantiation): New function.
21771         (generate_skeleton_bottom_up): Don't include template instantiations
21772         in type unit DIE.
21773         (generate_skeleton): Likewise.
21774         (break_out_comdat_types): Move recursive call to break out nested
21775         types earlier.
21776         (prune_unused_types_mark_generic_parms_dies): Call
21777         is_template_parameter.
21779 2013-07-26  Ian Bolton  <ian.bolton@arm.com>
21781         * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
21782         uses vector registers.
21783         * config/aarch64/iterators.md: Add attributes rtn and vas.
21785 2013-07-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21786             Richard Earnshaw  <richard.earnshaw@arm.com>
21788         * combine.c (simplify_comparison): Re-canonicalize operands
21789         where appropriate.
21790         * config/arm/arm.md (movcond_addsi): New splitter.
21792 2013-07-25  Sterling Augustine  <saugustine@google.com>
21794         * dwarf2out.c (size_of_pubnames): Move code to...
21795         (include_pubname_in_output): ...here.  New.
21796         (want_pubnames): Rearrange.
21797         (output_pubnames): Call include_pubname_in_output.  Move assertion.
21799 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
21801         * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
21803 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
21805         PR target/38836
21806         * doc/extend.texi: Remove obsolete builtins. Fix
21807         typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
21809 2013-07-25  Jan Hubicka  <jh@suse.cz>
21811         * cgraph.c (release_function_body): Break out from ...
21812         (cgraph_release_function_body): ... this one; also release DECL_RESULT
21813         and DECL_ARGUMENTS.
21814         * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
21815         old_tree in the map.
21816         (create_specialized_node): Update.
21817         * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
21818         into index.
21819         * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
21820         DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
21821         * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
21822         * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
21823         DECL_RESULT.
21825 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21827         * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
21828         addsi3_carryin_alt2_<optab>): Correct output template.
21830 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21832         * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
21833         Adjust for arm_restrict_it.
21834         Remove trailing whitespace.
21836 2013-07-25  Mark Kettenis  <kettenis@openbsd.org>
21838         * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
21839         libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
21841         * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
21843 2013-07-25  Vladimir Makarov  <vmakarov@redhat.com>
21845         PR rtl-optimization/57960
21846         * lra-constraints.c (process_alt_operands): Use the right mode
21847         when checking strict_low.
21849 2013-07-25  Jan Hubicka  <jh@suse.cz>
21851         * lto-symtab.c (lto_cgraph_replace_node): Release function body.
21852         * cgraph.c (cgraph_remove_node): Do not release function body
21853         when in cgraph streaming.
21854         * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
21855         in other partitions are not considered reachable; fix handling of
21856         clones.
21858 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21860         * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
21862 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21864         PR target/19599
21865         PR target/57731
21866         PR target/57837
21867         * config/arm/arm.md ("*sibcall_insn): Replace use of
21868         Ss with US. Adjust output for v5 and v4t.
21869         (*sibcall_value_insn): Likewise and loosen predicate on operand0.
21871         * config/arm/constraints.md ("Ss"): Rename to US.
21873 2013-07-25  Terry Guo  <terry.guo@arm.com>
21875         * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
21876         shift_add/shift_sub0/shift_sub1 RTXs.
21878 2013-07-24  Bill Schmidt  <wschmidt@linux.ibm.com>
21879             Anton Blanchard  <anton@au1.ibm.com>
21881         * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
21882         (altivec_vpks<VI_char>ss): Likewise.
21883         (altivec_vpks<VI_char>us): Likewise.
21884         (altivec_vpku<VI_char>us): Likewise.
21885         (altivec_vpku<VI_char>um): Likewise.
21887 2013-07-24  David Malcolm  <dmalcolm@redhat.com>
21889         Introduce context class.
21891         * Makefile.in (CONTEXT_H): New.
21892         (OBJS): Add context.o.
21893         (toplev.o): Add CONTEXT_H to dependencies.
21894         (context.o): New.
21896         * toplev.c (general_init): Create the singleton gcc::context instance.
21898         * context.c: New.
21900         * context.h: New.
21902 2013-07-24  Joern Rennecke  <joern.rennecke@embecosm.com>
21904         PR rtl-optimization/57968
21905         * mode-switching.c (create_pre_exit): Allow instructions that
21906         don't set a return register to need a non-exit mode.
21908 2013-07-24  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
21909             Anton Blanchard  <anton@au1.ibm.com>
21911         * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
21912         operands to vperm for little endian.
21913         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
21914         of lvsl to create the control mask for a vperm for little endian.
21916 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21917             Anton Blanchard  <anton@au1.ibm.com>
21919         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
21920         two operands for little-endian.
21922 2013-07-23  Steve Ellcey  <sellcey@mips.com>
21924         * config/mips/mips.c (mips_case_values_threshold): New.
21925         (TARGET_CASE_VALUES_THRESHOLD): Define.
21927 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21928             Anton Blanchard  <anton@au1.ibm.com>
21930         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
21931         selection of field for vector splat in little endian mode.
21933 2013-07-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
21935         * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
21936         expanders to rs6000.md.
21937         (ior<mode>3): Likewise.
21938         (and<mode>3): Likewise.
21939         (one_cmpl<mode>2): Likewise.
21940         (nor<mode>3): Likewise.
21941         (andc<mode>3): Likewise.
21942         (eqv<mode>3): Likewise.
21943         (nand<mode>3): Likewise.
21944         (orc<mode>3): Likewise.
21946         * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
21947         declaration.
21949         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
21950         to split multi-word logical operations.
21951         (rs6000_split_logical_di): Likewise.
21952         (rs6000_split_logical): Likewise.
21954         * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
21955         (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
21956         and allow TImode operations in 32-bit.
21957         (vsx_and<mode>3_64bit): Likewise.
21958         (vsx_ior<mode>3_32bit): Likewise.
21959         (vsx_ior<mode>3_64bit): Likewise.
21960         (vsx_xor<mode>3_32bit): Likewise.
21961         (vsx_xor<mode>3_64bit): Likewise.
21962         (vsx_one_cmpl<mode>2_32bit): Likewise.
21963         (vsx_one_cmpl<mode>2_64bit): Likewise.
21964         (vsx_nor<mode>3_32bit): Likewise.
21965         (vsx_nor<mode>3_64bit): Likewise.
21966         (vsx_andc<mode>3_32bit): Likewise.
21967         (vsx_andc<mode>3_64bit): Likewise.
21968         (vsx_eqv<mode>3_32bit): Likewise.
21969         (vsx_eqv<mode>3_64bit): Likewise.
21970         (vsx_nand<mode>3_32bit): Likewise.
21971         (vsx_nand<mode>3_64bit): Likewise.
21972         (vsx_orc<mode>3_32bit): Likewise.
21973         (vsx_orc<mode>3_64bit): Likewise.
21975         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
21976         logical types in GPRs.
21978         * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
21979         logical insns to rs6000.md, and allow TImode operations in
21980         32-bit.
21981         (altivec_ior<mode>3): Likewise.
21982         (altivec_xor<mode>3): Likewise.
21983         (altivec_one_cmpl<mode>2): Likewise.
21984         (altivec_nor<mode>3): Likewise.
21985         (altivec_andc<mode>3): Likewise.
21987         * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
21988         attributes for moving the 128-bit logical operations into
21989         rs6000.md.
21990         (BOOL_REGS_OUTPUT): Likewise.
21991         (BOOL_REGS_OP1): Likewise.
21992         (BOOL_REGS_OP2): Likewise.
21993         (BOOL_REGS_UNARY): Likewise.
21994         (BOOL_REGS_AND_CR0): Likewise.
21995         (one_cmpl<mode>2): Add support for DI logical operations on
21996         32-bit, splitting the operations to 32-bit.
21997         (anddi3): Likewise.
21998         (iordi3): Likewise.
21999         (xordi3): Likewise.
22000         (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
22001         changes to combine the 32/64-bit code, allow logical operations on
22002         TI mode in 32-bit, and to use similar match_operator patterns like
22003         scalar mode uses.  Combine the Altivec and VSX code for logical
22004         operations, and move it here.
22005         (ior<mode>3, 128-bit types): Likewise.
22006         (xor<mode>3, 128-bit types): Likewise.
22007         (one_cmpl<mode>3, 128-bit types): Likewise.
22008         (nor<mode>3, 128-bit types): Likewise.
22009         (andc<mode>3, 128-bit types): Likewise.
22010         (eqv<mode>3, 128-bit types): Likewise.
22011         (nand<mode>3, 128-bit types): Likewise.
22012         (orc<mode>3, 128-bit types): Likewise.
22013         (and<mode>3_internal): Likewise.
22014         (bool<mode>3_internal): Likewise.
22015         (boolc<mode>3_internal1): Likewise.
22016         (boolc<mode>3_internal2): Likewise.
22017         (boolcc<mode>3_internal1): Likewise.
22018         (boolcc<mode>3_internal2): Likewise.
22019         (eqv<mode>3_internal1): Likewise.
22020         (eqv<mode>3_internal2): Likewise.
22021         (one_cmpl1<mode>3_internal): Likewise.
22023 2013-07-23  David Holsgrove  <david.holsgrove@xilinx.com>
22025         * config/microblaze/microblaze.c (microblaze_expand_prologue):
22026         Rename flag_stack_usage to flag_stack_usage_info.
22028 2013-07-23  David Holsgrove  <david.holsgrove@xilinx.com>
22030         * config/microblaze/sync.md: New file.
22031         * config/microblaze/microblaze.md: Include sync.md
22032         * config/microblaze/microblaze.c: Add print_operand 'y'.
22033         * config/microblaze/constraints.md: Add memory_contraint
22034         'Q' which is a single register.
22036 2013-07-23  Eric Botcazou  <ebotcazou@adacore.com>
22038         * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
22040 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
22042         * reload.c (find_reloads): Exit loop once we find this operand
22043         cannot be reloaded somehow for this alternative.
22045         * reload.c (find_reloads): Exit loop once we find a hard register.
22047         * rtlanal.c (computed_jump_p): Exit loop once we find label
22048         reference is used.
22050         * i386.c (ix86_pad_returns): Exit loop after setting replace.
22052         * cfgloopmanip.c (remove_path): Exit loop after setting
22053         irred_invalidated.
22055         * gensupport.c (subst_dup): Avoid loop if code is not
22056         MATCH_DUP nor MATCH_OP_DUP.
22058 2013-07-23  Nicklas Bo Jensen  <nbjensen@gmail.com>
22060         * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
22062 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
22064         * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
22065         true for SP_REGNUM if mode == ptr_mode.
22066         * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
22067         with value R0_REGNUM + 31.
22069 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
22071         * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
22072         pad pointer-typed argument downward.
22074 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
22076         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
22077         and __ILP32__ when the ILP32 model is in use.
22079 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
22081         * config/aarch64/aarch64.c (POINTER_BYTES): New define.
22082         (aarch64_load_symref_appropriately): In the case of
22083         SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
22084         to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
22085         (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
22086         change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
22087         if 'mode' doesn't equal to 'ptr_mode'.
22088         (aarch64_output_mi_thunk): Add an assertion on the alignment of
22089         'vcall_offset'; change to call aarch64_emit_move differently depending
22090         on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
22091         to calculate the upper bound of 'vcall_offset'.
22092         (aarch64_cannot_force_const_mem): Change to also return true if
22093         mode != ptr_mode.
22094         (aarch64_legitimize_reload_address): In the case of large
22095         displacements, add new local variable 'xmode' and an assertion
22096         based on it; change to use 'xmode' to generate the new rtx and
22097         reload.
22098         (aarch64_asm_trampoline_template): Change to generate the template
22099         differently depending on TARGET_ILP32 or not; change to use
22100         'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
22101         (aarch64_trampoline_size): Removed.
22102         (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
22103         and replace immediate literals with it.  Change to use 'ptr_mode'
22104         instead of 'DImode' and call convert_memory_address if the mode
22105         of 'fnaddr' doesn't equal to 'ptr_mode'.
22106         (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
22107         to output symbol.
22108         (aarch64_elf_asm_destructor): Likewise.
22109         * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
22110         on TARGET_ILP32 instead of aarch64_trampoline_size.
22111         * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
22112         of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
22113         (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
22114         (loadwb_pair<GPI:mode>_<P:mode>): ... this.  Replace PTR with P.
22115         (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
22116         (storewb_pair<GPI:mode>_<P:mode>): ... this.
22117         (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
22118         depending on the value of 'mode'.
22119         (add_losym_<mode>): New.
22120         (ldr_got_small_<mode>): New, based on ldr_got_small.
22121         (ldr_got_small): Remove.
22122         (ldr_got_small_sidi): New.
22123         * config/aarch64/iterators.md (P): New.
22124         (PTR): Change to 'ptr_mode' in the condition.
22126 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
22128         * config.gcc (aarch64*-*-*): Support --with-abi.
22129         (aarch64*-*-elf): Support --with-multilib-list.
22130         (aarch64*-*-linux*): Likewise.
22131         (supported_defaults): Add abi to aarch64*-*-*.
22132         * configure.ac: Mention AArch64 for --with-multilib-list.
22133         * configure: Re-generated.
22134         * config/aarch64/biarchilp32.h: New file.
22135         * config/aarch64/biarchlp64.h: New file.
22136         * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
22137         (ABI_SPEC): Ditto.
22138         (MULTILIB_DEFAULTS): Ditto.
22139         (DRIVER_SELF_SPECS): Ditto.
22140         (ASM_SPEC): Update to also substitute -mabi.
22141         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
22142         file whose name depends on -mabi= and -mbig-endian.
22143         * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
22144         TARGET_ILP32.
22145         (POINTER_SIZE): New define.
22146         (POINTERS_EXTEND_UNSIGNED): Ditto.
22147         (enum aarch64_abi_type): New enumeration tag.
22148         (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
22149         (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
22150         (TARGET_ILP32): New define.
22151         * config/aarch64/aarch64.opt (mabi): New.
22152         (aarch64_abi): New.
22153         (ilp32, lp64): New values for -mabi.
22154         * config/aarch64/t-aarch64 (comma): New define.
22155         (MULTILIB_OPTIONS): Ditto.
22156         (MULTILIB_DIRNAMES): Ditto.
22157         * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
22158         * doc/invoke.texi: Document -mabi for AArch64.
22160 2013-07-23  Georg-Johann Lay  <avr@gjlay.de>
22162         * config/avr/avr.md: Explain asm print modifier 'r' for REG.
22164 2013-07-22  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
22165             Anton Blanchard  <anton@au1.ibm.com>
22167         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
22168         endianness when selecting field to splat.
22170 2013-07-22  Eric Christopher  <echristo@gmail.com>
22172         * dwarf2out.c (die_odr_checksum): New function to use
22173         CHECKSUM_ macros and ULEB128 for DIE tag.
22174         (generate_type_signature): Use.
22176 2013-07-22  Eric Botcazou  <ebotcazou@adacore.com>
22178         * config.gcc (sparc*-*-*): Accept leon3 processor.
22179         (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
22180         * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
22181         * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
22182         * config/sparc/sparc.opt (enum processor_type): Add leon3.
22183         (mfix-ut699): Adjust comment.
22184         * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
22185         (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
22186         (CPP_CPU_SPEC): Likewise.
22187         (ASM_CPU_SPEC): Likewise.
22188         * config/sparc/sparc.c (leon3_cost): New constant.
22189         (sparc_option_override): Add leon3 support.
22190         (mem_ref): New function.
22191         (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
22192         (sparc_do_work_around_errata): Look into the instruction in the delay
22193         slot and adjust accordingly.  Add fix for the data cache nullify issues
22194         of the UT699.  Change insertion position for the NOP.
22195         * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
22196         (leon3_load): New reservation.
22197         (leon_store): Bump latency to 2.
22198         (grfpu): New automaton.
22199         (grfpu_alu): New unit.
22200         (grfpu_ds): Likewise.
22201         (leon_fp_alu): Adjust.
22202         (leon_fp_mult): Delete.
22203         (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
22204         (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
22205         * config/sparc/sparc.md (cpu): Add leon3.
22206         * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
22207         (swapsi): Likewise.
22208         (atomic_test_and_set): Likewise.
22209         (ldstub): Likewise.
22211 2013-07-22  Jürgen Urban  <JuergenUrban@gmx.de>
22213         * config.gcc (mips*-*-*): Add --with-fpu support.  Make single the
22214         default for R5900 targets.
22215         * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
22216         (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
22217         * config/mips/mips.c (mips_option_override): Report an error for
22218         -march=r5900 -mhard-float -mdouble-float.  Use spu_single_format
22219         for -march=r5900 -mhard-float.
22221 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
22223         * df-problems.c (can_move_insns_across): Exit loop once we
22224         find a non-fixed, non-global register.
22226         * ipa-pure-const.c (propagate_nothrow): Exit loop after
22227         setting can_throw.
22229         * omega.c (omega_eliminate_red): Break after setting red_found.
22230         (omega_problem_has_red_equations): Similarly after setting found.
22231         (omega_query_variable): Similarly after setting coupled.
22233 2013-07-22  Marek Polacek  <polacek@redhat.com>
22235         * gimplify.c: Don't include gimple.h twice.
22237 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22239         * config/arm/constraints.md (Pd): Allow TARGET_THUMB
22240         instead of TARGET_THUMB1.
22241         (Pz): New constraint.
22242         * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
22243         encodings.
22244         (compare_negsi_si): Likewise.
22245         (compare_addsi2_op0): Likewise.
22246         (compare_addsi2_op1): Likewise.
22247         (addsi3_carryin_<optab>): Likewise.
22248         (addsi3_carryin_alt2_<optab>): Likewise.
22249         (addsi3_carryin_shift_<optab>): Disable cond_exec variant
22250         for arm_restrict_it.
22251         (subsi3_carryin): Likewise.
22252         (arm_subsi3_insn): Add alternatives for 16-bit encoding.
22253         (minmax_arithsi): Disable for arm_restrict_it.
22254         (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
22255         (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
22256         (satsi_<SAT:code>_shift): Likewise.
22257         (arm_shiftsi3): Add alternative for 16-bit encoding.
22258         (arm32_movhf): Disable for arm_restrict_it.
22259         (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
22260         (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
22262 2013-07-22  Sofiane Naci  <sofiane.naci@arm.com>
22264         * config/arm/arm.md (attribute "insn"): Delete.
22265         (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
22266         "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
22267         (not_shiftsi): Update for attribute change.
22268         (not_shiftsi_compare0): Likewise.
22269         (not_shiftsi_compare0_scratch): Likewise.
22270         (arm_one_cmplsi2): Likewise.
22271         (thumb1_one_cmplsi2): Likewise.
22272         (notsi_compare0): Likewise.
22273         (notsi_compare0_scratch): Likewise.
22274         (thumb1_movdi_insn): Likewise.
22275         (arm_movsi_insn): Likewise.
22276         (movhi_insn_arch4): Likewise.
22277         (movhi_bytes): Likewise.
22278         (arm_movqi_insn): Likewise.
22279         (thumb1_movqi_insn): Likewise.
22280         (arm32_movhf): Likewise.
22281         (thumb1_movhf): Likewise.
22282         (arm_movsf_soft_insn): Likewise.
22283         (thumb1_movsf_insn): Likewise.
22284         (thumb_movdf_insn): Likewise.
22285         (movsicc_insn): Likewise.
22286         (movsfcc_soft_insn): Likewise.
22287         (and_scc): Likewise.
22288         (cond_move): Likewise.
22289         (if_move_not): Likewise.
22290         (if_not_move): Likewise.
22291         (if_shift_move): Likewise.
22292         (if_move_shift): Likewise.
22293         (if_shift_shift): Likewise.
22294         (if_not_arith): Likewise.
22295         (if_arith_not): Likewise.
22296         (cond_move_not): Likewise.
22297         * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
22298         (neon_mov<mode>): Likewise.
22299         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
22300         (thumb2_movsi_vfp): Likewise.
22301         (movsf_vfp): Likewise.
22302         (thumb2_movsf_vfp): Likewise.
22303         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
22304         change.
22305         (cortexa7_older_only): Likewise.
22306         (cortexa7_younger): Likewise.
22307         * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
22308         (1020alu_shift_op): Likewise.
22309         (1020alu_shift_reg_op): Likewise.
22310         * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
22311         (alu_shift_op): Likewise.
22312         (alu_shift_reg_op): Likewise.
22313         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
22314         (11_alu_shift_op): Likewise.
22315         (11_alu_shift_reg_op): Likewise.
22316         * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
22317         (9_alu_shift_reg_op): Likewise.
22318         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
22319         change.
22320         (cortex_a15_alu_shift): Likewise.
22321         (cortex_a15_alu_shift_reg): Likewise.
22322         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
22323         (cortex_a5_alu_shift): Likewise.
22324         * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
22325         change.
22326         (cortex_a53_alu_shift): Likewise.
22327         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
22328         change.
22329         (cortex_a7_alu_reg): Likewise.
22330         (cortex_a7_alu_shift): Likewise.
22331         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
22332         (cortex_a8_alu_shift): Likewise.
22333         (cortex_a8_alu_shift_reg): Likewise.
22334         (cortex_a8_mov): Likewise.
22335         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
22336         (cortex_a9_dp_shift): Likewise.
22337         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
22338         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
22339         (cortex_r4_mov): Likewise.
22340         (cortex_r4_alu_shift): Likewise.
22341         (cortex_r4_alu_shift_reg): Likewise.
22342         * config/arm/fa526.md (526_alu_op): Update for attribute change.
22343         (526_alu_shift_op): Likewise.
22344         * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
22345         * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
22346         (626te_alu_shift_op): Likewise.
22347         * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
22348         (726te_alu_op): Likewise.
22349         (726te_alu_shift_op): Likewise.
22350         (726te_alu_shift_reg_op): Likewise.
22351         * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
22352         (mp626_alu_shift_op): Likewise.
22353         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
22354         (pj4_alu_e1_conds): Likewise.
22355         (pj4_alu): Likewise.
22356         (pj4_alu_conds): Likewise.
22357         (pj4_shift): Likewise.
22358         (pj4_shift_conds): Likewise.
22359         (pj4_alu_shift): Likewise.
22360         (pj4_alu_shift_conds): Likewise.
22362 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22364         * config/arm/predicates.md (shiftable_operator_strict_it):
22365         New predicate.
22366         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
22367         Disable cond_exec version for arm_restrict_it.
22368         (thumb2_smaxsi3): Convert to generate cond_exec.
22369         (thumb2_sminsi3): Likewise.
22370         (thumb32_umaxsi3): Likewise.
22371         (thumb2_uminsi3): Likewise.
22372         (thumb2_abssi2): Adjust constraints for arm_restrict_it.
22373         (thumb2_neg_abssi2): Likewise.
22374         (thumb2_mov_scc): Add alternative for 16-bit encoding.
22375         (thumb2_movsicc_insn): Adjust alternatives.
22376         (thumb2_mov_negscc): Disable for arm_restrict_it.
22377         (thumb2_mov_negscc_strict_it): New pattern.
22378         (thumb2_mov_notscc_strict_it): New pattern.
22379         (thumb2_mov_notscc): Disable for arm_restrict_it.
22380         (thumb2_ior_scc): Likewise.
22381         (thumb2_ior_scc_strict_it): New pattern.
22382         (thumb2_cond_move): Adjust for arm_restrict_it.
22383         (thumb2_cond_arith): Disable for arm_restrict_it.
22384         (thumb2_cond_arith_strict_it): New pattern.
22385         (thumb2_cond_sub): Adjust for arm_restrict_it.
22386         (thumb2_movcond): Likewise.
22387         (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
22388         (thumb2_zero_extendhisi2_v6): Likewise.
22389         (thumb2_zero_extendqisi2_v6): Likewise.
22390         (orsi_notsi_si): Likewise.
22391         (orsi_not_shiftsi_si): Likewise.
22393 2013-07-22  Georg-Johann Lay  <avr@gjlay.de>
22395         * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
22396         instruction sequence is 1 byte shorter.
22398 2013-07-22  Uros Bizjak  <ubizjak@gmail.com>
22400         * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
22401         it is not needed after split.
22403 2013-07-20  Iain Sandoe  <iain@codesourcery.com>
22405         PR target/51784
22406         * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
22407         second label for nonlocal goto receivers. Don't output pic base labels
22408         unless we're producing PIC; mark that action unreachable().
22409         (ix86_save_reg): If the function contains a nonlocal label, save the
22410         PIC base reg.
22411         * config/darwin-protos.h (machopic_should_output_picbase_label): New.
22412         * config/darwin.c (emitted_pic_label_num): New GTY.
22413         (update_pic_label_number_if_needed): New.
22414         (machopic_output_function_base_name): Adjust for nonlocal receiver
22415         case.
22416         (machopic_should_output_picbase_label): New.
22417         * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
22418         (nonlocal_goto_receiver): New insn and split.
22420 2013-07-20  James Greenhalgh  <james.greenhalgh@arm.com>
22422         * config/aarch64/aarch64-builtins.c
22423         (aarch64_fold_builtin): Fold abs in all modes.
22424         * config/aarch64/aarch64-simd-builtins.def
22425         (abs): Enable for all modes.
22426         * config/aarch64/arm_neon.h
22427         (vabs<q>_s<8,16,32,64): Rewrite using builtins.
22428         (vabs_f64): Add missing intrinsic.
22430 2013-07-19  Ian Bolton  <ian.bolton@arm.com>
22432         * config/aarch64/arm_neon.h (vabs_s64): New function
22434 2013-07-19  Georg-Johann Lay  <avr@gjlay.de>
22436         PR target/57516
22437         * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
22438         * config/avr/avr.md (adjust_len): Add `round'.
22439         * config/avr/avr-protos.h (avr_out_round): New prototype.
22440         (avr_out_plus): Add `out_label' argument.
22441         * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
22442         (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
22443         Handle the case where `insn' is just a pattern.
22444         (avr_out_bitop): Handle the case where `insn' is just a pattern.
22445         (avr_out_round): New function.
22446         (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
22448 2013-07-18  David Holsgrove  <david.holsgrove@xilinx.com>
22450         * config/microblaze/microblaze.c (microblaze_expand_prologue):
22451         Add check for flag_stack_usage to handle -fstack-usage support
22453 2013-07-18  Pat Haugen  <pthaugen@us.ibm.com>
22455         * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
22456         interaction for new Power8 flags and VSX.
22458 2013-07-18  Sriraman Tallam  <tmsriram@google.com>
22460         PR middle-end/57698
22461         * tree-inline.c (expand_call_inline): Emit errors during
22462         early_inlining only if optimization is not turned on.
22464 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
22466         * passes.def: New.
22468         * passes.c (init_optimization_passes): Move the construction of
22469         the pass hierarchy into a new passes.def file.
22471         * Makefile.in (passes.o): Add dependency on passes.def.
22473 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
22475         * passes.c (init_optimization_passes): Introduce macros for
22476         constructing the tree of passes (INSERT_PASSES_AFTER,
22477         PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
22478         TERMINATE_PASS_LIST).
22480 2013-07-18  Vladimir Makarov  <vmakarov@redhat.com>
22481             Wei Mi  <wmi@google.com>
22483         PR rtl-optimization/57878
22484         * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
22485         top.
22486         (reload_pseudo_compare_func): Check nregs first for reload
22487         pseudos.
22489 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
22491         * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
22493 2013-07-18  Po-Chun Chang  <pchang9@cs.wisc.edu>
22495         * read-rtl.c (validate_const_int): Once an invalid character is
22496         seen, quit the loop.
22498         * gengtype.c (write_roots): Similarly once we find the "deletable"
22499         or "if_marked" option.
22501 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
22503         * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
22504         "xtab" and "sat".  Move value "clz" from here to ...
22505         (attriubte "type"): ... here.
22506         (satsi_<SAT:code>): Delete "insn" attribute.
22507         (satsi_<SAT:code>_shift): Likewise.
22508         (arm_zero_extendqisi2addsi): Likewise.
22509         (arm_extendqisi2addsi): Likewise.
22510         (clzsi2): Update for attribute changes.
22511         (rbitsi2): Likewise.
22512         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
22513         attribute.
22514         (arm_usatsihi): Likewise.
22515         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
22517 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
22519         * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
22520         "arlo_imm".  Rename "alu_reg" to "arlo_reg".  Rename "simple_alu_shift"
22521         to "extend".  Split "alu_shift" into "shift" and "arlo_shift".  Split
22522         "alu_shift_reg" into "shift_reg" and "arlo_shift_reg".  List types
22523         in alphabetical order.
22524         (attribute "core_cycles"): Update for attribute changes.
22525         (arm_addsi3): Likewise.
22526         (addsi3_compare0): Likewise.
22527         (addsi3_compare0_scratch): Likewise.
22528         (addsi3_compare_op1): Likewise.
22529         (addsi3_compare_op2): Likewise.
22530         (compare_addsi2_op0): Likewise.
22531         (compare_addsi2_op1): Likewise.
22532         (addsi3_carryin_shift_<optab>): Likewise.
22533         (subsi3_carryin_shift): Likewise.
22534         (rsbsi3_carryin_shift): Likewise.
22535         (arm_subsi3_insn): Likewise.
22536         (subsi3_compare0): Likewise.
22537         (subsi3_compare): Likewise.
22538         (arm_andsi3_insn): Likewise.
22539         (thumb1_andsi3_insn): Likewise.
22540         (andsi3_compare0): Likewise.
22541         (andsi3_compare0_scratch): Likewise.
22542         (zeroextractsi_compare0_scratch
22543         (andsi_not_shiftsi_si): Likewise.
22544         (iorsi3_insn): Likewise.
22545         (iorsi3_compare0): Likewise.
22546         (iorsi3_compare0_scratch): Likewise.
22547         (arm_xorsi3): Likewise.
22548         (thumb1_xorsi3_insn): Likewise.
22549         (xorsi3_compare0): Likewise.
22550         (xorsi3_compare0_scratch): Likewise.
22551         (satsi_<SAT:code>_shift): Likewise.
22552         (rrx): Likewise.
22553         (arm_shiftsi3): Likewise.
22554         (shiftsi3_compare0): Likewise.
22555         (not_shiftsi): Likewise.
22556         (not_shiftsi_compare0): Likewise.
22557         (not_shiftsi_compare0_scratch): Likewise.
22558         (arm_one_cmplsi2): Likewise.
22559         (thumb_one_complsi2): Likewise.
22560         (notsi_compare0): Likewise.
22561         (notsi_compare0_scratch): Likewise.
22562         (thumb1_zero_extendhisi2): Likewise.
22563         (arm_zero_extendhisi2): Likewise.
22564         (arm_zero_extendhisi2_v6): Likewise.
22565         (arm_zero_extendhisi2addsi): Likewise.
22566         (thumb1_zero_extendqisi2): Likewise.
22567         (thumb1_zero_extendqisi2_v6): Likewise.
22568         (arm_zero_extendqisi2): Likewise.
22569         (arm_zero_extendqisi2_v6): Likewise.
22570         (arm_zero_extendqisi2addsi): Likewise.
22571         (thumb1_extendhisi2): Likewise.
22572         (arm_extendhisi2): Likewise.
22573         (arm_extendhisi2_v6): Likewise.
22574         (arm_extendqisi): Likewise.
22575         (arm_extendqisi_v6): Likewise.
22576         (arm_extendqisi2addsi): Likewise.
22577         (thumb1_extendqisi2): Likewise.
22578         (thumb1_movdi_insn): Likewise.
22579         (arm_movsi_insn): Likewise.
22580         (movsi_compare0): Likewise.
22581         (movhi_insn_arch4): Likewise.
22582         (movhi_bytes): Likewise.
22583         (arm_movqi_insn): Likewise.
22584         (thumb1_movqi_insn): Likewise.
22585         (arm32_movhf): Likewise.
22586         (thumb1_movhf): Likewise.
22587         (arm_movsf_soft_insn): Likewise.
22588         (thumb1_movsf_insn): Likewise.
22589         (movdf_soft_insn): Likewise.
22590         (thumb_movdf_insn): Likewise.
22591         (arm_cmpsi_insn): Likewise.
22592         (cmpsi_shiftsi): Likewise.
22593         (cmpsi_shiftsi_swp): Likewise.
22594         (arm_cmpsi_negshiftsi_si): Likewise.
22595         (movsicc_insn): Likewise.
22596         (movsfcc_soft_insn): Likewise.
22597         (arith_shiftsi): Likewise.
22598         (arith_shiftsi_compare0
22599         (arith_shiftsi_compare0_scratch
22600         (sub_shiftsi): Likewise.
22601         (sub_shiftsi_compare0
22602         (sub_shiftsi_compare0_scratch
22603         (and_scc): Likewise.
22604         (cond_move): Likewise.
22605         (if_plus_move): Likewise.
22606         (if_move_plus): Likewise.
22607         (if_move_not): Likewise.
22608         (if_not_move): Likewise.
22609         (if_shift_move): Likewise.
22610         (if_move_shift): Likewise.
22611         (if_shift_shift): Likewise.
22612         (if_not_arith): Likewise.
22613         (if_arith_not): Likewise.
22614         (cond_move_not): Likewise.
22615         (thumb1_ashlsi3): Set type attribute.
22616         (thumb1_ashrsi3): Likewise.
22617         (thumb1_lshrsi3): Likewise.
22618         (thumb1_rotrsi3): Likewise.
22619         (shiftsi3_compare0_scratch): Likewise.
22620         * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
22621         (neon_mov<mode>): Likewise.
22622         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
22623         attribute changes.
22624         (thumb2_movsi_insn): Likewise.
22625         (thumb2_cmpsi_neg_shiftsi): Likewise.
22626         (thumb2_extendqisi_v6): Likewise.
22627         (thumb2_zero_extendhisi2_v6): Likewise.
22628         (thumb2_zero_extendqisi2_v6): Likewise.
22629         (thumb2_shiftsi3_short): Likewise.
22630         (thumb2_addsi3_compare0_scratch): Likewise.
22631         (orsi_not_shiftsi_si): Likewise.
22632         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
22633         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
22634         changes.
22635         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
22636         (1020alu_shift_op): Likewise.
22637         (1020alu_shift_reg_op): Likewise.
22638         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
22639         (alu_shift_op): Likewise.
22640         (alu_shift_reg_op): Likewise.
22641         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
22642         (11_alu_shift_op): Likewise.
22643         (11_alu_shift_reg_op): Likewise.
22644         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
22645         (9_alu_shift_reg_op): Likewise.
22646         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
22647         changes.
22648         (cortex_a15_alu_shift): Likewise.
22649         (cortex_a15_alu_shift_reg): Likewise.
22650         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
22651         changes.
22652         (cortex_a5_alu_shift): Likewise.
22653         * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
22654         changes.
22655         (cortex_a53_alu_shift): Likewise.
22656         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
22657         changes.
22658         (cortex_a7_alu_reg): Likewise.
22659         (cortex_a7_alu_shift): Likewise.
22660         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
22661         changes.
22662         (cortex_a8_alu_shift): Likewise.
22663         (cortex_a8_alu_shift_reg): Likewise.
22664         (cortex_a8_mov): Likewise.
22665         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
22666         (cortex_a9_dp_shift): Likewise.
22667         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
22668         changes.
22669         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
22670         changes.
22671         (cortex_r4_mov): Likewise.
22672         (cortex_r4_alu_shift): Likewise.
22673         (cortex_r4_alu_shift_reg): Likewise.
22674         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
22675         (526_alu_shift_op): Likewise.
22676         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
22677         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
22678         (626te_alu_shift_op): Likewise.
22679         * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
22680         (726te_alu_op): Likewise.
22681         (726te_alu_shift_op): Likewise.
22682         (726te_alu_shift_reg_op): Likewise.
22683         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
22684         (mp626_alu_shift_op): Likewise.
22685         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
22686         (pj4_alu_e1_conds): Likewise.
22687         (pj4_alu): Likewise.
22688         (pj4_alu_conds): Likewise.
22689         (pj4_shift): Likewise.
22690         (pj4_shift_conds): Likewise.
22691         (pj4_alu_shift): Likewise.
22692         (pj4_alu_shift_conds): Likewise.
22693         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
22694         changes.
22695         (cortexa7_older_only): Likewise.
22696         (cortexa7_younger): Likewise.
22698 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
22700         * ipa-pure-const.c (generate_summary): Rename to...
22701         (pure_const_generate_summary): ... this.
22703 2013-07-17  Iain Sandoe  <iain@codesourcery.com>
22705         * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
22707 2013-07-17  Yvan Roux  <yvan.roux@linaro.org>
22709         PR target/57909
22710         * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
22711         usage in HI mode.
22713 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22715         * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
22716         enabled without -march=zEC12.
22717         * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
22718         flags to be set.
22720 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
22722         * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
22723         (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
22724         (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
22725         terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
22726         (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
22727         * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
22728         ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
22729         ISA_HAS_FP4.
22730         <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
22731         and ISA_HAS_NMADD3_NMSUB3.
22732         * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
22733         (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
22734         (nmsub4<mode>, nmsub3<mode>): Likewise.
22735         (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
22737 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
22739         * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
22740         TARGET_MIPS5400 checking.
22742 2013-07-16  Jakub Jelinek  <jakub@redhat.com>
22743             Peter Bergner  <bergner@vnet.ibm.com>
22745         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
22746         registers in the comment.
22747         (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
22748         (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
22749         rather than FIRST_PSEUDO_REGISTERS.
22751 2013-07-16  Peter Bergner  <bergner@vnet.ibm.com>
22753         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
22754         enable extra ISA flags with TARGET_HTM.
22756 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
22758         * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
22759         Fix comment typos.
22761 2013-07-15  Cong Hou  <congh@google.com>
22763         * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
22764         in compare function for sorting.
22766 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
22768         * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
22769         * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
22770         * config/rs6000/rs6000.opt: Add -mhtm option.
22771         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
22772         (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
22773         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
22774         __HTM__ if the HTM instructions are available.
22775         * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
22776         htm_spr_reg_operand): New define_predicates.
22777         * config/rs6000/rs6000.md (define_attr "type"): Add htm.
22778         (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
22779         Include htm.md.
22780         * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
22781         BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
22782         HTM builtin functions.
22783         * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
22784         (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
22785         (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
22786         (rs6000_builtin_mask_calculate): Likewise.
22787         (rs6000_option_override_internal): Likewise.
22788         (bdesc_htm): Add new HTM builtin support.
22789         (htm_spr_num): New function.
22790         (htm_spr_regno): Likewise.
22791         (rs6000_htm_spr_icode): Likewise.
22792         (htm_expand_builtin): Likewise.
22793         (htm_init_builtins): Likewise.
22794         (rs6000_expand_builtin): Add support for HTM builtin functions.
22795         (rs6000_init_builtins): Likewise.
22796         (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
22797         option.
22798         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
22799         (TARGET_HTM, MASK_HTM): Define macros.
22800         (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
22801         (FIXED_REGISTERS): Likewise.
22802         (CALL_USED_REGISTERS): Likewise.
22803         (CALL_REALLY_USED_REGISTERS): Likewise.
22804         (REG_ALLOC_ORDER): Likewise.
22805         (enum reg_class): Likewise.
22806         (REG_CLASS_NAMES): Likewise.
22807         (REG_CLASS_CONTENTS): Likewise.
22808         (REGISTER_NAMES): Likewise.
22809         (ADDITIONAL_REGISTER_NAMES): Likewise.
22810         (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
22811         RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
22812         (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
22813         * config/rs6000/htm.md: New file.
22814         * config/rs6000/htmintrin.h: New file.
22815         * config/rs6000/htmxlintrin.h: New file.
22817 2013-07-15  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22819         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
22820         Define SYMBOL_TINY_GOT, update comment.
22821         * config/aarch64/aarch64.c
22822         (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
22823         (aarch64_expand_mov_immediate): Likewise.
22824         (aarch64_print_operand): Likewise.
22825         (aarch64_classify_symbol): Likewise.
22826         * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
22827         (ldr_got_tiny): Define.
22829 2013-07-13  Tobias Grosser  <tobias@grosser.es>
22831         PR tree-optimization/54094
22832         * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
22833           scheduling dimension for the parallelism check from the polyhedral
22834           information in the AST.
22835         * graphite-dependences.c (carries_deps): Do not assume the schedule is
22836           in 2D + 1 form.
22838 2013-07-13  Jason Merrill  <jason@redhat.com>
22840         * print-tree.c (debug_vec_tree): Use debug_raw.
22841         (debug_raw (vec<tree, va_gc> &)): New.
22842         (debug_raw (vec<tree, va_gc> *)): New.
22843         * tree.h: Declare them.
22845 2013-07-13  Bin Cheng  <bin.cheng@arm.com>
22847         * ifcvt.c (ifcvt_after_combine): New static variable.
22848         (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
22849         for size.
22850         (if_convert): New parameter after_combine.  Set ifcvt_after_combine.
22851         (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
22852         rest_of_handle_if_after_reload): Pass new argument for if_convert.
22854 2013-07-12  Maciej W. Rozycki  <macro@codesourcery.com>
22856         * config/mips/mips.c (mips_expand_call): Remove empty statement.
22858 2013-07-12  Michael Matz  <matz@suse.de>
22860         PR middle-end/55771
22861         * convert.c (convert_to_real): Reject non-float inner types.
22863 2013-07-12  Tejas Belagod  <tejas.belagod@arm.com>
22865         * config/aarch64/aarch64-protos.h
22866         (aarch64_simd_immediate_valid_for_move): Remove.
22867         * config/aarch64/aarch64.c (simd_immediate_info): New member.
22868         (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
22869         cases.
22870         (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
22872 2013-07-11  Steve Ellcey  <sellcey@mips.com>
22874         * config/mips/mips.c (mips_conditional_register_usage): Do not
22875         use t[0-7] registers in MIPS16 mode when optimizing for size.
22877 2013-07-11  Sriraman Tallam  <tmsriram@google.com>
22879         * config/i386/i386.c (dispatch_function_versions): Fix array
22880         indexing of function_version_info to match actual_versions.
22882 2013-07-11  Teresa Johnson  <tejohnson@google.com>
22884         * vec.h (struct va_gc): Move release out-of-line.
22885         (va_gc::release): Call ggc_free on released vec.
22887 2013-07-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22889         * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
22890         Require GOT register as additional operand in UNSPEC.
22891         ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
22892         ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
22893         ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
22894         ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
22895         ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
22896         ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
22897         ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
22899 2013-07-11  Georg-Johann Lay  <avr@gjlay.de>
22901         PR target/57631
22902         * config/avr/avr.c (avr_set_current_function): Sanity-check signal
22903         name seen by assembler/linker rather if available.
22905 2013-07-11  Andreas Schwab  <schwab@suse.de>
22907         * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
22909 2013-07-10  Vladimir Makarov  <vmakarov@redhat.com>
22911         * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
22913 2013-07-10  Joseph Myers  <joseph@codesourcery.com>
22915         * doc/tm.texi.in: Move hook documentation to ....
22916         * target.def: ... here.
22918         * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
22919         text on @hook line.
22920         * doc/tm.texi: Regenerate.
22922 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
22924         PR c++/57869
22925         * doc/invoke.texi: Document -Wconditionally-supported.
22927 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
22929         PR target/57844
22930         * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
22931         of my_fp.
22933 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
22935         PR target/57506
22936         * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
22937         (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
22938         (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
22939         Remove duplicate devices.
22940         * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
22941         * config/avr/t-multilib: Regenerate.
22942         * config/avr/avr-tables.opt: Regenerate.
22943         * doc/avr-mmcu.texi: Regenerate.
22945 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
22947         PR target/56987
22948         * config/avr/avr.opt (Waddr-space-convert): Fix typo.
22950 2013-07-10  Graham Stott  <graham.stott@btinternet.com>
22952         * config/mips/mips.c (mips_rtx_costs): Very slightly increase
22953         the cost of MULT when optimizing for size.
22955 2013-07-10  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
22957         * config/cr16/cr16-protos.h: Don't include target.h.
22959 2013-07-09  Joseph Myers  <joseph@codesourcery.com>
22961         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
22962         adjust register size for TDmode and TFmode for VSX registers.
22964 2013-07-08  Kai Tietz  <ktietz@redhat.com>
22966         PR target/56892
22967         * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
22968         hook_bool_const_tree_true.
22970 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22972         * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
22973         * config/s390/s390.h: Remove F*_REGNUM macro definitions.
22974         * config/s390/s390.md: Define FPR*_REGNUM constants.
22975         Fix FPR2_REGNUM constant (18 -> 17).
22976         ("*trunc<BFP:mode><DFP_ALL:mode>2")
22977         ("*trunc<DFP_ALL:mode><BFP:mode>2")
22978         ("trunc<BFP:mode><DFP_ALL:mode>2")
22979         ("trunc<DFP_ALL:mode><BFP:mode>2")
22980         ("*extend<BFP:mode><DFP_ALL:mode>2")
22981         ("*extend<DFP_ALL:mode><BFP:mode>2")
22982         ("extend<BFP:mode><DFP_ALL:mode>2")
22983         ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
22984         FPR4_REGNUM.
22986 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
22988         * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
22990 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22992         * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
22993         and cfun_fpr_bit_p to cfun_fpr_save_p.
22994         (s390_frame_area, s390_register_info, s390_frame_info)
22995         (s390_emit_prologue, s390_emit_epilogue)
22996         (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
22997         register numbers.
22998         * config/s390/s390.h: Define *_REGNUM macros for floating point
22999         register numbers.
23001 2013-07-08  Eric Botcazou  <ebotcazou@adacore.com>
23003         * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
23005 2013-07-08  Po-Chun Chang  <pchang9@cs.wisc.edu>
23007         PR rtl-optimization/57786
23008         * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
23009         and break out of the loop when it is set to false.
23011 2013-07-08  Jakub Jelinek  <jakub@redhat.com>
23013         PR target/57819
23014         * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
23015         Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
23016         (const_int 63)) 0)).
23017         * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
23018         using simplify_gen_unary instead of gen_rtx_*_EXTEND.
23019         * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
23021         PR rtl-optimization/57829
23022         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
23023         mask bits outside of mode are just sign-extension from mode to HWI.
23025 2013-07-08  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
23027         * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
23028         * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
23029         adjust_address instead of change_address to keep info about alignment.
23030         (emit_strmov): Remove.
23031         (emit_memmov): New function.
23032         (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
23033         (expand_movmem_epilogue): Likewise and return updated rtx for
23034         destination.
23035         (expand_constant_movmem_prologue): Likewise and return updated rtx for
23036         destination and source.
23037         (decide_alignment): Refactor, handle vector_loop.
23038         (ix86_expand_movmem): Likewise.
23039         (ix86_expand_setmem): Likewise.
23040         * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
23042 2013-07-07  Uros Bizjak  <ubizjak@gmail.com>
23044         * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
23045         signature_TM2_ebx, it interferes with signature_INTEL_ebx.
23047 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
23049         * config/i386/sse.md (sse_movlhps): Change alternative 3
23050         of operand 2 to "m".
23052 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
23054         PR target/57807
23055         * config/i386/sse.md (iptr): New mode attribute.
23056         (sse2_movq128): Add pointer size overrides for Intel asm dialect.
23057         (<sse>_vm<plusminus_insn><mode>3): Ditto.
23058         (<sse>_vmmul<mode>3): Ditto.
23059         (<sse>_vmdiv<mode>3): Ditto.
23060         (sse_vmrcpv4sf2): Ditto.
23061         (<sse>_vmsqrt<mode>2): Ditto.
23062         (sse_vmrsqrtv4sf2): Ditto.
23063         (<sse>_vm<code><mode>3): Ditto.
23064         (avx_vmcmp<mode>3): Ditto.
23065         (<sse>_vmmaskcmp<mode>3): Ditto.
23066         (<sse>_comi): Ditto.
23067         (<sse>_ucomi): Ditto.
23068         (*xop_vmfrcz_<mode>): Ditto.
23069         (*fmai_fmadd_<mode>): Ditto.
23070         (*fmai_fmsub_<mode>): Ditto.
23071         (*fmai_fnmadd_<mode>): Ditto.
23072         (*fmai_fnmsub_<mode>): Ditto.
23073         (*fma4i_vmfmadd_<mode>): Ditto.
23074         (*fma4i_vmfmsub_<mode>): Ditto.
23075         (*fma4i_vmfnmadd_<mode>): Ditto.
23076         (*fma4i_vmfnmsub_<mode>): Ditto.
23077         (*xop_vmfrcz_<mode>): Ditto.
23078         (sse_cvtps2pi): Ditto.
23079         (sse_cvttps2pi): Ditto.
23080         (sse_cvtss2si): Ditto.
23081         (sse_cvtss2si_2): Ditto.
23082         (sse_cvtss2siq_2): Ditto.
23083         (sse_cvttss2si): Ditto.
23084         (sse_cvttss2siq): Ditto.
23085         (sse_cvtsd2si): Ditto.
23086         (sse_cvtsd2si_2): Ditto.
23087         (sse_cvtsd2siq_2): Ditto.
23088         (sse_cvttsd2si): Ditto.
23089         (sse_cvttsd2siq): Ditto.
23090         (sse_cvtsd2ss): Ditto.
23091         (sse_cvtss2sd): Ditto.
23092         (avx2_pbroadcast<mode>): Ditto.
23093         (avx2_pbroadcast<mode>_1): Ditto.
23094         (*avx_vperm_broadcast_v4sf): Ditto.
23096         (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
23097         (sse_movlhps): Ditto.
23098         (sse_storehps): Ditto.
23099         (sse_loadhps): Ditto.
23100         (sse_storelps): Ditto.
23101         (sse_loadlps): Ditto.
23102         (*vec_concatv4sf): Ditto.
23103         (*vec_interleave_highv2df): Ditto.
23104         (*vec_interleave_lowv2df): Ditto.
23105         (*vec_extractv2df_1_sse): Ditto.
23106         (*vec_extractv2df_0_sse): Ditto.
23107         (sse2_storelpd): Ditto.
23108         (sse2_loadlpd): Ditto.
23109         (sse2_movsd): Ditto.
23110         (*vec_concatv4si): Ditto.
23111         (vec_concatv2di): Ditto.
23113         * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
23114         for Intel asm dialect.
23115         (mmx_punpcklwd): Ditto.
23116         (mmx_punpckldq): Ditto.
23118         * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
23119         for intel assembler dialect.
23121 2013-07-06  Jakub Jelinek  <jakub@redhat.com>
23123         PR target/29776
23124         * fold-const.c (tree_call_nonnegative_warnv_p): Return true
23125         for BUILT_IN_C{LZ,LRSB}*.
23126         * tree.h (CASE_INT_FN): Add FN##IMAX case.
23127         * tree-vrp.c (extract_range_basic): Handle
23128         BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*.  For
23129         BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
23130         fall thru to code calling set_value*.
23131         * builtins.c (expand_builtin): Remove *IMAX cases.
23132         (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
23133         if width is bigger than 2*HWI.
23135 2013-07-05  Vladimir Makarov  <vmakarov@redhat.com>
23137         PR rtl-optimization/55342
23138         * lra-int.h (lra_subreg_reload_pseudos): New.
23139         * lra.c: Add undoing optional reloads to the block diagram.
23140         (lra_subreg_reload_pseudos): New.
23141         (lra_optional_reload_pseudos): Change comments.
23142         (lra): Init and clear lra_subreg_reload_pseudos.  Clear
23143         lra_optional_reload_pseudos after undo transformations.
23144         * lra-assigns.c (pseudo_prefix_title): New.
23145         (lra_setup_reg_renumber): Use it.
23146         (spill_for): Ditto.  Check subreg reload pseudos too.
23147         (assign_by_spills): Consider subreg reload pseudos too.
23148         * lra-constraints.c (simplify_operand_subreg): Use
23149         lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
23150         (curr_insn_transform): Recognize and do optional reloads.
23151         (undo_optional_reloads): New.
23152         (lra_undo_inheritance): Call undo_optional_reloads.
23154 2013-07-05  Thomas Quinot  <quinot@adacore.com>
23156         * tree-complex.c (expand_complex_operations_1): Fix typo.
23158 2013-07-04  Tejas Belagod  <tejas.belagod@arm.com>
23160         * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
23161         (tune_params): New member 'const vec_costs'.
23162         * config/aarch64/aarch64.c (generic_vector_cost): New.
23163         (generic_tunings): New member 'generic_vector_cost'.
23164         (aarch64_builtin_vectorization_cost): New.
23165         (aarch64_add_stmt_cost): New.
23166         (TARGET_VECTORIZE_ADD_STMT_COST): New.
23167         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
23169 2013-07-03  Jakub Jelinek  <jakub@redhat.com>
23171         PR target/57777
23172         * config/i386/predicates.md (vsib_address_operand): Disallow
23173         SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
23175 2013-07-03  Hans-Peter Nilsson  <hp@bitrange.com>
23177         PR middle-end/55030
23178         * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
23179         expand_builtin_setjmp_receiver.
23180         (expand_label): Adjust, call expand_builtin_setjmp_receiver
23181         with NULL for the label parameter.
23182         * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
23183         the frame-pointer.  Adjust comments.
23184         [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
23185         only if LABEL is non-NULL.
23187 2013-07-03  Yufeng Zhang  <yufeng.zhang@arm.com>
23189         * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
23190         (ARM_ABI_AAPCS64): Ditto.
23191         (arm_abi): Ditto.
23192         (ARM_DEFAULT_ABI): Ditto.
23194 2013-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
23196         * config/aarch64/aarch64-builtins.c
23197         (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
23198         * config/aarch64/aarch64-simd-builtins.def (ld1): New.
23199         (st1): Likewise.
23200         * config/aarch64/aarch64-simd.md
23201         (aarch64_ld1<VALL:mode>): New.
23202         (aarch64_st1<VALL:mode>): Likewise.
23203         * config/aarch64/arm_neon.h
23204         (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
23206 2013-07-02  Sriraman Tallam  <tmsriram@google.com>
23208         * config/i386/i386.c (gate_insert_vzeroupper): Check if
23209         target ISA is AVX.
23210         (ix86_option_override_internal):Turn on all -mavx target flags by
23211         default as they are dependent on AVX anyway.
23213 2013-07-02  Cary Coutant  <ccoutant@google.com>
23215         * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
23216         deterministic hash.
23217         (loc_checksum_ordered): Likewise.
23218         (hash_loc_operands): Remove inline keyword.
23220 2013-07-02  Jakub Jelinek  <jakub@redhat.com>
23222         PR tree-optimization/57741
23223         * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
23224         non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
23225         or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
23226         Allow REAL_CST step_exprs if flag_associative_math.
23227         (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
23229 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
23231         * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
23233 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
23235         * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
23237 2013-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23239         * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
23240         encoding.
23241         (iorsi3_insn): Likewise.
23242         (arm_xorsi3): Likewise.
23244 2013-07-01  Sofiane Naci  <sofiane.naci@arm.com>
23246         * arm.md (attribute "wtype"): Delete.  Move attribute values from here
23247         to ...
23248         (attribute "type"): ... here, and prefix with "wmmx_".
23249         (attribute "core_cycles"): Update for attribute changes.
23250         * iwmmxt.md (tbcstv8qi): Update for attribute changes.
23251         (tbcstv4hi): Likewise.
23252         (tbcstv2si): Likewise.
23253         (iwmmxt_iordi3): Likewise.
23254         (iwmmxt_xordi3): Likewise.
23255         (iwmmxt_anddi3): Likewise.
23256         (iwmmxt_nanddi3): Likewise.
23257         (iwmmxt_arm_movdi): Likewise.
23258         (iwmmxt_movsi_insn): Likewise.
23259         (mov<mode>_internal): Likewise.
23260         (and<mode>3_iwmmxt): Likewise.
23261         (ior<mode>3_iwmmxt): Likewise.
23262         (xor<mode>3_iwmmxt): Likewise.
23263         (add<mode>3_iwmmxt): Likewise.
23264         (ssaddv8qi3): Likewise.
23265         (ssaddv4hi3): Likewise.
23266         (ssaddv2si3): Likewise.
23267         (usaddv8qi3): Likewise.
23268         (usaddv4hi3): Likewise.
23269         (usaddv2si3): Likewise.
23270         (sub<mode>3_iwmmxt): Likewise.
23271         (sssubv8qi3): Likewise.
23272         (sssubv4hi3): Likewise.
23273         (sssubv2si3): Likewise.
23274         (ussubv8qi3): Likewise.
23275         (ussubv4hi3): Likewise.
23276         (ussubv2si3): Likewise.
23277         (mulv4hi3_iwmmxt): Likewise.
23278         (smulv4hi3_highpart): Likewise.
23279         (umulv4hi3_highpart): Likewise.
23280         (iwmmxt_wmacs): Likewise.
23281         (iwmmxt_wmacsz): Likewise.
23282         (iwmmxt_wmacu): Likewise.
23283         (iwmmxt_wmacuz): Likewise.
23284         (iwmmxt_clrdi): Likewise.
23285         (iwmmxt_clrv8qi): Likewise.
23286         (iwmmxt_clr4hi): Likewise.
23287         (iwmmxt_clr2si): Likewise.
23288         (iwmmxt_uavgrndv8qi3): Likewise.
23289         (iwmmxt_uavgrndv4hi3): Likewise.
23290         (iwmmxt_uavgv8qi3): Likewise.
23291         (iwmmxt_uavgv4hi3): Likewise.
23292         (iwmmxt_tinsrb): Likewise.
23293         (iwmmxt_tinsrh): Likewise.
23294         (iwmmxt_tinsrw): Likewise.
23295         (iwmmxt_textrmub): Likewise.
23296         (iwmmxt_textrmsb): Likewise.
23297         (iwmmxt_textrmuh): Likewise.
23298         (iwmmxt_textrmsh): Likewise.
23299         (iwmmxt_textrmw): Likewise.
23300         (iwmxxt_wshufh): Likewise.
23301         (eqv8qi3): Likewise.
23302         (eqv4hi3): Likewise.
23303         (eqv2si3): Likewise.
23304         (gtuv8qi3): Likewise.
23305         (gtuv4hi3): Likewise.
23306         (gtuv2si3): Likewise.
23307         (gtv8qi3): Likewise.
23308         (gtv4hi3): Likewise.
23309         (gtv2si3): Likewise.
23310         (smax<mode>3_iwmmxt): Likewise.
23311         (umax<mode>3_iwmmxt): Likewise.
23312         (smin<mode>3_iwmmxt): Likewise.
23313         (umin<mode>3_iwmmxt): Likewise.
23314         (iwmmxt_wpackhss): Likewise.
23315         (iwmmxt_wpackwss): Likewise.
23316         (iwmmxt_wpackdss): Likewise.
23317         (iwmmxt_wpackhus): Likewise.
23318         (iwmmxt_wpackwus): Likewise.
23319         (iwmmxt_wpackdus): Likewise.
23320         (iwmmxt_wunpckihb): Likewise.
23321         (iwmmxt_wunpckihh): Likewise.
23322         (iwmmxt_wunpckihw): Likewise.
23323         (iwmmxt_wunpckilb): Likewise.
23324         (iwmmxt_wunpckilh): Likewise.
23325         (iwmmxt_wunpckilw): Likewise.
23326         (iwmmxt_wunpckehub): Likewise.
23327         (iwmmxt_wunpckehuh): Likewise.
23328         (iwmmxt_wunpckehuw): Likewise.
23329         (iwmmxt_wunpckehsb): Likewise.
23330         (iwmmxt_wunpckehsh): Likewise.
23331         (iwmmxt_wunpckehsw): Likewise.
23332         (iwmmxt_wunpckelub): Likewise.
23333         (iwmmxt_wunpckeluh): Likewise.
23334         (iwmmxt_wunpckeluw): Likewise.
23335         (iwmmxt_wunpckelsb): Likewise.
23336         (iwmmxt_wunpckelsh): Likewise.
23337         (iwmmxt_wunpckelsw): Likewise.
23338         (ror<mode>3): Likewise.
23339         (ashr<mode>3_iwmmxt): Likewise.
23340         (lshr<mode>3_iwmmxt): Likewise.
23341         (ashl<mode>3_iwmmxt): Likewise.
23342         (ror<mode>3_di): Likewise.
23343         (ashr<mode>3_di): Likewise.
23344         (lshr<mode>3_di): Likewise.
23345         (ashl<mode>3_di): Likewise.
23346         (iwmmxt_wmadds): Likewise.
23347         (iwmmxt_wmaddu): Likewise.
23348         (iwmmxt_tmia): Likewise.
23349         (iwmmxt_tmiaph): Likewise.
23350         (iwmmxt_tmiabb): Likewise.
23351         (iwmmxt_tmiatb): Likewise.
23352         (iwmmxt_tmiabt): Likewise.
23353         (iwmmxt_tmiatt): Likewise.
23354         (iwmmxt_tmovmskb): Likewise.
23355         (iwmmxt_tmovmskh): Likewise.
23356         (iwmmxt_tmovmskw): Likewise.
23357         (iwmmxt_waccb): Likewise.
23358         (iwmmxt_wacch): Likewise.
23359         (iwmmxt_waccw): Likewise.
23360         (iwmmxt_waligni): Likewise.
23361         (iwmmxt_walignr): Likewise.
23362         (iwmmxt_walignr0): Likewise.
23363         (iwmmxt_walignr1): Likewise.
23364         (iwmmxt_walignr2): Likewise.
23365         (iwmmxt_walignr3): Likewise.
23366         (iwmmxt_wsadb): Likewise.
23367         (iwmmxt_wsadh): Likewise.
23368         (iwmmxt_wsadbz): Likewise.
23369         (iwmmxt_wsadhz): Likewise.
23370         * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
23371         (iwmmxt_wabsdiffb): Likewise.
23372         (iwmmxt_wabsdiffh): Likewise.
23373         (iwmmxt_wabsdiffw): Likewise.
23374         (iwmmxt_waddsubhx): Likewise
23375         (iwmmxt_wsubaddhx): Likewise.
23376         (addc<mode>3): Likewise.
23377         (iwmmxt_avg4): Likewise.
23378         (iwmmxt_avg4r): Likewise.
23379         (iwmmxt_wmaddsx): Likewise.
23380         (iwmmxt_wmaddux): Likewise.
23381         (iwmmxt_wmaddsn): Likewise.
23382         (iwmmxt_wmaddun): Likewise.
23383         (iwmmxt_wmulwsm): Likewise.
23384         (iwmmxt_wmulwum): Likewise.
23385         (iwmmxt_wmulsmr): Likewise.
23386         (iwmmxt_wmulumr): Likewise.
23387         (iwmmxt_wmulwsmr): Likewise.
23388         (iwmmxt_wmulwumr): Likewise.
23389         (iwmmxt_wmulwl): Likewise.
23390         (iwmmxt_wqmulm): Likewise.
23391         (iwmmxt_wqmulwm): Likewise.
23392         (iwmmxt_wqmulmr): Likewise.
23393         (iwmmxt_wqmulwmr): Likewise.
23394         (iwmmxt_waddbhusm): Likewise.
23395         (iwmmxt_waddbhusl): Likewise.
23396         (iwmmxt_wqmiabb): Likewise.
23397         (iwmmxt_wqmiabt): Likewise.
23398         (iwmmxt_wqmiatb): Likewise.
23399         (iwmmxt_wqmiatt): Likewise.
23400         (iwmmxt_wqmiabbn): Likewise.
23401         (iwmmxt_wqmiabtn): Likewise.
23402         (iwmmxt_wqmiatbn): Likewise.
23403         (iwmmxt_wqmiattn): Likewise.
23404         (iwmmxt_wmiabb): Likewise.
23405         (iwmmxt_wmiabt): Likewise.
23406         (iwmmxt_wmiatb): Likewise.
23407         (iwmmxt_wmiatt): Likewise.
23408         (iwmmxt_wmiabbn): Likewise.
23409         (iwmmxt_wmiabtn): Likewise.
23410         (iwmmxt_wmiatbn): Likewise.
23411         (iwmmxt_wmiattn): Likewise.
23412         (iwmmxt_wmiawbb): Likewise.
23413         (iwmmxt_wmiawbt): Likewise.
23414         (iwmmxt_wmiawtb): Likewise.
23415         (iwmmxt_wmiawtt): Likewise.
23416         (iwmmxt_wmiawbbn): Likewise.
23417         (iwmmxt_wmiawbtn): Likewise.
23418         (iwmmxt_wmiawtbn): Likewise.
23419         (iwmmxt_wmiawttn): Likewise.
23420         (iwmmxt_wmerge): Likewise.
23421         (iwmmxt_tandc<mode>3): Likewise.
23422         (iwmmxt_torc<mode>3): Likewise.
23423         (iwmmxt_torvsc<mode>3): Likewise.
23424         (iwmmxt_textrc<mode>3): Likewise.
23425         * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
23426         (wmmxt_pack): Likewise.
23427         (wmmxt_mult_c1): Likewise.
23428         (wmmxt_mult_c2): Likewise.
23429         (wmmxt_alu_c1): Likewise.
23430         (wmmxt_alu_c2): Likewise.
23431         (wmmxt_alu_c3): Likewise.
23432         (wmmxt_transfer_c1): Likewise.
23433         (wmmxt_transfer_c2): Likewise.
23434         (wmmxt_transfer_c3): Likewise.
23435         (marvell_f_iwmmxt_wstr): Likewise.
23436         (marvell_f_iwmmxt_wldr): Likewise.
23438 2013-06-29  Yufeng Zhang  <yufeng.zhang@arm.com>
23440         * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
23442 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
23444         Revert:
23445         2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
23446         * lra-constraints.c (need_for_split_p): Check call used hard regs
23447         living through calls.
23449         * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
23450         call used regs for call insn.
23452 2013-06-28  Jakub Jelinek  <jakub@redhat.com>
23454         PR target/57736
23455         * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
23456         mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
23458 2013-06-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
23460         * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
23462 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
23464         * lra-constraints.c (need_for_split_p): Check call used hard regs
23465         living through calls.
23467 2013-06-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
23469         PR target/57744
23470         * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
23471         to tie with any other modes.  Eliminate Altivec vector mode tests,
23472         since these are a subset of ALTIVEC or VSX vector modes.  Simplify
23473         code, to return 0 if testing MODE2 for a condition, if we've
23474         already tested MODE1 for the same condition.
23476 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
23478         * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
23479         layout.
23481 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
23483         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
23484         Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
23486 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
23488         * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
23489         Define.
23490         (aarch64_symbolic_constant_p): Remove.
23491         * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
23492         static.  Fix line length and white space.
23493         (aarch64_symbolic_constant_p): Remove.
23494         * config/aarch64/predicates.md (aarch64_valid_symref):
23495         Use aarch64_classify_symbol_expression.
23497 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23499         * config/arm/constraints.md (Ts): New constraint.
23500         * config/arm/arm.md (arm_movqi_insn): Add alternatives for
23501         16-bit encodings.
23502         (compare_scc): Use "Ts" constraint for operand 0.
23503         (ior_scc_scc): Likewise.
23504         (and_scc_scc): Likewise.
23505         (and_scc_scc_nodom): Likewise.
23506         (ior_scc_scc_cmp): Likewise for operand 7.
23507         (and_scc_scc_cmp): Likewise.
23508         * config/arm/thumb2.md (thumb2_movsi_insn):
23509         Add alternatives for 16-bit encodings.
23510         (thumb2_movhi_insn): Likewise.
23511         (thumb2_movsicc_insn): Likewise.
23512         (thumb2_and_scc): Take 'and' outside cond_exec.  Use "Ts" constraint.
23513         (thumb2_negscc): Use "Ts" constraint.
23514         Move mvn instruction outside cond_exec block.
23515         * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
23516         for 16-bit encodings.
23518 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23520         * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
23521         encoding.
23522         (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
23523         (mulsi3subsi): Likewise.
23524         (mulsidi3adddi): Likewise.
23525         (mulsidi3_v6): Likewise.
23526         (umulsidi3_v6): Likewise.
23527         (umulsidi3adddi_v6): Likewise.
23528         (smulsi3_highpart_v6): Likewise.
23529         (umulsi3_highpart_v6): Likewise.
23530         (mulhisi3tb): Likewise.
23531         (mulhisi3bt): Likewise.
23532         (mulhisi3tt): Likewise.
23533         (maddhisi4): Likewise.
23534         (maddhisi4tb): Likewise.
23535         (maddhisi4tt): Likewise.
23536         (maddhidi4): Likewise.
23537         (maddhidi4tb): Likewise.
23538         (maddhidi4tt): Likewise.
23539         (zeroextractsi_compare0_scratch): Likewise.
23540         (insv_zero): Likewise.
23541         (insv_t2): Likewise.
23542         (anddi_notzesidi_di): Likewise.
23543         (anddi_notsesidi_di): Likewise.
23544         (andsi_notsi_si): Likewise.
23545         (iordi_zesidi_di): Likewise.
23546         (xordi_zesidi_di): Likewise.
23547         (andsi_iorsi3_notsi): Likewise.
23548         (smax_0): Likewise.
23549         (smax_m1): Likewise.
23550         (smin_0): Likewise.
23551         (not_shiftsi): Likewise.
23552         (unaligned_loadsi): Likewise.
23553         (unaligned_loadhis): Likewise.
23554         (unaligned_loadhiu): Likewise.
23555         (unaligned_storesi): Likewise.
23556         (unaligned_storehi): Likewise.
23557         (extv_reg): Likewise.
23558         (extzv_t2): Likewise.
23559         (divsi3): Likewise.
23560         (udivsi3): Likewise.
23561         (arm_zero_extendhisi2addsi): Likewise.
23562         (arm_zero_extendqisi2addsi): Likewise.
23563         (compareqi_eq0): Likewise.
23564         (arm_extendhisi2_v6): Likewise.
23565         (arm_extendqisi2addsi): Likewise.
23566         (arm_movt): Likewise.
23567         (thumb2_ldrd): Likewise.
23568         (thumb2_ldrd_base): Likewise.
23569         (thumb2_ldrd_base_neg): Likewise.
23570         (thumb2_strd): Likewise.
23571         (thumb2_strd_base): Likewise.
23572         (thumb2_strd_base_neg): Likewise.
23573         (arm_negsi2): Add alternative for 16-bit encoding.
23574         (arm_one_cmplsi2): Likewise.
23576 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23578         * config/arm/predicates.md (arm_cond_move_operator): New predicate.
23579         * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
23580         (movdfcc): Likewise.
23581         * config/arm/vfp.md (*thumb2_movsf_vfp):
23582         Disable predication for arm_restrict_it.
23583         (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
23584         (*thumb2_movdfcc_vfp): Likewise.
23585         (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
23586         *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
23587         *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
23588         *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
23589         *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
23590         *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
23591         *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
23592         *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
23593         *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
23594         *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
23595         *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
23596         *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
23597         Disable predication for arm_restrict_it.
23599 2013-06-28  Kirill Yukhin  <kirill.yukhin@intel.com>
23601         * config/i386/bmiintrin.h (_bextr_u32): New.
23602         (_bextr_u64): Ditto.
23604 2013-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
23606         * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
23607         (mips64r5900el-*-elf*): Include mips/n32-elf.h.
23608         * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
23609         (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
23610         * config/mips/n32-elf.h: ...this new file.
23612 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
23614         PR target/57224
23615         * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
23616         IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
23618 2013-06-27  Catherine Moore  <clm@codesourcery.com>
23620         * config/mips/mips-tables.opt: Regenerate.
23621         * config/mips/mips-cpus.def: Add m14ke and m14kec.
23622         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
23623         * doc/invoke.texi: Add -m14kc.
23625 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
23627         PR target/57623
23628         * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
23629         constraints of operand 1 and 2.
23631         PR target/57623
23632         * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
23633         to match RTL canonicalization.  Swap predicates and
23634         constraints of operand 1 and 2.
23636 2013-06-27  Vladimir Makarov  <vmakarov@redhat.com>
23638         * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
23639         Process OP_INOUT regs for splitting too.
23641 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
23643         * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
23644         decl before the loop, initialize to NULL.
23645         (vectorizable_load): Initialize ptr_incr to NULL.
23647 2013-06-27  Martin Jambor  <mjambor@suse.cz>
23649         PR lto/57208
23650         * ipa-ref.h (ipa_maybe_record_reference): Declare.
23651         * ipa-ref.c (ipa_maybe_record_reference): New function.
23652         * cgraphclones.c (cgraph_create_virtual_clone): Use it.
23653         * ipa-cp.c (create_specialized_node): Record potential references from
23654         aggvals.
23655         * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
23657 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
23659         * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
23660         parameter 'mode' of type 'enum machine_mode mode'; change to pass
23661         'mode' to force_reg.
23662         (aarch64_add_offset): Update calls to aarch64_force_temporary.
23663         (aarch64_expand_mov_immediate): Likewise.
23665 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
23667         * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
23668         'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
23670 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23672         * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
23673         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
23674         (struct machine_function): Add tbegin_p.
23675         (s390_canonicalize_comparison): Fold CC mode compares to
23676         conditional jump if possible.
23677         (s390_emit_jump): Return the emitted jump.
23678         (s390_branch_condition_mask, s390_branch_condition_mnemonic):
23679         Handle CCRAWmode compares.
23680         (s390_option_override): Default to -mhtm if available.
23681         (s390_reg_clobbered_rtx): Handle floating point regs as well.
23682         (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
23683         FPRs instead of df_regs_ever_live_p.
23684         (s390_optimize_nonescaping_tx): New function.
23685         (s390_init_frame_layout): Extend clobbered_regs array to cover
23686         FPRs as well.
23687         (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
23688         (s390_expand_tbegin): New function.
23689         (enum s390_builtin): New enum definition.
23690         (code_for_builtin): New array definition.
23691         (s390_init_builtins): New function.
23692         (s390_expand_builtin): New function.
23693         (TARGET_INIT_BUILTINS): Define.
23694         (TARGET_EXPAND_BUILTIN): Define.
23695         * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
23696         * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
23697         (s390_alc_comparison): Likewise.
23698         * config/s390/s390-modes.def: Add CCRAWmode.
23699         * config/s390/s390.h (processor_flags): Add PF_TX.
23700         (TARGET_CPU_HTM): Define macro.
23701         (TARGET_HTM): Define macro.
23702         (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
23703         * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
23704         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
23705         (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
23706         (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
23707         (TBEGIN_MASK, TBEGINC_MASK): New constants.
23708         ("*cc_to_int"): Move up.
23709         ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
23710         constants other than 0.
23711         ("*ccraw_to_int"): New insn and splitter definition.
23712         ("tbegin", "tbegin_nofloat", "tbegin_retry")
23713         ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
23714         ("tx_assist"): New expander.
23715         ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
23716         ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
23717         * config/s390/s390.opt: Add -mhtm option.
23718         * config/s390/s390-protos.h (s390_emit_jump): Add return type.
23719         * config/s390/htmxlintrin.h: New file.
23720         * config/s390/htmintrin.h: New file.
23721         * config/s390/s390intrin.h: New file.
23722         * doc/extend.texi: Document htm builtins.
23723         * config.gcc: Add the new header files to extra_headers.
23725 2013-06-26  Thomas Schwinge  <thomas@codesourcery.com>
23727         * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
23728         (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
23730 2013-06-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
23731             Pat Haugen  <pthaugen@us.ibm.com>
23732             Peter Bergner  <bergner@vnet.ibm.com>
23734         * config/rs6000/power8.md: New.
23735         * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
23736         setting for power8 entry.
23737         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
23738         * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
23739         test for Power4/Power5 only.
23740         (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
23741         support.
23742         (force_new_group): Adjust comment.
23743         * config/rs6000/rs6000.md: Include power8.md.
23745 2013-06-26  Greta Yorsh  <Greta.Yorsh@arm.com>
23747         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
23748         * config/arm/arm-protos.h (arm_max_conditional_execute): New
23749         declaration.
23750         (tune_params): Update comment.
23751         * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
23752         (arm_max_conditional_execute): New function.
23753         (thumb2_final_prescan_insn): Use max_insn_skipped and
23754         MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
23756 2013-06-25  Jakub Jelinek  <jakub@redhat.com>
23758         PR tree-optimization/57705
23759         * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
23760         SSA_NAME step, provided that it is not defined inside the loop.
23761         (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
23762         (get_initial_def_for_induction): Handle SSA_NAME IV step.
23764 2013-06-25  Martin Jambor  <mjambor@suse.cz>
23766         PR middle-end/57670
23767         * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
23768         * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
23769         calls in the dump.
23770         (ipa_note_param_call): Initialize member_ptr flag.
23771         (ipa_analyze_indirect_call_uses): Set member_ptr flag.
23772         (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
23773         (ipa_write_indirect_edge_info): Stream member_ptr flag.
23774         (ipa_read_indirect_edge_info): Likewise.
23776 2013-06-25  Richard Biener  <rguenther@suse.de>
23778         PR middle-end/56977
23779         * passes.c (init_optimization_passes): Move pass_fold_builtins
23780         and pass_dce earlier with -Og.
23782 2013-06-25  Eric Botcazou  <ebotcazou@adacore.com>
23784         * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
23785         <BIT_FIELD_REF>: Remove trailing TAB.
23786         * varasm.c (output_constructor_bitfield): Fix formatting glitch and
23787         remove blank line.
23789 2013-06-24  Martin Jambor  <mjambor@suse.cz>
23791         PR tree-optimization/57358
23792         * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
23793         (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
23794         (ipa_analyze_params_uses): Generate pessimistic info when true.
23796 2013-06-24  Martin Jambor  <mjambor@suse.cz>
23798         PR tree-optimization/57539
23799         * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
23800         global.inlined_to of the new node to it.  All callers changed.
23801         * ipa-inline-transform.c (clone_inlined_nodes): New variable
23802         inlining_into, pass it to cgraph_clone_node.
23803         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
23804         ipa_free_edge_args_substructures.
23805         (ipa_edge_duplication_hook): Only add edges from inlined nodes to
23806         rdesc linked list.  Do not assert rdesc edges have inlined caller.
23807         Assert we have found an rdesc in the rdesc list.
23809 2013-06-24  Richard Biener  <rguenther@suse.de>
23811         * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
23812         (pointer_set_lookup): Declare.
23813         (class pointer_map): New template class implementing a
23814         generic pointer to T map.
23815         (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
23816         pointer_map<T>::contains, pointer_map<T>::insert,
23817         pointer_map<T>::traverse): New functions.
23818         * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
23819         (pointer_set_lookup): New function.
23820         (pointer_set_contains): Use pointer_set_lookup.
23821         (pointer_set_insert): Likewise.
23822         (insert_aux): Remove.
23823         (struct pointer_map_t): Embed a pointer_set_t.
23824         (pointer_map_create): Adjust.
23825         (pointer_map_destroy): Likewise.
23826         (pointer_map_contains): Likewise.
23827         (pointer_map_insert): Likewise.
23828         (pointer_map_traverse): Likewise.
23829         * tree-streamer.h (struct streamer_tree_cache_d): Use a
23830         pointer_map<unsigned> instead of a pointer_map_t.
23831         * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
23832         (streamer_tree_cache_lookup): Likewise.
23833         (streamer_tree_cache_create): Likewise.
23834         (streamer_tree_cache_delete): Likewise.
23835         * lto-streamer.h (struct lto_tree_ref_encoder): Use a
23836         pointer_map<unsigned> instead of a pointer_map_t.
23837         (lto_init_tree_ref_encoder): Adjust.
23838         (lto_destroy_tree_ref_encoder): Likewise.
23839         * lto-section-out.c (lto_output_decl_index): Likewise.
23840         (lto_record_function_out_decl_state): Likewise.
23841         * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
23843 2013-06-24  Richard Biener  <rguenther@suse.de>
23845         PR tree-optimization/57488
23846         * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
23848 2013-06-24  Alan Modra  <amodra@gmail.com>
23850         * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
23851         (gen_easy_altivec_constant): Likewise.
23852         * config/rs6000/predicates.md (easy_vector_constant_add_self,
23853         easy_vector_constant_msb): Likewise.
23855 2013-06-23  Jakub Jelinek  <jakub@redhat.com>
23857         PR target/57688
23858         * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
23859         add missing return true.
23861 2013-06-23  Oleg Endo  <olegendo@gcc.gnu.org>
23863         PR target/52483
23864         * config/sh/predicates.md (general_extend_operand): Invoke
23865         general_movsrc_operand for memory operands.
23866         (general_movsrc_operand): Allow reg+reg addressing, do not use
23867         general_operand for memory operands.
23869 2013-06-23  Sriraman Tallam  <tmsriram@google.com>
23871         * config/i386/i386.c (ix86_pragma_target_parse):  Restore target
23872         when current target options does not apply.
23873         * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
23874         * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
23875         * config/i386/bmiintrin.h: Pass appropriate target
23876         attributes to header.
23877         * config/i386/mmintrin.h: Ditto.
23878         * config/i386/nmmintrin.h: Ditto.
23879         * config/i386/avx2intrin.h: Ditto.
23880         * config/i386/fxsrintrin.h: Ditto.
23881         * config/i386/tbmintrin.h: Ditto.
23882         * config/i386/xsaveintrin.h: Ditto.
23883         * config/i386/f16cintrin.h: Ditto.
23884         * config/i386/xtestintrin.h: Ditto.
23885         * config/i386/xsaveoptintrin.h: Ditto.
23886         * config/i386/bmi2intrin.h: Ditto.
23887         * config/i386/lzcntintrin.h: Ditto.
23888         * config/i386/smmintrin.h: Ditto.
23889         * config/i386/wmmintrin.h: Ditto.
23890         * config/i386/x86intrin.h: Remove all header include guards.
23891         * config/i386/prfchwintrin.h: Ditto.
23892         * config/i386/pmmintrin.h: Ditto.
23893         * config/i386/tmmintrin.h: Ditto.
23894         * config/i386/xmmintrin.h: Ditto.
23895         * config/i386/popcntintrin.h: Ditto.
23896         * config/i386/rdseedintrin.h: Ditto.
23897         * config/i386/ammintrin.h: Ditto.
23898         * config/i386/emmintrin.h: Ditto.
23899         * config/i386/immintrin.h: Remove all header include guards.
23900         * config/i386/fma4intrin.h: Ditto.
23901         * config/i386/lwpintrin.h: Ditto.
23902         * config/i386/xopintrin.h: Ditto.
23903         * config/i386/ia32intrin.h: Ditto.
23904         * config/i386/avxintrin.h: Ditto.
23905         * config/i386/rtmintrin.h: Ditto.
23906         * config/i386/fmaintrin.h: Ditto.
23907         * config/i386/mm3dnow.h: Ditto.
23909 2013-06-22  Sriraman Tallam  <tmsriram@google.com>
23911         * common/config/i386/i386-common.c: Handle LZCNT.
23913 2013-06-22  Andi Kleen  <ak@linux.intel.com>
23915         * doc/extend.texi: Use __atomic_store_n instead of
23916         __atomic_store in HLE example.
23918 2013-06-22  Oleg Endo  <olegendo@gcc.gnu.org>
23920         * config/sh/sh.c: Remove <cstdlib> workaround.
23922 2013-06-21  Andi Kleen  <ak@linux.intel.com>
23924         * doc/extend.texi: Dont use __atomic_clear in HLE example.  Fix typo.
23926 2013-06-21  Andi Kleen  <ak@linux.intel.com>
23928         * doc/extend.texi: Document that __atomic_clear and
23929           __atomic_test_and_set should only be used with bool.
23931 2013-06-20  Jan Hubicka  <jh@suse.cz>
23933         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
23934         types_same_for_odr.
23935         * tree.c (decls_same_for_odr): New function.
23936         (same_for_edr): New function.
23937         (types_same_for_odr): New function.
23938         (get_binfo_at_offset): Use it.
23939         * tree.h (types_same_for_odr): Declare.
23941 2013-06-20  Oleg Endo  <olegendo@gcc.gnu.org>
23942             Jason Merrill  <jason@redhat.com>
23944         * system.h: Include <cstdlib> as well as <stdlib.h>.
23946 2013-06-20  Uros Bizjak  <ubizjak@gmail.com>
23948         PR target/57655
23949         * config/i386/i386.c (construct_container): Report error if
23950         long double is used with disabled x87 float returns.
23952 2013-06-20  Jan Hubicka  <jh@suse.cz>
23954         * lto-cgraph.c (input_symtab): Do not set cgraph state.
23956 2013-06-20  Joern Rennecke  <joern.rennecke@embecosm.com>
23958         PR rtl-optimization/57425
23959         PR rtl-optimization/57569
23960         * alias.c (write_dependence_p): Remove parameters mem_mode and
23961         canon_mem_addr.  Add parameters x_mode, x_addr and x_canonicalized.
23962         Changed all callers.
23963         (canon_anti_dependence): Get comments and semantics in sync.
23964         Add parameter mem_canonicalized.  Changed all callers.
23965         * rtl.h (canon_anti_dependence): Update prototype.
23967 2013-06-20  Richard Biener  <rguenther@suse.de>
23969         * data-streamer-in.c (streamer_read_uhwi): Optimize single
23970         byte case, inline streamer_read_uchar and defer section
23971         overrun check.
23973 2013-06-20  Richard Biener  <rguenther@suse.de>
23975         PR tree-optimization/57584
23976         * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
23977         SSA names into the expanded expression that take part in
23978         abnormal coalescing.
23980 2013-06-19  Sharad Singhai  <singhai@google.com>
23982         * gcov.c (print_usage): Handle new option.
23983         (process_args): Ditto.
23984         (get_gcov_intermediate_filename): New function.
23985         (output_intermediate_file): New function.
23986         (output_gcov_file): New function
23987         (generate_results): Handle new option.
23988         (release_function): Relase demangled name.
23989         (read_graph_file): Handle demangled name.
23990         (output_lines): Ditto.
23991         * doc/gcov.texi: Document gcov intermediate format.
23993 2013-06-19  Vladimir Makarov  <vmakarov@redhat.com>
23995         PR bootstrap/57604
23996         * lra.c (emit_add3_insn, emit_add2_insn): New functions.
23997         (lra_emit_add): Use the functions.  Add comment about Y as an
23998         address segment.
24000 2013-06-19  David Edelsohn  <dje.gcc@gmail.com>
24002         PR driver/57652
24003         * collect2.c (collect_atexit): New.
24004         (collect_exit): Delete.
24005         (main): Register collect_atexit with atexit.
24006         (collect_wait): Change collect_exit to exit.
24007         (do_wait): Same.
24008         * collect2.h (collect_exit): Delete.
24009         * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
24011 2013-06-19  Wei Mi  <wmi@google.com>
24013         PR rtl-optimization/57518
24014         * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
24015         if regno is used in paradoxical subreg.
24016         (update_equiv_regs): Check pdx_subregs[regno] before
24017         set a reg to be equivalent with a mem.
24019 2013-06-19  Matthias Klose  <doko@ubuntu.com>
24021         PR driver/57651
24022         * file-find.h (find_a_file): Add a mode parameter.
24023         * file-find.c (find_a_file): Likewise.
24024         * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
24025         with X_OK for the executables.
24026         * collect2.c (main): Call find_a_file with X_OK.
24028 2013-06-19  Steve Ellcey  <sellcey@mips.com>
24030         PR target/56942
24031         * config/mips/mips.md (casesi_internal_mips16_<mode>):
24032         Use NEXT_INSN instead of next_real_insn.
24034 2013-06-19  Jan Hubicka  <jh@suse.cz>
24036         * cgraph.h (const_value_known_p): Replace by ...
24037         (ctor_for_folding): .. this one.
24038         * cgraphunit.c (process_function_and_variable_attributes): Use it.
24039         * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
24040         * expr.c (expand_expr_real_1): Likewise.
24041         (string_constant): Likewise.
24042         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
24043         * ipa.c (process_references): Likewise.
24044         (symtab_remove_unreachable_nodes): Likewise.
24045         * ipa-inline-analysis.c (param_change_prob): Likewise.
24046         * gimple-fold.c (canonicalize_constructor_val): Likewise.
24047         (get_base_constructor): Likwise.
24048         * varpool.c (varpool_remove_node): Likewise.
24049         (varpool_remove_initializer): LIkewise.
24050         (dump_varpool_node): LIkwise.
24051         (const_value_known_p): Rewrite to ...
24052         (ctor_for_folding): ... this one.
24054 2013-06-19  Jakub Jelinek  <jakub@redhat.com>
24056         PR driver/57651
24057         * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
24058         PERSONALITY in $PATH derived prefixes.
24060 2013-06-19  Jeff Law  <law@redhat.com>
24062         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
24063         in comment.
24065         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
24066         (simplify_bitwise_binary): Use it to simpify certain binary ops on
24067         booleans.
24069 2013-06-19  Sofiane Naci  <sofiane.naci@arm.com>
24071         * config/arm/vfp.md: Move VFP instruction classification documentation
24072         to ...
24073         * config/arm/arm.md: ... here.  Update instruction classification
24074         documentation.
24076 2013-06-19  Richard Earnshaw  <rearnsha@arm.com>
24078         arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
24079         (peepholes for eq(reg, not-0)): Ensure condition register is dead after
24080         pattern.  Use more efficient sequences on ARMv5 and Thumb2.
24082 2013-06-19  Steven Bosscher  <steven@gcc.gnu.org>
24084         PR target/57609
24085         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
24086         with NEXT_INSN.  Use tablejump_p to check for jump table data
24087         insns.
24089 2013-06-19  Paolo Carlini  <paolo.carlini@oracle.com>
24091         PR c++/56544
24092         * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
24093         that now in C++ the value is correct per the C++ standards.
24095 2013-06-19  Richard Biener  <rguenther@suse.de>
24097         * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
24098         for global context.
24100 2013-06-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24102         Revert:
24103         2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24105         PR target/57609
24106         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
24107         with next_active_insn.
24109 2013-06-18  Sriraman Tallam  <tmsriram@google.com>
24111         * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
24112         functions are inlined during failures to flag an error.
24113         * tree-inline.c (expand_call_inline): Allow the error to be flagged
24114         in early inline pass.
24116 2013-06-18  H.J. Lu  <hongjiu.lu@intel.com>
24118         * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
24119         in comments.
24121 2013-06-18  Julian Brown  <julian@codesourcery.com>
24123         * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
24124         Permit virtual register pre-reload if !strict.
24125         (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
24126         change.
24127         * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
24128         prototype.
24129         * config/arm/neon.md (movmisalign<mode>): Use
24130         neon_perm_struct_or_reg_operand instead of
24131         neon_struct_or_register_operand.
24132         (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
24133         neon_permissive_struct_operand instead of neon_struct_operand.
24134         * config/arm/constraints.md (Un, Um, Us): Adjust calls to
24135         neon_vector_mem_operand.
24136         * config/arm/predicates.md (neon_struct_operand): Adjust call to
24137         neon_vector_mem_operand.
24138         (neon_permissive_struct_operand): New.
24139         (neon_struct_or_register_operand): Rename to...
24140         (neon_perm_struct_or_reg_operand): This. Adjust call to
24141         neon_vector_mem_operand.
24143 2013-06-18  Richard Biener  <rguenther@suse.de>
24145         * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
24146         * lto-streamer.h: Include pointer-set.h.
24147         (struct lto_decl_slot): Remove.
24148         (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
24149         Remove next_index entry.
24150         (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
24151         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
24152         (lto_init_tree_ref_encoder): Adjust.
24153         (lto_destroy_tree_ref_encoder): Likewise.
24154         * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
24155         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
24156         (lto_output_decl_index): Adjust.
24157         (lto_new_out_decl_state): Likewise.
24158         (lto_record_function_out_decl_state): Likewise.
24159         * lto-streamer-out.c (copy_function): Likewise.
24161 2013-06-18  Richard Biener  <rguenther@suse.de>
24163         * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
24164         * cgraphunit.c: Include cfgloop.h.
24165         (init_lowered_empty_function): Initialize the loop tree.
24166         (assemble_thunk): Insert new BBs into loops.
24168 2013-06-18  Richard Biener  <rguenther@suse.de>
24170         * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
24171         * tree-streamer.c (streamer_tree_cache_create): Make maintaining
24172         the map from cache entry to cache index optional.
24173         (streamer_tree_cache_replace_tree): Adjust accordingly.
24174         (streamer_tree_cache_append): Likewise.
24175         (streamer_tree_cache_delete): Likewise.
24176         * lto-streamer-in.c (lto_data_in_create): Do not maintain the
24177         streamer cache map from cache entry to cache index.
24178         * lto-streamer-out.c (create_output_block): Adjust.
24180 2013-06-18  Sofiane Naci  <sofiane.naci@arm.com>
24182         * config/arm/arm.md (attribute "insn"): Move multiplication and
24183         division attributes to...
24184         (attribute "type"): ... here.  Remove mult.
24185         (attribute "mul32"): New attribute.
24186         (attribute "mul64"): Add umaal.
24187         (*arm_mulsi3): Update attributes.
24188         (*arm_mulsi3_v6): Likewise.
24189         (*thumb_mulsi3): Likewise.
24190         (*thumb_mulsi3_v6): Likewise.
24191         (*mulsi3_compare0): Likewise.
24192         (*mulsi3_compare0_v6): Likewise.
24193         (*mulsi_compare0_scratch): Likewise.
24194         (*mulsi_compare0_scratch_v6): Likewise.
24195         (*mulsi3addsi): Likewise.
24196         (*mulsi3addsi_v6): Likewise.
24197         (*mulsi3addsi_compare0): Likewise.
24198         (*mulsi3addsi_compare0_v6): Likewise.
24199         (*mulsi3addsi_compare0_scratch): Likewise.
24200         (*mulsi3addsi_compare0_scratch_v6): Likewise.
24201         (*mulsi3subsi): Likewise.
24202         (*mulsidi3adddi): Likewise.
24203         (*mulsi3addsi_v6): Likewise.
24204         (*mulsidi3adddi_v6): Likewise.
24205         (*mulsidi3_nov6): Likewise.
24206         (*mulsidi3_v6): Likewise.
24207         (*umulsidi3_nov6): Likewise.
24208         (*umulsidi3_v6): Likewise.
24209         (*umulsidi3adddi): Likewise.
24210         (*umulsidi3adddi_v6): Likewise.
24211         (*smulsi3_highpart_nov6): Likewise.
24212         (*smulsi3_highpart_v6): Likewise.
24213         (*umulsi3_highpart_nov6): Likewise.
24214         (*umulsi3_highpart_v6): Likewise.
24215         (mulhisi3): Likewise.
24216         (*mulhisi3tb): Likewise.
24217         (*mulhisi3bt): Likewise.
24218         (*mulhisi3tt): Likewise.
24219         (maddhisi4): Likewise.
24220         (*maddhisi4tb): Likewise.
24221         (*maddhisi4tt): Likewise.
24222         (maddhidi4): Likewise.
24223         (*maddhidi4tb): Likewise.
24224         (*maddhidi4tt): Likewise.
24225         (divsi3): Likewise.
24226         (udivsi3): Likewise.
24227         * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
24228         (thumb2_mulsi_short_compare0): Likewise.
24229         (thumb2_mulsi_short_compare0_scratch): Likewise.
24230         * config/arm/arm1020e.md (1020mult1): Update attribute change.
24231         (1020mult2): Likewise.
24232         (1020mult3): Likewise.
24233         (1020mult4): Likewise.
24234         (1020mult5): Likewise.
24235         (1020mult6): Likewise.
24236         * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
24237         change.
24238         (cortex_a15_mult64): Likewise.
24239         (cortex_a15_sdiv): Likewise.
24240         (cortex_a15_udiv): Likewise.
24241         * config/arm/arm1026ejs.md (mult1): Update attribute change.
24242         (mult2): Likewise.
24243         (mult3): Likewise.
24244         (mult4): Likewise.
24245         (mult5): Likewise.
24246         (mult6): Likewise.
24247         * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
24248         (pj4_ir_div): Likewise.
24249         * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
24250         (11_mult2): Likewise.
24251         (11_mult3): Likewise.
24252         (11_mult4): Likewise.
24253         (11_mult5): Likewise.
24254         (11_mult6): Likewise.
24255         (11_mult7): Likewise.
24256         * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
24257         (cortex_a8_mla): Likewise.
24258         (cortex_a8_mull): Likewise.
24259         (cortex_a8_smulwy): Likewise.
24260         (cortex_a8_smlald): Likewise.
24261         * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
24262         * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
24263         (cortex_r4_mul_3): Likewise.
24264         (cortex_r4_mla_4): Likewise.
24265         (cortex_r4_mla_3): Likewise.
24266         (cortex_r4_smlald): Likewise.
24267         (cortex_r4_mull): Likewise.
24268         (cortex_r4_sdiv): Likewise.
24269         (cortex_r4_udiv): Likewise.
24270         * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
24271         (cortex_a7_idiv): Likewise.
24272         * config/arm/arm926ejs.md (9_mult1): Update attribute change.
24273         (9_mult2): Likewise.
24274         (9_mult3): Likewise.
24275         (9_mult4): Likewise.
24276         (9_mult5): Likewise.
24277         (9_mult6): Likewise.
24278         * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
24279         (cortex_a53_sdiv): Likewise.
24280         (cortex_a53_udiv): Likewise.
24281         * config/arm/fa726te.md (726te_mult_op): Update attribute change.
24282         * config/arm/fmp626.md (mp626_mult1): Update attribute change.
24283         (mp626_mult2): Likewise.
24284         (mp626_mult3): Likewise.
24285         (mp626_mult4): Likewise.
24286         * config/arm/fa526.md (526_mult1): Update attribute change.
24287         (526_mult2): Likewise.
24288         * config/arm/arm-generic.md (mult): Update attribute change.
24289         (mult_ldsched_strongarm): Likewise.
24290         (mult_ldsched): Likewise.
24291         (multi_cycle): Likewise.
24292         * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
24293         * config/arm/fa606te.md (606te_mult1): Update attribute change.
24294         (606te_mult2): Likewise.
24295         (606te_mult3): Likewise.
24296         (606te_mult4): Likewise.
24297         * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
24298         (cortex_a9_mac16): Likewise.
24299         (cortex_a9_multiply): Likewise.
24300         (cortex_a9_mac): Likewise.
24301         (cortex_a9_multiply_long): Likewise.
24302         * config/arm/fa626te.md (626te_mult1): Update attribute change.
24303         (626te_mult2): Likewise.
24304         (626te_mult3): Likewise.
24305         (626te_mult4): Likewise.
24307 2013-06-18  Richard Biener  <rguenther@suse.de>
24309         PR lto/57334
24310         * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
24312 2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24314         PR target/57609
24315         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
24316         with next_active_insn.
24318 2013-06-18  Alan Modra  <amodra@gmail.com>
24320         * config/rs6000/rs6000.h (enum data_align): New.
24321         (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
24322         (DATA_ABI_ALIGNMENT): Define.
24323         (CONSTANT_ALIGNMENT): Correct comment.
24324         * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
24325         * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
24327 2013-06-17  David Malcolm  <dmalcolm@redhat.com>
24329         * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
24330         ATTRIBUTE_UNUSED marking.
24332 2013-06-17  Sofiane Naci  <sofiane.naci@arm.com>
24334         * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
24335         alternative and update.
24336         (aarch64_dup_lanedi): Delete.
24337         * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
24338         * config/aarch64/aarch64-simd-builtins.def: Update.
24340 2013-06-17  Richard Biener  <rguenther@suse.de>
24342         * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
24343         (lto_input_scc): Declare.
24344         (lto_input_tree_1): Likewise.
24345         (struct lto_stats_d): Add num_tree_bodies_output and
24346         num_pickle_refs_output.
24347         * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
24348         (lto_read_tree_1): Split out from ...
24349         (lto_read_tree): ... this.
24350         (lto_input_scc): New function.
24351         (lto_input_tree_1): Split out from ...
24352         (lto_input_tree): ... this.  Handle LTO_tree_scc.
24353         (lto_data_in_create): Create the streamer cache without hashes.
24354         * lto-streamer-out.c (create_output_block): Create the streamer
24355         cache with hashes when not doing WPA.
24356         (lto_write_tree_1): Split out from ...
24357         (lto_write_tree): ... this.
24358         (get_symbol_initial_value): New function.
24359         (lto_output_tree_1): Split out from ...
24360         (lto_output_tree): ... this.  Write trees as series of SCCs
24361         using a DFS walk via DFS_write_tree.
24362         (struct sccs, struct scc_entry): New types.
24363         (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
24364         (DFS_write_tree_body): New function.
24365         (DFS_write_tree): Likewise.
24366         (hash_tree): Likewise.
24367         (scc_entry_compare): Likewise.
24368         (hash_scc): Likewise.
24369         (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
24370         * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
24371         TREE_CHAIN as regular reference.
24372         (streamer_read_integer_cst): Remove.
24373         (streamer_get_pickled_tree): Adjust.
24374         * tree-streamer-out.c (streamer_write_chain): Disable streaming
24375         of DECL_EXTERNALs in BLOCK_VARS for now.
24376         (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
24377         reference.
24378         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
24379         Add hash value argument and record that if hashes are recorded
24380         in the cache.
24381         (streamer_tree_cache_insert_1): Adjust.
24382         (streamer_tree_cache_insert): Likewise.
24383         (streamer_tree_cache_insert_at): Rename to ...
24384         (streamer_tree_cache_replace_tree): ... this and adjust.
24385         (streamer_tree_cache_append): Adjust.
24386         (record_common_node): Likewise.
24387         (streamer_tree_cache_create): Add argument whether to
24388         record hash values together with trees.
24389         (streamer_tree_cache_delete): Adjust.
24390         * tree-streamer.h (struct streamer_tree_cache_d): Add
24391         vector of hashes.
24392         (streamer_read_integer_cst): Remove.
24393         (streamer_tree_cache_insert): Adjust.
24394         (streamer_tree_cache_append): Likewise.
24395         (streamer_tree_cache_insert_at): Rename to ...
24396         (streamer_tree_cache_replace_tree): ... this and adjust.
24397         (streamer_tree_cache_create): Add argument whether to record hashes.
24398         (streamer_tree_cache_get): Rename to ...
24399         (streamer_tree_cache_get_tree): ... this.
24400         (streamer_tree_cache_get_hash): New function.
24401         * tree.c (cache_integer_cst): New function.
24402         * tree.h (cache_integer_cst): Declare.
24403         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
24404         * lto-symtab.c (lto_varpool_replace_node): Only release
24405         DECL_INITIAL of non-prevailing decls.
24406         * varpool.c (varpool_remove_initializer): Do not release
24407         DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
24409 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
24411         * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
24412         (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
24413         * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
24414         (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
24415         (mul<mode>3_mul3): Handle TARGET_MIPS5900.
24416         (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
24417         (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
24418         (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
24419         instead of TARGET_64BIT.
24420         (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
24421         Require ISA_HAS_<D>DIV.
24423 2013-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
24425         * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
24426         (mips*-*-linux*): Move default with_llsc setting to where other
24427         defaults are set.
24428         (mips*-*-vxworks*): Move with_arch default from with_cpu block to
24429         with_arch block.
24430         (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
24431         Likewise.  Remove default with_tune setting.  Move default float
24432         setting to its own block.  Handle with_llsc in the same block as above.
24434 2013-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
24436         PR rtl-optimization/57425
24437         PR rtl-optimization/57569
24438         * alias.c (write_dependence_p): Add new parameters mem_mode,
24439         canon_mem_addr and mem_canonicalized.  Change type of writep to bool.
24440         Changed all callers.
24441         (canon_anti_dependence): New function.
24442         * cse.c (check_dependence): Use canon_anti_dependence.
24443         * cselib.c (cselib_invalidate_mem): Likewise.
24444         * rtl.h (canon_anti_dependence): Declare.
24446 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
24448         * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
24449         * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
24450         ".set mips3" for 64-bit targets.
24452 2013-06-15  Dehao Chen  <dehao@google.com>
24454         * tree-flow.h (gimple_check_call_matching_types): Add new argument.
24455         * gimple-low.c (gimple_check_call_matching_types): Likewise.
24456         (gimple_check_call_args): Likewise.
24457         * value-prof.c (check_ic_target): Likewise.
24458         * ipa-inline.c (early_inliner): Likewise.
24459         * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
24460         * cgraph.c (cgraph_create_edge_1): Likewise.
24461         (cgraph_make_edge_direct): Likewise.
24463 2013-06-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
24465         PR target/57615
24466         * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
24467         rs6000_output_move_128bit to handle emitting quad memory
24468         operations.  Set attribute length to 8 bytes.
24470 2013-06-14  Vidya Praveen  <vidyapraveen@arm.com>
24472         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
24473         New pattern.
24474         (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
24475         (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
24476         (aarch64_<su>mlsl<mode>): Likewise.
24478 2013-06-14  Mike Stump  <mikestump@comcast.net>
24480         * Makefile.in (TARGET_H): Add insn-codes.h.
24482 2013-06-14  Alan Modra  <amodra@gmail.com>
24484         PR middle-end/57134
24485         PR middle-end/57586
24486         * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
24487         EXPAND_MEMORY and EXPAND_WRITE to recursive call.  Don't use
24488         bitfield expansion when EXPAND_MEMORY.
24489         (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
24491 2013-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
24493         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
24494         test for clearing quad memory on 32-bit later.
24496 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
24498         * fold-const.c (negate_expr_p): Handle VECTOR_CST.
24499         (fold_negate_expr): Likewise.
24500         (fold_real_zero_addition_p): Handle vectors.
24501         (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
24503 2013-06-14  Alan Modra  <amodra@gmail.com>
24505         * varasm.c (force_const_mem): Revert 2013-06-07 change.
24507 2013-06-13  Jan Hubicka  <jh@suse.cz>
24509         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
24510         Local comdats are not externally visible.
24511         * symtab.c (dump_symtab_base): Dump externally visible.
24512         (verify_symtab_base): Verify back links in the symtab hash.
24514 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
24516         * fold-const.c (operand_equal_p): Consider NOP_EXPR and
24517         CONVERT_EXPR as equal nodes.
24519 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
24521         * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
24523 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
24525         * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
24526         Generalize to complex and vector.
24527         * tree.c (build_all_ones_cst): New function.
24528         * tree.h (build_all_ones_cst): Declare it.
24530 2013-06-13  Alan Modra  <amodra@gmail.com>
24532         * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
24533         * config/rs6000/rs6000.md (signbittf2): New insn.
24534         (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
24535         (abstf2_internal, cmptf_internal2): Likewise.
24536         * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
24538 2013-06-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
24539             Pat Haugen  <pthaugen@us.ibm.com>
24540             Peter Bergner  <bergner@vnet.ibm.com>
24542         * config/rs6000/rs6000.c (emit_load_locked): Add support for
24543         power8 byte, half-word, and quad-word atomic instructions.
24544         (emit_store_conditional): Likewise.
24545         (rs6000_expand_atomic_compare_and_swap): Likewise.
24546         (rs6000_expand_atomic_op): Likewise.
24548         * config/rs6000/sync.md (larx): Add new modes for power8.
24549         (stcx): Likewise.
24550         (AINT): New mode iterator to include TImode as well as normal
24551         integer modes on power8.
24552         (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
24553         that VSX registers are not considered.  Use AINT mode iterator
24554         instead of INT1 to allow inclusion of quad word atomic operations
24555         on power8.
24556         (load_locked<mode>): Likewise.
24557         (store_conditional<mode>): Likewise.
24558         (atomic_compare_and_swap<mode>): Likewise.
24559         (atomic_exchange<mode>): Likewise.
24560         (atomic_nand<mode>): Likewise.
24561         (atomic_fetch_<fetchop_name><mode>): Likewise.
24562         (atomic_nand_fetch<mode>): Likewise.
24563         (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
24564         each type.
24565         (ATOMIC): On power8, add QImode, HImode modes.
24566         (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
24567         modes that promote to SImode.
24568         (load_lockedti): Convert TImode arguments to PTImode, so that we
24569         get a guaranteed even/odd register pair.
24570         (load_lockedpti): Likewise.
24571         (store_conditionalti): Likewise.
24572         (store_conditionalpti): Likewise.
24574         * config/rs6000/rs6000.md (QHI): New mode iterator for power8
24575         atomic load/store instructions.
24576         (HSI): Likewise.
24578 2013-06-12  Richard Sandiford  <rdsandiford@googlemail.com>
24580         * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
24581         loads.
24582         (insn_count): New attribute, with most cases extracted from...
24583         (length): ...here.  Redefine most cases in terms of insn_count.
24584         (single_insn): Delete.
24585         (can_delay): Use insn_count to check for single instructions.
24586         (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
24587         (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
24588         (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
24589         (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
24590         (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
24591         (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
24592         (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
24593         (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
24594         (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
24595         (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
24596         rather than "length".
24597         (tls_get_tp_<mode>): Likewise.  Remove redundant "no_delay" attribute.
24598         * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
24599         Use "insn_count" rather than "length".
24600         * config/mips/mips-dsp.md
24601         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
24602         (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
24603         length attributes.
24605 2013-06-12  Marc Glisse  <marc.glisse@inria.fr>
24607         PR tree-optimization/57361
24608         * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
24610 2013-06-12  Sofiane Naci  <sofiane.naci@arm.com>
24612         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
24613         to split.
24614         (aarch64_simd_combine<mode>): New instruction expansion.
24615         * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
24616         function prototype.
24617         * config/aarch64/aarch64.c (aarch64_split_combine): New function.
24618         * config/aarch64/iterators.md (Vdbl): Add entry for DF.
24620 2013-06-12  Jan Hubicka  <jh@suse.cz>
24622         * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
24623         decl has when in streaming stage.
24624         * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
24625         * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
24627 2013-06-12  Roland Stigge  <stigge@antcom.de>
24629         PR target/57578
24630         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
24632 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
24634         PR tree-optimization/57537
24635         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
24636         vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
24638 2013-06-12  Richard Biener  <rguenther@suse.de>
24640         * data-streamer.h (streamer_write_char_stream): CSE
24641         obs->current_pointer.
24642         * data-streamer-out.c (streamer_write_uhwi_stream): Inline
24643         streamer_write_char_stream manually and optimize the resulting loop.
24644         (streamer_write_hwi_stream): Likewise.
24646 2013-06-12  Jan Hubicka  <jh@suse.cz>
24648         * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
24649         * cgraph.h (varpool_create_empty_node): Declare.
24650         * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
24651         duplicated nodes.
24652         * symtab.c (symtab_unregister_node): Be lax about missin entries
24653         in node hash.
24654         (symtab_get_node): Update comment.
24655         * varpool.c (varpool_create_empty_node): Break out from ...
24656         (varpool_node_for_decl): ... here.
24657         * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
24659 2013-06-12  Eric Botcazou  <ebotcazou@adacore.com>
24661         * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
24662         <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
24663         part.  Use straight-line flow at the end.
24664         <COMPONENT_REF>: Remove superfluous else.
24665         <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
24667 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
24669         PR target/56564
24670         * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
24671         target hook even for !TREE_PUBLIC decls.  If no resolution info
24672         is available, return false for common and external decls.
24674 2013-06-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
24676         * config/rl78/constraints.md (U): New constraint.
24677         * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
24678         valloc attribute.
24680 2013-06-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
24682         PR target/57589
24683         * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
24684         to allow returning address to AT_PLATFORM name.
24686 2013-06-11  Jan Hubicka  <jh@suse.cz>
24688         * cgraph.c (cgraph_create_function_alias): Set weakref flag.
24689         * cgraph.h (symtab_node_base): Add weakref flag.
24690         * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
24691         (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
24692         (output_weakrefs): Use weakref flag.
24693         * fold-const.c (simple_operand_p): Handle WEAK.
24694         * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
24695         * ipa.c (varpool_externally_visible_p): Drop weakref.
24696         (function_and_variable_visibility): Update comment; fix weakref
24697         sanity checks; do not clear DECL_WEAK on them.
24698         * lto-cgraph.c (lto_output_node): update.
24699         (lto_output_varpool_node): Update.
24700         (input_overwrite_node): Update.
24701         (input_node): Update.
24702         (input_varpool_node): Update.
24703         * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
24704         (lto_symtab_merge_symbols): Add sanity check.
24705         (lto_symtab_prevailing_decl): Do not special case weakrefs.
24706         * passes.c (rest_of_decl_compilation): Set static flag, too.
24707         * symtab.c (dump_symtab_base): Dump weakref.
24708         (verify_symtab_base): Sanity check weakrefs.
24709         (symtab_make_decl_local): Remove duplicated code.
24710         (symtab_alias_ultimate_target): Simplify.
24711         * varpool.c (varpool_create_variable_alias): Set weakref flag.
24713 2013-06-11  Tom de Vries  <tom@codesourcery.com>
24715         * genautomata.c (gen_regexp_sequence): Handle els_num == -1.  Handle
24716         sequence_vect == NULL.
24718 2013-06-11  DJ Delorie  <dj@redhat.com>
24720         * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
24721         (rl78_unwind_word_mode): New.
24723 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
24725         * final.c (debug_prefix_maps): Make static.
24727 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
24729         * function.c (initial_trampoline): Remove stray copy.
24731 2013-06-11  Sofiane Naci  <sofiane.naci@arm.com>
24733         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
24735 2013-06-11  Martin Jambor  <mjambor@suse.cz>
24737         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
24738         within bounds at the beginning of the function.
24740 2013-06-11  Alan Modra  <amodra@gmail.com>
24742         * varasm.c (get_section): Don't die on !DECL_P decl.  Tidy error
24743         reporting.
24744         (get_named_section): Don't NULL !DECL_P decl.
24746 2013-06-11  Igor Zamyatin  <igor.zamyatin@intel.com>
24748         * doc/invoke.texi (core-avx2): Document.
24749         (slm): Likewise.
24750         (atom): Updated with MOVBE.
24752 2013-06-11  Richard Biener  <rguenther@suse.de>
24754         * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
24756 2013-06-11  Anton Blanchard  <anton@samba.org>
24758         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
24759         correct shift value in little-endian mode.
24761 2013-06-11  Jakub Jelinek  <jakub@redhat.com>
24763         PR target/56564
24764         * varasm.c (get_variable_align): Move #endif to the right place.
24766 2013-06-10  Cary Coutant  <ccoutant@google.com>
24768         * dwarf2out.c (hash_external_ref): Use die_symbol or signature
24769         for hash so that hash table traversal order is deterministic.
24771 2013-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
24772             Pat Haugen  <pthaugen@us.ibm.com>
24773             Peter Bergner  <bergner@vnet.ibm.com>
24775         * config/rs6000/vector.md (GPR move splitter): Do not split moves
24776         of vectors in GPRS if they are direct moves or quad word load or
24777         store moves.
24779         * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
24780         declaration.
24781         (direct_move_p): Likewise.
24782         (quad_load_store_p): Likewise.
24784         * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
24785         classes into bins based on the physical register type.
24786         (reg_class_to_reg_type): Likewise.
24787         (IS_STD_REG_TYPE): Likewise.
24788         (IS_FP_VECT_REG_TYPE): Likewise.
24789         (reload_fpr_gpr): Arrays to determine what insn to use if we can
24790         use direct move instructions.
24791         (reload_gpr_vsx): Likewise.
24792         (reload_vsx_gpr): Likewise.
24793         (rs6000_init_hard_regno_mode_ok): Precalculate the register type
24794         information that is a simplification of register classes.  Also
24795         precalculate direct move reload helpers.
24796         (direct_move_p): New function to return true if the operation can
24797         be done as a direct move instruciton.
24798         (quad_load_store_p): New function to return true if the operation
24799         is a quad memory operation.
24800         (rs6000_legitimize_address): If quad memory, only allow register
24801         indirect for TImode addresses.
24802         (rs6000_legitimate_address_p): Likewise.
24803         (enum reload_reg_type): Delete, replace with rs6000_reg_type.
24804         (rs6000_reload_register_type): Likewise.
24805         (register_to_reg_type): Return register type.
24806         (rs6000_secondary_reload_simple_move): New helper function for
24807         secondary reload and secondary memory needed to identify anything
24808         that is a simple move, and does not need reloading.
24809         (rs6000_secondary_reload_direct_move): New helper function for
24810         secondary reload to identify cases that can be done with several
24811         instructions via the direct move instructions.
24812         (rs6000_secondary_reload_move): New helper function for secondary
24813         reload to identify moves between register types that can be done.
24814         (rs6000_secondary_reload): Add support for quad memory operations
24815         and for direct move.
24816         (rs6000_secondary_memory_needed): Likewise.
24817         (rs6000_debug_secondary_memory_needed): Change argument names.
24818         (rs6000_output_move_128bit): New function to return the move to
24819         use for 128-bit moves, including knowing about the various
24820         limitations of quad memory operations.
24822         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
24823         memory operations.  call rs6000_output_move_128bit for the actual
24824         instruciton(s) to generate.
24825         (vsx_movti_64bit): Likewise.
24827         * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
24828         (UNSPEC_P8V_MTVSRWZ): Likewise.
24829         (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
24830         (UNSPEC_P8V_MTVSRD): Likewise.
24831         (UNSPEC_P8V_XXPERMDI): Likewise.
24832         (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
24833         (UNSPEC_FUSION_GPR): Likewise.
24834         (FMOVE128_GPR): New iterator for direct move.
24835         (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
24836         (f32_sv): Likewise.
24837         (f32_dm): Likewise.
24838         (zero_extend<mode>di2_internal1): Add support for power8 32-bit
24839         loads and direct move instructions.
24840         (zero_extendsidi2_lfiwzx): Likewise.
24841         (extendsidi2_lfiwax): Likewise.
24842         (extendsidi2_nocell): Likewise.
24843         (floatsi<mode>2_lfiwax): Likewise.
24844         (lfiwax): Likewise.
24845         (floatunssi<mode>2_lfiwzx): Likewise.
24846         (lfiwzx): Likewise.
24847         (fix_trunc<mode>_stfiwx): Likewise.
24848         (fixuns_trunc<mode>_stfiwx): Likewise.
24849         (mov<mode>_hardfloat, 32-bit floating point): Likewise.
24850         (mov<move>_hardfloat64, 64-bit floating point): Likewise.
24851         (parity<mode>2_cmpb): Set length/type attr.
24852         (unnamed shift right patterns, mov<mode>_internal2): Change type attr
24853         for 'mr.' to fast_compare.
24854         (bpermd_<mode>): Change type attr to popcnt.
24855         (p8_fmrgow_<mode>): New insns for power8 direct move support.
24856         (p8_mtvsrwz_1): Likewise.
24857         (p8_mtvsrwz_2): Likewise.
24858         (reload_fpr_from_gpr<mode>): Likewise.
24859         (p8_mtvsrd_1): Likewise.
24860         (p8_mtvsrd_2): Likewise.
24861         (p8_xxpermdi_<mode>): Likewise.
24862         (reload_vsx_from_gpr<mode>): Likewise.
24863         (reload_vsx_from_gprsf): Likewise.
24864         (p8_mfvsrd_3_<mode>): LIkewise.
24865         (reload_gpr_from_vsx<mode>): Likewise.
24866         (reload_gpr_from_vsxsf): Likewise.
24867         (p8_mfvsrd_4_disf): Likewise.
24868         (multi-word GPR splits): Do not split direct moves or quad memory
24869         operations.
24871 2013-06-10  David Malcolm  <dmalcolm@redhat.com>
24873         * tree-into-ssa.c (interesting_blocks): Make static.
24875 2013-06-10  Jakub Jelinek  <jakub@redhat.com>
24877         PR target/56564
24878         * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
24879         CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
24880         Use DATA_ABI_ALIGNMENT for that case instead if defined.
24881         (get_variable_align): New function.
24882         (get_variable_section, emit_bss, emit_common,
24883         assemble_variable_contents, place_block_symbol): Use
24884         get_variable_align instead of DECL_ALIGN.
24885         (assemble_noswitch_variable): Add align argument, use it
24886         instead of DECL_ALIGN.
24887         (assemble_variable): Adjust caller.  Use get_variable_align
24888         instead of DECL_ALIGN.
24889         * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
24890         caller.
24891         (DATA_ABI_ALIGNMENT): Define.
24892         * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
24893         * config/i386/i386.c (x86_data_alignment): Add opt argument.  If
24894         opt is false, only return the psABI mandated alignment increase.
24895         * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
24896         (DATA_ABI_ALIGNMENT): ... this.
24897         * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
24898         (DATA_ABI_ALIGNMENT): ... this.
24899         * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
24900         * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
24901         (DATA_ABI_ALIGNMENT): ... this.
24902         * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
24903         * doc/tm.texi: Regenerated.
24905 2013-06-10  Uros Bizjak  <ubizjak@gmail.com>
24907         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
24908         cmp_code to construct REG_EQUAL note.
24910 2013-06-09  Jakub Jelinek  <jakub@redhat.com>
24912         PR target/57568
24913         * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
24914         that operands[2] doesn't overlap with operands[0].
24916 2013-06-09  David Edelsohn  <dje.gcc@gmail.com>
24917             Jan Hubicka  <jh@suse.cz>
24919         * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
24920         hack to mark symbols as used.
24922 2013-06-08  Vladimir Makarov  <vmakarov@redhat.com>
24924         PR rtl-optimization/57559
24925         * lra-constraints.c (process_alt_operands): Don't discourage
24926         memory with known offset for offsetable memory constraint.
24927         * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
24929 2013-06-08  Eric Botcazou  <ebotcazou@adacore.com>
24931         * varasm.c (struct oc_local_state): Reorder fields.
24932         (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
24933         and adjust accordingly.
24934         (output_constructor): Reorder initialization code and adjust call to
24935         output_constructor_bitfield.
24937 2013-06-07  Jan Hubicka  <jh@suse.cz>
24939         * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
24941 2013-06-07  David Malcolm  <dmalcolm@redhat.com>
24943         * tree-object-size.c (unknown): Make const.
24945 2013-06-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24947         * config/s390/s390.md (cpu_facility): Add cpu_zarch.
24948         ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
24949         for last alternative in the cpu_facility attribute.
24951 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24953         PR target/56315
24954         * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
24955         (xordi3): Change operand 2 constraint to arm_xordi_operand.
24956         * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
24957         * config/arm/constraints.md (Dg): New constraint.
24958         * config/arm/neon.md (xordi3_neon): Remove.
24959         (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
24960         * config/arm/predicates.md (arm_xordi_operand): New predicate.
24962 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24964         * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
24965         Clean up alternatives.
24967 2013-06-07  Alan Modra  <amodra@gmail.com>
24969         * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
24970         va_list_gpr_size.
24972 2013-06-07  Alan Modra  <amodra@gmail.com>
24974         * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
24976 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24978         * config/arm/constraints.md (Df): New constraint.
24979         * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
24980         Correct length attribute for last two alternatives.
24982 2013-06-07  Alan Modra  <amodra@gmail.com>
24984         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
24985         override user -mfp-in-toc.
24986         (offsettable_ok_by_alignment): Consider just the current access
24987         rather than the whole object, unless BLKmode.  Handle
24988         CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
24989         (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
24990         for -mcmodel=medium.
24991         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
24992         override user -mfp-in-toc or -msum-in-toc.  Default to
24993         -mno-fp-in-toc for -mcmodel=medium.
24995 2013-06-06  DJ Delorie  <dj@redhat.com>
24997         * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
24998         TARGET_VALID_POINTER_MODE.
25000 2013-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
25001             Pat Haugen  <pthaugen@us.ibm.com>
25002             Peter Bergner  <bergner@vnet.ibm.com>
25004         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25005         Document new power8 builtins.
25007         * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
25008         condition code register, to allow 128-bit logical operations to be
25009         done in the VSX or GPR registers.
25010         (nor<mode>3): Use the canonical form for nor.
25011         (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
25012         vclz*, and vpopcnt* vector instructions.
25013         (nand<mode>3): Likewise.
25014         (orc<mode>3): Likewise.
25015         (clz<mode>2): LIkewise.
25016         (popcount<mode>2): Likewise.
25018         * config/rs6000/predicates.md (int_reg_operand): Rework tests so
25019         that only the GPRs are recognized.
25021         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25022         support for new power8 builtins.
25024         * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
25025         builtin functions.
25026         (xscvdpspn): Likewise.
25027         (vclz): Likewise.
25028         (vclzb): Likewise.
25029         (vclzh): Likewise.
25030         (vclzw): Likewise.
25031         (vclzd): Likewise.
25032         (vpopcnt): Likewise.
25033         (vpopcntb): Likewise.
25034         (vpopcnth): Likewise.
25035         (vpopcntw): Likewise.
25036         (vpopcntd): Likewise.
25037         (vgbbd): Likewise.
25038         (vmrgew): Likewise.
25039         (vmrgow): Likewise.
25040         (eqv): Likewise.
25041         (eqv_v16qi3): Likewise.
25042         (eqv_v8hi3): Likewise.
25043         (eqv_v4si3): Likewise.
25044         (eqv_v2di3): Likewise.
25045         (eqv_v4sf3): Likewise.
25046         (eqv_v2df3): Likewise.
25047         (nand): Likewise.
25048         (nand_v16qi3): Likewise.
25049         (nand_v8hi3): Likewise.
25050         (nand_v4si3): Likewise.
25051         (nand_v2di3): Likewise.
25052         (nand_v4sf3): Likewise.
25053         (nand_v2df3): Likewise.
25054         (orc): Likewise.
25055         (orc_v16qi3): Likewise.
25056         (orc_v8hi3): Likewise.
25057         (orc_v4si3): Likewise.
25058         (orc_v2di3): Likewise.
25059         (orc_v4sf3): Likewise.
25060         (orc_v2df3): Likewise.
25062         * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
25063         allow power8 quad mode in 64-bit.
25064         (rs6000_builtin_vectorized_function): Add support to vectorize
25065         ISA 2.07 count leading zeros, population count builtins.
25066         (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
25067         V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
25068         (builtin_function_type): Add vgbbd builtin function which takes an
25069         unsigned argument.
25070         (altivec_expand_vec_perm_const): Add support for new power8 merge
25071         instructions.
25073         * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
25074         that does not include TImdoe for use with 32-bit.
25075         (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
25076         instructions.
25077         (UNSPEC_VSX_CVDPSPN): Likewise.
25078         (vsx_xscvdpspn): Likewise.
25079         (vsx_xscvspdpn): Likewise.
25080         (vsx_xscvdpspn_scalar): Likewise.
25081         (vsx_xscvspdpn_directmove): Likewise.
25082         (vsx_and<mode>3): Split logical operations into 32-bit and
25083         64-bit. Add support to do logical operations on TImode as well as
25084         VSX vector types.  Allow logical operations to be done in either
25085         VSX registers or in general purpose registers in 64-bit mode.  Add
25086         splitters if GPRs were used. For AND, add clobber of CCmode to
25087         allow use of ANDI on GPRs.  Rewrite nor to use the canonical RTL
25088         encoding.
25089         (vsx_and<mode>3_32bit): Likewise.
25090         (vsx_and<mode>3_64bit): Likewise.
25091         (vsx_ior<mode>3): Likewise.
25092         (vsx_ior<mode>3_32bit): Likewise.
25093         (vsx_ior<mode>3_64bit): Likewise.
25094         (vsx_xor<mode>3): Likewise.
25095         (vsx_xor<mode>3_32bit): Likewise.
25096         (vsx_xor<mode>3_64bit): Likewise.
25097         (vsx_one_cmpl<mode>2): Likewise.
25098         (vsx_one_cmpl<mode>2_32bit): Likewise.
25099         (vsx_one_cmpl<mode>2_64bit): Likewise.
25100         (vsx_nor<mode>3): Likewise.
25101         (vsx_nor<mode>3_32bit): Likewise.
25102         (vsx_nor<mode>3_64bit): Likewise.
25103         (vsx_andc<mode>3): Likewise.
25104         (vsx_andc<mode>3_32bit): Likewise.
25105         (vsx_andc<mode>3_64bit): Likewise.
25106         (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
25107         and xxlorc instructions.
25108         (vsx_eqv<mode>3_64bit): Likewise.
25109         (vsx_nand<mode>3_32bit): Likewise.
25110         (vsx_nand<mode>3_64bit): Likewise.
25111         (vsx_orc<mode>3_32bit): Likewise.
25112         (vsx_orc<mode>3_64bit): Likewise.
25114         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
25116         * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
25117         instruction.
25118         (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
25119         (p8_vmrgow): Likewise.
25120         (altivec_and<mode>3): Add clobber of CCmode to allow AND using
25121         GPRs to be split under VSX.
25122         (p8v_clz<mode>2): Add power8 count leading zero support.
25123         (p8v_popcount<mode>2): Add power8 population count support.
25124         (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
25125         support.
25127         * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
25128         instruction.
25130         * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
25131         builtin functions.
25132         (vec_nand): Likewise.
25133         (vec_vclz): Likewise.
25134         (vec_vclzb): Likewise.
25135         (vec_vclzd): Likewise.
25136         (vec_vclzh): Likewise.
25137         (vec_vclzw): Likewise.
25138         (vec_vgbbd): Likewise.
25139         (vec_vmrgew): Likewise.
25140         (vec_vmrgow): Likewise.
25141         (vec_vpopcnt): Likewise.
25142         (vec_vpopcntb): Likewise.
25143         (vec_vpopcntd): Likewise.
25144         (vec_vpopcnth): Likewise.
25145         (vec_vpopcntw): Likewise.
25147 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
25149         PR rtl-optimization/57468
25150         * config/i386/i386.c (inline_secondary_memory_needed): Ignore
25151         spilled pseudos.
25153 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
25155         PR rtl-optimization/57459
25156         * lra-constraints.c (update_ebb_live_info): Fix typo for operand
25157         type when setting live regs.
25159 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
25161         * config/s390/s390.opt (mlra): New option.
25162         * config/s390/s390.c (s390_decompose_address): Check displacement
25163         for all registers for LRA.
25164         (s390_secondary_reload): Don't used secondary reloads for LRA.
25165         (s390_lra_p): New function.
25166         (TARGET_LRA_P): Define.
25167         * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
25168         of attribute cpu_facility to zarch for the last alternative.
25169         (*cmpmem_short): Ditto.
25171 2013-06-06  Eric Botcazou  <ebotcazou@adacore.com>
25173         * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
25174         (arm_compute_static_chain_stack_bytes): Use it.  Tidy up.
25175         (arm_expand_prologue): Likewise.
25177 2013-06-06  Teresa Johnson  <tejohnson@google.com>
25179         PR c++/53743
25180         * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
25181         as this is now done by redirect_edge_and_branch_force.
25182         * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
25183         barriers, and fix interaction with splitting.
25184         * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
25185         * cfgcleanup.c (try_forward_edges): Fix early return value to properly
25186         reflect changes made in the routine.
25187         * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
25188         (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
25189         since this is called in cfglayout mode, and replace partition fixup
25190         with assert as that is now done by force_nonfallthru_and_redirect.
25191         (add_reg_crossing_jump_notes): Handle the fact that some jumps may
25192         already be marked with region crossing note.
25193         (insert_section_boundary_note): Make non-static, gate on flag
25194         has_bb_partition, rewrite to also check for multiple partitions.
25195         (rest_of_handle_reorder_blocks): Remove call to
25196         insert_section_boundary_note, now done later during free_cfg.
25197         (duplicate_computed_gotos): Don't duplicate partition crossing edge.
25198         * bb-reorder.h (insert_section_boundary_note): Declare.
25199         * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
25200         * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
25201         invoke insert_section_boundary_note.
25202         (try_redirect_by_replacing_jump): Remove unnecessary
25203         check for region crossing note.
25204         (fixup_partition_crossing): New function.
25205         (rtl_redirect_edge_and_branch): Fixup partition boundaries.
25206         (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
25207         in non-cfglayout mode.
25208         (force_nonfallthru_and_redirect): Fixup partition boundaries,
25209         remove old code that tried to do this. Emit barrier correctly
25210         when we are in cfglayout mode.
25211         (last_bb_in_partition): New function.
25212         (rtl_split_edge): Correctly fixup partition boundaries.
25213         (commit_one_edge_insertion): Remove old code that tried to
25214         fixup region crossing edge since this is now handled in
25215         split_block, and set up insertion point correctly since
25216         block may now end in a jump.
25217         (verify_hot_cold_block_grouping): Guard against checking when not in
25218         linearized RTL mode.
25219         (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
25220         notes.
25221         (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
25222         rtl_verify_flow_info, so not called in cfglayout mode.
25223         (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
25224         (fixup_reorder_chain): Remove old code that attempted to fixup region
25225         crossing note as this is now handled in force_nonfallthru_and_redirect.
25226         (duplicate_insn_chain): Don't duplicate switch section notes.
25227         (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
25228         note.
25229         * basic-block.h (emit_barrier_after_bb): Declare.
25231 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25233         * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
25234         sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
25235         arm_usatsihi): Adjust alternatives for arm_restrict_it.
25237 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25239         * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
25240         where appropriate.
25241         * config/arm/ldmstm.md: Regenerate.
25243 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25245         * config/arm/sync.md (atomic_loaddi_1):
25246         Disable predication for arm_restrict_it.
25247         (arm_load_exclusive<mode>): Likewise.
25248         (arm_load_exclusivesi): Likewise.
25249         (arm_load_exclusivedi): Likewise.
25250         (arm_load_acquire_exclusive<mode>): Likewise.
25251         (arm_load_acquire_exclusivesi): Likewise.
25252         (arm_load_acquire_exclusivedi): Likewise.
25253         (arm_store_exclusive<mode>): Likewise.
25254         (arm_store_exclusive<mode>): Likewise.
25255         (arm_store_release_exclusivedi): Likewise.
25256         (arm_store_release_exclusive<mode>): Likewise.
25258 2013-06-06  Richard Biener  <rguenther@suse.de>
25260         * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
25261         after LTO_null.
25262         (lto_tag_is_tree_code_p): Adjust.
25263         (lto_tag_is_gimple_code_p): Likewise.
25264         (lto_gimple_code_to_tag): Likewise.
25265         (lto_tag_to_gimple_code): Likewise.
25266         (lto_tree_code_to_tag): Likewise.
25267         (lto_tag_to_tree_code): Likewise.
25268         * data-streamer.h (streamer_write_hwi_in_range): Use
25269         uhwi streaming to stream the normalized range.
25270         (streamer_read_hwi_in_range): Likewise.
25272 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25274         * config/arm/arm.md (enabled_for_depr_it): New attribute.
25275         (predicable_short_it): Likewise.
25276         (predicated): Likewise.
25277         (enabled): Handle above.
25278         (define_cond_exec): Set predicated attribute to yes.
25280 2013-06-05  Mike Stump  <mikestump@comcast.net>
25282         * gdbinit.in (__FUNCTION__): Add.
25284 2013-06-05  Uros Bizjak  <ubizjak@gmail.com>
25286         * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
25287         GE, GT, GEU and GTU compares, modulo DImode compares with zero.
25289 2013-06-05  Jan Hubicka  <jh@suse.cz>
25291         * varasm.c (mark_decl_referenced): Revert the removal until targets
25292         are fixed.
25294 2013-06-05  David Edelsohn  <dje.gcc@gmail.com>
25296         * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
25297         instead of mark_decl_referenced.
25299 2013-06-05  Jan Hubicka  <jh@suse.cz>
25301         * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
25302         (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
25303         and symtab_used_from_object_file_p.
25304         (cgraph_make_node_local_1): Clear forced_by_abi.
25305         (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
25306         * cgraph.h (symtab_node_base): Add forced_by_abi.
25307         (decide_is_variable_needed): Remove.
25308         (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
25309         * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
25310         (decide_is_symbol_needed): ... this one; handle symbols in general;
25311         always analyze virtuals; honnor forced_by_abi.
25312         (cgraph_finalize_function): Update.
25313         (varpool_finalize_decl): Update.
25314         (symbol_defined_and_needed): Remove.
25315         (analyze_functions): Update.
25316         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
25317         output_refs, input_overwrite_node): Handle forced_by_abi.
25318         * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
25319         (address_taken_from_non_vtable_p): ... this one.
25320         (comdat_can_be_unshared_p_1): New function.
25321         (cgraph_comdat_can_be_unshared_p): Rename to ...
25322         (comdat_can_be_unshared_p): ... this one; handle symbols in general.
25323         (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
25324         (function_and_variable_visibility): Clear forced_by_abi as needed.
25325         * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
25326         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
25327         * symtab.c (dump_symtab_base): Dump forced_by_abi.
25328         * varpool.c (decide_is_variable_needed): Remove.
25330 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25332         * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
25333         (arm_option_override): Override arm_restrict_it where appropriate.
25334         (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
25335         * config/arm/arm.opt (mrestrict-it): New command-line option.
25336         * doc/invoke.texi: Document -mrestrict-it.
25338 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
25340         * tsan.c (tsan_atomic_table): Make const.
25342 2013-06-05  Richard Biener  <rguenther@suse.de>
25344         * tree-streamer.c (streamer_tree_cache_insert_1): Update the
25345         index associated with the tree we are supposed to replace.
25346         * tree-streamer-out.c (pack_ts_base_value_fields): Output
25347         TREE_ASM_WRITTEN as zero for everything but SSA names.
25349 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
25351         * tree-ssa-structalias.c (call_stmt_vars): Make static.
25353 2013-06-04  Jan Hubicka  <jh@suse.cz>
25355         * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
25356         (input_node, input_varpool_node): Handle correctly external same
25357         body aliases.
25358         * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
25359         nodes at ltrans stage.
25361 2013-06-04  Jan Hubicka  <jh@suse.cz>
25363         * ipa-inline.c (update_caller_keys): Fix availability test.
25364         (update_callee_keys): Likewise.
25365         * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
25366         to follow ELF standard.
25368 2013-06-04  Jürgen Urban  <JuergenUrban@gmx.de>
25370         * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
25371         (mips64r5900el-*-elf*): New configurations.
25372         * config/mips/mips-cpus.def (r5900): New processor.
25373         * config/mips/mips-tables.opt: Regenerate.
25374         * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
25375         (mips_issue_rate): Handle PROCESSOR_R5900.
25376         (mips_reorg_process_insns): Force reorder mode for the R5900.
25377         * config/mips/mips.h (TARGET_MIPS5900): Define.
25378         (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
25379         TARGET_MIPS5900.
25380         (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
25381         TARGET_MIPS5900.
25382         * config/mips/mips.md (processor): Add r5900.
25383         (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
25385 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
25387         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
25388         into function to generate MOVI instruction.
25389         * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
25390         (aarch64_preferred_simd_mode): Turn into wrapper.
25391         (aarch64_output_scalar_simd_mov_immediate): New function.
25392         * config/aarch64/aarch64-protos.h: Add prototype for above.
25394 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
25396         * config/aarch64/aarch64.c (simd_immediate_info): Remove
25397         element_char member.
25398         (sizetochar): Return signed char.
25399         (aarch64_simd_valid_immediate): Remove elchar and other
25400         unnecessary variables.
25401         (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
25402         Calculate element_char as required.
25403         * config/aarch64/aarch64-protos.h: Update and move prototype
25404         for aarch64_output_simd_mov_immediate.
25405         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
25406         Update arguments.
25408 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
25410         * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
25411         information completed by aarch64_simd_valid_immediate.
25412         (aarch64_legitimate_constant_p): Update arguments.
25413         (aarch64_simd_valid_immediate): Work with struct rather than many
25414         pointers.
25415         (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
25416         (aarch64_simd_make_constant): Update arguments.
25417         (aarch64_output_simd_mov_immediate): Work with struct rather than
25418         many pointers.  Output immediate directly rather than as operand.
25419         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
25420         Update prototype.
25421         * config/aarch64/constraints.md (Dn): Update arguments.
25423 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
25425         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
25426         longer static.
25427         (aarch64_simd_immediate_valid_for_move): Remove.
25428         (aarch64_simd_scalar_immediate_valid_for_move): Update call.
25429         (aarch64_simd_make_constant): Update call.
25430         (aarch64_output_simd_mov_immediate): Update call.
25431         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
25432         Add prototype.
25433         * config/aarch64/constraints.md (Dn): Update call.
25435 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
25437         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
25438         return type to bool for prototype.
25439         (aarch64_legitimate_constant_p): Check for true instead of not -1.
25440         (aarch64_simd_valid_immediate): Fix up each return to return a bool.
25441         (aarch64_simd_immediate_valid_for_move): Update retval for bool.
25443 2013-06-04  Catherine Moore  <clm@codesourcery.com>
25445         * config/mips/mips.opt (meva): New.
25446         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
25447         (ASM_SPEC): Handle -meva.
25448         * doc/invoke.texi (meva):  Document.
25450 2013-06-04  Alan Modra  <amodra@gmail.com>
25452         * config/rs6000/rs6000.c (output_toc): Correct little-endian float
25453         constant output.
25455 2013-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25457         * rtl.def: Add extra fourth optional field to define_cond_exec.
25458         * gensupport.c (process_one_cond_exec): Process attributes from
25459         define_cond_exec.
25460         * doc/md.texi: Document fourth field in define_cond_exec.
25462 2013-06-04  Eric Botcazou  <ebotcazou@adacore.com>
25464         * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
25465         out the processing order as in store_bit_field_1.
25467 2013-06-04  Jan Hubicka  <jh@suse.cz>
25469         PR middle-end/57500
25470         * cgraphunit.c (cgraph_process_same_body_aliases): Create
25471         non-VAR_DECL node if it does not exist yet.
25473 2013-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
25475         * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
25476         (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
25477         (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
25478         target_cpu_default setting.
25480 2013-06-03  Teresa Johnson  <tejohnson@google.com>
25482         * dumpfile.c (opt_info_switch_p): Change -fopt-info
25483         default to -fopt-info=optimized instead of all.
25484         * doc/invoke.texi: Ditto.
25485         * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
25486         success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
25487         (execute_vect_slp): Emit BB vectorization success under
25488         MSG_OPTIMIZED_LOCATIONS.
25489         * tree-vect-slp.c (vect_slp_transform_bb): Change
25490         MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
25491         * tree-vect-loop.c (vect_transform_loop): Ditto.
25493 2013-06-03  Jason Merrill  <jason@redhat.com>
25495         PR c++/57415
25496         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25497         Use TARGET_EXPR for C++.
25499 2013-06-03  Jakub Jelinek  <jakub@redhat.com>
25501         PR rtl-optimization/57268
25502         * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
25503         if DEBUG_INSN_P (insn).
25505         Reapply
25506         2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
25508         PR rtl-optimization/57268
25509         * sched-deps.c (sched_analyze_2): Flush dependence lists if
25510         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
25512 2013-06-03  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
25514         * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
25515         (ix86_avoid_lea_for_addr): Likewise.
25516         (exact_dependency_1): Likewise.
25517         (ix86_adjust_cost): Likewise.
25518         (swap_top_of_ready_list): Fix formatting and !reload_completed check
25519         removed.
25520         (do_reorder_for_imul): Fix typo, formatting and
25521         !reload_completed check removed.
25522         (ix86_sched_reorder): Fix typo and formatting.
25523         (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
25524         list.
25526 2013-06-03  Sofiane Naci  <sofiane.naci@arm.com>
25528         * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
25530 2013-06-03  Eric Botcazou  <ebotcazou@adacore.com>
25532         * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
25533         <STRING_CST>: Likewise.
25534         <VECTOR_CST>: Likewise.
25536 2013-06-01  Janus Weil  <janus@gcc.gnu.org>
25537             Mikael Morin  <mikael@gcc.gnu.org>
25539         * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
25540         * config.in: Regenerated.
25541         * configure: Regenerated.
25543 2013-06-01  Jan Hubicka  <jh@suse.cz>
25545         PR middle-end/57366
25546         * cgraphunit.c (compile): When weakref is not supported,
25547         set up transparent aliases before final output pass.
25548         * varasm.c (assemble_alias): Do not try to do it here.
25550 2013-06-01  Jan Hubicka  <jh@suse.cz>
25552         PR middle-end/57467
25553         * passes.c (for_per_function): Skip unanalyzed functions.
25555 2013-06-01  Jan Hubicka  <jh@suse.cz>
25557         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
25558         (lto_symtab_merge_symbols_1): ... this one.
25559         (lto_symtab_merge_cgraph_nodes): Rename to ...
25560         (lto_symtab_merge_symbols): ... this one; simplify.
25561         * cgraph.c (same_body_aliases_done): Rename to ...
25562         (cpp_implicit_aliases_done): ... this one.
25563         (cgraph_create_function_alias): Update.
25564         (cgraph_same_body_alias): Update.
25565         (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
25566         (verify_edge_corresponds_to_fndecl): Simplify.
25567         * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
25568         (cgraph_node): Remove same_body_alias.
25569         (varpool_node): Remove alias_of and extra_name_alias.
25570         (same_body_aliases_done): Rename to ..
25571         (cpp_implicit_aliases_done): ... this one.
25572         (symtab_alias_ultimate_target): Add default parameter.
25573         (symtab_resolve_alias): New function.
25574         (fixup_same_cpp_alias_visibility): Declare.
25575         (cgraph_function_node): Add default parameter.
25576         (cgraph_node_asm_name): Likewise.
25577         (cgraph_function_or_thunk_node): Add default parameter; do
25578         not ICE when it is NULL.
25579         (varpool_variable_node): Likewise.
25580         * tree-emutls.c (create_emultls_var): Update.
25581         (ipa_lower_emutls): Update.
25582         * cgraphunit.c (cgraph_decide_is_function_needed): Update.
25583         (cgraph_reset_node): Reset alias info.
25584         (cgraph_finalize_function): Update.
25585         (fixup_same_cpp_alias_visibility): Move to symtab.c.
25586         (analyze_function): Simplify.
25587         (cgraph_process_same_body_aliases): Simplify.
25588         (analyze_functions): Fixup same body aliases.
25589         (handle_alias_pairs): Simplify.
25590         (assemble_thunk): Update.
25591         (assemble_thunks_and_aliases): Update.
25592         (output_weakrefs): Rewrite.
25593         * lto-cgraph.c (lto_output_node): Rewrite alias handling.
25594         (lto_output_varpool_node): Likewise.
25595         (compute_ltrans_boundary): Remve assert.
25596         (get_alias_symbol): New functoin.
25597         (input_node): Rewrite alias handling.
25598         (input_varpool_node): Likewise.
25599         * ipa-pure-const.c (propagate_pure_const): Fix formating.
25600         * ipa.c (process_references): Handle weakrefs correctly.
25601         (symtab_remove_unreachable_nodes): Likewise.
25602         * trans-mem.c (get_cg_data): Update.
25603         (ipa_tm_create_version_alias): Update.
25604         (ipa_tm_execute): Update.
25605         * symtab.c (dump_symtab_base): Dump aliases.
25606         (verify_symtab_base): Verify aliases.
25607         (symtab_node_availability): New function.
25608         (symtab_alias_ultimate_target): Simplify.
25609         (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
25610         handle all the fixup cases.
25611         (symtab_resolve_alias): New function.
25612         * passes.c (ipa_write_summaries): Handle weakrefs.
25613         * varpool.c (varpool_analyze_node): Simplify.
25614         (assemble_aliases): Update.
25615         (varpool_create_variable_alias): Simplify.
25616         (varpool_extra_name_alias): Simplify.
25617         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
25618         (lto_symtab_merge_symbols): ... this one.
25620 2013-06-01  Dinar Temirbulatov  <dinar@kugelworks.com>
25622         Revert
25623         PR rtl-optimization/57268
25624         * sched-deps.c (sched_analyze_2): Flush dependence lists if
25625         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
25627 2013-06-01  Tobias Burnus  <burnus@net-b.de>
25629         Partially reverted:
25630         2013-05-31  Tobias Burnus  <burnus@net-b.de>
25632         PR middle-end/57073
25633         * tree-ssa-math-opts.c (execute_cse_sincos): Move check
25634         further up.
25636 2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
25638         PR rtl-optimization/57268
25639         * sched-deps.c (sched_analyze_2): Flush dependence lists if
25640         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
25642 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
25644         * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
25645         unordered comparison operators when -fno-trapping-math is in effect
25646         on the e500.
25647         * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
25648         and implement unordered comparison operators properly on the e500.
25650 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
25652         * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
25653         for constant scalar integers.
25654         (simplify_relational_operation_1): Likewise.
25656 2013-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
25658         * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
25659         * config/rs6000/rs6000.md (cpu): Reorder.  Split long line.
25660         Fix comment.
25662 2013-05-31  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
25663             Igor Zamyatin  <igor.zamyatin@intel.com>
25665         Silvermont (SLM) architecture performance tuning.
25666         * config/i386/i386.h (enum ix86_tune_indices): Add
25667         X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
25668         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
25670         * config/i386/i386.c (initial_ix86_tune_features)
25671         <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
25672         (ix86_lea_outperforms): Handle Silvermont tuning.
25673         (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
25674         call.
25675         (ix86_use_lea_for_mov): Likewise.
25676         (ix86_avoid_lea_for_addr): Likewise.
25677         (ix86_lea_for_add_ok): Likewise.
25678         (exact_dependency_1): New function.
25679         (exact_store_load_dependency): Likewise.
25680         (ix86_adjust_cost): Handle Silvermont tuning.
25681         (do_reoder_for_imul): Likewise.
25682         (swap_top_of_ready_list): New function.
25683         (ix86_sched_reorder): Changed to handle Silvermont tuning.
25685         * config/i386/i386.md (peepholes that split memory operand in fp
25686         converts): New.
25688 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
25690         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
25691         Remove un-necessary braces.
25693 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
25695         * config/aarch64/aarch64.c (aarch64_classify_symbol):
25696         Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
25698 2013-05-31  Tobias Burnus  <burnus@net-b.de>
25700         PR middle-end/57073
25701         * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
25703 2013-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25705         PR target/56315
25706         * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
25707         * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
25708         * config/arm/neon.md (iordi3_neon): Remove.
25709         (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
25710         * config/arm/predicates.md (imm_for_neon_logic_operand):
25711         Move to earlier in the file.
25712         (neon_logic_op2): Likewise.
25713         (arm_iordi_operand_neon): New predicate.
25715 2013-05-31  Richard Biener  <rguenther@suse.de>
25717         PR tree-optimization/57478
25718         PR tree-optimization/57453
25719         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
25720         are life as well.
25722 2013-05-31  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
25724         * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
25725         (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
25727 2013-05-30  Tobias Burnus  <burnus@net-b.de>
25728             Thomas Koenig  <tkoenig@gcc.gnu.org>
25730         PR middle-end/57073
25731         * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
25732         powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
25734 2013-05-30  Steven Bosscher  <steven@gcc.gnu.org>
25736         * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
25738 2013-05-30  Vladimir Makarov  <vmakarov@redhat.com>
25740         * target.def (register_usage_leveling_p): New hook.
25741         * targhooks.c (default_register_usage_leveling_p): New.
25742         * targhooks.h (default_register_usage_leveling_p): New prototype.
25743         * lra-assigns.c (register_usage_leveling_p): Use the hook.
25744         * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
25745         * doc/tm.texi: Update.
25746         * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
25748 2013-05-30  Ian Bolton  <ian.bolton@arm.com>
25750         * config/aarch64/aarch64.md (insv<mode>): New define_expand.
25751         (*insv_reg<mode>): New define_insn.
25753 2013-05-30  Joern Rennecke  <joern.rennecke@embecosm.com>
25755         PR rtl-optimization/57439
25756         * postreload.c (move2add_valid_value_p): Check that we have
25757         a zero subreg_regno_offset when accessing the register in
25758         the requested mode.
25760 2013-05-30  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
25761             Igor Zamyatin  <igor.zamyatin@intel.com>
25763         Silvermont (SLM) architecture pipeline model, tuning and
25764         insn selection.
25765         * config.gcc: Add slm config options and target.
25767         * config/i386/slm.md: New.
25769         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
25771         * config/i386/i386-c.c (ix86_target_macros_internal):  New case
25772         PROCESSOR_SLM.
25773         (ix86_target_macros_internal): Likewise.
25775         * config/i386/i386.c (slm_cost): New cost.
25776         (m_SLM): New macro flag.
25777         (initial_ix86_tune_features): Set m_SLM.
25778         (x86_accumulate_outgoing_args): Likewise.
25779         (x86_arch_always_fancy_math_387): Likewise.
25780         (processor_target_table): Add slm cost.
25781         (cpu_names): Add slm cpu name.
25782         (x86_option_override_internal): Set SLM ISA.
25783         (ix86_issue_rate): New case PROCESSOR_SLM.
25784         (ia32_multipass_dfa_lookahead): Likewise.
25785         (fold_builtin_cpu): Add slm.
25787         * config/i386/i386.h (TARGET_SLM): New target macro.
25788         (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
25789         (processor_type): Add PROCESSOR_SLM.
25791         * config/i386/i386.md (cpu): Add new value "slm".
25792         (slm.md): Include slm.md.
25794 2013-05-30  Bernd Schmidt  <bernds@codesourcery.com>
25795             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25797         * config/arm/arm-protos.h: Add and update function protos.
25798         * config/arm/arm.c (use_simple_return_p): New added.
25799         (thumb2_expand_return): Check simple_return flag.
25800         * config/arm/arm.md: Add simple_return and conditional simple_return.
25801         * config/arm/iterators.md: Add iterator for return and simple_return.
25803 2013-05-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25805         * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
25806         (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
25807         (arm_emit_vfp_multi_reg_pop): Likewise.
25808         (thumb2_emit_ldrd_pop): Likewise.
25809         (arm_expand_epilogue): Add misc REG_CFA notes.
25810         (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
25812 2013-05-29  Lawrence Crowl  <crowl@google.com>
25814         * config/arm/t-arm: Update for below.
25816         * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
25817         Change type to hash_table.  Update dependent calls and types.
25819         * config/i386/t-cygming: Update for below.
25821         * config/i386/t-interix: Update for below.
25823         * config/i386/winnt.c (i386_pe_section_type_flags::htab):
25824         Change type to hash_table.  Update dependent calls and types.
25825         (i386_find_on_wrapper_list::wrappers): Likewise.
25827         * config/ia64/t-ia64: Update for below.
25829         * config/ia64/ia64.c (bundle_state_table):
25830         Change type to hash_table.  Update dependent calls and types.
25832         * config/mips/mips.c (mips_reorg_process_insns::htab):
25833         Change type to hash_table.  Update dependent calls and types.
25835         * config/sol2.c (solaris_comdat_htab):
25836         Change type to hash_table.  Update dependent calls and types.
25838         * config/t-sol2: Update for above.
25840 2013-05-29  Teresa Johnson  <tejohnson@google.com>
25842         * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
25843         functions are not yet marked as defined.
25845 2013-05-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
25846             Pat Haugen  <pthaugen@us.ibm.com>
25847             Peter Bergner  <bergner@vnet.ibm.com>
25849         * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
25850         instructions.
25851         (VEC_A): Likewise.
25852         (VEC_C): Likewise.
25853         (vrotl<mode>3): Likewise.
25854         (vashl<mode>3): Likewise.
25855         (vlshr<mode>3): Likewise.
25856         (vashr<mode>3): Likewise.
25858         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25859         support for power8 V2DI builtins.
25861         * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
25862         power8 V2DI builtins.
25863         (vupkhsw): Likewise.
25864         (vupklsw): Likewise.
25865         (vaddudm): Likewise.
25866         (vminsd): Likewise.
25867         (vmaxsd): Likewise.
25868         (vminud): Likewise.
25869         (vmaxud): Likewise.
25870         (vpkudum): Likewise.
25871         (vpksdss): Likewise.
25872         (vpkudus): Likewise.
25873         (vpksdus): Likewise.
25874         (vrld): Likewise.
25875         (vsld): Likewise.
25876         (vsrd): Likewise.
25877         (vsrad): Likewise.
25878         (vsubudm): Likewise.
25879         (vcmpequd): Likewise.
25880         (vcmpgtsd): Likewise.
25881         (vcmpgtud): Likewise.
25882         (vcmpequd_p): Likewise.
25883         (vcmpgtsd_p): Likewise.
25884         (vcmpgtud_p): Likewise.
25885         (vupkhsw): Likewise.
25886         (vupklsw): Likewise.
25887         (vaddudm): Likewise.
25888         (vmaxsd): Likewise.
25889         (vmaxud): Likewise.
25890         (vminsd): Likewise.
25891         (vminud): Likewise.
25892         (vpksdss): Likewise.
25893         (vpksdus): Likewise.
25894         (vpkudum): Likewise.
25895         (vpkudus): Likewise.
25896         (vrld): Likewise.
25897         (vsld): Likewise.
25898         (vsrad): Likewise.
25899         (vsrd): Likewise.
25900         (vsubudm): Likewise.
25902         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
25903         support for power8 V2DI instructions.
25905         * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
25906         power8 V2DI instructions.  Combine pack and unpack insns to use an
25907         iterator for each mode.  Check whether a particular mode supports
25908         Altivec instructions instead of just checking TARGET_ALTIVEC.
25909         (UNSPEC_VPKUWUM): Likewise.
25910         (UNSPEC_VPKSHSS): Likewise.
25911         (UNSPEC_VPKSWSS): Likewise.
25912         (UNSPEC_VPKUHUS): Likewise.
25913         (UNSPEC_VPKSHUS): Likewise.
25914         (UNSPEC_VPKUWUS): Likewise.
25915         (UNSPEC_VPKSWUS): Likewise.
25916         (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
25917         (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
25918         (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
25919         (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
25920         (UNSPEC_VUPKHSB): Likewise.
25921         (UNSPEC_VUNPACK_HI_SIGN): Likewise.
25922         (UNSPEC_VUNPACK_LO_SIGN): Likewise.
25923         (UNSPEC_VUPKHSH): Likewise.
25924         (UNSPEC_VUPKLSB): Likewise.
25925         (UNSPEC_VUPKLSH): Likewise.
25926         (VI2): Likewise.
25927         (VI_char): Likewise.
25928         (VI_scalar): Likewise.
25929         (VI_unit): Likewise.
25930         (VP): Likewise.
25931         (VP_small): Likewise.
25932         (VP_small_lc): Likewise.
25933         (VU_char): Likewise.
25934         (add<mode>3): Likewise.
25935         (altivec_vaddcuw): Likewise.
25936         (altivec_vaddu<VI_char>s): Likewise.
25937         (altivec_vadds<VI_char>s): Likewise.
25938         (sub<mode>3): Likewise.
25939         (altivec_vsubcuw): Likewise.
25940         (altivec_vsubu<VI_char>s): Likewise.
25941         (altivec_vsubs<VI_char>s): Likewise.
25942         (altivec_vavgs<VI_char>): Likewise.
25943         (altivec_vcmpbfp): Likewise.
25944         (altivec_eq<mode>): Likewise.
25945         (altivec_gt<mode>): Likewise.
25946         (altivec_gtu<mode>): Likewise.
25947         (umax<mode>3): Likewise.
25948         (smax<mode>3): Likewise.
25949         (umin<mode>3): Likewise.
25950         (smin<mode>3): Likewise.
25951         (altivec_vpkuhum): Likewise.
25952         (altivec_vpkuwum): Likewise.
25953         (altivec_vpkshss): Likewise.
25954         (altivec_vpkswss): Likewise.
25955         (altivec_vpkuhus): Likewise.
25956         (altivec_vpkshus): Likewise.
25957         (altivec_vpkuwus): Likewise.
25958         (altivec_vpkswus): Likewise.
25959         (altivec_vpks<VI_char>ss): Likewise.
25960         (altivec_vpks<VI_char>us): Likewise.
25961         (altivec_vpku<VI_char>us): Likewise.
25962         (altivec_vpku<VI_char>um): Likewise.
25963         (altivec_vrl<VI_char>): Likewise.
25964         (altivec_vsl<VI_char>): Likewise.
25965         (altivec_vsr<VI_char>): Likewise.
25966         (altivec_vsra<VI_char>): Likewise.
25967         (altivec_vsldoi_<mode>): Likewise.
25968         (altivec_vupkhsb): Likewise.
25969         (altivec_vupkhs<VU_char>): Likewise.
25970         (altivec_vupkls<VU_char>): Likewise.
25971         (altivec_vupkhsh): Likewise.
25972         (altivec_vupklsb): Likewise.
25973         (altivec_vupklsh): Likewise.
25974         (altivec_vcmpequ<VI_char>_p): Likewise.
25975         (altivec_vcmpgts<VI_char>_p): Likewise.
25976         (altivec_vcmpgtu<VI_char>_p): Likewise.
25977         (abs<mode>2): Likewise.
25978         (vec_unpacks_hi_v16qi): Likewise.
25979         (vec_unpacks_hi_v8hi): Likewise.
25980         (vec_unpacks_lo_v16qi): Likewise.
25981         (vec_unpacks_hi_<VP_small_lc>): Likewise.
25982         (vec_unpacks_lo_v8hi): Likewise.
25983         (vec_unpacks_lo_<VP_small_lc>): Likewise.
25984         (vec_pack_trunc_v8h): Likewise.
25985         (vec_pack_trunc_v4si): Likewise.
25986         (vec_pack_trunc_<mode>): Likewise.
25988         * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
25989         V2DI builtins.
25990         (vec_vmaxsd): Likewise.
25991         (vec_vmaxud): Likewise.
25992         (vec_vminsd): Likewise.
25993         (vec_vminud): Likewise.
25994         (vec_vpksdss): Likewise.
25995         (vec_vpksdus): Likewise.
25996         (vec_vpkudum): Likewise.
25997         (vec_vpkudus): Likewise.
25998         (vec_vrld): Likewise.
25999         (vec_vsld): Likewise.
26000         (vec_vsrad): Likewise.
26001         (vec_vsrd): Likewise.
26002         (vec_vsubudm): Likewise.
26003         (vec_vupkhsw): Likewise.
26004         (vec_vupklsw): Likewise.
26006 2013-05-29  Jan Hubicka  <jh@suse.cz>
26008         * cgraph.h (symtab_node_base): Add definition, alias and analyzed
26009         flags; reorder rest of fields in more consistent way.
26010         (varpool_node): Remove analyzed, finalized and alias.
26011         (cgraph_ndoe): Likewise.
26012         (symtab_alias_ultimate_target): New function.
26013         (cgraph_function_node): Move offline.
26014         (cgraph_reset_node): Declare.
26015         (cgraph_comdat_can_be_unshared_p): Remove.
26016         (varpool_remove_initializer): Declare.
26017         (varpool_first_defined_variable, varpool_next_defined_variable
26018         cgraph_first_defined_function, cgraph_next_defined_function): Update.
26019         (cgraph_function_with_gimple_body_p): Update.
26020         (varpool_all_refs_explicit_p): Update.
26021         (symtab_alias_target): New function.
26022         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
26023         (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
26024         (cgraph_function_or_thunk_node): Simplify using
26025         symtab_alias_ultimate_target.
26026         (varpool_variable_node): Likewise.
26027         * cgraph.c (cgraph_create_function_alias): Update.
26028         (cgraph_add_thunk): Update.
26029         (cgraph_remove_node): Update.
26030         (dump_cgraph_node): Do not dump removed flags.
26031         (cgraph_function_body_availability): Update.
26032         (cgraph_propagate_frequency): Update.
26033         (verify_cgraph_node): Check sanity of local flag.
26034         (cgraph_function_node): Move here from cgraph.h; revamp for
26035         cgraph_function_or_thunk_node.
26036         * lto-symtab.c (lto_varpool_replace_node): Update.
26037         (lto_symtab_resolve_can_prevail_p): Update.
26038         (lto_symtab_merge_cgraph_nodes): Update.
26039         * ipa-cp.c (determine_versionability, initialize_node_lattices,
26040         propagate_constants_accross_call, devirtualization_time_bonus,
26041         ipcp_propagate_stage): Update.
26042         * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
26043         * ipa-inline-transform.c (clone_inlined_nodes,
26044         preserve_function_body_p): Update.
26045         * ipa-reference.c (propagate): Update.
26046         (write_node_summary_p): Update.
26047         * toplev.c (wrapup_global_declaration_2): Update.
26048         * cgraphunit.c (cgraph_analyze_function): Rename to ...
26049         (analyze_function) ... this one.
26050         (cgraph_process_new_functions): Update.
26051         (cgraph_reset_node): Export.
26052         (cgraph_finalize_function): Update.
26053         (cgraph_add_new_function): Update.
26054         (process_function_and_variable_attributes): Update.
26055         (varpool_finalize_decl): Update.
26056         (symbol_finalized): Remove.
26057         (symbol_finalized_and_needed): Rename to ...
26058         (symbol_defined_and_needed): ... update.
26059         (cgraph_analyze_functions): Update.
26060         (handle_alias_pairs): Update.
26061         (mark_functions_to_output): Update.
26062         (assemble_thunk): Update.
26063         (output_in_order): Update.
26064         (output_weakrefs): Update.
26065         (finalize_compilation_unit): Update.
26066         * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
26067         lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
26068         input_node, input_varpool_node): Update.
26069         * dbxout.c (dbxout_expand_expr): Update.
26070         * cgraphclones.c (cgraph_clone_node): Update.
26071         (cgraph_copy_node_for_versioning): Update.
26072         (cgraph_materialize_clone): Update.
26073         (cgraph_materialize_all_clones): Update.
26074         * ipa-pure-const.c (analyze_function, pure_const_write_summary,
26075         propagate_pure_const, propagate_nothrow): Update.
26076         * lto-streamer-out.c (lto_output, write_symbol): Update.
26077         * ipa-utils.c (ipa_reverse_postorder): Update.
26078         * ipa-inline.c (can_inline_edge_p): Update.
26079         (update_caller_keys, ipa_inline): Update.
26080         * dwarf2out.c (reference_to_unused,
26081         premark_types_used_by_global_vars_helper): Update.
26082         * tree-eh.c (tree_could_trap_p): Update.
26083         * ipa-split.c (consider_split, execute_split_functions): Update.
26084         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
26085         has_addr_references_p): Update; move ahead in file for better
26086         readability.
26087         (process_references): Simplify.
26088         (symtab_remove_unreachable_nodes): Update; cleanup way function/var
26089         bodies are removed.
26090         (cgraph_comdat_can_be_unshared_p): Make static.
26091         (cgraph_externally_visible_p): Update.
26092         (varpool_externally_visible_p): Update.
26093         (function_and_variable_visibility): Update.
26094         * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
26095         ipa_tm_mark_force_output_node): Update.
26096         * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
26097         estimate_edge_devirt_benefit, inline_generate_summary,
26098         inline_write_summary): Update.
26099         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
26100         * ipa-prop.c (ipa_compute_jump_functions): Update.
26101         (ipa_print_node_params, ipa_prop_read_section,
26102         ipa_update_after_lto_read, read_replacements_section): Update.
26103         * varasm.c (mark_decl_referenced): Update.
26104         (assemble_alias, dump_tm_clone_pairs): Update.
26105         * tree-inline.c (copy_bb): Update.
26106         (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
26107         Update.
26108         * symtab.c (dump_symtab_base): Print new flags.
26109         (verify_symtab_base): Verify new flags.
26110         (symtab_alias_ultimate_target): New function.
26111         * tree-ssa-structalias.c (get_constraint_for_ssa_var,
26112         create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
26113         Update.
26114         * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
26115         Update.
26116         * i386.c (ix86_get_function_versions_dispatcher,
26117         ix86_generate_version_dispatcher_body): Update.
26118         (fold_builtin_cpu): Use varpool_add_new_variable.
26119         * varpool.c (varpool_remove_initializer): Break out from ...
26120         (varpool_remove_node): ... this one.
26121         (dump_varpool_node, varpool_node_for_asm,
26122         cgraph_variable_initializer_availability, varpool_analyze_node,
26123         varpool_assemble_decl, varpool_remove_unreferenced_decls,
26124         varpool_finalize_named_section_flags, varpool_create_variable_alias):
26125         Update.
26127 2013-05-29  Jan Hubicka  <jh@suse.cz>
26129         * passes.c (init_optimization_passes): Move OMP expansion into lowering.
26131 2013-05-29  Easwaran Raman  <eraman@google.com>
26133         PR tree-optimization/57442
26134         * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
26135         when control exits the main loop.
26137 2013-05-29  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
26139         * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
26140         and RX600.
26141         * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
26142         * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
26143         * rx/t-rx: Add rx100 under multi library matches option for nofpu
26144         option.
26146 2013-05-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26148         PR tree-optimization/57441
26149         * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
26150         Don't limit size of incr_vec to number of candidates.
26152 2013-05-29  Steve Ellcey  <sellcey@imgtec.com>
26154         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
26155         and mips16 directories.
26156         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
26157         (MULTILIB_DIRNAMES): Ditto.
26158         (MULTILIB_EXCEPTIONS): Add new exceptions.
26159         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
26160         (MULTILIB_DIRNAMES): Ditto.
26161         (MULTILIB_EXCEPTIONS): Add new exceptions.
26163 2012-05-29  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
26164             Marcus Shawcroft  <marcus.shawcroft@arm.com>
26166         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
26167         SYMBOL_TINY_ABSOLUTE.
26168         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
26169         SYMBOL_TINY_ABSOLUTE.
26170         (aarch64_expand_mov_immediate): Likewise.
26171         (aarch64_classify_symbol): Likewise.
26172         (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
26173         Permit SYMBOL_TINY_ABSOLUTE.
26174         * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
26176 2013-05-29  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
26177             Marcus Shawcroft  <marcus.shawcroft@arm.com>
26179         * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
26180         Refactor if/switch.  Replace gcc_assert with if.
26182 2013-05-29  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
26184         * config/i386/i386.c (initial_ix86_tune_features): Enable
26185         FP Reassociation for AMD bdver1 and bdver2.
26187 2013-05-29  Martin Jambor  <mjambor@suse.cz>
26189         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
26190         and IMAGPART_EXPR do not occur within other handled_components.
26192 2013-05-29  Richard Biener  <rguenther@suse.de>
26194         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
26195         access on whether the use is in the BB we currently try to
26196         vectorize.
26197         (vect_bb_vectorization_profitable_p): Pass the BB we currently
26198         vectorize to vect_bb_slp_scalar_cost.
26200 2013-05-29  Richard Biener  <rguenther@suse.de>
26202         * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
26203         computing scalar cost offsetted by stmts that are kept live
26204         by scalar uses.
26205         (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
26206         for computation of scalar cost.
26208 2013-05-28  Steve Ellcey  <sellcey@mips.com>
26210         * config/mips/mips-cpus.def (mips32r2): Change processor type.
26212 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
26214         * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
26215         array notation built-in reduction functions.
26216         * doc/passes.texi (Passes): Added documentation about changes done
26217         for Cilk Plus.
26218         * doc/invoke.texi (C Dialect Options): Added documentation about
26219         the -fcilkplus flag.
26220         * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
26221         (BUILTINS_DEF): Depend on cilkplus.def.
26222         * builtins.def: Include cilkplus.def.  Define DEF_CILKPLUS_BUILTIN.
26223         * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
26224         * cilkplus.def: New file.
26226 2013-05-28  Joern Rennecke  <joern.rennecke@embecosm.com>
26228         PR rtl-optimization/57439
26229         * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
26231 2013-05-28  Easwaran Raman  <eraman@google.com>
26233         PR tree-optimization/57337
26234         * tree-ssa-reassoc.c (appears_later_in_bb): New function.
26235         (find_insert_point): Correctly identify the insertion point
26236         when two statements with the same UID is compared.
26238 2013-05-28  Richard Biener  <rguenther@suse.de>
26240         PR tree-optimization/56787
26241         * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
26242         from the list of data references.
26243         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
26244         clobbers.
26245         (vect_analyze_loop_operations): Likewise.
26246         (vect_transform_loop): Remove clobbers.
26248 2013-05-28  Martin Jambor  <mjambor@suse.cz>
26250         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
26251         and REALPART_EXPRs have scalar type.
26253 2013-05-28  Richard Biener  <rguenther@suse.de>
26255         PR tree-optimization/57411
26256         * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
26257         virtual operands.
26258         * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
26259         virtual operand propagation.
26261 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
26263         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
26264         destination register for bmasksi_vis.
26265         (vector_init_bshuffle): Likewise.
26266         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
26268 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
26270         * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
26271         * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
26272         mode if the instruction isn't available in the original mode.
26273         * config/sparc/sparc.opt (mfix-ut699): New option.
26274         * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
26275         (divdf3): Turn into expander.
26276         (divdf3_nofix): New insn.
26277         (divdf3_fix): Likewise.
26278         (divsf3): Disable if -mfix-ut699.
26279         (sqrtdf2): Turn into expander.
26280         (sqrtdf2_nofix): New insn.
26281         (sqrtdf2_fix): Likewise.
26282         (sqrtsf2): Disable if -mfix-ut699.
26284 2013-05-27  Richard Biener  <rguenther@suse.de>
26286         PR middle-end/57412
26287         * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
26288         block for the new loop.
26290 2013-05-27  Richard Biener  <rguenther@suse.de>
26292         PR tree-optimization/57343
26293         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
26294         use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
26295         (number_of_iterations_cond): Do not build the folded tree.
26297 2013-05-27  Richard Biener  <rguenther@suse.de>
26299         Revert
26300         PR middle-end/57381
26301         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
26302         OEP_CONSTANT_ADDRESS_OF retained.
26304         PR tree-optimization/57417
26305         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
26306         for unchanged base.
26307         (set_ssa_val_to): Compare addresses using
26308         get_addr_base_and_unit_offset.
26310 2013-05-27  Joern Rennecke  <joern.rennecke@embecosm.com>
26312         PR rtl-optimization/56833
26313         * postreload.c (move2add_record_mode): New function.
26314         (move2add_record_sym_value, move2add_valid_value_p): Likewise.
26315         (move2add_use_add2_insn): Use move2add_record_sym_value.
26316         (move2add_use_add3_insn): Likewise.
26317         (reload_cse_move2add): Use move2add_valid_value_p and
26318         move2add_record_mode.  Invalidate call-clobbered and REG_INC
26319         affected regs by setting reg_mode to VOIDmode.
26320         (move2add_note_store): Don't pretend the inside of a SUBREG is
26321         the actual destination.  Invalidate single/leading registers by
26322         setting reg_mode to VOIDmode.
26323         Use move2add_record_sym_value, move2add_valid_value_p and
26324         move2add_record_mode.
26326 2013-05-27  Richard Biener  <rguenther@suse.de>
26328         PR tree-optimization/57396
26329         * tree-affine.c (double_int_constant_multiple_p): Properly
26330         return false for val == 0 and div != 0.
26332 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
26334         * config/mips/mips.h: Use #elif in preprocessor conditions.
26336 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
26338         PR target/53916
26339         * config/mips/constraints.md (kl): New constraint.
26340         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
26341         (divmod<mode>4_internal): Rename to divmod<mode>4.  Use "kl" as the
26342         constraint for operand 0.  Split after CSE for MIPS16.  Emit a move
26343         from LO for MIPS16.
26344         (udivmod<mode>4_internal): Likewise udivmod<mode>4.
26346 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
26348         PR target/55777
26349         * config/mips/mips.c (mips_can_inline_p): New function.
26350         (TARGET_CAN_INLINE_P): Define.
26352 2013-05-25  Steven Bosscher  <steven@gcc.gnu.org>
26354         * sched-int.h (ds_t, dw_t): Make unsigned int.
26355         Fix documentation that describes how all the ds_t bits are used.
26356         Reserve the last bit for delayed-branch scheduling.
26357         (BITS_PER_DEP_STATUS): Move to ds_t typedef.
26358         (BITS_PER_DEP_WEAK): Fix definition and documentation.
26359         (gen_dep_weak_1): Remove prototype.
26360         * sched-deps.c (get_dep_weak_1): Make static.
26361         * target.def (speculate_insn, needs_block_p, gen_spec_check,
26362         get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
26363         * doc/tm.texi: Regenerate.
26364         * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
26366 2013-05-24  Steven Bosscher  <steven@gcc.gnu.org>
26368         PR debug/56950
26369         * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
26371 2013-05-24  Nathan Sidwell  <nathan@codesourcery.com>
26372             Sandra Loosemore  <sandra@codesourcery.com>
26374         * config.gcc (powerpc-*): Allow native for with-cpu.
26376 2013-05-24  Jeff Law  <law@redhat.com>
26378         PR tree-optimization/57124
26379         * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
26380         conversion feeding a condition if the range has an overflow
26381         if -fstrict-overflow.  Add warnings for when we do make the
26382         transformation.
26384 2013-05-24  Dehao Chen  <dehao@google.com>
26386         * tree-cfg.c (locus_discrim_map): Fix the typo.
26387         (locus_discrim_hasher): Likewise.
26388         (locus_discrim_hasher::hash): Likewise.
26389         (locus_discrim_hasher::equal): Likewise.
26391 2013-05-24  Martin Jambor  <mjambor@suse.cz>
26393         PR tree-optimization/57294
26394         * cgraph.h (ipa_record_stmt_references): Declare.
26395         * cgraphbuild.c (ipa_record_stmt_references): New function.
26396         (build_cgraph_edges): Use ipa_record_stmt_references.
26397         (rebuild_cgraph_edges): Likewise.
26398         (cgraph_rebuild_references): Likewise.
26399         * ipa-prop.c (ipa_modify_call_arguments): Discard references
26400         associated with the old statement and build references from the
26401         newly built statements.
26402         * ipa-ref.c (ipa_remove_stmt_references): New function.
26403         * ipa-ref.h (ipa_remove_stmt_references): Declare.
26405 2013-05-24  Vladimir Makarov  <vmakarov@redhat.com>
26407         * lra-constraints.c (emit_spill_move): Use smaller mode for
26408         mem-mem moves.
26409         (check_and_process_move): Consider mem-reg moves for secondary
26410         too.
26411         (curr_insn_transform): Don't lose insns emitted before for
26412         secondary memory moves.
26413         (inherit_in_ebb): Mark defined reg.  Add usage only if it is not a
26414         reg set up in the current insn.
26416 2013-05-24  Dehao Chen  <dehao@google.com>
26418         * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
26419         hash function.
26420         (locus_descrim_hasher::equal): Likewise.
26421         (build_gimple_cfg): New discriminator assignment algorithm.
26422         (make_edges): Likewise.
26423         (next_discriminator_for_locus): Likewise.
26424         (same_line_p): Likewise.
26425         (assign_discriminators): Likewise.
26426         (make_cond_expr_edges): Likewise.
26427         (make_gimple_switch_edges): Likewise.
26428         (make_goto_expr_edges): Likewise.
26429         (make_gimple_asm_edges): Likewise.
26431 2013-05-24  Ian Bolton  <ian.bolton@arm.com>
26433         * config/aarch64/aarch64.c (aarch64_print_operand): Change the
26434         X format specifier to only display bottom 16 bits.
26435         * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
26436         immediate to match for operand 2, since it will be masked.
26438 2013-05-24  Richard Biener  <rguenther@suse.de>
26440         PR tree-optimization/57287
26441         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
26442         all SSA names that occur in abnormal PHIs.
26444 2013-05-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
26446         PR tree-ssa/57385
26447         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
26448         that index is not negative.
26450 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
26452         PR rtl-optimization/55177
26453         * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
26454         (simplify_byte_swapping_operation): New.
26455         (simplify_binary_operation_1): Call it for AND, IOR and XOR.
26456         (simplify_relational_operation_1): Deal with BSWAP.
26458 2013-05-23  Richard Henderson  <rth@redhat.com>
26460         PR target/56742
26461         * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
26462         (ix86_reorg): Call it.
26464 2013-05-23  Uros Bizjak  <ubizjak@gmail.com>
26466         PR target/57379
26467         * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
26468         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
26469         REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
26471 2013-05-23  Christian Bruel  <christian.bruel@st.com>
26473         PR debug/57351
26474         * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
26476 2013-05-23  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
26477             Marcus Shawcroft  <marcus.shawcroft@arm.com>
26479         * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
26480         * config/aarch64/constraints.md (Usa): Remove.
26481         * doc/md.texi (AArch64 Usa): Remove.
26483 2013-05-23  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
26484             Marcus Shawcroft  <marcus.shawcroft@arm.com>
26486         * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
26487         * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
26488         * config/aarch64/predicates.md (aarch64_const_address): Remove.
26489         (aarch64_mov_operand): Use aarch64_mov_operand_p.
26491 2013-05-23  Vidya Praveen  <vidyapraveen@arm.com>
26493         * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
26494         instruction (AdvSIMD).
26495         * config/aarch64/aarch64-builtins.c
26496         (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
26497         * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
26499 2013-05-23  Martin Jambor  <mjambor@suse.cz>
26501         PR middle-end/57347
26502         * tree.h (contains_bitfld_component_ref_p): Declare.
26503         * tree-sra.c (contains_bitfld_comp_ref_p): Move...
26504         * tree.c (contains_bitfld_component_ref_p): ...here.  Adjust its
26505         caller.
26506         * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
26507         not access a bit-field.  Assert all final offsets are byte-aligned.
26509 2013-05-23  Richard Biener  <rguenther@suse.de>
26511         PR tree-optimization/57380
26512         * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
26513         least one invariant or re-used load.
26514         * passes.c (init_optimization_passes): Move pass_phiprop before
26515         pass_forwprop.
26517 2013-05-23  James Greenhalgh  <james.greenhalgh@arm.com>
26519         * config/aarch64/aarch64-simd.md
26520         (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
26522 2013-05-23  Richard Biener  <rguenther@suse.de>
26524         PR middle-end/57381
26525         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
26526         OEP_CONSTANT_ADDRESS_OF retained.
26528 2013-05-23  Jakub Jelinek  <jakub@redhat.com>
26530         PR middle-end/57344
26531         * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
26532         don't lower unit.  Handle unit not being always BITS_PER_WORD.
26534 2013-05-23  Richard Biener  <rguenther@suse.de>
26536         PR rtl-optimization/57341
26537         * ira.c (validate_equiv_mem_from_store): Use anti_dependence
26538         instead of true_dependence.
26540 2013-05-22  David Malcolm  <dmalcolm@redhat.com>
26542         * bb-reorder.c (branch_threshold): Make const.
26543         (exec_threshold): Ditto.
26545 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
26546             Pat Haugen  <pthaugen@us.ibm.com>
26547             Peter Bergner  <bergner@vnet.ibm.com>
26549         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
26550         documentation for the power8 crypto builtins.
26552         * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
26554         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
26555         macros for defining power8 builtin functions.
26556         (BU_P8V_AV_2): Likewise.
26557         (BU_P8V_AV_P): Likewise.
26558         (BU_P8V_VSX_1): Likewise.
26559         (BU_P8V_OVERLOAD_1): Likewise.
26560         (BU_P8V_OVERLOAD_2): Likewise.
26561         (BU_CRYPTO_1): Likewise.
26562         (BU_CRYPTO_2): Likewise.
26563         (BU_CRYPTO_3): Likewise.
26564         (BU_CRYPTO_OVERLOAD_1): Likewise.
26565         (BU_CRYPTO_OVERLOAD_2): Likewise.
26566         (XSCVSPDP): Fix typo, point to the correct instruction.
26567         (VCIPHER): Add power8 crypto builtins.
26568         (VCIPHERLAST): Likewise.
26569         (VNCIPHER): Likewise.
26570         (VNCIPHERLAST): Likewise.
26571         (VPMSUMB): Likewise.
26572         (VPMSUMH): Likewise.
26573         (VPMSUMW): Likewise.
26574         (VPERMXOR_V2DI): Likewise.
26575         (VPERMXOR_V4SI: Likewise.
26576         (VPERMXOR_V8HI: Likewise.
26577         (VPERMXOR_V16QI: Likewise.
26578         (VSHASIGMAW): Likewise.
26579         (VSHASIGMAD): Likewise.
26580         (VPMSUM): Likewise.
26581         (VPERMXOR): Likewise.
26582         (VSHASIGMA): Likewise.
26584         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
26585         __CRYPTO__ if the crypto instructions are available.
26586         (altivec_overloaded_builtins): Add support for overloaded power8
26587         builtins.
26589         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
26590         support for power8 crypto builtins.
26591         (builtin_function_type): Likewise.
26592         (altivec_init_builtins): Add support for builtins that take vector
26593         long long (V2DI) arguments.
26595         * config/rs6000/crypto.md: New file, define power8 crypto
26596         instructions.
26598 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
26599             Pat Haugen  <pthaugen@us.ibm.com>
26600             Peter Bergner  <bergner@vnet.ibm.com>
26602         * doc/invoke.texi (Option Summary): Add power8 options.
26603         (RS/6000 and PowerPC Options): Likewise.
26605         * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
26606         constraints.md instead of rs6000.h.  Reorder w* constraints.  Add
26607         wm, wn, wr documentation.
26609         * config/rs6000/constraints.md (wm): New constraint for VSX
26610         registers if direct move instructions are enabled.
26611         (wn): New constraint for no registers.
26612         (wq): New constraint for quad word even GPR registers.
26613         (wr): New constraint if 64-bit instructions are enabled.
26614         (wv): New constraint if power8 vector instructions are enabled.
26615         (wQ): New constraint for quad word memory locations.
26617         * config/rs6000/predicates.md (const_0_to_15_operand): New
26618         constraint for 0..15 for crypto instructions.
26619         (gpc_reg_operand): If VSX allow registers in VSX registers as well
26620         as GPR and floating point registers.
26621         (int_reg_operand): New predicate to match only GPR registers.
26622         (base_reg_operand): New predicate to match base registers.
26623         (quad_int_reg_operand): New predicate to match even GPR registers
26624         for quad memory operations.
26625         (vsx_reg_or_cint_operand): New predicate to allow vector logical
26626         operations in both GPR and VSX registers.
26627         (quad_memory_operand): New predicate for quad memory operations.
26628         (reg_or_indexed_operand): New predicate for direct move support.
26630         * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
26631         Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
26632         (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
26633         (POWERPC_MASKS): Add power8 options.
26634         (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
26635         various options.
26637         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
26638         Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
26640         * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
26641         (-mpower8-fusion): New power8 options.
26642         (-mpower8-fusion-sign): Likewise.
26643         (-mpower8-vector): Likewise.
26644         (-mcrypto): Likewise.
26645         (-mdirect-move): Likewise.
26646         (-mquad-memory): Likewise.
26648         * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
26649         (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
26650         registers.
26651         (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
26652         (rs6000_debug_vector_unit): Add p8_vector.
26653         (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
26654         definitions.  Also print fusion state.
26655         (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
26656         (rs6000_builtin_mask_calculate): Add power8 builtin support.
26657         (rs6000_option_override_internal): Add support for power8.
26658         (rs6000_common_init_builtins): Add debugging for skipped builtins
26659         if -mdebug=builtin.
26660         (rs6000_adjust_cost): Add power8 support.
26661         (rs6000_issue_rate): Likewise.
26662         (insn_must_be_first_in_group): Likewise.
26663         (insn_must_be_last_in_group): Likewise.
26664         (force_new_group): Likewise.
26665         (rs6000_register_move_cost): Likewise.
26666         (rs6000_opt_masks): Likewise.
26668         * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
26669         power8 capable assembler, default to power7 options.
26670         (TARGET_DIRECT_MOVE): Likewise.
26671         (TARGET_CRYPTO): Likewise.
26672         (TARGET_P8_VECTOR): Likewise.
26673         (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
26674         (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
26675         (VECTOR_MEM_P8_VECTOR_P): Likewise.
26676         (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
26677         (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
26678         (TARGET_XSCVDPSPN): Likewise.
26679         (TARGET_XSCVSPDPN): Likewsie.
26680         (TARGET_SYNC_HI_QI): Likewise.
26681         (TARGET_SYNC_TI): Likewise.
26682         (MASK_CRYPTO): Likewise.
26683         (MASK_DIRECT_MOVE): Likewise.
26684         (MASK_P8_FUSION): Likewise.
26685         (MASK_P8_VECTOR): Likewise.
26686         (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
26687         temporary used by some of the direct move instructions to get two FP
26688         temporary registers does not force creation of a stack frame.
26689         (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
26690         (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
26691         that any VSX registers are tieable, even if they are also an
26692         Altivec vector mode.
26693         (r6000_reg_class_enum): Add wm, wr, wv constraints.
26694         (RS6000_BTM_P8_VECTOR): Power8 builtin support.
26695         (RS6000_BTM_CRYPTO): Likewise.
26696         (RS6000_BTM_COMMON): Likewise.
26698         * config/rs6000/rs6000.md (cpu attribute): Add power8.
26699         * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
26700         (enum rs6000_vector): Add power8 vector support.
26702 2013-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26704         PR target/19599
26705         PR target/57340
26706         * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
26707         (any_sibcall_could_use_r3): this and handle indirect calls.
26708         (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
26710 2013-05-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26712         * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
26714 2013-05-22  Richard Biener  <rguenther@suse.de>
26716         PR middle-end/57349
26717         * profile.c (branch_prob): Do not split blocks that are
26718         abnormally receiving from ECF_RETURNS_TWICE functions.
26720 2013-05-22  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
26722         * recog.c (offsettable_address_addr_space_p): Fix calculation of
26723         address mode.  Move pointer mode initialization to the same place.
26725 2013-05-22  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
26727         * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
26728         while it has any effect.
26730 2013-05-21  Easwaran Raman  <eraman@google.com>
26732         PR tree-optimization/57322
26733         * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
26734         UID of the statement added to the BB to be 1.
26736 2013-05-21  Jakub Jelinek  <jakub@redhat.com>
26738         PR tree-optimization/57331
26739         * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
26740         of conversion from pointer type to integral type with integer.
26742 2013-05-21  Martin Jambor  <mjambor@suse.cz>
26744         PR lto/57289
26745         * ipa-prop.c (ipa_read_node_info): Process param_used and
26746         controlled_uses in the same order as when writing.
26748 2013-05-21  Magnus Granberg  <baldrick@free.fr>
26750         PR plugins/56754
26751         * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
26753 2013-05-21  Richard Biener  <rguenther@suse.de>
26755         PR tree-optimization/57318
26756         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
26757         estimate stmts with side-effects as likely eliminated.
26759 2013-05-21  Richard Biener  <rguenther@suse.de>
26761         PR tree-optimization/57330
26762         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
26763         preserve the call stmts fntype.
26765 2013-05-21  Richard Biener  <rguenther@suse.de>
26767         PR tree-optimization/57303
26768         * tree-ssa-sink.c (statement_sink_location): Improve killing
26769         stmt detection and properly handle self-assignments.
26771 2013-05-21  Christian Bruel  <christian.bruel@st.com>
26773         * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
26774         spanning registers. LEAF_REG_REMAP is supported only for contiguous
26775         registers. Set register size out of the PARALLEL loop.
26777 2013-05-20  Oleg Endo  <olegendo@gcc.gnu.org>
26779         PR target/56547
26780         * config/sh/sh.md (fmasf4): Remove empty constraints strings.
26781         (*fmasf4, *fmasf4_media): New insns.
26783 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
26785         * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
26786         * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
26787         (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
26788         (mips_idiv_insns): Update the comments to say that the returned
26789         instruction counts are in units of BASE_INSN_LENGTH.
26790         (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
26791         by BASE_INSN_LENGTH rather than 4.  Add the jump separately,
26792         using 2 rather than 4 as the length of indirect MIPS16 and
26793         microMIPS jumps.  Use NOP_INSN_LENGTH rather than 4 as the
26794         length of a NOP.  Don't divide MIPS16 lengths by 2.
26795         (mips16_split_long_branches): Assume a branch is long if the
26796         length is greater than 4 rather than 8.
26797         * config/mips/mips.md (length): Give MIPS16 lengths directly,
26798         rather than multiplying them by 2.  Multiply instruction counts
26799         by BASE_INSN_LENGTH rather than 4.
26800         (*jump_mips16, tls_get_tp_mips16_<mode>)
26801         (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
26803 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
26805         * config/mips/mips.md (extended_mips16): Remove branch case.
26806         (length): Remove duplicated extended_mips16 test.
26808 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
26810         * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
26812 2013-05-18  Richard Sandiford  <rdsandiford@googlemail.com>
26814         * recog.h (Recog_data): Rename to...
26815         (recog_data_d): ...this.
26816         (recog_data): Update accordingly.
26817         * recog.c (recog_data): Likewise.
26818         * reload.c (save_recog_data): Likewise.
26819         * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
26820         (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
26822 2013-05-17  Julian Brown  <julian@codesourcery.com>
26824         * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
26825         found in a REG_EQUAL note, invalidate it.
26827 2013-05-17  Easwaran Raman  <eraman@google.com>
26829         * tree-ssa-reassoc.c (find_insert_point): New function.
26830         (insert_stmt_after): Likewise.
26831         (get_def_stmt): Likewise.
26832         (ensure_ops_are_available): Likewise.
26833         (not_dominated_by): Likewise.
26834         (rewrite_expr_tree): Do not move statements beyond what is
26835         necessary. Remove call to swap_ops_for_binary_stmt...
26836         (reassociate_bb): ... and move it here.
26837         (build_and_add_sum): Assign UIDs for new statements.
26838         (linearize_expr): Likewise.
26839         (do_reassoc): Renumber gimple statement UIDs.
26841 2013-05-17  Jan Hubicka  <jh@suse.cz>
26843         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
26844         weakrefs.
26845         * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
26846         * cgraphunit.c (handle_alias_pairs): Store target of unresolved
26847         weakrefs.
26848         (output_weakrefs): Update.
26850 2013-05-17  Po-Chun Chang  <pchang9@cs.wisc.edu>
26851             Martin Jambor  <mjambor@suse.cz>
26853         PR middle-end/57276
26854         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
26855         value that corresponds to the given aggval is found in values vector.
26857 2013-05-17  Uros Bizjak  <ubizjak@gmail.com>
26859         * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
26860         sse, sse2, sse3, ssse3 and sse4a flags to options.
26862 2013-05-17  David Malcolm  <dmalcolm@redhat.com>
26864         * gengtype-state.c: (s_expr_writer): New class, to handle
26865         prettifying of output layout of s-expressions.
26866         (state_writer): New class, to write out gtype.state.
26867         (state_written_type_count): Move this variable into member data of
26868         state_writer.
26869         (s_expr_writer::s_expr_writer): New code: constructor for new class
26870         (state_writer::state_writer(): ditto
26871         (s_expr_writer::write_new_line): New function
26872         (s_expr_writer::write_any_indent): ditto
26873         (s_expr_writer::begin_s_expr): ditto
26874         (s_expr_writer::end_s_expr): ditto
26875         (write_state_fileloc): convert to method of state_writer...
26876         (state_writer:: write_state_fileloc): ...and use methods of
26877         s_expr_writer to write indentation into the gtype.state output file
26878         to visually represent the hierarchical structure of the list
26879         structures
26880         (write_state_fields): ditto, renaming to...
26881         (state_writer::write_state_fields)
26882         (write_state_a_string): ditto, renaming to...
26883         (state_writer::write_state_a_string)
26884         (write_state_string_option): ditto, renaming to...
26885         (state_writer::write_state_string_option)
26886         (write_state_type_option): ditto, renaming to...
26887         (state_writer::write_state_type_option)
26888         (write_state_nested_option): ditto, renaming to...
26889         (state_writer::write_state_nested_option)
26890         (write_state_option): ditto, renaming to...
26891         (state_writer::write_state_option)
26892         (write_state_options): ditto, renaming to...
26893         (state_writer::write_state_options)
26894         (write_state_lang_bitmap): ditto, renaming to...
26895         (state_writer::write_state_lang_bitmap)
26896         (write_state_version): ditto, renaming to...
26897         (state_writer::write_state_version)
26898         (write_state_scalar_type): ditto, renaming to...
26899         (state_writer::write_state_scalar_type)
26900         (write_state_string_type): ditto, renaming to...
26901         (state_writer::write_state_string_type)
26902         (write_state_undefined_type): ditto, renaming to...
26903         (state_writer::write_state_undefined_type)
26904         (write_state_struct_union_type): ditto, renaming to...
26905         (state_writer::write_state_struct_union_type)
26906         (write_state_struct_type): ditto, renaming to...
26907         (state_writer::write_state_struct_type)
26908         (write_state_user_struct_type): ditto, renaming to...
26909         (state_writer::write_state_user_struct_type)
26910         (write_state_lang_struct_type): ditto, renaming to...
26911         (state_writer::write_state_lang_struct_type)
26912         (write_state_param_struct_type): ditto, renaming to...
26913         (state_writer::write_state_param_struct_type)
26914         (write_state_pointer_type): ditto, renaming to...
26915         (state_writer::write_state_pointer_type)
26916         (write_state_array_type): ditto, renaming to...
26917         (state_writer::write_state_array_type)
26918         (write_state_gc_used): ditto, renaming to...
26919         (state_writer::write_state_gc_used)
26920         (write_state_common_type_content): ditto, renaming to...
26921         (state_writer::write_state_common_type_content)
26922         (write_state_type): ditto, renaming to...
26923         (state_writer::write_state_type)
26924         (write_state_pair_list): ditto, renaming to...
26925         (state_writer::write_state_pair_list)
26926         (write_state_pair): ditto, renaming to...
26927         (state_writer::write_state_pair)
26928         (write_state_typedefs): ditto, renaming to...
26929         (state_writer::write_state_typedefs)
26930         (write_state_structures): ditto, renaming to...
26931         (state_writer::write_state_structures)
26932         (write_state_param_structs): ditto, renaming to...
26933         (state_writer::write_state_param_structs)
26934         (write_state_variables): ditto, renaming to...
26935         (state_writer::write_state_variables)
26936         (write_state_srcdir): ditto, renaming to...
26937         (state_writer::write_state_srcdir)
26938         (write_state_files_list): ditto, renaming to...
26939         (state_writer::write_state_files_list)
26940         (write_state_languages): ditto, renaming to...
26941         (state_writer::write_state_languages)
26942         (write_state): create a state_writer instance and use it when
26943         writing out the state file
26945 2013-05-17  Mike Stump  <mikestump@comcast.net>
26947         PR rtl-optimization/57304
26948         * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
26949         accessing DF_REF_REAL_LOC.
26951 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
26953         PR rtl-optimization/57281
26954         PR rtl-optimization/57300
26955         * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
26956         (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
26957         what the other splitter did if the registers are dead.
26959 2013-05-17  Richard Biener  <rguenther@suse.de>
26961         * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
26962         MEM_REF offsets.
26964 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
26966         * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
26967         linking.
26969 2013-05-17  Marek Polacek  <polacek@redhat.com>
26971         * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
26972         length when doing non-zero store of storing '\0' to '\0'.
26974 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
26976         * tree-vect-patterns.c (vect_recog_rotate_pattern): For
26977         vect_external_def oprnd1 with loop_vinfo, try to emit
26978         optional cast, negation and and stmts on the loop preheader
26979         edge instead of into the pattern def seq.
26981         PR tree-optimization/57051
26982         * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
26983         case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
26985 2013-05-16  Nick Clifton  <nickc@redhat.com>
26987         * config/rl78/rl78.c (rl78_attribute_table): Add naked.
26988         (rl78_is_naked_func): New function.
26989         (rl78_expand_prologue): Skip prologue generation for naked functions.
26990         (rl78_expand_epilogue): Skip epilogue generation for naked functions.
26991         * doc/extend.texi (naked): Add RL78 to the list of processors
26992         that supports this attribute.
26994 2013-05-16  Jeff Law  <law@redhat.com>
26996         * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
26998 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
27000         * config/i386/driver-i386.c (host_detect_local_cpu): Determine
27001         cache parameters using detect_caches_amd also for CYRIX,
27002         NSC and TM2 signatures.
27004 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
27005             Dzianis Kahanovich  <mahatma@eu.by>
27007         PR target/45359
27008         PR target/46396
27009         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
27010         VIA/Centaur processors and determine their cache parameters
27011         using detect_caches_amd.
27013 2013-05-16  Teresa Johnson  <tejohnson@google.com>
27015         * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
27016         (rtl_verify_edges): New function.
27017         (rtl_verify_bb_insns): Ditto.
27018         (rtl_verify_bb_pointers): Ditto.
27019         (rtl_verify_bb_insn_chain): Ditto.
27020         (rtl_verify_fallthru): Ditto.
27021         (rtl_verify_bb_layout): Ditto.
27022         (rtl_verify_flow_info_1): Outline checks into new functions.
27023         (rtl_verify_flow_info): Ditto.
27025 2013-05-16  Steve Ellcey  <sellcey@imgtec.com>
27027         * cfghooks.c (copy_bbs): Add update_dominance argument.
27028         * cfghooks.h (copy_bbs): Update prototype.
27029         * tree-cfg.c (gimple_duplicate_sese_region):
27030         Add update_dominance argument.
27031         * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
27032         * tree-ssa-loop-ch.c (copy_loop_headers): Update
27033         gimple_duplicate_sese_region call.
27034         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
27035         Update copy_bbs call.
27036         * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
27037         * trans-mem.c (ipa_uninstrument_transaction): Ditto.
27039 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
27041         * tree-vectorizer.h (NUM_PATTERNS): Increment.
27042         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
27043         vect_recog_rotate_pattern.
27044         (vect_recog_rotate_pattern): New function.
27046 2013-05-16  Jason Merrill  <jason@redhat.com>
27048         * Makefile.in (LLINKER): New variable.
27049         (mostlyclean): Remove link mutex.
27050         * configure.ac: Handle --enable-link-mutex.
27051         * lock-and-run.sh: New script.
27053 2013-05-16  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27055         PR target/19599
27056         * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
27057         for NULL decl.
27059 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27061         * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
27063 2013-05-16  Greta Yorsh  <Greta.Yorsh@arm.com>
27065         * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
27066         * config/arm/arm.c (next_consecutive_mem): New function.
27067         (gen_movmem_ldrd_strd): Likewise.
27068         * config/arm/arm.md (movmemqi): Update condition and code.
27069         (unaligned_loaddi, unaligned_storedi): New patterns.
27071 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27073         * config.gcc: Obsolete *-*-solaris2.9*.
27074         * doc/install.texi (Specific, *-*-solaris2*): Document it.
27076 2013-05-16  Richard Biener  <rguenther@suse.de>
27078         * passes.c (init_optimization_passes): Move pass_parallelize_loops
27079         earlier, after GRAPHITE transforms and IV canonicalization.
27081 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
27083         * omp-low.c (extract_omp_for_data): For collapsed loops,
27084         if at least one of the loops is known at compile time to
27085         iterate zero times, set count to 0.
27086         (expand_omp_regimplify_p): New function.
27087         (expand_omp_for_generic): For collapsed loops, if at least
27088         one of the loops isn't known to iterate at least once,
27089         add runtime check with setting count to 0.
27090         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
27091         For unsigned types if it isn't known at compile time that
27092         the loop will iterate at least once, add runtime check to bypass
27093         the whole loop if initial condition isn't true.
27095 2013-05-16  Nathan Sidwell  <nathan@codesourcery.com>
27097         * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
27099 2013-05-16  Marc Glisse  <marc.glisse@inria.fr>
27101         PR middle-end/57286
27102         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
27103         transformations to avoid an infinite loop.
27105 2013-05-16  Marek Polacek  <polacek@redhat.com>
27107         * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
27109 2013-05-15  Leif Ekblad  <leif@rdos.net>
27111         * config/i386/i386.c (ix86_decompose_address): Use
27112         DEFAULT_TLS_SEG_REG to access TLS segment register.
27113         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
27114         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
27115         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
27117 2013-05-15  Richard Sandiford  <rdsandiford@googlemail.com>
27119         PR target/57260
27120         * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
27121         sibling calls to functions that would normally be lazily bound,
27122         unless $gp is call-clobbered.
27124 2013-05-15  Uros Bizjak  <ubizjak@gmail.com>
27126         * config/i386/i386.c (ix86_option_override_internal): Update
27127         processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags.  Add
27128         PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
27129         non-SSE 3dNow! targets.  Enable TARGET_PRFCHW for TARGET_3DNOW targets.
27130         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
27131         of TARGET_3DNOW.
27132         (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
27134 2013-05-15  Andreas Schwab  <schwab@suse.de>
27136         * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
27137         for rotlhi3+1 and rotlqi3+1, resp.  Fix reference to non-existing
27138         third operand.
27140 2013-05-15  Teresa Johnson  <tejohnson@google.com>
27142         * loop-unroll.c (report_unroll_peel): Check decision before
27143         emitting unroll/peel message.
27145 2013-05-15  Teresa Johnson  <tejohnson@google.com>
27147         * function.h (has_bb_partition): New rtl_data flag.
27148         (bb_reorder_complete): Ditto.
27149         * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
27150         instead of flag_reorder_blocks_and_partition.
27151         * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
27152         with some enhancements.
27153         (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
27154         * bb-reorder.c (connect_traces): Check for has_bb_partition
27155         instead of flag_reorder_blocks_and_partition.
27156         (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
27157         (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
27158         verify_hot_cold_block_grouping.
27159         (partition_hot_cold_basic_blocks): Set has_bb_partition.
27161 2013-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27163         PR target/19599
27164         * config/arm/predicates.md (call_insn_operand): New predicate.
27165         * config/arm/constraints.md ("Cs", "Ss"):  New constraints.
27166         * config/arm/arm.md (*call_insn, *call_value_insn): Match only
27167         if insn is not a tail call.
27168         (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
27169         registers.
27170         * config/arm/arm.h (enum reg_class): New caller save register class.
27171         (REG_CLASS_NAMES): Likewise.
27172         (REG_CLASS_CONTENTS): Likewise.
27173         * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
27174         without decls.
27176 2013-05-15  Richard Biener  <rguenther@suse.de>
27178         * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
27179         of MSG_OPTIMIZED_LOCATIONS.
27180         * tree-vect-slp.c (vect_make_slp_decision): Likewise.
27181         (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
27182         message.
27183         * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
27184         of MSG_OPTIMIZED_LOCATIONS.
27185         (execute_vect_slp): Likewise.
27186         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
27187         (vect_create_cond_for_alias_checks): Likewise.
27188         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
27189         (vect_recog_widen_mult_pattern): Likewise.
27190         (vect_recog_widen_sum_pattern): Likewise.
27191         (vect_recog_over_widening_pattern): Likewise.
27192         (vect_recog_widen_shift_pattern): Likewise.
27193         (vect_recog_vector_vector_shift_pattern): Likewise.
27194         (vect_recog_divmod_pattern): Likewise.
27195         (vect_recog_mixed_size_cond_pattern): Likewise.
27196         (vect_recog_bool_pattern): Likewise.
27197         (vect_pattern_recog_1): Likewise.
27199 2013-05-15  Martin Jambor  <mjambor@suse.cz>
27201         * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
27202         non-functions to builtin_unreachable.
27203         * ipa-inline-transform.c (inline_call): Do not assert estimates were
27204         correct when new direct edges were discovered.
27206 2013-05-15  Martin Jambor  <mjambor@suse.cz>
27208         * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
27209         header, print symbol order instead of node uid, print more information
27210         about indirect edge targets.
27211         (ipa_make_edge_direct_to_target): Print symbol order instead of node
27212         uids.
27213         (ipa_make_edge_direct_to_target): Likewise.
27214         (remove_described_reference): Likewise.
27215         (propagate_controlled_uses): Likewise.
27216         (ipa_print_node_params): Also print symbol order.
27217         (ipcp_transform_function): Print symbol order instead of node uids.
27218         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
27219         (cgraph_get_create_real_symbol_node): Likewise.
27220         * ipa-cp.c (print_lattice): Likewise.
27221         (print_all_lattices): Likewise.
27222         (determine_versionability): Likewise.
27223         (initialize_node_lattices): Likewise.
27224         (estimate_local_effects): Likewise.
27225         (update_profiling_info): Likewise.
27226         (create_specialized_node): Likewise.
27227         (perhaps_add_new_callers): Likewise.
27228         (decide_about_value): Likewise.
27229         (decide_whether_version_node): Likewise.
27230         (identify_dead_nodes): Likewise.
27231         * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
27232         (dump_inline_summary): Likewise.
27233         (estimate_node_size_and_time): Likewise.
27234         (inline_analyze_function): Likewise.
27235         * ipa-inline.c (report_inline_failed_reason): Likewise.
27236         (want_early_inline_function_p): Likewise.
27237         (edge_badness): Likewise.
27238         (update_edge_key): Likewise.
27239         (inline_small_functions): Likewise.  Add dumping of order to two other
27240         dumps.
27241         * ipa-pure-const.c (pure_const_read_summary): Print symbol order
27242         instead of node uids.
27243         (propagate_pure_const): Likewise.
27244         (propagate_pure_const): Likewise.
27245         * ipa-utils.c (dump_cgraph_node_set): Likewise.
27246         * lto-cgraph.c (input_node): Explicitly specify we dump uid.
27247         * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
27248         of node uids.
27249         * tree-pretty-print.c (dump_function_header): Likewise.
27250         * tree-sra.c (convert_callers_for_node): Dump in traditional format.
27251         Print symbol order instead of node uids.
27253 2013-05-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27255         * config/s390/s390.c (s390_register_move_cost): Don't impose the
27256         FPR<->GPR move cost penalty if ldgr/lgdr can be used.
27258 2013-05-15  Richard Biener  <rguenther@suse.de>
27260         PR tree-optimization/57275
27261         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
27262         return value for fail to do runtime alias checks for gather loads.
27264 2013-05-15  Jan Hubicka  <jh@suse.cz>
27266         PR lto/57038
27267         PR lto/47375
27268         * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
27269         weakrefs are not external.
27270         (lto_symtab_merge_decls): Fix thinko when dealing with
27271         non-lto_symtab decls.
27272         (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
27273         (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
27274         * varpool.c (dump_varpool_node): Dump more flags.
27276 2013-05-15  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
27278         * config/i386/i386.c (processor_alias_table): Add instruction
27279         FSGSBASE for AMD bdver3 architecture.
27281 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
27283         * tree.c (warn_deprecated_use): Print file:line using locus color.
27284         * diagnostic.c (diagnostic_report_current_module): Print file:line
27285         and file:line:column using locus color.
27287 2013-05-14  Mike Stump  <mikestump@comcast.net>
27289         * gdbinit.in: Add __null.
27291 2013-05-14  Mike Stump  <mikestump@comcast.net>
27293         * recog.h: Rename struct recog_data to Recog_data.
27294         * recog.c: Likewise.
27295         * reload.c (can_reload_into): Likewise.
27296         * config/picochip/picochip.c: Likewise.
27298 2013-05-14  Mike Stump  <mikestump@comcast.net>
27300         * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
27302 2013-05-14  Steven Bosscher  <steven@gcc.gnu.org>
27304         * resource.h (struct resources): Remove unch_memory member.
27305         (CLEAR_RESOURCE): Don't clear unch_memory.
27306         * resource.c (mark_referenced_resources): Don't set it.
27307         (mark_set_resources): Likewise.
27308         (mark_target_live_regs): Don't clear it.
27309         (init_resource_info): Likewise.
27310         * reorg.c (resource_conflicts_p): Don't compare it.
27311         (redundant_insn): Don't set it.
27313         * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
27314         Remove prototypes.
27315         * emit-rtl.c (next_label): Remove unused function.
27316         (skip_consecutive_labels, link_cc0_insns): Move to ...
27317         * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
27318         only place where these functions are used, and make them static.
27320 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
27322         * fold-const.c (fold_negate_expr): Handle vectors.
27323         (fold_truth_not_expr): Make it static.
27324         (fold_invert_truthvalue): New static function.
27325         (invert_truthvalue_loc): Handle vectors. Do not call
27326         fold_truth_not_expr directly.
27327         (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
27328         <TRUTH_NOT_EXPR>: Do not cast to boolean.
27329         (fold_comparison): Handle vector constants.
27330         (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
27331         (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
27332         * tree.h (fold_truth_not_expr): Remove declaration.
27334 2013-05-14  James Greenhalgh  <james.greenhalgh@arm.com>
27336         * config/aarch64/aarch64-simd.md
27337         (aarch64_vcond_internal<mode>): Rename to...
27338         (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
27339         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
27340         float modes. Clarify all iterator modes.
27341         (vcond<mode><mode>): Use new name for vcond expanders.
27342         (vcond<v_cmp_result><mode>): Likewise.
27343         (vcondu<mode><mode>: Likewise.
27344         * config/aarch64/iterators.md (VDQF_COND): New.
27346 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
27348         PR bootstrap/57266
27349         * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
27350         variable for the shift amount. Check that we shift by non-negative
27351         amounts.
27353 2013-05-14  Chung-Lin Tang  <cltang@codesourcery.com>
27355         PR target/42017
27356         * config/arm/arm.h (EPILOGUE_USES): Only return true
27357         for LR_REGNUM after epilogue_completed.
27359 2013-05-14  Joern Rennecke  <joern.rennecke@embecosm.com>
27361         * config/avr/avr.c (avr_encode_section_info): Bail out if the type
27362         is error_mark_node.
27364 2013-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27366         PR target/57261
27367         * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
27368         and Solaris 11+/x86 with gld.
27369         * configure: Regenerate.
27371 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
27373         * expmed.c (expand_shift_1): Canonicalize rotates by
27374         constant bitsize / 2 to bitsize - 1.
27375         * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
27376         case ROTATERT>: Likewise.
27378         Revert:
27379         2013-05-10  Jakub Jelinek  <jakub@redhat.com>
27381         * config/i386/i386.md (rotateinv): New code attr.
27382         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
27383         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
27384         roll $31, %eax, etc.
27386 2013-05-14  Richard Biener  <rguenther@suse.de>
27388         PR middle-end/57235
27389         * tree-eh.c (sink_clobbers): Give up for successors with
27390         multiple predecessors and no virtual uses.
27392 2013-05-14  Eric Botcazou  <ebotcazou@adacore.com>
27394         * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
27395         * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
27397 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
27399         PR middle-end/57251
27400         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
27401         the case when both op0 and op1 have VOIDmode.
27403 2013-05-14  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
27405         * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
27406         in multiply-accumulate mode.
27408 2013-05-13  Guozhi Wei  <carrot@google.com>
27410         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
27412 2013-05-13  Kai Tietz  <ktietz@redhat.com>
27414         PR target/56975
27415         * config/i386/cygming.h (TARGET_PECOFF): Define as true.
27416         * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
27417         (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
27418         * config/i386/i386.c (ix86_option_override_internal): Likewise.
27419         (ix86_expand_prologue): Likewise.
27420         (ix86_expand_split_stack_prologue): Likewise.
27421         (legitimate_pic_address_disp_p): Likewise.
27422         (legitimize_pic_address): Likewise.
27423         (legitimize_tls_address): Likewise.
27424         (legitimize_pe_coff_symbol): Likewise.
27425         (output_pic_addr_const): Likewise.
27426         (construct_plt_address): Likewise.
27427         (ix86_expand_call): Likewise.
27428         (x86_output_mi_thunk): Likewise.
27429         (x86_function_profiler): Likewise.
27431 2013-05-13  Sofiane Naci  <sofiane.naci@arm.com>
27433         * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
27434         similar switch cases.
27435         (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
27436         (aarch64_simd_mov_to_<mode>low): Delete.
27437         (aarch64_simd_mov_to_<mode>high): Delete.
27438         (move_lo_quad_<mode>): Add w<-r alternative.
27439         (aarch64_simd_move_hi_quad_<mode>): Likewise.
27440         (aarch64_simd_mov_from_*): Update type attribute.
27441         * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
27442         statement.
27444 2013-05-13  Jan Hubicka  <jh@suse.cz>
27446         * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
27447         * config/i386/i386.c (ix86_compute_frame_layout,
27448         ix86_expand_epilogue, emit_i387_cw_initialization,
27449         ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
27450         ix86_local_alignment): Fix use of size/speed predicates.
27452 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
27454         PR tree-optimization/45216
27455         PR tree-optimization/57157
27456         * tree-ssa-forwprop.c (simplify_rotate): Only recognize
27457         the (-Y) & (B - 1) variant if OP is |.
27458         * expmed.c (expand_shift_1): For rotations by const0_rtx just
27459         return shifted.  Use (-op1) & (prec - 1) as other_amount
27460         instead of prec - op1.
27462 2013-05-13  Martin Jambor  <mjambor@suse.cz>
27464         PR middle-end/42371
27465         * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
27466         (ipa_constant_data): New type.
27467         (ipa_jump_func): Use ipa_constant_data to hold information about
27468         constant jump functions.
27469         (ipa_get_jf_constant): Adjust to jump function type changes.
27470         (ipa_get_jf_constant_rdesc): New function.
27471         (ipa_param_descriptor): New field controlled_uses.
27472         (ipa_get_controlled_uses): New function.
27473         (ipa_set_controlled_uses): Likewise.
27474         * ipa-ref.h (ipa_find_reference): Declare.
27475         * ipa-prop.c (ipa_cst_ref_desc): New type.
27476         (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
27477         changes.
27478         (ipa_set_jf_constant): Likewise.  Also create reference descriptions.
27479         New parameter cs.  Adjust all callers.
27480         (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
27481         (remove_described_reference): New function.
27482         (jfunc_rdesc_usable): Likewise.
27483         (try_make_edge_direct_simple_call): Decrement controlled use count,
27484         attempt to remove reference if it hits zero.
27485         (combine_controlled_uses_counters): New function.
27486         (propagate_controlled_uses): Likewise.
27487         (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
27488         (ipa_edge_duplication_hook): Duplicate reference descriptions.
27489         (ipa_print_node_params): Print described use counter.
27490         (ipa_write_jump_function): Adjust to jump function type changes.
27491         (ipa_read_jump_function): New parameter CS, pass it to
27492         ipa_set_jf_constant.  Adjust caller.
27493         (ipa_write_node_info): Stream controlled use count
27494         (ipa_read_node_info): Likewise.
27495         * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
27496         asserting.
27497         * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
27498         count.  Remove cloning-added reference if it reaches zero.
27499         * ipa-ref.c (ipa_find_reference): New function.
27501 2013-05-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
27503         * config/i386/i386.c (processor_target_table): Modified default
27504         alignment values for AMD BD and BT architectures.
27506 2013-05-13  Marc Glisse  <marc.glisse@inria.fr>
27508         * tree-vect-generic.c (uniform_vector_p): Move ...
27509         * tree.c (uniform_vector_p): ... here.
27510         * tree.h (uniform_vector_p): Declare it.
27511         * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
27512         into a scalar.
27514 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
27516         PR tree-optimization/57230
27517         * tree-ssa-strlen.c (handle_char_store): Record length for
27518         array store from STRING_CST.
27520         PR tree-optimization/57230
27521         * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
27522         check.
27524 2013-05-12  Joern Rennecke  <joern.rennecke@embecosm.com>
27526         * config/epiphany/epiphany.c (epiphany_init): Check size of
27527         NUM_MODES_FOR_MODE_SWITCHING.
27528         (epiphany_expand_prologue):
27529         Remove CONFIG_REGNUM initial value handling code.
27530         (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
27531         (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
27532         (emit_set_fp_mode, epiphany_mode_after): Likewise.
27533         (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
27534         Don't return 1 for FP_MODE_NONE.
27535         * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
27536         Add value for EPIPHANY_MSW_ENTITY_CONFIG.
27537         (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
27538         * config/epiphany/epiphany.md (save_config): New pattern.
27540 2013-05-12  Uros Bizjak  <ubizjak@gmail.com>
27542         * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
27544 2013-05-10  Uros Bizjak  <ubizjak@gmail.com>
27546         * config/i386/i386.md (memory): Handle sseishft1.
27547         * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
27548         (*vec_extractv2di_1): Ditto.
27550 2013-05-10  Vladimir Makarov  <vmakarov@redhat.com>
27552         * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
27553         saved registers.
27555 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
27557         * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
27558         Add mthumb/march=armv7-a multilib.
27559         Add mthumb/march=armv7-r multilib.
27560         Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
27562 2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
27564         * config/v850/t-rtems: Add more multilibs.
27566 2013-05-10  Richard Biener  <rguenther@suse.de>
27568         PR tree-optimization/57214
27569         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
27570         not propagate from SSA names that occur in abnormal PHI nodes.
27572 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
27574         * stor-layout.c (element_precision): New function.
27575         * machmode.h (element_precision): Declare it.
27576         * tree.c (build_minus_one_cst): New function.
27577         (element_precision): Likewise.
27578         * tree.h (build_minus_one_cst): Declare new function.
27579         (element_precision): Likewise.
27580         * fold-const.c (operand_equal_p): Use element_precision.
27581         (fold_binary_loc): Handle vector types.
27582         * convert.c (convert_to_integer): Use element_precision.
27583         * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
27584         separately.
27586 2013-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
27588         * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
27589         (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
27590         (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
27591         (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
27592         * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
27593         (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
27594         (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
27595         (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
27596         * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
27597         (Uuw8): New constraints.
27598         (Usb4): Move into alphabetical order.
27599         * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
27600         (sd8_operand, ub8_operand, uw8_operand): New predicates.
27601         * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
27602         previously unnamed patterns.
27603         (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
27604         (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
27605         (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
27606         (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
27607         of set_attr_alternative/if_then_else.  Use extended_mips16 instead
27608         of specific lengths.
27610 2013-05-10  Jakub Jelinek  <jakub@redhat.com>
27612         * config/i386/i386.md (rotateinv): New code attr.
27613         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
27614         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
27615         roll $31, %eax, etc.
27617         PR tree-optimization/45216
27618         PR tree-optimization/57157
27619         * tree-ssa-forwprop.c (simplify_rotate): New function.
27620         (ssa_forward_propagate_and_combine): Call it.
27622 2013-05-10  Richard Biener  <rguenther@suse.de>
27624         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
27625         disable peeling when we version for aliasing.
27626         (vector_alignment_reachable_p): Honor explicit user alignment.
27627         (vect_supportable_dr_alignment): Likewise.
27628         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
27629         STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
27630         * tree-vect-loop.c (vect_transform_loop): First apply versioning,
27631         then peeling to arrange for the cost-model check to come first.
27633 2013-05-10  Alan Modra  <amodra@gmail.com>
27635         * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
27636         (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
27637         * configure: Regenerate.
27639 2013-05-10  Alan Modra  <amodra@gmail.com>
27641         PR target/55033
27642         * varasm.c (default_elf_select_section): Move !DECL_P check..
27643         (get_named_section): ..to here before calling get_section_name.
27644         Adjust assertion.
27645         (default_section_type_flags): Add DECL_P check.
27646         * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
27647         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
27649 2013-05-09  Joern Rennecke  <joern.rennecke@embecosm.com>
27651         * config/epiphany/epiphany.c (epiphany_expand_prologue):
27652         When using gen_stack_adjust_str with a register offset, add a
27653         REG_FRAME_RELATED_EXPR note.
27655 2013-05-09  Uros Bizjak  <ubizjak@gmail.com>
27657         * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
27658         (*vec_extractv4si_zext_mem): Ditto.
27659         (*vec_extractv2di): Add 0->x and x->x alternatives.
27660         * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
27661         * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
27663 2013-05-09  Jason Merrill  <jason@redhat.com>
27665         N3639 C++1y VLA support
27666         * gimplify.c (gimplify_vla_decl): Don't touch an existing
27667         DECL_VALUE_EXPR.
27669         * tree.c (build_constructor_va): New.
27670         * tree.h: Declare it.
27672 2013-05-09  Martin Jambor  <mjambor@suse.cz>
27674         PR lto/57084
27675         * gimple-fold.c (canonicalize_constructor_val): Call
27676         cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
27678 2013-05-09  Jan Hubicka  <jh@suse.cz>
27679             Richard Biener  <rguenther@suse.de>
27681         PR lto/54095
27682         * symtab.c (symtab_make_decl_local): Do not add private names.
27684 2013-05-09  Jan Hubicka  <jh@suse.cz>
27686         PR lto/54095
27687         * symtab.c (insert_to_assembler_name_hash): Handle clones.
27688         (unlink_from_assembler_name_hash): Likewise.
27689         (symtab_prevail_in_asm_name_hash, symtab_register_node,
27690         symtab_unregister_node, symtab_initialize_asm_name_hash,
27691         change_decl_assembler_name): Update.
27693 2013-05-09  Sofiane Naci  <sofiane.naci@arm.com>
27695         * config/aarch64/aarch64.md: New movtf split.
27696         (*movtf_aarch64): Update.
27697         (aarch64_movdi_tilow): Handle TF modes and rename to
27698         aarch64_movdi_<mode>low.
27699         (aarch64_movdi_tihigh): Handle TF modes and rename to
27700         aarch64_movdi_<mode>high
27701         (aarch64_movtihigh_di): Handle TF modes and rename to
27702         aarch64_mov<mode>high_di
27703         (aarch64_movtilow_di): Handle TF modes and rename to
27704         aarch64_mov<mode>low_di
27705         (aarch64_movtilow_tilow): Remove spurious whitespace.
27706         * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
27707         splits.
27708         (aarch64_print_operand): Update.
27710 2013-05-09  Alan Modra  <amodra@gmail.com>
27712         * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
27713         powerpc64le.
27714         * configure: Regenerate.
27716 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
27718         * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
27719         splitter preparation statements.
27720         * config/i386/sse.md (*vec_extract* splitters): Ditto.
27721         (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
27722         adjust_address_nv.
27724 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27726         * gimple-ssa-strength-reduction.c (count_candidates): Change
27727         return value to int.
27728         (analyze_candidates_and_replace): Change type of length to int.
27730 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
27732         * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
27733         (*vec_extract<mode>): Use VI12_128 mode iterator.
27734         (*vec_extract<mode>_mem): Ditto.
27735         (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
27736         attribute.
27738 2013-05-08  Diego Novillo  <dnovillo@google.com>
27740         PR bootstrap/54659
27742         Revert:
27743         2012-08-17  Diego Novillo  <dnovillo@google.com>
27745         PR bootstrap/54281
27746         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
27747         * config.in: Regenerate.
27748         * configure: Regenerate.
27749         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
27751 2013-05-08  Jan Hubicka  <jh@suse.cz>
27753         PR lto/54095
27754         * cgraph.c (cgraph_make_node_local_1): Se unique_name.
27755         * cgraph.h (symtab_node_base): Add unique_name.
27756         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
27757         input_overwrite_node, input_varpool_node): Stream unique_name.
27758         * cgraphclones.c (cgraph_create_virtual_clone,
27759         cgraph_function_versioning): Set unique_name.
27760         * ipa.c (function_and_variable_visibility): Set unique_name.
27762 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27764         * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
27765         (alloc_cand_and_find_basis): Restrict conditional candidate
27766         processing to CAND_MULTs.
27768 2013-05-08  Jan Hubicka  <jh@suse.cz>
27770         PR lto/54095
27771         lto-symtab.c (lto_symtab_symbol_p): New function.
27772         (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
27773         lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
27774         lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
27775         Skip static symbols.
27777 2013-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
27779         PR tree-optimization/57200
27780         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
27781         Only call inform if the preceding warning_at returns true.
27783 2013-05-07  Han Shen  <shenhan@google.com>
27785         * cfgexpand.c (record_or_union_type_has_array_p): New function.
27786         (expand_used_vars): Add logic handling '-fstack-protector-strong'.
27787         * common.opt (fstack-protector-strong): New option.
27788         * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
27789         * doc/invoke.texi (Optimization Options): Document
27790         "-fstack-protector-strong".
27791         * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
27793 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
27795         * config/mips/mips.c (mips_machine_reorg2): Return 0.
27797 2013-05-07  Vladimir Makarov  <vmakarov@redhat.com>
27799         * ira.c (update_equiv_regs): Add insn having equiv memory even if
27800         it is not lhs of the insn.
27801         (setup_reg_equiv): Remove insn having equiv memory which it is not
27802         lhs of the insn.
27803         * lra-constraints.c (process_address): Try to improve generation
27804         code for address base + disp.
27805         (lra_constraints): Make correct the code for checking insn setting
27806         up backward equivalence.  Remove insn only if it is in the init
27807         insn list.
27808         * lra-eliminations.c (update_reg_eliminate): Change return value.
27809         (lra_eliminate): Use the result.
27811 2013-05-07  Uros Bizjak  <ubizjak@gmail.com>
27813         * config/i386/sse.md (ssescalarnummask): New mode attribute.
27814         (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
27815         (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
27816         *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
27817         register target operands.
27818         (*vec_extractv8hi_sse2): New pattern.
27819         (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
27820         (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
27821         (*vec_extract<mode>_mem): New insn and split pattern.
27823 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
27825         * config/arm/arm.c (arm_asan_shadow_offset): New function.
27826         (TARGET_ASAN_SHADOW_OFFSET): Define.
27827         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
27828         (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
27830 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27832         * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
27833         (incr_vec_index): Return -1 if increment not found.
27834         (create_add_on_incoming_edge): Assert if increment not found.
27835         (record_increment): Limit number of increments recorded.
27836         (all_phi_incrs_profitable): Return false if an increment not found.
27837         (replace_profitable_candidates): Don't process increments that were
27838         not recorded.
27839         (analyze_candidates_and_replace): Limit size of incr_vec.
27841 2013-05-07  Richard Biener  <rguenther@suse.de>
27843         * calls.c (special_function_p): setjmp-like functions are leaf.
27844         * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
27845         * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
27847 2013-05-07  Sofiane Naci  <sofiane.naci@arm.com>
27849         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
27850         (aarch64_simd_mov<mode>): New expander.
27851         (aarch64_simd_mov_to_<mode>low): New instruction pattern.
27852         (aarch64_simd_mov_to_<mode>high): Likewise.
27853         (aarch64_simd_mov_from_<mode>low): Likewise.
27854         (aarch64_simd_mov_from_<mode>high): Likewise.
27855         (aarch64_dup_lane<mode>): Update.
27856         (aarch64_dup_lanedi): New instruction pattern.
27857         * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
27858         * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
27860 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27862         * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
27863         (replace_mult_candidate): Remove unnecessary argument; remove
27864         unnecessary parameter from call to introduce_cast_before_cand.
27865         (replace_unconditional_candidate): Remove unnecessary parameter
27866         from call to replace_mult_candidate.
27867         (replace_conditional_candidate): Likewise.
27868         (insert_initializers): Use make_temp_ssa_name.
27869         (introduce_cast_before_cand): Remove unnecessary argument; use
27870         make_temp_ssa_name.
27871         (replace_one_candidate): Remove unnecessary argument; remove
27872         unnecessary parameter from calls to introduce_cast_before_cand.
27873         (replace_profitable_candidates): Remove unnecessary parameters
27874         from calls to replace_one_candidate.
27876 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27878         * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
27879         phi def as possibly hiding a basis for a CAND_ADD whose operands
27880         have been commuted in the analysis.
27881         (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
27883 2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
27885         * config/aarch64/aarch64.md
27886         (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
27887         shift value between 0-4.
27889 2013-05-07  Richard Biener  <rguenther@suse.de>
27891         * double-int.h (rshift): New overload.
27892         * double-int.c (rshift): New function.
27893         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
27894         (create_reference_ops_from_ref): Remove.
27895         (vn_reference_insert): Use shared ops for constructing the
27896         reference and copy it.
27898 2013-05-07  Richard Biener  <rguenther@suse.de>
27900         PR middle-end/57190
27901         * tree-eh.c (sink_clobbers): Properly propagate
27902         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
27904 2013-05-07  Jakub Jelinek  <jakub@redhat.com>
27906         PR tree-optimization/57149
27907         * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
27908         (can_skip_redundant_opnd, compute_uninit_opnds_pos,
27909         collect_phi_def_edges, execute_late_warn_uninitialized): Use
27910         uninit_undefined_value_p instead of ssa_undefined_value_p.
27912         PR debug/57184
27913         * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
27914         for modifier == EXPAND_INITIALIZER.
27916 2013-05-07  Anton Blanchard  <anton@samba.org>
27918         * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
27919         for powerpc64 little endian.
27920         * configure: Regenerate.
27922 2013-05-06  Graham Stott  <grahams@btinternet.com>
27924         * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
27925         mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
27926         wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
27927         shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
27929 2013-05-06  Graham Stott  <grahams@btinternet.com>
27931         * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
27932         codes which allow non-lvalues.
27934 2013-05-06  Marc Glisse  <marc.glisse@inria.fr>
27936         * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
27937         components are all 1s.
27938         (integer_minus_onep): New function.
27939         * tree.h (integer_minus_onep): Declare it.
27940         * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
27941         integer_minus_onep instead of integer_all_onesp.
27943 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
27945         PR target/52933
27946         * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
27947         variations of these patterns.
27949 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
27951         * config/i386/i386.md (isa): Add x64_sse4 member.
27952         (enabled): Handle x64_sse4.
27953         (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
27954         instruction for 64bit SSE4_1 targets.  Update insn attributes.
27955         (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
27956         instruction for SSE4_1 targets.  Update insn attributes.
27957         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
27958         with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
27959         (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
27960         const_1 selector.
27961         (*vec_extractv4si): Rename from *sse4_1_pextrd.
27962         (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
27963         (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
27965 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
27967         PR target/57108
27968         * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
27970 2013-05-06  Maxim Kuznetsov  <maks.kuznetsov@gmail.com>
27972         * final.c (do_assembler_dialects): Don't handle curly braces and
27973         vertical bar escaped by % as dialect delimiters.
27974         (output_asm_insn): Print curly braces and vertical bar if escaped
27975         by % and ASSEMBLER_DIALECT defined.
27976         * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
27977         * doc/tm.texi: Regenerated.
27979 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
27981         * config/mips/mips.c: Include tree-pass.h.
27982         (mips_reorg): Split in pre- and post-dbr_schedule parts.
27983         (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
27984         (pass_mips_machine_reorg2): New machine specific pass.
27985         (insert_pass_mips_machine_reorg2): New pass plugin definition.
27986         (mips_option_override): Register the new pass.
27987         * rtl.h (cleanup_barriers): Remove prototype.
27988         (dbr_schedule): Likewise.
27989         * jump.c (cleanup_barriers): Make static.
27990         * reorg.c (dbr_schedule): Likewise.
27992 2013-05-06  Richard Biener  <rguenther@suse.de>
27994         PR tree-optimization/57185
27995         * tree-parloops.c (add_field_for_reduction): Handle anonymous
27996         SSA names properly.
27998 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
28000         PR target/57106
28001         * config/i386/i386.c (add_parameter_dependencies): Add dependence
28002         between "first_arg" and "insn", not "last" and "insn".
28004 2013-05-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28006         * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
28007         (find_candidates_in_block): Re-enable slsr_process_phi.
28008         (create_phi_basis): Fix double counting of candidate adjustment.
28010 2013-05-06  Richard Biener  <rguenther@suse.de>
28012         PR middle-end/57147
28013         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
28014         the edge is also fallthru, preserve it and just clear the
28015         abnormal flag.
28016         * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
28017         also complex, preserve that and just clear the fallthru flag.
28018         * tree-inline.c (update_ssa_across_abnormal_edges): Also
28019         update virtual operands.
28021 2013-05-06  Alan Modra  <amodra@gmail.com>
28023         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
28024         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
28025         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
28026         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
28027         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
28028         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
28030 2013-05-06  Alan Modra  <amodra@gmail.com>
28032         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
28033         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
28034         (DEFAULT_ASM_ENDIAN): Define.
28035         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
28036         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
28037         Update -K PIC clause from sysv4.h.
28038         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
28039         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
28041 2013-05-06  Alan Modra  <amodra@gmail.com>
28043         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
28044         twice for little-endian.
28045         (ashrdi3_no_power, ashrdi3): Support little-endian.
28047 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
28049         PR target/55303
28050         * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
28051         * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
28052         related expanders.
28053         * config/sh/iterators.md (SMIN_SMAX): New code iterator.
28054         * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
28055         clips_min_const_int, clips_max_const_int, clipu_max_const_int):
28056         New predicates.
28058 2013-05-05  Steven Bosscher  <steven@gcc.gnu.org>
28059             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28061         * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
28062         * config/pa/pa.opt: Make mbig-switch a no-op.
28063         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
28064         (CASE_VECTOR_MODE): Always return SImode.
28065         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
28066         for the !TARGET_BIG_SWITCH case.
28067         * config/pa/pa-linux.h: Likewise.
28068         * config/pa/pa-openbsd.h: Likewise.
28069         * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
28070         * config/pa/pa.md (short_jump): Remove define_insn.
28071         (casesi): Remove code for the !TARGET_BIG_SWITCH case.
28072         (casesi0): Remove define_insn.
28073         (type): Remove btable_branch.
28074         (pa_combine_type): Likewise.
28075         (in_nullified_branch_delay): Likewise.
28076         (in_call_delay): Likewise.
28077         (define_delay): Likewise.
28078         (define_insn_reservation "Z3"): Likewise.
28079         (define_insn_reservation "Z4"): Likewise.
28080         * config/pa/pa.c  (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
28081         (pa_adjust_insn_length): Remove adjustment for btable branches.
28082         * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
28083         and mno-big-switch
28085 2013-05-05  Uros Bizjak  <ubizjak@gmail.com>
28087         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
28088         from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
28089         Add m->r,x alternatives.
28090         (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
28091         splitters using SWI48x mode iterator.
28092         (*vec_extract_v2di_0_sse): Rename from *sse2_storeq.  Disable for
28093         TARGET_64BIT.  Add m->x alternative.
28094         (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
28095         Add o->x alternative.  Enable for TARGET_SSE.
28096         (sse_storeq): Remove expander.
28097         (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
28098         with memory input operand.
28099         (*vec_extractv2di_1 splitter): New.
28100         (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
28101         * config/i386/i386.md (ssevecmodelower): New mode attribute.
28103 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
28105         * config/rs6000/rs6000.c (INT_P): Reformat.  Delete obsolete comment.
28106         (INT_LOWPART): Delete.
28107         (extract_MB): Adjust.
28108         (extract_ME): Adjust.
28109         (print_operand): Adjust.
28111 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
28113         * config/rs6000/predicates.md (reg_or_add_cint_operand,
28114         reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
28115         (reg_or_logical_cint_operand, easy_fp_constant,
28116         logical_const_operand): Delete "CONST_DOUBLE" case.
28117         * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
28118         "HOST_BITS_PER_WIDE_INT == 64" test.
28119         (num_insns_constant): Ditto.  Delete CONST_DOUBLE DImode/VOIDmode case.
28120         (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
28121         (rs6000_emit_set_const): Delete CONST_DOUBLE case.
28122         (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
28123         test.
28124         (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
28125         CONST_DOUBLE DImode/VOIDmode case.
28126         (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
28127         (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
28128         CONST_DOUBLE VOIDmode case.
28129         (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
28130         (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
28131         * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
28132         Delete CONST_DOUBLE case.
28133         (splitters for mov FMOVE64 const_double): Delete
28134         "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
28135         "HOST_BITS_PER_WIDE_INT >= 64" test.
28136         (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
28137         case.
28138         (mov DI const_double): Delete.
28140 2013-05-04  Jakub Jelinek  <jakub@redhat.com>
28142         * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
28143         on op shows all bits zero in mode of a lowpart subreg, return zero.
28145 2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
28147         PR target/57150
28148         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
28149         to save TFmode registers and DImode to save TImode registers for
28150         caller save operations.
28151         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
28152         mark being partially clobbered since they only use the first
28153         double word.
28155         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
28156         and TDmode only use the upper 64-bits of each VSX register.
28158 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28160         * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
28161         (find_candidates_in_block): Disable slsr_process_phi.
28163 2013-05-03  Guozhi Wei  <carrot@google.com>
28165         * coverage.c (coverage_obj_init): Move the construction of gcov
28166         constructor to ...
28167         (build_init_ctor): ... here.
28169 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28171         * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
28172         (slsr_cand_d): Redefine def_phi.
28173         (stride_status, phi_adjust_status, count_phis_status): New enums.
28174         (find_phi_def): New.
28175         (find_basis_for_base_expr): New.
28176         (find_basis_for_candidate): Handle hidden bases.
28177         (alloc_cand_and_find_basis): Handle phi candidates.
28178         (slsr_process_phi): New.
28179         (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
28180         (create_mul_imm_cand): Likewise.
28181         (create_add_ssa_cand): Exclude phi base candidates.
28182         (create_add_imm_cand): Likewise.
28183         (slsr_process_cast): Likewise.
28184         (slsr_process_copy): Likewise.
28185         (find_candidates_in_block): Handle phi candidates.
28186         (dump_candidate): Likewise.
28187         (unconditional_cands): Delete.
28188         (unconditional_cands_with_known_stride_p): Delete.
28189         (phi_dependent_cand_p): New.
28190         (cand_increment): Handle phi-dependent candidates.
28191         (replace_dependent): Delete.
28192         (replace_mult_candidate): New.
28193         (replace_unconditional_candidate): New.
28194         (incr_vec_index): Move to avoid forward reference.
28195         (create_add_on_incoming_edge): New.
28196         (create_phi_basis): New.
28197         (replace_dependents): Delete.
28198         (replace_conditional_candidate): New.
28199         (phi_add_costs): New.
28200         (replace_uncond_cands_and_profitable_phis): New.
28201         (record_increment): Handle phi adjustments.
28202         (record_phi_increments): New.
28203         (record_increments): Handle phi adjustments.
28204         (phi_incr_cost): New.
28205         (lowest_cost_path): Handle phis.
28206         (total_savings): Likewise.
28207         (analyze_increments): Likewise.
28208         (ncd_with_phi): New.
28209         (ncd_of_cand_and_phis): New.
28210         (nearest_common_dominator_for_cands): Handle phi increments.
28211         (all_phi_incrs_profitable): New.
28212         (replace_profitable_candidates): Handle phi-dependent candidates.
28213         (analyze_candidates_and_replace): Likewise.
28215 2013-05-03  Teresa Johnson  <tejohnson@google.com>
28217         PR bootstrap/57154
28218         * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
28219         do not exceed REG_BR_PROB_BASE.
28221 2013-05-03  Jeff Law  <law@redhat.com>
28223         PR tree-optimization/57144
28224         * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
28225         operand of the condition will bit into the new type when eliminating
28226         a cast feeding a condition.
28228 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
28230         PR rtl-optimization/57130
28231         * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
28232         of COMPARE as in_code to the recursive call if needed.
28234 2013-05-03  Uros Bizjak  <ubizjak@gmail.com>
28236         * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
28237         (enabled): Handle new members.
28238         * config/i386/sse.md (*vec_concatv2si): Merge from
28239         *vec_concatv2si_sse2 and vec_concatv2si_sse.
28240         (vec_concatv2di): Merge with *vec_concatv2di_rex64.
28242 2013-05-03  Joern Rennecke  <joern.rennecke@embecosm.com>
28244         PR tree-optimization/57027
28245         * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
28246         for fnms opportunity, check we got the prerequisite kind
28247         of tree / gimple before using accessor functions.
28249 2013-05-03  Richard Biener  <rguenther@suse.de>
28251         * double-int.h (lshift): New overload without precision
28252         and arith argument.
28253         (operator *=, operator +=, operator -=): Move ...
28254         * double-int.c (operator *=, operator +=, operator -=): ... here
28255         and implement more efficiently.
28256         (mul_double_with_sign): Remove.
28257         (lshift_double): Adjust to take unsinged shift argument, push
28258         dispatching code to callers.
28259         (mul_double_wide_with_sign): Add early out for callers that
28260         are not interested in high parts or overflow.
28261         (lshift): New function.
28262         (lshift, rshift, alshift, arshift, llshift, lrshift): Add
28263         dispatch code here.
28264         (lrotate, rrotate): Use logical shifts.
28265         * expr.c (get_inner_reference): Use lshift.
28266         * fixed-value.c (do_fixed_divide): Likewise.
28267         * tree-dfa.c (get_ref_base_and_extent): Likewise.
28268         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
28269         (indirect_refs_may_alias_p): Likewise.
28270         (stmt_kills_ref_p_1): Likewise.
28272 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
28274         * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
28276 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
28278         * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
28279         scalar form of FABD instruction.
28281 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
28283         * lra-constraints.c (process_alt_operands): Add checking alt
28284         number to choose the best alternative.
28286 2013-05-02  Richard Biener  <rguenther@suse.de>
28288         * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
28289         bitmap and its handling.
28290         (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
28292 2013-05-02  Richard Biener  <rguenther@suse.de>
28294         PR middle-end/57140
28295         * tree-inline.c (copy_loops): Properly handle removed loops.
28296         (copy_cfg_body): Mark destination loops for fixup if source
28297         loops needed fixup.
28299 2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
28301         PR target/56732
28302         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
28303         generating simple_return for naked functions.
28305 2013-05-02  Martin Jambor  <mjambor@suse.cz>
28307         PR middle-end/56988
28308         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
28309         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
28310         flags match.
28311         (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
28312         ipa_agg_replacement_value structures.
28313         (known_aggs_to_agg_replacement_list): Likewise.
28314         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
28315         (read_agg_replacement_chain): Likewise.
28316         (ipcp_transform_function): Also check that by_ref flags match.
28318 2013-05-02  Richard Biener  <rguenther@suse.de>
28320         * graphds.h (struct graph): Add obstack member.
28321         * graphds.c (new_graph): Initialize obstack and allocate
28322         vertices from it.
28323         (add_edge): Allocate edge from the obstack.
28324         (free_graph): Free the obstack instead of all edges and vertices.
28326 2013-05-02  Teresa Johnson  <tejohnson@google.com>
28328         * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
28329         divides.
28330         * cfg.c (update_bb_profile_for_threading): Ditto.
28331         * tree-inline.c (copy_bb): Ditto.
28332         (copy_edges_for_bb): Ditto.
28333         (initialize_cfun): Ditto.
28334         (copy_cfg_body): Ditto.
28335         (expand_call_inline): Ditto.
28336         * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
28337         (estimate_node_size_and_time): Ditto.
28338         (inline_merge_summary): Ditto.
28339         * cgraphclones.c (cgraph_clone_edge): Ditto.
28340         (cgraph_clone_node): Ditto.
28341         * sched-rgn.c (compute_dom_prob_ps): Ditto.
28342         (compute_trg_info): Ditto.
28344 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
28346         * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
28347         S reg when fp attribute set.
28348         (movdi_aarch64): Only allow to/from D reg when fp attribute set.
28350 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
28352         * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
28353         New pattern.
28354         (*and_one_cmplsi3_compare0_uxtw): Likewise.
28355         (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
28356         (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
28358 2013-05-02  Richard Biener  <rguenther@suse.de>
28360         * tree-scalar-evolution.c (scev_info_hasher): Remove.
28361         (struct instantiate_cache_entry): New type.
28362         (struct instantiate_cache_entry_hasher): New hashtable descriptor.
28363         (struct instantiate_cache_type): New type.
28364         (set_instantiated_value, get_instantiated_value): Remove.
28365         (get_instantiated_value_entry): New function.
28366         (instantiate_scev_name): Use the new cache and adjust.
28367         (instantiate_scev_poly): Adjust.
28368         (instantiate_scev_binary): Likewise.
28369         (instantiate_array_ref): Likewise.
28370         (instantiate_scev_convert): Likewise.
28371         (instantiate_scev_not): Likewise.
28372         (instantiate_scev_3): Likewise.
28373         (instantiate_scev_2): Likewise.
28374         (instantiate_scev_r): Likewise.
28375         (instantiate_scev): Likewise.
28376         (resolve_mixers): Likewise.
28378 2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
28380         PR target/57091
28381         * lra-constraints.c (best_small_class_operands_num): Remove.
28382         (process_alt_operands): Remove small_class_operands_num.  Take
28383         small classes operands into losers and only if the operand is not
28384         matched.  Modify debugging output.
28385         (curr_insn_transform): Remove best_small_class_operands_num.
28386         Print insn name.
28388 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
28390         * config/aarch64/aarch64-builtins.c
28391         (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
28392         * config/aarch64/aarch64-simd-builtins.def
28393         (reduc_splus_): Add new modes.
28394         (reduc_uplus_): New.
28395         * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
28396         (reduc_uplus_v4sf): Likewise.
28397         (reduc_splus_v4sf): Likewise.
28398         (aarch64_addv<mode>): Likewise.
28399         (reduc_uplus_<mode>): Likewise.
28400         (reduc_splus_<mode>): Likewise.
28401         (aarch64_addvv2di): Likewise.
28402         (reduc_uplus_v2di): Likewise.
28403         (reduc_splus_v2di): Likewise.
28404         (aarch64_addvv2si): Likewise.
28405         (reduc_uplus_v2si): Likewise.
28406         (reduc_splus_v2si): Likewise.
28407         (reduc_<sur>plus_<mode>): New.
28408         (reduc_<sur>plus_v2di): Likewise.
28409         (reduc_<sur>plus_v2si): Likewise.
28410         (reduc_<sur>plus_v4sf): Likewise.
28411         (aarch64_addpv4sf): Likewise.
28412         * config/aarch64/arm_neon.h
28413         (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
28414         * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
28415         add UNSPEC_SADDV, UNSPEC_UADDV.
28416         (SUADDV): New.
28417         (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
28419 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
28421         * config/aarch64/arm_neon.h
28422         (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
28424 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
28426         * config/aarch64/aarch64-builtins
28427         (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
28429 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
28431         * config/aarch64/aarch64-simd-builtins.def
28432         (reduc_smax_): New.
28433         (reduc_smin_): Likewise.
28434         (reduc_umax_): Likewise.
28435         (reduc_umin_): Likewise.
28436         (reduc_smax_nan_): Likewise.
28437         (reduc_smin_nan_): Likewise.
28438         (fmax): Remove.
28439         (fmin): Likewise.
28440         (smax): Update for V2SF, V4SF and V2DF modes.
28441         (smin): Likewise.
28442         (smax_nan): New.
28443         (smin_nan): Likewise.
28444         * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
28445         (<su><maxmin><mode>3): ...This, refactor.
28446         (s<maxmin><mode>3): New.
28447         (<maxmin_uns><mode>3): Likewise.
28448         (reduc_<maxmin_uns>_<mode>): Refactor.
28449         (reduc_<maxmin_uns>_v4sf): Likewise.
28450         (reduc_<maxmin_uns>_v2si): Likewise.
28451         (aarch64_<fmaxmin><mode>: Remove.
28452         * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
28453         new builtin names.
28454         (vmin<q>_f<32,64>): Likewise.
28455         * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
28456         (FMAXMIN): New.
28457         (su): Add mappings for smax, smin, umax, umin.
28458         (maxmin): New.
28459         (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
28460         (FMAXMIN): Rename as...
28461         (FMAXMIN_UNS): ...This.
28462         (maxminv): Remove.
28463         (fmaxminv): Likewise.
28464         (fmaxmin): Likewise.
28465         (maxmin_uns): New.
28466         (maxmin_uns_op): Likewise.
28468 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
28470         * config/aarch64/arm_neon.h
28471         (vac<ge, gt><sd>_f<32, 64>): Rename to...
28472         (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
28473         (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
28475 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
28477         * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
28478         * config/aarch64/iterators.md (FAC_COMPARISONS): New.
28480 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
28482         * config/aarch64/aarch64-simd.md
28483         (vcond<mode>_internal): Handle special cases for constant masks.
28484         (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
28485         (vcondu<mode><mode>): Likewise.
28486         (vcond<v_cmp_result><mode>): New.
28488 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
28490         * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
28491         (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
28492         * config/aarch64/aarch64-simd-builtins.def
28493         (cmeq): Update to BUILTIN_VALLDI.
28494         (cmgt): Likewise.
28495         (cmge): Likewise.
28496         (cmle): Likewise.
28497         (cmlt): Likewise.
28498         * config/aarch64/arm_neon.h
28499         (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
28500         to builtins or C as appropriate.
28502 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
28504         * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
28505         (cmgeu): ...This.
28506         (cmhi): Rename to...
28507         (cmgtu): ...This.
28508         * config/aarch64/aarch64-simd.md
28509         (simd_mode): Add SF.
28510         (aarch64_vcond_internal): Use new names for unsigned comparison insns.
28511         (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
28512         * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
28513         (cstore<mode>_neg): ...This.
28514         * config/aarch64/iterators.md
28515         (VALLF): new.
28516         (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
28517         (COMPARISONS): New.
28518         (UCOMPARISONS): Likewise.
28519         (optab): Add missing comparisons.
28520         (n_optab): New.
28521         (cmp_1): Likewise.
28522         (cmp_2): Likewise.
28523         (CMP): Likewise.
28524         (cmp): Remove.
28525         (VCMP_S): Likewise.
28526         (VCMP_U): Likewise.
28527         (V_cmp_result): Add DF, SF modes.
28528         (v_cmp_result): Likewise.
28529         (v): Likewise.
28530         (vmtype): Likewise.
28531         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
28533 2013-05-01  Greta Yorsh  <Greta.Yorsh@arm.com>
28535         * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
28536         define_insn to define_insn_and_split.
28537         (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
28538         (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
28539         (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
28540         (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
28541         (thumb2_negscc): Likewise.
28543 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
28545         * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
28547 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
28549         * config/arm/thumb2.md: Remove trailing whitespaces.
28551 2013-04-30  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
28553         * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
28554         Use gen_int_mode rather than GEN_INT.
28556 2013-04-30  H.J. Lu  <hongjiu.lu@intel.com>
28558         * value-prof.c (stream_in_histogram_value): Remove the strayed
28559         debug_gimple_stmt.
28561 2013-04-30  Richard Biener  <rguenther@suse.de>
28563         PR middle-end/57122
28564         * cfghooks.c (split_edge): Properly check for the loop latch edge.
28566 2013-04-30  Richard Biener  <rguenther@suse.de>
28568         PR middle-end/57107
28569         * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
28571 2013-04-30  Andrey Belevantsev  <abel@ispras.ru>
28573         PR rtl-optimization/56957
28574         PR rtl-optimization/57105
28575         * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
28576         variable.  Use just INSN_UID for determining whether an insn
28577         should be only disconnected from the insn stream.
28578         * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
28580 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
28582         PR tree-optimization/57104
28583         * tsan.c (instrument_expr): Don't instrument accesses to
28584         DECL_HARD_REGISTER VAR_DECLs.
28586 2013-04-30  Richard Biener  <rguenther@suse.de>
28588         * function.h (loops_for_fn): New inline function.
28589         (set_loops_for_fn): Likewise.
28590         * cfgloop.h (place_new_loop): Add struct function parameter.
28591         (get_loop): Likewise.
28592         (get_loops): Likewise.
28593         (number_of_loops): Likewise.
28594         (fel_next): Adjust.
28595         (fel_init): Likewise.
28596         * cfg.c (get_loop_copy): Adjust.
28597         * cfgloop.c (flow_loops_dump): Likewise.
28598         (record_loop_exits): Likewise.
28599         (verify_loop_structure): Likewise.
28600         * cfgloopanal.c (mark_irreducible_loops): Likewise.
28601         (estimate_reg_pressure_cost): Likewise.
28602         (mark_loop_exit_edges): Likewise.
28603         * cfgloopmanip.c (place_new_loop): Likewise.
28604         (add_loop): Likewise.
28605         (duplicate_loop): Likewise.
28606         * graph.c (draw_cfg_nodes): Likewise.
28607         * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
28608         * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
28609         (extract_affine_chrec): Likewise.
28610         (build_scop_iteration_domain): Likewise.
28611         * graphite.c (graphite_initialize): Likewise.
28612         * ira-build.c (create_loop_tree_nodes): Likewise.
28613         (more_one_region_p): Likewise.
28614         (rebuild_regno_allocno_maps): Likewise.
28615         (mark_loops_for_removal): Likewise.
28616         (mark_all_loops_for_removal): Likewise.
28617         (remove_unnecessary_regions): Likewise.
28618         (ira_build): Likewise.
28619         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
28620         * loop-init.c (fix_loop_structure): Likewise.
28621         (gate_rtl_move_loop_invariants): Likewise.
28622         (gate_rtl_unswitch): Likewise.
28623         (gate_rtl_unroll_and_peel_loops): Likewise.
28624         (rtl_doloop): Likewise.
28625         * lto-streamer-in.c (input_cfg): Likewise.
28626         * lto-streamer-out.c (output_cfg): Likewise.
28627         * modulo-sched.c (sms_schedule): Likewise.
28628         * predict.c (tree_estimate_probability): Likewise.
28629         (tree_estimate_probability_driver): Likewise.
28630         (estimate_loops): Likewise.
28631         * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
28632         (move_sese_region_to_fn): Likewise.
28633         (debug_loop_num): Likewise.
28634         * tree-chrec.c (chrec_evaluate): Likewise.
28635         (hide_evolution_in_other_loops_than_loop): Likewise.
28636         (chrec_component_in_loop_num): Likewise.
28637         (reset_evolution_in_loop): Likewise.
28638         (evolution_function_is_invariant_rec_p): Likewise.
28639         * tree-if-conv.c (main_tree_if_conversion): Likewise.
28640         * tree-inline.c (copy_loops): Likewise.
28641         (copy_cfg_body): Likewise.
28642         (tree_function_versioning): Likewise.
28643         * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
28644         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
28645         Likewise.
28646         (add_to_evolution_1): Likewise.
28647         (scev_const_prop): Likewise.
28648         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
28649         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
28650         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
28651         (tree_ssa_lim_initialize): Likewise.
28652         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
28653         (verify_loop_closed_ssa): Likewise.
28654         * tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
28655         (tree_ssa_loop_im): Likewise.
28656         (tree_ssa_loop_unswitch): Likewise.
28657         (tree_vectorize): Likewise.
28658         (check_data_deps): Likewise.
28659         (tree_ssa_loop_ivcanon): Likewise.
28660         (tree_ssa_loop_bounds): Likewise.
28661         (tree_complete_unroll): Likewise.
28662         (tree_complete_unroll_inner): Likewise.
28663         (tree_parallelize_loops): Likewise.
28664         (tree_ssa_loop_prefetch): Likewise.
28665         (tree_ssa_loop_ivopts): Likewise.
28666         * tree-ssa.c (execute_update_addresses_taken): Liekwise.
28667         * tree-vectorizer.c (vectorize_loops): Likewise.
28669 2013-04-29  Mike Frysinger  <vapier@gentoo.org>
28671         * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
28672         (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
28673         * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
28674         with EABI_LINK_SPEC.
28676 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
28678         PR target/44578
28679         * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
28680         alternative.
28682 2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
28684         PR target/57097
28685         * lra-constraints.c (process_alt_operands): Discourage a bit more
28686         using memory for pseudos.  Print cost dump for alternatives.
28687         Modify cost values for conflicts with early clobbers.
28688         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
28690 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
28692         PR target/57098
28693         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
28695 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
28697         * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
28698         from/to S register.
28699         (movdi_aarch64): Support LDR/STR from/to D register.
28701 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
28703         * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
28704         or higher by default.
28706 2013-04-29  Richard Biener  <rguenther@suse.de>
28708         PR middle-end/57075
28709         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
28710         even if not adding abnormal edges for calls that can make
28711         abnormal gotos.
28713 2013-04-29  Richard Biener  <rguenther@suse.de>
28715         PR middle-end/57103
28716         * tree-cfg.c (move_stmt_op): Fix condition under which to update
28717         TREE_BLOCK.
28718         (move_stmt_r): Remove redundant checking.
28720 2013-04-29  Teresa Johnson  <tejohnson@google.com>
28722         PR bootstrap/57077
28723         * basic-block.h (apply_scale): New function.
28724         (apply_probability): Use apply_scale.
28725         * gimple-streamer-in.c (input_bb): Ditto.
28726         * lto-streamer-in.c (input_cfg): Ditto.
28727         * lto-cgraph.c (merge_profile_summaries): Ditto.
28728         * tree-optimize.c (execute_fixup_cfg): Ditto.
28729         * tree-inline.c (copy_bb): Update comment to use apply_scale.
28730         (copy_edges_for_bb): Ditto.
28731         (copy_cfg_body): Ditto.
28733 2013-04-29  Tom de Vries  <tom@codesourcery.com>
28735         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
28736         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
28737         (tail_merge_optimize): Handle current_loops == NULL.
28739 2013-04-26  Jeff Law  <law@redhat.com>
28741         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
28742         (simplify_cond_using_ranges): Generalize code to simplify
28743         COND_EXPRs where one argument is a constant and the other
28744         is an SSA_NAME created by an integral type conversion.
28746 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28748         * config/arm/arm.md (store_minmaxsi): Use only when
28749         optimize_insn_for_size_p.
28751 2013-04-29  Christian Bruel  <christian.bruel@st.com>
28753         PR target/57108
28754         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
28756 2013-04-29  Richard Biener  <rguenther@suse.de>
28758         PR middle-end/57089
28759         * omp-low.c (expand_omp_taskreg): If the parent function had a broken
28760         loop tree make sure to schedule a fixup for the child as well.
28761         (expand_omp_for_generic): Properly add loops.
28762         (expand_omp_for_static_nochunk): Likewise.
28763         (expand_omp_for_static_chunk): Likewise.
28764         (expand_omp_for): For the degenerate case fixup loops.
28765         (expand_omp_sections): Fix default bb placement in loops.
28766         (expand_omp_atomic_pipeline): Properly add loops.
28768 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28770         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
28772 2013-04-29  Tom de Vries  <tom@codesourcery.com>
28774         * tree-ssa-tail-merge.c: Update header comment.
28776 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28778         * config/aarch64/arm_neon.h
28779         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
28780         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
28781         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
28782         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
28783         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
28784         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
28785         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
28786         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
28788 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28790         * config/aarch64/aarch64-simd.md
28791         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
28792         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
28793         fix_trunc, fixuns_trunc.
28794         (ftrunc<VDQF:mode>2): New.
28795         * config/aarch64/iterators.md (optab): Add fix, fixuns.
28796         (fix_trunc_optab): New.
28798 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28800         * config/aarch64/aarch64-builtins.c
28801         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
28802         iceilf, lround, iroundf.
28804 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
28806         PR target/54349
28807         * config/i386/i386.h (enum ix86_tune_indices)
28808         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
28809         New, split from X86_TUNE_INTER_UNIT_MOVES.
28810         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
28811         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
28812         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
28813         (TARGET_INTER_UNIT_MOVES): Remove.
28814         * config/i386/i386.c (initial_ix86_tune_features): Update.
28815         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
28816         (ix86_expand_convert_uns_didf_sse): Use
28817         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
28818         (ix86_expand_vector_init_one_nonzero): Ditto.
28819         (ix86_expand_vector_init_interleave): Ditto.
28820         (inline_secondary_memory_needed): Return true for moves from SSE class
28821         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
28822         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
28823         * config/i386/constraints.md (Yi, Ym): Depend on
28824         TARGET_INTER_UNIT_MOVES_TO_VEC.
28825         (Yj, Yn): New constraints.
28826         * config/i386/i386.md (*movdi_internal): Change constraints of
28827         operand 1 from Yi to Yj and from Ym to Yn.
28828         (*movsi_internal): Ditto.
28829         (*movdf_internal): Ditto.
28830         (*movsf_internal): Ditto.
28831         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
28832         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
28833         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
28834         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
28835         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
28836         * config/i386/sse.md (movdi_to_sse): Ditto.
28837         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
28838         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
28839         TARGET_INTER_UNIT_MOVES.
28840         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
28841         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
28842         instead of TARGET_INTER_UNIT_MOVES.
28843         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
28844         operand 1 from Yi to Yj and from Ym to Yn.
28846 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28848         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
28849         (float_truncate_hi_): Likewise.
28850         (float_extend_lo_): Likewise.
28851         (float_truncate_lo_): Likewise.
28852         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
28853         (aarch64_float_extend_lo_v2df): Likewise.
28854         (vec_unpacks_hi_v4sf): Likewise.
28855         (aarch64_float_truncate_lo_v2sf): Likewise.
28856         (aarch64_float_truncate_hi_v4sf): Likewise.
28857         (vec_pack_trunc_v2df): Likewise.
28858         (vec_pack_trunc_df): Likewise.
28860 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28862         * config/aarch64/aarch64-builtins.c
28863         (aarch64_fold_builtin): Fold float conversions.
28864         * config/aarch64/aarch64-simd-builtins.def
28865         (floatv2si, floatv4si, floatv2di): New.
28866         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
28867         * config/aarch64/aarch64-simd.md
28868         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
28869         * config/aarch64/iterators.md (FLOATUORS): New.
28870         (optab): Add float, floatuns.
28871         (su_optab): Likewise.
28873 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28875         * config/aarch64/aarch64-builtins.c
28876         (aarch64_builtin_vectorized_function): Use new names for
28877         fcvt builtins.
28878         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
28879         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
28880         (fcvtzu): Split as...
28881         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
28882         (fcvtas): Split as...
28883         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
28884         (fcvtau): Split as...
28885         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
28886         (fcvtps): Split as...
28887         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
28888         (fcvtpu): Split as...
28889         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
28890         (fcvtms): Split as...
28891         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
28892         (fcvtmu): Split as...
28893         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
28894         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
28895         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
28896         (lfrintnusf, lfrintnudf): Likewise.
28897         * config/aarch64/aarch64-simd.md
28898         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
28899         define_insn.
28900         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
28901         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
28902         (fcvt_pattern): Likewise.
28904 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28906         * config/aarch64/aarch64-simd.md
28907         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
28908         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
28910 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28912         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
28913         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
28914         (vrnd<a,m,n,p>_f32): Implement using builtins.
28915         (vrnd<i,x><q>_f<32, 64>): New.
28917 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28919         * config/aarch64/aarch64-builtins.c
28920         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
28921         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
28922         (frintz): Rename to...
28923         (btrunc): ...this.
28924         (frintp): Rename to...
28925         (ceil): ...this.
28926         (frintm): Rename to...
28927         (floor): ...this.
28928         (frinti): Rename to...
28929         (nearbyint): ...this.
28930         (frintx): Rename to...
28931         (rint): ...this.
28932         (frinta): Rename to...
28933         (round): ...this.
28934         * config/aarch64/aarch64-simd.md
28935         (aarch64_frint<frint_suffix><mode>): Delete.
28936         (<frint_pattern><mode>2): Convert to insn.
28937         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
28938         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
28939         (frint_pattern): Likewise.
28940         (frint_suffix): Likewise.
28942 2013-04-29  Richard Biener  <rguenther@suse.de>
28944         PR tree-optimization/57081
28945         * loop-init.c: Include tree-flow.h.
28946         (loop_optimizer_finalize): Free number of iteration estimates.
28947         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
28949 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
28951         PR tree-optimization/57083
28952         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
28953         non-singleton shift count range, zero extend low_bound for uns case.
28955         * config/i386/predicates.md (general_vector_operand): New predicate.
28956         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
28957         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
28958         if they aren't nonimmediate operands.  If their original values
28959         satisfy const_vector_equal_evenodd_p, don't shift them.
28960         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
28961         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
28962         if not nonimmediate_operand.
28963         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
28964         instead of register_operand.
28965         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
28967 2013-04-28  Eric Botcazou  <ebotcazou@adacore.com>
28969         * stor-layout.c (finalize_size_functions): Allocate a structure and
28970         reset cfun before dumping the functions.
28972 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
28974         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
28976         PR target/56866
28977         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
28978         use xop_pmacsdqh if uns_p.
28979         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
28980         the immediate rotate count.
28982 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
28984         * rtl.h (struct rtx_def): Add comment for field jump.
28985         (LRA_SUBREG_P): New macro.
28986         * recog.c (register_operand): Check LRA_SUBREG_P.
28987         * lra.c (lra): Add note at the end of RTL code. Align non-empty
28988         stack frame.
28989         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
28990         (lra_final_code_change): Skip subreg change for operators.
28991         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
28992         if there are no operand changes.
28993         * lra-constraints.c (curr_insn_set): New.
28994         (match_reload): Set LRA_SUBREG_P.
28995         (emit_spill_move): Ditto.
28996         (check_and_process_move): Use curr_insn_set. Process only single
28997         set insns.  Don't initialize sec_mem_p and change_p.
28998         (simplify_operand_subreg): Use LRA_SUBREG_P.
28999         (reg_in_class_p): New function.
29000         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
29001         of #ifdef.  Add code to remove cycling.
29002         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
29003         non-null disp.  Reload inner instead of disp when base and index
29004         are null.  Try to put lo_sum into register.
29005         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
29006         (check_and_process_move): Move code for move cost check to
29007         simple_move_p.  Remove equiv_substitution.
29008         (simple_move_p): New function.
29009         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
29010         curr_insn_set.  Call check_and_process_move only for single set
29011         insns.  Use the new function.  Move call of check_and_process_move
29012         after operand equiv substitution and address process.
29014 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
29016         PR go/57045
29017         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
29018         with nonlocal goto receivers or returns twice calls, ignore
29019         unininitialized values from abnormal edges to nl goto receiver
29020         or returns twice call.
29022 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
29024         PR tree-optimization/57051
29025         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
29026         and VEC_RSHIFT_EXPR if shift count is a multiple of element
29027         bitsize.
29029 2013-04-26  Richard Biener  <rguenther@suse.de>
29031         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
29032         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
29033         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
29034         (fixup_loop_arrays_after_move): New function.
29035         (move_sese_region_to_fn): Properly outline the loop tree parts
29036         of the SESE region.
29038 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
29040         * config/i386/i386.md (type, unit): Fix long lines.
29042 2013-04-26  Richard Biener  <rguenther@suse.de>
29044         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
29045         (lto-streamer-out.o): Likewise.
29046         * cfgloop.c (init_loops_structure): Export, add struct function
29047         argument and adjust.
29048         (flow_loops_find): Adjust.
29049         * cfgloop.h (enum loop_estimation): Add EST_LAST.
29050         (init_loops_structure): Declare.
29051         * lto-streamer-in.c: Include cfgloop.h.
29052         (input_cfg): Input the loop tree.
29053         * lto-streamer-out.c: Include cfgloop.h.
29054         (output_cfg): Output the loop tree.
29055         (output_struct_function_base): Do not drop PROP_loops.
29057 2013-03-26  Richard Biener  <rguenther@suse.de>
29059         * tree-cfg.c (execute_build_cfg): Build the loop tree.
29060         (pass_build_cfg): Provide PROP_loops.
29061         (move_sese_region_to_fn): Remove loops that are outlined into fn
29062         for now.
29063         * tree-inline.c: Include cfgloop.h.
29064         (initialize_cfun): Do not drop PROP_loops.
29065         (copy_loops): New function.
29066         (copy_cfg_body): Copy loop structure.
29067         (tree_function_versioning): Initialize destination loop tree.
29068         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
29069         (pass_parallelize_loops): Do IL verification.
29070         * loop-init.c (loop_optimizer_init): Fixup loops if required.
29071         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
29072         the CFG make sure we fixup loops as well.
29073         * tree-ssa-tail-merge.c: Include cfgloop.h.
29074         (replace_block_by): When merging loop latches mark loops for fixup.
29075         * lto-streamer-out.c (output_struct_function_base): Drop
29076         PROP_loops for now.
29077         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
29078         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
29079         * ipa-split.c: Include cfgloop.h.
29080         (split_function): Add the new return block to the loop tree root.
29081         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
29082         whether we have removed the forwarder block.
29083         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
29084         * cfgloop.h (place_new_loop): Declare.
29085         * cfgloopmanip.c (place_new_loop): Export.
29086         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
29087         (tree-switch-conversion.o): Likewise.
29088         (tree-complex.o): Likewise.
29089         (tree-inline.o): Likewise.
29090         (tree-ssa-tailmerge.o): Likewise.
29091         (ipa-split.o): Likewise.
29092         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
29093         (tree-ssa-copy.o): Likewise.
29094         * tree-switch-conversion.c: Include cfgloop.h
29095         (process_switch): If we emit a bit-test cascade, schedule loops
29096         for fixup.
29097         * tree-complex.c: Include cfgloop.h.
29098         (expand_complex_div_wide): Properly add new basic-blocks to loops.
29099         * asan.c: Include cfgloop.h.
29100         (create_cond_insert_point): Properly add new basic-blocks to
29101         loops, schedule loop fixup.
29102         * cfgloop.c (verify_loop_structure): Check that looks are not
29103         marked for fixup.
29104         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
29105         to loops.
29106         (expand_omp_for_generic): Likewise.
29107         (expand_omp_sections): Likewise.
29108         (expand_omp_atomic_pipeline): Schedule loops for fixup.
29109         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
29110         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
29111         is initialized, not when loops are present.
29112         * tree-parloops.c (parallelize_loops): Remove checking here.
29113         * passes.c (init_optimization_passes): Schedule a copy-propagation
29114         pass before complete unrolling of inner loops.
29116 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
29118         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
29119         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
29120         (colorize_init): Add argument to _WIN32 version.
29121         * toplev.c: Include diagnostic-color.h.
29122         (process_options): Default to -fdiagnostics-color=auto if
29123         GCC_COLORS env var is in the environment.
29124         * common.opt (fdiagnostics-color=): Add Var and Init.
29125         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
29126         env var is in the environment, the default is auto rather than never.
29128         * diagnostic.h (file_name_as_prefix): Add context argument.
29129         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
29130         the string as locus.
29131         * langhooks.c (lhd_print_error_function): Adjust caller.
29133 2013-04-25  Lawrence Crowl  <crowl@google.com>
29135         * var-tracking.c (shared_hash_def::htab):
29136         Change type to hash_table.  Update dependent calls and types.
29138 2013-04-25  Lawrence Crowl  <crowl@google.com>
29140         * Makefile.in: Update as needed below.
29142         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
29143         Move declaration to after the type's method definitons.
29145         * attribs.c (htab_t scoped_attributes::attribute_hash):
29146         Change type to hash_table.  Update dependent calls and types.
29148         * bitmap.c (htab_t bitmap_desc_hash):
29149         Change type to hash_table.  Update dependent calls and types.
29151         * cselib.c (htab_t cselib_hash_table):
29152         Change type to hash_table.  Update dependent calls and types.
29154         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
29155         (hash_string_slot_node): Move implementation into lto-streamer.h
29156         struct string_slot_hasher.
29157         (eq_string_slot_node): Likewise.
29159         * data-streamer-out.c: Update output_block::string_hash_table
29160         dependent calls and types.
29162         * dwarf2cfi.c (htab_t trace_index):
29163         Change type to hash_table.  Update dependent calls and types.
29165         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
29166         Change type to hash_table.  Update dependent calls and types.
29167         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
29168         (htab_t optimize_external_refs::map): Likewise.
29169         (htab_t output_comp_unit::extern_map): Likewise.
29170         (htab_t output_comdat_type_unit::extern_map): Likewise.
29171         (htab_t output_macinfo::macinfo_htab): Likewise.
29172         (htab_t optimize_location_lists::htab): Likewise.
29173         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
29175         * except.c (htab_t ehspec_hash_type):
29176         Change type to hash_table.  Update dependent calls and types.
29177         (assign_filter_values::ttypes): Likewise.
29178         (assign_filter_values::ehspec): Likewise.
29179         (sjlj_assign_call_site_values::ar_hash): Likewise.
29180         (convert_to_eh_region_ranges::ar_hash): Likewise.
29182         * gcse.c (htab_t pre_ldst_table):
29183         Change type to hash_table.  Update dependent calls and types.
29185         * ggc-common.c (htab_t saving_htab):
29186         Change type to hash_table.  Update dependent calls and types.
29187         (htab_t loc_hash): Likewise.
29188         (htab_t ptr_hash): Likewise.
29189         (call_count): Rename ggc_call_count.
29190         (call_alloc): Rename ggc_call_alloc.
29191         (loc_descriptor): Rename make_loc_descriptor.
29192         (add_statistics): Rename ggc_add_statistics.
29194         * ggc-common.c (saving_htab):
29195         Change type to hash_table.  Update dependent calls and types.
29197         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
29198         (push_gimplify_context): Likewise.
29199         (pop_gimplify_context): Likewise.
29200         (struct gimple_temp_hash_elt): Added.
29201         (struct gimplify_hasher): Likewise.
29202         (struct gimplify_ctx.temp_htab):
29203         Change type to hash_table.  Update dependent calls and types.
29205         * gimple-fold.c: Include gimplify-ctx.h.
29207         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
29208         Change type to hash_table.  Update dependent calls and types.
29209         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
29210         avoid potential global name collision.
29212         * gimplify.c: Include gimplify-ctx.h.
29213         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
29214         (htab_t gimplify_ctx::temp_htab):
29215         Update dependent calls and types for new type hash_table.
29216         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
29217         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
29219         * gimplify-ctx.h: New.
29220         (struct gimple_temp_hash_elt): Move from gimplify.c.
29221         (class gimplify_hasher): New.
29222         (struct gimplify_ctx): Move from gimple.h.
29223         (htab_t gimplify_ctx::temp_htab):
29224         Change type to hash_table.  Update dependent calls and types.
29226         * graphite-clast-to-gimple.c: Include graphite-htab.h.
29227         (htab_t ivs_params::newivs_index):
29228         Change type to hash_table.  Update dependent calls and types.
29229         (htab_t ivs_params::params_index): Likewise.
29230         (htab_t print_generated_program::params_index): Likewise.
29231         (htab_t gloog::newivs_index): Likewise.
29232         (htab_t gloog::params_index): Likewise.
29234         * graphite.c: Include graphite-htab.h.
29235         4htab_t graphite_transform_loops::bb_pbb_mapping):
29236         Change type to hash_table.  Update dependent calls and types.
29238         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
29239         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
29240         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
29242         * graphite-dependences.c: Include graphite-htab.h.
29243         (loop_is_parallel_p): Change hash table type of parameter.
29245         * graphite-htab.h: New.
29246         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
29247         (extern find_pbb_via_hash): Move from graphite-poly.h.
29248         (extern loop_is_parallel_p): Move from graphite-poly.h.
29249         (extern get_loop_body_pbbs): Move from graphite-poly.h.
29251         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
29252         (extern loop_is_parallel_p): Move to graphite-htab.h.
29253         (extern get_loop_body_pbbs): Move to graphite-htab.h.
29255         * haifa-sched.c (htab_t delay_htab):
29256         Change type to hash_table.  Update dependent calls and types.
29257         (htab_t delay_htab_i2): Likewise.
29259         * ira-color.c (htab_t allocno_hard_regs_htab):
29260         Change type to hash_table.  Update dependent calls and types.
29262         * ira-costs.c (htab_t cost_classes_htab):
29263         Change type to hash_table.  Update dependent calls and types.
29265         * loop-invariant.c (htab_t merge_identical_invariants::eq):
29266         Change type to hash_table.  Update dependent calls and types.
29268         * loop-iv.c (htab_t bivs):
29269         Change type to hash_table.  Update dependent calls and types.
29271         * loop-unroll.c (htab_t opt_info::insns_to_split):
29272         Change type to hash_table.  Update dependent calls and types.
29273         (htab_t opt_info::insns_with_var_to_expand): Likewise.
29275         * lto-streamer.h (struct string_slot): Move from data-streamer.h
29276         (struct string_slot_hasher): New.
29277         (htab_t output_block::string_hash_table):
29278         Change type to hash_table.  Update dependent calls and types.
29280         * lto-streamer-in.c (freeing_string_slot_hasher): New.
29281         (htab_t file_name_hash_table):
29282         Change type to hash_table.  Update dependent calls and types.
29284         * lto-streamer-out.c: Update output_block::string_hash_table dependent
29285         calls and types.
29287         * lto-streamer.c (htab_t tree_htab):
29288         Change type to hash_table.  Update dependent calls and types.
29290         * omp-low.c: Include gimplify-ctx.h.
29292         * passes.c (htab_t name_to_pass_map):
29293         Change type to hash_table.  Update dependent calls and types.
29294         (pass_traverse): Rename to passes_pass_traverse.
29296         * plugin.c (htab_t event_tab):
29297         Change type to hash_table.  Update dependent calls and types.
29299         * postreload-gcse.c (htab_t expr_table):
29300         Change type to hash_table.  Update dependent calls and types.
29301         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
29303         * sese.c (debug_rename_map_1): Make extern.
29304         (htab_t copy_bb_and_scalar_dependences::rename_map):
29305         Change type to hash_table.  Update dependent calls and types.
29307         * sese.h (extern debug_rename_map): Move to .c file.
29309         * store-motion.c (htab_t store_motion_mems_table):
29310         Change type to hash_table.  Update dependent calls and types.
29312         * trans-mem.c (htab_t tm_new_mem_hash):
29313         Change type to hash_table.  Update dependent calls and types.
29315         * tree-browser.c (htab_t TB_up_ht):
29316         Change type to hash_table.  Update dependent calls and types.
29318         * tree-cfg.c (htab_t discriminator_per_locus):
29319         Change type to hash_table.  Update dependent calls and types.
29321         * tree-complex.c: Include tree-hasher.h
29322         (htab_t complex_variable_components):
29323         Change type to hash_table.  Update dependent calls and types.
29325         * tree-eh.c (htab_t finally_tree):
29326         Change type to hash_table.  Update dependent calls and types.
29328         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
29329         struct int_tree_hasher.
29330         (extern int_tree_map_eq): Likewise.
29331         (uid_decl_map_hash): Removed.
29332         (extern decl_tree_map_eq): Likewise.
29334         * tree-hasher.h: New.
29335         (struct int_tree_hasher): New.
29336         (typedef int_tree_htab_type): New.
29338         * tree-inline.c: Include gimplify-ctx.h.
29340         * tree-mudflap.c: Include gimplify-ctx.h.
29342         * tree-parloops.c: Include tree-hasher.h.
29343         (htab_t eliminate_local_variables_stmt::decl_address):
29344         Change type to hash_table.  Update dependent calls and types.
29345         (htab_t separate_decls_in_region::decl_copies): Likewise.
29347         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
29348         Change type to hash_table.  Update dependent calls and types.
29350         * tree-sra.c (candidates):
29351         Change type to hash_table.  Update dependent calls and types.
29353         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
29354         in tree-flow.h.
29355         (int_tree_map_hash): Likewise.
29357         * tree-ssa-dom.c (htab_t avail_exprs):
29358         Change type to hash_table.  Update dependent calls and types.
29360         * tree-ssa-live.c (var_map_base_init::tree_to_index):
29361         Change type to hash_table.  Update dependent calls and types.
29363         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
29364         Change type to hash_table.  Update dependent calls and types.
29366         * tree-ssa-phiopt.c (seen_ssa_names):
29367         Change type to hash_table.  Update dependent calls and types.
29369         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
29370         Change type to hash_table.  Update dependent calls and types.
29372         * tree-ssa-uncprop.c (equiv):
29373         Change type to hash_table.  Update dependent calls and types.
29375 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
29377         PR rtl-optimization/57003
29378         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
29379         call note_stores with kill_clobbered_value callback again after
29380         killing regs_invalidated_by_call.
29382 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
29384         * config/aarch64/aarch64-simd.md
29385         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
29386         (aarch64_simd_bsl<mode>): Likewise.
29387         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
29389 2013-04-25  Marek Polacek  <polacek@redhat.com>
29391         PR tree-optimization/57066
29392         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
29394 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
29396         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
29398 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
29400         * config/aarch64/aarch64-builtins.c
29401         (aarch64_fold_builtin): New.
29402         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
29403         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
29404         * config/aarch64/aarch64-simd-builtins.def (abs): New.
29405         * config/aarch64/arm_neon.h
29406         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
29408 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
29409             Tejas Belagod  <tejas.belagod@arm.com>
29411         * config/aarch64/aarch64-builtins.c
29412         (aarch64_gimple_fold_builtin): New.
29413         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
29414         * config/aarch64/aarch64-simd-builtins.def (addv): New.
29415         * config/aarch64/aarch64-simd.md (addpv4sf): New.
29416         (addvv4sf): Update.
29417         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
29419 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29421         * config/aarch64/aarch64.md
29422         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
29424 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29426         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
29427         (*ngcsi_uxtw): New pattern.
29429 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29430             Julian Brown  <julian@codesourcery.com>
29432         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
29433         (TB_DREG): Add T_V4HF.
29434         (v4hf_UP): New macro.
29435         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
29436         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
29437         Handle initialisation of V4HF. Adjust initialisation of reinterpret
29438         built-ins.
29439         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
29440         (arm_vector_mode_supported_p): Handle V4HF.
29441         (arm_mangle_map): Handle V4HFmode.
29442         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
29443         * config/arm/arm_neon_builtins.def: Add entries for
29444         vcvtv4hfv4sf, vcvtv4sfv4hf.
29445         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
29446         (neon_vcvtv4hfv4sf): Likewise.
29447         * config/arm/neon-gen.ml: Handle half-precision floating point
29448         features.
29449         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
29450         * config/arm/arm_neon.h: Regenerate.
29451         * config/arm/neon.ml (type elts): Add F16.
29452         (type vectype): Add T_float16x4, T_floatHF.
29453         (type vecmode): Add V4HF.
29454         (type features): Add Requires_FP_bit feature.
29455         (elt_width): Handle F16.
29456         (elt_class): Likewise.
29457         (elt_of_class_width): Likewise.
29458         (mode_of_elt): Refactor.
29459         (type_for_elt): Handle F16, fix error messages.
29460         (vectype_size): Handle T_float16x4.
29461         (vcvt_sh): New function.
29462         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
29463         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
29464         (string_of_mode): Handle V4HF.
29465         * doc/arm-neon-intrinsics.texi: Regenerate.
29467 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
29469         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
29470         format specifier in 'X' case.
29472 2013-04-25  Alan Modra  <amodra@gmail.com>
29474         PR target/57052
29475         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
29476         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
29477         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
29478         Repeat for many other rotate/shift and mask patterns using subregs.
29479         Name lshiftrt insns.
29480         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
29481         on WORDS_BIG_ENDIAN.
29483 2013-04-25  Alan Modra  <amodra@gmail.com>
29485         * config.gcc: Support little-endian powerpc-linux targets.
29486         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
29487         (LINK_OS_LINUX_SPEC): Define.
29488         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
29489         Preserve MASK_LITTLE_ENDIAN.
29490         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
29491         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
29492         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
29493         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
29494         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
29495         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
29496         Correct fp word order for little-endian.  Don't shift toc entries
29497         smaller than a word for little-endian.
29498         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
29499         (bswapdi2 splits): Correct low-part subreg for little-endian.
29500         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
29501         low/high where such is correct only for be.
29502         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
29503         little-endian for -mcall-aixdesc.
29505 2013-04-25  Alan Modra  <amodra@gmail.com>
29507         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
29508         replace_equiv_address_nv.
29510 2013-04-25  Alan Modra  <amodra@gmail.com>
29512         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
29514 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
29516         Revert:
29517         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
29518         * rtl.h (struct rtx_def): ...
29520 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
29522         PR rtl-optimizations/57046
29523         * lra-constraints (split_reg): Set up lra_risky_transformations_p
29524         for multi-reg splits.
29526 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
29528         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
29530 2013-04-24  Sterling Augustine  <saugustine@google.com>
29532         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
29533         (comp_dir_string, debug_str_dwo_section): New.
29534         (DEBUG_STR_DWO_SECTION): Rename to ...
29535         (DEBUG_DWO_STR_SECTION): ... this.
29536         (DEBUG_NORM_STR_SECTION): Delete.
29537         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
29538         (DEBUG_STR_DWO_SECTION_FLAGS): New.
29539         (find_AT_string): Move most logic to ...
29540         (find_AT_string_in_table): ... here.  New.
29541         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
29542         add_skeleton_AT_string.  Delete logic.
29543         (output_skeleton_debug_sections): Remove call to
29544         add_top_level_skeleton_die_attrs.
29545         (add_comp_dir_attribute): Move logic to comp_dir_string.
29546         (dwarf2out_init): Initialize debug_str_dwo_section.
29547         (output_indirect_string): Call find_string_form.
29548         (output_indirect_strings): Rewrite.
29549         (prune_unused_types): Empty skeleton_debug_str_hash.
29550         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
29551         (dwarf2out_finish):  Call output_indirect_strings.
29553 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
29555         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
29557 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
29559         * rtl.h (struct rtx_def): Add comment for field jump.
29560         (LRA_SUBREG_P): New macro.
29561         * recog.c (register_operand): Check LRA_SUBREG_P.
29562         * lra.c (lra): Add note at the end of RTL code. Align non-empty
29563         stack frame.
29564         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
29565         (lra_final_code_change): Skip subreg change for operators.
29566         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
29567         if there are no operand changes.
29568         * lra-constraints.c (curr_insn_set): New.
29569         (match_reload): Set LRA_SUBREG_P.
29570         (emit_spill_move): Ditto.
29571         (check_and_process_move): Use curr_insn_set. Process only single
29572         set insns.  Don't initialize sec_mem_p and change_p.
29573         (simplify_operand_subreg): Use LRA_SUBREG_P.
29574         (reg_in_class_p): New function.
29575         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
29576         of #ifdef.  Add code to remove cycling.
29577         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
29578         non-null disp.  Reload inner instead of disp when base and index
29579         are null.  Try to put lo_sum into register.
29580         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
29581         (check_and_process_move): Move code for move cost check to
29582         simple_move_p.  Remove equiv_substitution.
29583         (simple_move_p): New function.
29584         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
29585         curr_insn_set.  Call check_and_process_move only for single set
29586         insns.  Use the new function.  Move call of check_and_process_move
29587         after operand equiv substitution and address process.
29589 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
29591         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
29592         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
29593         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
29595 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
29597         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
29599 2013-04-24  Marek Polacek  <polacek@redhat.com>
29601         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
29602         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
29603         (select_loops_exit_conditions): Likewise.
29604         (number_of_iterations_for_all_loops): Likewise.
29605         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
29606         (scev_analysis): Likewise.
29608 2013-04-02  Catherine Moore  <clm@codesourcery.com>
29609             Chao-ying Fu  <fu@mips.com>
29611         * config/mips/micromips.md (jraddiusp): New pattern.
29612         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
29613         instruction if possible.
29615 2013-04-24  Alan Modra  <amodra@gmail.com>
29617         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
29619 2013-04-24  Julian Brown  <julian@codesourcery.com>
29620             Chung-Lin Tang  <cltang@codesourcery.com>
29622         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
29623         dependency behavior in enumeration type DIE generation. Add TODO note
29624         to comments about future DW_FORM_sdata/udata re-work of related code.
29626 2013-04-23  Lawrence Crowl  <crowl@google.com>
29628         * Makefile.in: Update as needed below.
29630         * hash-table.h (class hash_table):
29631         Correct many methods with parameter types compare_type to the correct
29632         value_type.  (Correct code was unlikely to notice the change.)
29633         (hash_table::elements_with_deleted) New.
29634         (class hashtable::iterator): New.
29635         (hashtable::begin()): New.
29636         (hashtable::end()): New.
29637         (FOR_EACH_HASH_TABLE_ELEMENT): New.
29639         * statistics.c (statistics_hashes):
29640         Change type to hash_table.  Update dependent calls and types.
29642         * tree-into-ssa.c (var_infos):
29643         Change type to hash_table.  Update dependent calls and types.
29645         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
29646         Change type to hash_table.  Update dependent calls and types.
29648         * tree-ssa-loop-im.c (struct mem_ref.refs):
29649         Change type to hash_table.  Update dependent calls and types.
29651         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
29652         Change type to hash_table.  Update dependent calls and types.
29654         * tree-ssa-sccvn.c (vn_tables_s::nary):
29655         Change type to hash_table.  Update dependent calls and types.
29656         (vn_tables_s::phis): Likewise.
29657         (vn_tables_s::references): Likewise.
29659         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
29660         (vn_reference_eq): Update parameter and return types.
29662         * tree-ssa-structalias.c (pointer_equiv_class_table):
29663         Change type to hash_table.  Update dependent calls and types.
29664         (location_equiv_class_table): Likewise.
29666         * tree-vect-data-refs.c: Consequential changes for making
29667         peeling a hash_table.
29669         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
29670         (destroy_loop_vec_info): Dependent hash_table update.
29672         * tree-vectorizer.h (peeling_htab):
29673         Change type to hash_table.  Update dependent calls and types.
29675 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
29677         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
29678         to check the register content is equal or not.
29679         * lra-constraints.c (match_reload): Use lra_assign_reg_val
29680         to assign register content record.
29681         * lra-eliminations.c (update_reg_eliminate): Use
29682         lra_update_reg_val_offset to update register content offset.
29683         * lra-int.h (struct lra_reg): Add offset member.
29684         (lra_reg_val_equal_p): New static inline function.
29685         (lra_update_reg_val_offset): New static inline function.
29686         (lra_assign_reg_val): New static inline function.
29687         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
29688         to assign register content record.
29689         (initialize_lra_reg_info_element): Initial offset to zero.
29691 2013-04-23  Catherine Moore  <clm@codesourcery.com>
29693         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
29694         operands.  Record compression.
29696 2013-04-23  Xinliang David Li  <davidxl@google.com>
29698         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
29700 2013-04-23  Richard Biener  <rguenther@suse.de>
29702         PR middle-end/57036
29703         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
29704         parameter, only add abnormal goto edges from the copied body
29705         if the call could perform abnormal gotos.
29706         (copy_cfg_body): Adjust.
29708 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
29710         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
29712 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
29714         * coretypes.h (gimple_stmt_iterator): Add struct to make
29715         compatible with C.
29717 2013-04-23  Richard Biener  <rguenther@suse.de>
29719         PR tree-optimization/57026
29720         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
29721         from SSA names occuring in abnormal PHI nodes.
29723 2013-04-22  Andi Kleen  <ak@linux.intel.com>
29725         * lto/lto.c (print_lto_report_1): Fix LTO report names.
29727 2013-04-22  Andi Kleen  <ak@linux.intel.com>
29729         * lto/lto.c (print_lto_report_1): Declare early.
29730         (read_cgraph_and_symbols): Call print_lto_report_1 early.
29732 2013-04-22  Andi Kleen  <ak@linux.intel.com>
29734         * common.opt (-flto-report-wpa): Add.
29735         * doc/invoke.texi (-flto-report-wpa): Add.
29736         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
29737         (lto_main): dito.
29739 2013-04-22  Xinliang David Li  <davidxl@google.com>
29741         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
29742         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
29743         * Makefile.in: New dependency
29745             David Daney <ddaney.cavm@gmail.com>
29747         * configure.ac (gcc_cv_as_micromips_support):  Use the
29748         --fatal-warnings option.
29749         * configure: Regenerate.
29751 2013-04-22  Marek Polacek  <polacek@redhat.com>
29753         PR sanitizer/56990
29754         * tsan.c (instrument_expr): Don't instrument expression
29755         in case its size is zero.
29757 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
29759         PR target/57032
29760         Revert:
29761         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
29763         * config/alpha/alpha.c (TARGET_LRA_P): New define.
29765 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
29767         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
29768         (gimple_stmt_iterator): New typedef.
29769         * gimple.h (gimple_stmt_iterator): Rename to...
29770         (gimple_stmt_iterator_d): ... This.
29771         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
29772         trees be valid for GIMPLE and GENERIC.
29773         (TARGET_GIMPLE_FOLD_BUILTIN): New.
29774         * gimple-fold.c (gimple_fold_call): Call target hook
29775         gimple_fold_builtin.
29776         * hooks.c (hook_bool_gsiptr_false): New.
29777         * hooks.h (hook_bool_gsiptr_false): New.
29778         * target.def (fold_stmt): New.
29779         * doc/tm.texi: Regenerate.
29781 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
29783         PR target/57018
29784         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
29785         a set sp if no stack realignment.
29787 2013-04-22  Nick Clifton  <nickc@redhat.com>
29789         * config.gcc (tilegx-linux): Extend extra_objs rather than
29790         overwriting it.
29791         (tilepro-linux): Likewise.
29793 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
29795         * config/aarch64/aarch64-builtins.c
29796         (CF): Remove.
29797         (CF0, CF1, CF2, CF3, CF4, CF10): New.
29798         (VAR<1-12>): Add MAP parameter.
29799         (BUILTIN_*): Likewise.
29800         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
29801         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
29802         (aarch64_ushl_n<mode>): Likewise.
29803         (aarch64_sshr_n<mode>): Likewise.
29804         (aarch64_ushr_n<mode>): Likewise.
29805         (aarch64_<maxmin><mode>): Likewise.
29806         (aarch64_sqrt<mode>): Likewise.
29807         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
29808         (vshr<q>_n_*): Likewise.
29810 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
29812         * config/aarch64/aarch64-builtins.c
29813         (aarch64_simd_builtin_type_mode): Handle SF types.
29814         (sf_UP): Define.
29815         (BUILTIN_GPF): Define.
29816         (aarch64_init_simd_builtins): Handle SF types.
29817         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
29818         (frecps): Likewise.
29819         (frecpx): Likewise.
29820         * config/aarch64/aarch64-simd.md
29821         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
29822         (aarch64_frecpe<mode>): New.
29823         (aarch64_frecps<mode>): Likewise.
29824         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
29825         (v8type): Add frecp<esx>.
29826         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
29827         (aarch64_frecps<mode>): Likewise.
29828         * config/aarch64/iterators.md (FRECP): New.
29829         (frecp_suffix): Likewise.
29830         * config/aarch64/arm_neon.h
29831         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
29833 2013-04-22  Christian Bruel  <christian.bruel@st.com>
29835         PR target/56995
29836         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
29837         (REG_CLASS_NAMES): Idem.
29838         (REG_CLASS_CONTENTS): Idem.
29839         (REGCLASS_HAS_FP_REG): Idem.
29840         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
29841         (sh_conditional_register_usage): Idem.
29843 2013-04-21  Jeff Law  <law@redhat.com>
29845         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
29846         (ssa_forward_propagate_and_combine): Use it.
29848 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
29850         * lra.c: Update the flow chart diagram.
29852 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
29854         PR rtl-optimization/56847
29855         * lra-constraints.c (process_alt_operands): Discourage alternative
29856         with non-matche doffsettable memory constraint fro memory with
29857         known offset.
29859 2013-04-19  Richard Biener  <rguenther@suse.de>
29861         PR tree-optimization/56982
29862         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
29863         function.
29864         * gimplify.c (gimplify_call_expr): Notice special calls.
29865         (gimplify_modify_expr): Likewise.
29866         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
29867         abnormal control flow receivers.
29868         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
29869         in the same way as cfun->has_nonlocal_labels.
29870         (gimple_purge_dead_abnormal_call_edges): Likewise.
29871         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
29872         receivers start a basic-block.
29874 2013-04-19  Richard Biener  <rguenther@suse.de>
29876         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
29877         member ...
29878         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
29879         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
29880         (SLP_TREE_LOAD_PERMUTATION): Add.
29881         (vect_transform_slp_perm_load): Adjust prototype.
29882         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
29883         (vect_free_slp_instance): Likewise.
29884         (vect_create_new_slp_node): Likewise.
29885         (vect_supported_slp_permutation_p): Remove.
29886         (vect_slp_rearrange_stmts): Adjust.
29887         (vect_supported_load_permutation_p): Likewise.  Inline
29888         vect_supported_slp_permutation_p here.
29889         (vect_analyze_slp_instance): Compute load permutations per
29890         slp node instead of per instance.
29891         (vect_get_slp_defs): Adjust.
29892         (vect_transform_slp_perm_load): Likewise.
29893         (vect_schedule_slp_instance): Remove redundant code.
29894         (vect_schedule_slp): Remove hack for PR56270, add it ...
29895         * tree-vect-stmts.c (vectorizable_load): ... here, do not
29896         CSE loads for SLP.  Adjust.
29898 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
29900         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
29901         spelling in two comments.
29903 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
29905         PR target/56797
29906         * config/arm/arm.c (load_multiple_sequence): Require SP
29907         as base register for loads if SP is in the register list.
29909 2013-04-19  Martin Jambor  <mjambor@suse.cz>
29911         PR tree-optimization/56718
29912         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
29913         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
29914         and made public.  Adjusted all callers.
29915         (ipa_intraprocedural_devirtualization): New function.
29916         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
29917         (ipa_intraprocedural_devirtualization): Likewise.
29918         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
29920 2013-04-19  Richard Biener  <rguenther@suse.de>
29922         PR tree-optimization/57000
29923         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
29925 2013-04-19  Terry Guo  <terry.guo@arm.com>
29927         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
29928         Replace with ...
29929         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
29930         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
29931         (cortex_m4_fmacs): Use new reservations.
29932         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
29934 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
29936         PR rtl-optimization/56999
29937         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
29938         related code.
29939         (lra_coalesce): Remove split_origin_bitmap and related code.
29940         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
29941         ranges if necessary.
29943 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
29945         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
29946         New array.
29947         (ix86_expand_call): Remove clobbered_registers array and use
29948         x86_64_ms_sysv_extra_clobbered_registers instead.
29949         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
29950         Declare here.
29951         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
29952         predicate.
29953         * config/i386/i386.md (*call_rex64_ms_sysv): Use
29954         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
29955         (*call_value_rex64_ms_sysv): Ditto.
29957 2013-04-18  Cary Coutant  <ccoutant@google.com>
29959         * dwarf2out.c (output_pubnames): Check die_perennial_p of
29960         parent instead of die_mark.
29962 2013-04-18  Diego Novillo  <dnovillo@google.com>
29964         * gimple.c (create_gimple_tmp): New.
29965         (get_expr_type): New.
29966         (build_assign): New.
29967         (build_type_cast): New.
29968         * gimple.h (enum ssa_mode): Define.
29969         (gimple_seq_set_location): New.
29970         * asan.c (build_check_stmt): Change some gimple_build_* calls
29971         to use build_assign and build_type_cast.
29973 2013-04-18  Richard Biener  <rguenther@suse.de>
29975         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
29976         handle negative step.  Remove redundant checks.
29977         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
29978         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
29979         for negative step and grouped loads fail to vectorize.
29981 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
29983         * emit-rtl.c (reset_insn_used_flags): New function.
29984         (reset_all_used_flags): Use it.
29985         (verify_insn_sharing): New function.
29986         (verify_rtl_sharing): Fix verification for SEQUENCEs.
29988 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
29990         PR tree-optimization/56984
29991         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
29992         and (x >> M) >= N don't register any assertion if N << M is the
29993         minimum value.
29995 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
29997         * lower-subreg.c (resolve_simple_move): If called self-recursive,
29998         do not delete_insn insns that have not yet been emitted, only
29999         unlink them with remove_insn.
30000         * df-scan.c (df_insn_delete): Revert r197492.
30002 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
30004         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
30005         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
30007 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
30009         * config/arm/arm.md (movsicc_insn): Convert define_insn into
30010         define_insn_and_split.
30011         (and_scc,ior_scc,negscc): Likewise.
30012         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
30014 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
30016         * config/arm/arm.c (use_return_insn): Return 0 for targets that
30017         can benefit from using a sequence of LDRD instructions in epilogue
30018         instead of a single LDM instruction.
30020 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
30022         PR 45688
30023         * doc/extend.texi: Fix typo.
30025 2013-04-17  Richard Biener  <rguenther@suse.de>
30027         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
30028         (vect_build_slp_tree): ... here.
30029         (vect_build_slp_tree_1): Compute which stmts of the SLP group
30030         match.  Remove special-casing of mismatched complex loads.
30031         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
30032         re-try the match with swapped commutative operands.
30033         (vect_supported_load_permutation_p): Remove special-casing of
30034         mismatched complex loads.
30035         (vect_analyze_slp_instance): Adjust.
30037 2013-04-17  Richard Biener  <rguenther@suse.de>
30039         PR rtl-optimization/56921
30040         * cfgloop.h (struct loop): Add simple_loop_desc member.
30041         (struct niter_desc): Mark with GTY(()).
30042         (simple_loop_desc): Do not use aux field but simple_loop_desc.
30043         * loop-iv.c (get_simple_loop_desc): Likewise.
30044         (free_simple_loop_desc): Likewise.
30046         Revert
30047         2013-04-16  Richard Biener  <rguenther@suse.de>
30049         PR rtl-optimization/56921
30050         * loop-init.c (pass_rtl_move_loop_invariants): Add
30051         TODO_do_not_ggc_collect to todo_flags_finish.
30052         (pass_rtl_unswitch): Same.
30053         (pass_rtl_unroll_and_peel_loops): Same.
30054         (pass_rtl_doloop): Same.
30056 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
30058         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
30059         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
30060         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
30061         references.
30062         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
30063         * tree-streamer.c (record_common_node): Adjust reference in comment.
30065 2013-04-17  Terry Guo  <terry.guo@arm.com>
30067         * config/arm/cortex-m4.md: Add a new bypass.
30069 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
30071         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
30072         New pattern.
30073         (*subs_<optab><mode>_multp2): New pattern.
30074         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
30075         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
30077 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
30079         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
30080         (*subs_mul_imm_<mode>): New pattern.
30082 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
30084         PR target/56948
30085         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
30086         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
30087         (vsx_movti_32bit): Change j->wa to O->wa.
30089 2013-04-16  Richard Biener  <rguenther@suse.de>
30091         PR rtl-optimization/56921
30092         * loop-init.c (pass_rtl_move_loop_invariants): Add
30093         TODO_do_not_ggc_collect to todo_flags_finish.
30094         (pass_rtl_unswitch): Same.
30095         (pass_rtl_unroll_and_peel_loops): Same.
30096         (pass_rtl_doloop): Same.
30098 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
30100         * config/arm/arm.c (emit_multi_reg_push): New declaration
30101         for an existing function.
30102         (arm_emit_strd_push): New function.
30103         (arm_expand_prologue): Used here.
30104         (arm_emit_ldrd_pop): New function.
30105         (arm_expand_epilogue): Used here.
30106         (arm_get_frame_offsets): Update condition.
30107         (arm_emit_multi_reg_pop): Add a special case for load of a single
30108         register with writeback.
30110 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
30112         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
30113         description.
30115 2013-04-16  Richard Biener  <rguenther@suse.de>
30117         PR tree-optimization/56756
30118         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
30119         (first_mem_ref_loc): New.
30120         (execute_sm): Place the load temporarily before a previous
30121         access instead of in the latch edge to ensure its SSA dependencies
30122         are defined at points dominating the load.
30124 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
30126         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
30127         correct fix by moving header and footer insn to the footer of
30128         the merged basic block.  Clear BB_END of the merged-away block.
30130         PR middle-end/43631
30131         * emit-rtl.c (make_note_raw): New function.
30132         (link_insn_into_chain): New static inline function.
30133         (add_insn): Use it.
30134         (add_insn_before, add_insn_after): Factor insn chain linking code...
30135         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
30136         using link_insn_into_chain.
30137         (note_outside_basic_block_p): New helper function for emit_note_after
30138         and emit_note_before.
30139         (emit_note_after): Use nobb variant of add_insn_after if the note
30140         should not be contained in a basic block.
30141         (emit_note_before): Use nobb variant of add_insn_before if the note
30142         should not be contained in a basic block.
30143         (emit_note_copy): Use make_note_raw.
30144         (emit_note): Likewise.
30145         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
30146         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
30147         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
30148         the moved barrier the tail of the basic block it follows.
30149         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
30151 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
30153         PR tree-optimization/56962
30154         * gimple-ssa-strength-reduction.c (record_increment): Only set
30155         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
30156         either rhs1 or rhs2 is equal to c->base_expr.
30158 2013-04-15  Richard Biener  <rguenther@suse.de>
30160         PR tree-optimization/56933
30161         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
30162         member.
30163         (GROUP_READ_WRITE_DEPENDENCE): Remove.
30164         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
30165         * tree-vect-data-refs.c (vect_analyze_group_access): Move
30166         dependence check ...
30167         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
30168         ... here.
30169         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
30170         GROUP_READ_WRITE_DEPENDENCE.
30172 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30174         * emit-rtl.c (reset_all_used_flags): New function.
30175         (verify_rtl_sharing): Call reset_all_used_flags before and after
30176         performing the checks.
30178 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30180         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
30181         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
30182         * config/arm/constraints.md (De): New constraint.
30183         * config/arm/neon.md (anddi3_neon): Delete.
30184         (neon_vand<mode>): Expand to standard anddi3 pattern.
30185         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
30186         Move earlier in the file.
30187         (neon_inv_logic_op2): Likewise.
30188         (arm_anddi_operand_neon): New predicate.
30190 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30192         * configure.ac (gcc_cv_ld_as_needed): Set
30193         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
30194         Use -z ignore, -z record on *-*-solaris2*.
30195         (HAVE_LD_AS_NEEDED): Update comment.
30196         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
30197         * configure: Regenerate.
30198         * config.in: Regenerate.
30199         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
30200         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
30201         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
30202         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
30203         equivalents.  Fix markup.
30204         * doc/tm.texi: Regenerate.
30206 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
30208         * config/i386/i386.opt: New option mstack-protector-guard=.
30209         * config/i386/i386-opts.h: Add enum stack_protector_guard.
30210         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
30211         TARGET_SSP_TLS_GUARD.
30212         * config/i386/i386.c (ix86_option_override_internal): Set
30213         ix86_stack_protector_guard.
30214         * config/i386/i386.md (stack_protect_set): Enable for
30215         TARGET_SSP_TLS_GUARD only.
30216         (stack_protect_set_<mode>): Ditto.
30217         (stack_protect_test): Ditto.
30218         (stack_protect_test_<mode>): Ditto.
30219         * doc/invoke.texi (i386 Option): Document.
30221 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
30223         PR target/56890
30224         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
30225         (S_MODES): Set H_MODE bit.
30226         (SF_MODES): Set only S_MODE and SF_MODE bits.
30227         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
30228         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
30229         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
30230         <MODE_FLOAT>: Likewise.
30232 2013-04-15  Joey Ye  <joey.ye@arm.com>
30234         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
30236 2013-04-15  Joey Ye  <joey.ye@arm.com>
30238         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
30239         for real far jump.
30240         (thumb_far_jump_used_p): Count instruction size and set
30241         far_jump_used.
30243 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
30245         * reorg.c (fill_simple_delay_slots): Reindent block of code.
30246         * resource.c (mark_target_live_regs): Reformat conditional block.
30248 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
30250         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
30251         notes, they are emitted only just before final.
30252         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
30254 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
30256         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
30257         * cfgrtl.c (delete_insn): Call it here instead.
30258         * lra-spills.c (lra_final_code_change): Use delete_insn.
30259         * haifa-sched.c (sched_remove_insn): Likewise.
30260         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
30261         returning to the nop pool.
30262         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
30263         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
30265 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
30267         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
30268         * doc/tm.texi: Regenerated.
30270 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
30272         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
30273         QImode checks.
30275 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
30277         * df-core.c (df_find_def): Compare register numbers.
30278         (df_find_use): Likewise.
30280 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
30282         PR target/56903
30283         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
30284         lra_in_progress for return.
30286 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
30288         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
30289         define_insn into define_insn_and_split and emit movsicc patterns.
30291 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
30293         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
30295 2013-04-12  Richard Biener  <rguenther@suse.de>
30297         * tree-pass.h (TODO_do_not_ggc_collect): New.
30298         * passes.c (execute_one_ipa_transform_pass): Honor
30299         TODO_do_not_ggc_collect.
30300         (execute_one_pass): Likewise.
30302         Revert
30303         2013-04-10  Richard Biener  <rguenther@suse.de>
30305         * passes.c (init_optimization_passes): Remove reload pass.
30306         * ira.c (do_reload): Merge into ...
30307         (ira): ... this.
30308         (rest_of_handle_reload): Remove.
30309         (pass_reload): Likewise.
30310         * config/i386/i386.c (ix86_option_override): Refer to ira instead
30311         of reload for vzeroupper pass placement.
30313 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
30315         PR tree-optimization/56918
30316         PR tree-optimization/56920
30317         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
30318         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
30319         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
30320         use wide_mul_with_sign method.
30322 2013-04-12  Richard Biener  <rguenther@suse.de>
30324         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
30325         not be considered a gimple constant.
30327 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
30329         * fold-const.c (const_binop): Handle vector shifts by a scalar.
30330         (fold_binary_loc): Call const_binop also for mixed vector-scalar
30331         operations.
30333 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
30334             Jakub Jelinek  <jakub@redhat.com>
30336         * opts.c: Include diagnostic-color.h.
30337         (common_handle_option): Handle OPT_fdiagnostics_color_.
30338         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
30339         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
30340         (diagnostic-color.o): New.
30341         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
30342         (diagnostic_color_rule): New enum.
30343         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
30344         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
30345         the location string.
30346         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
30347         either NULL, or color kind.
30348         * diagnostic-color.c: New file.
30349         * diagnostic-color.h: New file.
30350         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
30351         arguments.
30352         * doc/invoke.texi (-fdiagnostics-color): Document.
30353         * pretty-print.h (pp_show_color): Define.
30354         (struct pretty_print_info): Add show_color field.
30355         * diagnostic.c: Include diagnostic-color.h.
30356         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
30357         macros.  Colorize error:, warning: etc. strings and also the location
30358         string.
30359         (diagnostic_show_locus): Colorize the caret line.
30360         * pretty-print.c: Include diagnostic-color.h.
30361         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
30362         inside of %< %> quotes or quoted through q format modifier.
30364 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30366         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
30368 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
30370         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
30371         code in CC_NZ mode.
30372         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
30373         pattern.
30375 2013-04-11  Marek Polacek  <polacek@redhat.com>
30377         PR tree-optimization/48184
30378         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
30380 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
30382         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
30383         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
30384         (skip_simple_arithmetic): Tidy up.
30385         * tree.h (skip_simple_constant_arithmetic): Declare.
30387 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
30389         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
30391 2013-04-11  Richard Biener  <rguenther@suse.de>
30393         * tree-vect-loop.c (get_initial_def_for_induction): Properly
30394         generate vector constants.
30396 2013-04-11  Richard Biener  <rguenther@suse.de>
30398         PR tree-optimization/56878
30399         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
30400         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
30401         New function.
30402         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
30403         Prefer to align the DR with the most invariant base address.
30405 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
30407         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
30408         comment.
30410 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
30412         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
30413         floating-point vector comparisons against 0.
30415 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
30417         PR tree-optimization/56899
30418         * fold-const.c (extract_muldiv_1): Apply distributive law
30419         only if TYPE_OVERFLOW_WRAPS (ctype).
30421 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
30423         PR target/56124
30424         * ira-costs.c (scan_one_insn): Check whether the source rtx of
30425         loading has side effect.
30427 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
30429         * config/sparc/sparc.c: Include tree-pass.h.
30430         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
30431         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
30432         head of file.  Change return type.  Split off gate function.
30433         (sparc_gate_work_around_errata): New function.
30434         (pass_work_around_errata): New pass definition.
30435         (insert_pass_work_around_errata) New pass insert definition to
30436         insert pass_work_around_errata just after delayed-branch scheduling.
30437         (sparc_option_override): Insert the pass.
30438         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
30440 2013-04-10  David S. Miller  <davem@davemloft.net>
30442         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
30443         or -mcpu=hypersparc.
30445         * target.def (cstore_mode): New hook.
30446         * target.h: Include insn-codes.h
30447         * targhooks.c: Likewise.
30448         (default_cstore_mode): New function.
30449         * targhooks.h: Declare it.
30450         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
30451         * doc/tm.texi: Rebuild.
30452         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
30453         target hook, rather than inspecting the insn_data.
30454         * config/sparc/sparc.c (sparc_cstore_mode): New function.
30455         (TARGET_CSTORE_MODE): Redefine.
30456         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
30457         result patterns.
30458         * config/sparc/predicates.md (cstore_result_operand): New special
30459         predicate.
30460         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
30461         Use it for operand 0.
30462         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
30463         (*snesi_special): Likewise.
30464         (*snesi_zero): Likewise.
30465         (*seqsi_zero): Likewise.
30466         (*sltu_insn): Likewise.
30467         (*sgeu_insn): Likewise.
30468         (*seqdi_special): Make operand 0 and comparison operation be of
30469         DImode.
30470         (*snedi_special): Likewise.
30471         (*snedi_special_vis3): Likewise.
30472         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
30473         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
30474         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
30475         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
30476         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
30477         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
30478         (*sltu_extend_sp64): Likewise.
30479         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
30480         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
30481         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
30482         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
30483         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
30485 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
30487         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
30488         (aarch64_start_file): Use the new function.
30490 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
30491             Jason Merrill  <jason@redhat.com>
30493         * common.opt: Add -gdwarf.
30494         * opts.c (common_handle_option): Handle it.
30495         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
30497 2013-04-10  Richard Biener  <rguenther@suse.de>
30499         * passes.c (execute_todo): Do not call ggc_collect conditional here.
30500         (execute_one_ipa_transform_pass): But unconditionally here.
30501         (execute_one_pass): And here.
30502         (init_optimization_passes): Remove reload pass.
30503         * tree-pass.h (TODO_ggc_collect): Remove.
30504         (pass_reload): Likewise.
30505         * ira.c (do_reload): Merge into ...
30506         (ira): ... this.
30507         (rest_of_handle_reload): Remove.
30508         (pass_reload): Likewise.
30509         * config/i386/i386.c (ix86_option_override): Refer to ira instead
30510         of reload for vzeroupper pass placement.
30511         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
30512         and todo_flags_finish of all passes.
30514 2013-04-10  Richard Biener  <rguenther@suse.de>
30516         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
30517         first_const_oprnd field, rename first_def_type to first_op_type.
30518         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
30519         (vect_get_and_check_slp_defs): Always use the type of the
30520         operand.  Allow mixed vect_external_def, vect_constant_def types.
30521         (vect_get_constant_vectors): Handle mixed vect_external_def,
30522         vect_constant_def types.
30524 2013-04-10  Joern Rennecke  <joern.rennecke@embecosm.com>
30526         PR tree-optimization/55524
30527         * tree-ssa-math-opts.c
30528         (convert_mult_to_fma): Don't use an fms construct
30529         when we don't have an fms operation, but fnma, and it looks
30530         likely that we'll be able to use the latter.
30532 2013-04-10  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
30534         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
30535         function.
30536         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
30537         inline fail caused by overwritable functions.
30539 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
30541         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
30542         unnecessary bits in the constant power of two case.
30544 2013-04-10  Richard Biener  <rguenther@suse.de>
30546         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
30547         broken code swapping operands.
30548         (vect_build_slp_tree): Do not compute load permutations here.
30549         (vect_analyze_slp_instance): Compute load permutations here,
30550         after building the SLP tree.
30552 2013-04-09  Christian Bruel  <christian.bruel@st.com>
30554         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
30555         of next/prev_real_insn.
30557 2013-04-09  Jan Hubicka  <jh@suse.cz>
30559         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
30560         Drop aliased parameter.
30561         (function_and_variable_visibility): Do not handle alias pairs.
30562         * cgraph.c (varpool_externally_visible_p): Update prototype.
30563         * varpool.c (varpool_add_new_variable): Update.
30565 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30567         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
30569 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
30571         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
30573         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
30575 2013-04-09  Marek Polacek  <polacek@redhat.com>
30577         PR tree-optimization/48762
30578         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
30580 2013-04-09  Richard Biener  <rguenther@suse.de>
30582         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
30583         dealing with cost.
30584         (vect_build_slp_tree): Likewise.
30585         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
30586         calculating the cost of a SLP instance.
30587         (vect_analyze_slp_instance): Use it from here, after building
30588         the SLP tree.
30590 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
30592         PR middle-end/56883
30593         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
30594         expand_omp_for_static_chunk): Use simple_p = true in
30595         force_gimple_operand_gsi calls when assigning to addressable decls.
30597 2013-04-09  Jeff Law  <law@redhat.com>
30599         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
30600         when the boolean was created by converting a wider object which
30601         had a boolean range.
30603 2013-04-09  Richard Biener  <rguenther@suse.de>
30605         * tree-vectorizer.h (slp_void_p): Remove.
30606         (slp_tree): Typedef before _slp_tree declaration.
30607         (struct _slp_tree): Use a vector of slp_tree as children.
30608         (vect_get_place_in_interleaving_chain): Remove.
30609         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
30610         Move ...
30611         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
30612         and make static.
30613         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
30614         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
30615         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
30616         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
30617         Use slp_node instead of slp_void_p and adjust.
30619 2013-04-09  Richard Biener  <rguenther@suse.de>
30621         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
30622         work that is not necessary.
30624 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
30626         PR tree-optimization/56854
30627         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
30628         forward into clobber stmts if it would change MEM_REF lhs into
30629         non-MEM_REF.
30631 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
30633         * tree.c (type_hash_lookup, type_hash_add): Make static.
30634         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
30636 2013-04-09  Richard Biener  <rguenther@suse.de>
30638         * tree.h (unsave_expr_now): Remove.
30639         * tree-inline.c (mark_local_for_remap_r): Remove.
30640         (unsave_expr_1): Likewise.
30641         (unsave_r): Likewise.
30642         (unsave_expr_now): Likewise.
30643         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
30644         (propagate_tree_value): Likewise.
30646 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
30648         * doc/rtl.texi (sequence): Rewrite documentation to match the
30649         current use of SEQUENCE rtl objects.
30650         * rtl.def (SEQUENCE): Likewise.
30652         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
30653         Update documentation.
30654         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
30655         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
30657         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
30659 2013-04-08  Teresa Johnson  <tejohnson@google.com>
30661         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
30662         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
30663         methods.
30664         (estimate_edge_size_and_time): Add comment to suggest using rounding
30665         methods.
30666         (estimate_node_size_and_time): Ditto.
30667         (remap_edge_change_prob): Use helper rounding divide methods.
30668         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
30669         (gimple_mod_pow2_value_transform): Ditto.
30670         (gimple_mod_subtract_transform): Ditto.
30671         (gimple_ic_transform): Ditto.
30672         (gimple_stringops_transform): Ditto.
30673         * stmt.c (conditional_probability): Ditto.
30674         (emit_case_dispatch_table): Ditto.
30675         * lto-cgraph.c (merge_profile_summaries): Ditto.
30676         * tree-optimize.c (execute_fixup_cfg): Ditto.
30677         * cfgcleanup.c (try_forward_edges): Ditto.
30678         * cfgloopmanip.c (scale_loop_profile): Ditto.
30679         (loopify): Ditto.
30680         (duplicate_loop_to_header_edge): Ditto.
30681         (lv_adjust_loop_entry_edge): Ditto.
30682         * tree-vect-loop.c (vect_transform_loop): Ditto.
30683         * profile.c (compute_branch_probabilities): Ditto.
30684         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
30685         * lto-streamer-in.c (input_cfg): Ditto.
30686         * gimple-streamer-in.c (input_bb): Ditto.
30687         * ipa-cp.c (update_profiling_info): Ditto.
30688         (update_specialized_profile): Ditto.
30689         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
30690         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
30691         rounding methods.
30692         * sched-rgn.c (compute_dom_prob_ps): Ditto.
30693         (compute_trg_info): Ditto.
30694         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
30695         (purge_dead_edges): Ditto.
30696         * loop-unswitch.c (unswitch_loop): Ditto.
30697         * cgraphclones.c (cgraph_clone_edge): Ditto.
30698         (cgraph_clone_node): Ditto.
30699         * tree-inline.c (copy_bb): Ditto.
30700         (copy_edges_for_bb): Ditto.
30701         (initialize_cfun): Ditto.
30702         (copy_cfg_body): Ditto.
30703         (expand_call_inline): Ditto.
30705 2013-04-08  Kai Tietz  <ktietz@redhat.com>
30707         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
30708         TARGET_CYGWIN64 by TARGET_64BIT.
30710 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
30712         * config/epiphany/epiphany.md (GPR_1): New constant.
30713         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
30714         * config/epiphany/epiphany.c (gen_compare_reg):
30715         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
30716         is already in place.
30717         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
30718         Don't require being called during rtl expansion; If y operlaps r0,
30719         return 0.
30720         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
30721         (epiphany_expand_epilogue): Likewise.
30723         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
30724         Don't use CC_FPmode for ORDERED / UNORDERED.
30725         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
30727         * config/epiphany/constraints.md (CnL): New constraint.
30728         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
30729         * config/epiphany/predicates.md (add_operand): Allow 1024.
30731         * config/epiphany/epiphany.md (logical_op): New code iterator.
30732         (op_mnc): New code attribute.
30733         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
30734         (mov_f+1, mov_f+2): New peephole2 patterns.
30736         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
30737         (cstoresi4): Also allow re-use of zero result when doing a NE
30738         comparison to a non-zero operand.
30739         Use (clobber (scratch)) for first insn if the gpr output is not needed.
30741         * config/epiphany/epiphany.md (<insn_opname>v2si3):
30742         Use gen_addsi3_i / gen_subsi3_i.
30744 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
30746         PR c++/34949
30747         PR c++/50243
30748         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
30749         contain anything but clobbers, at most one __builtin_stack_restore,
30750         optionally debug stmts and final resx, and if it has at least one
30751         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
30752         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
30753         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
30754         which isn't defaut definition, remove them.
30755         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
30756         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
30757         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
30758         with MEM_REF LHS with SSA_NAME address.
30760 2013-04-08  Jeff Law  <law@redhat.com>
30762         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
30764 2013-04-08  Richard Biener  <rguenther@suse.de>
30766         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
30767         extra newline.
30768         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
30769         determined vector type.
30770         (vect_analyze_data_refs): Likewise.
30771         (vect_get_new_vect_var): Adjust.
30772         (vect_create_destination_var): Preserve SSA name versions.
30773         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
30774         not dump anything here.
30776 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
30778         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
30779         Add member lr_slot_known.
30780         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
30781         if necessary.
30782         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
30783         Remove code that sets lr_slot_offset according to what a previous
30784         version of epiphany_emit_save_restore used to do.
30785         (epiphany_emit_save_restore): When doing an lr save or restore,
30786         set/verify lr_slot_known and lr_slot_offset.
30788 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
30790         PR target/54338
30791         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
30792         in ALL_REGS.
30794 2013-04-08  Richard Biener  <rguenther@suse.de>
30796         * alias.c (find_base_term): Fix thinko in previous change.
30798 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
30800         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
30801         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
30802         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
30803         if possible to compute val.
30804         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
30805         For QImode integers don't require anything about precision.  Use
30806         const_with_all_bytes_same to find out if the constant doesn't have
30807         repeated bytes in it.
30809 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30811         * config/s390/s390.c (s390_expand_insv): Only accept insertions
30812         within mode size.
30814 2013-04-08  Marek Polacek  <polacek@redhat.com>
30816         PR rtl-optimization/48182
30817         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
30818         value to 1.
30820 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30822         PR target/55487
30823         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
30824         nuses, make sure we have a label.
30826 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30828         PR target/56843
30829         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
30830         (rs6000_emit_swdiv_low_precision): Remove.
30831         (rs6000_emit_swdiv): Rewrite to handle between one and four
30832         iterations of Newton-Raphson generally; modify required number of
30833         iterations for some cases.
30834         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
30836 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
30838         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
30839         set-but-unused variable.
30841         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
30842         basic blocks of released function bodies garbage-collectable.
30844         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
30845         (struct rtl_opt_pass): Add TODO_df_finish.
30847         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
30849 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30851         * config/arm/constraints.md (q): New constraint.
30852         * config/arm/ldrdstrd.md: New file.
30853         * config/arm/arm.md (ldrdstrd.md) New include.
30854         (arm_movdi): Use "q" instead of "r" constraint
30855         for double-word memory access.
30856         (movdf_soft_insn): Likewise.
30857         * config/arm/vfp.md (movdi_vfp): Likewise.
30858         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
30859         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
30860         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
30861         (mem_ok_for_ldrd_strd): Likewise.
30862         (output_move_double): Update assertion.
30864 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30866         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
30868 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30870         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
30871         define_insn_and_split.
30872         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
30874 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30876         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
30877         define_insn_and_split.
30878         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
30879         (shiftsi3_compare): New pattern.
30880         (rrx): New pattern.
30881         * config/arm/unspecs.md (UNSPEC_RRX): New.
30883 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30885         * config/arm/arm.md (negdi_extendsidi): New pattern.
30886         (negdi_zero_extendsidi): Likewise.
30888 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30890         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
30891         define_insn_and_split.
30892         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
30893         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
30895 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30897         * config/arm/arm.md (arm_subdi3): Convert define_insn into
30898         define_insn_and_split.
30899         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
30900         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
30902 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30904         * config/arm/arm.md (subsi3_carryin): New pattern.
30905         (subsi3_carryin_const): Likewise.
30906         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
30907         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
30909 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30911         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
30913 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30915         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
30916         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
30918 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30920         * config/arm/arm.c (arm_expand_builtin): Change fcode
30921         type to unsigned int.
30923 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30925         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
30927 2013-04-04  Ian Lance Taylor  <iant@google.com>
30929         * doc/standards.texi (Standards): The Go frontend supports the Go 1
30930         language standard.
30932 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
30934         PR middle-end/56729
30935         * df-scan.c (df_insn_delete): Disable failing assert.
30937 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30939         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
30940         New function prototype.
30941         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
30942         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
30943         (arm_builtin_vectorized_function): New function.
30945 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30947         * config/arm/arm_neon_builtins.def: New file.
30948         * config/arm/arm.c (neon_builtin_data): Move contents to
30949         arm_neon_builtins.def.
30950         (enum arm_builtins): Include neon builtin definitions.
30951         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
30952         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
30954 2013-04-04  Marek Polacek  <polacek@redhat.com>
30956         PR tree-optimization/48186
30957         * predict.c (maybe_hot_frequency_p): Return false if
30958         HOT_BB_FREQUENCY_FRACTION is 0.
30959         (cgraph_maybe_hot_edge_p): Likewise.
30961 2013-04-04  Richard Biener  <rguenther@suse.de>
30963         PR tree-optimization/56826
30964         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
30965         more accurately.
30967 2013-04-04  Richard Biener  <rguenther@suse.de>
30969         PR tree-optimization/56213
30970         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
30971         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
30973 2013-04-04  Richard Biener  <rguenther@suse.de>
30975         PR tree-optimization/56837
30976         * tree-loop-distribution.c (classify_partition): For non-zero
30977         values require that the value has the same precision as its
30978         mode to be useful as memset value.
30980 2013-04-03  Nick Clifton  <nickc@redhat.com>
30982         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
30983         (fmssf4): Use fmsf.s on E3V5 architectures.
30984         (fnmasf4): Use fnmaf.s on E3V5 architectures.
30985         (fnmssf4): Use fnmsf.s on E3V5 architectures.
30987 2013-04-03  Jeff Law  <law@redhat.com>
30989         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
30990         (lra-eliminations.o): Likewise.
30992 2013-04-03  Teresa Johnson  <tejohnson@google.com>
30994         * gcov-io.c (compute_working_sets): Moved most of body of old
30995         compute_working_sets here from profile.c.
30996         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
30997         (gcov_working_set_t): Moved typedef here from basic-block.h
30998         (compute_working_set): Declare.
30999         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
31000         (get_working_sets): Renamed from compute_working_set,
31001         replace most of body with call to new compute_working_sets.
31002         (get_exec_counts): Replace call to compute_working_sets
31003         to get_working_sets.
31004         * profile.h (get_working_sets): Renamed from compute_working_set.
31005         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
31006         to get_working_sets.
31007         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
31008         * gcov-dump.c (dump_working_sets): New function.
31010 2013-04-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
31012         * hwint.c (sext_hwi, zext_hwi): New functions.
31013         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
31014         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
31015         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
31016         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
31017         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
31018         (sext_hwi, zext_hwi): New functions.
31020 2013-04-03  Jeff Law  <law@redhat.com>
31022         PR tree-optimization/56799
31023         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
31024         back test for widening conversion erroneously dropped in prior change.
31026 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31028         PR target/56809
31029         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
31030         instead of next_real_insn.
31032 2013-04-03  Marek Polacek  <polacek@redhat.com>
31034         PR sanitizer/55702
31035         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
31037 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31039         PR target/56809
31040         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
31041         next_real_insn.
31042         (thumb1_output_casesi): Likewise.
31043         (thumb2_output_casesi): Likewise.
31045 2013-04-03  Richard Biener  <rguenther@suse.de>
31047         PR tree-optimization/56817
31048         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
31049         Split out ...
31050         (tree_unroll_loops_completely_1): ... new function to manually
31051         walk the loop tree, properly defering outer loops of unrolled
31052         loops to later iterations.
31054 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
31056         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
31057         (vectorizable_load): Likewise.
31058         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
31059         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
31061 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
31063         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
31064         BIT_FIELD_REF.
31066 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31068         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
31070 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
31072         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
31074 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
31076         PR tree-optimization/56790
31077         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
31078         folding.
31080 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
31082         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
31083         Handle VEC_MERGE.
31084         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
31085         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
31086         equal arguments.
31088 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
31090         PR c/19449
31091         * tree.h (force_folding_builtin_constant_p): New decl.
31092         * builtins.c (force_folding_builtin_constant_p): New variable.
31093         (fold_builtin_constant_p): Fold immediately also if
31094         force_folding_builtin_constant_p.
31096 2013-04-03  Richard Biener  <rguenther@suse.de>
31098         PR tree-optimization/56812
31099         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
31100         DRs of the same interleaving chain are independent.
31102 2013-04-02  Jason Merrill  <jason@redhat.com>
31104         * gdbinit.in (pbb): Use debug fn.
31106 2013-04-02  Lawrence Crowl  <crowl@google.com>
31108         * sese.h (struct ivtype_map_elt_s): Remove unused.
31109         (extern debug_ivtype_map): Remove unused.
31110         (extern eq_ivtype_map_elts): Remove unused.
31111         * sese.c (debug_ivtype_map): Removed unused.
31112         (debug_ivtype_map_1): Removed unused.
31113         (debug_ivtype_elt): Remove unused.
31114         (eq_ivtype_map_elts): Remove unused.
31116 2013-04-02  Kai Tietz  <ktietz@redhat.com>
31118         PR target/52790
31119         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
31120         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
31121         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
31122         function.
31123         (legitimize_pe_coff_symbol): Likewise.
31124         (is_imported_p): New helper-function.
31125         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
31126         for Windows x64 targets.
31127         (ix86_expand_prologue): Optimize for pe-coff targets.
31128         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
31129         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
31130         medium/large code-model.
31131         (legitimize_pic_address): Likewise.
31132         (legitimize_tls_address): Likewise.
31133         (ix86_expand_call): Likewise.
31134         (x86_output_mi_thunk): Likewise.
31135         (get_dllimport_decl): Add new beimport argument.
31136         (construct_plt_address): Don't assert for x64 pe-coff targets.
31137         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
31138         targets.
31139         (SYMBOL_FLAG_STUBVAR): New macro.
31140         (SYMBOL_REF_STUBVAR_P): Likewise.
31141         * config/i386/winnt.c (stub_list): New structure.
31142         (stub_head): New local variable.
31143         (i386_pe_record_stub): New function.
31144         (i386_pe_file_end): Emit refptr-stubs.
31146 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
31148         PR rtl-optimization/56745
31149         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
31150         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
31152         PR c++/34949
31153         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
31154         and both of them are MEM_REFs, just compare first argument for
31155         equality and attempt to deal even with differing offsets.
31157         PR c++/34949
31158         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
31159         of gimple_clobber_p to be MEM_REF.
31160         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
31161         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
31162         after gimplification.
31163         * asan.c (get_mem_ref_of_assignment): Don't instrument
31164         gimple_clobber_p stmts.
31165         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
31166         gimple_clobber_p stmt if they have MEM_REF lhs and
31167         are dead because of another gimple_clobber_p stmt.
31168         * tree-ssa-live.c (clear_unused_block_pointer): Treat
31169         gimple_clobber_p stmts like debug stmts.
31170         (remove_unused_locals): Remove clobbers with MEM_REF lhs
31171         that refer to unused VAR_DECLs or uninitialized values.
31172         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
31173         gimple_clobber_p stmts if they refer to removed parameters.
31174         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
31175         formatting.
31177 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
31179         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
31180         using SWI48 mode attribute.
31182 2013-04-02  Wei Mi  <wmi@google.com>
31184         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
31185         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
31186         *<rotate_insn><mode>3_mask in i386.md.
31188 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
31190         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
31192 2013-04-02  Richard Biener  <rguenther@suse.de>
31194         PR tree-optimization/56778
31195         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
31196         Runtime alias tests are not supported for gather loads.
31197         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
31198         stmts referenced from SSA operands before updating SSA form.
31200 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
31201             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31203         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
31204         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
31205         * config/arm/cortex-a53.md: New file.
31206         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
31207         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
31208         * config/arm/arm.c (arm_issue_rate): Likewise.
31209         * config/arm/arm-tune.md: Regenerate
31210         * config/arm/arm-tables.opt: Regenerate.
31211         * config/arm/arm-cores.def: Add cortex-a53.
31213 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
31215         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
31216         non-static link.
31218 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
31220         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
31221         scalar load/store operations using B/H registers.
31222         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
31224 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
31226         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
31227         scalar move.
31228         * config/aarch64/aarch64.c
31229         (aarch64_simd_scalar_immediate_valid_for_move): New.
31230         * config/aarch64/aarch64-protos.h
31231         (aarch64_simd_scalar_immediate_valid_for_move): New.
31232         * config/aarch64/constraints.md (Dh, Dq): New.
31233         * config/aarch64/iterators.md (hq): New.
31235 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
31237         * reorg.c (get_branch_condition): Deal with conditional returns.
31238         (fill_simple_delay_slots): Remove dead code dealing with jumps.
31240 2013-04-01  Wei Mi  <wmi@google.com>
31242         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
31243         Truncate operand 2 using %b asm operand modifier.
31244         (*<shift_insn><mode>3_mask): Ditto.
31245         (*<rotate_insn><mode>3_mask): Ditto.
31247 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
31249         PR middle-end/56798
31250         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
31252 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
31254         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
31255         of next_real_insn.
31256         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
31258 2013-03-30  Lawrence Crowl  <crowl@google.com>
31260         * dse.c (clear_alias_sets): Remove never set.
31261         (disqualified_clear_alias_sets): Remove never set.
31262         (clear_alias_mode_pool): Remove never set.
31263         (dse_step0): Remove condition that is never true.
31264         (canon_address): Remove condition that is never true.
31265         (dse_step7): Remove condition that is never true.
31266         (rest_of_handle_dse): Remove condition that is never true.
31267         (rest_of_handle_dse::did_global): Remove never read from above.
31268         (dse_step2_spill): Remove never called from above.
31269         (dse_step5_spill): Remove never called from above.
31271 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
31273         * doc/md.texi (Standard Names) <casesi>: Update documentation for
31274         JUMP_TABLE_DATA changes.
31275         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
31276         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
31277         (Insns) <jump_table_data>: New entry.
31278         * doc/tm.texi: Regenerate.
31280         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
31282         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
31283         for table jump at the end of a basic block using tablejump_p.
31284         * targhooks.c (default_invalid_within_doloop): Likewise.
31285         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
31286         target hook implementation that is identical to the default hook.
31287         (rs6000_invalid_within_doloop): Remove.
31289         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
31290         unused variable from tablejump_p call.
31292         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
31293         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
31294         (INSN_DELETED_P): Likewise.
31295         (emit_jump_table_data): New prototype.
31296         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
31297         after 4th as unused.
31298         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
31299         * sched-vis.c (print_insn): Likewise.
31300         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
31301         insn for compatibility with back ends that use next_active_insn to
31302         identify jump table data.
31303         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
31304         (remove_insn): Likewise.
31305         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
31306         to be emitted.
31307         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
31308         (emit_jump_table_data): New function.
31310         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
31311         basic block, a JUMP_TABLE_DATA never is.
31312         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
31313         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
31314         off from code handling real insns.
31315         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
31316         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
31317         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
31318         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
31319         is not a NONDEBUG_INSN_P.
31320         * ira-costs.c (scan_one_insn): Likewise.
31321         * jump.c (mark_all_labels): Likewise.
31322         (mark_jump_label_1): Likewise.
31323         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
31324         * lra.c (get_insn_freq): Expect all insns reaching here to be in
31325         a basic block.
31326         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
31327         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
31328         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
31329         JUMP_TABLE_DATA_P insns.
31330         (calculate_elim_costs_all_insns): Likewise.
31331         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
31332         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
31333         (delete_output_reload): Code style fixups.
31334         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
31335         insn flags on this non-insn.
31336         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
31337         as scheduling barriers, for pre-change compatibility.
31338         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
31339         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
31341         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
31342         redundant JUMP_TABLE_DATA_P test.
31343         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
31344         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
31345         (frv_for_each_packet): Likewise.
31346         * config/i386/i386.c (min_insn_size): Likewise.
31347         (ix86_avoid_jump_mispredicts): Likewise.
31348         * config/m32r/m32r.c (m32r_is_insn): Likewise.
31349         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
31350         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
31351         (mips16_insn_length): Robustify.
31352         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
31353         (mips16_split_long_branches): Likewise.
31354         * config/pa/pa.c (pa_combine_instructions): Likewise.
31355         * config/rs6000/rs6000.c (get_next_active_insn): Treat
31356         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
31357         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
31358         as contributing to pool range lengths.
31359         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
31360         Remove redundant JUMP_TABLE_DATA_P test.
31361         (sh_loop_align): Likewise.
31362         (split_branches): Likewise.
31363         (sh_insn_length_adjustment): Likewise.
31364         * config/spu/spu.c (get_branch_target): Likewise.
31366 2013-03-29  Jan Hubicka  <jh@suse.cz>
31368         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
31369         gcov streaming; stream hot bb threshold to ltrans.
31370         * predict.c (get_hot_bb_threshold): Break out from ....
31371         (maybe_hot_count_p): ... here.
31372         (set_hot_bb_threshold): New function.
31373         * lto-section-in.c (lto_section_name): Add profile.
31374         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
31375         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
31376         and data-streamer.h
31377         (histogram_entry): New structure.
31378         (histogram, histogram_pool): New global vars.
31379         (histogram_hash): New structure.
31380         (histogram_hash::hash): New method.
31381         (histogram_hash::equal): Likewise.
31382         (account_time_size): New function.
31383         (cmp_counts): New function.
31384         (dump_histogram): New function.
31385         (ipa_profile_generate_summary): New function.
31386         (ipa_profile_write_summary): New function.
31387         (ipa_profile_read_summary): New function.
31388         (ipa_profile): Decide on threshold.
31389         (pass_ipa_profile): Add ipa_profile_write_summary and
31390         ipa_profile_read_summary.
31391         * Makefile.in (ipa.o): Update dependencies.
31392         * lto-streamer.h (LTO_section_ipa_profile): New section.
31394 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
31396         * tree.h (VAR_P): New.
31398 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
31400         PR lto/56777
31401         * doc/invoke.texi ([-fwhole-program]): Fix typo.
31403 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
31405         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
31406         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
31407         (control_flow_insn_p): Likewise.
31408         * cfgrtl.c (duplicate_insn_chain): Likewise.
31409         * final.c (get_attr_length_1): Likewise.
31410         (shorten_branches): Likewise.
31411         (final_scan_insn): Likewise.
31412         * function.c (instantiate_virtual_regs): Likewise.
31413         * gcse.c (insert_insn_end_basic_block): Likewise.
31414         * ira-costs.c (scan_one_insn): Likewise.
31415         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
31416         * lra.c (check_rtl): Likewise.
31417         * reload1.c (elimination_costs_in_insn): Likewise.
31418         * reorg.c (follow_jumps): Likewise.
31420         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
31421         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
31422         (thumb_far_jump_used_p): Likewise.
31423         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
31424         (workaround_speculation): Likewise.
31425         (add_sched_insns_for_speculation): Likewise.
31426         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
31427         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
31428         (frv_for_each_packet): Likewise.
31429         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
31430         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
31431         (final_emit_insn_group_barriers): Likewise.
31432         * config/m32r/m32r.c (m32r_is_insn): Likewise.
31433         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
31434         (mips16_insn_length): Likewise.
31435         * config/pa/pa.c (pa_reorg): Likewise.
31436         (pa_combine_instructions): Likewise.
31437         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
31438         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
31439         (sh_reorg): Likewise.
31440         (split_branches): Likewise.
31441         * config/spu/spu.c (get_branch_target): Likewise.
31443         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
31444         JUMP_TABLE_DATA_P.
31446 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
31448         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
31449         Fix declaration name.
31451 2013-03-28  Lawrence Crowl  <crowl@google.com>
31453         * graphds.h (struct graph.indicies): Remove unused.
31454         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
31455         (SCOP_ORIGINAL_PDDRS): Remove unused.
31456         * sese.h (extern insert_loop_close_phis): Removed unused.
31457         (extern insert_guard_phis): Removed unused.
31458         (extern ivtype_map_elt_info): Removed unused.
31459         (new_ivtype_map_elt): Removed unused.
31460         * sese.c (ivtype_map_elt_info): Removed unused.
31462 2013-03-28  Lawrence Crowl  <crowl@google.com>
31464         * Makefile.in: Add several missing include dependences.
31465         (DUMPFILE_H): New.
31466         (test-dump.o): New.  This object is not added to any executable,
31467         but is present for ad-hoc testing.
31468         * bitmap.c
31469         (debug (const bitmap_head_def &)): New.
31470         (debug (const bitmap_head_def *)): New.
31471         * bitmap.h
31472         (extern debug (const bitmap_head_def &)): New.
31473         (extern debug (const bitmap_head_def *)): New.
31474         * cfg.c
31475         (debug (edge_def &)): New.
31476         (debug (edge_def *)): New.
31477         * cfghooks.c
31478         (debug (basic_block_def &)): New.
31479         (debug (basic_block_def *)): New.
31480         * dumpfile.h
31481         (dump_node (const_tree, int, FILE *)): Correct source file.
31482         * dwarf2out.c
31483         (debug (die_struct &)): New.
31484         (debug (die_struct *)): New.
31485         * dwarf2out.h
31486         (extern debug (die_struct &)): New.
31487         (extern debug (die_struct *)): New.
31488         * gimple-pretty-print.c
31489         (debug (gimple_statement_d &)): New.
31490         (debug (gimple_statement_d *)): New.
31491         * gimple-pretty-print.h
31492         (extern debug (gimple_statement_d &)): New.
31493         (extern debug (gimple_statement_d *)): New.
31494         * ira-build.c
31495         (debug (ira_allocno_copy &)): New.
31496         (debug (ira_allocno_copy *)): New.
31497         (debug (ira_allocno &)): New.
31498         (debug (ira_allocno *)): New.
31499         * ira-int.h
31500         (extern debug (ira_allocno_copy &)): New.
31501         (extern debug (ira_allocno_copy *)): New.
31502         (extern debug (ira_allocno &)): New.
31503         (extern debug (ira_allocno *)): New.
31504         * ira-lives.c
31505         (debug (live_range &)): New.
31506         (debug (live_range *)): New.
31507         * lra-int.h
31508         (debug (lra_live_range &)): New.
31509         (debug (lra_live_range *)): New.
31510         * lra-lives.c
31511         (debug (lra_live_range &)): New.
31512         (debug (lra_live_range *)): New.
31513         * omega.c
31514         (debug (omega_pb_d &)): New.
31515         (debug (omega_pb_d *)): New.
31516         * omega.h
31517         (extern debug (omega_pb_d &)): New.
31518         (extern debug (omega_pb_d *)): New.
31519         * print-rtl.c
31520         (debug (const rtx_def &)): New.
31521         (debug (const rtx_def *)): New.
31522         * print-tree.c
31523         (debug_tree (tree): Move within file.
31524         (debug_raw (const tree_node &)): New.
31525         (debug_raw (const tree_node *)): New.
31526         (dump_tree_via_hooks (const tree_node *, int)): New.
31527         (debug (const tree_node &)): New.
31528         (debug (const tree_node *)): New.
31529         (debug_verbose (const tree_node &)): New.
31530         (debug_verbose (const tree_node *)): New.
31531         (debug_head (const tree_node &)): New.
31532         (debug_head (const tree_node *)): New.
31533         (debug_body (const tree_node &)): New.
31534         (debug_body (const tree_node *)): New.
31535         (debug_vec_tree (tree): Move and reimplement in terms of dump.
31536         (debug (vec<tree, va_gc> &)): New.
31537         (debug (vec<tree, va_gc> *)): New.
31538         * rtl.h
31539         (extern debug (const rtx_def &)): New.
31540         (extern debug (const rtx_def *)): New.
31541         * sbitmap.c
31542         (debug_raw (simple_bitmap_def &)): New.
31543         (debug_raw (simple_bitmap_def *)): New.
31544         (debug (simple_bitmap_def &)): New.
31545         (debug (simple_bitmap_def *)): New.
31546         * sbitmap.h
31547         (extern debug (simple_bitmap_def &)): New.
31548         (extern debug (simple_bitmap_def *)): New.
31549         (extern debug_raw (simple_bitmap_def &)): New.
31550         (extern debug_raw (simple_bitmap_def *)): New.
31551         * sel-sched-dump.c
31552         (debug (vinsn_def &)): New.
31553         (debug (vinsn_def *)): New.
31554         (debug_verbose (vinsn_def &)): New.
31555         (debug_verbose (vinsn_def *)): New.
31556         (debug (expr_def &)): New.
31557         (debug (expr_def *)): New.
31558         (debug_verbose (expr_def &)): New.
31559         (debug_verbose (expr_def *)): New.
31560         (debug (vec<rtx> &)): New.
31561         (debug (vec<rtx> *)): New.
31562         * sel-sched-dump.h
31563         (extern debug (vinsn_def &)): New.
31564         (extern debug (vinsn_def *)): New.
31565         (extern debug_verbose (vinsn_def &)): New.
31566         (extern debug_verbose (vinsn_def *)): New.
31567         (extern debug (expr_def &)): New.
31568         (extern debug (expr_def *)): New.
31569         (extern debug_verbose (expr_def &)): New.
31570         (extern debug_verbose (expr_def *)): New.
31571         (extern debug (vec<rtx> &)): New.
31572         (extern debug (vec<rtx> *)): New.
31573         * sel-sched-ir.h
31574         (_list_iter_cond_expr): Make inline instead of static.
31575         * sreal.c
31576         (debug (sreal &)): New.
31577         (debug (sreal *)): New.
31578         * sreal.h
31579         (extern debug (sreal &)): New.
31580         (extern debug (sreal *)): New.
31581         * tree.h
31582         (extern debug_raw (const tree_node &)): New.
31583         (extern debug_raw (const tree_node *)): New.
31584         (extern debug (const tree_node &)): New.
31585         (extern debug (const tree_node *)): New.
31586         (extern debug_verbose (const tree_node &)): New.
31587         (extern debug_verbose (const tree_node *)): New.
31588         (extern debug_head (const tree_node &)): New.
31589         (extern debug_head (const tree_node *)): New.
31590         (extern debug_body (const tree_node &)): New.
31591         (extern debug_body (const tree_node *)): New.
31592         (extern debug (vec<tree, va_gc> &)): New.
31593         (extern debug (vec<tree, va_gc> *)): New.
31594         * tree-cfg.c
31595         (debug (struct loop &)): New.
31596         (debug (struct loop *)): New.
31597         (debug_verbose (struct loop &)): New.
31598         (debug_verbose (struct loop *)): New.
31599         * tree-dump.c: Add header dependence.
31600         * tree-flow.h
31601         (extern debug (struct loop &)): New.
31602         (extern debug (struct loop *)): New.
31603         (extern debug_verbose (struct loop &)): New.
31604         (extern debug_verbose (struct loop *)): New.
31605         * tree-data-ref.c
31606         (debug (data_reference &)): New.
31607         (debug (data_reference *)): New.
31608         (debug (vec<data_reference_p> &)): New.
31609         (debug (vec<data_reference_p> *)): New.
31610         (debug (vec<ddr_p> &)): New.
31611         (debug (vec<ddr_p> *)): New.
31612         * tree-data-ref.h
31613         (extern debug (data_reference &)): New.
31614         (extern debug (data_reference *)): New.
31615         (extern debug (vec<data_reference_p> &)): New.
31616         (extern debug (vec<data_reference_p> *)): New.
31617         (extern debug (vec<ddr_p> &)): New.
31618         (extern debug (vec<ddr_p> *)): New.
31619         * tree-ssa-alias.c
31620         (debug (pt_solution &)): New.
31621         (debug (pt_solution *)): New.
31622         * tree-ssa-alias.h
31623         (extern debug (pt_solution &)): New.
31624         (extern debug (pt_solution *)): New.
31625         * tree-ssa-alias.c
31626         (debug (_var_map &)): New.
31627         (debug (_var_map *)): New.
31628         (debug (tree_live_info_d &)): New.
31629         (debug (tree_live_info_d *)): New.
31630         * tree-ssa-alias.h
31631         (extern debug (_var_map &)): New.
31632         (extern debug (_var_map *)): New.
31633         (extern debug (tree_live_info_d &)): New.
31634         (extern debug (tree_live_info_d *)): New.
31636 2013-03-28  Jan Hubicka  <jh@suse.cz>
31638         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
31640 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
31642         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
31643         record only when desired or required.
31645 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
31647         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
31648         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
31650 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
31652         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
31653         (*andsi3_compare0_uxtw): New pattern.
31654         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
31655         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
31657 2013-03-28  Jan Hubicka  <jh@suse.cz>
31659         * data-streamer-in.c (streamer_read_gcov_count): New function.
31660         * gimple-streamer-out.c: Include value-prof.h.
31661         (output_gimple_stmt): Output histogram.
31662         (output_bb): Use streamer_write_gcov_count.
31663         * value-prof.c: Include data-streamer.h
31664         (dump_histogram_value): Add HIST_TYPE_MAX.
31665         (stream_out_histogram_value): New function.
31666         (stream_in_histogram_value): New function.
31667         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
31668         (stream_out_histogram_value, stream_in_histogram_value): Declare.
31669         * data-streamer-out.c (streamer_write_gcov_count): New function.
31670         (streamer_write_gcov_count_stream): New function.
31671         * lto-cgraph.c (lto_output_edge): Update counter streaming.
31672         (lto_output_node): Likewise.
31673         (input_node, input_edge): Likewise.
31674         * lto-streamer-out.c (output_cfg): Update streaming.
31675         * lto-streamer-in.c (input_cfg): Likewise.
31676         * data-streamer.h (streamer_write_gcov_count,
31677         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
31678         * gimple-streamer-in.c: Include value-prof.h
31679         (input_gimple_stmt): Input histograms.
31680         (input_bb): Update profile streaming.
31682 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
31684         * genmodes.c (emit_max_int): New function.
31685         (emit_insn_modes_h): Added call to emit_max_function.
31686         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
31687         Added doc.
31688         * machmode.def: Fixed comment.
31690 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
31692         * combine.c (try_combine): Removed useless assert.
31693         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
31695 2013-03-28  Marek Polacek  <polacek@redhat.com>
31696             Richard Biener  <rguenther@suse.de>
31698         PR tree-optimization/56695
31699         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
31700         build signed result of a vector comparison.
31701         * tree-cfg.c (verify_gimple_comparison): Check that a result
31702         of a vector comparison has signed type.
31704 2013-03-28  Richard Biener  <rguenther@suse.de>
31706         PR tree-optimization/37021
31707         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
31708         do not restrict gaps between groups.
31709         * tree-vect-stmts.c (vectorizable_load): Properly account for
31710         a gap between groups.
31712 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
31714         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
31715         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
31716         is not enabled.
31718 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
31720         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
31721         * doc/extend.texi (Named Address Spaces): Ditto.
31722         (Variable Attributes): Ditto.
31724 2013-03-27  Kai Tietz  <ktietz@redhat.com>
31726         * config.build: Add support for cygwin x64 target.
31727         * config.gcc: Likewise.
31728         * config.host: Likewise.
31729         * configure.ac: Likewise
31730         * configure: Regenerated.
31732 2013-03-27  Kai Tietz  <ktietz@redhat.com>
31734         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
31735         * config/i386/t-cygwin-w64: New file.
31736         * config/i386/cygwin-w64.h: New file.
31737         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
31738         and add support for x64-cygwin target.
31739         (CPP_SPEC): Likewise.
31740         (CXX_WRAP_SPEC_LIST): Undefine before define.
31741         (LIBGCJ_SONAME): Use 15 as version.
31743 2013-03-27  Richard Biener  <rguenther@suse.de>
31745         PR tree-optimization/56716
31746         * tree-ssa-structalias.c (perform_var_substitution): Adjust
31747         dumping for ref nodes.
31749 2013-03-27  Martin Jambor  <mjambor@suse.cz>
31751         PR tree-optimization/55334
31752         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
31753         restricted pointers to arrays.
31755 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
31757         * Makefile.in (.SUFFIXES): Add .cc.
31758         (.c.o): Apply same recipe for implicit rule .cc.o.
31760 2013-03-27  Richard Biener  <rguenther@suse.de>
31762         PR tree-optimization/37021
31763         * tree-vect-data-refs.c (vect_check_strided_load): Allow
31764         REALPART/IMAGPART_EXPRs around the supported refs.
31765         * tree-ssa-structalias.c (find_func_aliases): Assume that
31766         floating-point values are not used to transfer pointers.
31768 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
31770         * target.def (TARGET_HAS_IFUNC_P): New target hook.
31771         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
31772         * doc/tm.texi: Regenerate.
31773         * targhooks.h (default_has_ifunc_p): New.
31774         * targhooks.c (default_has_ifunc_p): Ditto.
31775         * config/linux-protos.h: New file.
31776         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
31777         hook for linux which disables support of indirect functions in android.
31778         * config/linux-android.c: New file.
31779         * config/t-linux-android.c: Ditto.
31780         * config.gcc: Added new object file linux-android.o.
31781         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
31782         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
31783         * varasm.c (do_assemble_alias): Likewise.
31784         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
31785         doesn't support indirect functions.
31786         * configure: Regenerate.
31788 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
31790         PR target/56102
31791         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
31792         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
31793         mult-word mode.
31795 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31797         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
31799 2013-03-27  Terry Guo  <terry.guo@arm.com>
31801         * config/arm/arm-cores.def: Added core cortex-r7.
31802         * config/arm/arm-tune.md: Regenerated.
31803         * config/arm/arm-tables.opt: Regenerated.
31804         * doc/invoke.texi: Added entry for core cortex-r7.
31806 2013-03-27  Walter Lee  <walt@tilera.com>
31808         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
31809         double-decrement of next_scratch_regno.
31811 2013-03-27  Walter Lee  <walt@tilera.com>
31813         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
31814         input operands.
31815         (insn_v1mulus): Ditto.
31816         (insn_v2muls): Ditto.
31818 2013-03-27  Walter Lee  <walt@tilera.com>
31820         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
31821         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
31823 2013-03-27  Walter Lee  <walt@tilera.com>
31825         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
31826         (*sibcall_value): Ditto.
31828 2013-03-27  Walter Lee  <walt@tilera.com>
31830         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
31831         (insn_mnz_v8qi): ... this ...
31832         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
31833         vector equivalent.
31834         (insn_v<n>mnz): Replaced by ...
31835         (insn_v1mnz): ... this ...
31836         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
31837         equivalent.
31838         (insn_mz_<mode>): Replaced by ...
31839         (insn_mz_v8qi): ... this ...
31840         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
31841         vector equivalent.
31842         (insn_v<n>mz): Replaced by ...
31843         (insn_v1mz): ... this ...
31844         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
31845         equivalent.
31847 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
31849         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
31851 2013-03-26  Roland McGrath  <mcgrathr@google.com>
31853         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
31854         than fprintf with a non-constant, non-format string.
31856 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
31858         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
31859         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
31860         operand 0 predicate.
31861         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
31862         attribute.  Use general_x64nomem_operand as operand 1 predicate.
31863         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
31864         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
31865         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
31866         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
31867         (mov<mode>_insv_1): Remove expander.  Merge insn with
31868         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
31869         Use general_x64nomem_operand as operand 1 predicate.
31870         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
31871         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
31872         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
31873         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
31874         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
31875         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
31876         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
31877         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
31878         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
31879         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
31880         (general_x64nomem_operand): Ditto.
31882 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
31884         * config/rtems.opt: Add -pthread option.
31886 2013-03-26  Richard Biener  <rguenther@suse.de>
31888         * alias.c (find_base_term): Avoid redundant and not used recursion.
31889         (base_alias_check): Get the initial base term from the caller.
31890         (true_dependence_1): Compute and pass base terms to base_alias_check.
31891         (write_dependence_p): Likewise.
31892         (may_alias_p): Likewise.
31894 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
31896         * config/aarch64/aarch64.c (aarch64_classify_address): Support
31897         PC-relative load in SI modes and above only.
31899 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
31901         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
31902         * config/arm/iwmmxt.md (WCGR0): Update.
31903         (WCGR1, WCGR2, WCGR3): Likewise.
31905 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
31907         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
31908         Use x64 and nox64 isa attributes.
31910 2013-03-26  Richard Biener  <rguenther@suse.de>
31912         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
31913         alignment computations and rely on get_object_alignment_1
31914         for the !TYPE_P case.
31915         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
31917 2013-03-26  Walter Lee  <walt@tilera.com>
31919         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
31920         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
31922 2013-03-25  Jeff Law  <law@redhat.com>
31924         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
31925         check for INTEGRAL_TYPE_P that was missing due to checking in
31926         wrong version of prior patch.
31928 2013-03-25  Walter Lee  <walt@tilera.com>
31930         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
31931         TILEGX_INSN_SHUFFLEBYTES1.
31932         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
31933         shufflebytes1.
31934         (tilegx_builtins): Ditto.
31935         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
31937 2013-03-25  Walter Lee  <walt@tilera.com>
31939         * config/tilegx/tilegx.md (floatsisf2): New pattern.
31940         (floatunssisf2): New pattern.
31941         (floatsidf2): New pattern.
31942         (floatunssidf2): New pattern.
31944 2013-03-25  Walter Lee  <walt@tilera.com>
31946         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
31947         tests for constraint J, K, N, P.
31949 2013-03-25  Walter Lee  <walt@tilera.com>
31951         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
31952         Use indirect/pcrel encoding.
31953         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
31954         Ditto.
31956 2013-03-25  Steve Ellcey  <sellcey@mips.com>
31958         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
31959         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
31960         * config/mips/mips.c (mips_option_override): Set IMADD default.
31961         * config/mips/mips.h (PTF_AVOID_IMADD): New.
31962         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
31963         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
31964         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
31965         * doc/invoke.texi (-mimadd/-mno-imadd): New.
31967 2013-03-25  Jeff Law  <law@redhat.com>
31969         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
31970         slightly to avoid creating and folding useless trees.  Simplify
31971         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
31973 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
31975         * config/i386/i386.md (*zero_extendsidi2): Merge with
31976         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
31977         * config/i386/predicates.md (x86_64_zext_operand): Rename from
31978         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
31979         targets.  Clarify comment.
31981 2013-03-25  Martin Jambor  <mjambor@suse.cz>
31983         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
31984         pass-through jump functions differently.
31985         (ipa_read_jump_function): Likewise.  Also use setter functions to set
31986         up jump functions.
31988 2013-03-25  Martin Jambor  <mjambor@suse.cz>
31990         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
31991         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
31992         process it.
31993         (ipa_get_indirect_edge_target): New function.
31994         (devirtualization_time_bonus): New parameter known_aggs, pass it to
31995         ipa_get_indirect_edge_target.  Update all callers.
31996         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
31997         ipa_get_indirect_edge_target_1 instead of calling
31998         ipa_get_indirect_edge_target.
31999         (create_specialized_node): Pass aggvlas to
32000         ipcp_discover_new_direct_edges.
32002 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32004         * config/arm/arm.md (f_sels, f_seld): New types.
32005         (*cmov<mode>): New pattern.
32006         * config/arm/predicates.md (arm_vsel_comparison_operator): New
32007         predicate.
32009 2013-03-25  Kai Tietz  <ktietz@redhat.com>
32011         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
32012         POSIX-printf for mingw-hosted  builds.
32014 2013-03-25  Richard Biener  <rguenther@suse.de>
32016         PR middle-end/56694
32017         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
32018         must-not-throw stmt location.
32020 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32022         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
32023         Emit load-acquire versions when acq is true.
32024         (arm_emit_store_exclusive): Add rel parameter.
32025         Emit store-release versions when rel is true.
32026         (arm_split_compare_and_swap): Use acquire-release instructions
32027         instead.
32028         of barriers when appropriate.
32029         (arm_split_atomic_op): Likewise.
32030         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
32031         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
32032         (VUNSPEC_SLX): Likewise.
32033         (VUNSPEC_LDA): Likewise.
32034         (VUNSPEC_STL): Likewise.
32035         * config/arm/sync.md (atomic_load<mode>): New pattern.
32036         (atomic_store<mode>): Likewise.
32037         (arm_load_acquire_exclusive<mode>): Likewise.
32038         (arm_load_acquire_exclusivesi): Likewise.
32039         (arm_load_acquire_exclusivedi): Likewise.
32040         (arm_store_release_exclusive<mode>): Likewise.
32042 2013-03-25  Catherine Moore  <clm@codesourcery.com>
32044         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
32045         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
32046         * config/mip/predicates.md (lwsp_swsp_operand,
32047         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
32048         sb16_operand, db4_operand, db7_operand, ib3_operand,
32049         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
32050         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
32051         andi16_operand): New predicates.
32052         * config/mips/mips.md (compression): New attribute.
32053         (enabled): New attribute.
32054         (length): Consider compression in computing length.
32055         (shift_compression): New code attribute.
32056         (*add<mode>3): New operands. Record compression.
32057         (sub<mode>3): Likewise.
32058         (one_cmpl<mode>2): Likewise.
32059         (*and<mode>3): Likewise.
32060         (*ior<mode>3): Likewise.
32061         (unnamed pattern for xor): Likewise.
32062         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
32063         (*<optab><mode>3): Likewise.
32064         (*mov<mode>_internal: Likewise.
32065         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
32066         (mips_unsigned_immediate_p): New.
32067         (umips_lwsp_swsp_address_p): New.
32068         (m16_based_address_p): New.
32069         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
32070         (mips_unsigned_immediate_p): New prototype.
32071         (lwsp_swsp_address_p): New prototype.
32072         (m16_based_address_p): New prototype.
32073         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
32074         (mips_signed_immediate_p): New function.
32075         (m16_based_address_p): New function.
32076         (lwsp_swsp_address_p): New function.
32077         (mips_print_operand_punctuation): Recognize short delay slot insns
32078         for microMIPS.add<mode>3"
32080 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32082         PR target/56720
32083         * config/arm/iterators.md (v_cmp_result): New mode attribute.
32084         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
32086 2013-03-25  Richard Biener  <rguenther@suse.de>
32088         PR tree-optimization/56689
32089         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
32090         any edge.
32092 2013-03-25  Richard Biener  <rguenther@suse.de>
32094         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
32095         of bitmap.
32096         (memory_references): Likewise.
32097         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
32098         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
32099         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
32100         (gather_mem_refs_in_loops): Fold into ...
32101         (analyze_memory_references): ... this.  Move initialization
32102         to tree_ssa_lim_initialize.
32103         (fill_always_executed_in): Rename to ...
32104         (fill_always_executed_in_1): ... this.
32105         (fill_always_executed_in): Move contains_call computation to
32106         this new function from ...
32107         (tree_ssa_lim_initialize): ... here.
32108         (tree_ssa_lim): Call fill_always_executed_in.
32110 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
32112         * postreload.c (reload_combine): Fix code detecting returns.
32114 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
32116         * function.c (emit_use_return_register_into_block): On cc0 targets,
32117         do not emit the sequence between cc0 setter and user.
32119 2013-03-25  Kai Tietz  <ktietz@redhat.com>
32121         * config/i386/predicates.md (local_symbolic_operand): Interpret
32122         dll-imported symbols as none-local.
32124 2013-03-25  Richard Biener  <rguenther@suse.de>
32126         * tree-ssa-loop-im.c (struct depend): Remove.
32127         (struct lim_aux_data): Make depends a vec of gimples.
32128         (free_lim_aux_data): Adjust.
32129         (add_dependency): Likewise.
32130         (set_level): Likewise.
32132 2013-03-25  Richard Biener  <rguenther@suse.de>
32134         PR middle-end/56434
32135         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
32136         the pointer returned by calls with ECF_MALLOC set.
32138 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
32140         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
32142 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
32144         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
32145         using MMXMODE mode iterator.
32146         (*move<mode>_internal): Merge with *movv2sf_internal and
32147         *movv2sf_internal_rex64 using MMXMODE mode iterator.
32149 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
32151         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
32152         (record_last_mem_set_info): Likewise.
32154         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
32155         of XNEWVEC followed by memset.
32156         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
32158 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
32160         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
32161         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
32162         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
32163         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
32164         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
32165         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
32166         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
32167         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
32168         BARRIER_P instead of GET_CODE.
32170 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
32172         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
32173         inaccuracy in the probing code.
32175         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
32176         (ctrapdi4): Likewise.
32178 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
32180         * calls.c (expand_call): Add missing guard to code handling return
32181         of non-BLKmode structures in MSB.
32182         * function.c (expand_function_end): Likewise.
32184 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
32186         * combine.c (try_combine): Adjust comment.  Do not add the set of
32187         insn #0 if the destination indirectly is set or dies in insn #2.
32188         Tidy up code to distribute a new note.
32190 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
32192         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
32193         also for alternatives 16 and 17.
32195 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
32197         * config/i386/sse.md (*mov<mode>_internal): Merge with
32198         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
32199         Emit insn template depending on type attribute.  Use
32200         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
32201         movd instead of movq mnemonic for interunit moves.  Rewrite mode
32202         attribute calculation.  Remove unit attribute calculation.
32203         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
32204         Set prefix_data16 attribute for DImode ssemov types.
32205         Use Ym instead of y for SSE-MMX conversion alternatives.
32206         Reorder operand constraints.
32208 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
32210         * df.h (df_insn_delete): Adjust prototype.
32211         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
32212         and let it decide whether mark the basic block dirty.
32213         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
32214         * df-scan.c (df_insn_info_delete): New helper function, split
32215         off from df_insn_delete.
32216         (df_scan_free_bb_info): Use it.
32217         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
32218         Likewise.
32219         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
32220         that the insn is actually an insn and it has a non-NULL basic block.
32221         Do not mark basic block dirty if only deleting a DEBUG_INSN.
32223 2013-03-22  Richard Biener  <rguenther@suse.de>
32225         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
32226         dep_ref members.
32227         (mem_ref_alloc): Do not allocate them.
32228         (refs_independent_p): Do not query or maintain a cache.
32230 2013-03-22  Richard Biener  <rguenther@suse.de>
32232         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
32233         (gather_mem_refs_in_loops): Do not compute it.
32234         (analyze_memory_references): Do not allocate it.
32235         (tree_ssa_lim_finalize): Do not free it.
32236         (for_all_locs_in_loop): Do not query all_refs_in_loop.
32238 2013-03-22  Richard Biener  <rguenther@suse.de>
32240         * is-a.h (as_a): Use gcc_checking_assert.
32242 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
32244         * config/aarch64/aarch64.c (aarch64_print_operand): New
32245         format specifier for printing a constant in hex.
32246         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
32247         format specifier for printing second operand.
32249 2013-03-22  Richard Biener  <rguenther@suse.de>
32251         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
32252         bitmaps.
32253         (gather_mem_refs_in_loops): Perform store accumulation here.
32254         (create_vop_ref_mapping_loop): Remove.
32255         (create_vop_ref_mapping): Likewise.
32256         (analyze_memory_references): Initialize refs_stored_in_loop.
32257         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
32258         (record_indep_loop): Remove.
32259         (record_dep_loop): New function.
32260         (ref_indep_loop_p_1): Adjust to only walk over references
32261         in the loop, not its subloops.
32262         (ref_indep_loop_p): Rename to ...
32263         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
32264         maintaining a more fine-grained cache.
32265         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
32266         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
32268 2013-03-22  Richard Biener  <rguenther@suse.de>
32270         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
32271         (struct mem_ref): Make accesses_in_loop a vec of a vec of
32272         aggregate mem_ref_loc.
32273         (free_mem_ref_locs): Inline into ...
32274         (memref_free): ... this and adjust.
32275         (mem_ref_alloc): Adjust.
32276         (mem_ref_locs_alloc): Remove.
32277         (record_mem_ref_loc): Adjust.
32278         (get_all_locs_in_loop): Rewrite into ...
32279         (for_all_locs_in_loop): ... this iterator.
32280         (rewrite_mem_ref_loc): New functor.
32281         (rewrite_mem_refs): Use for_all_locs_in_loop.
32282         (sm_set_flag_if_changed): New functor.
32283         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
32284         (ref_always_accessed): New functor.
32285         (ref_always_accessed_p): Use for_all_locs_in_loop.
32287 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
32289         * tree-pass.h (PROP_gimple_lvec): New.
32290         * passes.c (dump_properties): Handle PROP_gimple_lvec.
32291         (init_optimization_passes): Move pass_lower_vector.
32292         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
32293         PROP_gimple_lvec.
32294         (pass_lower_vector): Provide PROP_gimple_lvec.
32295         (pass_lower_vector_ssa): Likewise.
32296         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
32298 2013-03-21  Mark Wielaard  <mjw@redhat.com>
32300         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
32302 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
32304         * config/i386/i386.md (*movdi_internal): Disparage slightly
32305         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
32306         conversion alternatives.
32308 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
32310         PR middle-end/48087
32311         * diagnostic.def (DK_WERROR): New kind.
32312         * diagnostic.h (werrorcount): Define.
32313         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
32314         promoted to DK_ERROR, increment DK_WERROR counter instead of
32315         DK_ERROR counter.
32316         * toplev.c (toplev_main): Call print_ignored_options even if
32317         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
32318         even if just werrorcount is non-zero.
32320         PR debug/55608
32321         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
32322         on failure.
32323         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
32324         (string_cst_pool_decl): New function.
32325         (optimize_one_addr_into_implicit_ptr): New function.
32326         (resolve_addr_in_expr): Optimize DWARF location expression
32327         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
32328         which doesn't live in memory, but has DW_AT_location or
32329         DW_AT_const_value, or refers to a string literal, into
32330         DW_OP_GNU_implicit_pointer.
32331         (optimize_location_into_implicit_ptr): New function.
32332         (resolve_addr): If removing DW_AT_location of a variable because
32333         it was DW_OP_addr of address of the variable, but the variable doesn't
32334         live in memory, try to emit const value attribute for the initializer.
32336 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
32338         * tree.h (VECTOR_TYPE_P): New macro.
32339         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
32340         TYPE_MODE): Use it.
32341         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
32342         VEC_COND_EXPR cannot be lvalues.
32343         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
32345 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
32347         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
32348         Restrict the transformation to equal modes.
32350 2013-03-21  Richard Biener  <rguenther@suse.de>
32352         PR tree-optimization/39326
32353         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
32354         (MEM_ANALYZABLE): Adjust.
32355         (record_mem_ref_loc): Move bitmap ops ...
32356         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
32357         unanalyzable refs, do not record locations for it.
32358         (analyze_memory_references): Allocate ref zero as shared
32359         unanalyzable ref.
32360         (refs_independent_p): Do not test for unanalyzed mems here.
32361         (ref_indep_loop_p_1): Special-case disambiguation against
32362         the unanalyzed ref.
32363         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
32365 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
32367         * config/arm/arm-protos.h (tune_params): Add
32368         prefer_neon_for_64bits field.
32369         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
32370         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
32371         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
32372         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
32373         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
32374         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
32375         (arm_option_override): Handle -mneon-for-64bits new option.
32376         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
32377         (prefer_neon_for_64bits): Declare new variable.
32378         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
32379         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
32380         (arch_enabled): Handle new arch types. Remove support for onlya8
32381         and nota8.
32382         (one_cmpldi2): Use new arch names.
32383         (zero_extend<mode>di2, extend<mode>di2): Ditto.
32384         * config/arm/arm.opt (mneon-for-64bits): Add option.
32385         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
32386         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
32387         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
32388         of onlya8.
32389         * doc/invoke.texi (-mneon-for-64bits): Document.
32391 2013-03-21  Richard Biener  <rguenther@suse.de>
32393         PR tree-optimization/39326
32394         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
32395         (sort_bbs_in_loop_postorder_cmp): New function.
32396         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
32398 2013-03-21  Richard Biener  <rguenther@suse.de>
32400         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
32401         (vect_insert_into_interleaving_chain): Likewise.
32402         (vect_drs_dependent_in_basic_block): Inline ...
32403         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
32404         split out from ...
32405         (vect_analyze_data_ref_dependence): ... here.  Simplify.
32406         (vect_check_interleaving): Simplify.
32407         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
32408         (vect_slp_analyze_data_ref_dependences): ... this new function.
32409         (dr_group_sort_cmp): New function.
32410         (vect_analyze_data_ref_accesses): Compute data-reference groups
32411         here instead of in vect_analyze_data_ref_dependence.  Use
32412         a more efficient algorithm.
32413         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
32414         vect_slp_analyze_data_ref_dependences.  Call
32415         vect_analyze_data_ref_accesses earlier.
32416         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
32417         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
32418         (vect_slp_analyze_data_ref_dependences): New prototype.
32420 2013-03-21  Richard Biener  <rguenther@suse.de>
32422         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
32423         ref is stored in the loop.
32424         (find_refs_for_sm): Walk only over all stores.
32425         (store_motion_loop): Allocate from lim_bitmap_obstack.
32426         (store_motion): Likewise.
32428 2013-03-21  Richard Biener  <rguenther@suse.de>
32430         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
32431         Update virtual SSA form.
32433 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32435         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
32436         * configure: Regenerate.
32437         * config.in: Regenerate.
32438         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
32439         if !HAVE_LD_EH_FRAME_CIEV3.
32441 2013-03-21  Richard Biener  <rguenther@suse.de>
32443         * tree-cfg.c (verify_expr_no_block): New function.
32444         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
32445         nor DECL_VALUE_EXPR have locations with associated blocks.
32446         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
32447         (clear_unused_block_pointer): Remove code dealing with
32448         blocks in DECL_DEBUG_EXPR locations.
32450 2013-03-21  Richard Biener  <rguenther@suse.de>
32452         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
32453         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
32454         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
32455         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
32456         instead of DECL_DEBUG_EXPR_IS_FROM.
32457         * gimplify.c (gimplify_modify_expr): Likewise.
32458         * tree-cfg.c (verify_expr_location_1): Likewise.
32459         * tree-complex.c (create_one_component_var): Likewise.
32460         * tree-sra.c (create_access_replacement): Likewise.
32461         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
32462         (clear_unused_block_pointer): Likewise.
32463         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
32464         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
32465         * var-tracking.c (var_debug_decl): Likewise.
32466         (track_expr_p): Likewise.
32467         * tree-inline.c (add_local_variables): Likewise.  Set
32468         DECL_HAS_DEBUG_EXPR_P after copying it.
32469         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
32470         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
32472 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
32474         PR bootstrap/56656
32475         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
32476         * configure: Regenerate.
32477         * config.in: Regenerate.
32478         * config/i386/i386.md (*movdf_internal): Use
32479         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
32480         movd instead of movq mnemonic for interunit moves.
32481         (*movdi_internal): Ditto.
32483 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
32485         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
32486         (abd<mode>_3): New pattern.
32487         (aba<mode>_3): New pattern.
32488         (fabd<mode>_3): New pattern.
32490 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
32492         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
32493         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
32494         occurrence of REGISTER_PREFIX as its empty string.
32496 2013-03-20  Jeff Law  <law@redhat.com>
32498         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
32499         addititional equivalences for equality comparisons between an SSA_NAME
32500         and a constant where the SSA_NAME was set from a widening conversion.
32502 2013-03-20  Walter Lee  <walt@tilera.com>
32504         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
32506 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
32508         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
32509         depending on type attribute.
32510         (*movti_internal): Ditto.
32511         (*movtf_internal): Ditto.
32512         (*movxf_internal): Ditto.
32513         (*movdf_internal): Ditto.
32514         (*movsf_internal): Ditto.
32516 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
32518         * config/i386/i386.md (*movti_internal): Set prefix attribute to
32519         maybe_vex for sselog1 and ssemov types.
32520         (*movdi_internal): Reorder operand constraints.
32521         (*movsi_internal): Ditto.  Set prefix attribute to
32522         maybe_vex for sselog1 and ssemov types.
32523         (*movtf_internal): Set prefix attribute to maybe_vex
32524         for sselog1 and ssemov types.
32525         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
32526         DImode ssemov types.  Reorder operand constraints.
32527         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
32528         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
32529         attribute for SImode ssemov types.  Reorder operand constraints.
32531 2013-03-20  Martin Jambor  <mjambor@suse.cz>
32533         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
32534         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
32536 2013-03-20  Pat Haugen  <pthaugen@us.ibm.com>
32538         * config/rs6000/predicates.md (indexed_address, update_address_mem
32539         update_indexed_address_mem): New predicates.
32540         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
32541         attribute for load/store instructions.
32542         * config/rs6000/dfp.md (movsd_store): Likewise.
32543         (movsd_load): Likewise.
32544         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
32545         (unnamed HI->DI extend define_insn): Likewise.
32546         (unnamed SI->DI extend define_insn): Likewise.
32547         (unnamed QI->SI extend define_insn): Likewise.
32548         (unnamed QI->HI extend define_insn): Likewise.
32549         (unnamed HI->SI extend define_insn): Likewise.
32550         (unnamed HI->SI extend define_insn): Likewise.
32551         (extendsfdf2_fpr): Likewise.
32552         (movsi_internal1): Likewise.
32553         (movsi_internal1_single): Likewise.
32554         (movhi_internal): Likewise.
32555         (movqi_internal): Likewise.
32556         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
32557         attribute for load/store instructions.
32558         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
32559         instructions.
32560         (mov<mode>_softfloat): Likewise.
32561         (mov<mode>_hardfloat32): Likewise.
32562         (mov<mode>_hardfloat64): Likewise.
32563         (mov<mode>_softfloat64): Likewise.
32564         (movdi_internal32): Likewise.
32565         (movdi_internal64): Likewise.
32566         (probe_stack_<mode>): Likewise.
32568 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
32570         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
32571         floating point, and decimal floating point to reload iterator.
32573         * config/rs6000/constraints.md (wl constraint): New constraints to
32574         return FLOAT_REGS if certain options are used to reduce the number
32575         of separate patterns that exist in the file.
32576         (wx constraint): Likewise.
32577         (wz constraint): Likewise.
32579         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
32580         -mdebug=reg, print wg, wl, wx, and wz constraints.
32581         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
32582         Initialize the reload functions for 64-bit binary/decimal floating
32583         point types.
32584         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
32585         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
32586         create the buffer on the stack to overcome not having a 32-bit
32587         load and store.
32588         (rs6000_emit_move): Likewise.
32589         (rs6000_secondary_memory_needed_rtx): Likewise.
32590         (rs6000_alloc_sdmode_stack_slot): Likewise.
32591         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
32592         via xxlxor, just like DFmode 0.0.
32594         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
32595         define as 1 if we are running on a power7 or newer.
32596         (enum r6000_reg_class_enum): Add new constraints.
32598         * config/rs6000/dfp.md (movsd): Delete, combine with binary
32599         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
32600         with other moves by using conditional constraits (wg).  Use LFIWZX
32601         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
32602         (movsd splitter): Likewise.
32603         (movsd_hardfloat): Likewise.
32604         (movsd_softfloat): Likewise.
32606         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
32607         binary and decimal floating point moves.
32608         (fmove_ok): New attributes to combine binary and decimal floating
32609         point moves, and to combine power6x (mfpgpr) moves along normal
32610         floating moves.
32611         (real_value_to_target): Likewise.
32612         (f32_lr): Likewise.
32613         (f32_lm): Likewise.
32614         (f32_li): Likewise.
32615         (f32_sr): Likewise.
32616         (f32_sm): Likewise.
32617         (f32_si): Likewise.
32618         (movsf): Combine binary and decimal floating point moves.  Combine
32619         power6x (mfpgpr) moves with other moves by using conditional
32620         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
32621         (mov<mode> for SFmode/SDmode); Likewise.
32622         (SFmode/SDmode splitters): Likewise.
32623         (movsf_hardfloat): Likewise.
32624         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
32625         (movsf_softfloat): Likewise.
32626         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
32628         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
32629         wx and wz constraints.
32631         * config/rs6000/constraints.md (wg constraint): New constraint to
32632         return FLOAT_REGS if -mmfpgpr (power6x) was used.
32634         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
32635         constraint.
32637         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
32638         -mdebug=reg, print wg, wl, wx, and wz constraints.
32639         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
32640         Initialize the reload functions for 64-bit binary/decimal floating
32641         point types.
32642         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
32643         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
32644         create the buffer on the stack to overcome not having a 32-bit
32645         load and store.
32646         (rs6000_emit_move): Likewise.
32647         (rs6000_secondary_memory_needed_rtx): Likewise.
32648         (rs6000_alloc_sdmode_stack_slot): Likewise.
32649         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
32650         via xxlxor, just like DFmode 0.0.
32652         * config/rs6000/dfp.md (movdd): Delete, combine with binary
32653         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
32654         with other moves by using conditional constraits (wg).  Use LFIWZX
32655         and STFIWX for loading SDmode on power7.
32656         (movdd splitters): Likewise.
32657         (movdd_hardfloat32): Likewise.
32658         (movdd_softfloat32): Likewise.
32659         (movdd_hardfloat64_mfpgpr): Likewise.
32660         (movdd_hardfloat64): Likewise.
32661         (movdd_softfloat64): Likewise.
32663         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
32664         64-bit binary and decimal floating point moves.
32665         (FMOVE64X): Likewise.
32666         (movdf): Combine 64-bit binary and decimal floating point moves.
32667         Combine power6x (mfpgpr) moves with other moves by using
32668         conditional constraits (wg).
32669         (mov<mode> for DFmode/DDmode): Likewise.
32670         (DFmode/DDmode splitters): Likewise.
32671         (movdf_hardfloat32): Likewise.
32672         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
32673         (movdf_softfloat32): Likewise.
32674         (movdf_hardfloat64_mfpgpr): Likewise.
32675         (movdf_hardfloat64): Likewise.
32676         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
32677         (movdf_softfloat64): Likewise.
32678         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
32679         (reload_<mode>_load): Move to later in the file so they aren't in
32680         the middle of the floating point move insns.
32681         (reload_<mode>_store): Likewise.
32683         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
32684         constraint.
32686         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
32687         constraint if -mdebug=reg.
32688         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
32689         Enable using dd reload support if needed.
32691         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
32692         binary and decimal floating point moves in rs6000.md.
32693         (movtd_internal): Likewise.
32695         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
32696         decimal floating point moves.
32697         (movtf): Likewise.
32698         (movtf_internal): Likewise.
32699         (mov<mode>_internal, TDmode/TFmode): Likewise.
32700         (movtf_softfloat): Likewise.
32701         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
32703         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
32704         movdi_internal64, using wg constraint for move direct operations.
32705         (movdi_internal64): Likewise.
32707         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
32708         MODES_TIEABLE_P for selected modes.  Print the numerical value of
32709         the various virtual registers. Use GPR/FPR first/last values,
32710         instead of hard coding the register numbers.  Print which modes
32711         have reload functions registered.
32712         (rs6000_option_override_internal): If -mdebug=reg, trace the options
32713         settings before/after setting cpu, target and subtarget settings.
32714         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
32715         and for secondary reload failures in rs6000_secondary_reload_inner.
32716         (rs6000_secondary_reload_fail): Likewise.
32717         (rs6000_secondary_reload_inner): Likewise.
32719         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
32720         macros for first/last GPR and FPR registers.
32721         (LAST_GPR_REGNO): Likewise.
32722         (FIRST_FPR_REGNO): Likewise.
32723         (LAST_FPR_REGNO): Likewise.
32725         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
32726         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
32727         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
32728         (vcond<mode><mode>): Likewise.
32729         (vcondu<mode><mode>): Likewise.
32730         (vector_gtu<mode>): Likewise.
32731         (vector_gte<mode>): Likewise.
32732         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
32733         to prevent the compiler from converting DImode operations to TImode.
32734         (ior<mode>3): Likewise.
32735         (and<mode>3): Likewise.
32736         (one_cmpl<mode>2): Likewise.
32737         (nor<mode>3): Likewise.
32738         (andc<mode>3): Likewise.
32740         * config/rs6000/constraints.md (wt constraint): New constraint
32741         that returns VSX_REGS if TImode is allowed in VSX registers.
32743         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
32744         constant under VSX.
32746         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
32747         similar to TImode, but it is restricted to being in the GPRs.
32749         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
32750         TImode to occupy a single VSX register.
32752         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
32753         -mvsx-timode for power7/power8.
32754         (power7 cpu): Likewise.
32755         (power8 cpu): Likewise.
32757         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
32758         sure that TFmode/TDmode take up two registers if they are ever
32759         allowed in the upper VSX registers.
32760         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
32761         registers.
32762         (rs6000_init_hard_regno_mode_ok): Likewise.
32763         (rs6000_debug_reg_global): Add debugging for PTImode and wt
32764         constraint.  Print if LRA is turned on.
32765         (rs6000_option_override_internal): Give an error if -mvsx-timode
32766         and VSX is not enabled.
32767         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
32768         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
32769         to reg+offset addressing.  Use PTImode when checking offset
32770         addresses for validity.
32771         (reg_offset_addressing_ok_p): Likewise.
32772         (rs6000_legitimate_offset_address_p): Likewise.
32773         (rs6000_legitimize_address): Likewise.
32774         (rs6000_legitimize_reload_address): Likewise.
32775         (rs6000_legitimate_address_p): Likewise.
32776         (rs6000_eliminate_indexed_memrefs): Likewise.
32777         (rs6000_emit_move): Likewise.
32778         (rs6000_secondary_reload): Likewise.
32779         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
32780         reloads to fpr registers to continue to use reg+offset addressing,
32781         but 64-bit reloads to altivec registers need reg+reg addressing.
32782         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
32783         it.  Treat LO_SUM like a PLUS operation.
32784         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
32785         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
32786         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
32787         registers to share a register with a smaller sized type, since VSX
32788         puts scalars in the upper 64-bits.
32789         (print_operand): Add support for PTImode.
32790         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
32791         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
32792         registers, but don't have arithmetic support.
32793         (rs6000_memory_move_cost): Add test for VSX.
32794         (rs6000_opt_masks): Add -mvsx-timode.
32796         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
32797         for TImode.
32798         (VSs): Likewise.
32799         (VSr): Use wt constraint for TImode.
32800         (VSv): Drop TImode support.
32801         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
32802         (vsx_movti_64bit): Likewise.
32803         (vsx_movti_32bit): Likewise.
32804         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
32805         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
32806         one '?' on the appropriate output constraint.  Do not allow TImode
32807         logical operations on 32-bit systems.
32808         (vsx_ior<mode>3): Likewise.
32809         (vsx_xor<mode>3): Likewise.
32810         (vsx_one_cmpl<mode>2): Likewise.
32811         (vsx_nor<mode>3): Likewise.
32812         (vsx_andc<mode>3): Likewise.
32813         (vsx_concat_<mode>): Likewise.
32814         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
32816         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
32817         OPTION_MASK_VSX_TIMODE.
32818         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
32819         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
32821         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
32822         (TI2 iterator): New iterator for TImode, PTImode.
32823         (wd mode attribute): Add values for vector types.
32824         (movti_string): Replace TI move operations with operations for TImode
32825         and PTImode.  Add support for TImode being allowed in VSX registers.
32826         (mov<mode>_string, TImode/PTImode): Likewise.
32827         (movti_ppc64): Likewise.
32828         (mov<mode>_ppc64, TImode/PTImode): Likewise.
32829         (TI mode splitters): Likewise.
32831         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
32832         constraint.
32834 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
32836         PR tree-optimization/56355
32837         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
32838         Also handle integers with undefined overflow.
32840 2013-03-20  Catherine Moore  <clm@codesourcery.com>
32841             Maciej W. Rozycki  <macro@codesourcery.com>
32842             Tom de Vries  <tom@codesourcery.com>
32843             Nathan Sidwell  <nathan@codesourcery.com>
32844             Iain Sandoe  <iain@codesourcery.com>
32845             Nathan Froyd  <froydnj@codesourcery.com>
32846             Chao-ying Fu  <fu@mips.com>
32848         * doc/extend.texi: (micromips, nomicromips, nocompression):
32849         Document new function attributes.
32850         * doc/invoke.texi (minterlink-compressed, mmicromips,
32851         m14k, m14ke, m14kec): Document new options.
32852         (minterlink-mips16): Update documentation.
32853         * doc/md.texi (ZC, ZD): Document new constraints.
32854         * configure.ac (gcc_cv_as_micromips): Check if linker
32855         supports the .set micromips directive.
32856         * configure: Regenerate.
32857         * config.in: Regenerate.
32858         * config/mips/mips-tables.opt: Regenerate.
32859         * config/mips/micromips.md: New file.
32860         * constraints.md (ZC, ZD): New constraints.
32861         * config/mips/predicates.md (movep_src_register): New predicate.
32862         (movep_src_operand): New predicate.
32863         (non_volatile_mem_operand): New predicate.
32864         * config/mips/mips.md (multimem): New type.
32865         (length): Differentiate between 17-bit and 18-bit branch offsets.
32866         (MOVEP1, MOVEP2): New mode iterator.
32867         (mov_<load>l): Use ZC constraint.
32868         (mov_<load>r): Likewise.
32869         (mov_<store>l): Likewise.
32870         (mov_<store>r): Likewise.
32871         (*branch_equality<mode>_inverted): Add microMIPS support.
32872         (*branch_equality<mode>): Likewise.
32873         (*jump_absolute): Likewise.
32874         (indirect_jump_<mode>): Likewise.
32875         (tablejump_<mode>): Likewise.
32876         (<optab>_internal): Likewise.
32877         (sibcall_internal): Likewise.
32878         (sibcall_value_internal): Likewise.
32879         (prefetch): Use constraint ZD.
32880         * config/mips/mips.opt (minterlink-compressed): New option.
32881         (minterlink-mips16): Now an alias for minterlink-compressed.
32882         (mmicromips): New option.
32883         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
32884         (compare_and_swap_12): Likewise.
32885         (sync_add<mode>): Likewise.
32886         (sync_<optab>_12): Likewise.
32887         (sync_old_<optab>_12): Likewise.
32888         (sync_new_<optab>_12): Likewise.
32889         (sync_nand_12): Likewise.
32890         (sync_old_nand_12): Likewise.
32891         (sync_new_nand_12): Likewise.
32892         (sync_sub<mode>): Likewise.
32893         (sync_old_add<mode>): Likewise.
32894         (sync_old_sub<mode>): Likewise.
32895         (sync_new_add<mode>): Likewise.
32896         (sync_new_sub<mode>): Likewise.
32897         (sync_<optab><mode>): Likewise.
32898         (sync_old_<optab><mode>): Likewise.
32899         (sync_new_<optab><mode>): Likewise.
32900         (sync_nand<mode>): Likewise.
32901         (sync_old_nand<mode>): Likewise.
32902         (sync_new_nand<mode>): Likewise.
32903         (sync_lock_test_and_set<mode>): Likewise.
32904         (test_and_set_12): Likewise.
32905         (atomic_compare_and_swap<mode>): Likewise.
32906         (atomic_exchange<mode>_llsc): Likewise.
32907         (atomic_fetch_add<mode>_llsc): Likewise.
32908         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
32909         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
32910         (umips_save_restore_pattern_p): Likewise.
32911         (umips_load_store_pair_p): Likewise.
32912         (umips_output_load_store_pair): Likewise.
32913         (umips_movep_target_p): Likewise.
32914         (umips_12bit_offset_address_p): Likewise.
32915         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
32916         (mips_base_mips16): Rename this...
32917         (mips_base_compression_flags): ...to this. Update all uses.
32918         (mips_attribute_table): Add micromips, nomicromips and nocompression.
32919         (mips_mips16_decl_p): Delete.
32920         (mips_nomips16_decl_p): Delete.
32921         (mips_get_compress_on_flags): New function.
32922         (mips_get_compress_off_flags): New function.
32923         (mips_get_compress_mode): New function.
32924         (mips_get_compress_on_name): New function.
32925         (mips_get_compress_off_name): New function.
32926         (mips_insert_attributes): Support multiple compression types.
32927         (mips_merge_decl_attributes): Likewise.
32928         (umips_12bit_offset_address_p): New function.
32929         (mips_start_function_definition): Emit .set micromips directive.
32930         (mips_call_may_need_jalx_p): New function.
32931         (mips_function_ok_for_sibcall): Add microMIPS support.
32932         (mips_print_operand_punctuation): Support short delay slots and
32933         compact jumps.
32934         (umips_swm_mask, umips_swm_encoding): New.
32935         (umips_build_save_restore): New function.
32936         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
32937         (was_mips16_p): Remove.
32938         (old_compression_mode): New.
32939         (mips_set_compression_mode): New function.
32940         (mips_set_current_function): Add microMIPS support.
32941         (mips_option_override): Likewise.
32942         (umips_save_restore_pattern_p): New function.
32943         (umips_output_save_restore): New function.
32944         (umips_load_store_pair_p_1): New function.
32945         (umips_load_store_pair_p): New function.
32946         (umips_output_load_store_pair_1): New function.
32947         (umips_output_load_store_pair): New function.
32948         (umips_movep_target_p) New function.
32949         (mips_prepare_pch_save): Add microMIPS support.
32950         * config/mips/mips.h (TARGET_COMPRESSION): New.
32951         (TARGET_CPU_CPP_BUILTINS): Update macro
32952         to use new compression flags and to support microMIPS.
32953         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
32954         (MIPS_ARCH_FLOAT_SPEC): Likewise.
32955         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
32956         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
32957         (ASM_SPEC): Support mmicromips and mno-micromips.
32958         (M16STORE_REG_P): New macro.
32959         (MIPS_CALL): Support TARGET_MICROMIPS.
32960         (MICROMIPS_J): New macro.
32961         (mips_base_mips16): Rename this...
32962         (mips_base_compression_flags): ...to this.
32963         (UMIPS_12BIT_OFFSET_P): New macro.
32964         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
32965         (MULTILIB_DIRNAMES): Likewise.
32966 2013-03-20  Richard Biener  <rguenther@suse.de>
32968         PR tree-optimization/56661
32969         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
32970         the result does not have to be distinct.
32972 2013-03-20  Richard Biener  <rguenther@suse.de>
32974         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
32975         remap_gimple_op_r.
32977 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32978             Steven Bosscher  <steven@gcc.gnu.org>
32980         PR rtl-optimization/56605
32981         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
32983 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
32985         PR bootstrap/56656
32986         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
32987         that require movd instead of movq.
32989 2013-03-20  Richard Biener  <rguenther@suse.de>
32991         * tree-ssa-structalias.c (struct variable_info): Add pointer
32992         to the first field of an aggregate with sub-vars.  Make
32993         this and the pointer to the next subfield its ID.
32994         (vi_next): New function.
32995         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
32996         storedanything_id, integer_id): Increment by one.
32997         (new_var_info, get_call_vi, lookup_call_clobber_vi,
32998         get_call_clobber_vi): Adjust.
32999         (solution_set_expand): Simplify and speedup.
33000         (solution_set_add): Inline into ...
33001         (set_union_with_increment): ... this.  Adjust accordingly.
33002         (do_sd_constraint): Likewise.
33003         (do_ds_constraint): Likewise.
33004         (do_complex_constraint): Simplify.
33005         (build_pred_graph): Adjust.
33006         (solve_graph): Likewise.  Simplify and speedup.
33007         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
33008         get_constraint_for_component_ref, get_constraint_for_1,
33009         first_vi_for_offset, first_or_preceding_vi_for_offset,
33010         create_function_info_for, create_variable_info_for_1,
33011         create_variable_info_for, intra_create_variable_infos): Adjust.
33012         (init_base_vars): Push NULL for ID zero.
33013         (compute_points_to_sets): Adjust.
33015 2013-03-20  Richard Biener  <rguenther@suse.de>
33017         * cfgloop.c (verify_loop_structure): Streamline and avoid
33018         ICEing on corrupt loop tree.
33019         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
33020         loop tree.
33022 2013-03-20  Richard Biener  <rguenther@suse.de>
33024         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
33025         check whether an SSA update is needed.
33027 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
33029         * config/mips/constraints.md (T): Rename to...
33030         (Yf): ...this.
33031         (U): Rename to...
33032         (Yd): ...this.
33033         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
33034         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
33036 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
33038         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
33039         (*subsi3_carryin_uxtw): Likewise.
33041 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
33043         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
33044         (*rorsi3_insn_uxtw): Likewise.
33046 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
33048         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
33049         (*extrsi5_insn_uxtw): Likewise.
33051 2013-03-19  Richard Biener  <rguenther@suse.de>
33053         PR tree-optimization/56273
33054         * passes.c (init_optimization_passes): Move second VRP after DOM.
33056 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
33058         * config/i386/i386.md (*movti_internal): Merge from
33059         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
33060         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
33061         nox64 isa attributes.
33063 2013-03-18  Richard Biener  <rguenther@suse.de>
33065         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
33066         (unite): Likewise.
33067         (merge_node_constraints): Likewise.
33068         (build_succ_graph): Likewise.
33069         (valid_graph_edge): Inline into single caller.
33070         (unify_nodes): Likewise.  Use bitmap_set_bit return value
33071         and cache varinfo.
33072         (scc_visit): Fix formatting and variable use.
33073         (do_sd_constraint): Use gcc_checking_assert.
33074         (do_ds_constraint): Likewise.
33075         (do_complex_constraint): Likewise.
33076         (condense_visit): Likewise.  Cleanup.
33077         (dump_pred_graph): New function.
33078         (perform_var_substitution): Dump the pred-graph before
33079         variable substitution.
33080         (find_equivalent_node): Use gcc_checking_assert.
33081         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
33083 2013-03-18  Richard Biener  <rguenther@suse.de>
33085         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
33086         Remove cond_expr_stmt_list argument and do not gimplify the
33087         built expression.
33088         (vect_loop_versioning): Adjust.
33089         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
33090         Cleanup to use less temporaries.
33091         (vect_create_data_ref_ptr): Cleanup.
33093 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
33095         PR tree-optimization/56635
33096         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
33097         require types_compatible_p types.
33099 2013-03-18  Nick Clifton  <nickc@redhat.com>
33101         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
33102         spurious backslash.
33104         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
33105         Add missing line to comment describing function.
33107 2013-03-18  Richard Biener  <rguenther@suse.de>
33109         PR tree-optimization/56210
33110         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
33111         Handle string / character search functions.
33112         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
33114 2013-03-18  Richard Biener  <rguenther@suse.de>
33116         PR middle-end/56483
33117         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
33118         and implement properly.
33119         * gimple.h (gimple_cond_single_var_p): Remove.
33121 2013-03-18  Richard Biener  <rguenther@suse.de>
33123         * tree-data-ref.h (find_data_references_in_loop): Declare.
33124         * tree-data-ref.c (get_references_in_stmt): Use a stack
33125         vector pre-allocated in the callers.
33126         (find_data_references_in_stmt): Adjust.
33127         (graphite_find_data_references_in_stmt): Likewise.
33128         (create_rdg_vertices): Likewise.
33129         (find_data_references_in_loop): Export.
33130         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
33131         Compute dependences here...
33132         (vect_analyze_data_refs): ...not here.  When we encounter
33133         a non-vectorizable data reference in basic-block vectorization
33134         truncate the data reference vector.  Do not bother to
33135         fixup data-dependence information for gather loads.
33136         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
33137         of data references, as reported.
33139 2013-03-18  Richard Biener  <rguenther@suse.de>
33141         PR tree-optimization/3713
33142         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
33143         has_constants and expr.
33144         (stmt_has_constants): Properly valueize SSA names when deciding
33145         whether the stmt has constants.
33147 2013-03-18  Richard Biener  <rguenther@suse.de>
33149         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
33150         whole function when there is nothing to do.
33151         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
33152         * tree-vectorizer.c (vectorize_loops): Update virtual and
33153         loop-closed SSA once.
33154         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
33156 2013-03-18  Richard Biener  <rguenther@suse.de>
33158         PR middle-end/56113
33159         * domwalk.c (bb_postorder): New global static.
33160         (cmp_bb_postorder): New function.
33161         (walk_dominator_tree): Replace scheme imposing an order for
33162         visiting dominator sons by one sorting them at the time they
33163         are pushed on the stack.
33165 2013-03-18  Richard Biener  <rguenther@suse.de>
33167         PR tree-optimization/39326
33168         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
33169         (struct mem_ref): Replace mem member with ao_ref typed member.
33170         (MEM_ANALYZABLE): Adjust.
33171         (memref_eq): Likewise.
33172         (mem_ref_alloc): Likewise.
33173         (gather_mem_refs_stmt): Likewise.
33174         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
33175         (execute_sm_if_changed_flag_set): Adjust.
33176         (execute_sm): Likewise.
33177         (ref_always_accessed_p): Likewise.
33178         (refs_independent_p): Likewise.
33179         (can_sm_ref_p): Likewise.
33181 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
33183         PR c/56566
33184         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
33185         return 1 even for !unsignedp.
33187 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
33189         * config/i386/i386.md (isa): Add x64 and nox64.
33190         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
33191         (*pushtf): Enable *roF alternative for x64 isa only.
33192         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
33193         mode attribute of integer alternatives to DImode for TARGET_64BIT.
33194         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
33195         (*movtf_internal): Merge from *movtf_internal_rex64 and
33196         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
33197         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
33198         nox64 isa attributes.
33199         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
33200         nox64 isa attributes.
33201         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
33203 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
33205         * config/alpha/alpha.c (TARGET_LRA_P): New define.
33207 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
33209         PR target/56640
33210         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
33211         class names.  Remove trailing comma after "ALL_REGS".
33213 2013-03-16  Jan Hubicka  <jh@suse.cz>
33215         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
33216         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
33217         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
33218         of cgraph_get_create_node.
33219         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
33221 2013-03-16  Jason Merrill  <jason@redhat.com>
33223         PR debug/49090
33224         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
33225         with DW_AT_default_value.
33227 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
33229         * BASE-VER: Set to 4.9.0.
33231 2013-03-14  Andi Kleen  <ak@linux.intel.com>
33233         PR target/56619
33234         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
33235         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
33236         Document _x* TSX intrinsics.
33238 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
33239             David Holsgrove  <david.holsgrove@xilinx.com>
33241         * configure.ac: Add MicroBlaze TLS support detection.
33242         * configure: Regenerate.
33243         * config/microblaze/microblaze-protos.h
33244         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
33245         symbol_mentioned_p, label_mentioned_p): Add prototypes.
33246         * config/microblaze/microblaze.c (microblaze_address_type): Add
33247         ADDRESS_TLS and tls_reloc address types.
33248         (microblaze_address_info): Add tls_reloc.
33249         (TARGET_HAVE_TLS): Define.
33250         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
33251          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
33252          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
33253         load_tls_operand,  microblaze_call_tls_get_addr,
33254         microblaze_legitimize_tls_address): New functions.
33255         (microblaze_classify_unspec): Handle UNSPEC_TLS.
33256         (get_base_reg): Use microblaze_tls_symbol_p.
33257         (microblaze_classify_address): Handle TLS.
33258         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
33259         label_mentioned_p and microblaze_tls_referenced_p.
33260         (microblaze_legitimize_address): Handle TLS.
33261         (microblaze_address_insns): Handle ADDRESS_TLS.
33262         (pic_address_needs_scratch): Handle TLS.
33263         (print_operand_address): Handle TLS.
33264         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
33265         (microblaze_expand_move): Handle TLS.
33266         (microblaze_legitimate_constant_p): Check
33267         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
33268         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
33269         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
33270         (PIC_OFFSET_TABLE_REGNUM): Set.
33271         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
33272         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
33273         (addsi3, movsi_internal2, movdf_internal): Update constraints
33274         * config/microblaze/predicates.md (arith_plus_operand): Define
33275         (move_operand): Redefine as move_src_operand,
33276         check microblaze_tls_referenced_p.
33278 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
33280         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
33281         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
33283 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
33285         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
33286         CC mode for AND.
33288 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
33290         PR tree-optimization/53265
33291         * common.opt (Waggressive-loop-optimizations): New option.
33292         * tree-ssa-loop-niter.c: Include tree-pass.h.
33293         (do_warn_aggressive_loop_optimizations): New function.
33294         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
33295         if number_of_latch_executions returned constant.
33296         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
33297         early.  If number_of_latch_executions returned constant, set
33298         nb_iterations_upper_bound back to it.
33299         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
33300         field.
33301         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
33302         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
33304         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
33305         (MULTILIB_OSDIRNAMES): Set.
33306         * genmultilib: If defaultosdirname doesn't start with :: , set
33307         defaultosdirname2 instead, clear it and emit two . multilib_raw
33308         entries instead of just one.
33310 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
33312         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
33313         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
33314         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
33315         (SUBTARGET_OVERRIDE_OPTIONS): New.
33317 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
33319         PR target/49880
33320         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
33321         (musermode): Convert to Var(TARGET_USERMODE).
33322         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
33323         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
33324         * config/sh/sh.c (sh_option_override): Use
33325         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
33326         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
33327         condition.
33328         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
33329         TARGET_SH4.
33330         (udivsi3_i4_single, divsi3_i4_single): Use
33331         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
33333 2013-03-13  Dave Korn  <dave.korn.cygwin@gmail.com>
33335         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
33336         default setting.
33338 2013-03-13  Richard Biener  <rguenther@suse.de>
33340         PR tree-optimization/56608
33341         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
33342         calls when vectorizing basic-blocks.
33344 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
33346         PR plugins/45078
33347         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
33348         tm_file.
33350 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
33352         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
33354 2013-03-11  Jan Hubicka  <jh@suse.cz>
33356         PR lto/56557
33357         * lto-streamer-out.c (output_symbol_p): Skip references from
33358         constructors of external variables.
33360 2013-03-11  Jan Hubicka  <jh@suse.cz>
33362         PR middle-end/56571
33363         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
33364         from pseudos.
33365         * emit-rtl.c (verify_rtx_sharing): Likewise.
33366         (copy_insn_1): Likewise.
33367         * rtl.c (copy_rtx): Likewise.
33369 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
33371         PR target/56591
33372         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
33373         output_operand_lossage message.
33375 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
33377         PR target/56470
33378         * arm.c (shift_op): Validate RTL pattern on the fly.
33379         (arm_print_operand, case 'S'): Don't use shift_operator to validate
33380         the RTL.
33382 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33384         PR target/56347
33385         * config/pa/pa.md (call_value): Check for calls to powf and direct to
33386         new call patterns that clobber %fr12.
33387         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
33388         split and postreload patterns.
33389         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
33390         registers %fr12 and %fr12R as call used.
33392 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
33394         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
33395         (canon_address, record_store, replace_read, check_mem_read_rtx,
33396         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
33397         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
33398         rest_of_handle_dse): Likewise.
33400 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
33402         PR middle-end/56524
33403         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
33404         Add base_optabs.
33405         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
33406         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
33407         (save_optabs_if_changed): Replace with...
33408         (init_tree_optimization_optabs): ...this.
33409         * optabs.c (save_optabs_if_changed): Rename to...
33410         (init_tree_optimization_optabs): ...this.  Take the optimization node
33411         as argument.  Do nothing if the base optabs are already correct.
33412         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
33413         to recompute optabs.
33414         * function.h (function): Remove optabs field.
33415         * function.c (invoke_set_current_function_hook): Call
33416         init_tree_optimization_optabs.  Use the result to initialize
33417         this_fn_optabs.
33419 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
33421         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
33422         if GTMA_HAS_NO_INSTRUMENTATION.
33423         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
33424         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
33425         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
33426         * gimple-pretty-print.c (dump_gimple_transaction): Handle
33427         GTMA_HAS_NO_INSTRUMENTATION.
33429 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
33431         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
33432         libasan_preinit.o.
33434 2013-03-08  Marek Polacek  <polacek@redhat.com>
33435             Jakub Jelinek  <jakub@redhat.com>
33437         PR tree-optimization/56478
33438         * predict.c (is_comparison_with_loop_invariant_p): Change the
33439         type of loop_step to tree.
33440         (predict_loops): Adjust.
33441         (predict_iv_comparison): Perform the computations on double_ints.
33443 2013-03-08  Richard Biener  <rguenther@suse.de>
33445         PR tree-optimization/56570
33446         * tree-cfg.c (verify_expr_location_1): Verify locations for
33447         DECL_DEBUG_EXPR.
33448         * tree-sra.c (create_access_replacement): Strip locations
33449         from DECL_DEBUG_EXPRs.
33451 2013-03-08  Richard Biener  <rguenther@suse.de>
33453         * tree-inline.c (expand_call_inline): Do not associate
33454         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
33455         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
33457 2013-03-08  Richard Biener  <rguenther@suse.de>
33459         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
33460         or block changes with -Og.  Fix for location / block encoding
33461         changes and PHI arguments with locations.
33463 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
33465         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
33466         for all counters.
33467         (struct output_info): Likewise.
33468         (register_overhead): Remove bad gcc_assert.
33469         (bitmap_find_bit): If there is only a single bitmap element, do not
33470         count a miss as a search.
33471         (print_statistics): Update for counter type changes.
33472         (dump_bitmap_statistics): Likewise.  Print headers such that they
33473         are properly lined up with the printed counters.
33475 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
33477         PR tree-optimization/56559
33478         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
33479         check that it has only a single use.
33481 2013-03-07  Richard Biener  <rguenther@suse.de>
33483         * doc/invoke.texi (fwhole-program): Discourage use in combination
33484         with -flto.
33486 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
33488         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
33490         PR tree-optimization/56539
33491         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
33492         instead of GSI_CONTINUE_LINKING as last argument to
33493         force_gimple_operand_gsi.  Adjust function comment.
33495         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
33496         aarch64-cores.def.
33498         PR middle-end/56548
33499         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
33500         promoted mode, convert the result back to the original mode.
33502 2013-03-06  Richard Biener  <rguenther@suse.de>
33504         PR middle-end/56294
33505         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
33506         (insert_updated_phi_nodes_compare_uids): New function.
33507         (update_ssa): Sort symbols_to_rename after UID before
33508         traversing it to insert PHI nodes.
33510 2013-03-06  Richard Biener  <rguenther@suse.de>
33512         PR middle-end/50494
33513         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
33514         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
33516         Revert
33517         2013-02-13  Richard Biener  <rguenther@suse.de>
33519         PR lto/50494
33520         * varasm.c (output_constant_def_1): Get the decl representing
33521         the constant as argument.
33522         (output_constant_def): Wrap output_constant_def_1.
33523         (make_decl_rtl): Use output_constant_def_1 with the decl
33524         representing the constant.
33525         (build_constant_desc): Optionally re-use a decl already
33526         representing the constant.
33527         (tree_output_constant_def): Adjust.
33529 2013-03-06  Joey Ye  <joey.ye@arm.com>
33531         PR lto/50293
33532         * gcc.c (convert_white_space): New function.
33533         (main): Handles white space in function name.
33535 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
33537         PR target/56529
33538         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
33539         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
33540         to SH_DIV_CALL_TABLE for TARGET_SH2.
33541         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
33542         list.
33543         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
33544         call-table options.
33546 2013-03-05  Sterling Augustine  <saugustine@google.com>
33547             Cary Coutant  <ccoutant@google.com>
33549         PR debug/55364
33550         * dwarf2out.c (resolve_addr): Don't call
33551         remove_loc_list_addr_table_entries a second time for the same
33552         expression.
33554 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
33556         PR debug/56510
33557         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
33558         (avoid_complex_debug_insns): New function.
33559         (expand_debug_locations): Call it.
33561         PR rtl-optimization/56484
33562         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
33563         lifetimes of hard registers on small register class machines.
33565 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
33567         * config/microblaze/microblaze-protos.h: Rename
33568         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
33569         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
33570         fast_interrupt.
33571         (microblaze_fast_interrupt_function_p): New function.
33572         (microblaze_is_interrupt_handler): Rename to
33573         microblaze_is_interrupt_variant and add fast_interrupt check.
33574         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
33575         (save_restore_insns): Likewise.
33576         (compute_frame_size): Likewise.
33577         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
33578         (microblaze_globalize_label): Likewise.
33579         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
33580         * config/microblaze/microblaze.md: Use wrapper
33581         microblaze_is_interrupt_variant.
33583 2013-03-05  Kai Tietz  <ktietz@redhat.com>
33585         * sdbout.c (sdbout_one_type): Switch to current function's section
33586         supporting cold/hot.
33588 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
33590         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
33591         -mxl-reorder.
33593 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
33595         PR middle-end/56461
33596         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
33597         if VALGRIND_GET_VBITS is defined, temporarily make object
33598         memory all defined, and restore previous valgrind addressability
33599         and definability afterwards.  Free this_object at the end.
33601         PR middle-end/56461
33602         * lra.c (lra): Call lra_clear_live_ranges if live_p,
33603         right before calling lra_create_live_ranges, also call it
33604         when clearing live_p.  Only call lra_clear_live_ranges
33605         at the end if live_p.
33607         PR middle-end/56461
33608         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
33610 2013-03-05  Richard Biener  <rguenther@suse.de>
33612         PR tree-optimization/56521
33613         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
33614         value-id.
33616 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
33618         PR c++/55135
33619         * except.h (remove_unreachable_eh_regions): New prototype.
33620         * except.c (remove_eh_handler_splicer): New function, split out
33621         of remove_eh_handler.
33622         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
33623         warning about running it on many EH regions one at a time.
33624         (remove_unreachable_eh_regions_worker): New function, walk the
33625         EH tree in depth-first order and remove non-marked regions.
33626         (remove_unreachable_eh_regions): New function.
33627         * tree-eh.c (mark_reachable_handlers): New function, split out
33628         from remove_unreachable_handlers.
33629         (remove_unreachable_handlers): Use mark_reachable_handlers and
33630         remove_unreachable_eh_regions.
33631         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
33632         and remove_unreachable_eh_regions.
33634 2013-03-05  Richard Biener  <rguenther@suse.de>
33636         PR middle-end/56525
33637         * loop-init.c (fix_loop_structure): Remove loops in two stages,
33638         not freeing them until the end.
33640 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33642         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
33644 2013-03-05  Richard Biener  <rguenther@suse.de>
33646         PR tree-optimization/56270
33647         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
33648         of loads after scheduling an SLP instance.
33650 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
33652         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
33653         tic6x.exp.
33654         (check_gcc_parallelize): Run guality.exp as a separate job from
33655         vect.exp with unsorted.exp and $(dg_target_exps) separately from
33656         struct-layout-1.exp with stackalign.exp.
33658         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
33660         PR middle-end/56461
33661         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
33662         load_index sbitmap even if some bit in it isn't set.
33664         PR middle-end/56461
33665         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
33666         (discover_iteration_bound_by_body_walk): Change queues to
33667         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
33668         spelling in comment.  Call safe_push on queues[bound_index] directly.
33669         Release queues[queue_index] in every iteration unconditionally.
33670         Release bounds vector.
33672         PR middle-end/56461
33673         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
33674         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
33675         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
33676         inner_phis vector.
33678 2013-03-05  Richard Biener  <rguenther@suse.de>
33680         PR lto/56515
33681         * tree-inline.c (remap_blocks_to_null): New function.
33682         (expand_call_inline): When expanding a call stmt without
33683         an associated block inline remap all callee blocks to NULL.
33685 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
33687         PR rtl-optimization/56494
33688         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
33689         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
33690         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
33692         PR middle-end/56461
33693         * sel-sched-ir.c (free_sched_pools): Release
33694         succs_info_pool.stack[succs_info_pool.max_top] vectors too
33695         if succs_info_pool.max_top isn't -1.
33697         PR bootstrap/56509
33698         * opts.c (opts_obstack, opts_concat): Moved to...
33699         * opts-common.c (opts_obstack, opts_concat): ... here.
33701 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
33703         PR middle-end/56461
33704         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
33706 2013-03-04  Martin Jambor  <mjambor@suse.cz>
33708         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
33709         all appropriate places.
33711 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
33713         PR tree-optimization/56424
33714         * ipa-split.c (split_function): Do not set the RSO flag if result is
33715         not by reference and its type is a register type.
33717 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
33719         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
33720         (microblaze_legitimate_pic_operand): Likewise
33721         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
33722         new function microblaze_legitimate_pic_operand
33723         * config/microblaze/microblaze-protos.h
33724         (microblaze_legitimate_pic_operand): Declare.
33726 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33728         * config/microblaze/predicates.md (call_insn_simple_operand):
33729         New predicate for supported rtx code types.
33730         * config/microblaze/microblaze.md (call_internal1): Use
33731         call_insn_simple_operand predicate.
33733 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
33735         PR middle-end/56461
33736         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
33737         partitions.ordered_remove.
33739         PR middle-end/56461
33740         * tree-vect-stmts.c (vectorizable_conversion): Don't call
33741         vec_oprnds0.create (1) for modifier == NONE.
33743         PR middle-end/56461
33744         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
33745         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
33746         vec_oprnds1 right before pushing anything to it for
33747         scalar_shift_arg.
33749         PR middle-end/56461
33750         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
33751         set nbbs to 0 instead of having separate code path.
33752         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
33753         instead of false as last argument if returning NULL.
33755 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
33757         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
33758         the attribute is now called "target" instead of "option".
33759         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
33760         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
33761         attribute/pragma name for TARGET_OPTION_VALID_P and
33762         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
33763         * doc/tm.texi: Regenerated.
33765 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
33767         * config/microblaze/microblaze.c:
33768         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
33769         * config/microblaze/microblaze.h: Add -mxl-reorder to
33770         DRIVER_SELF_SPECS.
33771         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
33772         instructions emitted if TARGET_REORDER.
33773         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
33774         or 0 for -m/-mno case, but initialises as 2 to detect default use case
33775         separately.
33777 2013-03-01  Xinliang David Li  <davidxl@google.com>
33779         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
33780         walk length.
33782 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
33784         PR middle-end/56461
33785         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
33786         vector even when returning true.  Fix up function comment formatting.
33788         PR middle-end/56461
33789         * ira-build.c (ira_loop_nodes_count): New variable.
33790         (create_loop_tree_nodes): Initialize it.
33791         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
33793         PR middle-end/56461
33794         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
33795         method on dr_chain and result_chain.
33796         * tree-vect-stmts.c (vectorizable_store): Only call
33797         result_chain.create if j == 0.
33799         PR middle-end/56461
33800         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
33801         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
33802         before overwriting it.
33804 2013-03-01  Tobias Burnus  <burnus@net-b.de>
33806         * doc/extended.texi (C Extensions): Change order in @menu
33807         to match @node.
33808         (Other MIPS Built-in Functions): Move last MIPS entry before
33809         "picoChip Built-in Functions".
33810         (SH Built-in Functions): Move after RX Built-in Functions.
33811         * doc/gcc.texi (Introduction): Change order in @menu
33812         to match @node.
33813         * doc/md.texi (Constraints): Ditto.
33814         * gty.texi (Type Information): Ditto.
33815         (User-provided marking routines for template types): Make
33816         subsection.
33817         * doc/invoke.texi (AArch64 Options): Move before
33818         "Adapteva Epiphany Options".
33820 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
33821             Jakub Jelinek  <jakub@redhat.com>
33823         PR sanitizer/56454
33824         * asan.c (gate_asan): Lookup no_sanitize_address instead of
33825         no_address_safety_analysis attribute.
33826         * doc/extend.texi (no_address_safety_attribute): Rename to
33827         no_sanitize_address attribute, mention no_address_safety_analysis
33828         attribute as deprecated alias.
33830 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
33832         PR middle-end/56461
33833         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
33834         type to vec<vec<tree> > *.
33835         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
33836         to be vec<tree> instead of vec<tree> *, set vec_defs
33837         to vNULL and call vec_defs.create (number_of_vects), adjust other
33838         uses of vec_defs.
33839         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
33840         vectorizable_condition): Adjust vect_get_slp_defs callers.
33842 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
33844         * config/aarch64/aarch64.c
33845         (aarch64_float_const_representable): Remove unused variable.
33847 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
33849         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
33851 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
33853         * config/aarch64/aarch64-builtins.c
33854         (aarch64_init_simd_builtins): Make static.
33856 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
33858         * config/aarch64/aarch64.c
33859         (aarch64_simd_make_constant): Make static.
33861 2013-02-28  Martin Jambor  <mjambor@suse.cz>
33863         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
33864         with no initialization to the RHS of debug statements.
33866 2013-02-28  Martin Jambor  <mjambor@suse.cz>
33868         PR tree-optimization/56294
33869         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
33870         Adjust dumping.
33871         (get_access_replacement): Do not call create_access_replacement.
33872         Assert a replacement exists.
33873         (get_repl_default_def_ssa_name): Create the replacement declaration
33874         itself.
33876 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33878         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
33879         final_end_function.
33881 2013-02-28  Marek Polacek  <polacek@redhat.com>
33883         PR rtl-optimization/56466
33884         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
33885         if we're changing a loop.
33886         (peel_loops_completely): Likewise.
33888 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
33890         PR c++/55813
33891         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
33893 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
33895         PR target/56445
33896         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
33897         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
33898         INTX_FTYPE_FX, FX_FTYPE_INTX.
33899         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
33901 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
33903         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
33904         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
33905         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
33906         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
33907         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
33908         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
33909         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
33910         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
33911         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
33912         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
33913         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
33914         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
33915         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
33916         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
33917         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
33918         (avrxmega6): Increase max flash segments from 5 to 6.
33919         * config/avr/t-multilib: Regenerate.
33920         * config/avr/avr-tables.opt: Regenerate.
33921         * doc/avr-mmcu.texi: Regenerate.
33923 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
33925         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
33926         (avr_device_to_arch): Rename to avr_device_to_ld.
33927         (avr_device_to_as): New prototype.
33928         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
33929         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
33930         * config/avr/driver-avr.c (avr_device_to_as): New.
33931         (avr_device_to_arch): Rename to avr_device_to_ld.
33933 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
33935         PR middle-end/56461
33936         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
33937         method on dr_chain and result_chain.
33939         PR middle-end/56461
33940         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
33941         pointer_set_destroy on not_executed_last_iteration.
33943         PR middle-end/56461
33944         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
33946         PR middle-end/56461
33947         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
33948         FOR_EACH_DEFINED_FUNCTION when freeing state.
33950         PR middle-end/56461
33951         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
33952         pool_free.
33953         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
33954         overwriting it.
33956         PR middle-end/56461
33957         * ipa-cp.c (decide_whether_version_node): Call vec_free on
33958         known_aggs[i].items and release known_aggs vector.
33960         PR middle-end/56461
33961         * ipa-reference.c (propagate): Free node_info even for alias nodes.
33963 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33965         * config/microblaze/microblaze.c (microblaze_emit_compare):
33966         Use xor for EQ/NE comparisions.
33967         * config/microblaze/microblaze.md (cstoresf4): Add constraints
33968         (cbranchsf4): Adjust operator to comparison_operator.
33970 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
33972         PR middle-end/56461
33973         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
33974         vector.
33975         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
33976         vec_safe_push, always update *slot.
33977         (redirect_edge_var_map_clear): Use vec_free.
33978         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
33979         (free_var_map_entry): Use vec_free.
33980         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
33981         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
33983 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
33985         PR middle-end/45472
33986         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
33987         when the may_trap_p bit of the exprs being merged differs.
33988         Reorder tests for speculativeness in the logical and operator.
33990 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
33992         * incpath.c (add_standard_paths): Use reconcat instead of concat
33993         where appropriate and avoid leaking memory.
33995         * opts.h: Include obstack.h.
33996         (opts_concat): New prototype.
33997         (opts_obstack): New declaration.
33998         * opts.c (opts_concat): New function.
33999         (opts_obstack): New variable.
34000         (init_options_struct): Call gcc_init_obstack on opts_obstack.
34001         (finish_options): Use opts_concat instead of concat
34002         and XOBNEWVEC instead of XNEWVEC.
34003         * opts-common.c (generate_canonical_option, decode_cmdline_option,
34004         generate_option): Likewise.
34005         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
34006         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
34008         PR target/56455
34009         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
34010         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
34012 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
34014         PR middle-end/56461
34015         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
34017 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
34019         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
34020         (arm_block_move_unaligned_straight): Likewise.
34021         (arm_adjust_block_mem): Likewise.
34023 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
34025         PR target/48901
34026         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
34027         temp, cond and label.
34028         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
34030         PR target/52500
34031         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
34032         * config/c6x/c6x.h (dbx_register_map): Update declaration.
34034         PR target/52501
34035         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
34036         of prologue/epilogue functions.
34038         PR target/52550
34039         * config/tilegx/tilegx.c (tilegx_expand_prologue):
34040         Remove unused variable cfa_offset.
34041         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
34043         PR target/54639
34044         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
34045         type promotion to unsigned.
34047         PR target/54640
34048         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
34049         for HOST_WIDE_INT of 32 bit / same size as int.
34050         (arm_block_move_unaligned_straight): Likewise.
34051         (arm_adjust_block_mem): Likewise.
34053         PR target/54662
34054         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
34055         ALL_CFLAGS.
34057 2013-02-26  Marek Polacek  <polacek@redhat.com>
34059         PR tree-optimization/56426
34060         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
34062 2013-02-26  Richard Biener  <rguenther@suse.de>
34064         PR target/56444
34065         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
34066         unused variable loops.
34068 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
34070         PR tree-optimization/56448
34071         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
34072         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
34073         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
34074         later operands of the references, or even first operand for
34075         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
34077         PR tree-optimization/56443
34078         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
34079         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
34080         to type_for_mode langhook.
34082 2013-02-25  Matt Turner  <mattst88@gmail.com>
34084         * doc/invoke.texi: Document r4700.
34086 2013-02-25  Richard Biener  <rguenther@suse.de>
34088         PR tree-optimization/56175
34089         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
34090         split out from ...
34091         (simplify_bitwise_binary): ... here.  Also guard the conversion
34092         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
34094 2013-02-25  Catherine Moore  <clm@codesourcery.com>
34096         Revert:
34097         2013-02-24  Catherine Moore  <clm@codesourcery.com>
34098             Maciej W. Rozycki  <macro@codesourcery.com>
34099             Tom de Vries  <tom@codesourcery.com>
34100             Nathan Sidwell  <nathan@codesourcery.com>
34101             Iain Sandoe  <iain@codesourcery.com>
34102             Nathan Froyd  <froydnj@codesourcery.com>
34103             Chao-ying Fu  <fu@mips.com>
34105         * doc/extend.texi: (micromips, nomicromips, nocompression):
34106         Document new function attributes.
34107         * doc/invoke.texi (minterlink-compressed, mmicromips,
34108         m14k, m14ke, m14kec): Document new options.
34109         (minterlink-mips16): Update documentation.
34110         * doc/md.texi (ZC, ZD): Document new constraints.
34111         * configure.ac (gcc_cv_as_micromips): Check if linker
34112         supports the .set micromips directive.
34113         * configure: Regenerate.
34114         * config.in: Regenerate.
34115         * config/mips/mips-tables.opt: Regenerate.
34116         * config/mips/micromips.md: New file.
34117         * constraints.md (ZC, AD): New constraints.
34118         * config/mips/predicates.md (movep_src_register): New predicate.
34119         (movep_src_operand): New predicate.
34120         (non_volatile_mem_operand): New predicate.
34121         * config/mips/mips.md (multimem): New type.
34122         (length): Differentiate between 17-bit and 18-bit branch offsets.
34123         (MOVEP1, MOVEP2): New mode iterator.
34124         (mov_<load>l): Use ZC constraint.
34125         (mov_<load>r): Likewise.
34126         (mov_<store>l): Likewise.
34127         (mov_<store>r): Likewise.
34128         (*branch_equality<mode>_inverted): Add microMIPS support.
34129         (*branch_equality<mode>): Likewise.
34130         (*jump_absolute): Likewise.
34131         (indirect_jump_<mode>): Likewise.
34132         (tablejump_<mode>): Likewise.
34133         (<optab>_internal): Likewise.
34134         (sibcall_internal): Likewise.
34135         (sibcall_value_internal): Likewise.
34136         (prefetch): Use constraint ZD.
34137         * config/mips/mips.opt (minterlink-compressed): New option.
34138         (minterlink-mips16): Now an alias for minterlink-compressed.
34139         (mmicromips): New option.
34140         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
34141         (compare_and_swap_12): Likewise.
34142         (sync_add<mode>): Likewise.
34143         (sync_<optab>_12): Likewise.
34144         (sync_old_<optab>_12): Likewise.
34145         (sync_new_<optab>_12): Likewise.
34146         (sync_nand_12): Likewise.
34147         (sync_old_nand_12): Likewise.
34148         (sync_new_nand_12): Likewise.
34149         (sync_sub<mode>): Likewise.
34150         (sync_old_add<mode>): Likewise.
34151         (sync_old_sub<mode>): Likewise.
34152         (sync_new_add<mode>): Likewise.
34153         (sync_new_sub<mode>): Likewise.
34154         (sync_<optab><mode>): Likewise.
34155         (sync_old_<optab><mode>): Likewise.
34156         (sync_new_<optab><mode>): Likewise.
34157         (sync_nand<mode>): Likewise.
34158         (sync_old_nand<mode>): Likewise.
34159         (sync_new_nand<mode>): Likewise.
34160         (sync_lock_test_and_set<mode>): Likewise.
34161         (test_and_set_12): Likewise.
34162         (atomic_compare_and_swap<mode>): Likewise.
34163         (atomic_exchange<mode>_llsc): Likewise.
34164         (atomic_fetch_add<mode>_llsc): Likewise.
34165         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
34166         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
34167         (umips_save_restore_pattern_p): Likewise.
34168         (umips_load_store_pair_p): Likewise.
34169         (umips_output_load_store_pair): Likewise.
34170         (umips_movep_target_p): Likewise.
34171         (umips_12bit_offset_address_p): Likewise.
34172         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
34173         (mips_base_mips16): Rename this...
34174         (mips_base_compression_flags): ...to this. Update all uses.
34175         (mips_attribute_table): Add micromips, nomicromips and nocompression.
34176         (mips_mips16_decl_p): Delete.
34177         (mips_nomips16_decl_p): Delete.
34178         (mips_get_compress_on_flags): New function.
34179         (mips_get_compress_off_flags): New function.
34180         (mips_get_compress_mode): New function.
34181         (mips_get_compress_on_name): New function.
34182         (mips_get_compress_off_name): New function.
34183         (mips_insert_attributes): Support multiple compression types.
34184         (mips_merge_decl_attributes): Likewise.
34185         (umips_12bit_offset_address_p): New function.
34186         (mips_start_function_definition): Emit .set micromips directive.
34187         (mips_call_may_need_jalx_p): New function.
34188         (mips_function_ok_for_sibcall): Add microMIPS support.
34189         (mips_print_operand_punctuation): Support short delay slots and
34190         compact jumps.
34191         (umips_swm_mask, umips_swm_encoding): New.
34192         (umips_build_save_restore): New function.
34193         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
34194         (was_mips16_p): Remove.
34195         (old_compression_mode): New.
34196         (mips_set_compression_mode): New function.
34197         (mips_set_current_function): Add microMIPS support.
34198         (mips_option_override): Likewise.
34199         (umips_save_restore_pattern_p): New function.
34200         (umips_output_save_restore): New function.
34201         (umips_load_store_pair_p_1): New function.
34202         (umips_load_store_pair_p): New function.
34203         (umips_output_load_store_pair_1): New function.
34204         (umips_output_load_store_pair): New function.
34205         (umips_movep_target_p) New function.
34206         (mips_prepare_pch_save): Add microMIPS support.
34207         * config/mips/mips.h (TARGET_COMPRESSION): New.
34208         (TARGET_CPU_CPP_BUILTINS): Update macro
34209         to use new compression flags and to support microMIPS.
34210         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
34211         (MIPS_ARCH_FLOAT_SPEC): Likewise.
34212         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
34213         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
34214         (ASM_SPEC): Support mmicromips and mno-micromips.
34215         (M16STORE_REG_P): New macro.
34216         (MIPS_CALL): Support TARGET_MICROMIPS.
34217         (MICROMIPS_J): New macro.
34218         (mips_base_mips16): Rename this...
34219         (mips_base_compression_flags): ...to this.
34220         (UMIPS_12BIT_OFFSET_P): New macro.
34221         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
34222         (MULTILIB_DIRNAMES): Likewise.
34224 2013-02-25  Tom de Vries  <tom@codesourcery.com>
34226         PR rtl-optimization/56131
34227         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
34228         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
34229         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
34231 2013-02-25  Tobias Burnus  <burnus@net-b.de>
34233         * doc/invoke.texi (-fsanitize=): Move from optimization
34234         to debugging options.
34236 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
34238         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
34240 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
34241             Alexander Monakov  <amonakov@ispras.ru>
34243         PR middle-end/56077
34244         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
34245         flush pending lists also on non-jumps.  Adjust comment.
34247 2013-02-24  Catherine Moore  <clm@codesourcery.com>
34248             Maciej W. Rozycki  <macro@codesourcery.com>
34249             Tom de Vries  <tom@codesourcery.com>
34250             Nathan Sidwell  <nathan@codesourcery.com>
34251             Iain Sandoe  <iain@codesourcery.com>
34252             Nathan Froyd  <froydnj@codesourcery.com>
34253             Chao-ying Fu  <fu@mips.com>
34255         * doc/extend.texi: (micromips, nomicromips, nocompression):
34256         Document new function attributes.
34257         * doc/invoke.texi (minterlink-compressed, mmicromips,
34258         m14k, m14ke, m14kec): Document new options.
34259         (minterlink-mips16): Update documentation.
34260         * doc/md.texi (ZC, ZD): Document new constraints.
34261         * configure.ac (gcc_cv_as_micromips): Check if linker
34262         supports the .set micromips directive.
34263         * configure: Regenerate.
34264         * config.in: Regenerate.
34265         * config/mips/mips-tables.opt: Regenerate.
34266         * config/mips/micromips.md: New file.
34267         * constraints.md (ZC, AD): New constraints.
34268         * config/mips/predicates.md (movep_src_register): New predicate.
34269         (movep_src_operand): New predicate.
34270         (non_volatile_mem_operand): New predicate.
34271         * config/mips/mips.md (multimem): New type.
34272         (length): Differentiate between 17-bit and 18-bit branch offsets.
34273         (MOVEP1, MOVEP2): New mode iterator.
34274         (mov_<load>l): Use ZC constraint.
34275         (mov_<load>r): Likewise.
34276         (mov_<store>l): Likewise.
34277         (mov_<store>r): Likewise.
34278         (*branch_equality<mode>_inverted): Add microMIPS support.
34279         (*branch_equality<mode>): Likewise.
34280         (*jump_absolute): Likewise.
34281         (indirect_jump_<mode>): Likewise.
34282         (tablejump_<mode>): Likewise.
34283         (<optab>_internal): Likewise.
34284         (sibcall_internal): Likewise.
34285         (sibcall_value_internal): Likewise.
34286         (prefetch): Use constraint ZD.
34287         * config/mips/mips.opt (minterlink-compressed): New option.
34288         (minterlink-mips16): Now an alias for minterlink-compressed.
34289         (mmicromips): New option.
34290         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
34291         (compare_and_swap_12): Likewise.
34292         (sync_add<mode>): Likewise.
34293         (sync_<optab>_12): Likewise.
34294         (sync_old_<optab>_12): Likewise.
34295         (sync_new_<optab>_12): Likewise.
34296         (sync_nand_12): Likewise.
34297         (sync_old_nand_12): Likewise.
34298         (sync_new_nand_12): Likewise.
34299         (sync_sub<mode>): Likewise.
34300         (sync_old_add<mode>): Likewise.
34301         (sync_old_sub<mode>): Likewise.
34302         (sync_new_add<mode>): Likewise.
34303         (sync_new_sub<mode>): Likewise.
34304         (sync_<optab><mode>): Likewise.
34305         (sync_old_<optab><mode>): Likewise.
34306         (sync_new_<optab><mode>): Likewise.
34307         (sync_nand<mode>): Likewise.
34308         (sync_old_nand<mode>): Likewise.
34309         (sync_new_nand<mode>): Likewise.
34310         (sync_lock_test_and_set<mode>): Likewise.
34311         (test_and_set_12): Likewise.
34312         (atomic_compare_and_swap<mode>): Likewise.
34313         (atomic_exchange<mode>_llsc): Likewise.
34314         (atomic_fetch_add<mode>_llsc): Likewise.
34315         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
34316         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
34317         (umips_save_restore_pattern_p): Likewise.
34318         (umips_load_store_pair_p): Likewise.
34319         (umips_output_load_store_pair): Likewise.
34320         (umips_movep_target_p): Likewise.
34321         (umips_12bit_offset_address_p): Likewise.
34322         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
34323         (mips_base_mips16): Rename this...
34324         (mips_base_compression_flags): ...to this. Update all uses.
34325         (mips_attribute_table): Add micromips, nomicromips and nocompression.
34326         (mips_mips16_decl_p): Delete.
34327         (mips_nomips16_decl_p): Delete.
34328         (mips_get_compress_on_flags): New function.
34329         (mips_get_compress_off_flags): New function.
34330         (mips_get_compress_mode): New function.
34331         (mips_get_compress_on_name): New function.
34332         (mips_get_compress_off_name): New function.
34333         (mips_insert_attributes): Support multiple compression types.
34334         (mips_merge_decl_attributes): Likewise.
34335         (umips_12bit_offset_address_p): New function.
34336         (mips_start_function_definition): Emit .set micromips directive.
34337         (mips_call_may_need_jalx_p): New function.
34338         (mips_function_ok_for_sibcall): Add microMIPS support.
34339         (mips_print_operand_punctuation): Support short delay slots and
34340         compact jumps.
34341         (umips_swm_mask, umips_swm_encoding): New.
34342         (umips_build_save_restore): New function.
34343         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
34344         (was_mips16_p): Remove.
34345         (old_compression_mode): New.
34346         (mips_set_compression_mode): New function.
34347         (mips_set_current_function): Add microMIPS support.
34348         (mips_option_override): Likewise.
34349         (umips_save_restore_pattern_p): New function.
34350         (umips_output_save_restore): New function.
34351         (umips_load_store_pair_p_1): New function.
34352         (umips_load_store_pair_p): New function.
34353         (umips_output_load_store_pair_1): New function.
34354         (umips_output_load_store_pair): New function.
34355         (umips_movep_target_p) New function.
34356         (mips_prepare_pch_save): Add microMIPS support.
34357         * config/mips/mips.h (TARGET_COMPRESSION): New.
34358         (TARGET_CPU_CPP_BUILTINS): Update macro
34359         to use new compression flags and to support microMIPS.
34360         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
34361         (MIPS_ARCH_FLOAT_SPEC): Likewise.
34362         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
34363         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
34364         (ASM_SPEC): Support mmicromips and mno-micromips.
34365         (M16STORE_REG_P): New macro.
34366         (MIPS_CALL): Support TARGET_MICROMIPS.
34367         (MICROMIPS_J): New macro.
34368         (mips_base_mips16): Rename this...
34369         (mips_base_compression_flags): ...to this.
34370         (UMIPS_12BIT_OFFSET_P): New macro.
34371         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
34372         (MULTILIB_DIRNAMES): Likewise.
34374 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
34376         PR target/52555
34377         * target-globals.c (save_target_globals): For init_reg_sets and
34378         target_reinit remporarily set this_fn_optabs to this_target_optabs.
34380 2013-02-22  James Greenhalgh  <james.greenhalgh@arm.com>
34382         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
34383         * config/aarch64/t-aarch64
34384         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
34386 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
34388         PR inline-asm/56148
34389         * lra-constraints.c (process_alt_operands): Reload operand
34390         conflicting with earlier clobber only if no more other conflicting
34391         operands.
34393 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
34395         PR sanitizer/56393
34396         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
34397         if not linking a shared library.
34399 2013-02-22  Seth LaForge  <sethml@google.com>
34401         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
34403 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
34405         * config/arm/arm.md (split for extendsidi): Update condition.
34406         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
34407         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
34408         (qhs_zextenddi_cstr): Likewise.
34410 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
34412         PR middle-end/56420
34413         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
34414         avoid signed wrapping.
34415         (expand_mult): Handle properly multiplication by
34416         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
34417         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
34418         in the compiler if coeff is HOST_WIDE_INT_MIN.
34419         (expand_divmod): Don't make ext_op1 static, change it's type to
34420         uhwi.  Avoid undefined behavior in -INTVAL (op1).
34422         PR rtl-optimization/50339
34423         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
34424         field.
34425         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
34426         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
34427         into splitting_ashiftrt field.
34428         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
34429         ASHIFTRT.
34430         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
34431         choices.
34433 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
34435         PR middle-end/56108
34436         * trans-mem.c (execute_tm_mark): Do not expand transactions that
34437         are sure to go irrevocable.
34439 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
34441         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
34442         scalars are valid operands.
34444 2013-02-21  Martin Jambor  <mjambor@suse.cz>
34446         PR tree-optimization/56310
34447         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
34448         only matching indices and non-negative final offsets.
34449         (intersect_aggregates_with_edge): Pass src_idx to
34450         agg_replacements_to_vector.  Pass src_idx insstead of index to
34451         intersect_with_agg_replacements.
34453 2013-02-21  Martin Jambor  <mjambor@suse.cz>
34455         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
34456         instead of hard-wired defaults.
34458 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
34460         * doc/invoke.texi (MIPS Options): Update documentation of the
34461         floating-point multiply-accumulate instruction restrictions.
34463 2013-02-21  Kostya Serebryany  <kcc@google.com>
34465         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
34466         asan_shadow_offset on x86_64 linux.
34468 2013-02-21  Richard Biener  <rguenther@suse.de>
34470         PR tree-optimization/56415
34471         Revert
34472         2013-02-11  Richard Biener  <rguenther@suse.de>
34474         PR tree-optimization/56273
34475         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
34476         first VRP run.
34478 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
34480         PR bootstrap/56258
34481         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
34482         instead of @itemx.
34484         PR inline-asm/56405
34485         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
34486         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
34488 2013-02-20  Jan Hubicka  <jh@suse.cz>
34490         PR tree-optimization/56265
34491         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
34492         when target is referenced for first time.
34494 2013-02-20  Richard Biener  <rguenther@suse.de>
34496         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
34497         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
34498         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
34499         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
34500         not return anything.
34501         (rename_ssa_copies): Do not remove unused locals.
34502         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
34503         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
34504         * passes.c (execute_function_todo): Do not schedule unused locals
34505         removal if cleanup_tree_cfg did something.
34506         * tree-ssa-live.c (remove_unused_locals): Dump statistics
34507         about the number of removed locals.
34509 2013-02-20  Richard Biener  <rguenther@suse.de>
34511         PR tree-optimization/56398
34512         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
34514 2013-02-20  Martin Jambor  <mjambor@suse.cz>
34516         PR tree-optimization/55334
34517         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
34518         restricted pointers to arrays.
34520 2013-02-20  Richard Biener  <rguenther@suse.de>
34521             Jakub Jelinek  <jakub@redhat.com>
34523         PR tree-optimization/56396
34524         * tree-ssa-ccp.c (n_const_val): New static variable.
34525         (get_value): Return NULL for SSA names we don't have a lattice
34526         entry for.
34527         (ccp_initialize): Initialize n_const_val.
34528         * tree-ssa-copy.c (n_copy_of): New static variable.
34529         (init_copy_prop): Initialize n_copy_of.
34530         (get_value): Return NULL_TREE for SSA names we don't have a
34531         lattice entry for.
34533 2013-02-20  Martin Jambor  <mjambor@suse.cz>
34535         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
34537 2013-02-20  Richard Biener  <rguenther@suse.de>
34539         * genpreds.c (write_lookup_constraint): Do not compare first
34540         letter of the constraint again.
34542 2013-02-20  Richard Biener  <rguenther@suse.de>
34544         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
34545         and ceil_log2.
34546         (get_use_iv_cost): Terminate hashtable walk when coming across
34547         an empty entry.
34549 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
34551         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
34552         reassociation for avx2 targets.
34554 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34556         * config/microblaze/microblaze.c: microblaze_has_clz = 0
34557         Add version check for v8.10.a to enable microblaze_has_clz
34558         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
34559         version and TARGET_PATTERN_COMPARE check
34560         * config/microblaze/microblaze.md: New clzsi2 instruction
34562 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34564         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
34565         function before branching.
34567 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
34569         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
34570         DUMP_INSN_RTX_UID.
34571         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
34573 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
34575         PR middle-end/55889
34576         * sel-sched.c: Include ira.h.
34577         (implicit_clobber_conflict_p): New function.
34578         (moveup_expr): Use it.
34579         * Makefile.in (sel-sched.o): Depend on ira.h.
34581 2013-02-19  Richard Biener  <rguenther@suse.de>
34583         PR tree-optimization/56384
34584         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
34585         (vn_hash_type): Split out from ...
34586         (vn_hash_constant_with_type): ... here.
34587         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
34588         (vn_phi_eq): Compare types from vn_phi_s structure.
34589         (vn_phi_lookup): Populate vn_phi_s type.
34590         (vn_phi_insert): Likewise.
34592 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
34594         PR tree-optimization/56350
34595         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
34596         if haven't found reduction or nested cycle operand, rather than
34597         asserting we must find it.
34599         PR tree-optimization/56381
34600         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
34601         to fold_build3.
34603 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
34604             Jakub Jelinek  <jakub@redhat.com>
34606         PR target/52555
34607         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
34608         (swap_optab_enable): Same.
34609         (init_all_optabs): Use argument instead of global.
34610         * tree.h (struct tree_optimization_option): New field target_optabs.
34611         * expr.h (init_all_optabs): Add argument to prototype.
34612         (TREE_OPTIMIZATION_OPTABS): New.
34613         (save_optabs_if_changed): Protoize.
34614         * optabs.h: Declare this_fn_optabs.
34615         * optabs.c (save_optabs_if_changed): New.
34616         Declare this_fn_optabs.
34617         (init_optabs): Add argument to init_all_optabs() call.
34618         * function.c (invoke_set_current_function_hook): Handle per
34619         function optabs.
34620         * function.h (struct function): New field optabs.
34621         * config/mips/mips.c (mips_set_mips16_mode): Handle when
34622         optimization_current_node has changed.
34623         * target-globals.h (save_target_globals_default_opts): Protoize.
34624         * target-globals.c (save_target_globals_default_opts): New.
34626 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34628         PR target/56347
34629         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
34630         registers %fr12 and %fr12R as call used.
34632         PR target/56214
34633         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
34634         and HImode, require all displacements to be an integer multiple of
34635         their mode size.
34636         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
34637         only allow QImode and HImode when reload is in progress and strict is
34638         true.  Likewise for symbolic addresses.  Use base14_operand to check
34639         displacements in REG+BASE addresses.
34641 2013-02-18  Richard Biener  <rguenther@suse.de>
34643         PR tree-optimization/56366
34644         * tree-vect-loop.c (get_initial_def_for_induction): Properly
34645         handle sign-conversion of outer-loop initial induction value.
34647 2013-02-18  Richard Biener  <rguenther@suse.de>
34649         PR middle-end/56349
34650         * cfghooks.c (merge_blocks): If we merge a latch into another
34651         block adjust references to it.
34652         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
34653         (verify_loop_structure): Verify that a recorded latch is in fact
34654         a latch.
34656 2013-02-18  Richard Biener  <rguenther@suse.de>
34658         PR tree-optimization/56321
34659         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
34660         order SSA name release and virtual operand unlinking.
34662 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34664         * config/microblaze/microblaze.md (save_stack_block): Define.
34665         (restore_stack_block): Likewise.
34667 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34669         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
34670         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
34671         * config/microblaze/microblaze.c (microblaze_option_override):
34672         Bail out early for PIC modes when target does not support PIC.
34674 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34676         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
34677         Replace with a microblaze version.
34678         (microblaze_trampoline_init): Adapt for microblaze.
34679         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
34680         microblaze.
34682 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
34683             Dodji Seketeli  <dodji@redhat.com>
34685         PR asan/56330
34686         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
34687         (instrument_mem_region_access): Do not forget to always put
34688         instrumentation of the of 'base' and 'base + len' in a "if (len !=
34689         0) statement, even for cases where either 'base' or 'base + len'
34690         are not instrumented -- because they have been previously
34691         instrumented.  Simplify the logic by putting all the statements
34692         instrument 'base + len' inside a sequence, and then insert that
34693         sequence right before the current insertion point.  Then, to
34694         instrument 'base + len', just get an iterator on that statement.
34695         And do not forget to update the pointer to iterator the function
34696         received as argument.
34698 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
34700         PR rtl-optimization/56348
34701         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
34703 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
34705         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
34706         (clean_graph_dump_file): Pass base to start_graph_dump.
34708 2013-02-14  Richard Henderson  <rth@redhat.com>
34710         PR target/55941
34711         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
34713 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
34715         * collect2-aix.h: Define F_LOADONLY.
34717 2013-02-14  Richard Biener  <rguenther@suse.de>
34719         PR lto/50494
34720         * varasm.c (output_constant_def_1): Get the decl representing
34721         the constant as argument.
34722         (output_constant_def): Wrap output_constant_def_1.
34723         (make_decl_rtl): Use output_constant_def_1 with the decl
34724         representing the constant.
34725         (build_constant_desc): Optionally re-use a decl already
34726         representing the constant.
34727         (tree_output_constant_def): Adjust.
34729 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
34731         Fix an asan crash
34732         * asan.c (instrument_builtin_call):  Really put the length of the
34733         second source argument into src1_len.
34735 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
34737         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
34738         argument.  If it is false, don't create edge from then_bb to
34739         fallthru_bb.
34740         (insert_if_then_before_iter): Pass true to it.
34741         (build_check_stmt): Pass false to it.
34742         (transform_statements): Flush hash table only on extended basic
34743         block boundaries, rather than at the beginning of every bb.
34744         Don't flush hash table on nonfreeing_call_p calls.
34745         * tree-flow.h (nonfreeing_call_p): New prototype.
34746         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
34748 2013-02-13  David S. Miller  <davem@davemloft.net>
34750         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
34752 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
34754         PR target/56184
34755         * ira.c (max_regno_before_ira): Move from ...
34756         (ira): ... here.
34757         (fix_reg_equiv_init): Use max_regno_before_ira instead of
34758         vec_safe_length.
34760 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
34762         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
34764 2013-02-13  Richard Biener  <rguenther@suse.de>
34766         PR lto/56295
34767         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
34768         globals in MEM_REFs.
34770 2013-02-13  Richard Biener  <rguenther@suse.de>
34772         * loop-init.c (loop_optimizer_init): Clear loop state when
34773         re-initializing preserved loops.
34774         * loop-unswitch.c (unswitch_single_loop): Return whether
34775         we unswitched the loop.  Do not verify loop state here.
34776         (unswitch_loops): When we unswitched a loop discover new loops.
34778 2013-02-13  Kostya Serebryany  <kcc@google.com>
34780         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
34781         on x86_64 linux.
34782         * sanitizer.def: Rename __asan_init to __asan_init_v1.
34784 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
34786         Avoid instrumenting duplicated memory access in the same basic block
34787         * Makefile.in (asan.o): Add new dependency on hash-table.h
34788         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
34789         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
34790         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
34791         (free_mem_ref_resources, has_mem_ref_been_instrumented)
34792         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
34793         (get_mem_ref_of_assignment): New functions.
34794         (get_mem_refs_of_builtin_call): Extract from
34795         instrument_builtin_call and tweak a little bit to make it fit with
34796         the new signature.
34797         (instrument_builtin_call): Use the new
34798         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
34799         of is_gimple_builtin_call.
34800         (instrument_derefs, instrument_mem_region_access): Insert the
34801         instrumented memory reference into the hash table.
34802         (maybe_instrument_assignment): Renamed instrument_assignment into
34803         this, and change it to advance the iterator when instrumentation
34804         actually happened and return true in that case.  This makes it
34805         homogeneous with maybe_instrument_assignment, and thus give a
34806         chance to callers to be more 'regular'.
34807         (transform_statements): Clear the memory reference hash table
34808         whenever we enter a new BB, when we cross a function call, or when
34809         we are done transforming statements.  Use
34810         maybe_instrument_assignment instead of instrumentation.  No more
34811         need to special case maybe_instrument_assignment and advance the
34812         iterator after calling it; it's now handled just like
34813         maybe_instrument_call.  Update comment.
34815 2013-02-13  Richard Biener  <rguenther@suse.de>
34817         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
34818         Fix loop discovery code.
34820 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
34822         PR inline-asm/56148
34823         * lra-constraints.c (process_alt_operands): Match early clobber
34824         operand with itself.  Check conflicts with earlyclobber only if
34825         the operand is not reloaded.  Prefer to reload conflicting operand
34826         if earlyclobber and matching operands are the same.
34828 2013-02-12  Richard Biener  <rguenther@suse.de>
34830         PR lto/56297
34831         * lto-streamer-out.c (write_symbol): Do not output symbols
34832         for hard register variables.
34834 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
34836         PR target/54222
34837         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
34838         (umulsidi3_insn, mulsidi3_insn): New insns.
34840 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
34842         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
34843         (struct tune_params): Add vec_costs field.
34844         * config/arm/arm.c (arm_builtin_vectorization_cost)
34845         (arm_add_stmt_cost): New functions.
34846         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
34847         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
34848         (arm_default_vec_cost): New struct of type cpu_vec_costs.
34849         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
34850         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
34851         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
34852         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
34854 2013-02-12  Richard Biener  <rguenther@suse.de>
34856         PR lto/56295
34857         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
34858         decls again if possible.
34860 2013-02-12  Richard Biener  <rguenther@suse.de>
34862         PR middle-end/56288
34863         * tree-ssa.c (verify_ssa_name): Fix check, move
34864         SSA_NAME_IN_FREE_LIST check up.
34866 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
34867             Steven Bosscher   <steven@gcc.gnu.org>
34869         PR rtl-optimization/56151
34870         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
34871         equal to op0 or op1, and last_insn pattern is CODE operation
34872         with MEM dest and one of the operands matches that MEM.
34874 2013-02-11  Sriraman Tallam  <tmsriram@google.com>
34876         * doc/extend.texi: Document Function Multiversioning and "default"
34877         parameter string to target attribute.
34878         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
34879         target attribute parameter is "default".
34880         (ix86_compare_version_priority): Remove checks for target attribute.
34881         (ix86_mangle_function_version_assembler_name): Change error to sorry.
34882         Remove check for target attribute equal to NULL. Add assert.
34883         (ix86_generate_version_dispatcher_body): Change error to sorry.
34885 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
34886             Jack Howarth  <howarth@bromo.med.uc.edu>
34887             Patrick Marlier  <patrick.marlier@gmail.com>
34889         PR libitm/55693
34890         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
34891         define ENDFILE_SPEC as TM_DESTRUCTOR.
34892         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
34894 2013-02-11  Alexander Potapenko  <glider@google.com>
34895             Jack Howarth  <howarth@bromo.med.uc.edu>
34896             Jakub Jelinek  <jakub@redhat.com>
34898         PR sanitizer/55617
34899         * config/darwin.c (cdtor_record): Rename ctor_record.
34900         (sort_cdtor_records): Rename sort_ctor_records.
34901         (finalize_dtors): New routine to sort destructors by
34902         priority before use in assemble_integer.
34903         (machopic_asm_out_destructor): Use finalize_dtors if needed.
34905 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
34907         PR rtl-optimization/56275
34908         * simplify-rtx.c (avoid_constant_pool_reference): Check that
34909         offset is non-negative and less than cmode size before
34910         calling simplify_subreg.
34912 2013-02-11  Richard Biener  <rguenther@suse.de>
34914         PR tree-optimization/56264
34915         * cfgloop.h (fix_loop_structure): Adjust prototype.
34916         * loop-init.c (fix_loop_structure): Return the number of
34917         newly discovered loops.
34918         * tree-cfgcleanup.c (repair_loop_structures): When new loops
34919         are discovered, do a full loop-closed SSA rewrite.
34921 2013-02-11  Richard Biener  <rguenther@suse.de>
34923         PR tree-optimization/56273
34924         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
34925         first VRP run.
34926         (check_array_ref): Fix missing newline in dumps.
34927         (search_for_addr_array): Likewise.
34929 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
34931         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
34933 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
34935         PR target/56256
34936         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
34938 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
34940         PR rtl-optimization/56246
34941         * lra-constraints.c (simplify_operand_subreg): Try to reuse
34942         reload pseudo.
34943         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
34944         constraints are satisfied.
34946 2013-02-08  Jeff Law  <law@redhat.com>
34948         PR debug/53948
34949         * emit-rtl.c (reg_is_parm_p): New function.
34950         * regs.h (reg_is_parm_p): New prototype.
34951         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
34952         callee-clobbered registers.
34954 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
34956         PR target/56043
34957         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
34958         If there is no implicit builtin declaration, just return NULL.
34960 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
34962         * config/i386/sse.md (FMAMODEM): New mode iterator.
34963         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
34964         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
34966 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
34968         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
34969         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
34970         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
34972 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34974         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
34975         (microblaze*-*-elf): Likewise.
34976         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
34977         LINK_SPEC.
34978         * config/microblaze/microblaze-c.c: Add builtin defines for
34979         _LITTLE_ENDIAN and _BIG_ENDIAN.
34980         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
34981         add to TARGET_DEFAULT flags.
34982         Expand ASM_SPEC and LINK_SPEC.
34983         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
34984         * config/microblaze/microblaze.md: Update extendsidi2 and
34985         movdi_internal instructions to use low-order / high-order reg
34986         print_operands.
34987         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
34988         options and inversemask / mask of LITTLE_ENDIAN.
34989         * config/microblaze/t-microblaze: Expand multilib options to
34990         include mlittle-endian (le) and update exceptions patterns.
34992 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
34994         PR rtl-optimization/56195
34995         * lra-constraints.c (get_reload_reg): Don't reuse regs
34996         if they have smaller mode than requested, if they have
34997         wider mode than requested, try to return a SUBREG.
34999         PR tree-optimization/56250
35000         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
35001         if type is unsigned and code isn't MULT_EXPR.
35003 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
35005         PR tree-optimization/56064
35006         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
35007         bits according to mode.
35008         * fixed-value.h (fixed_from_double_int)
35009         (const_fixed_from_double_int): Adjust comments.
35011 2013-02-08  Richard Biener  <rguenther@suse.de>
35013         PR lto/56231
35014         * lto-streamer.h (struct data_in): Remove current_file, current_line
35015         and current_col members.
35016         * lto-streamer-out.c (lto_output_location): Stream changed bits
35017         en-block for efficiency.
35018         * lto-streamer-in.c (clear_line_info): Remove.
35019         (lto_input_location): Cache current file, line and column
35020         globally via local statics.  Read changed bits en-block.
35021         (input_function): Do not call clear_line_info.
35022         (lto_read_body): Likewise.
35023         (lto_input_toplevel_asms): Likewise.
35025 2013-02-08  Michael Matz  <matz@suse.de>
35027         PR tree-optimization/52448
35028         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
35029         (nt_call_phase): New static.
35030         (add_or_mark_expr): Only mark accesses with newer phase than any
35031         call seen.
35032         (nonfreeing_call_p): New.
35033         (nt_init_block): Update nt_call_phase, mark blocks as visited.
35034         (nt_fini_block): Keep blocks marked as visited.
35035         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
35037 2013-02-08  Richard Biener  <rguenther@suse.de>
35039         * ira.c (ira): Free broken dominator information.
35041 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
35043         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
35045 2013-02-08  Marek Polacek  <polacek@redhat.com>
35047         * cfgloop.c (verify_loop_structure): Add more checking of headers.
35049 2013-02-08  Richard Biener  <rguenther@suse.de>
35051         PR middle-end/56181
35052         * cfgloop.h (flow_loops_find): Adjust.
35053         (bb_loop_header_p): Declare.
35054         * cfgloop.c (bb_loop_header_p): New function split out from ...
35055         (flow_loops_find): ... here.  Adjust function signature,
35056         support incremental loop structure update.
35057         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
35058         * cfgloopmanip.c (fix_loop_structure): Move ...
35059         * loop-init.c (fix_loop_structure): ... here.
35060         (apply_loop_flags): Split out from ...
35061         (loop_optimizer_init): ... here.
35062         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
35063         in incremental mode, only remove dead loops here.
35065 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
35067         PR target/54222
35068         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
35069         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
35070         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
35071         (*round<mode>3.libgcc): New insns for fixed-modes.
35072         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
35073         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
35074         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
35075         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
35076         implementations.  Define to __builtin_avr_absFX,
35077         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
35078         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
35079         __builtin_avr_countlsFX, respectively.
35080         * config/avr/avr-c.c (target.h): Include it.
35081         (enum avr_builtin_id): New enum.
35082         (avr_resolve_overloaded_builtin): New static function.
35083         (avr_register_target_pragmas): Use it to set
35084         targetm.resolve_overloaded_builtin.
35085         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
35086         tree nodes used by DEF_BUILTIN.
35087         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
35088         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
35089         <AVR_BUILTIN_xxBITS>: Same.
35091 2013-02-08  Richard Biener  <rguenther@suse.de>
35093         * cfgloop.c (verify_loop_structure): Properly handle
35094         a loop exiting to another loop header.
35095         * ira-int.h (ira_loops): Remove.
35096         * ira.c (ira_loops): Remove.
35097         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
35098         (do_reload): Use loop_optimizer_finalize.
35099         * ira-build.c (create_loop_tree_nodes): Use get_loops and
35100         number_of_loops to access the loop tree.
35101         (more_one_region_p): Likewise.
35102         (finish_loop_tree_nodes): Likewise.
35103         (rebuild_regno_allocno_maps): Likewise.
35104         (mark_loops_for_removal): Likewise.
35105         (mark_all_loops_for_removal): Likewise.
35106         (remove_unnecessary_regions): Likewise.
35107         (ira_build): Likewise.
35108         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
35110 2013-02-08  Richard Biener  <rguenther@suse.de>
35112         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
35113         * ipa-pure-const.c (analyze_function): Avoid calling
35114         mark_irreducible_loops twice.
35115         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
35117 2013-02-07  David S. Miller  <davem@davemloft.net>
35119         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
35120         on 'reg'.
35121         * var-tracking.c (vt_add_function_parameter): Test the presence of
35122         HAVE_window_save properly and do not remap argument registers when
35123         we have a leaf function.
35125 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
35127         PR bootstrap/56227
35128         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
35129         instead of "ll".
35130         * config/i386/i386.c (ix86_print_operand): Ditto.
35132 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
35134         * lra-constraints.c (process_alt_operands): Fix recently added comment.
35136 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
35138         PR rtl-optimization/56225
35139         * lra-constraints.c (process_alt_operands): Check that reload hard
35140         reg can hold value for strict_low_part.
35142 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
35144         PR debug/56154
35145         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
35146         dwarf2out_end_function.
35147         (in_first_function_p, maybe_at_text_label_p,
35148         first_loclabel_num_not_at_text_label): New variables.
35149         (dwarf2out_var_location): In the first function find out
35150         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
35151         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
35152         functions.
35154 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
35156         PR rtl-optimization/56178
35157         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
35158         SUBREG of a register.  Tidy up related block of code.
35159         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
35160         note if the source is a register or a SUBREG of a register.
35162 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
35164         PR target/56228
35165         * config/rs6000/rs6000.md (ptrm): New mode attr.
35166         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
35167         call_value_indirect_aix<pttrsize>,
35168         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
35169         m in constraints.
35171 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
35173         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
35174         if -bnortl. Convert to strcmp and strncmp.
35176 2013-02-07  Alan Modra  <amodra@gmail.com>
35178         PR target/54009
35179         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
35180         addresses won't wrap when offsetting.
35181         (rs6000_secondary_reload): Provide secondary reloads needed for
35182         wrapping LO_SUM addresses.
35184 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
35186         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
35187         MACH, just __MACH__.
35189 2013-02-06  Richard Biener  <rguenther@suse.de>
35191         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
35192         instead of calling fix_loop_structure.
35194 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
35196         PR middle-end/56217
35197         * omp-low.c (use_pointer_for_field): Return false if
35198         lower_send_shared_vars doesn't generate any copy-out code.
35200 2013-02-06  Tom de Vries  <tom@codesourcery.com>
35202         PR rtl-optimization/56131
35203         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
35204         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
35205         of the label is NULL.  Add comment.
35207 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
35209         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
35211         PR sanitizer/55374
35212         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
35213         (STATIC_LIBTSAN_LIBS): Likewise.
35214         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
35215         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
35216         is defined, don't add anything else beyond that.
35217         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
35218         (LINK_COMMAND_SPEC): Use them.
35220         PR tree-optimization/56205
35221         * tree-stdarg.c (check_all_va_list_escapes): Return true if
35222         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
35223         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
35225 2013-02-05  Richard Biener  <rguenther@suse.de>
35227         PR tree-optimization/53342
35228         PR tree-optimization/53185
35229         * tree-vectorizer.h (vect_check_strided_load): Remove.
35230         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
35231         not disallow peeling for vectorized strided loads.
35232         (vect_check_strided_load): Make static and simplify.
35233         (vect_analyze_data_refs): Adjust.
35234         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
35235         correctly when vectorizing strided loads.
35237 2013-02-05  Richard Biener  <rguenther@suse.de>
35239         * doc/install.texi: Refer to ISL, not PPL.
35241 2013-02-05  Jan Hubicka  <jh@suse.cz>
35243         PR tree-optimization/55789
35244         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
35246 2013-02-05  Jan Hubicka  <jh@suse.cz>
35248         PR tree-optimization/55789
35249         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
35250         the dead call anyway.
35252 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
35254         PR sanitizer/55374
35255         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
35257 2013-02-04  Alexander Potapenko  <glider@google.com>
35258             Jack Howarth  <howarth@bromo.med.uc.edu>
35259             Jakub Jelinek  <jakub@redhat.com>
35261         PR sanitizer/55617
35262         * config/darwin.c (sort_ctor_records): Stabilized qsort
35263         on constructor priority by using original position.
35264         (finalize_ctors): New routine to sort constructors by
35265         priority before use in assemble_integer.
35266         (machopic_asm_out_constructor): Use finalize_ctors if needed.
35268 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
35270         PR libstdc++/54314
35271         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
35272         about visibility on artificial decls.
35273         * config/sol2.c (solaris_assemble_visibility): Likewise.
35275 2013-02-04  Kai Tietz  <ktietz@redhat.com>
35277         PR target/56186
35278         * config/i386/i386.c (function_value_ms_64): Add additional valtype
35279         argument and improve checking of return-argument types for 16-byte
35280         modes.
35281         (ix86_function_value_1): Add additional valtype argument on call
35282         of function_value_64.
35283         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
35284         handling infunction_value_64 function.
35286 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
35288         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
35290 2013-02-04  Richard Biener  <rguenther@suse.de>
35292         PR tree-optimization/56188
35293         * tree-ssa-structalias.c (label_visit): Consider case with
35294         initially non-empty points-to set.
35295         (perform_var_substitution): Dump node mapping and clean up.
35297 2013-02-04  Richard Guenther  <rguenther@suse.de>
35299         PR lto/56168
35300         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
35301         node prevail as last resort.
35302         (lto_symtab_merge_decls): Remove guard on LTRANS here.
35303         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
35305 2013-02-04  Richard Biener  <rguenther@suse.de>
35307         PR tree-optimization/56113
35308         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
35309         Merge into ...
35310         (equiv_class_lookup_or_add): ... this.
35311         (label_visit): Adjust and fix error in previous patch.
35312         (perform_var_substitution): Adjust.
35314 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
35316         * config/sh/divtab.c: Fix formatting and comments throughout the file.
35317         * config/sh/sh4-300.md: Likewise.
35318         * config/sh/sh4a.md: Likewise.
35319         * config/sh/constraints.md: Likewise.
35320         * config/sh/sh.md: Likewise.
35321         * config/sh/netbsd-elf.h: Likewise.
35322         * config/sh/predicates.md: Likewise.
35323         * config/sh/sh-protos.h: Likewise.
35324         * config/sh/ushmedia.h: Likewise.
35325         * config/sh/linux.h: Likewise.
35326         * config/sh/sh.c: Likewise.
35327         * config/sh/superh.h: Likewise.
35328         * config/sh/elf.h: Likewise.
35329         * config/sh/sh4.md: Likewise.
35330         * config/sh/sh.h: Likewise.
35332 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35334         * config/pa/constraints.md: Adjust unused letters.  Change "T"
35335         constraint to match_test floating_point_store_memory_operand().
35336         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
35337         (base14_operand): New.
35338         (floating_point_store_memory_operand): New.
35339         (integer_store_memory_operand): Revise to use base14_operand and
35340         reg_plus_base_memory_operand.
35341         (move_dest_operand): Allow symbolic_memory_operands.
35342         (symbolic_memory_operand): Check for LO_SOM.
35343         (symbolic_operand): Change default case to break.
35344         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
35345         CONST_DOUBLE values to be reloaded by putting them into memory when
35346         the destination is a floating point register.
35347         (movdf): Remove code to handle CONST_DOUBLE.
35348         (movsf): Likewise.
35349         (reload_indf_r1): New.
35350         (reload_insf_r1): New.
35351         Consistently use "Q" and "T" constraints with integer and floating
35352         point move instructions, respectively.
35353         (movdi): Remove FAIL.
35354         Change predicate for source operand unamed DImode move from
35355         general_operand to move_src_operand.
35356         (umulsidi3): Change predicate for destination operand to
35357         register_operand.
35358         Likewise for similar unamed patterns.
35359         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
35360         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
35361         (hppa_legitimize_address): Simplify mask calculation.
35362         (pa_emit_move_sequence): Revised handling of secondary reloads from
35363         REG+D addresses for floating point loads and stores.  Directly handle
35364         loading CONST0_RTX (mode) to a floating point register.
35365         (pa_secondary_reload): Handle reloading DF and SFmode constant values
35366         to floating point registers.  Don't restrict secondary reloads to
35367         floating point registers to integer modes.  Revise some comments and
35368         cleanup some code.
35369         (TARGET_LEGITIMATE_ADDRESS_P): Define.
35370         (pa_legitimate_address_p): New.
35371         (pa_legitimize_reload_address): New.
35372         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
35373         (STRICT_REG_OK_FOR_BASE_P): New.
35374         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
35375         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
35377 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
35378             Andrew Dixie  <andrewd@gentrack.com>
35380         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
35381         flag set.
35383 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
35385         * expmed.c (extract_bit_field_1): Pass the full width of the
35386         structure to get_best_reg_extraction_insn.
35388 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
35390         PR target/54601
35391         * configure.ac (use_cxa_atexit): Add AIX.
35392         * configure: Regenerate.
35394         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
35396 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
35398         PR debug/54793
35399         * final.c (need_profile_function): New variable.
35400         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
35401         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
35402         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
35403         notes, targetm.asm_out.function_prologue doesn't emit anything,
35404         HAVE_prologue and profiler should be emitted before prologue,
35405         set need_profile_function instead of emitting it.
35406         (final_scan_insn): If need_profile_function, emit
35407         profile_function on the first NOTE_INSN_BASIC_BLOCK or
35408         NOTE_INSN_FUNCTION_BEG note.
35410 2013-02-01  Richard Henderson  <rth@redhat.com>
35412         * config/rs6000/rs6000.md (smulditi3): New.
35413         (umulditi3): New.
35415         * config/alpha/alpha.md (umulditi3): New.
35417 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
35419         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
35420         (ASM_OUTPUT_ALIGNED_LOCAL): New.
35422 2013-02-01  Richard Biener  <rguenther@suse.de>
35424         PR tree-optimization/56113
35425         * tree-ssa-structalias.c (label_visit): Reduce work for
35426         single-predecessor nodes.
35428 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
35430         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
35431         range isn't testing for zero.
35433 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
35435         PR middle-end/56113
35436         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
35438 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
35439             Nick Clifton  <nickc@redhat.com>
35441         * config/v850/constraints.md (Q): Define as a memory constraint.
35442         * config/v850/predicates.md (label_ref_operand): New predicate.
35443         (e3v5_shift_operand): New predicate.
35444         (ior_operator): New predicate.
35445         * config/v850/t-v850: Add e3v5 multilib.
35446         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
35447         (v850_gen_movdi): Prototype.
35448         * config/v850/v850.c: Add support for e3v5 architecture.
35449         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
35450         TARGET_V850E_UP.
35451         (construct_save_jarl): Add e3v5 long JARL support.
35452         (v850_adjust_insn_length): New function.  Adjust length of call
35453         insns when using e3v5 instructions.
35454         (v850_gen_movdi): New function: Generate instructions to move a
35455         DImode value.
35456         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
35457         (CPP_SPEC): Define __v850e3v5__ as appropriate.
35458         (TARGET_USE_FPU): Enable for e3v5.
35459         (CONST_OK_FOR_W): New macro.
35460         (ADJUST_INSN_LENGTH): Define.
35461         * config/v850/v850.md (UNSPEC_LOOP): Define.
35462         (attr cpu): Add v850e3v5.
35463         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
35464         (movdi): New pattern.
35465         (movdi_internal): New pattern.
35466         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
35467         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
35468         (cstoresf4): Likewise.
35469         (cstoredf4): Likewise.
35470         (insv): New pattern.
35471         (rotlso3_a): New pattern.
35472         (rotlsi3_b): New pattern
35473         (rotlsi3_v850e3v5): New pattern.
35474         (doloop_begin): New pattern.
35475         (fix_loop_counter): New pattern.
35476         (doloop_end): New pattern.
35477         (branch_normal): Add e3v5 long branch support.
35478         (branch_invert): Likewise.
35479         (branch_z_normal): Likewise.
35480         (branch_z_invert): Likewise.
35481         (branch_nz_normal): Likewise.
35482         (branch_nz_invert): Likewise.
35483         (call_internal_short): Add e3v5 register-indirect JARL support.
35484         (call_internal_long): Likewise.
35485         (call_value_internal_short): Likewise.
35486         (call_value_internal_long): Likewise.
35487         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
35488         (mloop): New option.
35489         * config.gcc: Add support for configuring v840e3v5 target.
35490         * doc/invoke.texi: Document new v850 specific command line options.
35492 2013-01-31  Paul Koning  <ni1d@arrl.net>
35494         PR debug/55059
35495         PR debug/54508
35496         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
35497         children if parent is a class.
35498         (prune_unused_types_prune): Don't add DW_AT_declaration.
35500 2013-01-31  Richard Biener  <rguenther@suse.de>
35502         PR tree-optimization/56157
35503         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
35504         match up operand with SLP child.
35506 2013-01-31  Jason Merrill  <jason@redhat.com>
35508         PR debug/54410
35509         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
35510         parameters the first time.
35511         (gen_scheduled_generic_parms_dies): Check completeness here.
35513 2013-01-31  Richard Biener  <rguenther@suse.de>
35515         PR middle-end/53073
35516         * common.opt (faggressive-loop-optimizations): New flag,
35517         enabled by default.
35518         * doc/invoke.texi (faggressive-loop-optimizations): Document.
35519         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
35520         infer_loop_bounds_from_undefined by it.
35522 2013-01-31  Richard Biener  <rguenther@suse.de>
35524         PR tree-optimization/56150
35525         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
35526         visit virtual operands.
35527         (find_uses_to_rename_bb): Likewise.
35529 2013-01-31  Richard Biener  <rguenther@suse.de>
35531         PR tree-optimization/56150
35532         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
35533         mixed store non-store stmts.
35535 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
35537         PR sanitizer/55374
35538         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
35539         LIBASAN_EARLY_SPEC is defined.
35540         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
35541         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
35542         before %o.
35543         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
35545         PR c++/55742
35546         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
35547         invalid args instead of ICEing on it.
35548         (ix86_valid_target_attribute_tree): Return error_mark_node if
35549         ix86_valid_target_attribute_inner_p failed.
35550         (ix86_valid_target_attribute_p): Return false only if
35551         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
35552         target("default") attribute.
35553         (sorted_attr_string): Change argument from const char * to tree,
35554         merge in all target attribute arguments rather than just one.
35555         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
35556         instead of free.  Avoid using strcat.
35557         (ix86_mangle_function_version_assembler_name): Mangle
35558         target("default") as if no target attribute is present.  Adjust
35559         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
35560         instead of xmalloc and XDELETEVEC instead of free.
35561         (ix86_function_versions): Don't return true if one of the decls
35562         doesn't have target attribute.  If they don't and one of the decls
35563         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
35564         sorted_attr_string caller.  Use XDELETEVEC instead of free.
35565         (ix86_supports_function_versions): Remove.
35566         (make_name): Fix up formatting.
35567         (make_dispatcher_decl): Remove resolver_name and its initialization.
35568         Avoid leaking memory.
35569         (is_function_default_version): Return true if there is
35570         target("default") attribute rather than no target attribute at all.
35571         (make_resolver_func): Avoid leaking memory.
35572         (ix86_generate_version_dispatcher_body): Likewise.
35573         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
35574         * target.def (supports_function_versions): Remove.
35575         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
35576         * doc/tm.texi: Regenerated.
35578 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
35580         PR rtl-optimization/56144
35581         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
35582         for values with side effects.
35584 2013-01-30  Richard Biener  <rguenther@suse.de>
35586         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
35587         (sparseset_pop): Likewise.
35588         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
35589         to be able to use quick_push in the worker loop.
35591 2013-01-30  Marek Polacek  <polacek@redhat.com>
35593         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
35595 2013-01-30  Richard Biener  <rguenther@suse.de>
35597         PR lto/56147
35598         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
35600 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
35602         PR tree-optimization/56064
35603         * fixed-value.c (fixed_from_double_int): New function.
35604         * fixed-value.h (fixed_from_double_int): New prototype.
35605         (const_fixed_from_double_int): New static inline function.
35606         * fold-const.c (native_interpret_fixed): New static function.
35607         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
35608         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
35609         (native_encode_fixed): New static function.
35610         (native_encode_expr) <FIXED_CST>: Use it.
35611         (native_interpret_int): Move double_int worker code to...
35612         * double-int.c (double_int::from_buffer): ...this new static method.
35613         * double-int.h (double_int::from_buffer): Prototype it.
35615 2013-01-30  Richard Biener  <rguenther@suse.de>
35617         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
35618         New pointer-map and obstack.
35619         (init_alias_vars): Allocate pointer-map and obstack.
35620         (delete_points_to_sets): Free them.
35621         (find_what_var_points_to): Cache result.
35622         (find_what_p_points_to): Adjust for changed interface of
35623         find_what_var_points_to.
35624         (compute_points_to_sets): Likewise.
35625         (ipa_pta_execute): Likewise.
35627 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35629         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
35630         * configure: Regenerate.
35631         * config.in: Regenerate.
35632         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
35633         #nobits/#progbits if supported.
35635 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
35637         PR target/56121
35638         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
35639         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
35640         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
35642 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
35644         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
35645         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
35647 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
35649         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
35650         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
35652 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
35654         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
35655         declaration.
35656         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
35657         * config/arm/cortex-a7.md: New bypasses using
35658         arm_mac_accumulator_is_result.
35660 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
35662         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
35663         (cortex_a7_neon_mla): Likewise.
35664         (cortex_a7_fpfmad): New reservation.
35665         (cortex_a7_fpmacs): Use ffmas and update required units.
35666         (cortex_a7_fpmuld): Update required units and latency.
35667         (cortex_a7_fpmacd): Likewise.
35668         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
35669         (cortex_a7_neon). Likewise.
35670         (bypass) Update participating units.
35672 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
35674         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
35675         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
35676         from fmac to ffma.
35677         * config/arm/vfp11.md (vfp_farith): Use ffmas.
35678         (vfp_fmul): Use ffmad.
35679         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
35680         (cortex_r4_fmacd): Use ffmad.
35681         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
35682         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
35683         (cortex_a9_fmacd): Use ffmad.
35684         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
35685         (cortex_a8_vfp_macd): Use ffmad.
35686         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
35687         (cortex_a5_fpmacd): Use ffmad.
35688         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
35689         (cortex_a15_vfp_macd): Use ffmad.
35690         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
35692 2013-01-29  Jason Merrill  <jason@redhat.com>
35694         PR libstdc++/54314
35695         * varasm.c (default_assemble_visibility): Don't warn about
35696         visibility on artificial decls.
35698 2013-01-29  Richard Biener  <rguenther@suse.de>
35700         PR tree-optimization/56113
35701         * tree-ssa-structalias.c (equiv_class_lookup): Also return
35702         the bitmap leader.
35703         (label_visit): Free duplicate bitmaps and record the leader instead.
35704         (perform_var_substitution): Adjust.
35706 2013-01-29  Richard Biener  <rguenther@suse.de>
35708         PR tree-optimization/55270
35709         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
35710         the CFG, schedule loops for fixup.
35712 2013-01-29  Nick Clifton  <nickc@redhat.com>
35714         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
35715         SP_REG.
35717 2013-01-28  Leif Ekblad  <leif@rdos.net>
35719         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
35720         * config/i386/i386.h (TARGET_RDOS): New macro.
35721         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
35722         * config/i386/i386.c (ix86_option_override_internal): For 64bit
35723         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
35724         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
35725         DEFAULT_LARGE_SECTION_THRESHOLD.
35726         * config/i386/i386.md (R14_REG, R15_REG): New constants.
35727         * config/i386/rdos.h: New file.
35728         * config/i386/rdos64.h: New file.
35730 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
35732         PR other/54814
35733         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
35734         TEST_HARD_REG_BIT.
35736 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
35738         PR rtl-optimization/56117
35739         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
35740         call cselib_lookup_from_insn on the MEM before calling
35741         add_insn_mem_dependence.
35743 2013-01-28  Richard Biener  <rguenther@suse.de>
35745         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
35746         to a stmt that didn't have one.
35747         (copy_phis_for_bb): Likewise for PHI arguments.
35748         (copy_debug_stmt): Likewise for debug stmts.
35750 2013-01-28  Richard Biener  <rguenther@suse.de>
35752         PR tree-optimization/56034
35753         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
35754         (partition_builtin_p): Adjust.
35755         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
35756         it is the last partition.
35757         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
35758         up the vertex for the definition.
35759         (classify_partition): Classify whether a partition is a
35760         PKIND_REDUCTION, thus has uses outside of the loop.
35761         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
35762         Merge all PKIND_REDUCTION partitions into the last partition.
35763         (tree_loop_distribution): Seed partitions from reductions as well.
35765 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
35767         PR tree-optimization/56125
35768         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
35769         pow(x,c) into sqrt(x) * powi(x, n/2) or
35770         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
35771         optimizing for size.
35772         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
35773         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
35774         integer.
35776         PR tree-optimization/56094
35777         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
35778         to UNKNOWN_LOCATION while gimplifying expr.
35780 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
35782         PR target/56114
35783         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
35784         operand 0 in movabs insn template for -masm=intel asm alternative.
35785         (*movabs<mode>_2): Ditto for operand 1.
35787 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
35789         PR target/54663
35790         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
35791         of microblaze-c.o
35793 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
35795         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
35796         tm_file.
35798 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
35800         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
35801         Undef to avoid warning.
35803 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
35805         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
35806         * configure: Regenerate.
35808 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
35810         PR tree-optimization/56098
35811         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
35812         for stmts with volatile ops.
35813         (cond_store_replacement): Don't optimize if assign has volatile ops.
35814         (cond_if_else_store_replacement_1): Don't optimize if either
35815         then_assign or else_assign have volatile ops.
35816         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
35817         volatile ops.
35819 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
35821         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
35823 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
35825         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
35826         missing ':' in asm example.
35828 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
35830         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
35831         entries into lane and laneq entries.
35832         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
35833         Remove AdvSIMD scalar modes.
35834         (aarch64_sq<r>dmulh_laneq<mode>): New.
35835         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
35836         modes.
35837         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
35838         builtin implementations to relfect changes in RTL in aarch64-simd.md.
35839         * config/aarch64/iterators.md (VCOND): New.
35840         (VCONQ): New.
35842 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
35844         PR target/54222
35845         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
35846         Add NULL LIBNAME argument to existing definitions.
35847         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
35848         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
35849         * config/avr/avr.c (DEF_BUILTIN): Same.
35850         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
35851         (avr_expand_builtin): Expand to a vanilla call if a libgcc
35852         implementation is available (DECL_ASSEMBLER_NAME is set).
35853         (avr_fold_absfx): New static function.
35854         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
35855         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
35856         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
35857         AVR_BUILTIN_ABSLLK.
35858         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
35859         (abshk, absk, abslk, absllk): Provide as static inline functions.
35861 2013-01-25  Marek Polacek  <polacek@redhat.com>
35863         PR tree-optimization/56035
35864         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
35866 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
35868         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
35869         (*movtf_internal_rex64): Add (!o,C) alternative
35870         (*movxf_internal_rex64): Ditto.
35871         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
35873 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
35875         * doc/invoke.texi: fix typo.
35876         * doc/objc.texi: fix typo.
35878 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
35880         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
35881         for the first two alternatives.
35883 2013-01-24  Diego Novillo  <dnovillo@google.com>
35885         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
35886         (ggc-zone.o): Remove.
35887         * configure.ac: Remove option --with-gc.
35888         * configure: Re-generate.
35889         * doc/install.texi: Remove documentation for --with-gc.
35890         * gengtype.c (write_enum_defn): Remove.  Update all users.
35891         (write_Types_process_field): Remove generation of gt_e_* argument.
35892         (output_type_enum): Remove.  Update all users.
35893         (write_enum_defn): Remove.  Update all users.
35894         (enum alloc_zone): Remove.  Update all users.
35895         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
35896         * ggc-common.c (ggc_splay_alloc): Remove first argument.
35897         Update all callers.
35898         (struct ptr_data): Remove field TYPE.  Update all users.
35899         (gt_pch_note_object): Remove argument TYPE.  Update all users.
35900         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
35901         Update all users.
35902         * ggc-none.c (ggc_alloc_typed_stat): Remove.
35903         (struct alloc_zone): Remove.
35904         (ggc_internal_alloc_zone_stat): Remove.
35905         (ggc_internal_cleared_alloc_zone_stat): Remove.
35906         * ggc-page.c (ggc_alloc_typed_stat): Remove.
35907         (ggc_pch_count_object): Remove last argument.  Update all users.
35908         (ggc_pch_alloc_object): Remove last argument.  Update all users.
35909         (struct alloc_zone): Remove.
35910         * ggc-zone.c: Remove.
35911         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
35912         (struct alloc_zone): Remove.
35913         (ggc_alloc_typed_stat): Remove.
35914         (ggc_alloc_typed): Remove.
35915         (ggc_splay_alloc): Remove first argument.
35916         (rtl_zone): Remove.  Update all users.
35917         (tree_zone): Remove.  Update all users.
35918         (tree_id_zone): Remove.  Update all users.
35919         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
35920         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
35921         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
35922         * tree-ssanames.c: Remove references to zone allocator in comments.
35924 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
35926         * config/avr/avr.c (avr_out_fract): Make register numbers that
35927         might be outside of source operand signed.
35929 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
35931         * config/i386/constraints.md (Yf): New constraint.
35932         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
35933         of f constraint to conditionaly disable x87 register preferences.
35934         (*movdf_internal): Ditto.
35935         (*movsf_internal): Ditto.
35937 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
35939         PR inline-asm/55934
35940         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
35941         that have operands with impossible constraints.
35942         Add a FIXME for a speed-up opportunity.
35943         * lra-constraints.c (process_alt_operands): Verify that a class
35944         selected from constraints on asms is valid for the operand mode.
35945         (curr_insn_transform): Remove incorrect comment.
35947 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
35949         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
35950         TOC operand is a valid symbol ref in the constant pool.
35952 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
35954         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
35956 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
35958         PR target/54222
35959         * config/avr/stdfix.h: New file.
35960         * t-avr (stdfix-gcc.h): New rule to build it.
35961         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
35963 2013-01-23  Kostya Serebryany  <kcc@google.com>
35965         * config/darwin.h: remove dependency on
35966         CoreFoundation (asan on Mac OS).
35968 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
35970         PR target/49069
35971         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
35972         instead of cmpdi_operand for first comparison operand.
35973         Don't assert that comparison operands aren't both constants.
35975 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
35977         * doc/install.texi (Downloading the Source): Update references to
35978         downloading separate components.
35980 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
35982         * doc/extend.texi (__int128): Improve grammar.
35984 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
35986         PR target/56028
35987         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
35988         alternative to (o,r).
35989         (*movdi_internal_rex64): Remove (!o,n) alternative.
35990         (DImode immediate->memory splitter): Remove.
35991         (DImode immediate->memory peephole2): Remove.
35992         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
35993         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
35994         alternative to (!o,*r).
35995         (*movtf_internal_sse): New pattern.
35996         (*movxf_internal_rex64): New pattern.
35997         (*movxf_internal): Disable for TARGET_64BIT.
35998         (*movdf_internal_rex64): Remove (!o,F) alternative.
36000 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
36002         PR middle-end/56074
36003         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
36004         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
36005         * tree-vect-loop-manip.c (find_loop_location): Also ignore
36006         stmt locations where LOCATION_LOCUS of the stmt location is
36007         UNKNOWN_LOCATION or BUILTINS_LOCATION.
36009         PR target/55686
36010         * config/i386/i386.md (UNSPEC_STOS): New.
36011         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
36012         *strsetqi_1): Add UNSPEC_STOS.
36014 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
36016         PR c++/56067
36017         * doc/invoke.texi: Remove left over -Wsynth example.
36019 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
36021         PR tree-optimization/56051
36022         * fold-const.c (fold_binary_loc): Don't fold
36023         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
36024         a narrowing conversion, or widening conversion from signed
36025         to unsigned.
36027 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
36029         PR rtl-optimization/56023
36030         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
36031         dependent on debug instruction.
36033 2013-01-21  Martin Jambor  <mjambor@suse.cz>
36035         PR middle-end/56022
36036         * function.c (allocate_struct_function): Call
36037         invoke_set_current_function_hook earlier.
36039 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
36041         * reload1.c (init_reload): Only initialize reload_obstack
36042         during the first call.
36044 2013-01-21  Marek Polacek  <polacek@redhat.com>
36046         * cfgloop.c (verify_loop_structure): Fix up grammar.
36048 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
36050         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
36051         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
36053 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
36055         PR target/56058
36056         * config/arm/marvell-pj4.md: Update copyright year.
36057         Fix up use of alu to alu_reg and simple_alu_imm.
36059 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
36061         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
36063 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
36065         PR target/55433
36066         * lra-constraints.c (curr_insn_transform): Don't reuse original
36067         insn for secondary memory move when memory mode should be different.
36069 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36071         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
36072         atomic_storedi_1): New patterns.
36074 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
36076         btver2 pipeline descriptions.
36077         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
36078         descriptions.
36079         * config/i386/i386.md (btver2_decode): New type attributes.
36080         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
36081         type attributes.
36082         * config/i386/btver2.md: New file describing btver2 pipelines.
36084 2013-01-19  Andrew Pinski  <apinski@cavium.com>
36086         PR tree-optimization/52631
36087         * tree-ssa-sccvn (visit_use): Before looking up the original
36088         statement, try looking up the simplified expression.
36090 2013-01-19  Anthony Green  <green@moxielogic.com>
36092         * config/moxie/moxie.c (moxie_expand_prologue): Set
36093         current_function_static_stack_size.
36095 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
36097         PR tree-optimization/56029
36098         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
36099         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
36101 2013-01-18  Sharad Singhai  <singhai@google.com>
36103         PR tree-optimization/55995
36104         * dumpfile.c (dump_loc): Print location only if available.
36105         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
36107 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
36109         PR target/55433
36110         * lra-constraints.c (curr_insn_transform): Reuse original insn for
36111         secondary memory move.
36112         (inherit_reload_reg): Use rclass instead of cl for
36113         check_secondary_memory_needed_p.
36115 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
36117         PR middle-end/56015
36118         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
36119         the case where writing real complex part of target modifies op1.
36121 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
36123         * config/aarch64/aarch64-simd.md
36124         (aarch64_vcond_internal<mode>): Handle unordered cases.
36125         * config/aarch64/iterators.md (v_cmp_result): New.
36127 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
36128             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
36130         * config/arm/marvell-pj4.md: New file.
36131         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
36132         * config/arm/arm.md (generic_sched): Add marvell_pj4.
36133         (generic_vfp): Likewise.
36134         * config/arm/arm-cores.def: Add marvell-pj4.
36135         * config/arm/arm-tune.md: Regenerate.
36136         * config/arm/arm-tables.opt: Regenerate.
36137         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
36138         * doc/invoke.texi: Document marvell-pj4.
36140 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
36142         * config/aarch64/arm_neon.h: Map scalar types to standard types.
36144 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
36146         PR debug/54114
36147         PR debug/54402
36148         PR debug/49888
36149         * var-tracking.c (negative_power_of_two_p): New.
36150         (global_get_addr_cache, local_get_addr_cache): New.
36151         (get_addr_from_global_cache, get_addr_from_local_cache): New.
36152         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
36153         heading comment.
36154         (vt_stack_offset_p): Remove.
36155         (vt_canon_true_dep): Always canonicalize loc's address.
36156         (clobber_overlapping_mems): Make sure we have a MEM.
36157         (local_get_addr_clear_given_value): New.
36158         (val_reset): Clear local cached entries.
36159         (compute_bb_dataflow): Create and release the local cache.
36160         Disable duplicate MEMs clobbering.
36161         (emit_notes_in_bb): Clobber MEMs likewise.
36162         (vt_emit_notes): Create and release the local cache.
36163         (vt_initialize, vt_finalize): Create and release the global
36164         cache, respectively.
36165         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
36167 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
36169         PR libmudflap/53359
36170         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
36171         not found in the symtab.
36173 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
36175         PR debug/56006
36176         PR rtl-optimization/55547
36177         PR rtl-optimization/53827
36178         PR debug/53671
36179         PR debug/49888
36180         * alias.c (offset_overlap_p): New, factored out of...
36181         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
36182         the conservative special case for symbolic constants.  Don't
36183         adjust zero sizes on alignment.
36185 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
36187         PR rtl-optimization/52573
36188         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
36189         REG_UNUSED for the same register.
36191 2013-01-17  Richard Biener  <rguenther@suse.de>
36192             Marek Polacek  <polacek@redhat.com>
36194         PR rtl-optimization/55833
36195         * loop-unswitch.c (unswitch_loops): Move loop verification...
36196         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
36197         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
36198         Set it to true when we're removing a loop from hierarchy tree in
36199         an irreducible region.
36200         (fix_bb_placements): Adjust caller.
36201         (fix_loop_placements): Likewise.
36203 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
36205         * config/avr/builtins.def (DEF_BUILTIN): Factor out
36206         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
36207         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
36208         Remove ID.  Adjust comments.
36209         * config/avr/avr-c.c (avr_builtin_name): Remove.
36210         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
36211         * config/avr/avr.c (avr_tolower): New static function.
36212         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
36213         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
36214         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
36215         default expansion.
36217 2013-01-17  Jan Hubicka  <jh@suse.cz>
36219         PR tree-optimization/55273
36220         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
36222 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
36224         PR target/55981
36225         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
36226         store through atomic_store<mode>_1.
36227         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
36229 2013-01-17  Martin Jambor  <mjambor@suse.cz>
36231         PR tree-optimizations/55264
36232         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
36233         for virtual methods.
36234         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
36235         virtual methods before inlining is over.
36236         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
36237         virtual functions.
36238         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
36239         non-virtual.
36241 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
36243         PR rtl-optimization/56005
36244         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
36245         pending reads for prefetch.
36247 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
36249         * config/aarch64/aarch64.md
36250         (*cstoresi_neg_uxtw): New pattern.
36251         (*cmovsi_insn_uxtw): New pattern.
36252         (*<optab>si3_uxtw): New pattern.
36253         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
36254         (*<optab>si3_insn_uxtw): New pattern.
36255         (*bswapsi2_uxtw): New pattern.
36257 2013-01-16  Richard Biener  <rguenther@suse.de>
36259         * tree-inline.c (tree_function_versioning): Remove set but
36260         never used variable.
36262 2013-01-16  Richard Biener  <rguenther@suse.de>
36264         PR tree-optimization/55964
36265         * tree-flow.h (rename_variables_in_loop): Remove.
36266         (rename_variables_in_bb): Likewise.
36267         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
36268         (copy_loop_before): Adjust and delete update-ssa status.
36269         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
36270         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
36271         (rename_variables_in_loop): Remove.
36272         (slpeel_update_phis_for_duplicate_loop): Likewise.
36273         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
36274         use available cfg machinery instead of duplicating it.
36275         Update PHI nodes and perform poor-mans SSA update here.
36276         (slpeel_tree_peel_loop_to_edge): Adjust.
36278 2013-01-16  Richard Biener  <rguenther@suse.de>
36280         PR tree-optimization/54767
36281         PR tree-optimization/53465
36282         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
36283         (vrp_visit_phi_node): For PHI arguments coming via backedges
36284         drop all symbolical range information.
36285         (execute_vrp): Compute backedges.
36287 2013-01-16  Richard Biener  <rguenther@suse.de>
36289         * doc/install.texi: Update CLooG and ISL requirements to
36290         0.18.0 and 0.11.1.
36292 2013-01-16  Christian Bruel  <christian.bruel@st.com>
36294         PR target/55301
36295         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
36296         (broken_move): Handle UNSPECV_SP_SWITCH_B.
36297         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
36299 2013-01-16  DJ Delorie  <dj@redhat.com>
36301         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
36302         (UNSPECV_SP_SWITCH_E): New.
36303         (sp_switch_1): Change to an unspec.
36304         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
36305         replace $r15.
36307 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
36309         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
36310         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
36311         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
36312         (expand_mem_thread_fence): Ditto.
36313         (expand_mem_signal_fence): Ditto.
36314         (expand_atomic_load): Ditto.
36315         (expand_atomic_store): Ditto.
36317 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
36319         PR rtl-optimization/55547
36320         PR rtl-optimization/53827
36321         PR debug/53671
36322         PR debug/49888
36323         * alias.c (memrefs_conflict_p): Set sizes to negative after
36324         AND adjustments.
36326 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
36328         PR target/55940
36329         * function.c (thread_prologue_and_epilogue_insns): Always
36330         add crtl->drap_reg to set_up_by_prologue.set, even if
36331         stack_realign_drap is false.
36333 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
36335         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
36336         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
36337         *call): Fix indention.
36339 2013-01-15  Tom de Vries  <tom@codesourcery.com>
36341         PR target/55876
36342         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
36343         Update comment.
36345 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
36347         PR rtl-optimization/55153
36348         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
36350 2013-01-15  Martin Jambor  <mjambor@suse.cz>
36352         PR tree-optimization/55920
36353         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
36354         accesses as grp_to_be_debug_replaced.
36356 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
36358         PR tree-optimization/55920
36359         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
36360         there is non-useless type conversion needed from debug rhs to lhs,
36361         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
36363 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
36364             Mikael Pettersson  <mikpe@it.uu.se>
36366         PR target/43961
36367         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
36368         Thumb.
36369         (ASM_OUTPUT_CASE_LABEL): Remove.
36370         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
36371         * final.c (shorten_branches): Update alignment of labels before
36372         jump tables if CASE_VECTOR_SHORTEN_MODE.
36374 2013-01-15  Richard Biener  <rguenther@suse.de>
36376         PR bootstrap/55961
36377         * system.h: Do not include gmp.h for building host tools.
36379 2013-01-15  Richard Biener  <rguenther@suse.de>
36381         PR middle-end/55882
36382         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
36383         account for bitpos when computing alignment.
36385 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
36387         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
36388         (ix86_target_macros_internal): Likewise.
36390         * config/i386/i386.c (m_CORE2I7): Removed.
36391         (m_CORE_HASWELL): New macro.
36392         (m_CORE_ALL): Likewise.
36393         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
36394         (initial_ix86_arch_features): Likewise.
36395         (processor_target_table): Initializations for Core avx2.
36396         (cpu_names): New names "core-avx2".
36397         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
36398         PROCESSOR_CORE_HASWELL.
36399         (ix86_issue_rate): New case.
36400         (ia32_multipass_dfa_lookahead): Likewise.
36401         (ix86_sched_init_global): Likewise.
36403         * config/i386/i386.h (TARGET_HASWELL): New macro.
36404         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
36405         (processor_type): New PROCESSOR_HASWELL.
36407 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
36409         PR tree-optimization/55955
36410         * tree-vect-loop.c (vectorizable_reduction): Give up early on
36411         *SHIFT_EXPR and *ROTATE_EXPR codes.
36413         PR tree-optimization/48766
36414         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
36415         -ftrapv disable -fwrapv.
36417 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
36419         PR target/55974
36420         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
36421         etc. to 1 and not to __flash.
36422         Use LL suffix for __INT24_MAX__ with -mint8.
36423         Use ULL suffix for __UINT24_MAX__ with -mint8.
36425 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
36427         * config/avr/avr-arch.h
36428         (struct base_arch_s): Use typedef avr_arch_t instead.
36429         (struct arch_info_s): Use typedef avr_arch_info_t instead.
36430         (struct mcu_type_s): Use typedef avr_mcu_t instead.
36431         * config/avr/avr.c: Same.
36432         * config/avr/avr-devices.c: Same.
36433         * config/avr/driver-avr.c: Same.
36434         * config/avr/gen-avr-mmcu-texi.c: Same.
36435         * config/avr/avr-mcus.def: Adjust comment.
36437 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
36439         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
36440         * config/aarch64/iterators.md (VALLDI): New.
36442 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
36443             Andi Kleen  <ak@linux.intel.com>
36445         PR target/55948
36446         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
36447         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
36448         memmodel flag.
36450 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
36452         * config/avr/avr-stdint.h: Remove trailing blanks.
36453         * config/avr/avr-log.h: Same.
36454         * config/avr/avr-arch.h: Same.
36455         * config/avr/avr-devices.c: Same.
36456         * config/avr/avr-dimode.md: Same.
36457         * config/avr/predicates.md: Same.
36458         * config/avr/avr-c.c: Same.  And fix typo.
36460         * config/avr/avr-protos.h: Same.  And:
36461         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
36462         (init_cumulative_args): Rename to avr_init_cumulative_args.
36463         (expand_prologue): Rename to avr_expand_prologue.
36464         (expand_epilogue): Rename to avr_expand_epilogue.
36465         (adjust_insn_length): Rename to avr_adjust_insn_length.
36466         (notice_update_cc): Rename to avr_notice_update_cc.
36467         (final_prescan_insn): Rename to avr_final_prescan_insn.
36468         * config/avr/avr.c: Same.
36469         * config/avr/avr.h: Same.
36470         * config/avr/avr.md: Remove trailing blanks.
36471         (prologue): Use avr_expand_prologue.
36472         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
36474 2013-01-14  Richard Biener  <rguenther@suse.de>
36476         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
36477         verify_location, collect_subblocks): New functions.
36478         (verify_gimple_in_cfg): Verify that locations only reference
36479         BLOCKs in the functions BLOCK tree.
36481 2013-01-14  Richard Biener  <rguenther@suse.de>
36483         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
36484         PHI argument.
36485         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
36486         unshare reference.
36487         (insert_out_of_ssa_copy_on_edge): Likewise.
36488         (rewrite_close_phi_out_of_ssa): Likewise.
36489         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
36490         debug expressions.
36491         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
36492         propagated constants.
36493         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
36494         can not be shared.
36496 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
36498         * config/avr/avr-modes.def: Add GPL copyright notice.
36500 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
36502         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
36503         MEMMODEL_MASK to determine memory model.
36504         (atomic_store<mode>): Ditto from operands[2].
36505         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
36507 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
36509         PR fortran/55935
36510         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
36511         (fold_gimple_assign): Don't call unshare_expr here.
36512         (fold_ctor_reference): Call unshare_expr.
36514 2013-01-13  Terry Guo  <terry.guo@arm.com>
36516         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
36517         * doc/fragments.texi: Document MULTILIB_REUSE.
36518         * gcc.c (multilib_reuse): New internal spec.
36519         (set_multilib_dir): Also search multilib from multilib_reuse.
36520         * genmultilib (tmpmultilib3): Refactor code.
36521         (tmpmultilib4): Ditto.
36522         (multilib_reuse): New multilib argument.
36524 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
36526         * Makefile.in: Update copyright.
36528 2013-01-12  Tom de Vries  <tom@codesourcery.com>
36530         PR middle-end/55890
36531         * calls.c (expand_call): Check if arg_nr is valid.
36533 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
36535         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
36536         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
36537         documentation.  Add missing '__' in front of
36538         __builtin_ia32_packssdw256.
36540 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36542         PR target/55719
36543         * config/s390/s390.c (s390_preferred_reload_class): Do not return
36544         NO_REGS for larl operands.
36545         (s390_reload_larl_operand): Use s390_load_address instead of
36546         emit_move_insn.
36548 2013-01-11  Richard Biener  <rguenther@suse.de>
36550         * tree-cfg.c (verify_node_sharing_1): Split out from ...
36551         (verify_node_sharing): ... here.
36552         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
36554 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
36556         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
36557         Substitute TREECHECKING.
36558         * configure: Regenerate.
36559         * Makefile.in (TREECHECKING): New.
36561 2013-01-11  Richard Guenther  <rguenther@suse.de>
36563         PR tree-optimization/44061
36564         * tree-vrp.c (extract_range_basic): Compute zero as
36565         value-range for __builtin_constant_p of function parameters.
36567 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
36569         Update copyright years.
36571 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
36573         PR rtl-optimization/55672
36574         * lra-eliminations.c (mark_not_eliminable): Permit addition with
36575         const to be eliminable.
36577 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
36579         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
36580         * configure: Regenerate.
36582 2013-01-10  Richard Biener  <rguenther@suse.de>
36584         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
36586 2013-01-10  Richard Biener  <rguenther@suse.de>
36588         PR bootstrap/55792
36589         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
36590         locations for virtual PHI arguments.
36591         (rewrite_update_phi_arguments): Likewise.
36593 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
36595         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
36596         on to assembler.
36598 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
36600         PR tree-optimization/55921
36601         * tree-complex.c (expand_complex_asm): New function.
36602         (expand_complex_operations_1): Call it for GIMPLE_ASM.
36604 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36606         PR target/55718
36607         * config/s390/s390.c (s390_symref_operand_p)
36608         (s390_loadrelative_operand_p): Merge the two functions.
36609         (s390_check_qrst_address, print_operand_address): Add parameters
36610         to s390_loadrelative_operand_p invokation.
36611         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
36612         (s390_reload_larl_operand, s390_secondary_reload): Use
36613         s390_loadrelative_operand_p instead of s390_symref_operand_p.
36614         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
36616 2013-01-09  Mike Stump  <mikestump@comcast.net>
36618         * dse.c (record_store): Remove unnecessary assert.
36620 2013-01-09  Jan Hubicka  <jh@suse.cz>
36622         PR tree-optimization/55569
36623         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
36624         * cfgloop.h (scale_loop_profile): Likewise.
36626 2013-01-09  Jan Hubicka  <jh@suse.cz>
36628         PR lto/45375
36629         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
36630         functions.
36631         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
36633 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
36635         PR middle-end/55114
36636         * expr.h (maybe_emit_group_store): Declare.
36637         * expr.c (maybe_emit_group_store): New function.
36638         * builtins.c (expand_builtin_int_roundingfn): Call it.
36639         (expand_builtin_int_roundingfn_2): Likewise.
36641 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
36643         PR rtl-optimization/55829
36644         * lra-constraints.c (match_reload): Add code for absent output.
36645         (curr_insn_transform): Add code for reloads of matched inputs
36646         without output.
36648 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
36650         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
36651         attribute of movddup insn to DF.
36652         (*vec_interleave_lowv2df): Ditto.
36653         (vec_dupv2df): Ditto.
36655 2013-01-09  Jan Hubicka  <jh@suse.cz>
36657         PR tree-optimiation/55875
36658         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
36659         EVERY_ITERATION parameter.
36660         (number_of_iterations_exit): Check if exit is executed every iteration.
36661         (idx_infer_loop_bounds): Similarly here.
36662         (n_of_executions_at_most): Simplify
36663         to only test for cases where statement is dominated by the
36664         particular bound; handle correctly the "postdominance" test.
36665         (scev_probably_wraps_p): Use max loop iterations info
36666         as a global bound first.
36668 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
36669             Nick Clifton  <nickc@redhat.com>
36671         * config/v850/v850.md (cbranchsf4): New pattern.
36672         (cstoresf4): New pattern.
36673         (cbranchdf4): New pattern.
36674         (cstoredf4): New pattern.
36675         (movsicc): Disallow floating point comparisons.
36676         (cmpsf_le_insn): Fix order of operators.
36677         (cmpsf_lt_insn): Likewise.
36678         (cmpsf_eq_insn): Likewise.
36679         (cmpdf_le_insn): Likewise.
36680         (cmpdf_lt_insn): Likewise.
36681         (cmpdf_eq_insn): Likewise.
36682         (cmpsf_ge_insn): Use LE comparison.
36683         (cmpdf_ge_insn): Likewise.
36684         (cmpsf_gt_insn): Use LT comparison.
36685         (cmpdf_gt_insn): Likewise.
36686         (cmpsf_ne_insn): Delete pattern.
36687         (cmpdf_ne_insn): Delete pattern.
36688         * config/v850/v850.c (v850_gen_float_compare): Use
36689         gen_cmpdf_eq_insn for NE comparison.
36690         (v850_float_z_comparison_operator)
36691         (v850_float_nz_comparison_operator): Move from here ...
36692         * config/v850/predicates.md: ... to here.  Move GT and GE
36693         comparisons into v850_float_z_comparison_operator.
36694         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
36695         Delete prototype.
36696         (v850_float_nz_comparison_operator): Likewise.
36698 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36700         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
36701         with calls to gen_insvsi/gen_insvdi.
36703 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
36705         * config/i386/i386.c (initial_ix86_tune_features): Set up
36706         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
36708 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
36709             Jakub Jelinek  <jakub@redhat.com>
36711         PR tree-optimization/48189
36712         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
36713         If nitercst is 0, don't predict the exit edge.
36715 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
36717         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
36718         in asm_fprintf with reg_names.
36719         (aarch64_print_operand_address): Likewise.
36720         (aarch64_return_addr): Likewise.
36721         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
36723 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36725         * config/pa/pa.h (VAL_U6_BITS_P): Define.
36726         (INT_U6_BITS): Likewise.
36727         * config/pa/predicates.md (uint6_operand): New predicate.
36728         (shift5_operand, shift6_operand): Likewise.
36729         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
36730         arith32_operand.
36731         (lshrdi3): Use shift6_operand.
36732         (shrpsi4, shrpdi4): New insn patterns.
36733         (extzv): Delete expander.
36734         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
36735         predicates in unamed zero extract patterns.  Tighten common constraint.
36736         (extv): Delete expander.
36737         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
36738         predicates in unamed sign extract patterns.  Tighten common constraint.
36739         (insv): Delete expander.
36740         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
36741         predicates in unamed insert patterns.  Tighten common constraint.
36742         Change uint32_operand predicate to uint6_operand predicate in unamed
36743         DImode pattern to insert constant values of type 1...1xxxx.
36745 2013-01-04  Jan Hubicka  <jh@suse.cz>
36747         PR tree-optimization/55823
36748         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
36749         issue.
36751 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
36752             Uros Bizjak  <ubizjak@gmail.com>
36754         PR rtl-optimization/55845
36755         * df-problems.c (can_move_insns_across): Stop scanning at
36756         volatile_insn_p source instruction or give up if
36757         across_from .. across_to range contains any volatile_insn_p
36758         instructions.
36760 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
36762         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
36763         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
36764         Declare.
36765         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
36766         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
36768 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
36770         PR fortran/55341
36771         * asan.c (asan_clear_shadow): New function.
36772         (asan_emit_stack_protection): Use it.
36774 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
36776         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
36777         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
36778         with tab instead of space.
36780 2013-01-08  Nick Clifton  <nickc@redhat.com>
36782         * config/rl78/rl78.c (rl78_expand_prologue): Always select
36783         register bank 0 at the start of an interrupt handler.
36784         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
36785         MDBH registers.
36787 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
36789         * config/aarch64/aarch64-simd.md
36790         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
36791         (aarch64_simd_bsl): Likewise.
36792         (aarch64_vcond_internal<mode>): Likewise.
36793         (vcond<mode><mode>): Likewise.
36794         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
36795         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
36797 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
36799         * config/aarch64/aarch64-builtins.c
36800         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
36802 2013-01-08  Martin Jambor  <mjambor@suse.cz>
36804         PR debug/55579
36805         * tree-sra.c (analyze_access_subtree): Return true also after
36806         potentially creating a debug-only replacement.
36808 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
36810         PR middle-end/55890
36811         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
36813         PR tree-optimization/54120
36814         * tree-vrp.c (range_fits_type_p): Don't allow
36815         src_precision < precision from signed vr to unsigned_p
36816         if vr->min or vr->max is negative.
36817         (simplify_float_conversion_using_ranges): Test can_float_p
36818         against CODE_FOR_nothing.
36820 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
36821             Richard Biener  <rguenther@suse.de>
36823         PR middle-end/55851
36824         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
36825         types instead of just INTEGER_TYPE types.
36827 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
36829         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
36830         TF_SIZE): Define.
36832 2013-01-07  Steve Ellcey  <sellcey@mips.com>
36834         PR target/42661
36835         * config/mips/mips.opt: Change mad to mmad to match documentation.
36837 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
36839         PR target/55897
36840         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
36841         .progmemx.data now.
36843 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
36845         PR target/55897
36846         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
36847         (avr_addrspace_t): Add .section_name field.
36848         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
36849         array size.
36850         (avr_addrspace): Same.  Initialize .section_name.  Remove last
36851         NULL entry.  Put __memx into .progmemx.data.
36852         (progmem_section_prefix): Remove.
36853         (avr_asm_init_sections): No need to initialize progmem_section.
36854         (avr_asm_named_section): Use avr_addrspace[].section_name to get
36855         section name prefix.
36856         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
36857         retrieve the progmem section.
36858         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
36859         boundary to run over avr_addrspace[].
36860         (avr_register_target_pragmas): Ditto.
36862 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
36864         * varasm.c (output_constant_def_contents): For asan_protect_global
36865         protected strings, adjust DECL_ALIGN if needed, before testing for
36866         anchored symbols.
36867         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
36868         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
36869         normal decls.
36870         (output_object_block): For asan protected decls, emit asan padding
36871         after their contents.
36872         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
36873         (asan_finish_file): Test it here instead.
36875 2013-01-07  Nick Clifton  <nickc@redhat.com>
36876             Matthias Klose  <doko@debian.org>
36877             Doug Kwan  <dougkwan@google.com>
36878             H.J. Lu  <hongjiu.lu@intel.com>
36880         PR driver/55470
36881         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
36883         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
36885         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
36887         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
36889         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
36891 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
36893         PR target/54461
36894         * doc/install.texi (Cross-Compiler-Specific Options): Document
36895         --with-avrlibc.
36897 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
36899         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
36900         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
36901         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
36902         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
36903         vqmovun_high_s64): Fix source operand number and update copyright.
36905 2013-01-07  Richard Biener  <rguenther@suse.de>
36907         PR middle-end/55890
36908         * gimple.h (gimple_call_builtin_p): New overload.
36909         * gimple.c (validate_call): New function.
36910         (gimple_call_builtin_p): Likewise.
36911         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
36912         Use gimple_call_builtin_p.
36913         (find_func_clobbers): Likewise.
36914         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
36915         (strlen_optimize_stmt): Likewise.
36917 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
36919         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
36920         (vld1q_dup_*): Likewise.
36921         (vld1_*): Likewise.
36922         (vld1q_*): Likewise.
36923         (vld1_lane_*): Likewise.
36924         (vld1q_lane_*): Likewise.
36926 2013-01-07  Richard Biener  <rguenther@suse.de>
36928         * lto-streamer.h (LTO_minor_version): Bump to 2.
36930 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
36932         * config/aarch64/aarch64-protos.h
36933         (aarch64_const_double_zero_rtx_p): Rename to...
36934         (aarch64_float_const_zero_rtx_p): ...this.
36935         (aarch64_float_const_representable_p): New.
36936         (aarch64_output_simd_mov_immediate): Likewise.
36937         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
36938         move immediate case.
36939         * config/aarch64/aarch64.c
36940         (aarch64_const_double_zero_rtx_p): Rename to...
36941         (aarch64_float_const_zero_rtx_p): ...this.
36942         (aarch64_print_operand): Allow printing of new constants.
36943         (aarch64_valid_floating_const): New.
36944         (aarch64_legitimate_constant_p): Check for valid floating-point
36945         constants.
36946         (aarch64_simd_valid_immediate): Likewise.
36947         (aarch64_vect_float_const_representable_p): New.
36948         (aarch64_float_const_representable_p): Likewise.
36949         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
36950         (aarch64_output_simd_mov_immediate): New.
36951         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
36952         (*movdf_aarch64): Likewise.
36953         * config/aarch64/constraints.md (Ufc): New.
36954         (Y): call aarch64_float_const_zero_rtx.
36955         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
36957 2013-01-07  Richard Biener  <rguenther@suse.de>
36959         PR tree-optimization/55888
36960         PR tree-optimization/55862
36961         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
36962         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
36963         not if it is contained therein.
36965 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
36967         * config/avr/t-avr: Typo.
36969 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
36971         PR55243
36972         * config/avr/t-avr: Don't automatically rebuild
36973         $(srcdir)/config/avr/t-multilib
36974         $(srcdir)/config/avr/avr-tables.opt
36975         $(srcdir)/doc/avr-mmcu.texi
36976         (avr-mcus): New phony target to build them on request.
36977         (s-avr-mlib, s-avr-mmcu-texi): Remove.
36978         * avr/avr-mcus.def: Adjust comments.
36980 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
36982         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
36984 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
36986         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
36988 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
36990         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
36992 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
36994         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
36995         to generate profiling.
36996         * config/rs6000/aix64.h (LIB_SPEC): Same.
36998 2013-01-04  Andrew Pinski  <apinski@cavium.com>
37000         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
37001         New function.
37002         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
37004 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
37006         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
37007         unconditionally.
37008         (ix86_expand_move): Ditto.
37009         (ix86_zero_extend_to_Pmode): Ditto.
37010         (ix86_expand_call): Ditto.
37011         (ix86_expand_special_args_builtin): Ditto.
37012         (ix86_expand_builtin): Ditto.
37014 2013-01-04  Richard Biener  <rguenther@suse.de>
37016         PR tree-optimization/55862
37017         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
37018         translating them through PHI nodes.
37020 2013-01-04  Martin Jambor  <mjambor@suse.cz>
37022         PR tree-optimization/55755
37023         * tree-sra.c (sra_modify_assign): Do not check that an access has no
37024         children when trying to avoid producing a VIEW_CONVERT_EXPR.
37026 2013-01-04  Marek Polacek  <polacek@redhat.com>
37028         PR middle-end/55859
37029         * opts.c (default_options_optimization): Clarify error message.
37031 2013-01-04  Richard Biener  <rguenther@suse.de>
37033         PR middle-end/55863
37034         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
37035         reassociation.
37037 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
37039         PR target/53789
37040         * config/pa/pa.md (movsi): Revert previous change.
37041         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
37042         references.
37044 2013-01-03  Richard Henderson  <rth@redhat.com>
37046         * config/i386/i386.c (ix86_expand_move): Always assign to op1
37047         after eliminating TLS symbols.
37049 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
37051         PR bootstrap/50167
37052         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
37053         * graphite-poly.c (debug_gmp_value): Likewise.
37055 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
37057         PR target/55712
37058         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
37059         selected code model, define __code_mode_small__, __code_model_medium__,
37060         __code_model_large__, __code_model_32__ or __code_model_kernel__.
37061         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
37062         xchg temporary register with %k.  Declare temporary register as
37063         early clobbered.
37064         [__x86_64__]: For medium and large code models, preserve %rbx register.
37066 2013-01-03  Richard Biener  <rguenther@suse.de>
37068         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
37069         (dump_subscript): Adjust.
37070         (finalize_ddr_dependent): Do not dump redundant info.
37071         (analyze_siv_subscript): Adjust.
37072         (subscript_dependence_tester): Likewise.
37073         (compute_affine_dependence): Likewise.
37075 2013-01-03  Richard Biener  <rguenther@suse.de>
37077         Revert
37078         2013-01-03  Richard Biener  <rguenther@suse.de>
37080         PR tree-optimization/55857
37081         * tree-vect-stmts.c (vectorizable_load): Do not setup
37082         re-alignment for invariant loads.
37084         2013-01-02  Richard Biener  <rguenther@suse.de>
37086         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
37087         invariant load do not generate a vector load from the scalar location.
37089 2013-01-03  Richard Biener  <rguenther@suse.de>
37091         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
37092         for not vectorizing.
37093         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
37094         not build INDIRECT_REFs, call get_name once only.
37095         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
37096         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
37098 2013-01-03  Richard Biener  <rguenther@suse.de>
37100         PR tree-optimization/55857
37101         * tree-vect-stmts.c (vectorizable_load): Do not setup
37102         re-alignment for invariant loads.
37104 2013-01-03  Richard Biener  <rguenther@suse.de>
37106         PR lto/55848
37107         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
37108         prefer a built-in decl.
37110 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
37112         * gcc.c (process_command): Update copyright notice dates.
37113         * gcov.c (print_version): Likewise.
37114         * gcov-dump.c (print_version): Likewise.
37116         PR rtl-optimization/55838
37117         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
37118         iv0.step, iv1.step and step.
37120 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
37121             Marc Glisse  <marc.glisse@inria.fr>
37123         PR tree-optimization/55832
37124         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
37125         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
37126         integer_{one,zero}_node.
37128 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
37130         PR debug/54402
37131         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
37132         * var-tracking.c (reverse_op): Don't add reverse ops to
37133         VALUEs that have already
37134         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
37136 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
37138         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
37140 2013-01-02  Teresa Johnson  <tejohnson@google.com>
37142         * dumpfile.c (dump_loc): Print filename with location.
37143         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
37144         new location_t parameter to emit complete unroll message with
37145         new dump framework.
37146         (canonicalize_loop_induction_variables): Compute loops location
37147         and pass to try_unroll_loop_completely.
37148         * loop-unroll.c (report_unroll_peel): New function.
37149         (peel_loops_completely): Use new dump format with location
37150         for main dumpfile message, and invoke report_unroll_peel on success.
37151         (decide_unrolling_and_peeling): Ditto.
37152         (decide_peel_once_rolling): Remove old dumpfile message subsumed
37153         by report_unroll_peel.
37154         (decide_peel_completely): Ditto.
37155         (decide_unroll_constant_iterations): Ditto.
37156         (decide_unroll_runtime_iterations): Ditto.
37157         (decide_peel_simple): Ditto.
37158         (decide_unroll_stupid): Ditto.
37159         * cfgloop.c (get_loop_location): New function.
37160         * cfgloop.h (get_loop_location): Declare.
37162 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
37164         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
37165         NULL.
37167 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
37169         PR middle-end/55198
37170         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
37171         BLKmode objects when EXPAND_MEMORY is specified.
37173 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
37175         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
37176         in loop predicate.
37177         (fold_builtin_cpu): Do not share cpu model decls across statements.
37179 2013-01-02  Jason Merrill  <jason@redhat.com>
37181         PR c++/55804
37182         * tree.c (build_array_type_1): Revert earlier change.
37184 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
37186         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
37187         "cortex-a57".
37188         * config/aarch64/aarch64-tune.md: Re-generate.
37190 2013-01-02  Richard Biener  <rguenther@suse.de>
37192         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
37193         invariant load do not generate a vector load from the scalar location.
37195 2013-01-02  Richard Biener  <rguenther@suse.de>
37197         PR bootstrap/55784
37198         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
37199         * configure: Regenerate.
37201 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
37203         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
37204         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
37205         (expand_builtin_int_roundingfn_2): Keep the original target around
37206         for the fallback case.
37208 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
37210         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
37211         to be clear for sign changes.
37213 2013-01-01  Jan Hubicka  <jh@suse.cz>
37215         * ipa-inline-analysis.c: Fix formatting.
37217 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
37219         PR tree-optimization/55831
37220         * tree-vect-loop.c (get_initial_def_for_induction): Use
37221         gsi_after_labels instead of gsi_start_bb.
37223 Copyright (C) 2013 Free Software Foundation, Inc.
37225 Copying and distribution of this file, with or without modification,
37226 are permitted in any medium without royalty provided the copyright
37227 notice and this notice are preserved.