re PR target/57744 (Power8 support has problems with quad word atomic instructions)
[official-gcc.git] / gcc / ChangeLog
blob6c86c2597ed261b1724ce7545606fd5d46dec317
1 2013-06-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
3         PR target/57744
4         * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
5         to tie with any other modes.  Eliminate Altivec vector mode tests,
6         since these are a subset of ALTIVEC or VSX vector modes.  Simplify
7         code, to return 0 if testing MODE2 for a condition, if we've
8         already tested MODE1 for the same condition.
10 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12         * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
13         layout.
15 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
18         Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
20 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22         * config/aarch64/aarch64-protos.h
23         aarch64_classify_symbol_expression): Define.
24         (aarch64_symbolic_constant_p): Remove.
25         * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
26         static.  Fix line length and white space.
27         (aarch64_symbolic_constant_p): Remove.
28         * config/aarch64/predicates.md (aarch64_valid_symref):
29         Use aarch64_classify_symbol_expression.
31 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33         * config/arm/constraints.md (Ts): New constraint.
34         * config/arm/arm.md (arm_movqi_insn): Add alternatives for
35         16-bit encodings.
36         (compare_scc): Use "Ts" constraint for operand 0.
37         (ior_scc_scc): Likewise.
38         (and_scc_scc): Likewise.
39         (and_scc_scc_nodom): Likewise.
40         (ior_scc_scc_cmp): Likewise for operand 7.
41         (and_scc_scc_cmp): Likewise.
42         * config/arm/thumb2.md (thumb2_movsi_insn):
43         Add alternatives for 16-bit encodings.
44         (thumb2_movhi_insn): Likewise.
45         (thumb2_movsicc_insn): Likewise.
46         (thumb2_and_scc): Take 'and' outside cond_exec.  Use "Ts" constraint.
47         (thumb2_negscc): Use "Ts" constraint.
48         Move mvn instruction outside cond_exec block.
49         * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
50         for 16-bit encodings.
52 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
54         * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
55         encoding.
56         (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
57         (mulsi3subsi): Likewise.
58         (mulsidi3adddi): Likewise.
59         (mulsidi3_v6): Likewise.
60         (umulsidi3_v6): Likewise.
61         (umulsidi3adddi_v6): Likewise.
62         (smulsi3_highpart_v6): Likewise.
63         (umulsi3_highpart_v6): Likewise.
64         (mulhisi3tb): Likewise.
65         (mulhisi3bt): Likewise.
66         (mulhisi3tt): Likewise.
67         (maddhisi4): Likewise.
68         (maddhisi4tb): Likewise.
69         (maddhisi4tt): Likewise.
70         (maddhidi4): Likewise.
71         (maddhidi4tb): Likewise.
72         (maddhidi4tt): Likewise.
73         (zeroextractsi_compare0_scratch): Likewise.
74         (insv_zero): Likewise.
75         (insv_t2): Likewise.
76         (anddi_notzesidi_di): Likewise.
77         (anddi_notsesidi_di): Likewise.
78         (andsi_notsi_si): Likewise.
79         (iordi_zesidi_di): Likewise.
80         (xordi_zesidi_di): Likewise.
81         (andsi_iorsi3_notsi): Likewise.
82         (smax_0): Likewise.
83         (smax_m1): Likewise.
84         (smin_0): Likewise.
85         (not_shiftsi): Likewise.
86         (unaligned_loadsi): Likewise.
87         (unaligned_loadhis): Likewise.
88         (unaligned_loadhiu): Likewise.
89         (unaligned_storesi): Likewise.
90         (unaligned_storehi): Likewise.
91         (extv_reg): Likewise.
92         (extzv_t2): Likewise.
93         (divsi3): Likewise.
94         (udivsi3): Likewise.
95         (arm_zero_extendhisi2addsi): Likewise.
96         (arm_zero_extendqisi2addsi): Likewise.
97         (compareqi_eq0): Likewise.
98         (arm_extendhisi2_v6): Likewise.
99         (arm_extendqisi2addsi): Likewise.
100         (arm_movt): Likewise.
101         (thumb2_ldrd): Likewise.
102         (thumb2_ldrd_base): Likewise.
103         (thumb2_ldrd_base_neg): Likewise.
104         (thumb2_strd): Likewise.
105         (thumb2_strd_base): Likewise.
106         (thumb2_strd_base_neg): Likewise.
107         (arm_negsi2): Add alternative for 16-bit encoding.
108         (arm_one_cmplsi2): Likewise.
110 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
112         * config/arm/predicates.md (arm_cond_move_operator): New predicate.
113         * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
114         (movdfcc): Likewise.
115         * config/arm/vfp.md (*thumb2_movsf_vfp):
116         Disable predication for arm_restrict_it.
117         (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
118         (*thumb2_movdfcc_vfp): Likewise.
119         (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
120         *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
121         *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
122         *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
123         *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
124         *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
125         *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
126         *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
127         *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
128         *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
129         *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
130         *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
131         Disable predication for arm_restrict_it.
133 2013-06-28  Kirill Yukhin  <kirill.yukhin@intel.com>
135         * config/i386/bmiintrin.h (_bextr_u32): New.
136         (_bextr_u64): Ditto.
138 2013-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
140         * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
141         (mips64r5900el-*-elf*): Include mips/n32-elf.h.
142         * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
143         (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
144         * config/mips/n32-elf.h: ...this new file.
146 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
148         PR target/57224
149         * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
150         IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
152 2013-06-27  Catherine Moore <clm@codesourcery.com>
154         * config/mips/mips-tables.opt: Regenerate.
155         * config/mips/mips-cpus.def: Add m14ke and m14kec.
156         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies
157         -mdspr2.
158         * doc/invoke.texi: Add -m14kc.
160 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
162         PR target/57623
163         * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
164         constraints of operand 1 and 2.
166         PR target/57623
167         * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
168         to match RTL canonicalization.  Swap predicates and
169         constraints of operand 1 and 2.
171 2013-06-27  Vladimir Makarov  <vmakarov@redhat.com>
173         * lra-constraints.c (inherit_in_ebb): Process static hard regs
174         too.  Process OP_INOUT regs for splitting too.
176 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
178         * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
179         decl before the loop, initialize to NULL.
180         (vectorizable_load): Initialize ptr_incr to NULL.
182 2013-06-27  Martin Jambor  <mjambor@suse.cz>
184         PR lto/57208
185         * ipa-ref.h (ipa_maybe_record_reference): Declare.
186         * ipa-ref.c (ipa_maybe_record_reference): New function.
187         * cgraphclones.c (cgraph_create_virtual_clone): Use it.
188         * ipa-cp.c (create_specialized_node): Record potential references from
189         aggvals.
190         * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
192 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
194         * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
195         parameter 'mode' of type 'enum machine_mode mode'; change to pass
196         'mode' to force_reg.
197         (aarch64_add_offset): Update calls to aarch64_force_temporary.
198         (aarch64_expand_mov_immediate): Likewise.
200 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
202         * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
203         'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
205 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
207         * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
208         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
209         (struct machine_function): Add tbegin_p.
210         (s390_canonicalize_comparison): Fold CC mode compares to
211         conditional jump if possible.
212         (s390_emit_jump): Return the emitted jump.
213         (s390_branch_condition_mask, s390_branch_condition_mnemonic):
214         Handle CCRAWmode compares.
215         (s390_option_override): Default to -mhtm if available.
216         (s390_reg_clobbered_rtx): Handle floating point regs as well.
217         (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
218         FPRs instead of df_regs_ever_live_p.
219         (s390_optimize_nonescaping_tx): New function.
220         (s390_init_frame_layout): Extend clobbered_regs array to cover
221         FPRs as well.
222         (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
223         (s390_expand_tbegin): New function.
224         (enum s390_builtin): New enum definition.
225         (code_for_builtin): New array definition.
226         (s390_init_builtins): New function.
227         (s390_expand_builtin): New function.
228         (TARGET_INIT_BUILTINS): Define.
229         (TARGET_EXPAND_BUILTIN): Define.
230         * common/config/s390/s390-common.c (processor_flags_table): Add
231         PF_TX.
232         * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
233         (s390_alc_comparison): Likewise.
234         * config/s390/s390-modes.def: Add CCRAWmode.
235         * config/s390/s390.h (processor_flags): Add PF_TX.
236         (TARGET_CPU_HTM): Define macro.
237         (TARGET_HTM): Define macro.
238         (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
239         * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
240         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
241         (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
242         (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum
243         values.
244         (TBEGIN_MASK, TBEGINC_MASK): New constants.
245         ("*cc_to_int"): Move up.
246         ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
247         constants other than 0.
248         ("*ccraw_to_int"): New insn and splitter definition.
249         ("tbegin", "tbegin_nofloat", "tbegin_retry")
250         ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
251         ("tx_assist"): New expander.
252         ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
253         ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
254         * config/s390/s390.opt: Add -mhtm option.
255         * config/s390/s390-protos.h (s390_emit_jump): Add return type.
256         * config/s390/htmxlintrin.h: New file.
257         * config/s390/htmintrin.h: New file.
258         * config/s390/s390intrin.h: New file.
259         * doc/extend.texi: Document htm builtins.
260         * config.gcc: Add the new header files to extra_headers.
262 2013-06-26  Thomas Schwinge  <thomas@codesourcery.com>
264         * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
265         (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET):
266         Undefine.
268 2013-06-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
269             Pat Haugen <pthaugen@us.ibm.com>
270             Peter Bergner <bergner@vnet.ibm.com>
272         * config/rs6000/power8.md: New.
273         * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
274         setting for power8 entry.
275         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
276         * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
277         test for Power4/Power5 only.
278         (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
279         support.
280         (force_new_group): Adjust comment.
281         * config/rs6000/rs6000.md: Include power8.md.
283 2013-06-26  Greta Yorsh  <Greta.Yorsh@arm.com>
285         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
286         * config/arm/arm-protos.h (arm_max_conditional_execute): New
287         declaration.
288         (tune_params): Update comment.
289         * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
290         (arm_max_conditional_execute): New function.
291         (thumb2_final_prescan_insn): Use max_insn_skipped and
292         MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
294 2013-06-25  Jakub Jelinek  <jakub@redhat.com>
296         PR tree-optimization/57705
297         * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
298         SSA_NAME step, provided that it is not defined inside the loop.
299         (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested
300         loop.
301         (get_initial_def_for_induction): Handle SSA_NAME IV step.
303 2013-06-25  Martin Jambor  <mjambor@suse.cz>
305         PR middle-end/57670
306         * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
307         * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
308         calls in the dump.
309         (ipa_note_param_call): Initialize member_ptr flag.
310         (ipa_analyze_indirect_call_uses): Set member_ptr flag.
311         (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
312         (ipa_write_indirect_edge_info): Stream member_ptr flag.
313         (ipa_read_indirect_edge_info): Likewise.
315 2013-06-25  Richard Biener  <rguenther@suse.de>
317         PR middle-end/56977
318         * passes.c (init_optimization_passes): Move pass_fold_builtins
319         and pass_dce earlier with -Og.
321 2013-06-25  Eric Botcazou  <ebotcazou@adacore.com>
323         * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
324         <BIT_FIELD_REF>: Remove trailing TAB.
325         * varasm.c (output_constructor_bitfield): Fix formatting glitch and
326         remove blank line.
328 2013-06-24  Martin Jambor  <mjambor@suse.cz>
330         PR tree-optimization/57358
331         * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
332         (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
333         (ipa_analyze_params_uses): Generate pessimistic info when true.
335 2013-06-24  Martin Jambor  <mjambor@suse.cz>
337         PR tree-optimization/57539
338         * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
339         global.inlined_to of the new node to it.  All callers changed.
340         * ipa-inline-transform.c (clone_inlined_nodes): New variable
341         inlining_into, pass it to cgraph_clone_node.
342         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
343         ipa_free_edge_args_substructures.
344         (ipa_edge_duplication_hook): Only add edges from inlined nodes to
345         rdesc linked list.  Do not assert rdesc edges have inlined caller.
346         Assert we have found an rdesc in the rdesc list.
348 2013-06-24  Richard Biener  <rguenther@suse.de>
350         * pointer-set.h (struct pointer_set_t): Move here from
351         pointer-set.c.
352         (pointer_set_lookup): Declare.
353         (class pointer_map): New template class implementing a
354         generic pointer to T map.
355         (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
356         pointer_map<T>::contains, pointer_map<T>::insert,
357         pointer_map<T>::traverse): New functions.
358         * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
359         (pointer_set_lookup): New function.
360         (pointer_set_contains): Use pointer_set_lookup.
361         (pointer_set_insert): Likewise.
362         (insert_aux): Remove.
363         (struct pointer_map_t): Embed a pointer_set_t.
364         (pointer_map_create): Adjust.
365         (pointer_map_destroy): Likewise.
366         (pointer_map_contains): Likewise.
367         (pointer_map_insert): Likewise.
368         (pointer_map_traverse): Likewise.
369         * tree-streamer.h (struct streamer_tree_cache_d): Use a
370         pointer_map<unsigned> instead of a pointer_map_t.
371         * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
372         (streamer_tree_cache_lookup): Likewise.
373         (streamer_tree_cache_create): Likewise.
374         (streamer_tree_cache_delete): Likewise.
375         * lto-streamer.h (struct lto_tree_ref_encoder): Use a
376         pointer_map<unsigned> instead of a pointer_map_t.
377         (lto_init_tree_ref_encoder): Adjust.
378         (lto_destroy_tree_ref_encoder): Likewise.
379         * lto-section-out.c (lto_output_decl_index): Likewise.
380         (lto_record_function_out_decl_state): Likewise.
381         * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
383 2013-06-24  Richard Biener  <rguenther@suse.de>
385         PR tree-optimization/57488
386         * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
388 2013-06-24  Alan Modra  <amodra@gmail.com>
390         * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
391         (gen_easy_altivec_constant): Likewise.
392         * config/rs6000/predicates.md (easy_vector_constant_add_self,
393         easy_vector_constant_msb): Likewise.
395 2013-06-23  Jakub Jelinek  <jakub@redhat.com>
397         PR target/57688
398         * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
399         add missing return true.
401 2013-06-23  Oleg Endo <olegendo@gcc.gnu.org>
403         PR target/52483
404         * config/sh/predicates.md (general_extend_operand): Invoke
405         general_movsrc_operand for memory operands.
406         (general_movsrc_operand): Allow reg+reg addressing, do not use
407         general_operand for memory operands.
409 2013-06-23  Sriraman Tallam  <tmsriram@google.com>
411         * config/i386/i386.c (ix86_pragma_target_parse):  Restore target
412         when current target options does not apply.
413         * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
414         * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
415         * config/i386/bmiintrin.h: Pass appropriate target attributes to header.
416         * config/i386/mmintrin.h: Ditto.
417         * config/i386/nmmintrin.h: Ditto.
418         * config/i386/avx2intrin.h: Ditto.
419         * config/i386/fxsrintrin.h: Ditto.
420         * config/i386/tbmintrin.h: Ditto.
421         * config/i386/xsaveintrin.h: Ditto.
422         * config/i386/f16cintrin.h: Ditto.
423         * config/i386/xtestintrin.h: Ditto.
424         * config/i386/xsaveoptintrin.h: Ditto.
425         * config/i386/bmi2intrin.h: Ditto.
426         * config/i386/lzcntintrin.h: Ditto.
427         * config/i386/smmintrin.h: Ditto.
428         * config/i386/wmmintrin.h: Ditto.
429         * config/i386/x86intrin.h: Remove all header include guards.
430         * config/i386/prfchwintrin.h: Ditto.
431         * config/i386/pmmintrin.h: Ditto.
432         * config/i386/tmmintrin.h: Ditto.
433         * config/i386/xmmintrin.h: Ditto.
434         * config/i386/popcntintrin.h: Ditto.
435         * config/i386/rdseedintrin.h: Ditto.
436         * config/i386/ammintrin.h: Ditto.
437         * config/i386/emmintrin.h: Ditto.
438         * config/i386/immintrin.h: Remove all header include guards.
439         * config/i386/fma4intrin.h: Ditto.
440         * config/i386/lwpintrin.h: Ditto.
441         * config/i386/xopintrin.h: Ditto.
442         * config/i386/ia32intrin.h: Ditto.
443         * config/i386/avxintrin.h: Ditto.
444         * config/i386/rtmintrin.h: Ditto.
445         * config/i386/fmaintrin.h: Ditto.
446         * config/i386/mm3dnow.h: Ditto.
448 2013-06-22  Sriraman Tallam  <tmsriram@google.com>
450         * common/config/i386/i386-common.c: Handle LZCNT.
452 2013-06-22  Andi Kleen  <ak@linux.intel.com>
454         * doc/extend.texi: Use __atomic_store_n instead of
455         __atomic_store in HLE example.
457 2013-06-22  Oleg Endo <olegendo@gcc.gnu.org>
459         * config/sh/sh.c: Remove <cstdlib> workaround.
461 2013-06-21  Andi Kleen  <ak@linux.intel.com>
463         * doc/extend.texi: Dont use __atomic_clear in HLE
464         example.  Fix typo.
466 2013-06-21  Andi Kleen  <ak@linux.intel.com>
468         * doc/extend.texi: Document that __atomic_clear and
469           __atomic_test_and_set should only be used with bool.
471 2013-06-20  Jan Hubicka  <jh@suse.cz>
473         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
474         types_same_for_odr.
475         * tree.c (decls_same_for_odr): New function.
476         (same_for_edr): New function.
477         (types_same_for_odr): New function.
478         (get_binfo_at_offset): Use it.
479         * tree.h (types_same_for_odr): Declare.
481 2013-06-20  Oleg Endo <olegendo@gcc.gnu.org>
482             Jason Merrill  <jason@redhat.com>
484         * system.h: Include <cstdlib> as well as <stdlib.h>.
486 2013-06-20  Uros Bizjak  <ubizjak@gmail.com>
488         PR target/57655
489         * config/i386/i386.c (construct_container): Report error if
490         long double is used with disabled x87 float returns.
492 2013-06-20  Jan Hubicka  <jh@suse.cz>
494         * lto-cgraph.c (input_symtab): Do not set cgraph state.
496 2013-06-20  Joern Rennecke <joern.rennecke@embecosm.com>
498         PR rtl-optimization/57425
499         PR rtl-optimization/57569
500         * alias.c (write_dependence_p): Remove parameters mem_mode and
501         canon_mem_addr.  Add parameters x_mode, x_addr and x_canonicalized.
502         Changed all callers.
503         (canon_anti_dependence): Get comments and semantics in sync.
504         Add parameter mem_canonicalized.  Changed all callers.
505         * rtl.h (canon_anti_dependence): Update prototype.
507 2013-06-20  Richard Biener  <rguenther@suse.de>
509         * data-streamer-in.c (streamer_read_uhwi): Optimize single
510         byte case, inline streamer_read_uchar and defer section
511         overrun check.
513 2013-06-20  Richard Biener  <rguenther@suse.de>
515         PR tree-optimization/57584
516         * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
517         SSA names into the expanded expression that take part in
518         abnormal coalescing.
520 2013-06-19    <singhai@google.com>
522         * gcov.c (print_usage): Handle new option.
523         (process_args): Ditto.
524         (get_gcov_intermediate_filename): New function.
525         (output_intermediate_file): New function.
526         (output_gcov_file): New function
527         (generate_results): Handle new option.
528         (release_function): Relase demangled name.
529         (read_graph_file): Handle demangled name.
530         (output_lines): Ditto.
531         * doc/gcov.texi: Document gcov intermediate format.
533 2013-06-19  Vladimir Makarov  <vmakarov@redhat.com>
535         PR bootstrap/57604
536         * lra.c (emit_add3_insn, emit_add2_insn): New functions.
537         (lra_emit_add): Use the functions.  Add comment about Y as an
538         address segment.
540 2013-06-19  David Edelsohn  <dje.gcc@gmail.com>
542         PR driver/57652
543         * collect2.c (collect_atexit): New.
544         (collect_exit): Delete.
545         (main): Register collect_atexit with atexit.
546         (collect_wait): Change collect_exit to exit.
547         (do_wait): Same.
548         * collect2.h (collect_exit): Delete.
549         * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
551 2013-06-19  Wei Mi  <wmi@google.com>
553         PR rtl-optimization/57518
554         * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
555         if regno is used in paradoxical subreg.
556         (update_equiv_regs): Check pdx_subregs[regno] before
557         set a reg to be equivalent with a mem.
559 2013-06-19  Matthias Klose  <doko@ubuntu.com>
561         PR driver/57651
562         * file-find.h (find_a_file): Add a mode parameter.
563         * file-find.c (find_a_file): Likewise.
564         * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
565         with X_OK for the executables.
566         * collect2.c (main): Call find_a_file with X_OK.
568 2013-06-19  Steve Ellcey  <sellcey@mips.com>
570         PR target/56942
571         * config/mips/mips.md (casesi_internal_mips16_<mode>):
572         Use NEXT_INSN instead of next_real_insn.
574 2013-06-19  Jan Hubicka  <jh@suse.cz>
576         * cgraph.h (const_value_known_p): Replace by ...
577         (ctor_for_folding): .. this one.
578         * cgraphunit.c (process_function_and_variable_attributes): Use it.
579         * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
580         * expr.c (expand_expr_real_1): Likewise.
581         (string_constant): Likewise.
582         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
583         * ipa.c (process_references): Likewise.
584         (symtab_remove_unreachable_nodes): Likewise.
585         * ipa-inline-analysis.c (param_change_prob): Likewise.
586         * gimple-fold.c (canonicalize_constructor_val): Likewise.
587         (get_base_constructor): Likwise.
588         * varpool.c (varpool_remove_node): Likewise.
589         (varpool_remove_initializer): LIkewise.
590         (dump_varpool_node): LIkwise.
591         (const_value_known_p): Rewrite to ...
592         (ctor_for_folding): ... this one.
594 2013-06-19  Jakub Jelinek  <jakub@redhat.com>
596         PR driver/57651
597         * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
598         PERSONALITY in $PATH derived prefixes.
600 2013-06-19  Jeff Law  <law@redhat.com>
602         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
603         in comment.
605         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
606         (simplify_bitwise_binary): Use it to simpify certain binary ops on
607         booleans.
609 2013-06-19  Sofiane Naci  <sofiane.naci@arm.com>
611         * config/arm/vfp.md: Move VFP instruction classification documentation
612         to ...
613         * config/arm/arm.md: ... here.  Update instruction classification
614         documentation.
616 2013-06-19  Richard Earnshaw  <rearnsha@arm.com>
618         arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
619         (peepholes for eq(reg, not-0)): Ensure condition register is dead after
620         pattern.  Use more efficient sequences on ARMv5 and Thumb2.
622 2013-06-19  Steven Bosscher  <steven@gcc.gnu.org>
624         PR target/57609
625         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
626         with NEXT_INSN.  Use tablejump_p to check for jump table data
627         insns.
629 2013-06-19  Paolo Carlini  <paolo.carlini@oracle.com>
631         PR c++/56544
632         * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
633         that now in C++ the value is correct per the C++ standards.
635 2013-06-19  Richard Biener  <rguenther@suse.de>
637         * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
638         for global context.
640 2013-06-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
642         Revert:
643         2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
645         PR target/57609
646         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
647         with next_active_insn.
649 2013-06-18  Sriraman Tallam  <tmsriram@google.com>
651         * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
652         functions are inlined during failures to flag an error.
653         * tree-inline.c (expand_call_inline): Allow the error to be flagged
654         in early inline pass.
656 2013-06-18  H.J. Lu  <hongjiu.lu@intel.com>
658         * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
659         in comments.
661 2013-06-18  Julian Brown  <julian@codesourcery.com>
663         * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
664         Permit virtual register pre-reload if !strict.
665         (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
666         change.
667         * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
668         prototype.
669         * config/arm/neon.md (movmisalign<mode>): Use
670         neon_perm_struct_or_reg_operand instead of
671         neon_struct_or_register_operand.
672         (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
673         neon_permissive_struct_operand instead of neon_struct_operand.
674         * config/arm/constraints.md (Un, Um, Us): Adjust calls to
675         neon_vector_mem_operand.
676         * config/arm/predicates.md (neon_struct_operand): Adjust call to
677         neon_vector_mem_operand.
678         (neon_permissive_struct_operand): New.
679         (neon_struct_or_register_operand): Rename to...
680         (neon_perm_struct_or_reg_operand): This. Adjust call to
681         neon_vector_mem_operand.
683 2013-06-18  Richard Biener  <rguenther@suse.de>
685         * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
686         * lto-streamer.h: Include pointer-set.h.
687         (struct lto_decl_slot): Remove.
688         (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
689         Remove next_index entry.
690         (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
691         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
692         (lto_init_tree_ref_encoder): Adjust.
693         (lto_destroy_tree_ref_encoder): Likewise.
694         * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
695         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
696         (lto_output_decl_index): Adjust.
697         (lto_new_out_decl_state): Likewise.
698         (lto_record_function_out_decl_state): Likewise.
699         * lto-streamer-out.c (copy_function): Likewise.
701 2013-06-18  Richard Biener  <rguenther@suse.de>
703         * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
704         * cgraphunit.c: Include cfgloop.h.
705         (init_lowered_empty_function): Initialize the loop tree.
706         (assemble_thunk): Insert new BBs into loops.
708 2013-06-18  Richard Biener  <rguenther@suse.de>
710         * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
711         * tree-streamer.c (streamer_tree_cache_create): Make maintaining
712         the map from cache entry to cache index optional.
713         (streamer_tree_cache_replace_tree): Adjust accordingly.
714         (streamer_tree_cache_append): Likewise.
715         (streamer_tree_cache_delete): Likewise.
716         * lto-streamer-in.c (lto_data_in_create): Do not maintain the
717         streamer cache map from cache entry to cache index.
718         * lto-streamer-out.c (create_output_block): Adjust.
720 2013-06-18  Sofiane Naci  <sofiane.naci@arm.com>
722         * config/arm/arm.md (attribute "insn"): Move multiplication and
723         division attributes to...
724         (attribute "type"): ... here.  Remove mult.
725         (attribute "mul32"): New attribute.
726         (attribute "mul64"): Add umaal.
727         (*arm_mulsi3): Update attributes.
728         (*arm_mulsi3_v6): Likewise.
729         (*thumb_mulsi3): Likewise.
730         (*thumb_mulsi3_v6): Likewise.
731         (*mulsi3_compare0): Likewise.
732         (*mulsi3_compare0_v6): Likewise.
733         (*mulsi_compare0_scratch): Likewise.
734         (*mulsi_compare0_scratch_v6): Likewise.
735         (*mulsi3addsi): Likewise.
736         (*mulsi3addsi_v6): Likewise.
737         (*mulsi3addsi_compare0): Likewise.
738         (*mulsi3addsi_compare0_v6): Likewise.
739         (*mulsi3addsi_compare0_scratch): Likewise.
740         (*mulsi3addsi_compare0_scratch_v6): Likewise.
741         (*mulsi3subsi): Likewise.
742         (*mulsidi3adddi): Likewise.
743         (*mulsi3addsi_v6): Likewise.
744         (*mulsidi3adddi_v6): Likewise.
745         (*mulsidi3_nov6): Likewise.
746         (*mulsidi3_v6): Likewise.
747         (*umulsidi3_nov6): Likewise.
748         (*umulsidi3_v6): Likewise.
749         (*umulsidi3adddi): Likewise.
750         (*umulsidi3adddi_v6): Likewise.
751         (*smulsi3_highpart_nov6): Likewise.
752         (*smulsi3_highpart_v6): Likewise.
753         (*umulsi3_highpart_nov6): Likewise.
754         (*umulsi3_highpart_v6): Likewise.
755         (mulhisi3): Likewise.
756         (*mulhisi3tb): Likewise.
757         (*mulhisi3bt): Likewise.
758         (*mulhisi3tt): Likewise.
759         (maddhisi4): Likewise.
760         (*maddhisi4tb): Likewise.
761         (*maddhisi4tt): Likewise.
762         (maddhidi4): Likewise.
763         (*maddhidi4tb): Likewise.
764         (*maddhidi4tt): Likewise.
765         (divsi3): Likewise.
766         (udivsi3): Likewise.
767         * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
768         (thumb2_mulsi_short_compare0): Likewise.
769         (thumb2_mulsi_short_compare0_scratch): Likewise.
770         * config/arm/arm1020e.md (1020mult1): Update attribute change.
771         (1020mult2): Likewise.
772         (1020mult3): Likewise.
773         (1020mult4): Likewise.
774         (1020mult5): Likewise.
775         (1020mult6): Likewise.
776         * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
777         change.
778         (cortex_a15_mult64): Likewise.
779         (cortex_a15_sdiv): Likewise.
780         (cortex_a15_udiv): Likewise.
781         * config/arm/arm1026ejs.md (mult1): Update attribute change.
782         (mult2): Likewise.
783         (mult3): Likewise.
784         (mult4): Likewise.
785         (mult5): Likewise.
786         (mult6): Likewise.
787         * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
788         (pj4_ir_div): Likewise.
789         * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
790         (11_mult2): Likewise.
791         (11_mult3): Likewise.
792         (11_mult4): Likewise.
793         (11_mult5): Likewise.
794         (11_mult6): Likewise.
795         (11_mult7): Likewise.
796         * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
797         (cortex_a8_mla): Likewise.
798         (cortex_a8_mull): Likewise.
799         (cortex_a8_smulwy): Likewise.
800         (cortex_a8_smlald): Likewise.
801         * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
802         * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
803         (cortex_r4_mul_3): Likewise.
804         (cortex_r4_mla_4): Likewise.
805         (cortex_r4_mla_3): Likewise.
806         (cortex_r4_smlald): Likewise.
807         (cortex_r4_mull): Likewise.
808         (cortex_r4_sdiv): Likewise.
809         (cortex_r4_udiv): Likewise.
810         * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
811         (cortex_a7_idiv): Likewise.
812         * config/arm/arm926ejs.md (9_mult1): Update attribute change.
813         (9_mult2): Likewise.
814         (9_mult3): Likewise.
815         (9_mult4): Likewise.
816         (9_mult5): Likewise.
817         (9_mult6): Likewise.
818         * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
819         (cortex_a53_sdiv): Likewise.
820         (cortex_a53_udiv): Likewise.
821         * config/arm/fa726te.md (726te_mult_op): Update attribute change.
822         * config/arm/fmp626.md (mp626_mult1): Update attribute change.
823         (mp626_mult2): Likewise.
824         (mp626_mult3): Likewise.
825         (mp626_mult4): Likewise.
826         * config/arm/fa526.md (526_mult1): Update attribute change.
827         (526_mult2): Likewise.
828         * config/arm/arm-generic.md (mult): Update attribute change.
829         (mult_ldsched_strongarm): Likewise.
830         (mult_ldsched): Likewise.
831         (multi_cycle): Likewise.
832         * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
833         * config/arm/fa606te.md (606te_mult1): Update attribute change.
834         (606te_mult2): Likewise.
835         (606te_mult3): Likewise.
836         (606te_mult4): Likewise.
837         * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
838         (cortex_a9_mac16): Likewise.
839         (cortex_a9_multiply): Likewise.
840         (cortex_a9_mac): Likewise.
841         (cortex_a9_multiply_long): Likewise.
842         * config/arm/fa626te.md (626te_mult1): Update attribute change.
843         (626te_mult2): Likewise.
844         (626te_mult3): Likewise.
845         (626te_mult4): Likewise.
847 2013-06-18  Richard Biener  <rguenther@suse.de>
849         PR lto/57334
850         * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
852 2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
854         PR target/57609
855         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
856         with next_active_insn.
858 2013-06-18  Alan Modra  <amodra@gmail.com>
860         * config/rs6000/rs6000.h (enum data_align): New.
861         (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
862         (DATA_ABI_ALIGNMENT): Define.
863         (CONSTANT_ALIGNMENT): Correct comment.
864         * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
865         * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
867 2013-06-17  David Malcolm  <dmalcolm@redhat.com>
869         * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
870         ATTRIBUTE_UNUSED marking.
872 2013-06-17  Sofiane Naci  <sofiane.naci@arm.com>
874         * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
875         alternative and update.
876         (aarch64_dup_lanedi): Delete.
877         * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
878         * config/aarch64/aarch64-simd-builtins.def: Update.
880 2013-06-17  Richard Biener  <rguenther@suse.de>
882         * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
883         (lto_input_scc): Declare.
884         (lto_input_tree_1): Likewise.
885         (struct lto_stats_d): Add num_tree_bodies_output and
886         num_pickle_refs_output.
887         * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
888         (lto_read_tree_1): Split out from ...
889         (lto_read_tree): ... this.
890         (lto_input_scc): New function.
891         (lto_input_tree_1): Split out from ...
892         (lto_input_tree): ... this.  Handle LTO_tree_scc.
893         (lto_data_in_create): Create the streamer cache without hashes.
894         * lto-streamer-out.c (create_output_block): Create the streamer
895         cache with hashes when not doing WPA.
896         (lto_write_tree_1): Split out from ...
897         (lto_write_tree): ... this.
898         (get_symbol_initial_value): New function.
899         (lto_output_tree_1): Split out from ...
900         (lto_output_tree): ... this.  Write trees as series of SCCs
901         using a DFS walk via DFS_write_tree.
902         (struct sccs, struct scc_entry): New types.
903         (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
904         (DFS_write_tree_body): New function.
905         (DFS_write_tree): Likewise.
906         (hash_tree): Likewise.
907         (scc_entry_compare): Likewise.
908         (hash_scc): Likewise.
909         (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
910         * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
911         TREE_CHAIN as regular reference.
912         (streamer_read_integer_cst): Remove.
913         (streamer_get_pickled_tree): Adjust.
914         * tree-streamer-out.c (streamer_write_chain): Disable streaming
915         of DECL_EXTERNALs in BLOCK_VARS for now.
916         (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
917         reference.
918         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
919         Add hash value argument and record that if hashes are recorded
920         in the cache.
921         (streamer_tree_cache_insert_1): Adjust.
922         (streamer_tree_cache_insert): Likewise.
923         (streamer_tree_cache_insert_at): Rename to ...
924         (streamer_tree_cache_replace_tree): ... this and adjust.
925         (streamer_tree_cache_append): Adjust.
926         (record_common_node): Likewise.
927         (streamer_tree_cache_create): Add argument whether to
928         record hash values together with trees.
929         (streamer_tree_cache_delete): Adjust.
930         * tree-streamer.h (struct streamer_tree_cache_d): Add
931         vector of hashes.
932         (streamer_read_integer_cst): Remove.
933         (streamer_tree_cache_insert): Adjust.
934         (streamer_tree_cache_append): Likewise.
935         (streamer_tree_cache_insert_at): Rename to ...
936         (streamer_tree_cache_replace_tree): ... this and adjust.
937         (streamer_tree_cache_create): Add argument whether to record hashes.
938         (streamer_tree_cache_get): Rename to ...
939         (streamer_tree_cache_get_tree): ... this.
940         (streamer_tree_cache_get_hash): New function.
941         * tree.c (cache_integer_cst): New function.
942         * tree.h (cache_integer_cst): Declare.
943         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
944         * lto-symtab.c (lto_varpool_replace_node): Only release
945         DECL_INITIAL of non-prevailing decls.
946         * varpool.c (varpool_remove_initializer): Do not release
947         DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
949 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
951         * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
952         (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
953         * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
954         (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
955         (mul<mode>3_mul3): Handle TARGET_MIPS5900.
956         (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
957         (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
958         (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
959         instead of TARGET_64BIT.
960         (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
961         Require ISA_HAS_<D>DIV.
963 2013-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
965         * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
966         (mips*-*-linux*): Move default with_llsc setting to where other
967         defaults are set.
968         (mips*-*-vxworks*): Move with_arch default from with_cpu block to
969         with_arch block.
970         (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
971         Likewise.  Remove default with_tune setting.  Move default float
972         setting to its own block.  Handle with_llsc in the same block as above.
974 2013-06-16  Joern Rennecke <joern.rennecke@embecosm.com>
976         PR rtl-optimization/57425
977         PR rtl-optimization/57569
978         * alias.c (write_dependence_p): Add new parameters mem_mode,
979         canon_mem_addr and mem_canonicalized.  Change type of writep to bool.
980         Changed all callers.
981         (canon_anti_dependence): New function.
982         * cse.c (check_dependence): Use canon_anti_dependence.
983         * cselib.c (cselib_invalidate_mem): Likewise.
984         * rtl.h (canon_anti_dependence): Declare.
986 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
988         * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
989         * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
990         ".set mips3" for 64-bit targets.
992 2013-06-15  Dehao Chen  <dehao@google.com>
994         * tree-flow.h (gimple_check_call_matching_types): Add new argument.
995         * gimple-low.c (gimple_check_call_matching_types): Likewise.
996         (gimple_check_call_args): Likewise.
997         * value-prof.c (check_ic_target): Likewise.
998         * ipa-inline.c (early_inliner): Likewise.
999         * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
1000         * cgraph.c (cgraph_create_edge_1): Likewise.
1001         (cgraph_make_edge_direct): Likewise.
1003 2013-06-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
1005         PR target/57615
1006         * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
1007         rs6000_output_move_128bit to handle emitting quad memory
1008         operations.  Set attribute length to 8 bytes.
1010 2013-06-14  Vidya Praveen <vidyapraveen@arm.com>
1012         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
1013         New pattern.
1014         (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
1015         (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
1016         (aarch64_<su>mlsl<mode>): Likewise.
1018 2013-06-14  Mike Stump  <mikestump@comcast.net>
1020         * Makefile.in (TARGET_H): Add insn-codes.h.
1022 2013-06-14  Alan Modra  <amodra@gmail.com>
1024         PR middle-end/57134
1025         PR middle-end/57586
1026         * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
1027         EXPAND_MEMORY and EXPAND_WRITE to recursive call.  Don't use
1028         bitfield expansion when EXPAND_MEMORY.
1029         (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
1031 2013-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
1033         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1034         test for clearing quad memory on 32-bit later.
1036 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
1038         * fold-const.c (negate_expr_p): Handle VECTOR_CST.
1039         (fold_negate_expr): Likewise.
1040         (fold_real_zero_addition_p): Handle vectors.
1041         (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
1043 2013-06-14  Alan Modra  <amodra@gmail.com>
1045         * varasm.c (force_const_mem): Revert 2013-06-07 change.
1047 2013-06-13  Jan Hubicka  <jh@suse.cz>
1049         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
1050         Local comdats are not externally visible.
1051         * symtab.c (dump_symtab_base): Dump externally visible.
1052         (verify_symtab_base): Verify back links in the symtab hash.
1054 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
1056         * fold-const.c (operand_equal_p): Consider NOP_EXPR and
1057         CONVERT_EXPR as equal nodes.
1059 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
1061         * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
1063 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
1065         * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
1066         Generalize to complex and vector.
1067         * tree.c (build_all_ones_cst): New function.
1068         * tree.h (build_all_ones_cst): Declare it.
1070 2013-06-13  Alan Modra  <amodra@gmail.com>
1072         * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
1073         * config/rs6000/rs6000.md (signbittf2): New insn.
1074         (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
1075         (abstf2_internal, cmptf_internal2): Likewise.
1076         * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
1078 2013-06-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
1079             Pat Haugen <pthaugen@us.ibm.com>
1080             Peter Bergner <bergner@vnet.ibm.com>
1082         * config/rs6000/rs6000.c (emit_load_locked): Add support for
1083         power8 byte, half-word, and quad-word atomic instructions.
1084         (emit_store_conditional): Likewise.
1085         (rs6000_expand_atomic_compare_and_swap): Likewise.
1086         (rs6000_expand_atomic_op): Likewise.
1088         * config/rs6000/sync.md (larx): Add new modes for power8.
1089         (stcx): Likewise.
1090         (AINT): New mode iterator to include TImode as well as normal
1091         integer modes on power8.
1092         (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
1093         that VSX registers are not considered.  Use AINT mode iterator
1094         instead of INT1 to allow inclusion of quad word atomic operations
1095         on power8.
1096         (load_locked<mode>): Likewise.
1097         (store_conditional<mode>): Likewise.
1098         (atomic_compare_and_swap<mode>): Likewise.
1099         (atomic_exchange<mode>): Likewise.
1100         (atomic_nand<mode>): Likewise.
1101         (atomic_fetch_<fetchop_name><mode>): Likewise.
1102         (atomic_nand_fetch<mode>): Likewise.
1103         (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
1104         each type.
1105         (ATOMIC): On power8, add QImode, HImode modes.
1106         (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
1107         modes that promote to SImode.
1108         (load_lockedti): Convert TImode arguments to PTImode, so that we
1109         get a guaranteed even/odd register pair.
1110         (load_lockedpti): Likewise.
1111         (store_conditionalti): Likewise.
1112         (store_conditionalpti): Likewise.
1114         * config/rs6000/rs6000.md (QHI): New mode iterator for power8
1115         atomic load/store instructions.
1116         (HSI): Likewise.
1118 2013-06-12  Richard Sandiford  <rdsandiford@googlemail.com>
1120         * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
1121         loads.
1122         (insn_count): New attribute, with most cases extracted from...
1123         (length): ...here.  Redefine most cases in terms of insn_count.
1124         (single_insn): Delete.
1125         (can_delay): Use insn_count to check for single instructions.
1126         (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
1127         (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
1128         (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
1129         (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
1130         (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
1131         (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
1132         (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
1133         (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
1134         (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
1135         (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
1136         rather than "length".
1137         (tls_get_tp_<mode>): Likewise.  Remove redundant "no_delay" attribute.
1138         * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
1139         Use "insn_count" rather than "length".
1140         * config/mips/mips-dsp.md
1141         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
1142         (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
1143         length attributes.
1145 2013-06-12  Marc Glisse  <marc.glisse@inria.fr>
1147         PR tree-optimization/57361
1148         * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
1150 2013-06-12  Sofiane Naci  <sofiane.naci@arm.com>
1152         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
1153         to split.
1154         (aarch64_simd_combine<mode>): New instruction expansion.
1155         * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
1156         function prototype.
1157         * config/aarch64/aarch64.c (aarch64_split_combine): New function.
1158         * config/aarch64/iterators.md (Vdbl): Add entry for DF.
1160 2013-06-12  Jan Hubicka  <jh@suse.cz>
1162         * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
1163         decl has when in streaming stage.
1164         * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
1165         * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
1167 2013-06-12  Roland Stigge <stigge@antcom.de>
1169         PR target/57578
1170         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
1172 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
1174         PR tree-optimization/57537
1175         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
1176         vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
1178 2013-06-12  Richard Biener  <rguenther@suse.de>
1180         * data-streamer.h (streamer_write_char_stream): CSE
1181         obs->current_pointer.
1182         * data-streamer-out.c (streamer_write_uhwi_stream): Inline
1183         streamer_write_char_stream manually and optimize the resulting loop.
1184         (streamer_write_hwi_stream): Likewise.
1186 2013-06-12  Jan Hubicka  <jh@suse.cz>
1188         * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
1189         * cgraph.h (varpool_create_empty_node): Declare.
1190         * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
1191         duplicated nodes.
1192         * symtab.c (symtab_unregister_node): Be lax about missin entries
1193         in node hash.
1194         (symtab_get_node): Update comment.
1195         * varpool.c (varpool_create_empty_node): Break out from ...
1196         (varpool_node_for_decl): ... here.
1197         * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
1199 2013-06-12  Eric Botcazou  <ebotcazou@adacore.com>
1201         * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
1202         <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
1203         part.  Use straight-line flow at the end.
1204         <COMPONENT_REF>: Remove superfluous else.
1205         <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
1207 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
1209         PR target/56564
1210         * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
1211         target hook even for !TREE_PUBLIC decls.  If no resolution info
1212         is available, return false for common and external decls.
1214 2013-06-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
1216         * config/rl78/constraints.md (U): New constraint.
1217         * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
1218         valloc attribute.
1220 2013-06-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
1222         PR target/57589
1223         * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
1224         to allow returning address to AT_PLATFORM name.
1226 2013-06-11  Jan Hubicka  <jh@suse.cz>
1228         * cgraph.c (cgraph_create_function_alias): Set weakref flag.
1229         * cgraph.h (symtab_node_base): Add weakref flag.
1230         * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
1231         (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
1232         (output_weakrefs): Use weakref flag.
1233         * fold-const.c (simple_operand_p): Handle WEAK.
1234         * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
1235         * ipa.c (varpool_externally_visible_p): Drop weakref.
1236         (function_and_variable_visibility): Update comment; fix weakref
1237         sanity checks; do not clear DECL_WEAK on them.
1238         * lto-cgraph.c (lto_output_node): update.
1239         (lto_output_varpool_node): Update.
1240         (input_overwrite_node): Update.
1241         (input_node): Update.
1242         (input_varpool_node): Update.
1243         * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
1244         (lto_symtab_merge_symbols): Add sanity check.
1245         (lto_symtab_prevailing_decl): Do not special case weakrefs.
1246         * passes.c (rest_of_decl_compilation): Set static flag, too.
1247         * symtab.c (dump_symtab_base): Dump weakref.
1248         (verify_symtab_base): Sanity check weakrefs.
1249         (symtab_make_decl_local): Remove duplicated code.
1250         (symtab_alias_ultimate_target): Simplify.
1251         * varpool.c (varpool_create_variable_alias): Set weakref flag.
1253 2013-06-11  DJ Delorie  <dj@redhat.com>
1255         * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
1256         (rl78_unwind_word_mode): New.
1258 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
1260         * final.c (debug_prefix_maps): Make static.
1262 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
1264         * function.c (initial_trampoline): Remove stray copy.
1266 2013-06-11  Sofiane Naci  <sofiane.naci@arm.com>
1268         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
1270 2013-06-11  Martin Jambor  <mjambor@suse.cz>
1272         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
1273         within bounds at the beginning of the function.
1275 2013-06-11  Alan Modra  <amodra@gmail.com>
1277         * varasm.c (get_section): Don't die on !DECL_P decl.  Tidy error
1278         reporting.
1279         (get_named_section): Don't NULL !DECL_P decl.
1281 2013-06-11  Igor Zamyatin  <igor.zamyatin@intel.com>
1283         * doc/invoke.texi (core-avx2): Document.
1284         (slm): Likewise.
1285         (atom): Updated with MOVBE.
1287 2013-06-11  Richard Biener  <rguenther@suse.de>
1289         * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
1291 2013-06-11  Anton Blanchard  <anton@samba.org>
1293         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
1294         correct shift value in little-endian mode.
1296 2013-06-11  Jakub Jelinek  <jakub@redhat.com>
1298         PR target/56564
1299         * varasm.c (get_variable_align): Move #endif to the right place.
1301 2013-06-10  Cary Coutant  <ccoutant@google.com>
1303         * dwarf2out.c (hash_external_ref): Use die_symbol or signature
1304         for hash so that hash table traversal order is deterministic.
1306 2013-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
1307             Pat Haugen <pthaugen@us.ibm.com>
1308             Peter Bergner <bergner@vnet.ibm.com>
1310         * config/rs6000/vector.md (GPR move splitter): Do not split moves
1311         of vectors in GPRS if they are direct moves or quad word load or
1312         store moves.
1314         * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
1315         declaration.
1316         (direct_move_p): Likewise.
1317         (quad_load_store_p): Likewise.
1319         * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
1320         classes into bins based on the physical register type.
1321         (reg_class_to_reg_type): Likewise.
1322         (IS_STD_REG_TYPE): Likewise.
1323         (IS_FP_VECT_REG_TYPE): Likewise.
1324         (reload_fpr_gpr): Arrays to determine what insn to use if we can
1325         use direct move instructions.
1326         (reload_gpr_vsx): Likewise.
1327         (reload_vsx_gpr): Likewise.
1328         (rs6000_init_hard_regno_mode_ok): Precalculate the register type
1329         information that is a simplification of register classes.  Also
1330         precalculate direct move reload helpers.
1331         (direct_move_p): New function to return true if the operation can
1332         be done as a direct move instruciton.
1333         (quad_load_store_p): New function to return true if the operation
1334         is a quad memory operation.
1335         (rs6000_legitimize_address): If quad memory, only allow register
1336         indirect for TImode addresses.
1337         (rs6000_legitimate_address_p): Likewise.
1338         (enum reload_reg_type): Delete, replace with rs6000_reg_type.
1339         (rs6000_reload_register_type): Likewise.
1340         (register_to_reg_type): Return register type.
1341         (rs6000_secondary_reload_simple_move): New helper function for
1342         secondary reload and secondary memory needed to identify anything
1343         that is a simple move, and does not need reloading.
1344         (rs6000_secondary_reload_direct_move): New helper function for
1345         secondary reload to identify cases that can be done with several
1346         instructions via the direct move instructions.
1347         (rs6000_secondary_reload_move): New helper function for secondary
1348         reload to identify moves between register types that can be done.
1349         (rs6000_secondary_reload): Add support for quad memory operations
1350         and for direct move.
1351         (rs6000_secondary_memory_needed): Likewise.
1352         (rs6000_debug_secondary_memory_needed): Change argument names.
1353         (rs6000_output_move_128bit): New function to return the move to
1354         use for 128-bit moves, including knowing about the various
1355         limitations of quad memory operations.
1357         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
1358         memory operations.  call rs6000_output_move_128bit for the actual
1359         instruciton(s) to generate.
1360         (vsx_movti_64bit): Likewise.
1362         * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
1363         (UNSPEC_P8V_MTVSRWZ): Likewise.
1364         (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
1365         (UNSPEC_P8V_MTVSRD): Likewise.
1366         (UNSPEC_P8V_XXPERMDI): Likewise.
1367         (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
1368         (UNSPEC_FUSION_GPR): Likewise.
1369         (FMOVE128_GPR): New iterator for direct move.
1370         (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
1371         (f32_sv): Likewise.
1372         (f32_dm): Likewise.
1373         (zero_extend<mode>di2_internal1): Add support for power8 32-bit
1374         loads and direct move instructions.
1375         (zero_extendsidi2_lfiwzx): Likewise.
1376         (extendsidi2_lfiwax): Likewise.
1377         (extendsidi2_nocell): Likewise.
1378         (floatsi<mode>2_lfiwax): Likewise.
1379         (lfiwax): Likewise.
1380         (floatunssi<mode>2_lfiwzx): Likewise.
1381         (lfiwzx): Likewise.
1382         (fix_trunc<mode>_stfiwx): Likewise.
1383         (fixuns_trunc<mode>_stfiwx): Likewise.
1384         (mov<mode>_hardfloat, 32-bit floating point): Likewise.
1385         (mov<move>_hardfloat64, 64-bit floating point): Likewise.
1386         (parity<mode>2_cmpb): Set length/type attr.
1387         (unnamed shift right patterns, mov<mode>_internal2): Change type attr
1388         for 'mr.' to fast_compare.
1389         (bpermd_<mode>): Change type attr to popcnt.
1390         (p8_fmrgow_<mode>): New insns for power8 direct move support.
1391         (p8_mtvsrwz_1): Likewise.
1392         (p8_mtvsrwz_2): Likewise.
1393         (reload_fpr_from_gpr<mode>): Likewise.
1394         (p8_mtvsrd_1): Likewise.
1395         (p8_mtvsrd_2): Likewise.
1396         (p8_xxpermdi_<mode>): Likewise.
1397         (reload_vsx_from_gpr<mode>): Likewise.
1398         (reload_vsx_from_gprsf): Likewise.
1399         (p8_mfvsrd_3_<mode>): LIkewise.
1400         (reload_gpr_from_vsx<mode>): Likewise.
1401         (reload_gpr_from_vsxsf): Likewise.
1402         (p8_mfvsrd_4_disf): Likewise.
1403         (multi-word GPR splits): Do not split direct moves or quad memory
1404         operations.
1406 2013-06-10  David Malcolm  <dmalcolm@redhat.com>
1408         * tree-into-ssa.c (interesting_blocks): Make static.
1410 2013-06-10  Jakub Jelinek  <jakub@redhat.com>
1412         PR target/56564
1413         * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
1414         CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
1415         Use DATA_ABI_ALIGNMENT for that case instead if defined.
1416         (get_variable_align): New function.
1417         (get_variable_section, emit_bss, emit_common,
1418         assemble_variable_contents, place_block_symbol): Use
1419         get_variable_align instead of DECL_ALIGN.
1420         (assemble_noswitch_variable): Add align argument, use it
1421         instead of DECL_ALIGN.
1422         (assemble_variable): Adjust caller.  Use get_variable_align
1423         instead of DECL_ALIGN.
1424         * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
1425         caller.
1426         (DATA_ABI_ALIGNMENT): Define.
1427         * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
1428         * config/i386/i386.c (x86_data_alignment): Add opt argument.  If
1429         opt is false, only return the psABI mandated alignment increase.
1430         * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
1431         (DATA_ABI_ALIGNMENT): ... this.
1432         * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
1433         (DATA_ABI_ALIGNMENT): ... this.
1434         * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
1435         * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
1436         (DATA_ABI_ALIGNMENT): ... this.
1437         * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
1438         * doc/tm.texi: Regenerated.
1440 2013-06-10  Uros Bizjak  <ubizjak@gmail.com>
1442         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
1443         cmp_code to construct REG_EQUAL note.
1445 2013-06-09  Jakub Jelinek  <jakub@redhat.com>
1447         PR target/57568
1448         * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
1449         that operands[2] doesn't overlap with operands[0].
1451 2013-06-09  David Edelsohn  <dje.gcc@gmail.com>
1452             Jan Hubicka  <jh@suse.cz>
1454         * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
1455         hack to mark symbols as used.
1457 2013-06-08  Vladimir Makarov  <vmakarov@redhat.com>
1459         PR rtl-optimization/57559
1460         * lra-constraints.c (process_alt_operands): Don't discourage
1461         memory with known offset for offsetable memory constraint.
1462         * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
1464 2013-06-08  Eric Botcazou  <ebotcazou@adacore.com>
1466         * varasm.c (struct oc_local_state): Reorder fields.
1467         (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
1468         and adjust accordingly.
1469         (output_constructor): Reorder initialization code and adjust call to
1470         output_constructor_bitfield.
1472 2013-06-07  Jan Hubicka  <jh@suse.cz>
1474         * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
1476 2013-06-07  David Malcolm  <dmalcolm@redhat.com>
1478         * tree-object-size.c (unknown): Make const.
1480 2013-06-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1482         * config/s390/s390.md (cpu_facility): Add cpu_zarch.
1483         ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
1484         for last alternative in the cpu_facility attribute.
1486 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1488         PR target/56315
1489         * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
1490         (xordi3): Change operand 2 constraint to arm_xordi_operand.
1491         * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
1492         * config/arm/constraints.md (Dg): New constraint.
1493         * config/arm/neon.md (xordi3_neon): Remove.
1494         (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
1495         * config/arm/predicates.md (arm_xordi_operand): New predicate.
1497 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1499         * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
1500         Clean up alternatives.
1502 2013-06-07  Alan Modra  <amodra@gmail.com>
1504         * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
1505         va_list_gpr_size.
1507 2013-06-07  Alan Modra  <amodra@gmail.com>
1509         * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
1511 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1513         * config/arm/constraints.md (Df): New constraint.
1514         * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
1515         Correct length attribute for last two alternatives.
1517 2013-06-07  Alan Modra  <amodra@gmail.com>
1519         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
1520         override user -mfp-in-toc.
1521         (offsettable_ok_by_alignment): Consider just the current access
1522         rather than the whole object, unless BLKmode.  Handle
1523         CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
1524         (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
1525         for -mcmodel=medium.
1526         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
1527         override user -mfp-in-toc or -msum-in-toc.  Default to
1528         -mno-fp-in-toc for -mcmodel=medium.
1530 2013-06-06  DJ Delorie  <dj@redhat.com>
1532         * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
1533         TARGET_VALID_POINTER_MODE.
1535 2013-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
1536             Pat Haugen <pthaugen@us.ibm.com>
1537             Peter Bergner <bergner@vnet.ibm.com>
1539         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
1540         Document new power8 builtins.
1542         * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
1543         condition code register, to allow 128-bit logical operations to be
1544         done in the VSX or GPR registers.
1545         (nor<mode>3): Use the canonical form for nor.
1546         (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
1547         vclz*, and vpopcnt* vector instructions.
1548         (nand<mode>3): Likewise.
1549         (orc<mode>3): Likewise.
1550         (clz<mode>2): LIkewise.
1551         (popcount<mode>2): Likewise.
1553         * config/rs6000/predicates.md (int_reg_operand): Rework tests so
1554         that only the GPRs are recognized.
1556         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1557         support for new power8 builtins.
1559         * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
1560         builtin functions.
1561         (xscvdpspn): Likewise.
1562         (vclz): Likewise.
1563         (vclzb): Likewise.
1564         (vclzh): Likewise.
1565         (vclzw): Likewise.
1566         (vclzd): Likewise.
1567         (vpopcnt): Likewise.
1568         (vpopcntb): Likewise.
1569         (vpopcnth): Likewise.
1570         (vpopcntw): Likewise.
1571         (vpopcntd): Likewise.
1572         (vgbbd): Likewise.
1573         (vmrgew): Likewise.
1574         (vmrgow): Likewise.
1575         (eqv): Likewise.
1576         (eqv_v16qi3): Likewise.
1577         (eqv_v8hi3): Likewise.
1578         (eqv_v4si3): Likewise.
1579         (eqv_v2di3): Likewise.
1580         (eqv_v4sf3): Likewise.
1581         (eqv_v2df3): Likewise.
1582         (nand): Likewise.
1583         (nand_v16qi3): Likewise.
1584         (nand_v8hi3): Likewise.
1585         (nand_v4si3): Likewise.
1586         (nand_v2di3): Likewise.
1587         (nand_v4sf3): Likewise.
1588         (nand_v2df3): Likewise.
1589         (orc): Likewise.
1590         (orc_v16qi3): Likewise.
1591         (orc_v8hi3): Likewise.
1592         (orc_v4si3): Likewise.
1593         (orc_v2di3): Likewise.
1594         (orc_v4sf3): Likewise.
1595         (orc_v2df3): Likewise.
1597         * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
1598         allow power8 quad mode in 64-bit.
1599         (rs6000_builtin_vectorized_function): Add support to vectorize
1600         ISA 2.07 count leading zeros, population count builtins.
1601         (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
1602         V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
1603         (builtin_function_type): Add vgbbd builtin function which takes an
1604         unsigned argument.
1605         (altivec_expand_vec_perm_const): Add support for new power8 merge
1606         instructions.
1608         * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
1609         that does not include TImdoe for use with 32-bit.
1610         (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
1611         instructions.
1612         (UNSPEC_VSX_CVDPSPN): Likewise.
1613         (vsx_xscvdpspn): Likewise.
1614         (vsx_xscvspdpn): Likewise.
1615         (vsx_xscvdpspn_scalar): Likewise.
1616         (vsx_xscvspdpn_directmove): Likewise.
1617         (vsx_and<mode>3): Split logical operations into 32-bit and
1618         64-bit. Add support to do logical operations on TImode as well as
1619         VSX vector types.  Allow logical operations to be done in either
1620         VSX registers or in general purpose registers in 64-bit mode.  Add
1621         splitters if GPRs were used. For AND, add clobber of CCmode to
1622         allow use of ANDI on GPRs.  Rewrite nor to use the canonical RTL
1623         encoding.
1624         (vsx_and<mode>3_32bit): Likewise.
1625         (vsx_and<mode>3_64bit): Likewise.
1626         (vsx_ior<mode>3): Likewise.
1627         (vsx_ior<mode>3_32bit): Likewise.
1628         (vsx_ior<mode>3_64bit): Likewise.
1629         (vsx_xor<mode>3): Likewise.
1630         (vsx_xor<mode>3_32bit): Likewise.
1631         (vsx_xor<mode>3_64bit): Likewise.
1632         (vsx_one_cmpl<mode>2): Likewise.
1633         (vsx_one_cmpl<mode>2_32bit): Likewise.
1634         (vsx_one_cmpl<mode>2_64bit): Likewise.
1635         (vsx_nor<mode>3): Likewise.
1636         (vsx_nor<mode>3_32bit): Likewise.
1637         (vsx_nor<mode>3_64bit): Likewise.
1638         (vsx_andc<mode>3): Likewise.
1639         (vsx_andc<mode>3_32bit): Likewise.
1640         (vsx_andc<mode>3_64bit): Likewise.
1641         (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
1642         and xxlorc instructions.
1643         (vsx_eqv<mode>3_64bit): Likewise.
1644         (vsx_nand<mode>3_32bit): Likewise.
1645         (vsx_nand<mode>3_64bit): Likewise.
1646         (vsx_orc<mode>3_32bit): Likewise.
1647         (vsx_orc<mode>3_64bit): Likewise.
1649         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
1651         * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
1652         instruction.
1653         (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
1654         (p8_vmrgow): Likewise.
1655         (altivec_and<mode>3): Add clobber of CCmode to allow AND using
1656         GPRs to be split under VSX.
1657         (p8v_clz<mode>2): Add power8 count leading zero support.
1658         (p8v_popcount<mode>2): Add power8 population count support.
1659         (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
1660         support.
1662         * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
1663         instruction.
1665         * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
1666         builtin functions.
1667         (vec_nand): Likewise.
1668         (vec_vclz): Likewise.
1669         (vec_vclzb): Likewise.
1670         (vec_vclzd): Likewise.
1671         (vec_vclzh): Likewise.
1672         (vec_vclzw): Likewise.
1673         (vec_vgbbd): Likewise.
1674         (vec_vmrgew): Likewise.
1675         (vec_vmrgow): Likewise.
1676         (vec_vpopcnt): Likewise.
1677         (vec_vpopcntb): Likewise.
1678         (vec_vpopcntd): Likewise.
1679         (vec_vpopcnth): Likewise.
1680         (vec_vpopcntw): Likewise.
1682 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
1684         PR rtl-optimization/57468
1685         * config/i386/i386.c (inline_secondary_memory_needed): Ignore
1686         spilled pseudos.
1688 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
1690         PR rtl-optimization/57459
1691         * lra-constraints.c (update_ebb_live_info): Fix typo for operand
1692         type when setting live regs.
1694 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
1696         * config/s390/s390.opt (mlra): New option.
1697         * config/s390/s390.c (s390_decompose_address): Check displacement
1698         for all registers for LRA.
1699         (s390_secondary_reload): Don't used secondary reloads for LRA.
1700         (s390_lra_p): New function.
1701         (TARGET_LRA_P): Define.
1702         * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
1703         of attribute cpu_facility to zarch for the last alternative.
1704         (*cmpmem_short): Ditto.
1706 2013-06-06  Eric Botcazou  <ebotcazou@adacore.com>
1708         * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
1709         (arm_compute_static_chain_stack_bytes): Use it.  Tidy up.
1710         (arm_expand_prologue): Likewise.
1712 2013-06-06  Teresa Johnson  <tejohnson@google.com>
1714         PR c++/53743
1715         * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
1716         as this is now done by redirect_edge_and_branch_force.
1717         * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
1718         barriers, and fix interaction with splitting.
1719         * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
1720         * cfgcleanup.c (try_forward_edges): Fix early return value to properly
1721         reflect changes made in the routine.
1722         * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
1723         (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
1724         since this is called in cfglayout mode, and replace partition fixup
1725         with assert as that is now done by force_nonfallthru_and_redirect.
1726         (add_reg_crossing_jump_notes): Handle the fact that some jumps may
1727         already be marked with region crossing note.
1728         (insert_section_boundary_note): Make non-static, gate on flag
1729         has_bb_partition, rewrite to also check for multiple partitions.
1730         (rest_of_handle_reorder_blocks): Remove call to
1731         insert_section_boundary_note, now done later during free_cfg.
1732         (duplicate_computed_gotos): Don't duplicate partition crossing edge.
1733         * bb-reorder.h (insert_section_boundary_note): Declare.
1734         * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
1735         * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
1736         invoke insert_section_boundary_note.
1737         (try_redirect_by_replacing_jump): Remove unnecessary
1738         check for region crossing note.
1739         (fixup_partition_crossing): New function.
1740         (rtl_redirect_edge_and_branch): Fixup partition boundaries.
1741         (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
1742         in non-cfglayout mode.
1743         (force_nonfallthru_and_redirect): Fixup partition boundaries,
1744         remove old code that tried to do this. Emit barrier correctly
1745         when we are in cfglayout mode.
1746         (last_bb_in_partition): New function.
1747         (rtl_split_edge): Correctly fixup partition boundaries.
1748         (commit_one_edge_insertion): Remove old code that tried to
1749         fixup region crossing edge since this is now handled in
1750         split_block, and set up insertion point correctly since
1751         block may now end in a jump.
1752         (verify_hot_cold_block_grouping): Guard against checking when not in
1753         linearized RTL mode.
1754         (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
1755         notes.
1756         (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
1757         rtl_verify_flow_info, so not called in cfglayout mode.
1758         (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
1759         (fixup_reorder_chain): Remove old code that attempted to fixup region
1760         crossing note as this is now handled in force_nonfallthru_and_redirect.
1761         (duplicate_insn_chain): Don't duplicate switch section notes.
1762         (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
1763         note.
1764         * basic-block.h (emit_barrier_after_bb): Declare.
1766 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1768         * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
1769         sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
1770         arm_usatsihi): Adjust alternatives for arm_restrict_it.
1772 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1774         * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
1775         where appropriate.
1776         * config/arm/ldmstm.md: Regenerate.
1778 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1780         * config/arm/sync.md (atomic_loaddi_1):
1781         Disable predication for arm_restrict_it.
1782         (arm_load_exclusive<mode>): Likewise.
1783         (arm_load_exclusivesi): Likewise.
1784         (arm_load_exclusivedi): Likewise.
1785         (arm_load_acquire_exclusive<mode>): Likewise.
1786         (arm_load_acquire_exclusivesi): Likewise.
1787         (arm_load_acquire_exclusivedi): Likewise.
1788         (arm_store_exclusive<mode>): Likewise.
1789         (arm_store_exclusive<mode>): Likewise.
1790         (arm_store_release_exclusivedi): Likewise.
1791         (arm_store_release_exclusive<mode>): Likewise.
1793 2013-06-06  Richard Biener  <rguenther@suse.de>
1795         * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
1796         after LTO_null.
1797         (lto_tag_is_tree_code_p): Adjust.
1798         (lto_tag_is_gimple_code_p): Likewise.
1799         (lto_gimple_code_to_tag): Likewise.
1800         (lto_tag_to_gimple_code): Likewise.
1801         (lto_tree_code_to_tag): Likewise.
1802         (lto_tag_to_tree_code): Likewise.
1803         * data-streamer.h (streamer_write_hwi_in_range): Use
1804         uhwi streaming to stream the normalized range.
1805         (streamer_read_hwi_in_range): Likewise.
1807 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1809         * config/arm/arm.md (enabled_for_depr_it): New attribute.
1810         (predicable_short_it): Likewise.
1811         (predicated): Likewise.
1812         (enabled): Handle above.
1813         (define_cond_exec): Set predicated attribute to yes.
1815 2013-06-05  Mike Stump  <mikestump@comcast.net>
1817         * gdbinit.in (__FUNCTION__): Add.
1819 2013-06-05  Uros Bizjak  <ubizjak@gmail.com>
1821         * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
1822         GE, GT, GEU and GTU compares, modulo DImode compares with zero.
1824 2013-06-05  Jan Hubicka  <jh@suse.cz>
1826         * varasm.c (mark_decl_referenced): Revert the removal until targets
1827         are fixed.
1829 2013-06-05  David Edelsohn  <dje.gcc@gmail.com>
1831         * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
1832         instead of mark_decl_referenced.
1834 2013-06-05  Jan Hubicka  <jh@suse.cz>
1836         * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
1837         (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
1838         and symtab_used_from_object_file_p.
1839         (cgraph_make_node_local_1): Clear forced_by_abi.
1840         (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
1841         * cgraph.h (symtab_node_base): Add forced_by_abi.
1842         (decide_is_variable_needed): Remove.
1843         (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
1844         * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
1845         (decide_is_symbol_needed): ... this one; handle symbols in general;
1846         always analyze virtuals; honnor forced_by_abi.
1847         (cgraph_finalize_function): Update.
1848         (varpool_finalize_decl): Update.
1849         (symbol_defined_and_needed): Remove.
1850         (analyze_functions): Update.
1851         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
1852         output_refs, input_overwrite_node): Handle forced_by_abi.
1853         * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
1854         (address_taken_from_non_vtable_p): ... this one.
1855         (comdat_can_be_unshared_p_1): New function.
1856         (cgraph_comdat_can_be_unshared_p): Rename to ...
1857         (comdat_can_be_unshared_p): ... this one; handle symbols in general.
1858         (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
1859         (function_and_variable_visibility): Clear forced_by_abi as needed.
1860         * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
1861         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
1862         * symtab.c (dump_symtab_base): Dump forced_by_abi.
1863         * varpool.c (decide_is_variable_needed): Remove.
1865 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1867         * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
1868         (arm_option_override): Override arm_restrict_it where appropriate.
1869         (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
1870         * config/arm/arm.opt (mrestrict-it): New command-line option.
1871         * doc/invoke.texi: Document -mrestrict-it.
1873 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
1875         * tsan.c (tsan_atomic_table): Make const.
1877 2013-06-05  Richard Biener  <rguenther@suse.de>
1879         * tree-streamer.c (streamer_tree_cache_insert_1): Update the
1880         index associated with the tree we are supposed to replace.
1881         * tree-streamer-out.c (pack_ts_base_value_fields): Output
1882         TREE_ASM_WRITTEN as zero for everything but SSA names.
1884 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
1886         * tree-ssa-structalias.c (call_stmt_vars): Make static.
1888 2013-06-04  Jan Hubicka  <jh@suse.cz>
1890         * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
1891         (input_node, input_varpool_node): Handle correctly external same
1892         body aliases.
1893         * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
1894         nodes at ltrans stage.
1896 2013-06-04  Jan Hubicka  <jh@suse.cz>
1898         * ipa-inline.c (update_caller_keys): Fix availability test.
1899         (update_callee_keys): Likewise.
1900         * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
1901         to follow ELF standard.
1903 2013-06-04  Jürgen Urban  <JuergenUrban@gmx.de>
1905         * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
1906         (mips64r5900el-*-elf*): New configurations.
1907         * config/mips/mips-cpus.def (r5900): New processor.
1908         * config/mips/mips-tables.opt: Regenerate.
1909         * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
1910         (mips_issue_rate): Handle PROCESSOR_R5900.
1911         (mips_reorg_process_insns): Force reorder mode for the R5900.
1912         * config/mips/mips.h (TARGET_MIPS5900): Define.
1913         (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
1914         TARGET_MIPS5900.
1915         (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
1916         TARGET_MIPS5900.
1917         * config/mips/mips.md (processor): Add r5900.
1918         (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
1920 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1922         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
1923         into function to generate MOVI instruction.
1924         * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
1925         (aarch64_preferred_simd_mode): Turn into wrapper.
1926         (aarch64_output_scalar_simd_mov_immediate): New function.
1927         * config/aarch64/aarch64-protos.h: Add prototype for above.
1929 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1931         * config/aarch64/aarch64.c (simd_immediate_info): Remove
1932         element_char member.
1933         (sizetochar): Return signed char.
1934         (aarch64_simd_valid_immediate): Remove elchar and other
1935         unnecessary variables.
1936         (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
1937         Calculate element_char as required.
1938         * config/aarch64/aarch64-protos.h: Update and move prototype
1939         for aarch64_output_simd_mov_immediate.
1940         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
1941         Update arguments.
1943 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1945         * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
1946         information completed by aarch64_simd_valid_immediate.
1947         (aarch64_legitimate_constant_p): Update arguments.
1948         (aarch64_simd_valid_immediate): Work with struct rather than many
1949         pointers.
1950         (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
1951         (aarch64_simd_make_constant): Update arguments.
1952         (aarch64_output_simd_mov_immediate): Work with struct rather than
1953         many pointers.  Output immediate directly rather than as operand.
1954         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
1955         Update prototype.
1956         * config/aarch64/constraints.md (Dn): Update arguments.
1958 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1960         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
1961         longer static.
1962         (aarch64_simd_immediate_valid_for_move): Remove.
1963         (aarch64_simd_scalar_immediate_valid_for_move): Update call.
1964         (aarch64_simd_make_constant): Update call.
1965         (aarch64_output_simd_mov_immediate): Update call.
1966         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
1967         Add prototype.
1968         * config/aarch64/constraints.md (Dn): Update call.
1970 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1972         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
1973         return type to bool for prototype.
1974         (aarch64_legitimate_constant_p): Check for true instead of not -1.
1975         (aarch64_simd_valid_immediate): Fix up each return to return a bool.
1976         (aarch64_simd_immediate_valid_for_move): Update retval for bool.
1978 2013-06-04  Catherine Moore  <clm@codesourcery.com>
1980         * config/mips/mips.opt (meva): New.
1981         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
1982         (ASM_SPEC): Handle -meva.
1983         * doc/invoke.texi (meva):  Document.
1985 2013-06-04  Alan Modra  <amodra@gmail.com>
1987         * config/rs6000/rs6000.c (output_toc): Correct little-endian float
1988         constant output.
1990 2013-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1992         * rtl.def: Add extra fourth optional field to define_cond_exec.
1993         * gensupport.c (process_one_cond_exec): Process attributes from
1994         define_cond_exec.
1995         * doc/md.texi: Document fourth field in define_cond_exec.
1997 2013-06-04  Eric Botcazou  <ebotcazou@adacore.com>
1999         * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
2000         out the processing order as in store_bit_field_1.
2002 2013-06-04  Jan Hubicka  <jh@suse.cz>
2004         PR middle-end/57500
2005         * cgraphunit.c (cgraph_process_same_body_aliases): Create
2006         non-VAR_DECL node if it does not exist yet.
2008 2013-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
2010         * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
2011         (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
2012         (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
2013         target_cpu_default setting.
2015 2013-06-03  Teresa Johnson  <tejohnson@google.com>
2017         * dumpfile.c (opt_info_switch_p): Change -fopt-info
2018         default to -fopt-info=optimized instead of all.
2019         * doc/invoke.texi: Ditto.
2020         * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
2021         success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
2022         (execute_vect_slp): Emit BB vectorization success under
2023         MSG_OPTIMIZED_LOCATIONS.
2024         * tree-vect-slp.c (vect_slp_transform_bb): Change
2025         MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
2026         * tree-vect-loop.c (vect_transform_loop): Ditto.
2028 2013-06-03  Jason Merrill  <jason@redhat.com>
2030         PR c++/57415
2031         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2032         Use TARGET_EXPR for C++.
2034 2013-06-03  Jakub Jelinek  <jakub@redhat.com>
2036         PR rtl-optimization/57268
2037         * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
2038         if DEBUG_INSN_P (insn).
2040         Reapply
2041         2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
2043         PR rtl-optimization/57268
2044         * sched-deps.c (sched_analyze_2): Flush dependence lists if
2045         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2047 2013-06-03  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
2049         * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
2050         (ix86_avoid_lea_for_addr): Likewise.
2051         (exact_dependency_1): Likewise.
2052         (ix86_adjust_cost): Likewise.
2053         (swap_top_of_ready_list): Fix formatting and !reload_completed check
2054         removed.
2055         (do_reorder_for_imul): Fix typo, formatting and
2056         !reload_completed check removed.
2057         (ix86_sched_reorder): Fix typo and formatting.
2058         (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
2059         list.
2061 2013-06-03  Sofiane Naci  <sofiane.naci@arm.com>
2063         * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
2065 2013-06-03  Eric Botcazou  <ebotcazou@adacore.com>
2067         * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
2068         <STRING_CST>: Likewise.
2069         <VECTOR_CST>: Likewise.
2071 2013-06-01  Janus Weil  <janus@gcc.gnu.org>
2072             Mikael Morin  <mikael@gcc.gnu.org>
2074         * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
2075         * config.in: Regenerated.
2076         * configure: Regenerated.
2078 2013-06-01  Jan Hubicka  <jh@suse.cz>
2080         PR middle-end/57366
2081         * cgraphunit.c (compile): When weakref is not supported,
2082         set up transparent aliases before final output pass.
2083         * varasm.c (assemble_alias): Do not try to do it here.
2085 2013-06-01  Jan Hubicka  <jh@suse.cz>
2087         PR middle-end/57467
2088         * passes.c (for_per_function): Skip unanalyzed functions.
2090 2013-06-01  Jan Hubicka  <jh@suse.cz>
2092         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
2093         (lto_symtab_merge_symbols_1): ... this one.
2094         (lto_symtab_merge_cgraph_nodes): Rename to ...
2095         (lto_symtab_merge_symbols): ... this one; simplify.
2096         * cgraph.c (same_body_aliases_done): Rename to ...
2097         (cpp_implicit_aliases_done): ... this one.
2098         (cgraph_create_function_alias): Update.
2099         (cgraph_same_body_alias): Update.
2100         (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
2101         (verify_edge_corresponds_to_fndecl): Simplify.
2102         * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
2103         (cgraph_node): Remove same_body_alias.
2104         (varpool_node): Remove alias_of and extra_name_alias.
2105         (same_body_aliases_done): Rename to ..
2106         (cpp_implicit_aliases_done): ... this one.
2107         (symtab_alias_ultimate_target): Add default parameter.
2108         (symtab_resolve_alias): New function.
2109         (fixup_same_cpp_alias_visibility): Declare.
2110         (cgraph_function_node): Add default parameter.
2111         (cgraph_node_asm_name): Likewise.
2112         (cgraph_function_or_thunk_node): Add default parameter; do
2113         not ICE when it is NULL.
2114         (varpool_variable_node): Likewise.
2115         * tree-emutls.c (create_emultls_var): Update.
2116         (ipa_lower_emutls): Update.
2117         * cgraphunit.c (cgraph_decide_is_function_needed): Update.
2118         (cgraph_reset_node): Reset alias info.
2119         (cgraph_finalize_function): Update.
2120         (fixup_same_cpp_alias_visibility): Move to symtab.c.
2121         (analyze_function): Simplify.
2122         (cgraph_process_same_body_aliases): Simplify.
2123         (analyze_functions): Fixup same body aliases.
2124         (handle_alias_pairs): Simplify.
2125         (assemble_thunk): Update.
2126         (assemble_thunks_and_aliases): Update.
2127         (output_weakrefs): Rewrite.
2128         * lto-cgraph.c (lto_output_node): Rewrite alias handling.
2129         (lto_output_varpool_node): Likewise.
2130         (compute_ltrans_boundary): Remve assert.
2131         (get_alias_symbol): New functoin.
2132         (input_node): Rewrite alias handling.
2133         (input_varpool_node): Likewise.
2134         * ipa-pure-const.c (propagate_pure_const): Fix formating.
2135         * ipa.c (process_references): Handle weakrefs correctly.
2136         (symtab_remove_unreachable_nodes): Likewise.
2137         * trans-mem.c (get_cg_data): Update.
2138         (ipa_tm_create_version_alias): Update.
2139         (ipa_tm_execute): Update.
2140         * symtab.c (dump_symtab_base): Dump aliases.
2141         (verify_symtab_base): Verify aliases.
2142         (symtab_node_availability): New function.
2143         (symtab_alias_ultimate_target): Simplify.
2144         (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
2145         handle all the fixup cases.
2146         (symtab_resolve_alias): New function.
2147         * passes.c (ipa_write_summaries): Handle weakrefs.
2148         * varpool.c (varpool_analyze_node): Simplify.
2149         (assemble_aliases): Update.
2150         (varpool_create_variable_alias): Simplify.
2151         (varpool_extra_name_alias): Simplify.
2152         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
2153         (lto_symtab_merge_symbols): ... this one.
2155 2013-06-01  Dinar Temirbulatov  <dinar@kugelworks.com>
2157         Revert
2158         PR rtl-optimization/57268
2159         * sched-deps.c (sched_analyze_2): Flush dependence lists if
2160         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2162 2013-06-01  Tobias Burnus  <burnus@net-b.de>
2164         Partially reverted:
2165         2013-05-31  Tobias Burnus  <burnus@net-b.de>
2167         PR middle-end/57073
2168         * tree-ssa-math-opts.c (execute_cse_sincos): Move check
2169         further up.
2171 2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
2173         PR rtl-optimization/57268
2174         * sched-deps.c (sched_analyze_2): Flush dependence lists if
2175         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2177 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
2179         * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
2180         unordered comparison operators when -fno-trapping-math is in effect
2181         on the e500.
2182         * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
2183         and implement unordered comparison operators properly on the e500.
2185 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
2187         * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
2188         for constant scalar integers.
2189         (simplify_relational_operation_1): Likewise.
2191 2013-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
2193         * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
2194         * config/rs6000/rs6000.md (cpu): Reorder.  Split long line.
2195         Fix comment.
2197 2013-05-31  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
2198             Igor Zamyatin  <igor.zamyatin@intel.com>
2200         Silvermont (SLM) architecture performance tuning.
2201         * config/i386/i386.h (enum ix86_tune_indices): Add
2202         X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
2203         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
2205         * config/i386/i386.c (initial_ix86_tune_features)
2206         <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
2207         (ix86_lea_outperforms): Handle Silvermont tuning.
2208         (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
2209         call.
2210         (ix86_use_lea_for_mov): Likewise.
2211         (ix86_avoid_lea_for_addr): Likewise.
2212         (ix86_lea_for_add_ok): Likewise.
2213         (exact_dependency_1): New function.
2214         (exact_store_load_dependency): Likewise.
2215         (ix86_adjust_cost): Handle Silvermont tuning.
2216         (do_reoder_for_imul): Likewise.
2217         (swap_top_of_ready_list): New function.
2218         (ix86_sched_reorder): Changed to handle Silvermont tuning.
2220         * config/i386/i386.md (peepholes that split memory operand in fp
2221         converts): New.
2223 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2225         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2226         Remove un-necessary braces.
2228 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2230         * config/aarch64/aarch64.c (aarch64_classify_symbol):
2231         Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
2233 2013-05-31  Tobias Burnus  <burnus@net-b.de>
2235         PR middle-end/57073
2236         * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
2238 2013-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2240         PR target/56315
2241         * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
2242         * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
2243         * config/arm/neon.md (iordi3_neon): Remove.
2244         (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
2245         * config/arm/predicates.md (imm_for_neon_logic_operand):
2246         Move to earlier in the file.
2247         (neon_logic_op2): Likewise.
2248         (arm_iordi_operand_neon): New predicate.
2250 2013-05-31  Richard Biener  <rguenther@suse.de>
2252         PR tree-optimization/57478
2253         PR tree-optimization/57453
2254         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
2255         are life as well.
2257 2013-05-31  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
2259         * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
2260         (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
2262 2013-05-30  Tobias Burnus  <burnus@net-b.de>
2263             Thomas Koenig  <tkoenig@gcc.gnu.org>
2265         PR middle-end/57073
2266         * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
2267         powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
2269 2013-05-30  Steven Bosscher  <steven@gcc.gnu.org>
2271         * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
2273 2013-05-30  Vladimir Makarov  <vmakarov@redhat.com>
2275         * target.def (register_usage_leveling_p): New hook.
2276         * targhooks.c (default_register_usage_leveling_p): New.
2277         * targhooks.h (default_register_usage_leveling_p): New prototype.
2278         * lra-assigns.c (register_usage_leveling_p): Use the hook.
2279         * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
2280         * doc/tm.texi: Update.
2281         * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
2283 2013-05-30  Ian Bolton  <ian.bolton@arm.com>
2285         * config/aarch64/aarch64.md (insv<mode>): New define_expand.
2286         (*insv_reg<mode>): New define_insn.
2288 2013-05-30  Joern Rennecke <joern.rennecke@embecosm.com>
2290         PR rtl-optimization/57439
2291         * postreload.c (move2add_valid_value_p): Check that we have
2292         a zero subreg_regno_offset when accessing the register in
2293         the requested mode.
2295 2013-05-30  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
2296             Igor Zamyatin  <igor.zamyatin@intel.com>
2298         Silvermont (SLM) architecture pipeline model, tuning and
2299         insn selection.
2300         * config.gcc: Add slm config options and target.
2302         * config/i386/slm.md: New.
2304         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
2306         * gcc/config/i386/i386-c.c (ix86_target_macros_internal):  New case
2307         PROCESSOR_SLM.
2308         (ix86_target_macros_internal): Likewise.
2310         * gcc/config/i386/i386.c (slm_cost): New cost.
2311         (m_SLM): New macro flag.
2312         (initial_ix86_tune_features): Set m_SLM.
2313         (x86_accumulate_outgoing_args): Likewise.
2314         (x86_arch_always_fancy_math_387): Likewise.
2315         (processor_target_table): Add slm cost.
2316         (cpu_names): Add slm cpu name.
2317         (x86_option_override_internal): Set SLM ISA.
2318         (ix86_issue_rate): New case PROCESSOR_SLM.
2319         (ia32_multipass_dfa_lookahead): Likewise.
2320         (fold_builtin_cpu): Add slm.
2322         * config/i386/i386.h (TARGET_SLM): New target macro.
2323         (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
2324         (processor_type): Add PROCESSOR_SLM.
2326         * config/i386/i386.md (cpu): Add new value "slm".
2327         (slm.md): Include slm.md.
2329 2013-05-30  Bernd Schmidt  <bernds@codesourcery.com>
2330             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
2332         * config/arm/arm-protos.h: Add and update function protos.
2333         * config/arm/arm.c (use_simple_return_p): New added.
2334         (thumb2_expand_return): Check simple_return flag.
2335         * config/arm/arm.md: Add simple_return and conditional simple_return.
2336         * config/arm/iterators.md: Add iterator for return and simple_return.
2338 2013-05-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
2340         * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
2341         (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
2342         (arm_emit_vfp_multi_reg_pop): Likewise.
2343         (thumb2_emit_ldrd_pop): Likewise.
2344         (arm_expand_epilogue): Add misc REG_CFA notes.
2345         (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
2347 2013-05-29  Lawrence Crowl  <crowl@google.com>
2349         * config/arm/t-arm: Update for below.
2351         * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
2352         Change type to hash_table.  Update dependent calls and types.
2354         * config/i386/t-cygming: Update for below.
2356         * config/i386/t-interix: Update for below.
2358         * config/i386/winnt.c (i386_pe_section_type_flags::htab):
2359         Change type to hash_table.  Update dependent calls and types.
2360         (i386_find_on_wrapper_list::wrappers): Likewise.
2362         * config/ia64/t-ia64: Update for below.
2364         * config/ia64/ia64.c (bundle_state_table):
2365         Change type to hash_table.  Update dependent calls and types.
2367         * config/mips/mips.c (mips_reorg_process_insns::htab):
2368         Change type to hash_table.  Update dependent calls and types.
2370         * config/sol2.c (solaris_comdat_htab):
2371         Change type to hash_table.  Update dependent calls and types.
2373         * config/t-sol2: Update for above.
2375 2013-05-29  Teresa Johnson  <tejohnson@google.com>
2377         * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
2378         functions are not yet marked as defined.
2380 2013-05-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
2381             Pat Haugen <pthaugen@us.ibm.com>
2382             Peter Bergner <bergner@vnet.ibm.com>
2384         * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
2385         instructions.
2386         (VEC_A): Likewise.
2387         (VEC_C): Likewise.
2388         (vrotl<mode>3): Likewise.
2389         (vashl<mode>3): Likewise.
2390         (vlshr<mode>3): Likewise.
2391         (vashr<mode>3): Likewise.
2393         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2394         support for power8 V2DI builtins.
2396         * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
2397         power8 V2DI builtins.
2398         (vupkhsw): Likewise.
2399         (vupklsw): Likewise.
2400         (vaddudm): Likewise.
2401         (vminsd): Likewise.
2402         (vmaxsd): Likewise.
2403         (vminud): Likewise.
2404         (vmaxud): Likewise.
2405         (vpkudum): Likewise.
2406         (vpksdss): Likewise.
2407         (vpkudus): Likewise.
2408         (vpksdus): Likewise.
2409         (vrld): Likewise.
2410         (vsld): Likewise.
2411         (vsrd): Likewise.
2412         (vsrad): Likewise.
2413         (vsubudm): Likewise.
2414         (vcmpequd): Likewise.
2415         (vcmpgtsd): Likewise.
2416         (vcmpgtud): Likewise.
2417         (vcmpequd_p): Likewise.
2418         (vcmpgtsd_p): Likewise.
2419         (vcmpgtud_p): Likewise.
2420         (vupkhsw): Likewise.
2421         (vupklsw): Likewise.
2422         (vaddudm): Likewise.
2423         (vmaxsd): Likewise.
2424         (vmaxud): Likewise.
2425         (vminsd): Likewise.
2426         (vminud): Likewise.
2427         (vpksdss): Likewise.
2428         (vpksdus): Likewise.
2429         (vpkudum): Likewise.
2430         (vpkudus): Likewise.
2431         (vrld): Likewise.
2432         (vsld): Likewise.
2433         (vsrad): Likewise.
2434         (vsrd): Likewise.
2435         (vsubudm): Likewise.
2437         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
2438         support for power8 V2DI instructions.
2440         * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
2441         power8 V2DI instructions.  Combine pack and unpack insns to use an
2442         iterator for each mode.  Check whether a particular mode supports
2443         Altivec instructions instead of just checking TARGET_ALTIVEC.
2444         (UNSPEC_VPKUWUM): Likewise.
2445         (UNSPEC_VPKSHSS): Likewise.
2446         (UNSPEC_VPKSWSS): Likewise.
2447         (UNSPEC_VPKUHUS): Likewise.
2448         (UNSPEC_VPKSHUS): Likewise.
2449         (UNSPEC_VPKUWUS): Likewise.
2450         (UNSPEC_VPKSWUS): Likewise.
2451         (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
2452         (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
2453         (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
2454         (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
2455         (UNSPEC_VUPKHSB): Likewise.
2456         (UNSPEC_VUNPACK_HI_SIGN): Likewise.
2457         (UNSPEC_VUNPACK_LO_SIGN): Likewise.
2458         (UNSPEC_VUPKHSH): Likewise.
2459         (UNSPEC_VUPKLSB): Likewise.
2460         (UNSPEC_VUPKLSH): Likewise.
2461         (VI2): Likewise.
2462         (VI_char): Likewise.
2463         (VI_scalar): Likewise.
2464         (VI_unit): Likewise.
2465         (VP): Likewise.
2466         (VP_small): Likewise.
2467         (VP_small_lc): Likewise.
2468         (VU_char): Likewise.
2469         (add<mode>3): Likewise.
2470         (altivec_vaddcuw): Likewise.
2471         (altivec_vaddu<VI_char>s): Likewise.
2472         (altivec_vadds<VI_char>s): Likewise.
2473         (sub<mode>3): Likewise.
2474         (altivec_vsubcuw): Likewise.
2475         (altivec_vsubu<VI_char>s): Likewise.
2476         (altivec_vsubs<VI_char>s): Likewise.
2477         (altivec_vavgs<VI_char>): Likewise.
2478         (altivec_vcmpbfp): Likewise.
2479         (altivec_eq<mode>): Likewise.
2480         (altivec_gt<mode>): Likewise.
2481         (altivec_gtu<mode>): Likewise.
2482         (umax<mode>3): Likewise.
2483         (smax<mode>3): Likewise.
2484         (umin<mode>3): Likewise.
2485         (smin<mode>3): Likewise.
2486         (altivec_vpkuhum): Likewise.
2487         (altivec_vpkuwum): Likewise.
2488         (altivec_vpkshss): Likewise.
2489         (altivec_vpkswss): Likewise.
2490         (altivec_vpkuhus): Likewise.
2491         (altivec_vpkshus): Likewise.
2492         (altivec_vpkuwus): Likewise.
2493         (altivec_vpkswus): Likewise.
2494         (altivec_vpks<VI_char>ss): Likewise.
2495         (altivec_vpks<VI_char>us): Likewise.
2496         (altivec_vpku<VI_char>us): Likewise.
2497         (altivec_vpku<VI_char>um): Likewise.
2498         (altivec_vrl<VI_char>): Likewise.
2499         (altivec_vsl<VI_char>): Likewise.
2500         (altivec_vsr<VI_char>): Likewise.
2501         (altivec_vsra<VI_char>): Likewise.
2502         (altivec_vsldoi_<mode>): Likewise.
2503         (altivec_vupkhsb): Likewise.
2504         (altivec_vupkhs<VU_char>): Likewise.
2505         (altivec_vupkls<VU_char>): Likewise.
2506         (altivec_vupkhsh): Likewise.
2507         (altivec_vupklsb): Likewise.
2508         (altivec_vupklsh): Likewise.
2509         (altivec_vcmpequ<VI_char>_p): Likewise.
2510         (altivec_vcmpgts<VI_char>_p): Likewise.
2511         (altivec_vcmpgtu<VI_char>_p): Likewise.
2512         (abs<mode>2): Likewise.
2513         (vec_unpacks_hi_v16qi): Likewise.
2514         (vec_unpacks_hi_v8hi): Likewise.
2515         (vec_unpacks_lo_v16qi): Likewise.
2516         (vec_unpacks_hi_<VP_small_lc>): Likewise.
2517         (vec_unpacks_lo_v8hi): Likewise.
2518         (vec_unpacks_lo_<VP_small_lc>): Likewise.
2519         (vec_pack_trunc_v8h): Likewise.
2520         (vec_pack_trunc_v4si): Likewise.
2521         (vec_pack_trunc_<mode>): Likewise.
2523         * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
2524         V2DI builtins.
2525         (vec_vmaxsd): Likewise.
2526         (vec_vmaxud): Likewise.
2527         (vec_vminsd): Likewise.
2528         (vec_vminud): Likewise.
2529         (vec_vpksdss): Likewise.
2530         (vec_vpksdus): Likewise.
2531         (vec_vpkudum): Likewise.
2532         (vec_vpkudus): Likewise.
2533         (vec_vrld): Likewise.
2534         (vec_vsld): Likewise.
2535         (vec_vsrad): Likewise.
2536         (vec_vsrd): Likewise.
2537         (vec_vsubudm): Likewise.
2538         (vec_vupkhsw): Likewise.
2539         (vec_vupklsw): Likewise.
2541 2013-05-29  Jan Hubicka  <jh@suse.cz>
2543         * cgraph.h (symtab_node_base): Add definition, alias and analyzed
2544         flags; reorder rest of fields in more consistent way.
2545         (varpool_node): Remove analyzed, finalized and alias.
2546         (cgraph_ndoe): Likewise.
2547         (symtab_alias_ultimate_target): New function.
2548         (cgraph_function_node): Move offline.
2549         (cgraph_reset_node): Declare.
2550         (cgraph_comdat_can_be_unshared_p): Remove.
2551         (varpool_remove_initializer): Declare.
2552         (varpool_first_defined_variable, varpool_next_defined_variable
2553         cgraph_first_defined_function, cgraph_next_defined_function): Update.
2554         (cgraph_function_with_gimple_body_p): Update.
2555         (varpool_all_refs_explicit_p): Update.
2556         (symtab_alias_target): New function.
2557         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
2558         (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
2559         (cgraph_function_or_thunk_node): Simplify using
2560         symtab_alias_ultimate_target.
2561         (varpool_variable_node): Likewise.
2562         * cgraph.c (cgraph_create_function_alias): Update.
2563         (cgraph_add_thunk): Update.
2564         (cgraph_remove_node): Update.
2565         (dump_cgraph_node): Do not dump removed flags.
2566         (cgraph_function_body_availability): Update.
2567         (cgraph_propagate_frequency): Update.
2568         (verify_cgraph_node): Check sanity of local flag.
2569         (cgraph_function_node): Move here from cgraph.h; revamp for
2570         cgraph_function_or_thunk_node.
2571         * lto-symtab.c (lto_varpool_replace_node): Update.
2572         (lto_symtab_resolve_can_prevail_p): Update.
2573         (lto_symtab_merge_cgraph_nodes): Update.
2574         * ipa-cp.c (determine_versionability, initialize_node_lattices,
2575         propagate_constants_accross_call, devirtualization_time_bonus,
2576         ipcp_propagate_stage): Update.
2577         * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
2578         * ipa-inline-transform.c (clone_inlined_nodes,
2579         preserve_function_body_p): Update.
2580         * ipa-reference.c (propagate): Update.
2581         (write_node_summary_p): Update.
2582         * toplev.c (wrapup_global_declaration_2): Update.
2583         * cgraphunit.c (cgraph_analyze_function): Rename to ...
2584         (analyze_function) ... this one.
2585         (cgraph_process_new_functions): Update.
2586         (cgraph_reset_node): Export.
2587         (cgraph_finalize_function): Update.
2588         (cgraph_add_new_function): Update.
2589         (process_function_and_variable_attributes): Update.
2590         (varpool_finalize_decl): Update.
2591         (symbol_finalized): Remove.
2592         (symbol_finalized_and_needed): Rename to ...
2593         (symbol_defined_and_needed): ... update.
2594         (cgraph_analyze_functions): Update.
2595         (handle_alias_pairs): Update.
2596         (mark_functions_to_output): Update.
2597         (assemble_thunk): Update.
2598         (output_in_order): Update.
2599         (output_weakrefs): Update.
2600         (finalize_compilation_unit): Update.
2601         * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
2602         lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
2603         input_node, input_varpool_node): Update.
2604         * dbxout.c (dbxout_expand_expr): Update.
2605         * cgraphclones.c (cgraph_clone_node): Update.
2606         (cgraph_copy_node_for_versioning): Update.
2607         (cgraph_materialize_clone): Update.
2608         (cgraph_materialize_all_clones): Update.
2609         * ipa-pure-const.c (analyze_function, pure_const_write_summary,
2610         propagate_pure_const, propagate_nothrow): Update.
2611         * lto-streamer-out.c (lto_output, write_symbol): Update.
2612         * ipa-utils.c (ipa_reverse_postorder): Update.
2613         * ipa-inline.c (can_inline_edge_p): Update.
2614         (update_caller_keys, ipa_inline): Update.
2615         * dwarf2out.c (reference_to_unused,
2616         premark_types_used_by_global_vars_helper): Update.
2617         * tree-eh.c (tree_could_trap_p): Update.
2618         * ipa-split.c (consider_split, execute_split_functions): Update.
2619         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
2620         has_addr_references_p): Update; move ahead in file for better
2621         readability.
2622         (process_references): Simplify.
2623         (symtab_remove_unreachable_nodes): Update; cleanup way function/var
2624         bodies are removed.
2625         (cgraph_comdat_can_be_unshared_p): Make static.
2626         (cgraph_externally_visible_p): Update.
2627         (varpool_externally_visible_p): Update.
2628         (function_and_variable_visibility): Update.
2629         * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
2630         ipa_tm_mark_force_output_node): Update.
2631         * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
2632         estimate_edge_devirt_benefit, inline_generate_summary,
2633         inline_write_summary): Update.
2634         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
2635         * ipa-prop.c (ipa_compute_jump_functions): Update.
2636         (ipa_print_node_params, ipa_prop_read_section,
2637         ipa_update_after_lto_read, read_replacements_section): Update.
2638         * varasm.c (mark_decl_referenced): Update.
2639         (assemble_alias, dump_tm_clone_pairs): Update.
2640         * tree-inline.c (copy_bb): Update.
2641         (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
2642         Update.
2643         * symtab.c (dump_symtab_base): Print new flags.
2644         (verify_symtab_base): Verify new flags.
2645         (symtab_alias_ultimate_target): New function.
2646         * tree-ssa-structalias.c (get_constraint_for_ssa_var,
2647         create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
2648         Update.
2649         * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
2650         Update.
2651         * i386.c (ix86_get_function_versions_dispatcher,
2652         ix86_generate_version_dispatcher_body): Update.
2653         (fold_builtin_cpu): Use varpool_add_new_variable.
2654         * varpool.c (varpool_remove_initializer): Break out from ...
2655         (varpool_remove_node): ... this one.
2656         (dump_varpool_node, varpool_node_for_asm,
2657         cgraph_variable_initializer_availability, varpool_analyze_node,
2658         varpool_assemble_decl, varpool_remove_unreferenced_decls,
2659         varpool_finalize_named_section_flags, varpool_create_variable_alias):
2660         Update.
2662 2013-05-29  Jan Hubicka  <jh@suse.cz>
2664         * passes.c (init_optimization_passes): Move OMP expansion into lowering.
2666 2013-05-29  Easwaran Raman  <eraman@google.com>
2668         PR tree-optimization/57442
2669         * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
2670         when control exits the main loop.
2672 2013-05-29  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
2674         * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
2675         and RX600.
2676         * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
2677         * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
2678         * rx/t-rx: Add rx100 under multi library matches option for nofpu
2679         option.
2681 2013-05-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2683         PR tree-optimization/57441
2684         * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
2685         Don't limit size of incr_vec to number of candidates.
2687 2013-05-29  Steve Ellcey  <sellcey@imgtec.com>
2689         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
2690         and mips16 directories.
2691         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
2692         (MULTILIB_DIRNAMES): Ditto.
2693         (MULTILIB_EXCEPTIONS): Add new exceptions.
2694         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
2695         (MULTILIB_DIRNAMES): Ditto.
2696         (MULTILIB_EXCEPTIONS): Add new exceptions.
2698 2012-05-29  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2699             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2701         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
2702         SYMBOL_TINY_ABSOLUTE.
2703         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
2704         SYMBOL_TINY_ABSOLUTE.
2705         (aarch64_expand_mov_immediate): Likewise.
2706         (aarch64_classify_symbol): Likewise.
2707         (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
2708         Permit SYMBOL_TINY_ABSOLUTE.
2709         * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
2711 2013-05-29  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2712             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2714         * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
2715         Refactor if/switch.  Replace gcc_assert with if.
2717 2013-05-29  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
2719         * config/i386/i386.c (initial_ix86_tune_features): Enable
2720         FP Reassociation for AMD bdver1 and bdver2.
2722 2013-05-29  Martin Jambor  <mjambor@suse.cz>
2724         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
2725         and IMAGPART_EXPR do not occur within other handled_components.
2727 2013-05-29  Richard Biener  <rguenther@suse.de>
2729         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
2730         access on whether the use is in the BB we currently try to
2731         vectorize.
2732         (vect_bb_vectorization_profitable_p): Pass the BB we currently
2733         vectorize to vect_bb_slp_scalar_cost.
2735 2013-05-29  Richard Biener  <rguenther@suse.de>
2737         * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
2738         computing scalar cost offsetted by stmts that are kept live
2739         by scalar uses.
2740         (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
2741         for computation of scalar cost.
2743 2013-05-28  Steve Ellcey  <sellcey@mips.com>
2745         * config/mips/mips-cpus.def (mips32r2): Change processor type.
2747 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2749         * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
2750         array notation built-in reduction functions.
2751         * doc/passes.texi (Passes): Added documentation about changes done
2752         for Cilk Plus.
2753         * doc/invoke.texi (C Dialect Options): Added documentation about
2754         the -fcilkplus flag.
2755         * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
2756         (BUILTINS_DEF): Depend on cilkplus.def.
2757         * builtins.def: Include cilkplus.def.  Define DEF_CILKPLUS_BUILTIN.
2758         * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
2759         * cilkplus.def: New file.
2761 2013-05-28  Joern Rennecke <joern.rennecke@embecosm.com>
2763         PR rtl-optimization/57439
2764         * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
2766 2013-05-28  Easwaran Raman  <eraman@google.com>
2768         PR tree-optimization/57337
2769         * tree-ssa-reassoc.c (appears_later_in_bb): New function.
2770         (find_insert_point): Correctly identify the insertion point
2771         when two statements with the same UID is compared.
2773 2013-05-28  Richard Biener  <rguenther@suse.de>
2775         PR tree-optimization/56787
2776         * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
2777         from the list of data references.
2778         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
2779         clobbers.
2780         (vect_analyze_loop_operations): Likewise.
2781         (vect_transform_loop): Remove clobbers.
2783 2013-05-28  Martin Jambor  <mjambor@suse.cz>
2785         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
2786         and REALPART_EXPRs have scalar type.
2788 2013-05-28  Richard Biener  <rguenther@suse.de>
2790         PR tree-optimization/57411
2791         * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
2792         virtual operands.
2793         * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
2794         virtual operand propagation.
2796 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
2798         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
2799         destination register for bmasksi_vis.
2800         (vector_init_bshuffle): Likewise.
2801         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
2803 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
2805         * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
2806         * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
2807         mode if the instruction isn't available in the original mode.
2808         * config/sparc/sparc.opt (mfix-ut699): New option.
2809         * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
2810         (divdf3): Turn into expander.
2811         (divdf3_nofix): New insn.
2812         (divdf3_fix): Likewise.
2813         (divsf3): Disable if -mfix-ut699.
2814         (sqrtdf2): Turn into expander.
2815         (sqrtdf2_nofix): New insn.
2816         (sqrtdf2_fix): Likewise.
2817         (sqrtsf2): Disable if -mfix-ut699.
2819 2013-05-27  Richard Biener  <rguenther@suse.de>
2821         PR middle-end/57412
2822         * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
2823         block for the new loop.
2825 2013-05-27  Richard Biener  <rguenther@suse.de>
2827         PR tree-optimization/57343
2828         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
2829         use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
2830         (number_of_iterations_cond): Do not build the folded tree.
2832 2013-05-27  Richard Biener  <rguenther@suse.de>
2834         Revert
2835         PR middle-end/57381
2836         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
2837         OEP_CONSTANT_ADDRESS_OF retained.
2839         PR tree-optimization/57417
2840         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
2841         for unchanged base.
2842         (set_ssa_val_to): Compare addresses using
2843         get_addr_base_and_unit_offset.
2845 2013-05-27  Joern Rennecke <joern.rennecke@embecosm.com>
2847         PR rtl-optimization/56833
2848         * postreload.c (move2add_record_mode): New function.
2849         (move2add_record_sym_value, move2add_valid_value_p): Likewise.
2850         (move2add_use_add2_insn): Use move2add_record_sym_value.
2851         (move2add_use_add3_insn): Likewise.
2852         (reload_cse_move2add): Use move2add_valid_value_p and
2853         move2add_record_mode.  Invalidate call-clobbered and REG_INC
2854         affected regs by setting reg_mode to VOIDmode.
2855         (move2add_note_store): Don't pretend the inside of a SUBREG is
2856         the actual destination.  Invalidate single/leading registers by
2857         setting reg_mode to VOIDmode.
2858         Use move2add_record_sym_value, move2add_valid_value_p and
2859         move2add_record_mode.
2861 2013-05-27  Richard Biener  <rguenther@suse.de>
2863         PR tree-optimization/57396
2864         * tree-affine.c (double_int_constant_multiple_p): Properly
2865         return false for val == 0 and div != 0.
2867 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
2869         * config/mips/mips.h: Use #elif in preprocessor conditions.
2871 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
2873         PR target/53916
2874         * config/mips/constraints.md (kl): New constraint.
2875         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
2876         (divmod<mode>4_internal): Rename to divmod<mode>4.  Use "kl" as the
2877         constraint for operand 0.  Split after CSE for MIPS16.  Emit a move
2878         from LO for MIPS16.
2879         (udivmod<mode>4_internal): Likewise udivmod<mode>4.
2881 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
2883         PR target/55777
2884         * config/mips/mips.c (mips_can_inline_p): New function.
2885         (TARGET_CAN_INLINE_P): Define.
2887 2013-05-25  Steven Bosscher  <steven@gcc.gnu.org>
2889         * sched-int.h (ds_t, dw_t): Make unsigned int.
2890         Fix documentation that describes how all the ds_t bits are used.
2891         Reserve the last bit for delayed-branch scheduling.
2892         (BITS_PER_DEP_STATUS): Move to ds_t typedef.
2893         (BITS_PER_DEP_WEAK): Fix definition and documentation.
2894         (gen_dep_weak_1): Remove prototype.
2895         * sched-deps.c (get_dep_weak_1): Make static.
2896         * target.def (speculate_insn, needs_block_p, gen_spec_check,
2897         get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
2898         * doc/tm.texi: Regenerate.
2899         * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
2901 2013-05-24  Steven Bosscher  <steven@gcc.gnu.org>
2903         PR debug/56950
2904         * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
2906 2013-05-24  Nathan Sidwell  <nathan@codesourcery.com>
2907             Sandra Loosemore  <sandra@codesourcery.com>
2909         * config.gcc (powerpc-*): Allow native for with-cpu.
2911 2013-05-24  Jeff Law  <law@redhat.com>
2913         PR tree-optimization/57124
2914         * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
2915         conversion feeding a condition if the range has an overflow
2916         if -fstrict-overflow.  Add warnings for when we do make the
2917         transformation.
2919 2013-05-24  Dehao Chen  <dehao@google.com>
2921         * tree-cfg.c (locus_discrim_map): Fix the typo.
2922         (locus_discrim_hasher): Likewise.
2923         (locus_discrim_hasher::hash): Likewise.
2924         (locus_discrim_hasher::equal): Likewise.
2926 2013-05-24  Martin Jambor  <mjambor@suse.cz>
2928         PR tree-optimization/57294
2929         * cgraph.h (ipa_record_stmt_references): Declare.
2930         * cgraphbuild.c (ipa_record_stmt_references): New function.
2931         (build_cgraph_edges): Use ipa_record_stmt_references.
2932         (rebuild_cgraph_edges): Likewise.
2933         (cgraph_rebuild_references): Likewise.
2934         * ipa-prop.c (ipa_modify_call_arguments): Discard references
2935         associated with the old statement and build references from the
2936         newly built statements.
2937         * ipa-ref.c (ipa_remove_stmt_references): New function.
2938         * ipa-ref.h (ipa_remove_stmt_references): Declare.
2940 2013-05-24  Vladimir Makarov  <vmakarov@redhat.com>
2942         * lra-constraints.c (emit_spill_move): Use smaller mode for
2943         mem-mem moves.
2944         (check_and_process_move): Consider mem-reg moves for secondary
2945         too.
2946         (curr_insn_transform): Don't lose insns emitted before for
2947         secondary memory moves.
2948         (inherit_in_ebb): Mark defined reg.  Add usage only if it is not a
2949         reg set up in the current insn.
2951 2013-05-24  Dehao Chen  <dehao@google.com>
2953         * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
2954         hash function.
2955         (locus_descrim_hasher::equal): Likewise.
2956         (build_gimple_cfg): New discriminator assignment algorithm.
2957         (make_edges): Likewise.
2958         (next_discriminator_for_locus): Likewise.
2959         (same_line_p): Likewise.
2960         (assign_discriminators): Likewise.
2961         (make_cond_expr_edges): Likewise.
2962         (make_gimple_switch_edges): Likewise.
2963         (make_goto_expr_edges): Likewise.
2964         (make_gimple_asm_edges): Likewise.
2966 2013-05-24  Ian Bolton  <ian.bolton@arm.com>
2968         * config/aarch64/aarch64.c (aarch64_print_operand): Change the
2969         X format specifier to only display bottom 16 bits.
2970         * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
2971         immediate to match for operand 2, since it will be masked.
2973 2013-05-24  Richard Biener  <rguenther@suse.de>
2975         PR tree-optimization/57287
2976         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
2977         all SSA names that occur in abnormal PHIs.
2979 2013-05-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2981         PR tree-ssa/57385
2982         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
2983         that index is not negative.
2985 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
2987         PR rtl-optimization/55177
2988         * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
2989         (simplify_byte_swapping_operation): New.
2990         (simplify_binary_operation_1): Call it for AND, IOR and XOR.
2991         (simplify_relational_operation_1): Deal with BSWAP.
2993 2013-05-23  Richard Henderson  <rth@redhat.com>
2995         PR target/56742
2996         * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
2997         (ix86_reorg): Call it.
2999 2013-05-23  Uros Bizjak  <ubizjak@gmail.com>
3001         PR target/57379
3002         * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
3003         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
3004         REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
3006 2013-05-23  Christian Bruel  <christian.bruel@st.com>
3008         PR debug/57351
3009         * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
3011 2013-05-23  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3012             Marcus Shawcroft  <marcus.shawcroft@arm.com>
3014         * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
3015         * config/aarch64/constraints.md (Usa): Remove.
3016         * doc/md.texi (AArch64 Usa): Remove.
3018 2013-05-23  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3019             Marcus Shawcroft  <marcus.shawcroft@arm.com>
3021         * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
3022         * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
3023         * config/aarch64/predicates.md (aarch64_const_address): Remove.
3024         (aarch64_mov_operand): Use aarch64_mov_operand_p.
3026 2013-05-23  Vidya Praveen <vidyapraveen@arm.com>
3028         * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
3029         instruction (AdvSIMD).
3030         * config/aarch64/aarch64-builtins.c
3031         (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
3032         * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
3034 2013-05-23  Martin Jambor  <mjambor@suse.cz>
3036         PR middle-end/57347
3037         * tree.h (contains_bitfld_component_ref_p): Declare.
3038         * tree-sra.c (contains_bitfld_comp_ref_p): Move...
3039         * tree.c (contains_bitfld_component_ref_p): ...here.  Adjust its
3040         caller.
3041         * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
3042         not access a bit-field.  Assert all final offsets are byte-aligned.
3044 2013-05-23  Richard Biener  <rguenther@suse.de>
3046         PR tree-optimization/57380
3047         * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
3048         least one invariant or re-used load.
3049         * passes.c (init_optimization_passes): Move pass_phiprop before
3050         pass_forwprop.
3052 2013-05-23  James Greenhalgh  <james.greenhalgh@arm.com>
3054         * config/aarch64/aarch64-simd.md
3055         (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
3057 2013-05-23  Richard Biener  <rguenther@suse.de>
3059         PR middle-end/57381
3060         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
3061         OEP_CONSTANT_ADDRESS_OF retained.
3063 2013-05-23  Jakub Jelinek  <jakub@redhat.com>
3065         PR middle-end/57344
3066         * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
3067         don't lower unit.  Handle unit not being always BITS_PER_WORD.
3069 2013-05-23  Richard Biener  <rguenther@suse.de>
3071         PR rtl-optimization/57341
3072         * ira.c (validate_equiv_mem_from_store): Use anti_dependence
3073         instead of true_dependence.
3075 2013-05-22  David Malcolm  <dmalcolm@redhat.com>
3077         * bb-reorder.c (branch_threshold): Make const.
3078         (exec_threshold): Ditto.
3080 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
3081             Pat Haugen <pthaugen@us.ibm.com>
3082             Peter Bergner <bergner@vnet.ibm.com>
3084         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
3085         documentation for the power8 crypto builtins.
3087         * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
3089         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
3090         macros for defining power8 builtin functions.
3091         (BU_P8V_AV_2): Likewise.
3092         (BU_P8V_AV_P): Likewise.
3093         (BU_P8V_VSX_1): Likewise.
3094         (BU_P8V_OVERLOAD_1): Likewise.
3095         (BU_P8V_OVERLOAD_2): Likewise.
3096         (BU_CRYPTO_1): Likewise.
3097         (BU_CRYPTO_2): Likewise.
3098         (BU_CRYPTO_3): Likewise.
3099         (BU_CRYPTO_OVERLOAD_1): Likewise.
3100         (BU_CRYPTO_OVERLOAD_2): Likewise.
3101         (XSCVSPDP): Fix typo, point to the correct instruction.
3102         (VCIPHER): Add power8 crypto builtins.
3103         (VCIPHERLAST): Likewise.
3104         (VNCIPHER): Likewise.
3105         (VNCIPHERLAST): Likewise.
3106         (VPMSUMB): Likewise.
3107         (VPMSUMH): Likewise.
3108         (VPMSUMW): Likewise.
3109         (VPERMXOR_V2DI): Likewise.
3110         (VPERMXOR_V4SI: Likewise.
3111         (VPERMXOR_V8HI: Likewise.
3112         (VPERMXOR_V16QI: Likewise.
3113         (VSHASIGMAW): Likewise.
3114         (VSHASIGMAD): Likewise.
3115         (VPMSUM): Likewise.
3116         (VPERMXOR): Likewise.
3117         (VSHASIGMA): Likewise.
3119         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
3120         __CRYPTO__ if the crypto instructions are available.
3121         (altivec_overloaded_builtins): Add support for overloaded power8
3122         builtins.
3124         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
3125         support for power8 crypto builtins.
3126         (builtin_function_type): Likewise.
3127         (altivec_init_builtins): Add support for builtins that take vector
3128         long long (V2DI) arguments.
3130         * config/rs6000/crypto.md: New file, define power8 crypto
3131         instructions.
3133 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
3134             Pat Haugen <pthaugen@us.ibm.com>
3135             Peter Bergner <bergner@vnet.ibm.com>
3137         * doc/invoke.texi (Option Summary): Add power8 options.
3138         (RS/6000 and PowerPC Options): Likewise.
3140         * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
3141         constraints.md instead of rs6000.h.  Reorder w* constraints.  Add
3142         wm, wn, wr documentation.
3144         * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
3145         registers if direct move instructions are enabled.
3146         (wn): New constraint for no registers.
3147         (wq): New constraint for quad word even GPR registers.
3148         (wr): New constraint if 64-bit instructions are enabled.
3149         (wv): New constraint if power8 vector instructions are enabled.
3150         (wQ): New constraint for quad word memory locations.
3152         * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
3153         constraint for 0..15 for crypto instructions.
3154         (gpc_reg_operand): If VSX allow registers in VSX registers as well
3155         as GPR and floating point registers.
3156         (int_reg_operand): New predicate to match only GPR registers.
3157         (base_reg_operand): New predicate to match base registers.
3158         (quad_int_reg_operand): New predicate to match even GPR registers
3159         for quad memory operations.
3160         (vsx_reg_or_cint_operand): New predicate to allow vector logical
3161         operations in both GPR and VSX registers.
3162         (quad_memory_operand): New predicate for quad memory operations.
3163         (reg_or_indexed_operand): New predicate for direct move support.
3165         * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
3166         Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
3167         (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
3168         (POWERPC_MASKS): Add power8 options.
3169         (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
3170         various options.
3172         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
3173         Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
3175         * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
3176         (-mpower8-fusion): New power8 options.
3177         (-mpower8-fusion-sign): Likewise.
3178         (-mpower8-vector): Likewise.
3179         (-mcrypto): Likewise.
3180         (-mdirect-move): Likewise.
3181         (-mquad-memory): Likewise.
3183         * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
3184         power8.
3185         (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
3186         registers.
3187         (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
3188         (rs6000_debug_vector_unit): Add p8_vector.
3189         (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
3190         definitions.  Also print fusion state.
3191         (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
3192         (rs6000_builtin_mask_calculate): Add power8 builtin support.
3193         (rs6000_option_override_internal): Add support for power8.
3194         (rs6000_common_init_builtins): Add debugging for skipped builtins
3195         if -mdebug=builtin.
3196         (rs6000_adjust_cost): Add power8 support.
3197         (rs6000_issue_rate): Likewise.
3198         (insn_must_be_first_in_group): Likewise.
3199         (insn_must_be_last_in_group): Likewise.
3200         (force_new_group): Likewise.
3201         (rs6000_register_move_cost): Likewise.
3202         (rs6000_opt_masks): Likewise.
3204         * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
3205         power8 capable assembler, default to power7 options.
3206         (TARGET_DIRECT_MOVE): Likewise.
3207         (TARGET_CRYPTO): Likewise.
3208         (TARGET_P8_VECTOR): Likewise.
3209         (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
3210         (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
3211         (VECTOR_MEM_P8_VECTOR_P): Likewise.
3212         (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
3213         (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
3214         (TARGET_XSCVDPSPN): Likewise.
3215         (TARGET_XSCVSPDPN): Likewsie.
3216         (TARGET_SYNC_HI_QI): Likewise.
3217         (TARGET_SYNC_TI): Likewise.
3218         (MASK_CRYPTO): Likewise.
3219         (MASK_DIRECT_MOVE): Likewise.
3220         (MASK_P8_FUSION): Likewise.
3221         (MASK_P8_VECTOR): Likewise.
3222         (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
3223         temporary used by some of the direct move instructions to get two FP
3224         temporary registers does not force creation of a stack frame.
3225         (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
3226         (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
3227         that any VSX registers are tieable, even if they are also an
3228         Altivec vector mode.
3229         (r6000_reg_class_enum): Add wm, wr, wv constraints.
3230         (RS6000_BTM_P8_VECTOR): Power8 builtin support.
3231         (RS6000_BTM_CRYPTO): Likewise.
3232         (RS6000_BTM_COMMON): Likewise.
3234         * config/rs6000/rs6000.md (cpu attribute): Add power8.
3235         * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
3236         (enum rs6000_vector): Add power8 vector support.
3238 2013-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3240         PR target/19599
3241         PR target/57340
3242         * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
3243         (any_sibcall_could_use_r3): this and handle indirect calls.
3244         (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
3246 2013-05-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3248         * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
3250 2013-05-22  Richard Biener  <rguenther@suse.de>
3252         PR middle-end/57349
3253         * profile.c (branch_prob): Do not split blocks that are
3254         abnormally receiving from ECF_RETURNS_TWICE functions.
3256 2013-05-22  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
3258         * recog.c (offsettable_address_addr_space_p): Fix calculation of
3259         address mode.  Move pointer mode initialization to the same place.
3261 2013-05-22  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3263         * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
3264         while it has any effect.
3266 2013-05-21  Easwaran Raman  <eraman@google.com>
3268         PR tree-optimization/57322
3269         * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
3270         UID of the statement added to the BB to be 1.
3272 2013-05-21  Jakub Jelinek  <jakub@redhat.com>
3274         PR tree-optimization/57331
3275         * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
3276         of conversion from pointer type to integral type with integer.
3278 2013-05-21  Martin Jambor  <mjambor@suse.cz>
3280         PR lto/57289
3281         * ipa-prop.c (ipa_read_node_info): Process param_used and
3282         controlled_uses in the same order as when writing.
3284 2013-05-21  Magnus Granberg  <baldrick@free.fr>
3286         PR plugins/56754
3287         * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
3289 2013-05-21  Richard Biener  <rguenther@suse.de>
3291         PR tree-optimization/57318
3292         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
3293         estimate stmts with side-effects as likely eliminated.
3295 2013-05-21  Richard Biener  <rguenther@suse.de>
3297         PR tree-optimization/57330
3298         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
3299         preserve the call stmts fntype.
3301 2013-05-21  Richard Biener  <rguenther@suse.de>
3303         PR tree-optimization/57303
3304         * tree-ssa-sink.c (statement_sink_location): Improve killing
3305         stmt detection and properly handle self-assignments.
3307 2013-05-21  Christian Bruel  <christian.bruel@st.com>
3309         * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
3310         spanning registers. LEAF_REG_REMAP is supported only for contiguous
3311         registers. Set register size out of the PARALLEL loop.
3313 2013-05-20  Oleg Endo  <olegendo@gcc.gnu.org>
3315         PR target/56547
3316         * config/sh/sh.md (fmasf4): Remove empty constraints strings.
3317         (*fmasf4, *fmasf4_media): New insns.
3319 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
3321         * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
3322         * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
3323         (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
3324         (mips_idiv_insns): Update the comments to say that the returned
3325         instruction counts are in units of BASE_INSN_LENGTH.
3326         (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
3327         by BASE_INSN_LENGTH rather than 4.  Add the jump separately,
3328         using 2 rather than 4 as the length of indirect MIPS16 and
3329         microMIPS jumps.  Use NOP_INSN_LENGTH rather than 4 as the
3330         length of a NOP.  Don't divide MIPS16 lengths by 2.
3331         (mips16_split_long_branches): Assume a branch is long if the
3332         length is greater than 4 rather than 8.
3333         * config/mips/mips.md (length): Give MIPS16 lengths directly,
3334         rather than multiplying them by 2.  Multiply instruction counts
3335         by BASE_INSN_LENGTH rather than 4.
3336         (*jump_mips16, tls_get_tp_mips16_<mode>)
3337         (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
3339 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
3341         * config/mips/mips.md (extended_mips16): Remove branch case.
3342         (length): Remove duplicated extended_mips16 test.
3344 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
3346         * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
3348 2013-05-18  Richard Sandiford  <rdsandiford@googlemail.com>
3350         * recog.h (Recog_data): Rename to...
3351         (recog_data_d): ...this.
3352         (recog_data): Update accordingly.
3353         * recog.c (recog_data): Likewise.
3354         * reload.c (save_recog_data): Likewise.
3355         * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
3356         (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
3358 2013-05-17  Julian Brown  <julian@codesourcery.com>
3360         * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
3361         found in a REG_EQUAL note, invalidate it.
3363 2013-05-17   Easwaran Raman  <eraman@google.com>
3365         * tree-ssa-reassoc.c (find_insert_point): New function.
3366         (insert_stmt_after): Likewise.
3367         (get_def_stmt): Likewise.
3368         (ensure_ops_are_available): Likewise.
3369         (not_dominated_by): Likewise.
3370         (rewrite_expr_tree): Do not move statements beyond what is
3371         necessary. Remove call to swap_ops_for_binary_stmt...
3372         (reassociate_bb): ... and move it here.
3373         (build_and_add_sum): Assign UIDs for new statements.
3374         (linearize_expr): Likewise.
3375         (do_reassoc): Renumber gimple statement UIDs.
3377 2013-05-17  Jan Hubicka  <jh@suse.cz>
3379         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
3380         weakrefs.
3381         * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
3382         * cgraphunit.c (handle_alias_pairs): Store target of unresolved
3383         weakrefs.
3384         (output_weakrefs): Update.
3386 2013-05-17  Po-Chun Chang  <pchang9@cs.wisc.edu>
3387             Martin Jambor  <mjambor@suse.cz>
3389         PR middle-end/57276
3390         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
3391         value that corresponds to the given aggval is found in values vector.
3393 2013-05-17  Uros Bizjak  <ubizjak@gmail.com>
3395         * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
3396         sse, sse2, sse3, ssse3 and sse4a flags to options.
3398 2013-05-17  David Malcolm  <dmalcolm@redhat.com>
3400         * gengtype-state.c: (s_expr_writer): New class, to handle
3401         prettifying of output layout of s-expressions.
3402         (state_writer): New class, to write out gtype.state.
3403         (state_written_type_count): Move this variable into member data of
3404         state_writer.
3405         (s_expr_writer::s_expr_writer): New code: constructor for new class
3406         (state_writer::state_writer(): ditto
3407         (s_expr_writer::write_new_line): New function
3408         (s_expr_writer::write_any_indent): ditto
3409         (s_expr_writer::begin_s_expr): ditto
3410         (s_expr_writer::end_s_expr): ditto
3411         (write_state_fileloc): convert to method of state_writer...
3412         (state_writer:: write_state_fileloc): ...and use methods of
3413         s_expr_writer to write indentation into the gtype.state output file
3414         to visually represent the hierarchical structure of the list
3415         structures
3416         (write_state_fields): ditto, renaming to...
3417         (state_writer::write_state_fields)
3418         (write_state_a_string): ditto, renaming to...
3419         (state_writer::write_state_a_string)
3420         (write_state_string_option): ditto, renaming to...
3421         (state_writer::write_state_string_option)
3422         (write_state_type_option): ditto, renaming to...
3423         (state_writer::write_state_type_option)
3424         (write_state_nested_option): ditto, renaming to...
3425         (state_writer::write_state_nested_option)
3426         (write_state_option): ditto, renaming to...
3427         (state_writer::write_state_option)
3428         (write_state_options): ditto, renaming to...
3429         (state_writer::write_state_options)
3430         (write_state_lang_bitmap): ditto, renaming to...
3431         (state_writer::write_state_lang_bitmap)
3432         (write_state_version): ditto, renaming to...
3433         (state_writer::write_state_version)
3434         (write_state_scalar_type): ditto, renaming to...
3435         (state_writer::write_state_scalar_type)
3436         (write_state_string_type): ditto, renaming to...
3437         (state_writer::write_state_string_type)
3438         (write_state_undefined_type): ditto, renaming to...
3439         (state_writer::write_state_undefined_type)
3440         (write_state_struct_union_type): ditto, renaming to...
3441         (state_writer::write_state_struct_union_type)
3442         (write_state_struct_type): ditto, renaming to...
3443         (state_writer::write_state_struct_type)
3444         (write_state_user_struct_type): ditto, renaming to...
3445         (state_writer::write_state_user_struct_type)
3446         (write_state_lang_struct_type): ditto, renaming to...
3447         (state_writer::write_state_lang_struct_type)
3448         (write_state_param_struct_type): ditto, renaming to...
3449         (state_writer::write_state_param_struct_type)
3450         (write_state_pointer_type): ditto, renaming to...
3451         (state_writer::write_state_pointer_type)
3452         (write_state_array_type): ditto, renaming to...
3453         (state_writer::write_state_array_type)
3454         (write_state_gc_used): ditto, renaming to...
3455         (state_writer::write_state_gc_used)
3456         (write_state_common_type_content): ditto, renaming to...
3457         (state_writer::write_state_common_type_content)
3458         (write_state_type): ditto, renaming to...
3459         (state_writer::write_state_type)
3460         (write_state_pair_list): ditto, renaming to...
3461         (state_writer::write_state_pair_list)
3462         (write_state_pair): ditto, renaming to...
3463         (state_writer::write_state_pair)
3464         (write_state_typedefs): ditto, renaming to...
3465         (state_writer::write_state_typedefs)
3466         (write_state_structures): ditto, renaming to...
3467         (state_writer::write_state_structures)
3468         (write_state_param_structs): ditto, renaming to...
3469         (state_writer::write_state_param_structs)
3470         (write_state_variables): ditto, renaming to...
3471         (state_writer::write_state_variables)
3472         (write_state_srcdir): ditto, renaming to...
3473         (state_writer::write_state_srcdir)
3474         (write_state_files_list): ditto, renaming to...
3475         (state_writer::write_state_files_list)
3476         (write_state_languages): ditto, renaming to...
3477         (state_writer::write_state_languages)
3478         (write_state): create a state_writer instance and use it when
3479         writing out the state file
3481 2013-05-17  Mike Stump  <mikestump@comcast.net>
3483         PR rtl-optimization/57304
3484         * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
3485         accessing DF_REF_REAL_LOC.
3487 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
3489         PR rtl-optimization/57281
3490         PR rtl-optimization/57300
3491         * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
3492         (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
3493         what the other splitter did if the registers are dead.
3495 2013-05-17  Richard Biener  <rguenther@suse.de>
3497         * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
3498         MEM_REF offsets.
3500 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
3502         * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
3503         linking.
3505 2013-05-17  Marek Polacek  <polacek@redhat.com>
3507         * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
3508         length when doing non-zero store of storing '\0' to '\0'.
3510 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
3512         * tree-vect-patterns.c (vect_recog_rotate_pattern): For
3513         vect_external_def oprnd1 with loop_vinfo, try to emit
3514         optional cast, negation and and stmts on the loop preheader
3515         edge instead of into the pattern def seq.
3517         PR tree-optimization/57051
3518         * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
3519         case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
3521 2013-05-16  Nick Clifton  <nickc@redhat.com>
3523         * config/rl78/rl78.c (rl78_attribute_table): Add naked.
3524         (rl78_is_naked_func): New function.
3525         (rl78_expand_prologue): Skip prologue generation for naked functions.
3526         (rl78_expand_epilogue): Skip epilogue generation for naked functions.
3527         * doc/extend.texi (naked): Add RL78 to the list of processors
3528         that supports this attribute.
3530 2013-05-16  Jeff Law  <law@redhat.com>
3532         * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
3534 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
3536         * config/i386/driver-i386.c (host_detect_local_cpu): Determine
3537         cache parameters using detect_caches_amd also for CYRIX,
3538         NSC and TM2 signatures.
3540 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
3541             Dzianis Kahanovich  <mahatma@eu.by>
3543         PR target/45359
3544         PR target/46396
3545         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3546         VIA/Centaur processors and determine their cache parameters
3547         using detect_caches_amd.
3549 2013-05-16  Teresa Johnson  <tejohnson@google.com>
3551         * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
3552         (rtl_verify_edges): New function.
3553         (rtl_verify_bb_insns): Ditto.
3554         (rtl_verify_bb_pointers): Ditto.
3555         (rtl_verify_bb_insn_chain): Ditto.
3556         (rtl_verify_fallthru): Ditto.
3557         (rtl_verify_bb_layout): Ditto.
3558         (rtl_verify_flow_info_1): Outline checks into new functions.
3559         (rtl_verify_flow_info): Ditto.
3561 2013-05-16  Steve Ellcey  <sellcey@imgtec.com>
3563         * cfghooks.c (copy_bbs): Add update_dominance argument.
3564         * cfghooks.h (copy_bbs): Update prototype.
3565         * tree-cfg.c (gimple_duplicate_sese_region):
3566         Add update_dominance argument.
3567         * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
3568         * tree-ssa-loop-ch.c (copy_loop_headers): Update
3569         gimple_duplicate_sese_region call.
3570         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
3571         Update copy_bbs call.
3572         * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
3573         * trans-mem.c (ipa_uninstrument_transaction): Ditto.
3575 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
3577         * tree-vectorizer.h (NUM_PATTERNS): Increment.
3578         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
3579         vect_recog_rotate_pattern.
3580         (vect_recog_rotate_pattern): New function.
3582 2013-05-16  Jason Merrill  <jason@redhat.com>
3584         * Makefile.in (LLINKER): New variable.
3585         (mostlyclean): Remove link mutex.
3586         * configure.ac: Handle --enable-link-mutex.
3587         * lock-and-run.sh: New script.
3589 2013-05-16  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3591         PR target/19599
3592         * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
3593         for NULL decl.
3595 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3597         * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
3599 2013-05-16  Greta Yorsh  <Greta.Yorsh@arm.com>
3601         * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
3602         * config/arm/arm.c (next_consecutive_mem): New function.
3603         (gen_movmem_ldrd_strd): Likewise.
3604         * config/arm/arm.md (movmemqi): Update condition and code.
3605         (unaligned_loaddi, unaligned_storedi): New patterns.
3607 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3609         * config.gcc: Obsolete *-*-solaris2.9*.
3610         * doc/install.texi (Specific, *-*-solaris2*): Document it.
3612 2013-05-16  Richard Biener  <rguenther@suse.de>
3614         * passes.c (init_optimization_passes): Move pass_parallelize_loops
3615         earlier, after GRAPHITE transforms and IV canonicalization.
3617 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
3619         * omp-low.c (extract_omp_for_data): For collapsed loops,
3620         if at least one of the loops is known at compile time to
3621         iterate zero times, set count to 0.
3622         (expand_omp_regimplify_p): New function.
3623         (expand_omp_for_generic): For collapsed loops, if at least
3624         one of the loops isn't known to iterate at least once,
3625         add runtime check with setting count to 0.
3626         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
3627         For unsigned types if it isn't known at compile time that
3628         the loop will iterate at least once, add runtime check to bypass
3629         the whole loop if initial condition isn't true.
3631 2013-05-16  Nathan Sidwell  <nathan@codesourcery.com>
3633         * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
3635 2013-05-16  Marc Glisse  <marc.glisse@inria.fr>
3637         PR middle-end/57286
3638         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
3639         transformations to avoid an infinite loop.
3641 2013-05-16  Marek Polacek  <polacek@redhat.com>
3643         * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
3645 2013-05-15  Leif Ekblad  <leif@rdos.net>
3647         * config/i386/i386.c (ix86_decompose_address): Use
3648         DEFAULT_TLS_SEG_REG to access TLS segment register.
3649         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
3650         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
3651         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
3653 2013-05-15  Richard Sandiford  <rdsandiford@googlemail.com>
3655         PR target/57260
3656         * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
3657         sibling calls to functions that would normally be lazily bound,
3658         unless $gp is call-clobbered.
3660 2013-05-15  Uros Bizjak  <ubizjak@gmail.com>
3662         * config/i386/i386.c (ix86_option_override_internal): Update
3663         processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags.  Add
3664         PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
3665         non-SSE 3dNow! targets.  Enable TARGET_PRFCHW for TARGET_3DNOW targets.
3666         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
3667         of TARGET_3DNOW.
3668         (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
3670 2013-05-15  Andreas Schwab  <schwab@suse.de>
3672         * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
3673         for rotlhi3+1 and rotlqi3+1, resp.  Fix reference to non-existing
3674         third operand.
3676 2013-05-15  Teresa Johnson  <tejohnson@google.com>
3678         * loop-unroll.c (report_unroll_peel): Check decision before
3679         emitting unroll/peel message.
3681 2013-05-15  Teresa Johnson  <tejohnson@google.com>
3683         * function.h (has_bb_partition): New rtl_data flag.
3684         (bb_reorder_complete): Ditto.
3685         * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
3686         instead of flag_reorder_blocks_and_partition.
3687         * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
3688         with some enhancements.
3689         (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
3690         * bb-reorder.c (connect_traces): Check for has_bb_partition
3691         instead of flag_reorder_blocks_and_partition.
3692         (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
3693         (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
3694         verify_hot_cold_block_grouping.
3695         (partition_hot_cold_basic_blocks): Set has_bb_partition.
3697 2013-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3699         PR target/19599
3700         * config/arm/predicates.md (call_insn_operand): New predicate.
3701         * config/arm/constraints.md ("Cs", "Ss"):  New constraints.
3702         * config/arm/arm.md (*call_insn, *call_value_insn): Match only
3703         if insn is not a tail call.
3704         (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
3705         registers.
3706         * config/arm/arm.h (enum reg_class): New caller save register class.
3707         (REG_CLASS_NAMES): Likewise.
3708         (REG_CLASS_CONTENTS): Likewise.
3709         * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
3710         without decls.
3712 2013-05-15  Richard Biener  <rguenther@suse.de>
3714         * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
3715         of MSG_OPTIMIZED_LOCATIONS.
3716         * tree-vect-slp.c (vect_make_slp_decision): Likewise.
3717         (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
3718         message.
3719         * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
3720         of MSG_OPTIMIZED_LOCATIONS.
3721         (execute_vect_slp): Likewise.
3722         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
3723         (vect_create_cond_for_alias_checks): Likewise.
3724         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
3725         (vect_recog_widen_mult_pattern): Likewise.
3726         (vect_recog_widen_sum_pattern): Likewise.
3727         (vect_recog_over_widening_pattern): Likewise.
3728         (vect_recog_widen_shift_pattern): Likewise.
3729         (vect_recog_vector_vector_shift_pattern): Likewise.
3730         (vect_recog_divmod_pattern): Likewise.
3731         (vect_recog_mixed_size_cond_pattern): Likewise.
3732         (vect_recog_bool_pattern): Likewise.
3733         (vect_pattern_recog_1): Likewise.
3735 2013-05-15  Martin Jambor  <mjambor@suse.cz>
3737         * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
3738         non-functions to builtin_unreachable.
3739         * ipa-inline-transform.c (inline_call): Do not assert estimates were
3740         correct when new direct edges were discovered.
3742 2013-05-15  Martin Jambor  <mjambor@suse.cz>
3744         * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
3745         header, print symbol order instead of node uid, print more information
3746         about indirect edge targets.
3747         (ipa_make_edge_direct_to_target): Print symbol order instead of node
3748         uids.
3749         (ipa_make_edge_direct_to_target): Likewise.
3750         (remove_described_reference): Likewise.
3751         (propagate_controlled_uses): Likewise.
3752         (ipa_print_node_params): Also print symbol order.
3753         (ipcp_transform_function): Print symbol order instead of node uids.
3754         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
3755         (cgraph_get_create_real_symbol_node): Likewise.
3756         * ipa-cp.c (print_lattice): Likewise.
3757         (print_all_lattices): Likewise.
3758         (determine_versionability): Likewise.
3759         (initialize_node_lattices): Likewise.
3760         (estimate_local_effects): Likewise.
3761         (update_profiling_info): Likewise.
3762         (create_specialized_node): Likewise.
3763         (perhaps_add_new_callers): Likewise.
3764         (decide_about_value): Likewise.
3765         (decide_whether_version_node): Likewise.
3766         (identify_dead_nodes): Likewise.
3767         * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
3768         (dump_inline_summary): Likewise.
3769         (estimate_node_size_and_time): Likewise.
3770         (inline_analyze_function): Likewise.
3771         * ipa-inline.c (report_inline_failed_reason): Likewise.
3772         (want_early_inline_function_p): Likewise.
3773         (edge_badness): Likewise.
3774         (update_edge_key): Likewise.
3775         (inline_small_functions): Likewise.  Add dumping of order to two other
3776         dumps.
3777         * ipa-pure-const.c (pure_const_read_summary): Print symbol order
3778         instead of node uids.
3779         (propagate_pure_const): Likewise.
3780         (propagate_pure_const): Likewise.
3781         * ipa-utils.c (dump_cgraph_node_set): Likewise.
3782         * lto-cgraph.c (input_node): Explicitly specify we dump uid.
3783         * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
3784         of node uids.
3785         * tree-pretty-print.c (dump_function_header): Likewise.
3786         * tree-sra.c (convert_callers_for_node): Dump in traditional format.
3787         Print symbol order instead of node uids.
3789 2013-05-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3791         * config/s390/s390.c (s390_register_move_cost): Don't impose the
3792         FPR<->GPR move cost penalty if ldgr/lgdr can be used.
3794 2013-05-15  Richard Biener  <rguenther@suse.de>
3796         PR tree-optimization/57275
3797         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
3798         return value for fail to do runtime alias checks for gather loads.
3800 2013-05-15  Jan Hubicka  <jh@suse.cz>
3802         PR lto/57038
3803         PR lto/47375
3804         * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
3805         weakrefs are not external.
3806         (lto_symtab_merge_decls): Fix thinko when dealing with
3807         non-lto_symtab decls.
3808         (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
3809         (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
3810         * varpool.c (dump_varpool_node): Dump more flags.
3812 2013-05-15  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
3814         * config/i386/i386.c (processor_alias_table): Add instruction
3815         FSGSBASE for AMD bdver3 architecture.
3817 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
3819         * tree.c (warn_deprecated_use): Print file:line using locus color.
3820         * diagnostic.c (diagnostic_report_current_module): Print file:line
3821         and file:line:column using locus color.
3823 2013-05-14  Mike Stump  <mikestump@comcast.net>
3825         * gdbinit.in: Add __null.
3827 2013-05-14  Mike Stump  <mikestump@comcast.net>
3829         * recog.h: Rename struct recog_data to Recog_data.
3830         * recog.c: Likewise.
3831         * reload.c (can_reload_into): Likewise.
3832         * config/picochip/picochip.c: Likewise.
3834 2013-05-14  Mike Stump  <mikestump@comcast.net>
3836         * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
3838 2013-05-14  Steven Bosscher  <steven@gcc.gnu.org>
3840         * resource.h (struct resources): Remove unch_memory member.
3841         (CLEAR_RESOURCE): Don't clear unch_memory.
3842         * resource.c (mark_referenced_resources): Don't set it.
3843         (mark_set_resources): Likewise.
3844         (mark_target_live_regs): Don't clear it.
3845         (init_resource_info): Likewise.
3846         * reorg.c (resource_conflicts_p): Don't compare it.
3847         (redundant_insn): Don't set it.
3849         * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
3850         Remove prototypes.
3851         * emit-rtl.c (next_label): Remove unused function.
3852         (skip_consecutive_labels, link_cc0_insns): Move to ...
3853         * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
3854         only place where these functions are used, and make them static.
3856 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
3858         * fold-const.c (fold_negate_expr): Handle vectors.
3859         (fold_truth_not_expr): Make it static.
3860         (fold_invert_truthvalue): New static function.
3861         (invert_truthvalue_loc): Handle vectors. Do not call
3862         fold_truth_not_expr directly.
3863         (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
3864         <TRUTH_NOT_EXPR>: Do not cast to boolean.
3865         (fold_comparison): Handle vector constants.
3866         (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
3867         (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
3868         * tree.h (fold_truth_not_expr): Remove declaration.
3870 2013-05-14  James Greenhalgh  <james.greenhalgh@arm.com>
3872         * config/aarch64/aarch64-simd.md
3873         (aarch64_vcond_internal<mode>): Rename to...
3874         (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
3875         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
3876         float modes. Clarify all iterator modes.
3877         (vcond<mode><mode>): Use new name for vcond expanders.
3878         (vcond<v_cmp_result><mode>): Likewise.
3879         (vcondu<mode><mode>: Likewise.
3880         * config/aarch64/iterators.md (VDQF_COND): New.
3882 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
3884         PR bootstrap/57266
3885         * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
3886         variable for the shift amount. Check that we shift by non-negative
3887         amounts.
3889 2013-05-14  Chung-Lin Tang  <cltang@codesourcery.com>
3891         PR target/42017
3892         * config/arm/arm.h (EPILOGUE_USES): Only return true
3893         for LR_REGNUM after epilogue_completed.
3895 2013-05-14  Joern Rennecke <joern.rennecke@embecosm.com>
3897         * config/avr/avr.c (avr_encode_section_info): Bail out if the type
3898         is error_mark_node.
3900 2013-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3902         PR target/57261
3903         * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
3904         and Solaris 11+/x86 with gld.
3905         * configure: Regenerate.
3907 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
3909         * expmed.c (expand_shift_1): Canonicalize rotates by
3910         constant bitsize / 2 to bitsize - 1.
3911         * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
3912         case ROTATERT>: Likewise.
3914         Revert:
3915         2013-05-10  Jakub Jelinek  <jakub@redhat.com>
3917         * config/i386/i386.md (rotateinv): New code attr.
3918         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
3919         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
3920         roll $31, %eax, etc.
3922 2013-05-14  Richard Biener  <rguenther@suse.de>
3924         PR middle-end/57235
3925         * tree-eh.c (sink_clobbers): Give up for successors with
3926         multiple predecessors and no virtual uses.
3928 2013-05-14  Eric Botcazou  <ebotcazou@adacore.com>
3930         * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
3931         * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
3933 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
3935         PR middle-end/57251
3936         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
3937         the case when both op0 and op1 have VOIDmode.
3939 2013-05-14  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
3941         * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
3942         in multiply-accumulate mode.
3944 2013-05-13  Guozhi Wei  <carrot@google.com>
3946         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
3948 2013-05-13  Kai Tietz  <ktietz@redhat.com>
3950         PR target/56975
3951         * config/i386/cygming.h (TARGET_PECOFF): Define as true.
3952         * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
3953         (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
3954         * config/i386/i386.c (ix86_option_override_internal): Likewise.
3955         (ix86_expand_prologue): Likewise.
3956         (ix86_expand_split_stack_prologue): Likewise.
3957         (legitimate_pic_address_disp_p): Likewise.
3958         (legitimize_pic_address): Likewise.
3959         (legitimize_tls_address): Likewise.
3960         (legitimize_pe_coff_symbol): Likewise.
3961         (output_pic_addr_const): Likewise.
3962         (construct_plt_address): Likewise.
3963         (ix86_expand_call): Likewise.
3964         (x86_output_mi_thunk): Likewise.
3965         (x86_function_profiler): Likewise.
3967 2013-05-13  Sofiane Naci  <sofiane.naci@arm.com>
3969         * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
3970         similar switch cases.
3971         (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
3972         (aarch64_simd_mov_to_<mode>low): Delete.
3973         (aarch64_simd_mov_to_<mode>high): Delete.
3974         (move_lo_quad_<mode>): Add w<-r alternative.
3975         (aarch64_simd_move_hi_quad_<mode>): Likewise.
3976         (aarch64_simd_mov_from_*): Update type attribute.
3977         * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
3978         statement.
3980 2013-05-13  Jan Hubicka  <jh@suse.cz>
3982         * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
3983         * config/i386/i386.c (ix86_compute_frame_layout,
3984         ix86_expand_epilogue, emit_i387_cw_initialization,
3985         ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
3986         ix86_local_alignment): Fix use of size/speed predicates.
3988 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
3990         PR tree-optimization/45216
3991         PR tree-optimization/57157
3992         * tree-ssa-forwprop.c (simplify_rotate): Only recognize
3993         the (-Y) & (B - 1) variant if OP is |.
3994         * expmed.c (expand_shift_1): For rotations by const0_rtx just
3995         return shifted.  Use (-op1) & (prec - 1) as other_amount
3996         instead of prec - op1.
3998 2013-05-13  Martin Jambor  <mjambor@suse.cz>
4000         PR middle-end/42371
4001         * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
4002         (ipa_constant_data): New type.
4003         (ipa_jump_func): Use ipa_constant_data to hold information about
4004         constant jump functions.
4005         (ipa_get_jf_constant): Adjust to jump function type changes.
4006         (ipa_get_jf_constant_rdesc): New function.
4007         (ipa_param_descriptor): New field controlled_uses.
4008         (ipa_get_controlled_uses): New function.
4009         (ipa_set_controlled_uses): Likewise.
4010         * ipa-ref.h (ipa_find_reference): Declare.
4011         * ipa-prop.c (ipa_cst_ref_desc): New type.
4012         (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
4013         changes.
4014         (ipa_set_jf_constant): Likewise.  Also create reference descriptions.
4015         New parameter cs.  Adjust all callers.
4016         (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
4017         (remove_described_reference): New function.
4018         (jfunc_rdesc_usable): Likewise.
4019         (try_make_edge_direct_simple_call): Decrement controlled use count,
4020         attempt to remove reference if it hits zero.
4021         (combine_controlled_uses_counters): New function.
4022         (propagate_controlled_uses): Likewise.
4023         (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
4024         (ipa_edge_duplication_hook): Duplicate reference descriptions.
4025         (ipa_print_node_params): Print described use counter.
4026         (ipa_write_jump_function): Adjust to jump function type changes.
4027         (ipa_read_jump_function): New parameter CS, pass it to
4028         ipa_set_jf_constant.  Adjust caller.
4029         (ipa_write_node_info): Stream controlled use count
4030         (ipa_read_node_info): Likewise.
4031         * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
4032         asserting.
4033         * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
4034         count.  Remove cloning-added reference if it reaches zero.
4035         * ipa-ref.c (ipa_find_reference): New function.
4037 2013-05-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
4039         * config/i386/i386.c (processor_target_table): Modified default
4040         alignment values for AMD BD and BT architectures.
4042 2013-05-13  Marc Glisse  <marc.glisse@inria.fr>
4044         * tree-vect-generic.c (uniform_vector_p): Move ...
4045         * tree.c (uniform_vector_p): ... here.
4046         * tree.h (uniform_vector_p): Declare it.
4047         * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
4048         into a scalar.
4050 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
4052         PR tree-optimization/57230
4053         * tree-ssa-strlen.c (handle_char_store): Record length for
4054         array store from STRING_CST.
4056         PR tree-optimization/57230
4057         * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
4058         check.
4060 2013-05-12  Joern Rennecke  <joern.rennecke@embecosm.com>
4062         * config/epiphany/epiphany.c (epiphany_init): Check size of
4063         NUM_MODES_FOR_MODE_SWITCHING.
4064         (epiphany_expand_prologue):
4065         Remove CONFIG_REGNUM initial value handling code.
4066         (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
4067         (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
4068         (emit_set_fp_mode, epiphany_mode_after): Likewise.
4069         (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
4070         Don't return 1 for FP_MODE_NONE.
4071         * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
4072         Add value for EPIPHANY_MSW_ENTITY_CONFIG.
4073         (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
4074         * config/epiphany/epiphany.md (save_config): New pattern.
4076 2013-05-12  Uros Bizjak  <ubizjak@gmail.com>
4078         * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
4080 2013-05-10  Uros Bizjak  <ubizjak@gmail.com>
4082         * config/i386/i386.md (memory): Handle sseishft1.
4083         * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
4084         (*vec_extractv2di_1): Ditto.
4086 2013-05-10  Vladimir Makarov  <vmakarov@redhat.com>
4088         * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
4089         saved registers.
4091 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4093         * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
4094         Add mthumb/march=armv7-a multilib.
4095         Add mthumb/march=armv7-r multilib.
4096         Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
4098 2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
4100         * config/v850/t-rtems: Add more multilibs.
4102 2013-05-10  Richard Biener  <rguenther@suse.de>
4104         PR tree-optimization/57214
4105         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
4106         not propagate from SSA names that occur in abnormal PHI nodes.
4108 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
4110         * stor-layout.c (element_precision): New function.
4111         * machmode.h (element_precision): Declare it.
4112         * tree.c (build_minus_one_cst): New function.
4113         (element_precision): Likewise.
4114         * tree.h (build_minus_one_cst): Declare new function.
4115         (element_precision): Likewise.
4116         * fold-const.c (operand_equal_p): Use element_precision.
4117         (fold_binary_loc): Handle vector types.
4118         * convert.c (convert_to_integer): Use element_precision.
4119         * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
4120         separately.
4122 2013-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
4124         * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
4125         (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
4126         (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
4127         (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
4128         * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
4129         (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
4130         (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
4131         (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
4132         * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
4133         (Uuw8): New constraints.
4134         (Usb4): Move into alphabetical order.
4135         * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
4136         (sd8_operand, ub8_operand, uw8_operand): New predicates.
4137         * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
4138         previously unnamed patterns.
4139         (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
4140         (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
4141         (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
4142         (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
4143         of set_attr_alternative/if_then_else.  Use extended_mips16 instead
4144         of specific lengths.
4146 2013-05-10  Jakub Jelinek  <jakub@redhat.com>
4148         * config/i386/i386.md (rotateinv): New code attr.
4149         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
4150         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
4151         roll $31, %eax, etc.
4153         PR tree-optimization/45216
4154         PR tree-optimization/57157
4155         * tree-ssa-forwprop.c (simplify_rotate): New function.
4156         (ssa_forward_propagate_and_combine): Call it.
4158 2013-05-10  Richard Biener  <rguenther@suse.de>
4160         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
4161         disable peeling when we version for aliasing.
4162         (vector_alignment_reachable_p): Honor explicit user alignment.
4163         (vect_supportable_dr_alignment): Likewise.
4164         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
4165         STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
4166         * tree-vect-loop.c (vect_transform_loop): First apply versioning,
4167         then peeling to arrange for the cost-model check to come first.
4169 2013-05-10  Alan Modra  <amodra@gmail.com>
4171         * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
4172         (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
4173         * configure: Regenerate.
4175 2013-05-10  Alan Modra  <amodra@gmail.com>
4177         PR target/55033
4178         * varasm.c (default_elf_select_section): Move !DECL_P check..
4179         (get_named_section): ..to here before calling get_section_name.
4180         Adjust assertion.
4181         (default_section_type_flags): Add DECL_P check.
4182         * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
4183         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
4185 2013-05-09  Joern Rennecke  <joern.rennecke@embecosm.com>
4187         * config/epiphany/epiphany.c (epiphany_expand_prologue):
4188         When using gen_stack_adjust_str with a register offset, add a
4189         REG_FRAME_RELATED_EXPR note.
4191 2013-05-09  Uros Bizjak  <ubizjak@gmail.com>
4193         * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
4194         (*vec_extractv4si_zext_mem): Ditto.
4195         (*vec_extractv2di): Add 0->x and x->x alternatives.
4196         * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
4197         * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
4199 2013-05-09  Jason Merrill  <jason@redhat.com>
4201         N3639 C++1y VLA support
4202         * gimplify.c (gimplify_vla_decl): Don't touch an existing
4203         DECL_VALUE_EXPR.
4205         * tree.c (build_constructor_va): New.
4206         * tree.h: Declare it.
4208 2013-05-09  Martin Jambor  <mjambor@suse.cz>
4210         PR lto/57084
4211         * gimple-fold.c (canonicalize_constructor_val): Call
4212         cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
4214 2013-05-09  Jan Hubicka  <jh@suse.cz>
4215             Richard Biener  <rguenther@suse.de>
4217         PR lto/54095
4218         * symtab.c (symtab_make_decl_local): Do not add private names.
4220 2013-05-09  Jan Hubicka  <jh@suse.cz>
4222         PR lto/54095
4223         * symtab.c (insert_to_assembler_name_hash): Handle clones.
4224         (unlink_from_assembler_name_hash): Likewise.
4225         (symtab_prevail_in_asm_name_hash, symtab_register_node,
4226         symtab_unregister_node, symtab_initialize_asm_name_hash,
4227         change_decl_assembler_name): Update.
4229 2013-05-09  Sofiane Naci  <sofiane.naci@arm.com>
4231         * config/aarch64/aarch64.md: New movtf split.
4232         (*movtf_aarch64): Update.
4233         (aarch64_movdi_tilow): Handle TF modes and rename to
4234         aarch64_movdi_<mode>low.
4235         (aarch64_movdi_tihigh): Handle TF modes and rename to
4236         aarch64_movdi_<mode>high
4237         (aarch64_movtihigh_di): Handle TF modes and rename to
4238         aarch64_mov<mode>high_di
4239         (aarch64_movtilow_di): Handle TF modes and rename to
4240         aarch64_mov<mode>low_di
4241         (aarch64_movtilow_tilow): Remove spurious whitespace.
4242         * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
4243         splits.
4244         (aarch64_print_operand): Update.
4246 2013-05-09  Alan Modra  <amodra@gmail.com>
4248         * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
4249         powerpc64le.
4250         * configure: Regenerate.
4252 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
4254         * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
4255         splitter preparation statements.
4256         * config/i386/sse.md (*vec_extract* splitters): Ditto.
4257         (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
4258         adjust_address_nv.
4260 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4262         * gimple-ssa-strength-reduction.c (count_candidates): Change
4263         return value to int.
4264         (analyze_candidates_and_replace): Change type of length to int.
4266 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
4268         * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
4269         (*vec_extract<mode>): Use VI12_128 mode iterator.
4270         (*vec_extract<mode>_mem): Ditto.
4271         (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
4272         attribute.
4274 2013-05-08  Diego Novillo  <dnovillo@google.com>
4276         PR bootstrap/54659
4278         Revert:
4279         2012-08-17  Diego Novillo  <dnovillo@google.com>
4281         PR bootstrap/54281
4282         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
4283         * config.in: Regenerate.
4284         * configure: Regenerate.
4285         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4287 2013-05-08  Jan Hubicka  <jh@suse.cz>
4289         PR lto/54095
4290         * cgraph.c (cgraph_make_node_local_1): Se unique_name.
4291         * cgraph.h (symtab_node_base): Add unique_name.
4292         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
4293         input_overwrite_node, input_varpool_node): Stream unique_name.
4294         * cgraphclones.c (cgraph_create_virtual_clone,
4295         cgraph_function_versioning): Set unique_name.
4296         * ipa.c (function_and_variable_visibility): Set unique_name.
4298 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4300         * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
4301         (alloc_cand_and_find_basis): Restrict conditional candidate
4302         processing to CAND_MULTs.
4304 2013-05-08  Jan Hubicka  <jh@suse.cz>
4306         PR lto/54095
4307         lto-symtab.c (lto_symtab_symbol_p): New function.
4308         (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
4309         lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
4310         lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
4311         Skip static symbols.
4313 2013-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
4315         PR tree-optimization/57200
4316         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
4317         Only call inform if the preceding warning_at returns true.
4319 2013-05-07  Han Shen  <shenhan@google.com>
4321         * cfgexpand.c (record_or_union_type_has_array_p): New function.
4322         (expand_used_vars): Add logic handling '-fstack-protector-strong'.
4323         * common.opt (fstack-protector-strong): New option.
4324         * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
4325         * doc/invoke.texi (Optimization Options): Document
4326         "-fstack-protector-strong".
4327         * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
4329 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
4331         * config/mips/mips.c (mips_machine_reorg2): Return 0.
4333 2013-05-07  Vladimir Makarov  <vmakarov@redhat.com>
4335         * ira.c (update_equiv_regs): Add insn having equiv memory even if
4336         it is not lhs of the insn.
4337         (setup_reg_equiv): Remove insn having equiv memory which it is not
4338         lhs of the insn.
4339         * lra-constraints.c (process_address): Try to improve generation
4340         code for address base + disp.
4341         (lra_constraints): Make correct the code for checking insn setting
4342         up backward equivalence.  Remove insn only if it is in the init
4343         insn list.
4344         * lra-eliminations.c (update_reg_eliminate): Change return value.
4345         (lra_eliminate): Use the result.
4347 2013-05-07  Uros Bizjak  <ubizjak@gmail.com>
4349         * config/i386/sse.md (ssescalarnummask): New mode attribute.
4350         (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
4351         (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
4352         *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
4353         register target operands.
4354         (*vec_extractv8hi_sse2): New pattern.
4355         (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
4356         (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
4357         (*vec_extract<mode>_mem): New insn and split pattern.
4359 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
4361         * config/arm/arm.c (arm_asan_shadow_offset): New function.
4362         (TARGET_ASAN_SHADOW_OFFSET): Define.
4363         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
4364         (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
4366 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4368         * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
4369         (incr_vec_index): Return -1 if increment not found.
4370         (create_add_on_incoming_edge): Assert if increment not found.
4371         (record_increment): Limit number of increments recorded.
4372         (all_phi_incrs_profitable): Return false if an increment not found.
4373         (replace_profitable_candidates): Don't process increments that were
4374         not recorded.
4375         (analyze_candidates_and_replace): Limit size of incr_vec.
4377 2013-05-07  Richard Biener  <rguenther@suse.de>
4379         * calls.c (special_function_p): setjmp-like functions are leaf.
4380         * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
4381         * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
4383 2013-05-07  Sofiane Naci  <sofiane.naci@arm.com>
4385         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
4386         (aarch64_simd_mov<mode>): New expander.
4387         (aarch64_simd_mov_to_<mode>low): New instruction pattern.
4388         (aarch64_simd_mov_to_<mode>high): Likewise.
4389         (aarch64_simd_mov_from_<mode>low): Likewise.
4390         (aarch64_simd_mov_from_<mode>high): Likewise.
4391         (aarch64_dup_lane<mode>): Update.
4392         (aarch64_dup_lanedi): New instruction pattern.
4393         * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
4394         * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
4396 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4398         * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
4399         (replace_mult_candidate): Remove unnecessary argument; remove
4400         unnecessary parameter from call to introduce_cast_before_cand.
4401         (replace_unconditional_candidate): Remove unnecessary parameter
4402         from call to replace_mult_candidate.
4403         (replace_conditional_candidate): Likewise.
4404         (insert_initializers): Use make_temp_ssa_name.
4405         (introduce_cast_before_cand): Remove unnecessary argument; use
4406         make_temp_ssa_name.
4407         (replace_one_candidate): Remove unnecessary argument; remove
4408         unnecessary parameter from calls to introduce_cast_before_cand.
4409         (replace_profitable_candidates): Remove unnecessary parameters
4410         from calls to replace_one_candidate.
4412 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4414         * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
4415         phi def as possibly hiding a basis for a CAND_ADD whose operands
4416         have been commuted in the analysis.
4417         (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
4419 2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4421         * config/aarch64/aarch64.md
4422         (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
4423         shift value between 0-4.
4425 2013-05-07  Richard Biener  <rguenther@suse.de>
4427         * double-int.h (rshift): New overload.
4428         * double-int.c (rshift): New function.
4429         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
4430         (create_reference_ops_from_ref): Remove.
4431         (vn_reference_insert): Use shared ops for constructing the
4432         reference and copy it.
4434 2013-05-07  Richard Biener  <rguenther@suse.de>
4436         PR middle-end/57190
4437         * tree-eh.c (sink_clobbers): Properly propagate
4438         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
4440 2013-05-07  Jakub Jelinek  <jakub@redhat.com>
4442         PR tree-optimization/57149
4443         * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
4444         (can_skip_redundant_opnd, compute_uninit_opnds_pos,
4445         collect_phi_def_edges, execute_late_warn_uninitialized): Use
4446         uninit_undefined_value_p instead of ssa_undefined_value_p.
4448         PR debug/57184
4449         * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
4450         for modifier == EXPAND_INITIALIZER.
4452 2013-05-07  Anton Blanchard  <anton@samba.org>
4454         * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
4455         for powerpc64 little endian.
4456         * configure: Regenerate.
4458 2013-05-06  Graham Stott  <grahams@btinternet.com>
4460         * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
4461         mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
4462         wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
4463         shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
4465 2013-05-06  Graham Stott  <grahams@btinternet.com>
4467         * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
4468         codes which allow non-lvalues.
4470 2013-05-06  Marc Glisse  <marc.glisse@inria.fr>
4472         * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
4473         components are all 1s.
4474         (integer_minus_onep): New function.
4475         * tree.h (integer_minus_onep): Declare it.
4476         * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
4477         integer_minus_onep instead of integer_all_onesp.
4479 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
4481         PR target/52933
4482         * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
4483         variations of these patterns.
4485 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
4487         * config/i386/i386.md (isa): Add x64_sse4 member.
4488         (enabled): Handle x64_sse4.
4489         (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
4490         instruction for 64bit SSE4_1 targets.  Update insn attributes.
4491         (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
4492         instruction for SSE4_1 targets.  Update insn attributes.
4493         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
4494         with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
4495         (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
4496         const_1 selector.
4497         (*vec_extractv4si): Rename from *sse4_1_pextrd.
4498         (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
4499         (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
4501 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
4503         PR target/57108
4504         * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
4506 2013-05-06  Maxim Kuznetsov  <maks.kuznetsov@gmail.com>
4508         * final.c (do_assembler_dialects): Don't handle curly braces and
4509         vertical bar escaped by % as dialect delimiters.
4510         (output_asm_insn): Print curly braces and vertical bar if escaped
4511         by % and ASSEMBLER_DIALECT defined.
4512         * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
4513         * doc/tm.texi: Regenerated.
4515 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
4517         * config/mips/mips.c: Include tree-pass.h.
4518         (mips_reorg): Split in pre- and post-dbr_schedule parts.
4519         (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
4520         (pass_mips_machine_reorg2): New machine specific pass.
4521         (insert_pass_mips_machine_reorg2): New pass plugin definition.
4522         (mips_option_override): Register the new pass.
4523         * rtl.h (cleanup_barriers): Remove prototype.
4524         (dbr_schedule): Likewise.
4525         * jump.c (cleanup_barriers): Make static.
4526         * reorg.c (dbr_schedule): Likewise.
4528 2013-05-06  Richard Biener  <rguenther@suse.de>
4530         PR tree-optimization/57185
4531         * tree-parloops.c (add_field_for_reduction): Handle anonymous
4532         SSA names properly.
4534 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
4536         PR target/57106
4537         * config/i386/i386.c (add_parameter_dependencies): Add dependence
4538         between "first_arg" and "insn", not "last" and "insn".
4540 2013-05-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4542         * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
4543         (find_candidates_in_block): Re-enable slsr_process_phi.
4544         (create_phi_basis): Fix double counting of candidate adjustment.
4546 2013-05-06  Richard Biener  <rguenther@suse.de>
4548         PR middle-end/57147
4549         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
4550         the edge is also fallthru, preserve it and just clear the
4551         abnormal flag.
4552         * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
4553         also complex, preserve that and just clear the fallthru flag.
4554         * tree-inline.c (update_ssa_across_abnormal_edges): Also
4555         update virtual operands.
4557 2013-05-06  Alan Modra  <amodra@gmail.com>
4559         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
4560         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
4561         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
4562         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
4563         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
4564         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
4566 2013-05-06  Alan Modra  <amodra@gmail.com>
4568         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
4569         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
4570         (DEFAULT_ASM_ENDIAN): Define.
4571         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
4572         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
4573         Update -K PIC clause from sysv4.h.
4574         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
4575         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
4577 2013-05-06  Alan Modra  <amodra@gmail.com>
4579         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
4580         twice for little-endian.
4581         (ashrdi3_no_power, ashrdi3): Support little-endian.
4583 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
4585         PR target/55303
4586         * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
4587         * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
4588         related expanders.
4589         * config/sh/iterators.md (SMIN_SMAX): New code iterator.
4590         * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
4591         clips_min_const_int, clips_max_const_int, clipu_max_const_int):
4592         New predicates.
4594 2013-05-05  Steven Bosscher  <steven@gcc.gnu.org>
4595             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4597         * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
4598         * config/pa/pa.opt: Make mbig-switch a no-op.
4599         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
4600         (CASE_VECTOR_MODE): Always return SImode.
4601         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
4602         for the !TARGET_BIG_SWITCH case.
4603         * config/pa/pa-linux.h: Likewise.
4604         * config/pa/pa-openbsd.h: Likewise.
4605         * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
4606         * config/pa/pa.md (short_jump): Remove define_insn.
4607         (casesi): Remove code for the !TARGET_BIG_SWITCH case.
4608         (casesi0): Remove define_insn.
4609         (type): Remove btable_branch.
4610         (pa_combine_type): Likewise.
4611         (in_nullified_branch_delay): Likewise.
4612         (in_call_delay): Likewise.
4613         (define_delay): Likewise.
4614         (define_insn_reservation "Z3"): Likewise.
4615         (define_insn_reservation "Z4"): Likewise.
4616         * config/pa/pa.c  (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
4617         (pa_adjust_insn_length): Remove adjustment for btable branches.
4618         * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
4619         and mno-big-switch
4621 2013-05-05  Uros Bizjak  <ubizjak@gmail.com>
4623         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
4624         from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
4625         Add m->r,x alternatives.
4626         (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
4627         splitters using SWI48x mode iterator.
4628         (*vec_extract_v2di_0_sse): Rename from *sse2_storeq.  Disable for
4629         TARGET_64BIT.  Add m->x alternative.
4630         (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
4631         Add o->x alternative.  Enable for TARGET_SSE.
4632         (sse_storeq): Remove expander.
4633         (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
4634         with memory input operand.
4635         (*vec_extractv2di_1 splitter): New.
4636         (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
4637         * config/i386/i386.md (ssevecmodelower): New mode attribute.
4639 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
4641         * config/rs6000/rs6000.c (INT_P): Reformat.  Delete obsolete comment.
4642         (INT_LOWPART): Delete.
4643         (extract_MB): Adjust.
4644         (extract_ME): Adjust.
4645         (print_operand): Adjust.
4647 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
4649         * config/rs6000/predicates.md (reg_or_add_cint_operand,
4650         reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
4651         (reg_or_logical_cint_operand, easy_fp_constant,
4652         logical_const_operand): Delete "CONST_DOUBLE" case.
4653         * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
4654         "HOST_BITS_PER_WIDE_INT == 64" test.
4655         (num_insns_constant): Ditto.  Delete CONST_DOUBLE DImode/VOIDmode case.
4656         (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
4657         (rs6000_emit_set_const): Delete CONST_DOUBLE case.
4658         (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
4659         test.
4660         (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
4661         CONST_DOUBLE DImode/VOIDmode case.
4662         (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
4663         (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
4664         CONST_DOUBLE VOIDmode case.
4665         (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
4666         (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
4667         * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
4668         Delete CONST_DOUBLE case.
4669         (splitters for mov FMOVE64 const_double): Delete
4670         "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
4671         "HOST_BITS_PER_WIDE_INT >= 64" test.
4672         (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
4673         case.
4674         (mov DI const_double): Delete.
4676 2013-05-04  Jakub Jelinek  <jakub@redhat.com>
4678         * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
4679         on op shows all bits zero in mode of a lowpart subreg, return zero.
4681 2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
4683         PR target/57150
4684         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
4685         to save TFmode registers and DImode to save TImode registers for
4686         caller save operations.
4687         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
4688         mark being partially clobbered since they only use the first
4689         double word.
4691         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
4692         and TDmode only use the upper 64-bits of each VSX register.
4694 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4696         * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
4697         (find_candidates_in_block): Disable slsr_process_phi.
4699 2013-05-03  Guozhi Wei  <carrot@google.com>
4701         * coverage.c (coverage_obj_init): Move the construction of gcov
4702         constructor to ...
4703         (build_init_ctor): ... here.
4705 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4707         * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
4708         (slsr_cand_d): Redefine def_phi.
4709         (stride_status, phi_adjust_status, count_phis_status): New enums.
4710         (find_phi_def): New.
4711         (find_basis_for_base_expr): New.
4712         (find_basis_for_candidate): Handle hidden bases.
4713         (alloc_cand_and_find_basis): Handle phi candidates.
4714         (slsr_process_phi): New.
4715         (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
4716         (create_mul_imm_cand): Likewise.
4717         (create_add_ssa_cand): Exclude phi base candidates.
4718         (create_add_imm_cand): Likewise.
4719         (slsr_process_cast): Likewise.
4720         (slsr_process_copy): Likewise.
4721         (find_candidates_in_block): Handle phi candidates.
4722         (dump_candidate): Likewise.
4723         (unconditional_cands): Delete.
4724         (unconditional_cands_with_known_stride_p): Delete.
4725         (phi_dependent_cand_p): New.
4726         (cand_increment): Handle phi-dependent candidates.
4727         (replace_dependent): Delete.
4728         (replace_mult_candidate): New.
4729         (replace_unconditional_candidate): New.
4730         (incr_vec_index): Move to avoid forward reference.
4731         (create_add_on_incoming_edge): New.
4732         (create_phi_basis): New.
4733         (replace_dependents): Delete.
4734         (replace_conditional_candidate): New.
4735         (phi_add_costs): New.
4736         (replace_uncond_cands_and_profitable_phis): New.
4737         (record_increment): Handle phi adjustments.
4738         (record_phi_increments): New.
4739         (record_increments): Handle phi adjustments.
4740         (phi_incr_cost): New.
4741         (lowest_cost_path): Handle phis.
4742         (total_savings): Likewise.
4743         (analyze_increments): Likewise.
4744         (ncd_with_phi): New.
4745         (ncd_of_cand_and_phis): New.
4746         (nearest_common_dominator_for_cands): Handle phi increments.
4747         (all_phi_incrs_profitable): New.
4748         (replace_profitable_candidates): Handle phi-dependent candidates.
4749         (analyze_candidates_and_replace): Likewise.
4751 2013-05-03  Teresa Johnson  <tejohnson@google.com>
4753         PR bootstrap/57154
4754         * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
4755         do not exceed REG_BR_PROB_BASE.
4757 2013-05-03  Jeff Law  <law@redhat.com>
4759         PR tree-optimization/57144
4760         * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
4761         operand of the condition will bit into the new type when eliminating
4762         a cast feeding a condition.
4764 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
4766         PR rtl-optimization/57130
4767         * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
4768         of COMPARE as in_code to the recursive call if needed.
4770 2013-05-03  Uros Bizjak  <ubizjak@gmail.com>
4772         * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
4773         (enabled): Handle new members.
4774         * config/i386/sse.md (*vec_concatv2si): Merge from
4775         *vec_concatv2si_sse2 and vec_concatv2si_sse.
4776         (vec_concatv2di): Merge with *vec_concatv2di_rex64.
4778 2013-05-03  Joern Rennecke <joern.rennecke@embecosm.com>
4780         PR tree-optimization/57027
4781         * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
4782         for fnms opportunity, check we got the prerequisite kind
4783         of tree / gimple before using accessor functions.
4785 2013-05-03  Richard Biener  <rguenther@suse.de>
4787         * double-int.h (lshift): New overload without precision
4788         and arith argument.
4789         (operator *=, operator +=, operator -=): Move ...
4790         * double-int.c (operator *=, operator +=, operator -=): ... here
4791         and implement more efficiently.
4792         (mul_double_with_sign): Remove.
4793         (lshift_double): Adjust to take unsinged shift argument, push
4794         dispatching code to callers.
4795         (mul_double_wide_with_sign): Add early out for callers that
4796         are not interested in high parts or overflow.
4797         (lshift): New function.
4798         (lshift, rshift, alshift, arshift, llshift, lrshift): Add
4799         dispatch code here.
4800         (lrotate, rrotate): Use logical shifts.
4801         * expr.c (get_inner_reference): Use lshift.
4802         * fixed-value.c (do_fixed_divide): Likewise.
4803         * tree-dfa.c (get_ref_base_and_extent): Likewise.
4804         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
4805         (indirect_refs_may_alias_p): Likewise.
4806         (stmt_kills_ref_p_1): Likewise.
4808 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
4810         * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
4812 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
4814         * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
4815         scalar form of FABD instruction.
4817 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
4819         * lra-constraints.c (process_alt_operands): Add checking alt
4820         number to choose the best alternative.
4822 2013-05-02  Richard Biener  <rguenther@suse.de>
4824         * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
4825         bitmap and its handling.
4826         (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
4828 2013-05-02  Richard Biener  <rguenther@suse.de>
4830         PR middle-end/57140
4831         * tree-inline.c (copy_loops): Properly handle removed loops.
4832         (copy_cfg_body): Mark destination loops for fixup if source
4833         loops needed fixup.
4835 2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
4837         PR target/56732
4838         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
4839         generating simple_return for naked functions.
4841 2013-05-02  Martin Jambor  <mjambor@suse.cz>
4843         PR middle-end/56988
4844         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
4845         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
4846         flags match.
4847         (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
4848         ipa_agg_replacement_value structures.
4849         (known_aggs_to_agg_replacement_list): Likewise.
4850         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
4851         (read_agg_replacement_chain): Likewise.
4852         (ipcp_transform_function): Also check that by_ref flags match.
4854 2013-05-02  Richard Biener  <rguenther@suse.de>
4856         * graphds.h (struct graph): Add obstack member.
4857         * graphds.c (new_graph): Initialize obstack and allocate
4858         vertices from it.
4859         (add_edge): Allocate edge from the obstack.
4860         (free_graph): Free the obstack instead of all edges and vertices.
4862 2013-05-02  Teresa Johnson  <tejohnson@google.com>
4864         * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
4865         divides.
4866         * cfg.c (update_bb_profile_for_threading): Ditto.
4867         * tree-inline.c (copy_bb): Ditto.
4868         (copy_edges_for_bb): Ditto.
4869         (initialize_cfun): Ditto.
4870         (copy_cfg_body): Ditto.
4871         (expand_call_inline): Ditto.
4872         * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
4873         (estimate_node_size_and_time): Ditto.
4874         (inline_merge_summary): Ditto.
4875         * cgraphclones.c (cgraph_clone_edge): Ditto.
4876         (cgraph_clone_node): Ditto.
4877         * sched-rgn.c (compute_dom_prob_ps): Ditto.
4878         (compute_trg_info): Ditto.
4880 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
4882         * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
4883         S reg when fp attribute set.
4884         (movdi_aarch64): Only allow to/from D reg when fp attribute set.
4886 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
4888         * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
4889         New pattern.
4890         (*and_one_cmplsi3_compare0_uxtw): Likewise.
4891         (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
4892         (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
4894 2013-05-02  Richard Biener  <rguenther@suse.de>
4896         * tree-scalar-evolution.c (scev_info_hasher): Remove.
4897         (struct instantiate_cache_entry): New type.
4898         (struct instantiate_cache_entry_hasher): New hashtable descriptor.
4899         (struct instantiate_cache_type): New type.
4900         (set_instantiated_value, get_instantiated_value): Remove.
4901         (get_instantiated_value_entry): New function.
4902         (instantiate_scev_name): Use the new cache and adjust.
4903         (instantiate_scev_poly): Adjust.
4904         (instantiate_scev_binary): Likewise.
4905         (instantiate_array_ref): Likewise.
4906         (instantiate_scev_convert): Likewise.
4907         (instantiate_scev_not): Likewise.
4908         (instantiate_scev_3): Likewise.
4909         (instantiate_scev_2): Likewise.
4910         (instantiate_scev_r): Likewise.
4911         (instantiate_scev): Likewise.
4912         (resolve_mixers): Likewise.
4914 2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
4916         PR target/57091
4917         * lra-constraints.c (best_small_class_operands_num): Remove.
4918         (process_alt_operands): Remove small_class_operands_num.  Take
4919         small classes operands into losers and only if the operand is not
4920         matched.  Modify debugging output.
4921         (curr_insn_transform): Remove best_small_class_operands_num.
4922         Print insn name.
4924 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4926         * config/aarch64/aarch64-builtins.c
4927         (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
4928         * config/aarch64/aarch64-simd-builtins.def
4929         (reduc_splus_): Add new modes.
4930         (reduc_uplus_): New.
4931         * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
4932         (reduc_uplus_v4sf): Likewise.
4933         (reduc_splus_v4sf): Likewise.
4934         (aarch64_addv<mode>): Likewise.
4935         (reduc_uplus_<mode>): Likewise.
4936         (reduc_splus_<mode>): Likewise.
4937         (aarch64_addvv2di): Likewise.
4938         (reduc_uplus_v2di): Likewise.
4939         (reduc_splus_v2di): Likewise.
4940         (aarch64_addvv2si): Likewise.
4941         (reduc_uplus_v2si): Likewise.
4942         (reduc_splus_v2si): Likewise.
4943         (reduc_<sur>plus_<mode>): New.
4944         (reduc_<sur>plus_v2di): Likewise.
4945         (reduc_<sur>plus_v2si): Likewise.
4946         (reduc_<sur>plus_v4sf): Likewise.
4947         (aarch64_addpv4sf): Likewise.
4948         * config/aarch64/arm_neon.h
4949         (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
4950         * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
4951         add UNSPEC_SADDV, UNSPEC_UADDV.
4952         (SUADDV): New.
4953         (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
4955 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4957         * config/aarch64/arm_neon.h
4958         (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
4960 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4962         * config/aarch64/aarch64-builtins
4963         (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
4965 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4967         * config/aarch64/aarch64-simd-builtins.def
4968         (reduc_smax_): New.
4969         (reduc_smin_): Likewise.
4970         (reduc_umax_): Likewise.
4971         (reduc_umin_): Likewise.
4972         (reduc_smax_nan_): Likewise.
4973         (reduc_smin_nan_): Likewise.
4974         (fmax): Remove.
4975         (fmin): Likewise.
4976         (smax): Update for V2SF, V4SF and V2DF modes.
4977         (smin): Likewise.
4978         (smax_nan): New.
4979         (smin_nan): Likewise.
4980         * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
4981         (<su><maxmin><mode>3): ...This, refactor.
4982         (s<maxmin><mode>3): New.
4983         (<maxmin_uns><mode>3): Likewise.
4984         (reduc_<maxmin_uns>_<mode>): Refactor.
4985         (reduc_<maxmin_uns>_v4sf): Likewise.
4986         (reduc_<maxmin_uns>_v2si): Likewise.
4987         (aarch64_<fmaxmin><mode>: Remove.
4988         * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
4989         new builtin names.
4990         (vmin<q>_f<32,64>): Likewise.
4991         * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
4992         (FMAXMIN): New.
4993         (su): Add mappings for smax, smin, umax, umin.
4994         (maxmin): New.
4995         (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
4996         (FMAXMIN): Rename as...
4997         (FMAXMIN_UNS): ...This.
4998         (maxminv): Remove.
4999         (fmaxminv): Likewise.
5000         (fmaxmin): Likewise.
5001         (maxmin_uns): New.
5002         (maxmin_uns_op): Likewise.
5004 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
5006         * config/aarch64/arm_neon.h
5007         (vac<ge, gt><sd>_f<32, 64>): Rename to...
5008         (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
5009         (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
5011 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
5013         * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
5014         * config/aarch64/iterators.md (FAC_COMPARISONS): New.
5016 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
5018         * config/aarch64/aarch64-simd.md
5019         (vcond<mode>_internal): Handle special cases for constant masks.
5020         (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
5021         (vcondu<mode><mode>): Likewise.
5022         (vcond<v_cmp_result><mode>): New.
5024 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
5026         * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
5027         (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
5028         * config/aarch64/aarch64-simd-builtins.def
5029         (cmeq): Update to BUILTIN_VALLDI.
5030         (cmgt): Likewise.
5031         (cmge): Likewise.
5032         (cmle): Likewise.
5033         (cmlt): Likewise.
5034         * config/aarch64/arm_neon.h
5035         (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
5036         to builtins or C as appropriate.
5038 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
5040         * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
5041         (cmgeu): ...This.
5042         (cmhi): Rename to...
5043         (cmgtu): ...This.
5044         * config/aarch64/aarch64-simd.md
5045         (simd_mode): Add SF.
5046         (aarch64_vcond_internal): Use new names for unsigned comparison insns.
5047         (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
5048         * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
5049         (cstore<mode>_neg): ...This.
5050         * config/aarch64/iterators.md
5051         (VALLF): new.
5052         (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
5053         (COMPARISONS): New.
5054         (UCOMPARISONS): Likewise.
5055         (optab): Add missing comparisons.
5056         (n_optab): New.
5057         (cmp_1): Likewise.
5058         (cmp_2): Likewise.
5059         (CMP): Likewise.
5060         (cmp): Remove.
5061         (VCMP_S): Likewise.
5062         (VCMP_U): Likewise.
5063         (V_cmp_result): Add DF, SF modes.
5064         (v_cmp_result): Likewise.
5065         (v): Likewise.
5066         (vmtype): Likewise.
5067         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
5069 2013-05-01  Greta Yorsh  <Greta.Yorsh@arm.com>
5071         * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
5072         define_insn to define_insn_and_split.
5073         (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
5074         (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
5075         (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
5076         (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
5077         (thumb2_negscc): Likewise.
5079 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
5081         * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
5083 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
5085         * config/arm/thumb2.md: Remove trailing whitespaces.
5087 2013-04-30  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
5089         * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
5090         Use gen_int_mode rather than GEN_INT.
5092 2013-04-30  H.J. Lu  <hongjiu.lu@intel.com>
5094         * value-prof.c (stream_in_histogram_value): Remove the strayed
5095         debug_gimple_stmt.
5097 2013-04-30  Richard Biener  <rguenther@suse.de>
5099         PR middle-end/57122
5100         * cfghooks.c (split_edge): Properly check for the loop latch edge.
5102 2013-04-30  Richard Biener  <rguenther@suse.de>
5104         PR middle-end/57107
5105         * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
5107 2013-04-30  Andrey Belevantsev  <abel@ispras.ru>
5109         PR rtl-optimization/56957
5110         PR rtl-optimization/57105
5111         * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
5112         variable.  Use just INSN_UID for determining whether an insn
5113         should be only disconnected from the insn stream.
5114         * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
5116 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
5118         PR tree-optimization/57104
5119         * tsan.c (instrument_expr): Don't instrument accesses to
5120         DECL_HARD_REGISTER VAR_DECLs.
5122 2013-04-30  Richard Biener  <rguenther@suse.de>
5124         * function.h (loops_for_fn): New inline function.
5125         (set_loops_for_fn): Likewise.
5126         * cfgloop.h (place_new_loop): Add struct function parameter.
5127         (get_loop): Likewise.
5128         (get_loops): Likewise.
5129         (number_of_loops): Likewise.
5130         (fel_next): Adjust.
5131         (fel_init): Likewise.
5132         * cfg.c (get_loop_copy): Adjust.
5133         * cfgloop.c (flow_loops_dump): Likewise.
5134         (record_loop_exits): Likewise.
5135         (verify_loop_structure): Likewise.
5136         * cfgloopanal.c (mark_irreducible_loops): Likewise.
5137         (estimate_reg_pressure_cost): Likewise.
5138         (mark_loop_exit_edges): Likewise.
5139         * cfgloopmanip.c (place_new_loop): Likewise.
5140         (add_loop): Likewise.
5141         (duplicate_loop): Likewise.
5142         * graph.c (draw_cfg_nodes): Likewise.
5143         * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
5144         * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
5145         (extract_affine_chrec): Likewise.
5146         (build_scop_iteration_domain): Likewise.
5147         * graphite.c (graphite_initialize): Likewise.
5148         * ira-build.c (create_loop_tree_nodes): Likewise.
5149         (more_one_region_p): Likewise.
5150         (rebuild_regno_allocno_maps): Likewise.
5151         (mark_loops_for_removal): Likewise.
5152         (mark_all_loops_for_removal): Likewise.
5153         (remove_unnecessary_regions): Likewise.
5154         (ira_build): Likewise.
5155         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
5156         * loop-init.c (fix_loop_structure): Likewise.
5157         (gate_rtl_move_loop_invariants): Likewise.
5158         (gate_rtl_unswitch): Likewise.
5159         (gate_rtl_unroll_and_peel_loops): Likewise.
5160         (rtl_doloop): Likewise.
5161         * lto-streamer-in.c (input_cfg): Likewise.
5162         * lto-streamer-out.c (output_cfg): Likewise.
5163         * modulo-sched.c (sms_schedule): Likewise.
5164         * predict.c (tree_estimate_probability): Likewise.
5165         (tree_estimate_probability_driver): Likewise.
5166         (estimate_loops): Likewise.
5167         * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
5168         (move_sese_region_to_fn): Likewise.
5169         (debug_loop_num): Likewise.
5170         * tree-chrec.c (chrec_evaluate): Likewise.
5171         (hide_evolution_in_other_loops_than_loop): Likewise.
5172         (chrec_component_in_loop_num): Likewise.
5173         (reset_evolution_in_loop): Likewise.
5174         (evolution_function_is_invariant_rec_p): Likewise.
5175         * tree-if-conv.c (main_tree_if_conversion): Likewise.
5176         * tree-inline.c (copy_loops): Likewise.
5177         (copy_cfg_body): Likewise.
5178         (tree_function_versioning): Likewise.
5179         * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
5180         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
5181         Likewise.
5182         (add_to_evolution_1): Likewise.
5183         (scev_const_prop): Likewise.
5184         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
5185         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
5186         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
5187         (tree_ssa_lim_initialize): Likewise.
5188         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
5189         (verify_loop_closed_ssa): Likewise.
5190         * tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
5191         (tree_ssa_loop_im): Likewise.
5192         (tree_ssa_loop_unswitch): Likewise.
5193         (tree_vectorize): Likewise.
5194         (check_data_deps): Likewise.
5195         (tree_ssa_loop_ivcanon): Likewise.
5196         (tree_ssa_loop_bounds): Likewise.
5197         (tree_complete_unroll): Likewise.
5198         (tree_complete_unroll_inner): Likewise.
5199         (tree_parallelize_loops): Likewise.
5200         (tree_ssa_loop_prefetch): Likewise.
5201         (tree_ssa_loop_ivopts): Likewise.
5202         * tree-ssa.c (execute_update_addresses_taken): Liekwise.
5203         * tree-vectorizer.c (vectorize_loops): Likewise.
5205 2013-04-29  Mike Frysinger  <vapier@gentoo.org>
5207         * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
5208         (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
5209         * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
5210         with EABI_LINK_SPEC.
5212 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
5214         PR target/44578
5215         * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
5216         alternative.
5218 2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
5220         PR target/57097
5221         * lra-constraints.c (process_alt_operands): Discourage a bit more
5222         using memory for pseudos.  Print cost dump for alternatives.
5223         Modify cost values for conflicts with early clobbers.
5224         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
5226 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
5228         PR target/57098
5229         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
5231 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
5233         * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
5234         from/to S register.
5235         (movdi_aarch64): Support LDR/STR from/to D register.
5237 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
5239         * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
5240         or higher by default.
5242 2013-04-29  Richard Biener  <rguenther@suse.de>
5244         PR middle-end/57075
5245         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
5246         even if not adding abnormal edges for calls that can make
5247         abnormal gotos.
5249 2013-04-29  Richard Biener  <rguenther@suse.de>
5251         PR middle-end/57103
5252         * tree-cfg.c (move_stmt_op): Fix condition under which to update
5253         TREE_BLOCK.
5254         (move_stmt_r): Remove redundant checking.
5256 2013-04-29  Teresa Johnson  <tejohnson@google.com>
5258         PR bootstrap/57077
5259         * basic-block.h (apply_scale): New function.
5260         (apply_probability): Use apply_scale.
5261         * gimple-streamer-in.c (input_bb): Ditto.
5262         * lto-streamer-in.c (input_cfg): Ditto.
5263         * lto-cgraph.c (merge_profile_summaries): Ditto.
5264         * tree-optimize.c (execute_fixup_cfg): Ditto.
5265         * tree-inline.c (copy_bb): Update comment to use apply_scale.
5266         (copy_edges_for_bb): Ditto.
5267         (copy_cfg_body): Ditto.
5269 2013-04-29  Tom de Vries  <tom@codesourcery.com>
5271         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
5272         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
5273         (tail_merge_optimize): Handle current_loops == NULL.
5275 2013-04-26  Jeff Law  <law@redhat.com>
5277         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
5278         (simplify_cond_using_ranges): Generalize code to simplify
5279         COND_EXPRs where one argument is a constant and the other
5280         is an SSA_NAME created by an integral type conversion.
5282 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5284         * config/arm/arm.md (store_minmaxsi): Use only when
5285         optimize_insn_for_size_p.
5287 2013-04-29  Christian Bruel  <christian.bruel@st.com>
5289         PR target/57108
5290         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
5292 2013-04-29  Richard Biener  <rguenther@suse.de>
5294         PR middle-end/57089
5295         * omp-low.c (expand_omp_taskreg): If the parent function had a broken
5296         loop tree make sure to schedule a fixup for the child as well.
5297         (expand_omp_for_generic): Properly add loops.
5298         (expand_omp_for_static_nochunk): Likewise.
5299         (expand_omp_for_static_chunk): Likewise.
5300         (expand_omp_for): For the degenerate case fixup loops.
5301         (expand_omp_sections): Fix default bb placement in loops.
5302         (expand_omp_atomic_pipeline): Properly add loops.
5304 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5306         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
5308 2013-04-29  Tom de Vries  <tom@codesourcery.com>
5310         * tree-ssa-tail-merge.c: Update header comment.
5312 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5314         * config/aarch64/arm_neon.h
5315         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
5316         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
5317         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
5318         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
5319         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
5320         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
5321         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
5322         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
5324 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5326         * config/aarch64/aarch64-simd.md
5327         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
5328         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
5329         fix_trunc, fixuns_trunc.
5330         (ftrunc<VDQF:mode>2): New.
5331         * config/aarch64/iterators.md (optab): Add fix, fixuns.
5332         (fix_trunc_optab): New.
5334 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5336         * config/aarch64/aarch64-builtins.c
5337         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
5338         iceilf, lround, iroundf.
5340 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
5342         PR target/54349
5343         * config/i386/i386.h (enum ix86_tune_indices)
5344         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
5345         New, split from X86_TUNE_INTER_UNIT_MOVES.
5346         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
5347         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
5348         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
5349         (TARGET_INTER_UNIT_MOVES): Remove.
5350         * config/i386/i386.c (initial_ix86_tune_features): Update.
5351         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
5352         (ix86_expand_convert_uns_didf_sse): Use
5353         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
5354         (ix86_expand_vector_init_one_nonzero): Ditto.
5355         (ix86_expand_vector_init_interleave): Ditto.
5356         (inline_secondary_memory_needed): Return true for moves from SSE class
5357         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
5358         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
5359         * config/i386/constraints.md (Yi, Ym): Depend on
5360         TARGET_INTER_UNIT_MOVES_TO_VEC.
5361         (Yj, Yn): New constraints.
5362         * config/i386/i386.md (*movdi_internal): Change constraints of
5363         operand 1 from Yi to Yj and from Ym to Yn.
5364         (*movsi_internal): Ditto.
5365         (*movdf_internal): Ditto.
5366         (*movsf_internal): Ditto.
5367         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
5368         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
5369         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
5370         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
5371         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
5372         * config/i386/sse.md (movdi_to_sse): Ditto.
5373         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
5374         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
5375         TARGET_INTER_UNIT_MOVES.
5376         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
5377         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
5378         instead of TARGET_INTER_UNIT_MOVES.
5379         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
5380         operand 1 from Yi to Yj and from Ym to Yn.
5382 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5384         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
5385         (float_truncate_hi_): Likewise.
5386         (float_extend_lo_): Likewise.
5387         (float_truncate_lo_): Likewise.
5388         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
5389         (aarch64_float_extend_lo_v2df): Likewise.
5390         (vec_unpacks_hi_v4sf): Likewise.
5391         (aarch64_float_truncate_lo_v2sf): Likewise.
5392         (aarch64_float_truncate_hi_v4sf): Likewise.
5393         (vec_pack_trunc_v2df): Likewise.
5394         (vec_pack_trunc_df): Likewise.
5396 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5398         * config/aarch64/aarch64-builtins.c
5399         (aarch64_fold_builtin): Fold float conversions.
5400         * config/aarch64/aarch64-simd-builtins.def
5401         (floatv2si, floatv4si, floatv2di): New.
5402         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
5403         * config/aarch64/aarch64-simd.md
5404         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
5405         * config/aarch64/iterators.md (FLOATUORS): New.
5406         (optab): Add float, floatuns.
5407         (su_optab): Likewise.
5409 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5411         * config/aarch64/aarch64-builtins.c
5412         (aarch64_builtin_vectorized_function): Use new names for
5413         fcvt builtins.
5414         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
5415         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
5416         (fcvtzu): Split as...
5417         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
5418         (fcvtas): Split as...
5419         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
5420         (fcvtau): Split as...
5421         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
5422         (fcvtps): Split as...
5423         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
5424         (fcvtpu): Split as...
5425         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
5426         (fcvtms): Split as...
5427         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
5428         (fcvtmu): Split as...
5429         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
5430         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
5431         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
5432         (lfrintnusf, lfrintnudf): Likewise.
5433         * config/aarch64/aarch64-simd.md
5434         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
5435         define_insn.
5436         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
5437         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
5438         (fcvt_pattern): Likewise.
5440 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5442         * config/aarch64/aarch64-simd.md
5443         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
5444         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
5446 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5448         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
5449         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
5450         (vrnd<a,m,n,p>_f32): Implement using builtins.
5451         (vrnd<i,x><q>_f<32, 64>): New.
5453 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5455         * config/aarch64/aarch64-builtins.c
5456         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
5457         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
5458         (frintz): Rename to...
5459         (btrunc): ...this.
5460         (frintp): Rename to...
5461         (ceil): ...this.
5462         (frintm): Rename to...
5463         (floor): ...this.
5464         (frinti): Rename to...
5465         (nearbyint): ...this.
5466         (frintx): Rename to...
5467         (rint): ...this.
5468         (frinta): Rename to...
5469         (round): ...this.
5470         * config/aarch64/aarch64-simd.md
5471         (aarch64_frint<frint_suffix><mode>): Delete.
5472         (<frint_pattern><mode>2): Convert to insn.
5473         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
5474         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
5475         (frint_pattern): Likewise.
5476         (frint_suffix): Likewise.
5478 2013-04-29  Richard Biener  <rguenther@suse.de>
5480         PR tree-optimization/57081
5481         * loop-init.c: Include tree-flow.h.
5482         (loop_optimizer_finalize): Free number of iteration estimates.
5483         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
5485 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
5487         PR tree-optimization/57083
5488         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
5489         non-singleton shift count range, zero extend low_bound for uns case.
5491         * config/i386/predicates.md (general_vector_operand): New predicate.
5492         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
5493         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
5494         if they aren't nonimmediate operands.  If their original values
5495         satisfy const_vector_equal_evenodd_p, don't shift them.
5496         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
5497         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
5498         if not nonimmediate_operand.
5499         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
5500         instead of register_operand.
5501         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
5503 2013-04-28  Eric Botcazou  <ebotcazou@adacore.com>
5505         * stor-layout.c (finalize_size_functions): Allocate a structure and
5506         reset cfun before dumping the functions.
5508 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
5510         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
5512         PR target/56866
5513         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
5514         use xop_pmacsdqh if uns_p.
5515         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
5516         the immediate rotate count.
5518 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
5520         * rtl.h (struct rtx_def): Add comment for field jump.
5521         (LRA_SUBREG_P): New macro.
5522         * recog.c (register_operand): Check LRA_SUBREG_P.
5523         * lra.c (lra): Add note at the end of RTL code. Align non-empty
5524         stack frame.
5525         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
5526         (lra_final_code_change): Skip subreg change for operators.
5527         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
5528         if there are no operand changes.
5529         * lra-constraints.c (curr_insn_set): New.
5530         (match_reload): Set LRA_SUBREG_P.
5531         (emit_spill_move): Ditto.
5532         (check_and_process_move): Use curr_insn_set. Process only single
5533         set insns.  Don't initialize sec_mem_p and change_p.
5534         (simplify_operand_subreg): Use LRA_SUBREG_P.
5535         (reg_in_class_p): New function.
5536         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
5537         of #ifdef.  Add code to remove cycling.
5538         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
5539         non-null disp.  Reload inner instead of disp when base and index
5540         are null.  Try to put lo_sum into register.
5541         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
5542         (check_and_process_move): Move code for move cost check to
5543         simple_move_p.  Remove equiv_substitution.
5544         (simple_move_p): New function.
5545         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
5546         curr_insn_set.  Call check_and_process_move only for single set
5547         insns.  Use the new function.  Move call of check_and_process_move
5548         after operand equiv substitution and address process.
5550 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
5552         PR go/57045
5553         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
5554         with nonlocal goto receivers or returns twice calls, ignore
5555         unininitialized values from abnormal edges to nl goto receiver
5556         or returns twice call.
5558 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
5560         PR tree-optimization/57051
5561         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
5562         and VEC_RSHIFT_EXPR if shift count is a multiple of element
5563         bitsize.
5565 2013-04-26  Richard Biener  <rguenther@suse.de>
5567         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
5568         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
5569         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
5570         (fixup_loop_arrays_after_move): New function.
5571         (move_sese_region_to_fn): Properly outline the loop tree parts
5572         of the SESE region.
5574 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
5576         * config/i386/i386.md (type, unit): Fix long lines.
5578 2013-04-26  Richard Biener  <rguenther@suse.de>
5580         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
5581         (lto-streamer-out.o): Likewise.
5582         * cfgloop.c (init_loops_structure): Export, add struct function
5583         argument and adjust.
5584         (flow_loops_find): Adjust.
5585         * cfgloop.h (enum loop_estimation): Add EST_LAST.
5586         (init_loops_structure): Declare.
5587         * lto-streamer-in.c: Include cfgloop.h.
5588         (input_cfg): Input the loop tree.
5589         * lto-streamer-out.c: Include cfgloop.h.
5590         (output_cfg): Output the loop tree.
5591         (output_struct_function_base): Do not drop PROP_loops.
5593 2013-03-26  Richard Biener  <rguenther@suse.de>
5595         * tree-cfg.c (execute_build_cfg): Build the loop tree.
5596         (pass_build_cfg): Provide PROP_loops.
5597         (move_sese_region_to_fn): Remove loops that are outlined into fn
5598         for now.
5599         * tree-inline.c: Include cfgloop.h.
5600         (initialize_cfun): Do not drop PROP_loops.
5601         (copy_loops): New function.
5602         (copy_cfg_body): Copy loop structure.
5603         (tree_function_versioning): Initialize destination loop tree.
5604         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
5605         (pass_parallelize_loops): Do IL verification.
5606         * loop-init.c (loop_optimizer_init): Fixup loops if required.
5607         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
5608         the CFG make sure we fixup loops as well.
5609         * tree-ssa-tail-merge.c: Include cfgloop.h.
5610         (replace_block_by): When merging loop latches mark loops for fixup.
5611         * lto-streamer-out.c (output_struct_function_base): Drop
5612         PROP_loops for now.
5613         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
5614         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
5615         * ipa-split.c: Include cfgloop.h.
5616         (split_function): Add the new return block to the loop tree root.
5617         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
5618         whether we have removed the forwarder block.
5619         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
5620         * cfgloop.h (place_new_loop): Declare.
5621         * cfgloopmanip.c (place_new_loop): Export.
5622         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
5623         (tree-switch-conversion.o): Likewise.
5624         (tree-complex.o): Likewise.
5625         (tree-inline.o): Likewise.
5626         (tree-ssa-tailmerge.o): Likewise.
5627         (ipa-split.o): Likewise.
5628         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
5629         (tree-ssa-copy.o): Likewise.
5630         * tree-switch-conversion.c: Include cfgloop.h
5631         (process_switch): If we emit a bit-test cascade, schedule loops
5632         for fixup.
5633         * tree-complex.c: Include cfgloop.h.
5634         (expand_complex_div_wide): Properly add new basic-blocks to loops.
5635         * asan.c: Include cfgloop.h.
5636         (create_cond_insert_point): Properly add new basic-blocks to
5637         loops, schedule loop fixup.
5638         * cfgloop.c (verify_loop_structure): Check that looks are not
5639         marked for fixup.
5640         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
5641         to loops.
5642         (expand_omp_for_generic): Likewise.
5643         (expand_omp_sections): Likewise.
5644         (expand_omp_atomic_pipeline): Schedule loops for fixup.
5645         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
5646         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
5647         is initialized, not when loops are present.
5648         * tree-parloops.c (parallelize_loops): Remove checking here.
5649         * passes.c (init_optimization_passes): Schedule a copy-propagation
5650         pass before complete unrolling of inner loops.
5652 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
5654         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
5655         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
5656         (colorize_init): Add argument to _WIN32 version.
5657         * toplev.c: Include diagnostic-color.h.
5658         (process_options): Default to -fdiagnostics-color=auto if
5659         GCC_COLORS env var is in the environment.
5660         * common.opt (fdiagnostics-color=): Add Var and Init.
5661         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
5662         env var is in the environment, the default is auto rather than never.
5664         * diagnostic.h (file_name_as_prefix): Add context argument.
5665         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
5666         the string as locus.
5667         * langhooks.c (lhd_print_error_function): Adjust caller.
5669 2013-04-25  Lawrence Crowl  <crowl@google.com>
5671         * var-tracking.c (shared_hash_def::htab):
5672         Change type to hash_table.  Update dependent calls and types.
5674 2013-04-25  Lawrence Crowl  <crowl@google.com>
5676         * Makefile.in: Update as needed below.
5678         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
5679         Move declaration to after the type's method definitons.
5681         * attribs.c (htab_t scoped_attributes::attribute_hash):
5682         Change type to hash_table.  Update dependent calls and types.
5684         * bitmap.c (htab_t bitmap_desc_hash):
5685         Change type to hash_table.  Update dependent calls and types.
5687         * cselib.c (htab_t cselib_hash_table):
5688         Change type to hash_table.  Update dependent calls and types.
5690         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
5691         (hash_string_slot_node): Move implementation into lto-streamer.h
5692         struct string_slot_hasher.
5693         (eq_string_slot_node): Likewise.
5695         * data-streamer-out.c: Update output_block::string_hash_table
5696         dependent calls and types.
5698         * dwarf2cfi.c (htab_t trace_index):
5699         Change type to hash_table.  Update dependent calls and types.
5701         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
5702         Change type to hash_table.  Update dependent calls and types.
5703         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
5704         (htab_t optimize_external_refs::map): Likewise.
5705         (htab_t output_comp_unit::extern_map): Likewise.
5706         (htab_t output_comdat_type_unit::extern_map): Likewise.
5707         (htab_t output_macinfo::macinfo_htab): Likewise.
5708         (htab_t optimize_location_lists::htab): Likewise.
5709         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
5711         * except.c (htab_t ehspec_hash_type):
5712         Change type to hash_table.  Update dependent calls and types.
5713         (assign_filter_values::ttypes): Likewise.
5714         (assign_filter_values::ehspec): Likewise.
5715         (sjlj_assign_call_site_values::ar_hash): Likewise.
5716         (convert_to_eh_region_ranges::ar_hash): Likewise.
5718         * gcse.c (htab_t pre_ldst_table):
5719         Change type to hash_table.  Update dependent calls and types.
5721         * ggc-common.c (htab_t saving_htab):
5722         Change type to hash_table.  Update dependent calls and types.
5723         (htab_t loc_hash): Likewise.
5724         (htab_t ptr_hash): Likewise.
5725         (call_count): Rename ggc_call_count.
5726         (call_alloc): Rename ggc_call_alloc.
5727         (loc_descriptor): Rename make_loc_descriptor.
5728         (add_statistics): Rename ggc_add_statistics.
5730         * ggc-common.c (saving_htab):
5731         Change type to hash_table.  Update dependent calls and types.
5733         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
5734         (push_gimplify_context): Likewise.
5735         (pop_gimplify_context): Likewise.
5736         (struct gimple_temp_hash_elt): Added.
5737         (struct gimplify_hasher): Likewise.
5738         (struct gimplify_ctx.temp_htab):
5739         Change type to hash_table.  Update dependent calls and types.
5741         * gimple-fold.c: Include gimplify-ctx.h.
5743         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
5744         Change type to hash_table.  Update dependent calls and types.
5745         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
5746         avoid potential global name collision.
5748         * gimplify.c: Include gimplify-ctx.h.
5749         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
5750         (htab_t gimplify_ctx::temp_htab):
5751         Update dependent calls and types for new type hash_table.
5752         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
5753         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
5755         * gimplify-ctx.h: New.
5756         (struct gimple_temp_hash_elt): Move from gimplify.c.
5757         (class gimplify_hasher): New.
5758         (struct gimplify_ctx): Move from gimple.h.
5759         (htab_t gimplify_ctx::temp_htab):
5760         Change type to hash_table.  Update dependent calls and types.
5762         * graphite-clast-to-gimple.c: Include graphite-htab.h.
5763         (htab_t ivs_params::newivs_index):
5764         Change type to hash_table.  Update dependent calls and types.
5765         (htab_t ivs_params::params_index): Likewise.
5766         (htab_t print_generated_program::params_index): Likewise.
5767         (htab_t gloog::newivs_index): Likewise.
5768         (htab_t gloog::params_index): Likewise.
5770         * graphite.c: Include graphite-htab.h.
5771         4htab_t graphite_transform_loops::bb_pbb_mapping):
5772         Change type to hash_table.  Update dependent calls and types.
5774         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
5775         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
5776         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
5778         * graphite-dependences.c: Include graphite-htab.h.
5779         (loop_is_parallel_p): Change hash table type of parameter.
5781         * graphite-htab.h: New.
5782         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
5783         (extern find_pbb_via_hash): Move from graphite-poly.h.
5784         (extern loop_is_parallel_p): Move from graphite-poly.h.
5785         (extern get_loop_body_pbbs): Move from graphite-poly.h.
5787         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
5788         (extern loop_is_parallel_p): Move to graphite-htab.h.
5789         (extern get_loop_body_pbbs): Move to graphite-htab.h.
5791         * haifa-sched.c (htab_t delay_htab):
5792         Change type to hash_table.  Update dependent calls and types.
5793         (htab_t delay_htab_i2): Likewise.
5795         * ira-color.c (htab_t allocno_hard_regs_htab):
5796         Change type to hash_table.  Update dependent calls and types.
5798         * ira-costs.c (htab_t cost_classes_htab):
5799         Change type to hash_table.  Update dependent calls and types.
5801         * loop-invariant.c (htab_t merge_identical_invariants::eq):
5802         Change type to hash_table.  Update dependent calls and types.
5804         * loop-iv.c (htab_t bivs):
5805         Change type to hash_table.  Update dependent calls and types.
5807         * loop-unroll.c (htab_t opt_info::insns_to_split):
5808         Change type to hash_table.  Update dependent calls and types.
5809         (htab_t opt_info::insns_with_var_to_expand): Likewise.
5811         * lto-streamer.h (struct string_slot): Move from data-streamer.h
5812         (struct string_slot_hasher): New.
5813         (htab_t output_block::string_hash_table):
5814         Change type to hash_table.  Update dependent calls and types.
5816         * lto-streamer-in.c (freeing_string_slot_hasher): New.
5817         (htab_t file_name_hash_table):
5818         Change type to hash_table.  Update dependent calls and types.
5820         * lto-streamer-out.c: Update output_block::string_hash_table dependent
5821         calls and types.
5823         * lto-streamer.c (htab_t tree_htab):
5824         Change type to hash_table.  Update dependent calls and types.
5826         * omp-low.c: Include gimplify-ctx.h.
5828         * passes.c (htab_t name_to_pass_map):
5829         Change type to hash_table.  Update dependent calls and types.
5830         (pass_traverse): Rename to passes_pass_traverse.
5832         * plugin.c (htab_t event_tab):
5833         Change type to hash_table.  Update dependent calls and types.
5835         * postreload-gcse.c (htab_t expr_table):
5836         Change type to hash_table.  Update dependent calls and types.
5837         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
5839         * sese.c (debug_rename_map_1): Make extern.
5840         (htab_t copy_bb_and_scalar_dependences::rename_map):
5841         Change type to hash_table.  Update dependent calls and types.
5843         * sese.h (extern debug_rename_map): Move to .c file.
5845         * store-motion.c (htab_t store_motion_mems_table):
5846         Change type to hash_table.  Update dependent calls and types.
5848         * trans-mem.c (htab_t tm_new_mem_hash):
5849         Change type to hash_table.  Update dependent calls and types.
5851         * tree-browser.c (htab_t TB_up_ht):
5852         Change type to hash_table.  Update dependent calls and types.
5854         * tree-cfg.c (htab_t discriminator_per_locus):
5855         Change type to hash_table.  Update dependent calls and types.
5857         * tree-complex.c: Include tree-hasher.h
5858         (htab_t complex_variable_components):
5859         Change type to hash_table.  Update dependent calls and types.
5861         * tree-eh.c (htab_t finally_tree):
5862         Change type to hash_table.  Update dependent calls and types.
5864         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
5865         struct int_tree_hasher.
5866         (extern int_tree_map_eq): Likewise.
5867         (uid_decl_map_hash): Removed.
5868         (extern decl_tree_map_eq): Likewise.
5870         * tree-hasher.h: New.
5871         (struct int_tree_hasher): New.
5872         (typedef int_tree_htab_type): New.
5874         * tree-inline.c: Include gimplify-ctx.h.
5876         * tree-mudflap.c: Include gimplify-ctx.h.
5878         * tree-parloops.c: Include tree-hasher.h.
5879         (htab_t eliminate_local_variables_stmt::decl_address):
5880         Change type to hash_table.  Update dependent calls and types.
5881         (htab_t separate_decls_in_region::decl_copies): Likewise.
5883         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
5884         Change type to hash_table.  Update dependent calls and types.
5886         * tree-sra.c (candidates):
5887         Change type to hash_table.  Update dependent calls and types.
5889         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
5890         in tree-flow.h.
5891         (int_tree_map_hash): Likewise.
5893         * tree-ssa-dom.c (htab_t avail_exprs):
5894         Change type to hash_table.  Update dependent calls and types.
5896         * tree-ssa-live.c (var_map_base_init::tree_to_index):
5897         Change type to hash_table.  Update dependent calls and types.
5899         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
5900         Change type to hash_table.  Update dependent calls and types.
5902         * tree-ssa-phiopt.c (seen_ssa_names):
5903         Change type to hash_table.  Update dependent calls and types.
5905         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
5906         Change type to hash_table.  Update dependent calls and types.
5908         * tree-ssa-uncprop.c (equiv):
5909         Change type to hash_table.  Update dependent calls and types.
5911 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
5913         PR rtl-optimization/57003
5914         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
5915         call note_stores with kill_clobbered_value callback again after
5916         killing regs_invalidated_by_call.
5918 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
5920         * config/aarch64/aarch64-simd.md
5921         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
5922         (aarch64_simd_bsl<mode>): Likewise.
5923         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
5925 2013-04-25  Marek Polacek  <polacek@redhat.com>
5927         PR tree-optimization/57066
5928         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
5930 2013-04-25  James Greenhalgh  <jame.greenhalgh@arm.com>
5932         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
5934 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
5936         * config/aarch64/aarch64-builtins.c
5937         (aarch64_fold_builtin): New.
5938         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
5939         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
5940         * config/aarch64/aarch64-simd-builtins.def (abs): New.
5941         * config/aarch64/arm_neon.h
5942         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
5944 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
5945             Tejas Belagod  <tejas.belagod@arm.com>
5947         * config/aarch64/aarch64-builtins.c
5948         (aarch64_gimple_fold_builtin): New.
5949         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
5950         * config/aarch64/aarch64-simd-builtins.def (addv): New.
5951         * config/aarch64/aarch64-simd.md (addpv4sf): New.
5952         (addvv4sf): Update.
5953         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
5955 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5957         * config/aarch64/aarch64.md
5958         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
5960 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5962         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
5963         (*ngcsi_uxtw): New pattern.
5965 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5966             Julian Brown  <julian@codesourcery.com>
5968         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
5969         (TB_DREG): Add T_V4HF.
5970         (v4hf_UP): New macro.
5971         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5972         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5973         Handle initialisation of V4HF. Adjust initialisation of reinterpret
5974         built-ins.
5975         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5976         (arm_vector_mode_supported_p): Handle V4HF.
5977         (arm_mangle_map): Handle V4HFmode.
5978         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
5979         * config/arm/arm_neon_builtins.def: Add entries for
5980         vcvtv4hfv4sf, vcvtv4sfv4hf.
5981         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
5982         (neon_vcvtv4hfv4sf): Likewise.
5983         * config/arm/neon-gen.ml: Handle half-precision floating point
5984         features.
5985         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
5986         * config/arm/arm_neon.h: Regenerate.
5987         * config/arm/neon.ml (type elts): Add F16.
5988         (type vectype): Add T_float16x4, T_floatHF.
5989         (type vecmode): Add V4HF.
5990         (type features): Add Requires_FP_bit feature.
5991         (elt_width): Handle F16.
5992         (elt_class): Likewise.
5993         (elt_of_class_width): Likewise.
5994         (mode_of_elt): Refactor.
5995         (type_for_elt): Handle F16, fix error messages.
5996         (vectype_size): Handle T_float16x4.
5997         (vcvt_sh): New function.
5998         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
5999         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
6000         (string_of_mode): Handle V4HF.
6001         * doc/arm-neon-intrinsics.texi: Regenerate.
6003 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
6005         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
6006         format specifier in 'X' case.
6008 2013-04-25  Alan Modra  <amodra@gmail.com>
6010         PR target/57052
6011         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
6012         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
6013         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
6014         Repeat for many other rotate/shift and mask patterns using subregs.
6015         Name lshiftrt insns.
6016         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
6017         on WORDS_BIG_ENDIAN.
6019 2013-04-25  Alan Modra  <amodra@gmail.com>
6021         * config.gcc: Support little-endian powerpc-linux targets.
6022         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
6023         (LINK_OS_LINUX_SPEC): Define.
6024         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
6025         Preserve MASK_LITTLE_ENDIAN.
6026         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
6027         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
6028         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
6029         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
6030         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
6031         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
6032         Correct fp word order for little-endian.  Don't shift toc entries
6033         smaller than a word for little-endian.
6034         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
6035         (bswapdi2 splits): Correct low-part subreg for little-endian.
6036         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
6037         low/high where such is correct only for be.
6038         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
6039         little-endian for -mcall-aixdesc.
6041 2013-04-25  Alan Modra  <amodra@gmail.com>
6043         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
6044         replace_equiv_address_nv.
6046 2013-04-25  Alan Modra  <amodra@gmail.com>
6048         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
6050 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
6052         Revert:
6053         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
6054         * rtl.h (struct rtx_def): ...
6056 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
6058         PR rtl-optimizations/57046
6059         * lra-constraints (split_reg): Set up lra_risky_transformations_p
6060         for multi-reg splits.
6062 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
6064         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
6066 2013-04-24  Sterling Augustine  <saugustine@google.com>
6068         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
6069         (comp_dir_string, debug_str_dwo_section): New.
6070         (DEBUG_STR_DWO_SECTION): Rename to ...
6071         (DEBUG_DWO_STR_SECTION): ... this.
6072         (DEBUG_NORM_STR_SECTION): Delete.
6073         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
6074         (DEBUG_STR_DWO_SECTION_FLAGS): New.
6075         (find_AT_string): Move most logic to ...
6076         (find_AT_string_in_table): ... here.  New.
6077         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
6078         add_skeleton_AT_string.  Delete logic.
6079         (output_skeleton_debug_sections): Remove call to
6080         add_top_level_skeleton_die_attrs.
6081         (add_comp_dir_attribute): Move logic to comp_dir_string.
6082         (dwarf2out_init): Initialize debug_str_dwo_section.
6083         (output_indirect_string): Call find_string_form.
6084         (output_indirect_strings): Rewrite.
6085         (prune_unused_types): Empty skeleton_debug_str_hash.
6086         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
6087         (dwarf2out_finish):  Call output_indirect_strings.
6089 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
6091         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
6093 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
6095         * rtl.h (struct rtx_def): Add comment for field jump.
6096         (LRA_SUBREG_P): New macro.
6097         * recog.c (register_operand): Check LRA_SUBREG_P.
6098         * lra.c (lra): Add note at the end of RTL code. Align non-empty
6099         stack frame.
6100         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
6101         (lra_final_code_change): Skip subreg change for operators.
6102         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
6103         if there are no operand changes.
6104         * lra-constraints.c (curr_insn_set): New.
6105         (match_reload): Set LRA_SUBREG_P.
6106         (emit_spill_move): Ditto.
6107         (check_and_process_move): Use curr_insn_set. Process only single
6108         set insns.  Don't initialize sec_mem_p and change_p.
6109         (simplify_operand_subreg): Use LRA_SUBREG_P.
6110         (reg_in_class_p): New function.
6111         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
6112         of #ifdef.  Add code to remove cycling.
6113         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
6114         non-null disp.  Reload inner instead of disp when base and index
6115         are null.  Try to put lo_sum into register.
6116         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
6117         (check_and_process_move): Move code for move cost check to
6118         simple_move_p.  Remove equiv_substitution.
6119         (simple_move_p): New function.
6120         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
6121         curr_insn_set.  Call check_and_process_move only for single set
6122         insns.  Use the new function.  Move call of check_and_process_move
6123         after operand equiv substitution and address process.
6125 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
6127         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
6128         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
6129         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
6131 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
6133         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
6135 2013-04-24  Marek Polacek  <polacek@redhat.com>
6137         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
6138         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
6139         (select_loops_exit_conditions): Likewise.
6140         (number_of_iterations_for_all_loops): Likewise.
6141         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
6142         (scev_analysis): Likewise.
6144 2013-04-02  Catherine Moore  <clm@codesourcery.com>
6145             Chao-ying Fu <fu@mips.com>
6147         * config/mips/micromips.md (jraddiusp): New pattern.
6148         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
6149         instruction if possible.
6151 2013-04-24  Alan Modra  <amodra@gmail.com>
6153         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
6155 2013-04-24  Julian Brown  <julian@codesourcery.com>
6156             Chung-Lin Tang  <cltang@codesourcery.com>
6158         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
6159         dependency behavior in enumeration type DIE generation. Add TODO note
6160         to comments about future DW_FORM_sdata/udata re-work of related code.
6162 2013-04-23  Lawrence Crowl  <crowl@google.com>
6164         * Makefile.in: Update as needed below.
6166         * hash-table.h (class hash_table):
6167         Correct many methods with parameter types compare_type to the correct
6168         value_type.  (Correct code was unlikely to notice the change.)
6169         (hash_table::elements_with_deleted) New.
6170         (class hashtable::iterator): New.
6171         (hashtable::begin()): New.
6172         (hashtable::end()): New.
6173         (FOR_EACH_HASH_TABLE_ELEMENT): New.
6175         * statistics.c (statistics_hashes):
6176         Change type to hash_table.  Update dependent calls and types.
6178         * tree-into-ssa.c (var_infos):
6179         Change type to hash_table.  Update dependent calls and types.
6181         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
6182         Change type to hash_table.  Update dependent calls and types.
6184         * tree-ssa-loop-im.c (struct mem_ref.refs):
6185         Change type to hash_table.  Update dependent calls and types.
6187         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
6188         Change type to hash_table.  Update dependent calls and types.
6190         * tree-ssa-sccvn.c (vn_tables_s::nary):
6191         Change type to hash_table.  Update dependent calls and types.
6192         (vn_tables_s::phis): Likewise.
6193         (vn_tables_s::references): Likewise.
6195         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
6196         (vn_reference_eq): Update parameter and return types.
6198         * tree-ssa-structalias.c (pointer_equiv_class_table):
6199         Change type to hash_table.  Update dependent calls and types.
6200         (location_equiv_class_table): Likewise.
6202         * tree-vect-data-refs.c: Consequential changes for making
6203         peeling a hash_table.
6205         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
6206         (destroy_loop_vec_info): Dependent hash_table update.
6208         * tree-vectorizer.h (peeling_htab):
6209         Change type to hash_table.  Update dependent calls and types.
6211 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
6213         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
6214         to check the register content is equal or not.
6215         * lra-constraints.c (match_reload): Use lra_assign_reg_val
6216         to assign register content record.
6217         * lra-eliminations.c (update_reg_eliminate): Use
6218         lra_update_reg_val_offset to update register content offset.
6219         * lra-int.h (struct lra_reg): Add offset member.
6220         (lra_reg_val_equal_p): New static inline function.
6221         (lra_update_reg_val_offset): New static inline function.
6222         (lra_assign_reg_val): New static inline function.
6223         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
6224         to assign register content record.
6225         (initialize_lra_reg_info_element): Initial offset to zero.
6227 2013-04-23  Catherine Moore  <clm@codesourcery.com>
6229         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
6230         operands.  Record compression.
6232 2013-04-23  Xinliang David Li  <davidxl@google.com>
6234         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
6236 2013-04-23  Richard Biener  <rguenther@suse.de>
6238         PR middle-end/57036
6239         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
6240         parameter, only add abnormal goto edges from the copied body
6241         if the call could perform abnormal gotos.
6242         (copy_cfg_body): Adjust.
6244 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
6246         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
6248 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
6250         * coretypes.h (gimple_stmt_iterator): Add struct to make
6251         compatible with C.
6253 2013-04-23  Richard Biener  <rguenther@suse.de>
6255         PR tree-optimization/57026
6256         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
6257         from SSA names occuring in abnormal PHI nodes.
6259 2013-04-22  Andi Kleen  <ak@linux.intel.com>
6261         * lto/lto.c (print_lto_report_1): Fix LTO report names.
6263 2013-04-22  Andi Kleen  <ak@linux.intel.com>
6265         * lto/lto.c (print_lto_report_1): Declare early.
6266         (read_cgraph_and_symbols): Call print_lto_report_1 early.
6268 2013-04-22  Andi Kleen  <ak@linux.intel.com>
6270         * common.opt (-flto-report-wpa): Add.
6271         * doc/invoke.texi (-flto-report-wpa): Add.
6272         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
6273         (lto_main): dito.
6275 2013-04-22  Xinliang David Li  <davidxl@google.com>
6277         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
6278         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
6279         * Makefile.in: New dependency
6281             David Daney <ddaney.cavm@gmail.com>
6283         * configure.ac (gcc_cv_as_micromips_support):  Use the
6284         --fatal-warnings option.
6285         * configure: Regenerate.
6287 2013-04-22  Marek Polacek  <polacek@redhat.com>
6289         PR sanitizer/56990
6290         * tsan.c (instrument_expr): Don't instrument expression
6291         in case its size is zero.
6293 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
6295         PR target/57032
6296         Revert:
6297         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
6299         * config/alpha/alpha.c (TARGET_LRA_P): New define.
6301 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
6303         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
6304         (gimple_stmt_iterator): New typedef.
6305         * gimple.h (gimple_stmt_iterator): Rename to...
6306         (gimple_stmt_iterator_d): ... This.
6307         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
6308         trees be valid for GIMPLE and GENERIC.
6309         (TARGET_GIMPLE_FOLD_BUILTIN): New.
6310         * gimple-fold.c (gimple_fold_call): Call target hook
6311         gimple_fold_builtin.
6312         * hooks.c (hook_bool_gsiptr_false): New.
6313         * hooks.h (hook_bool_gsiptr_false): New.
6314         * target.def (fold_stmt): New.
6315         * doc/tm.texi: Regenerate.
6317 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
6319         PR target/57018
6320         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
6321         a set sp if no stack realignment.
6323 2013-04-22  Nick Clifton  <nickc@redhat.com>
6325         * config.gcc (tilegx-linux): Extend extra_objs rather than
6326         overwriting it.
6327         (tilepro-linux): Likewise.
6329 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
6331         * config/aarch64/aarch64-builtins.c
6332         (CF): Remove.
6333         (CF0, CF1, CF2, CF3, CF4, CF10): New.
6334         (VAR<1-12>): Add MAP parameter.
6335         (BUILTIN_*): Likewise.
6336         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
6337         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
6338         (aarch64_ushl_n<mode>): Likewise.
6339         (aarch64_sshr_n<mode>): Likewise.
6340         (aarch64_ushr_n<mode>): Likewise.
6341         (aarch64_<maxmin><mode>): Likewise.
6342         (aarch64_sqrt<mode>): Likewise.
6343         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
6344         (vshr<q>_n_*): Likewise.
6346 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
6348         * config/aarch64/aarch64-builtins.c
6349         (aarch64_simd_builtin_type_mode): Handle SF types.
6350         (sf_UP): Define.
6351         (BUILTIN_GPF): Define.
6352         (aarch64_init_simd_builtins): Handle SF types.
6353         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
6354         (frecps): Likewise.
6355         (frecpx): Likewise.
6356         * config/aarch64/aarch64-simd.md
6357         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
6358         (aarch64_frecpe<mode>): New.
6359         (aarch64_frecps<mode>): Likewise.
6360         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
6361         (v8type): Add frecp<esx>.
6362         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
6363         (aarch64_frecps<mode>): Likewise.
6364         * config/aarch64/iterators.md (FRECP): New.
6365         (frecp_suffix): Likewise.
6366         * config/aarch64/arm_neon.h
6367         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
6369 2013-04-22  Christian Bruel  <christian.bruel@st.com>
6371         PR target/56995
6372         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
6373         (REG_CLASS_NAMES): Idem.
6374         (REG_CLASS_CONTENTS): Idem.
6375         (REGCLASS_HAS_FP_REG): Idem.
6376         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
6377         (sh_conditional_register_usage): Idem.
6379 2013-04-21  Jeff Law  <law@redhat.com>
6381         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
6382         (ssa_forward_propagate_and_combine): Use it.
6384 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
6386         * lra.c: Update the flow chart diagram.
6388 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
6390         PR rtl-optimization/56847
6391         * lra-constraints.c (process_alt_operands): Discourage alternative
6392         with non-matche doffsettable memory constraint fro memory with
6393         known offset.
6395 2013-04-19  Richard Biener  <rguenther@suse.de>
6397         PR tree-optimization/56982
6398         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
6399         function.
6400         * gimplify.c (gimplify_call_expr): Notice special calls.
6401         (gimplify_modify_expr): Likewise.
6402         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
6403         abnormal control flow receivers.
6404         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
6405         in the same way as cfun->has_nonlocal_labels.
6406         (gimple_purge_dead_abnormal_call_edges): Likewise.
6407         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
6408         receivers start a basic-block.
6410 2013-04-19  Richard Biener  <rguenther@suse.de>
6412         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
6413         member ...
6414         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
6415         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
6416         (SLP_TREE_LOAD_PERMUTATION): Add.
6417         (vect_transform_slp_perm_load): Adjust prototype.
6418         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
6419         (vect_free_slp_instance): Likewise.
6420         (vect_create_new_slp_node): Likewise.
6421         (vect_supported_slp_permutation_p): Remove.
6422         (vect_slp_rearrange_stmts): Adjust.
6423         (vect_supported_load_permutation_p): Likewise.  Inline
6424         vect_supported_slp_permutation_p here.
6425         (vect_analyze_slp_instance): Compute load permutations per
6426         slp node instead of per instance.
6427         (vect_get_slp_defs): Adjust.
6428         (vect_transform_slp_perm_load): Likewise.
6429         (vect_schedule_slp_instance): Remove redundant code.
6430         (vect_schedule_slp): Remove hack for PR56270, add it ...
6431         * tree-vect-stmts.c (vectorizable_load): ... here, do not
6432         CSE loads for SLP.  Adjust.
6434 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
6436         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
6437         spelling in two comments.
6439 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
6441         PR target/56797
6442         * config/arm/arm.c (load_multiple_sequence): Require SP
6443         as base register for loads if SP is in the register list.
6445 2013-04-19  Martin Jambor  <mjambor@suse.cz>
6447         PR tree-optimization/56718
6448         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
6449         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
6450         and made public.  Adjusted all callers.
6451         (ipa_intraprocedural_devirtualization): New function.
6452         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
6453         (ipa_intraprocedural_devirtualization): Likewise.
6454         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
6456 2013-04-19  Richard Biener  <rguenther@suse.de>
6458         PR tree-optimization/57000
6459         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
6461 2013-04-19  Terry Guo  <terry.guo@arm.com>
6463         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
6464         Replace with ...
6465         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
6466         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
6467         (cortex_m4_fmacs): Use new reservations.
6468         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
6470 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
6472         PR rtl-optimization/56999
6473         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
6474         related code.
6475         (lra_coalesce): Remove split_origin_bitmap and related code.
6476         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
6477         ranges if necessary.
6479 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
6481         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
6482         New array.
6483         (ix86_expand_call): Remove clobbered_registers array and use
6484         x86_64_ms_sysv_extra_clobbered_registers instead.
6485         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
6486         Declare here.
6487         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
6488         predicate.
6489         * config/i386/i386.md (*call_rex64_ms_sysv): Use
6490         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
6491         (*call_value_rex64_ms_sysv): Ditto.
6493 2013-04-18  Cary Coutant  <ccoutant@google.com>
6495         * dwarf2out.c (output_pubnames): Check die_perennial_p of
6496         parent instead of die_mark.
6498 2013-04-18  Diego Novillo  <dnovillo@google.com>
6500         * gimple.c (create_gimple_tmp): New.
6501         (get_expr_type): New.
6502         (build_assign): New.
6503         (build_type_cast): New.
6504         * gimple.h (enum ssa_mode): Define.
6505         (gimple_seq_set_location): New.
6506         * asan.c (build_check_stmt): Change some gimple_build_* calls
6507         to use build_assign and build_type_cast.
6509 2013-04-18  Richard Biener  <rguenther@suse.de>
6511         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
6512         handle negative step.  Remove redundant checks.
6513         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
6514         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
6515         for negative step and grouped loads fail to vectorize.
6517 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
6519         * emit-rtl.c (reset_insn_used_flags): New function.
6520         (reset_all_used_flags): Use it.
6521         (verify_insn_sharing): New function.
6522         (verify_rtl_sharing): Fix verification for SEQUENCEs.
6524 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
6526         PR tree-optimization/56984
6527         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
6528         and (x >> M) >= N don't register any assertion if N << M is the
6529         minimum value.
6531 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
6533         * lower-subreg.c (resolve_simple_move): If called self-recursive,
6534         do not delete_insn insns that have not yet been emitted, only
6535         unlink them with remove_insn.
6536         * df-scan.c (df_insn_delete): Revert r197492.
6538 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
6540         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
6541         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
6543 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
6545         * config/arm/arm.md (movsicc_insn): Convert define_insn into
6546         define_insn_and_split.
6547         (and_scc,ior_scc,negscc): Likewise.
6548         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
6550 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
6552         * config/arm/arm.c (use_return_insn): Return 0 for targets that
6553         can benefit from using a sequence of LDRD instructions in epilogue
6554         instead of a single LDM instruction.
6556 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6558         PR 45688
6559         * doc/extend.texi: Fix typo.
6561 2013-04-17  Richard Biener  <rguenther@suse.de>
6563         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
6564         (vect_build_slp_tree): ... here.
6565         (vect_build_slp_tree_1): Compute which stmts of the SLP group
6566         match.  Remove special-casing of mismatched complex loads.
6567         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
6568         re-try the match with swapped commutative operands.
6569         (vect_supported_load_permutation_p): Remove special-casing of
6570         mismatched complex loads.
6571         (vect_analyze_slp_instance): Adjust.
6573 2013-04-17  Richard Biener  <rguenther@suse.de>
6575         PR rtl-optimization/56921
6576         * cfgloop.h (struct loop): Add simple_loop_desc member.
6577         (struct niter_desc): Mark with GTY(()).
6578         (simple_loop_desc): Do not use aux field but simple_loop_desc.
6579         * loop-iv.c (get_simple_loop_desc): Likewise.
6580         (free_simple_loop_desc): Likewise.
6582         Revert
6583         2013-04-16  Richard Biener  <rguenther@suse.de>
6585         PR rtl-optimization/56921
6586         * loop-init.c (pass_rtl_move_loop_invariants): Add
6587         TODO_do_not_ggc_collect to todo_flags_finish.
6588         (pass_rtl_unswitch): Same.
6589         (pass_rtl_unroll_and_peel_loops): Same.
6590         (pass_rtl_doloop): Same.
6592 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
6594         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
6595         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
6596         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
6597         references.
6598         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
6599         * tree-streamer.c (record_common_node): Adjust reference in comment.
6601 2013-04-17  Terry Guo  <terry.guo@arm.com>
6603         * config/arm/cortex-m4.md: Add a new bypass.
6605 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6607         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
6608         New pattern.
6609         (*subs_<optab><mode>_multp2): New pattern.
6610         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
6611         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
6613 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6615         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
6616         (*subs_mul_imm_<mode>): New pattern.
6618 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
6620         PR target/56948
6621         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
6622         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
6623         (vsx_movti_32bit): Change j->wa to O->wa.
6625 2013-04-16  Richard Biener  <rguenther@suse.de>
6627         PR rtl-optimization/56921
6628         * loop-init.c (pass_rtl_move_loop_invariants): Add
6629         TODO_do_not_ggc_collect to todo_flags_finish.
6630         (pass_rtl_unswitch): Same.
6631         (pass_rtl_unroll_and_peel_loops): Same.
6632         (pass_rtl_doloop): Same.
6634 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
6636         * config/arm/arm.c (emit_multi_reg_push): New declaration
6637         for an existing function.
6638         (arm_emit_strd_push): New function.
6639         (arm_expand_prologue): Used here.
6640         (arm_emit_ldrd_pop): New function.
6641         (arm_expand_epilogue): Used here.
6642         (arm_get_frame_offsets): Update condition.
6643         (arm_emit_multi_reg_pop): Add a special case for load of a single
6644         register with writeback.
6646 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
6648         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
6649         description.
6651 2013-04-16  Richard Biener  <rguenther@suse.de>
6653         PR tree-optimization/56756
6654         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
6655         (first_mem_ref_loc): New.
6656         (execute_sm): Place the load temporarily before a previous
6657         access instead of in the latch edge to ensure its SSA dependencies
6658         are defined at points dominating the load.
6660 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
6662         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
6663         correct fix by moving header and footer insn to the footer of
6664         the merged basic block.  Clear BB_END of the merged-away block.
6666         PR middle-end/43631
6667         * emit-rtl.c (make_note_raw): New function.
6668         (link_insn_into_chain): New static inline function.
6669         (add_insn): Use it.
6670         (add_insn_before, add_insn_after): Factor insn chain linking code...
6671         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
6672         using link_insn_into_chain.
6673         (note_outside_basic_block_p): New helper function for emit_note_after
6674         and emit_note_before.
6675         (emit_note_after): Use nobb variant of add_insn_after if the note
6676         should not be contained in a basic block.
6677         (emit_note_before): Use nobb variant of add_insn_before if the note
6678         should not be contained in a basic block.
6679         (emit_note_copy): Use make_note_raw.
6680         (emit_note): Likewise.
6681         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
6682         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
6683         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
6684         the moved barrier the tail of the basic block it follows.
6685         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
6687 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
6689         PR tree-optimization/56962
6690         * gimple-ssa-strength-reduction.c (record_increment): Only set
6691         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
6692         either rhs1 or rhs2 is equal to c->base_expr.
6694 2013-04-15  Richard Biener  <rguenther@suse.de>
6696         PR tree-optimization/56933
6697         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
6698         member.
6699         (GROUP_READ_WRITE_DEPENDENCE): Remove.
6700         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
6701         * tree-vect-data-refs.c (vect_analyze_group_access): Move
6702         dependence check ...
6703         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
6704         ... here.
6705         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
6706         GROUP_READ_WRITE_DEPENDENCE.
6708 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6710         * emit-rtl.c (reset_all_used_flags): New function.
6711         (verify_rtl_sharing): Call reset_all_used_flags before and after
6712         performing the checks.
6714 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6716         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
6717         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
6718         * config/arm/constraints.md (De): New constraint.
6719         * config/arm/neon.md (anddi3_neon): Delete.
6720         (neon_vand<mode>): Expand to standard anddi3 pattern.
6721         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
6722         Move earlier in the file.
6723         (neon_inv_logic_op2): Likewise.
6724         (arm_anddi_operand_neon): New predicate.
6726 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6728         * configure.ac (gcc_cv_ld_as_needed): Set
6729         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
6730         Use -z ignore, -z record on *-*-solaris2*.
6731         (HAVE_LD_AS_NEEDED): Update comment.
6732         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
6733         * configure: Regenerate.
6734         * config.in: Regenerate.
6735         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
6736         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
6737         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
6738         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
6739         equivalents.  Fix markup.
6740         * doc/tm.texi: Regenerate.
6742 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
6744         * config/i386/i386.opt: New option mstack-protector-guard=.
6745         * config/i386/i386-opts.h: Add enum stack_protector_guard.
6746         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
6747         TARGET_SSP_TLS_GUARD.
6748         * config/i386/i386.c (ix86_option_override_internal): Set
6749         ix86_stack_protector_guard.
6750         * config/i386/i386.md (stack_protect_set): Enable for
6751         TARGET_SSP_TLS_GUARD only.
6752         (stack_protect_set_<mode>): Ditto.
6753         (stack_protect_test): Ditto.
6754         (stack_protect_test_<mode>): Ditto.
6755         * doc/invoke.texi (i386 Option): Document.
6757 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
6759         PR target/56890
6760         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
6761         (S_MODES): Set H_MODE bit.
6762         (SF_MODES): Set only S_MODE and SF_MODE bits.
6763         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
6764         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
6765         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
6766         <MODE_FLOAT>: Likewise.
6768 2013-04-15  Joey Ye  <joey.ye@arm.com>
6770         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
6772 2013-04-15  Joey Ye  <joey.ye@arm.com>
6774         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
6775         for real far jump.
6776         (thumb_far_jump_used_p): Count instruction size and set
6777         far_jump_used.
6779 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
6781         * reorg.c (fill_simple_delay_slots): Reindent block of code.
6782         * resource.c (mark_target_live_regs): Reformat conditional block.
6784 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
6786         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
6787         notes, they are emitted only just before final.
6788         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
6790 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
6792         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
6793         * cfgrtl.c (delete_insn): Call it here instead.
6794         * lra-spills.c (lra_final_code_change): Use delete_insn.
6795         * haifa-sched.c (sched_remove_insn): Likewise.
6796         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
6797         returning to the nop pool.
6798         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
6799         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
6801 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
6803         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
6804         * doc/tm.texi: Regenerated.
6806 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
6808         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
6809         QImode checks.
6811 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
6813         * df-core.c (df_find_def): Compare register numbers.
6814         (df_find_use): Likewise.
6816 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
6818         PR target/56903
6819         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
6820         lra_in_progress for return.
6822 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
6824         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
6825         define_insn into define_insn_and_split and emit movsicc patterns.
6827 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
6829         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
6831 2013-04-12  Richard Biener  <rguenther@suse.de>
6833         * tree-pass.h (TODO_do_not_ggc_collect): New.
6834         * passes.c (execute_one_ipa_transform_pass): Honor
6835         TODO_do_not_ggc_collect.
6836         (execute_one_pass): Likewise.
6838         Revert
6839         2013-04-10  Richard Biener  <rguenther@suse.de>
6841         * passes.c (init_optimization_passes): Remove reload pass.
6842         * ira.c (do_reload): Merge into ...
6843         (ira): ... this.
6844         (rest_of_handle_reload): Remove.
6845         (pass_reload): Likewise.
6846         * config/i386/i386.c (ix86_option_override): Refer to ira instead
6847         of reload for vzeroupper pass placement.
6849 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
6851         PR tree-optimization/56918
6852         PR tree-optimization/56920
6853         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
6854         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
6855         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
6856         use wide_mul_with_sign method.
6858 2013-04-12  Richard Biener  <rguenther@suse.de>
6860         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
6861         not be considered a gimple constant.
6863 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
6865         * fold-const.c (const_binop): Handle vector shifts by a scalar.
6866         (fold_binary_loc): Call const_binop also for mixed vector-scalar
6867         operations.
6869 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6870             Jakub Jelinek  <jakub@redhat.com>
6872         * opts.c: Include diagnostic-color.h.
6873         (common_handle_option): Handle OPT_fdiagnostics_color_.
6874         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
6875         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
6876         (diagnostic-color.o): New.
6877         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
6878         (diagnostic_color_rule): New enum.
6879         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
6880         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
6881         the location string.
6882         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
6883         either NULL, or color kind.
6884         * diagnostic-color.c: New file.
6885         * diagnostic-color.h: New file.
6886         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
6887         arguments.
6888         * doc/invoke.texi (-fdiagnostics-color): Document.
6889         * pretty-print.h (pp_show_color): Define.
6890         (struct pretty_print_info): Add show_color field.
6891         * diagnostic.c: Include diagnostic-color.h.
6892         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
6893         macros.  Colorize error:, warning: etc. strings and also the location
6894         string.
6895         (diagnostic_show_locus): Colorize the caret line.
6896         * pretty-print.c: Include diagnostic-color.h.
6897         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
6898         inside of %< %> quotes or quoted through q format modifier.
6900 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6902         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
6904 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6906         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
6907         code in CC_NZ mode.
6908         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
6909         pattern.
6911 2013-04-11  Marek Polacek  <polacek@redhat.com>
6913         PR tree-optimization/48184
6914         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
6916 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
6918         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
6919         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
6920         (skip_simple_arithmetic): Tidy up.
6921         * tree.h (skip_simple_constant_arithmetic): Declare.
6923 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6925         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
6927 2013-04-11  Richard Biener  <rguenther@suse.de>
6929         * tree-vect-loop.c (get_initial_def_for_induction): Properly
6930         generate vector constants.
6932 2013-04-11  Richard Biener  <rguenther@suse.de>
6934         PR tree-optimization/56878
6935         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
6936         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
6937         New function.
6938         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6939         Prefer to align the DR with the most invariant base address.
6941 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6943         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
6944         comment.
6946 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
6948         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
6949         floating-point vector comparisons against 0.
6951 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
6953         PR tree-optimization/56899
6954         * fold-const.c (extract_muldiv_1): Apply distributive law
6955         only if TYPE_OVERFLOW_WRAPS (ctype).
6957 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
6959         PR target/56124
6960         * ira-costs.c (scan_one_insn): Check whether the source rtx of
6961         loading has side effect.
6963 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
6965         * config/sparc/sparc.c: Include tree-pass.h.
6966         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
6967         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
6968         head of file.  Change return type.  Split off gate function.
6969         (sparc_gate_work_around_errata): New function.
6970         (pass_work_around_errata): New pass definition.
6971         (insert_pass_work_around_errata) New pass insert definition to
6972         insert pass_work_around_errata just after delayed-branch scheduling.
6973         (sparc_option_override): Insert the pass.
6974         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
6976 2013-04-10  David S. Miller  <davem@davemloft.net>
6978         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
6979         or -mcpu=hypersparc.
6981         * target.def (cstore_mode): New hook.
6982         * target.h: Include insn-codes.h
6983         * targhooks.c: Likewise.
6984         (default_cstore_mode): New function.
6985         * targhooks.h: Declare it.
6986         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
6987         * doc/tm.texi: Rebuild.
6988         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
6989         target hook, rather than inspecting the insn_data.
6990         * config/sparc/sparc.c (sparc_cstore_mode): New function.
6991         (TARGET_CSTORE_MODE): Redefine.
6992         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
6993         result patterns.
6994         * config/sparc/predicates.md (cstore_result_operand): New special
6995         predicate.
6996         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
6997         Use it for operand 0.
6998         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
6999         (*snesi_special): Likewise.
7000         (*snesi_zero): Likewise.
7001         (*seqsi_zero): Likewise.
7002         (*sltu_insn): Likewise.
7003         (*sgeu_insn): Likewise.
7004         (*seqdi_special): Make operand 0 and comparison operation be of
7005         DImode.
7006         (*snedi_special): Likewise.
7007         (*snedi_special_vis3): Likewise.
7008         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
7009         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
7010         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
7011         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
7012         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
7013         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
7014         (*sltu_extend_sp64): Likewise.
7015         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
7016         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
7017         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
7018         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
7019         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
7021 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
7023         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
7024         (aarch64_start_file): Use the new function.
7026 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
7027             Jason Merrill  <jason@redhat.com>
7029         * common.opt: Add -gdwarf.
7030         * opts.c (common_handle_option): Handle it.
7031         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
7033 2013-04-10  Richard Biener  <rguenther@suse.de>
7035         * passes.c (execute_todo): Do not call ggc_collect conditional here.
7036         (execute_one_ipa_transform_pass): But unconditionally here.
7037         (execute_one_pass): And here.
7038         (init_optimization_passes): Remove reload pass.
7039         * tree-pass.h (TODO_ggc_collect): Remove.
7040         (pass_reload): Likewise.
7041         * ira.c (do_reload): Merge into ...
7042         (ira): ... this.
7043         (rest_of_handle_reload): Remove.
7044         (pass_reload): Likewise.
7045         * config/i386/i386.c (ix86_option_override): Refer to ira instead
7046         of reload for vzeroupper pass placement.
7047         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
7048         and todo_flags_finish of all passes.
7050 2013-04-10  Richard Biener  <rguenther@suse.de>
7052         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
7053         first_const_oprnd field, rename first_def_type to first_op_type.
7054         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
7055         (vect_get_and_check_slp_defs): Always use the type of the
7056         operand.  Allow mixed vect_external_def, vect_constant_def types.
7057         (vect_get_constant_vectors): Handle mixed vect_external_def,
7058         vect_constant_def types.
7060 2013-04-10  Joern Rennecke <joern.rennecke@embecosm.com>
7062         PR tree-optimization/55524
7063         * tree-ssa-math-opts.c
7064         (convert_mult_to_fma): Don't use an fms construct
7065         when we don't have an fms operation, but fnma, and it looks
7066         likely that we'll be able to use the latter.
7068 2013-04-10  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
7070         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
7071         function.
7072         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
7073         inline fail caused by overwritable functions.
7075 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
7077         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
7078         unnecessary bits in the constant power of two case.
7080 2013-04-10  Richard Biener  <rguenther@suse.de>
7082         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
7083         broken code swapping operands.
7084         (vect_build_slp_tree): Do not compute load permutations here.
7085         (vect_analyze_slp_instance): Compute load permutations here,
7086         after building the SLP tree.
7088 2013-04-09  Christian Bruel  <christian.bruel@st.com>
7090         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
7091         of next/prev_real_insn.
7093 2013-04-09  Jan Hubicka  <jh@suse.cz>
7095         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
7096         Drop aliased parameter.
7097         (function_and_variable_visibility): Do not handle alias pairs.
7098         * cgraph.c (varpool_externally_visible_p): Update prototype.
7099         * varpool.c (varpool_add_new_variable): Update.
7101 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7103         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
7105 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
7107         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
7109         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
7111 2013-04-09  Marek Polacek  <polacek@redhat.com>
7113         PR tree-optimization/48762
7114         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
7116 2013-04-09  Richard Biener  <rguenther@suse.de>
7118         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
7119         dealing with cost.
7120         (vect_build_slp_tree): Likewise.
7121         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
7122         calculating the cost of a SLP instance.
7123         (vect_analyze_slp_instance): Use it from here, after building
7124         the SLP tree.
7126 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
7128         PR middle-end/56883
7129         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
7130         expand_omp_for_static_chunk): Use simple_p = true in
7131         force_gimple_operand_gsi calls when assigning to addressable decls.
7133 2013-04-09  Jeff Law  <law@redhat.com>
7135         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
7136         when the boolean was created by converting a wider object which
7137         had a boolean range.
7139 2013-04-09  Richard Biener  <rguenther@suse.de>
7141         * tree-vectorizer.h (slp_void_p): Remove.
7142         (slp_tree): Typedef before _slp_tree declaration.
7143         (struct _slp_tree): Use a vector of slp_tree as children.
7144         (vect_get_place_in_interleaving_chain): Remove.
7145         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
7146         Move ...
7147         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
7148         and make static.
7149         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
7150         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
7151         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
7152         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
7153         Use slp_node instead of slp_void_p and adjust.
7155 2013-04-09  Richard Biener  <rguenther@suse.de>
7157         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
7158         work that is not necessary.
7160 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
7162         PR tree-optimization/56854
7163         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
7164         forward into clobber stmts if it would change MEM_REF lhs into
7165         non-MEM_REF.
7167 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
7169         * tree.c (type_hash_lookup, type_hash_add): Make static.
7170         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
7172 2013-04-09  Richard Biener  <rguenther@suse.de>
7174         * tree.h (unsave_expr_now): Remove.
7175         * tree-inline.c (mark_local_for_remap_r): Remove.
7176         (unsave_expr_1): Likewise.
7177         (unsave_r): Likewise.
7178         (unsave_expr_now): Likewise.
7179         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
7180         (propagate_tree_value): Likewise.
7182 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
7184         * doc/rtl.texi (sequence): Rewrite documentation to match the
7185         current use of SEQUENCE rtl objects.
7186         * rtl.def (SEQUENCE): Likewise.
7188         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
7189         Update documentation.
7190         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
7191         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
7193         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
7195 2013-04-08  Teresa Johnson  <tejohnson@google.com>
7197         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
7198         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
7199         methods.
7200         (estimate_edge_size_and_time): Add comment to suggest using rounding
7201         methods.
7202         (estimate_node_size_and_time): Ditto.
7203         (remap_edge_change_prob): Use helper rounding divide methods.
7204         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
7205         (gimple_mod_pow2_value_transform): Ditto.
7206         (gimple_mod_subtract_transform): Ditto.
7207         (gimple_ic_transform): Ditto.
7208         (gimple_stringops_transform): Ditto.
7209         * stmt.c (conditional_probability): Ditto.
7210         (emit_case_dispatch_table): Ditto.
7211         * lto-cgraph.c (merge_profile_summaries): Ditto.
7212         * tree-optimize.c (execute_fixup_cfg): Ditto.
7213         * cfgcleanup.c (try_forward_edges): Ditto.
7214         * cfgloopmanip.c (scale_loop_profile): Ditto.
7215         (loopify): Ditto.
7216         (duplicate_loop_to_header_edge): Ditto.
7217         (lv_adjust_loop_entry_edge): Ditto.
7218         * tree-vect-loop.c (vect_transform_loop): Ditto.
7219         * profile.c (compute_branch_probabilities): Ditto.
7220         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
7221         * lto-streamer-in.c (input_cfg): Ditto.
7222         * gimple-streamer-in.c (input_bb): Ditto.
7223         * ipa-cp.c (update_profiling_info): Ditto.
7224         (update_specialized_profile): Ditto.
7225         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
7226         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
7227         rounding methods.
7228         * sched-rgn.c (compute_dom_prob_ps): Ditto.
7229         (compute_trg_info): Ditto.
7230         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
7231         (purge_dead_edges): Ditto.
7232         * loop-unswitch.c (unswitch_loop): Ditto.
7233         * cgraphclones.c (cgraph_clone_edge): Ditto.
7234         (cgraph_clone_node): Ditto.
7235         * tree-inline.c (copy_bb): Ditto.
7236         (copy_edges_for_bb): Ditto.
7237         (initialize_cfun): Ditto.
7238         (copy_cfg_body): Ditto.
7239         (expand_call_inline): Ditto.
7241 2013-04-08  Kai Tietz  <ktietz@redhat.com>
7243         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
7244         TARGET_CYGWIN64 by TARGET_64BIT.
7246 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
7248         * config/epiphany/epiphany.md (GPR_1): New constant.
7249         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
7250         * config/epiphany/epiphany.c (gen_compare_reg):
7251         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
7252         is already in place.
7253         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
7254         Don't require being called during rtl expansion; If y operlaps r0,
7255         return 0.
7256         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
7257         (epiphany_expand_epilogue): Likewise.
7259         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
7260         Don't use CC_FPmode for ORDERED / UNORDERED.
7261         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
7263         * config/epiphany/constraints.md (CnL): New constraint.
7264         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
7265         * config/epiphany/predicates.md (add_operand): Allow 1024.
7267         * config/epiphany/epiphany.md (logical_op): New code iterator.
7268         (op_mnc): New code attribute.
7269         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
7270         (mov_f+1, mov_f+2): New peephole2 patterns.
7272         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
7273         (cstoresi4): Also allow re-use of zero result when doing a NE
7274         comparison to a non-zero operand.
7275         Use (clobber (scratch)) for first insn if the gpr output is not needed.
7277         * config/epiphany/epiphany.md (<insn_opname>v2si3):
7278         Use gen_addsi3_i / gen_subsi3_i.
7280 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
7282         PR c++/34949
7283         PR c++/50243
7284         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
7285         contain anything but clobbers, at most one __builtin_stack_restore,
7286         optionally debug stmts and final resx, and if it has at least one
7287         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
7288         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
7289         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
7290         which isn't defaut definition, remove them.
7291         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
7292         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
7293         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
7294         with MEM_REF LHS with SSA_NAME address.
7296 2013-04-08  Jeff Law  <law@redhat.com>
7298         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
7300 2013-04-08  Richard Biener  <rguenther@suse.de>
7302         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
7303         extra newline.
7304         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
7305         determined vector type.
7306         (vect_analyze_data_refs): Likewise.
7307         (vect_get_new_vect_var): Adjust.
7308         (vect_create_destination_var): Preserve SSA name versions.
7309         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
7310         not dump anything here.
7312 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
7314         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
7315         Add member lr_slot_known.
7316         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
7317         if necessary.
7318         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
7319         Remove code that sets lr_slot_offset according to what a previous
7320         version of epiphany_emit_save_restore used to do.
7321         (epiphany_emit_save_restore): When doing an lr save or restore,
7322         set/verify lr_slot_known and lr_slot_offset.
7324 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
7326         PR target/54338
7327         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
7328         in ALL_REGS.
7330 2013-04-08  Richard Biener  <rguenther@suse.de>
7332         * alias.c (find_base_term): Fix thinko in previous change.
7334 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
7336         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
7337         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
7338         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
7339         if possible to compute val.
7340         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
7341         For QImode integers don't require anything about precision.  Use
7342         const_with_all_bytes_same to find out if the constant doesn't have
7343         repeated bytes in it.
7345 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7347         * config/s390/s390.c (s390_expand_insv): Only accept insertions
7348         within mode size.
7350 2013-04-08  Marek Polacek  <polacek@redhat.com>
7352         PR rtl-optimization/48182
7353         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
7354         value to 1.
7356 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7358         PR target/55487
7359         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
7360         nuses, make sure we have a label.
7362 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7364         PR target/56843
7365         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
7366         (rs6000_emit_swdiv_low_precision): Remove.
7367         (rs6000_emit_swdiv): Rewrite to handle between one and four
7368         iterations of Newton-Raphson generally; modify required number of
7369         iterations for some cases.
7370         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
7372 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
7374         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
7375         set-but-unused variable.
7377         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
7378         basic blocks of released function bodies garbage-collectable.
7380         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
7381         (struct rtl_opt_pass): Add TODO_df_finish.
7383         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
7385 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7387         * config/arm/constraints.md (q): New constraint.
7388         * config/arm/ldrdstrd.md: New file.
7389         * config/arm/arm.md (ldrdstrd.md) New include.
7390         (arm_movdi): Use "q" instead of "r" constraint
7391         for double-word memory access.
7392         (movdf_soft_insn): Likewise.
7393         * config/arm/vfp.md (movdi_vfp): Likewise.
7394         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
7395         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
7396         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
7397         (mem_ok_for_ldrd_strd): Likewise.
7398         (output_move_double): Update assertion.
7400 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7402         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
7404 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7406         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
7407         define_insn_and_split.
7408         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
7410 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7412         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
7413         define_insn_and_split.
7414         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
7415         (shiftsi3_compare): New pattern.
7416         (rrx): New pattern.
7417         * config/arm/unspecs.md (UNSPEC_RRX): New.
7419 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7421         * config/arm/arm.md (negdi_extendsidi): New pattern.
7422         (negdi_zero_extendsidi): Likewise.
7424 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7426         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
7427         define_insn_and_split.
7428         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
7429         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
7431 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7433         * config/arm/arm.md (arm_subdi3): Convert define_insn into
7434         define_insn_and_split.
7435         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
7436         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
7438 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7440         * config/arm/arm.md (subsi3_carryin): New pattern.
7441         (subsi3_carryin_const): Likewise.
7442         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
7443         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
7445 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7447         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
7449 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7451         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
7452         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
7454 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7456         * config/arm/arm.c (arm_expand_builtin): Change fcode
7457         type to unsigned int.
7459 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7461         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
7463 2013-04-04  Ian Lance Taylor  <iant@google.com>
7465         * doc/standards.texi (Standards): The Go frontend supports the Go 1
7466         language standard.
7468 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
7470         PR middle-end/56729
7471         * df-scan.c (df_insn_delete): Disable failing assert.
7473 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7475         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
7476         New function prototype.
7477         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
7478         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
7479         (arm_builtin_vectorized_function): New function.
7481 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7483         * config/arm/arm_neon_builtins.def: New file.
7484         * config/arm/arm.c (neon_builtin_data): Move contents to
7485         arm_neon_builtins.def.
7486         (enum arm_builtins): Include neon builtin definitions.
7487         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
7488         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
7490 2013-04-04  Marek Polacek  <polacek@redhat.com>
7492         PR tree-optimization/48186
7493         * predict.c (maybe_hot_frequency_p): Return false if
7494         HOT_BB_FREQUENCY_FRACTION is 0.
7495         (cgraph_maybe_hot_edge_p): Likewise.
7497 2013-04-04  Richard Biener  <rguenther@suse.de>
7499         PR tree-optimization/56826
7500         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
7501         more accurately.
7503 2013-04-04  Richard Biener  <rguenther@suse.de>
7505         PR tree-optimization/56213
7506         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
7507         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
7509 2013-04-04  Richard Biener  <rguenther@suse.de>
7511         PR tree-optimization/56837
7512         * tree-loop-distribution.c (classify_partition): For non-zero
7513         values require that the value has the same precision as its
7514         mode to be useful as memset value.
7516 2013-04-03  Nick Clifton  <nickc@redhat.com>
7518         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
7519         (fmssf4): Use fmsf.s on E3V5 architectures.
7520         (fnmasf4): Use fnmaf.s on E3V5 architectures.
7521         (fnmssf4): Use fnmsf.s on E3V5 architectures.
7523 2013-04-03  Jeff Law  <law@redhat.com>
7525         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
7526         (lra-eliminations.o): Likewise.
7528 2013-04-03  Teresa Johnson  <tejohnson@google.com>
7530         * gcov-io.c (compute_working_sets): Moved most of body of old
7531         compute_working_sets here from profile.c.
7532         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
7533         (gcov_working_set_t): Moved typedef here from basic-block.h
7534         (compute_working_set): Declare.
7535         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
7536         (get_working_sets): Renamed from compute_working_set,
7537         replace most of body with call to new compute_working_sets.
7538         (get_exec_counts): Replace call to compute_working_sets
7539         to get_working_sets.
7540         * profile.h (get_working_sets): Renamed from compute_working_set.
7541         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
7542         to get_working_sets.
7543         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
7544         * gcov-dump.c (dump_working_sets): New function.
7546 2013-04-03  Kenneth Zadeck <zadeck@naturalbridge.com>
7548         * hwint.c (sext_hwi, zext_hwi): New functions.
7549         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
7550         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
7551         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
7552         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
7553         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
7554         (sext_hwi, zext_hwi): New functions.
7556 2013-04-03  Jeff Law  <law@redhat.com>
7558         PR tree-optimization/56799
7559         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
7560         back test for widening conversion erroneously dropped in prior change.
7562 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7564         PR target/56809
7565         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
7566         instead of next_real_insn.
7568 2013-04-03  Marek Polacek  <polacek@redhat.com>
7570         PR sanitizer/55702
7571         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
7573 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7575         PR target/56809
7576         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
7577         next_real_insn.
7578         (thumb1_output_casesi): Likewise.
7579         (thumb2_output_casesi): Likewise.
7581 2013-04-03  Richard Biener  <rguenther@suse.de>
7583         PR tree-optimization/56817
7584         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
7585         Split out ...
7586         (tree_unroll_loops_completely_1): ... new function to manually
7587         walk the loop tree, properly defering outer loops of unrolled
7588         loops to later iterations.
7590 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
7592         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
7593         (vectorizable_load): Likewise.
7594         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
7595         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
7597 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
7599         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
7600         BIT_FIELD_REF.
7602 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7604         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
7606 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
7608         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
7610 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
7612         PR tree-optimization/56790
7613         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
7614         folding.
7616 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
7618         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
7619         Handle VEC_MERGE.
7620         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
7621         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
7622         equal arguments.
7624 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
7626         PR c/19449
7627         * tree.h (force_folding_builtin_constant_p): New decl.
7628         * builtins.c (force_folding_builtin_constant_p): New variable.
7629         (fold_builtin_constant_p): Fold immediately also if
7630         force_folding_builtin_constant_p.
7632 2013-04-03  Richard Biener  <rguenther@suse.de>
7634         PR tree-optimization/56812
7635         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
7636         DRs of the same interleaving chain are independent.
7638 2013-04-02  Jason Merrill  <jason@redhat.com>
7640         * gdbinit.in (pbb): Use debug fn.
7642 2013-04-02  Lawrence Crowl  <crowl@google.com>
7644         * sese.h (struct ivtype_map_elt_s): Remove unused.
7645         (extern debug_ivtype_map): Remove unused.
7646         (extern eq_ivtype_map_elts): Remove unused.
7647         * sese.c (debug_ivtype_map): Removed unused.
7648         (debug_ivtype_map_1): Removed unused.
7649         (debug_ivtype_elt): Remove unused.
7650         (eq_ivtype_map_elts): Remove unused.
7653 2013-04-02  Kai Tietz  <ktietz@redhat.com>
7655         PR target/52790
7656         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
7657         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
7658         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
7659         function.
7660         (legitimize_pe_coff_symbol): Likewise.
7661         (is_imported_p): New helper-function.
7662         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
7663         for Windows x64 targets.
7664         (ix86_expand_prologue): Optimize for pe-coff targets.
7665         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
7666         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
7667         medium/large code-model.
7668         (legitimize_pic_address): Likewise.
7669         (legitimize_tls_address): Likewise.
7670         (ix86_expand_call): Likewise.
7671         (x86_output_mi_thunk): Likewise.
7672         (get_dllimport_decl): Add new beimport argument.
7673         (construct_plt_address): Don't assert for x64 pe-coff targets.
7674         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
7675         targets.
7676         (SYMBOL_FLAG_STUBVAR): New macro.
7677         (SYMBOL_REF_STUBVAR_P): Likewise.
7678         * config/i386/winnt.c (stub_list): New structure.
7679         (stub_head): New local variable.
7680         (i386_pe_record_stub): New function.
7681         (i386_pe_file_end): Emit refptr-stubs.
7683 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
7685         PR rtl-optimization/56745
7686         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
7687         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
7689         PR c++/34949
7690         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
7691         and both of them are MEM_REFs, just compare first argument for
7692         equality and attempt to deal even with differing offsets.
7694         PR c++/34949
7695         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
7696         of gimple_clobber_p to be MEM_REF.
7697         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
7698         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
7699         after gimplification.
7700         * asan.c (get_mem_ref_of_assignment): Don't instrument
7701         gimple_clobber_p stmts.
7702         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
7703         gimple_clobber_p stmt if they have MEM_REF lhs and
7704         are dead because of another gimple_clobber_p stmt.
7705         * tree-ssa-live.c (clear_unused_block_pointer): Treat
7706         gimple_clobber_p stmts like debug stmts.
7707         (remove_unused_locals): Remove clobbers with MEM_REF lhs
7708         that refer to unused VAR_DECLs or uninitialized values.
7709         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
7710         gimple_clobber_p stmts if they refer to removed parameters.
7711         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
7712         formatting.
7714 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
7716         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
7717         using SWI48 mode attribute.
7719 2013-04-02  Wei Mi  <wmi@google.com>
7721         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
7722         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
7723         *<rotate_insn><mode>3_mask in i386.md.
7725 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7727         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
7729 2013-04-02  Richard Biener  <rguenther@suse.de>
7731         PR tree-optimization/56778
7732         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
7733         Runtime alias tests are not supported for gather loads.
7734         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
7735         stmts referenced from SSA operands before updating SSA form.
7737 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
7738             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7740         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
7741         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
7742         * config/arm/cortex-a53.md: New file.
7743         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
7744         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
7745         * config/arm/arm.c (arm_issue_rate): Likewise.
7746         * config/arm/arm-tune.md: Regenerate
7747         * config/arm/arm-tables.opt: Regenerate.
7748         * config/arm/arm-cores.def: Add cortex-a53.
7750 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
7752         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
7753         non-static link.
7755 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
7757         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
7758         scalar load/store operations using B/H registers.
7759         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
7761 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
7763         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
7764         scalar move.
7765         * config/aarch64/aarch64.c
7766         (aarch64_simd_scalar_immediate_valid_for_move): New.
7767         * config/aarch64/aarch64-protos.h
7768         (aarch64_simd_scalar_immediate_valid_for_move): New.
7769         * config/aarch64/constraints.md (Dh, Dq): New.
7770         * config/aarch64/iterators.md (hq): New.
7772 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
7774         * reorg.c (get_branch_condition): Deal with conditional returns.
7775         (fill_simple_delay_slots): Remove dead code dealing with jumps.
7777 2013-04-01  Wei Mi  <wmi@google.com>
7779         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
7780         Truncate operand 2 using %b asm operand modifier.
7781         (*<shift_insn><mode>3_mask): Ditto.
7782         (*<rotate_insn><mode>3_mask): Ditto.
7784 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
7786         PR middle-end/56798
7787         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
7789 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
7791         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
7792         of next_real_insn.
7793         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
7795 2013-03-30  Lawrence Crowl  <crowl@google.com>
7797         * dse.c (clear_alias_sets): Remove never set.
7798         (disqualified_clear_alias_sets): Remove never set.
7799         (clear_alias_mode_pool): Remove never set.
7800         (dse_step0): Remove condition that is never true.
7801         (canon_address): Remove condition that is never true.
7802         (dse_step7): Remove condition that is never true.
7803         (rest_of_handle_dse): Remove condition that is never true.
7804         (rest_of_handle_dse::did_global): Remove never read from above.
7805         (dse_step2_spill): Remove never called from above.
7806         (dse_step5_spill): Remove never called from above.
7808 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
7810         * doc/md.texi (Standard Names) <casesi>: Update documentation for
7811         JUMP_TABLE_DATA changes.
7812         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
7813         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
7814         (Insns) <jump_table_data>: New entry.
7815         * doc/tm.texi: Regenerate.
7817         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
7819         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
7820         for table jump at the end of a basic block using tablejump_p.
7821         * targhooks.c (default_invalid_within_doloop): Likewise.
7822         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
7823         target hook implementation that is identical to the default hook.
7824         (rs6000_invalid_within_doloop): Remove.
7826         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
7827         unused variable from tablejump_p call.
7829         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
7830         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
7831         (INSN_DELETED_P): Likewise.
7832         (emit_jump_table_data): New prototype.
7833         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
7834         after 4th as unused.
7835         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
7836         * sched-vis.c (print_insn): Likewise.
7837         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
7838         insn for compatibility with back ends that use next_active_insn to
7839         identify jump table data.
7840         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
7841         (remove_insn): Likewise.
7842         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
7843         to be emitted.
7844         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
7845         (emit_jump_table_data): New function.
7847         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
7848         basic block, a JUMP_TABLE_DATA never is.
7849         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
7850         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
7851         off from code handling real insns.
7852         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
7853         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
7854         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
7855         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
7856         is not a NONDEBUG_INSN_P.
7857         * ira-costs.c (scan_one_insn): Likewise.
7858         * jump.c (mark_all_labels): Likewise.
7859         (mark_jump_label_1): Likewise.
7860         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
7861         * lra.c (get_insn_freq): Expect all insns reaching here to be in
7862         a basic block.
7863         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
7864         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
7865         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
7866         JUMP_TABLE_DATA_P insns.
7867         (calculate_elim_costs_all_insns): Likewise.
7868         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
7869         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
7870         (delete_output_reload): Code style fixups.
7871         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
7872         insn flags on this non-insn.
7873         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
7874         as scheduling barriers, for pre-change compatibility.
7875         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
7876         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
7878         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
7879         redundant JUMP_TABLE_DATA_P test.
7880         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
7881         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
7882         (frv_for_each_packet): Likewise.
7883         * config/i386/i386.c (min_insn_size): Likewise.
7884         (ix86_avoid_jump_mispredicts): Likewise.
7885         * config/m32r/m32r.c (m32r_is_insn): Likewise.
7886         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
7887         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
7888         (mips16_insn_length): Robustify.
7889         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
7890         (mips16_split_long_branches): Likewise.
7891         * config/pa/pa.c (pa_combine_instructions): Likewise.
7892         * config/rs6000/rs6000.c (get_next_active_insn): Treat
7893         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
7894         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
7895         as contributing to pool range lengths.
7896         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
7897         Remove redundant JUMP_TABLE_DATA_P test.
7898         (sh_loop_align): Likewise.
7899         (split_branches): Likewise.
7900         (sh_insn_length_adjustment): Likewise.
7901         * config/spu/spu.c (get_branch_target): Likewise.
7903 2013-03-29  Jan Hubicka  <jh@suse.cz>
7905         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
7906         gcov streaming; stream hot bb threshold to ltrans.
7907         * predict.c (get_hot_bb_threshold): Break out from ....
7908         (maybe_hot_count_p): ... here.
7909         (set_hot_bb_threshold): New function.
7910         * lto-section-in.c (lto_section_name): Add profile.
7911         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
7912         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
7913         and data-streamer.h
7914         (histogram_entry): New structure.
7915         (histogram, histogram_pool): New global vars.
7916         (histogram_hash): New structure.
7917         (histogram_hash::hash): New method.
7918         (histogram_hash::equal): Likewise.
7919         (account_time_size): New function.
7920         (cmp_counts): New function.
7921         (dump_histogram): New function.
7922         (ipa_profile_generate_summary): New function.
7923         (ipa_profile_write_summary): New function.
7924         (ipa_profile_read_summary): New function.
7925         (ipa_profile): Decide on threshold.
7926         (pass_ipa_profile): Add ipa_profile_write_summary and
7927         ipa_profile_read_summary.
7928         * Makefile.in (ipa.o): Update dependencies.
7929         * lto-streamer.h (LTO_section_ipa_profile): New section.
7931 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7933         * tree.h (VAR_P): New.
7935 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
7937         PR lto/56777
7938         * doc/invoke.texi ([-fwhole-program]): Fix typo.
7940 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
7942         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
7943         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
7944         (control_flow_insn_p): Likewise.
7945         * cfgrtl.c (duplicate_insn_chain): Likewise.
7946         * final.c (get_attr_length_1): Likewise.
7947         (shorten_branches): Likewise.
7948         (final_scan_insn): Likewise.
7949         * function.c (instantiate_virtual_regs): Likewise.
7950         * gcse.c (insert_insn_end_basic_block): Likewise.
7951         * ira-costs.c (scan_one_insn): Likewise.
7952         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
7953         * lra.c (check_rtl): Likewise.
7954         * reload1.c (elimination_costs_in_insn): Likewise.
7955         * reorg.c (follow_jumps): Likewise.
7957         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
7958         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
7959         (thumb_far_jump_used_p): Likewise.
7960         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
7961         (workaround_speculation): Likewise.
7962         (add_sched_insns_for_speculation): Likewise.
7963         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
7964         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
7965         (frv_for_each_packet): Likewise.
7966         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
7967         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
7968         (final_emit_insn_group_barriers): Likewise.
7969         * config/m32r/m32r.c (m32r_is_insn): Likewise.
7970         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
7971         (mips16_insn_length): Likewise.
7972         * config/pa/pa.c (pa_reorg): Likewise.
7973         (pa_combine_instructions): Likewise.
7974         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
7975         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
7976         (sh_reorg): Likewise.
7977         (split_branches): Likewise.
7978         * config/spu/spu.c (get_branch_target): Likewise.
7980         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
7981         JUMP_TABLE_DATA_P.
7983 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
7985         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
7986         Fix declaration name.
7988 2013-03-28  Lawrence Crowl  <crowl@google.com>
7990         * graphds.h (struct graph.indicies): Remove unused.
7991         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
7992         (SCOP_ORIGINAL_PDDRS): Remove unused.
7993         * sese.h (extern insert_loop_close_phis): Removed unused.
7994         (extern insert_guard_phis): Removed unused.
7995         (extern ivtype_map_elt_info): Removed unused.
7996         (new_ivtype_map_elt): Removed unused.
7997         * sese.c (ivtype_map_elt_info): Removed unused.
7999 2013-03-28  Lawrence Crowl  <crowl@google.com>
8001         * Makefile.in: Add several missing include dependences.
8002         (DUMPFILE_H): New.
8003         (test-dump.o): New.  This object is not added to any executable,
8004         but is present for ad-hoc testing.
8005         * bitmap.c
8006         (debug (const bitmap_head_def &)): New.
8007         (debug (const bitmap_head_def *)): New.
8008         * bitmap.h
8009         (extern debug (const bitmap_head_def &)): New.
8010         (extern debug (const bitmap_head_def *)): New.
8011         * cfg.c
8012         (debug (edge_def &)): New.
8013         (debug (edge_def *)): New.
8014         * cfghooks.c
8015         (debug (basic_block_def &)): New.
8016         (debug (basic_block_def *)): New.
8017         * dumpfile.h
8018         (dump_node (const_tree, int, FILE *)): Correct source file.
8019         * dwarf2out.c
8020         (debug (die_struct &)): New.
8021         (debug (die_struct *)): New.
8022         * dwarf2out.h
8023         (extern debug (die_struct &)): New.
8024         (extern debug (die_struct *)): New.
8025         * gimple-pretty-print.c
8026         (debug (gimple_statement_d &)): New.
8027         (debug (gimple_statement_d *)): New.
8028         * gimple-pretty-print.h
8029         (extern debug (gimple_statement_d &)): New.
8030         (extern debug (gimple_statement_d *)): New.
8031         * ira-build.c
8032         (debug (ira_allocno_copy &)): New.
8033         (debug (ira_allocno_copy *)): New.
8034         (debug (ira_allocno &)): New.
8035         (debug (ira_allocno *)): New.
8036         * ira-int.h
8037         (extern debug (ira_allocno_copy &)): New.
8038         (extern debug (ira_allocno_copy *)): New.
8039         (extern debug (ira_allocno &)): New.
8040         (extern debug (ira_allocno *)): New.
8041         * ira-lives.c
8042         (debug (live_range &)): New.
8043         (debug (live_range *)): New.
8044         * lra-int.h
8045         (debug (lra_live_range &)): New.
8046         (debug (lra_live_range *)): New.
8047         * lra-lives.c
8048         (debug (lra_live_range &)): New.
8049         (debug (lra_live_range *)): New.
8050         * omega.c
8051         (debug (omega_pb_d &)): New.
8052         (debug (omega_pb_d *)): New.
8053         * omega.h
8054         (extern debug (omega_pb_d &)): New.
8055         (extern debug (omega_pb_d *)): New.
8056         * print-rtl.c
8057         (debug (const rtx_def &)): New.
8058         (debug (const rtx_def *)): New.
8059         * print-tree.c
8060         (debug_tree (tree): Move within file.
8061         (debug_raw (const tree_node &)): New.
8062         (debug_raw (const tree_node *)): New.
8063         (dump_tree_via_hooks (const tree_node *, int)): New.
8064         (debug (const tree_node &)): New.
8065         (debug (const tree_node *)): New.
8066         (debug_verbose (const tree_node &)): New.
8067         (debug_verbose (const tree_node *)): New.
8068         (debug_head (const tree_node &)): New.
8069         (debug_head (const tree_node *)): New.
8070         (debug_body (const tree_node &)): New.
8071         (debug_body (const tree_node *)): New.
8072         (debug_vec_tree (tree): Move and reimplement in terms of dump.
8073         (debug (vec<tree, va_gc> &)): New.
8074         (debug (vec<tree, va_gc> *)): New.
8075         * rtl.h
8076         (extern debug (const rtx_def &)): New.
8077         (extern debug (const rtx_def *)): New.
8078         * sbitmap.c
8079         (debug_raw (simple_bitmap_def &)): New.
8080         (debug_raw (simple_bitmap_def *)): New.
8081         (debug (simple_bitmap_def &)): New.
8082         (debug (simple_bitmap_def *)): New.
8083         * sbitmap.h
8084         (extern debug (simple_bitmap_def &)): New.
8085         (extern debug (simple_bitmap_def *)): New.
8086         (extern debug_raw (simple_bitmap_def &)): New.
8087         (extern debug_raw (simple_bitmap_def *)): New.
8088         * sel-sched-dump.c
8089         (debug (vinsn_def &)): New.
8090         (debug (vinsn_def *)): New.
8091         (debug_verbose (vinsn_def &)): New.
8092         (debug_verbose (vinsn_def *)): New.
8093         (debug (expr_def &)): New.
8094         (debug (expr_def *)): New.
8095         (debug_verbose (expr_def &)): New.
8096         (debug_verbose (expr_def *)): New.
8097         (debug (vec<rtx> &)): New.
8098         (debug (vec<rtx> *)): New.
8099         * sel-sched-dump.h
8100         (extern debug (vinsn_def &)): New.
8101         (extern debug (vinsn_def *)): New.
8102         (extern debug_verbose (vinsn_def &)): New.
8103         (extern debug_verbose (vinsn_def *)): New.
8104         (extern debug (expr_def &)): New.
8105         (extern debug (expr_def *)): New.
8106         (extern debug_verbose (expr_def &)): New.
8107         (extern debug_verbose (expr_def *)): New.
8108         (extern debug (vec<rtx> &)): New.
8109         (extern debug (vec<rtx> *)): New.
8110         * sel-sched-ir.h
8111         (_list_iter_cond_expr): Make inline instead of static.
8112         * sreal.c
8113         (debug (sreal &)): New.
8114         (debug (sreal *)): New.
8115         * sreal.h
8116         (extern debug (sreal &)): New.
8117         (extern debug (sreal *)): New.
8118         * tree.h
8119         (extern debug_raw (const tree_node &)): New.
8120         (extern debug_raw (const tree_node *)): New.
8121         (extern debug (const tree_node &)): New.
8122         (extern debug (const tree_node *)): New.
8123         (extern debug_verbose (const tree_node &)): New.
8124         (extern debug_verbose (const tree_node *)): New.
8125         (extern debug_head (const tree_node &)): New.
8126         (extern debug_head (const tree_node *)): New.
8127         (extern debug_body (const tree_node &)): New.
8128         (extern debug_body (const tree_node *)): New.
8129         (extern debug (vec<tree, va_gc> &)): New.
8130         (extern debug (vec<tree, va_gc> *)): New.
8131         * tree-cfg.c
8132         (debug (struct loop &)): New.
8133         (debug (struct loop *)): New.
8134         (debug_verbose (struct loop &)): New.
8135         (debug_verbose (struct loop *)): New.
8136         * tree-dump.c: Add header dependence.
8137         * tree-flow.h
8138         (extern debug (struct loop &)): New.
8139         (extern debug (struct loop *)): New.
8140         (extern debug_verbose (struct loop &)): New.
8141         (extern debug_verbose (struct loop *)): New.
8142         * tree-data-ref.c
8143         (debug (data_reference &)): New.
8144         (debug (data_reference *)): New.
8145         (debug (vec<data_reference_p> &)): New.
8146         (debug (vec<data_reference_p> *)): New.
8147         (debug (vec<ddr_p> &)): New.
8148         (debug (vec<ddr_p> *)): New.
8149         * tree-data-ref.h
8150         (extern debug (data_reference &)): New.
8151         (extern debug (data_reference *)): New.
8152         (extern debug (vec<data_reference_p> &)): New.
8153         (extern debug (vec<data_reference_p> *)): New.
8154         (extern debug (vec<ddr_p> &)): New.
8155         (extern debug (vec<ddr_p> *)): New.
8156         * tree-ssa-alias.c
8157         (debug (pt_solution &)): New.
8158         (debug (pt_solution *)): New.
8159         * tree-ssa-alias.h
8160         (extern debug (pt_solution &)): New.
8161         (extern debug (pt_solution *)): New.
8162         * tree-ssa-alias.c
8163         (debug (_var_map &)): New.
8164         (debug (_var_map *)): New.
8165         (debug (tree_live_info_d &)): New.
8166         (debug (tree_live_info_d *)): New.
8167         * tree-ssa-alias.h
8168         (extern debug (_var_map &)): New.
8169         (extern debug (_var_map *)): New.
8170         (extern debug (tree_live_info_d &)): New.
8171         (extern debug (tree_live_info_d *)): New.
8173 2013-03-28  Jan Hubicka  <jh@suse.cz>
8175         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
8177 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
8179         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
8180         record only when desired or required.
8182 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
8184         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
8185         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
8187 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8189         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
8190         (*andsi3_compare0_uxtw): New pattern.
8191         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
8192         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
8194 2013-03-28  Jan Hubicka  <jh@suse.cz>
8196         * data-streamer-in.c (streamer_read_gcov_count): New function.
8197         * gimple-streamer-out.c: Include value-prof.h.
8198         (output_gimple_stmt): Output histogram.
8199         (output_bb): Use streamer_write_gcov_count.
8200         * value-prof.c: Include data-streamer.h
8201         (dump_histogram_value): Add HIST_TYPE_MAX.
8202         (stream_out_histogram_value): New function.
8203         (stream_in_histogram_value): New function.
8204         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
8205         (stream_out_histogram_value, stream_in_histogram_value): Declare.
8206         * data-streamer-out.c (streamer_write_gcov_count): New function.
8207         (streamer_write_gcov_count_stream): New function.
8208         * lto-cgraph.c (lto_output_edge): Update counter streaming.
8209         (lto_output_node): Likewise.
8210         (input_node, input_edge): Likewise.
8211         * lto-streamer-out.c (output_cfg): Update streaming.
8212         * lto-streamer-in.c (input_cfg): Likewise.
8213         * data-streamer.h (streamer_write_gcov_count,
8214         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
8215         * gimple-streamer-in.c: Include value-prof.h
8216         (input_gimple_stmt): Input histograms.
8217         (input_bb): Update profile streaming.
8219 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
8221         * genmodes.c (emit_max_int): New function.
8222         (emit_insn_modes_h): Added call to emit_max_function.
8223         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
8224         Added doc.
8225         * machmode.def: Fixed comment.
8227 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
8229         * combine.c (try_combine): Removed useless assert.
8230         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
8232 2013-03-28  Marek Polacek  <polacek@redhat.com>
8233             Richard Biener  <rguenther@suse.de>
8235         PR tree-optimization/56695
8236         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
8237         build signed result of a vector comparison.
8238         * tree-cfg.c (verify_gimple_comparison): Check that a result
8239         of a vector comparison has signed type.
8241 2013-03-28  Richard Biener  <rguenther@suse.de>
8243         PR tree-optimization/37021
8244         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
8245         do not restrict gaps between groups.
8246         * tree-vect-stmts.c (vectorizable_load): Properly account for
8247         a gap between groups.
8249 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
8251         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
8252         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
8253         is not enabled.
8255 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
8257         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
8258         * doc/extend.texi (Named Address Spaces): Ditto.
8259         (Variable Attributes): Ditto.
8261 2013-03-27  Kai Tietz  <ktietz@redhat.com>
8263         * config.build: Add support for cygwin x64 target.
8264         * config.gcc: Likewise.
8265         * config.host: Likewise.
8266         * configure.ac: Likewise
8267         * configure: Regenerated.
8269 2013-03-27 Kai Tietz  <ktietz@redhat.com>
8271         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
8272         * config/i386/t-cygwin-w64: New file.
8273         * config/i386/cygwin-w64.h: New file.
8274         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
8275         and add support for x64-cygwin target.
8276         (CPP_SPEC): Likewise.
8277         (CXX_WRAP_SPEC_LIST): Undefine before define.
8278         (LIBGCJ_SONAME): Use 15 as version.
8280 2013-03-27  Richard Biener  <rguenther@suse.de>
8282         PR tree-optimization/56716
8283         * tree-ssa-structalias.c (perform_var_substitution): Adjust
8284         dumping for ref nodes.
8286 2013-03-27  Martin Jambor  <mjambor@suse.cz>
8288         PR tree-optimization/55334
8289         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
8290         restricted pointers to arrays.
8292 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8294         * Makefile.in (.SUFFIXES): Add .cc.
8295         (.c.o): Apply same recipe for implicit rule .cc.o.
8297 2013-03-27  Richard Biener  <rguenther@suse.de>
8299         PR tree-optimization/37021
8300         * tree-vect-data-refs.c (vect_check_strided_load): Allow
8301         REALPART/IMAGPART_EXPRs around the supported refs.
8302         * tree-ssa-structalias.c (find_func_aliases): Assume that
8303         floating-point values are not used to transfer pointers.
8305 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8307         * target.def (TARGET_HAS_IFUNC_P): New target hook.
8308         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
8309         * doc/tm.texi: Regenerate.
8310         * targhooks.h (default_has_ifunc_p): New.
8311         * targhooks.c (default_has_ifunc_p): Ditto.
8312         * config/linux-protos.h: New file.
8313         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
8314         this hook for linux which disables support of indirect functions in
8315         android.
8316         * config/linux-android.c: New file.
8317         * config/t-linux-android.c: Ditto.
8318         * config.gcc: Added new object file linux-android.o.
8319         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
8320         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
8321         * varasm.c (do_assemble_alias): Likewise.
8322         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
8323         doesn't support indirect functions.
8324         * configure: Regenerate.
8326 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
8328         PR target/56102
8329         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
8330         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
8331         mult-word mode.
8333 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8335         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
8337 2013-03-27  Terry Guo  <terry.guo@arm.com>
8339         * config/arm/arm-cores.def: Added core cortex-r7.
8340         * config/arm/arm-tune.md: Regenerated.
8341         * config/arm/arm-tables.opt: Regenerated.
8342         * doc/invoke.texi: Added entry for core cortex-r7.
8344 2013-03-27  Walter Lee  <walt@tilera.com>
8346         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
8347         double-decrement of next_scratch_regno.
8349 2013-03-27  Walter Lee  <walt@tilera.com>
8351         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
8352         input operands.
8353         (insn_v1mulus): Ditto.
8354         (insn_v2muls): Ditto.
8356 2013-03-27  Walter Lee  <walt@tilera.com>
8358         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
8359         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
8361 2013-03-27  Walter Lee  <walt@tilera.com>
8363         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
8364         (*sibcall_value): Ditto.
8366 2013-03-27  Walter Lee  <walt@tilera.com>
8368         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
8369         (insn_mnz_v8qi): ... this ...
8370         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
8371         vector equivalent.
8372         (insn_v<n>mnz): Replaced by ...
8373         (insn_v1mnz): ... this ...
8374         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
8375         equivalent.
8376         (insn_mz_<mode>): Replaced by ...
8377         (insn_mz_v8qi): ... this ...
8378         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
8379         vector equivalent.
8380         (insn_v<n>mz): Replaced by ...
8381         (insn_v1mz): ... this ...
8382         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
8383         equivalent.
8385 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
8387         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
8389 2013-03-26  Roland McGrath  <mcgrathr@google.com>
8391         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
8392         than fprintf with a non-constant, non-format string.
8394 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
8396         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
8397         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
8398         operand 0 predicate.
8399         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
8400         attribute.  Use general_x64nomem_operand as operand 1 predicate.
8401         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
8402         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
8403         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
8404         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
8405         (mov<mode>_insv_1): Remove expander.  Merge insn with
8406         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
8407         Use general_x64nomem_operand as operand 1 predicate.
8408         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
8409         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
8410         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
8411         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
8412         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
8413         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
8414         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
8415         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
8416         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
8417         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
8418         (general_x64nomem_operand): Ditto.
8420 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
8422         * config/rtems.opt: Add -pthread option.
8424 2013-03-26  Richard Biener  <rguenther@suse.de>
8426         * alias.c (find_base_term): Avoid redundant and not used recursion.
8427         (base_alias_check): Get the initial base term from the caller.
8428         (true_dependence_1): Compute and pass base terms to base_alias_check.
8429         (write_dependence_p): Likewise.
8430         (may_alias_p): Likewise.
8432 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
8434         * config/aarch64/aarch64.c (aarch64_classify_address): Support
8435         PC-relative load in SI modes and above only.
8437 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
8439         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
8440         * config/arm/iwmmxt.md (WCGR0): Update.
8441         (WCGR1, WCGR2, WCGR3): Likewise.
8443 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
8445         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
8446         Use x64 and nox64 isa attributes.
8448 2013-03-26  Richard Biener  <rguenther@suse.de>
8450         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
8451         alignment computations and rely on get_object_alignment_1
8452         for the !TYPE_P case.
8453         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
8455 2013-03-26  Walter Lee  <walt@tilera.com>
8457         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
8458         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
8460 2013-03-25  Jeff Law  <law@redhat.com>
8462         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
8463         check for INTEGRAL_TYPE_P that was missing due to checking in
8464         wrong version of prior patch.
8466 2013-03-25  Walter Lee  <walt@tilera.com>
8468         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
8469         TILEGX_INSN_SHUFFLEBYTES1.
8470         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
8471         shufflebytes1.
8472         (tilegx_builtins): Ditto.
8473         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
8475 2013-03-25  Walter Lee  <walt@tilera.com>
8477         * config/tilegx/tilegx.md (floatsisf2): New pattern.
8478         (floatunssisf2): New pattern.
8479         (floatsidf2): New pattern.
8480         (floatunssidf2): New pattern.
8482 2013-03-25  Walter Lee  <walt@tilera.com>
8484         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
8485         tests for constraint J, K, N, P.
8487 2013-03-25  Walter Lee  <walt@tilera.com>
8489         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
8490         Use indirect/pcrel encoding.
8491         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
8492         Ditto.
8494 2013-03-25  Steve Ellcey  <sellcey@mips.com>
8496         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
8497         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
8498         * config/mips/mips.c (mips_option_override): Set IMADD default.
8499         * config/mips/mips.h (PTF_AVOID_IMADD): New.
8500         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
8501         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
8502         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
8503         * doc/invoke.texi (-mimadd/-mno-imadd): New.
8505 2013-03-25  Jeff Law  <law@redhat.com>
8507         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
8508         slightly to avoid creating and folding useless trees.  Simplify
8509         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
8511 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
8513         * config/i386/i386.md (*zero_extendsidi2): Merge with
8514         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
8515         * config/i386/predicates.md (x86_64_zext_operand): Rename from
8516         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
8517         targets.  Clarify comment.
8519 2013-03-25  Martin Jambor  <mjambor@suse.cz>
8521         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
8522         pass-through jump functions differently.
8523         (ipa_read_jump_function): Likewise.  Also use setter functions to set
8524         up jump functions.
8526 2013-03-25  Martin Jambor  <mjambor@suse.cz>
8528         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
8529         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
8530         process it.
8531         (ipa_get_indirect_edge_target): New function.
8532         (devirtualization_time_bonus): New parameter known_aggs, pass it to
8533         ipa_get_indirect_edge_target.  Update all callers.
8534         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
8535         ipa_get_indirect_edge_target_1 instead of calling
8536         ipa_get_indirect_edge_target.
8537         (create_specialized_node): Pass aggvlas to
8538         ipcp_discover_new_direct_edges.
8540 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8542         * config/arm/arm.md (f_sels, f_seld): New types.
8543         (*cmov<mode>): New pattern.
8544         * config/arm/predicates.md (arm_vsel_comparison_operator): New
8545         predicate.
8547 2013-03-25  Kai Tietz  <ktietz@redhat.com>
8549         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
8550         POSIX-printf for mingw-hosted  builds.
8552 2013-03-25  Richard Biener  <rguenther@suse.de>
8554         PR middle-end/56694
8555         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
8556         must-not-throw stmt location.
8558 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8560         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
8561         Emit load-acquire versions when acq is true.
8562         (arm_emit_store_exclusive): Add rel parameter.
8563         Emit store-release versions when rel is true.
8564         (arm_split_compare_and_swap): Use acquire-release instructions
8565         instead.
8566         of barriers when appropriate.
8567         (arm_split_atomic_op): Likewise.
8568         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
8569         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
8570         (VUNSPEC_SLX): Likewise.
8571         (VUNSPEC_LDA): Likewise.
8572         (VUNSPEC_STL): Likewise.
8573         * config/arm/sync.md (atomic_load<mode>): New pattern.
8574         (atomic_store<mode>): Likewise.
8575         (arm_load_acquire_exclusive<mode>): Likewise.
8576         (arm_load_acquire_exclusivesi): Likewise.
8577         (arm_load_acquire_exclusivedi): Likewise.
8578         (arm_store_release_exclusive<mode>): Likewise.
8580 2013-03-25  Catherine Moore  <clm@codesourcery.com>
8582         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
8583         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
8584         * config/mip/predicates.md (lwsp_swsp_operand,
8585         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
8586         sb16_operand, db4_operand, db7_operand, ib3_operand,
8587         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
8588         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
8589         andi16_operand): New predicates.
8590         * config/mips/mips.md (compression): New attribute.
8591         (enabled): New attribute.
8592         (length): Consider compression in computing length.
8593         (shift_compression): New code attribute.
8594         (*add<mode>3): New operands. Record compression.
8595         (sub<mode>3): Likewise.
8596         (one_cmpl<mode>2): Likewise.
8597         (*and<mode>3): Likewise.
8598         (*ior<mode>3): Likewise.
8599         (unnamed pattern for xor): Likewise.
8600         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
8601         (*<optab><mode>3): Likewise.
8602         (*mov<mode>_internal: Likewise.
8603         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
8604         (mips_unsigned_immediate_p): New.
8605         (umips_lwsp_swsp_address_p): New.
8606         (m16_based_address_p): New.
8607         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
8608         (mips_unsigned_immediate_p): New prototype.
8609         (lwsp_swsp_address_p): New prototype.
8610         (m16_based_address_p): New prototype.
8611         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
8612         (mips_signed_immediate_p): New function.
8613         (m16_based_address_p): New function.
8614         (lwsp_swsp_address_p): New function.
8615         (mips_print_operand_punctuation): Recognize short delay slot insns
8616         for microMIPS.add<mode>3"
8618 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8620         PR target/56720
8621         * config/arm/iterators.md (v_cmp_result): New mode attribute.
8622         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
8624 2013-03-25  Richard Biener  <rguenther@suse.de>
8626         PR tree-optimization/56689
8627         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
8628         any edge.
8630 2013-03-25  Richard Biener  <rguenther@suse.de>
8632         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
8633         of bitmap.
8634         (memory_references): Likewise.
8635         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
8636         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
8637         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
8638         (gather_mem_refs_in_loops): Fold into ...
8639         (analyze_memory_references): ... this.  Move initialization
8640         to tree_ssa_lim_initialize.
8641         (fill_always_executed_in): Rename to ...
8642         (fill_always_executed_in_1): ... this.
8643         (fill_always_executed_in): Move contains_call computation to
8644         this new function from ...
8645         (tree_ssa_lim_initialize): ... here.
8646         (tree_ssa_lim): Call fill_always_executed_in.
8648 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
8650         * postreload.c (reload_combine): Fix code detecting returns.
8652 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
8654         * function.c (emit_use_return_register_into_block): On cc0 targets,
8655         do not emit the sequence between cc0 setter and user.
8657 2013-03-25  Kai Tietz  <ktietz@redhat.com>
8659         * config/i386/predicates.md (local_symbolic_operand): Interpret
8660         dll-imported symbols as none-local.
8662 2013-03-25  Richard Biener  <rguenther@suse.de>
8664         * tree-ssa-loop-im.c (struct depend): Remove.
8665         (struct lim_aux_data): Make depends a vec of gimples.
8666         (free_lim_aux_data): Adjust.
8667         (add_dependency): Likewise.
8668         (set_level): Likewise.
8670 2013-03-25  Richard Biener  <rguenther@suse.de>
8672         PR middle-end/56434
8673         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
8674         the pointer returned by calls with ECF_MALLOC set.
8676 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
8678         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
8680 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
8682         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
8683         using MMXMODE mode iterator.
8684         (*move<mode>_internal): Merge with *movv2sf_internal and
8685         *movv2sf_internal_rex64 using MMXMODE mode iterator.
8687 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
8689         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
8690         (record_last_mem_set_info): Likewise.
8692         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
8693         of XNEWVEC followed by memset.
8694         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
8696 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
8698         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
8699         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
8700         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
8701         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
8702         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
8703         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
8704         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
8705         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
8706         BARRIER_P instead of GET_CODE.
8708 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
8710         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
8711         inaccuracy in the probing code.
8713         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
8714         (ctrapdi4): Likewise.
8716 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
8718         * calls.c (expand_call): Add missing guard to code handling return
8719         of non-BLKmode structures in MSB.
8720         * function.c (expand_function_end): Likewise.
8722 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
8724         * combine.c (try_combine): Adjust comment.  Do not add the set of
8725         insn #0 if the destination indirectly is set or dies in insn #2.
8726         Tidy up code to distribute a new note.
8728 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
8730         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
8731         also for alternatives 16 and 17.
8733 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
8735         * config/i386/sse.md (*mov<mode>_internal): Merge with
8736         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
8737         Emit insn template depending on type attribute.  Use
8738         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
8739         movd instead of movq mnemonic for interunit moves.  Rewrite mode
8740         attribute calculation.  Remove unit attribute calculation.
8741         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
8742         Set prefix_data16 attribute for DImode ssemov types.
8743         Use Ym instead of y for SSE-MMX conversion alternatives.
8744         Reorder operand constraints.
8746 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
8748         * df.h (df_insn_delete): Adjust prototype.
8749         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
8750         and let it decide whether mark the basic block dirty.
8751         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
8752         * df-scan.c (df_insn_info_delete): New helper function, split
8753         off from df_insn_delete.
8754         (df_scan_free_bb_info): Use it.
8755         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
8756         Likewise.
8757         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
8758         that the insn is actually an insn and it has a non-NULL basic block.
8759         Do not mark basic block dirty if only deleting a DEBUG_INSN.
8761 2013-03-22  Richard Biener  <rguenther@suse.de>
8763         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
8764         dep_ref members.
8765         (mem_ref_alloc): Do not allocate them.
8766         (refs_independent_p): Do not query or maintain a cache.
8768 2013-03-22  Richard Biener  <rguenther@suse.de>
8770         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
8771         (gather_mem_refs_in_loops): Do not compute it.
8772         (analyze_memory_references): Do not allocate it.
8773         (tree_ssa_lim_finalize): Do not free it.
8774         (for_all_locs_in_loop): Do not query all_refs_in_loop.
8776 2013-03-22  Richard Biener  <rguenther@suse.de>
8778         * is-a.h (as_a): Use gcc_checking_assert.
8780 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
8782         * config/aarch64/aarch64.c (aarch64_print_operand): New
8783         format specifier for printing a constant in hex.
8784         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
8785         format specifier for printing second operand.
8787 2013-03-22  Richard Biener  <rguenther@suse.de>
8789         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
8790         bitmaps.
8791         (gather_mem_refs_in_loops): Perform store accumulation here.
8792         (create_vop_ref_mapping_loop): Remove.
8793         (create_vop_ref_mapping): Likewise.
8794         (analyze_memory_references): Initialize refs_stored_in_loop.
8795         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
8796         (record_indep_loop): Remove.
8797         (record_dep_loop): New function.
8798         (ref_indep_loop_p_1): Adjust to only walk over references
8799         in the loop, not its subloops.
8800         (ref_indep_loop_p): Rename to ...
8801         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
8802         maintaining a more fine-grained cache.
8803         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
8804         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
8806 2013-03-22  Richard Biener  <rguenther@suse.de>
8808         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
8809         (struct mem_ref): Make accesses_in_loop a vec of a vec of
8810         aggregate mem_ref_loc.
8811         (free_mem_ref_locs): Inline into ...
8812         (memref_free): ... this and adjust.
8813         (mem_ref_alloc): Adjust.
8814         (mem_ref_locs_alloc): Remove.
8815         (record_mem_ref_loc): Adjust.
8816         (get_all_locs_in_loop): Rewrite into ...
8817         (for_all_locs_in_loop): ... this iterator.
8818         (rewrite_mem_ref_loc): New functor.
8819         (rewrite_mem_refs): Use for_all_locs_in_loop.
8820         (sm_set_flag_if_changed): New functor.
8821         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
8822         (ref_always_accessed): New functor.
8823         (ref_always_accessed_p): Use for_all_locs_in_loop.
8825 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
8827         * tree-pass.h (PROP_gimple_lvec): New.
8828         * passes.c (dump_properties): Handle PROP_gimple_lvec.
8829         (init_optimization_passes): Move pass_lower_vector.
8830         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
8831         PROP_gimple_lvec.
8832         (pass_lower_vector): Provide PROP_gimple_lvec.
8833         (pass_lower_vector_ssa): Likewise.
8834         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
8836 2013-03-21  Mark Wielaard  <mjw@redhat.com>
8838         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
8840 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
8842         * config/i386/i386.md (*movdi_internal): Disparage slightly
8843         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
8844         conversion alternatives.
8846 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
8848         PR middle-end/48087
8849         * diagnostic.def (DK_WERROR): New kind.
8850         * diagnostic.h (werrorcount): Define.
8851         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
8852         promoted to DK_ERROR, increment DK_WERROR counter instead of
8853         DK_ERROR counter.
8854         * toplev.c (toplev_main): Call print_ignored_options even if
8855         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
8856         even if just werrorcount is non-zero.
8858         PR debug/55608
8859         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
8860         on failure.
8861         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
8862         (string_cst_pool_decl): New function.
8863         (optimize_one_addr_into_implicit_ptr): New function.
8864         (resolve_addr_in_expr): Optimize DWARF location expression
8865         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
8866         which doesn't live in memory, but has DW_AT_location or
8867         DW_AT_const_value, or refers to a string literal, into
8868         DW_OP_GNU_implicit_pointer.
8869         (optimize_location_into_implicit_ptr): New function.
8870         (resolve_addr): If removing DW_AT_location of a variable because
8871         it was DW_OP_addr of address of the variable, but the variable doesn't
8872         live in memory, try to emit const value attribute for the initializer.
8874 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
8876         * tree.h (VECTOR_TYPE_P): New macro.
8877         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
8878         TYPE_MODE): Use it.
8879         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
8880         VEC_COND_EXPR cannot be lvalues.
8881         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
8883 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
8885         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
8886         Restrict the transformation to equal modes.
8888 2013-03-21  Richard Biener  <rguenther@suse.de>
8890         PR tree-optimization/39326
8891         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
8892         (MEM_ANALYZABLE): Adjust.
8893         (record_mem_ref_loc): Move bitmap ops ...
8894         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
8895         unanalyzable refs, do not record locations for it.
8896         (analyze_memory_references): Allocate ref zero as shared
8897         unanalyzable ref.
8898         (refs_independent_p): Do not test for unanalyzed mems here.
8899         (ref_indep_loop_p_1): Special-case disambiguation against
8900         the unanalyzed ref.
8901         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
8903 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
8905         * config/arm/arm-protos.h (tune_params): Add
8906         prefer_neon_for_64bits field.
8907         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
8908         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
8909         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
8910         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
8911         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
8912         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
8913         (arm_option_override): Handle -mneon-for-64bits new option.
8914         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
8915         (prefer_neon_for_64bits): Declare new variable.
8916         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
8917         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
8918         (arch_enabled): Handle new arch types. Remove support for onlya8
8919         and nota8.
8920         (one_cmpldi2): Use new arch names.
8921         (zero_extend<mode>di2, extend<mode>di2): Ditto.
8922         * config/arm/arm.opt (mneon-for-64bits): Add option.
8923         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
8924         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
8925         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
8926         of onlya8.
8927         * doc/invoke.texi (-mneon-for-64bits): Document.
8929 2013-03-21  Richard Biener  <rguenther@suse.de>
8931         PR tree-optimization/39326
8932         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
8933         (sort_bbs_in_loop_postorder_cmp): New function.
8934         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
8936 2013-03-21  Richard Biener  <rguenther@suse.de>
8938         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
8939         (vect_insert_into_interleaving_chain): Likewise.
8940         (vect_drs_dependent_in_basic_block): Inline ...
8941         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
8942         split out from ...
8943         (vect_analyze_data_ref_dependence): ... here.  Simplify.
8944         (vect_check_interleaving): Simplify.
8945         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
8946         (vect_slp_analyze_data_ref_dependences): ... this new function.
8947         (dr_group_sort_cmp): New function.
8948         (vect_analyze_data_ref_accesses): Compute data-reference groups
8949         here instead of in vect_analyze_data_ref_dependence.  Use
8950         a more efficient algorithm.
8951         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
8952         vect_slp_analyze_data_ref_dependences.  Call
8953         vect_analyze_data_ref_accesses earlier.
8954         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
8955         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
8956         (vect_slp_analyze_data_ref_dependences): New prototype.
8958 2013-03-21  Richard Biener  <rguenther@suse.de>
8960         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
8961         ref is stored in the loop.
8962         (find_refs_for_sm): Walk only over all stores.
8963         (store_motion_loop): Allocate from lim_bitmap_obstack.
8964         (store_motion): Likewise.
8966 2013-03-21  Richard Biener  <rguenther@suse.de>
8968         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
8969         Update virtual SSA form.
8971 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8973         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
8974         * configure: Regenerate.
8975         * config.in: Regenerate.
8976         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
8977         if !HAVE_LD_EH_FRAME_CIEV3.
8979 2013-03-21  Richard Biener  <rguenther@suse.de>
8981         * tree-cfg.c (verify_expr_no_block): New function.
8982         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
8983         nor DECL_VALUE_EXPR have locations with associated blocks.
8984         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
8985         (clear_unused_block_pointer): Remove code dealing with
8986         blocks in DECL_DEBUG_EXPR locations.
8988 2013-03-21  Richard Biener  <rguenther@suse.de>
8990         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
8991         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
8992         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
8993         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
8994         instead of DECL_DEBUG_EXPR_IS_FROM.
8995         * gimplify.c (gimplify_modify_expr): Likewise.
8996         * tree-cfg.c (verify_expr_location_1): Likewise.
8997         * tree-complex.c (create_one_component_var): Likewise.
8998         * tree-sra.c (create_access_replacement): Likewise.
8999         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
9000         (clear_unused_block_pointer): Likewise.
9001         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
9002         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
9003         * var-tracking.c (var_debug_decl): Likewise.
9004         (track_expr_p): Likewise.
9005         * tree-inline.c (add_local_variables): Likewise.  Set
9006         DECL_HAS_DEBUG_EXPR_P after copying it.
9007         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
9008         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
9010 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
9012         PR bootstrap/56656
9013         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
9014         * configure: Regenerate.
9015         * config.in: Regenerate.
9016         * config/i386/i386.md (*movdf_internal): Use
9017         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
9018         movd instead of movq mnemonic for interunit moves.
9019         (*movdi_internal): Ditto.
9021 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
9023         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
9024         (abd<mode>_3): New pattern.
9025         (aba<mode>_3): New pattern.
9026         (fabd<mode>_3): New pattern.
9028 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
9030         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
9031         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
9032         occurrence of REGISTER_PREFIX as its empty string.
9034 2013-03-20  Jeff Law  <law@redhat.com>
9036         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
9037         addititional equivalences for equality comparisons between an SSA_NAME
9038         and a constant where the SSA_NAME was set from a widening conversion.
9040 2013-03-20  Walter Lee  <walt@tilera.com>
9042         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
9044 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
9046         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
9047         depending on type attribute.
9048         (*movti_internal): Ditto.
9049         (*movtf_internal): Ditto.
9050         (*movxf_internal): Ditto.
9051         (*movdf_internal): Ditto.
9052         (*movsf_internal): Ditto.
9054 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
9056         * config/i386/i386.md (*movti_internal): Set prefix attribute to
9057         maybe_vex for sselog1 and ssemov types.
9058         (*movdi_internal): Reorder operand constraints.
9059         (*movsi_internal): Ditto.  Set prefix attribute to
9060         maybe_vex for sselog1 and ssemov types.
9061         (*movtf_internal): Set prefix attribute to maybe_vex
9062         for sselog1 and ssemov types.
9063         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
9064         DImode ssemov types.  Reorder operand constraints.
9065         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
9066         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
9067         attribute for SImode ssemov types.  Reorder operand constraints.
9069 2013-03-20  Martin Jambor  <mjambor@suse.cz>
9071         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
9072         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
9074 2013-03-20  Pat Haugen <pthaugen@us.ibm.com>
9076         * config/rs6000/predicates.md (indexed_address, update_address_mem
9077         update_indexed_address_mem): New predicates.
9078         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
9079         attribute for load/store instructions.
9080         * config/rs6000/dfp.md (movsd_store): Likewise.
9081         (movsd_load): Likewise.
9082         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
9083         (unnamed HI->DI extend define_insn): Likewise.
9084         (unnamed SI->DI extend define_insn): Likewise.
9085         (unnamed QI->SI extend define_insn): Likewise.
9086         (unnamed QI->HI extend define_insn): Likewise.
9087         (unnamed HI->SI extend define_insn): Likewise.
9088         (unnamed HI->SI extend define_insn): Likewise.
9089         (extendsfdf2_fpr): Likewise.
9090         (movsi_internal1): Likewise.
9091         (movsi_internal1_single): Likewise.
9092         (movhi_internal): Likewise.
9093         (movqi_internal): Likewise.
9094         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
9095         attribute for load/store instructions.
9096         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
9097         instructions.
9098         (mov<mode>_softfloat): Likewise.
9099         (mov<mode>_hardfloat32): Likewise.
9100         (mov<mode>_hardfloat64): Likewise.
9101         (mov<mode>_softfloat64): Likewise.
9102         (movdi_internal32): Likewise.
9103         (movdi_internal64): Likewise.
9104         (probe_stack_<mode>): Likewise.
9106 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
9108         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
9109         floating point, and decimal floating point to reload iterator.
9111         * config/rs6000/constraints.md (wl constraint): New constraints to
9112         return FLOAT_REGS if certain options are used to reduce the number
9113         of separate patterns that exist in the file.
9114         (wx constraint): Likewise.
9115         (wz constraint): Likewise.
9117         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
9118         -mdebug=reg, print wg, wl, wx, and wz constraints.
9119         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
9120         Initialize the reload functions for 64-bit binary/decimal floating
9121         point types.
9122         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
9123         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
9124         create the buffer on the stack to overcome not having a 32-bit
9125         load and store.
9126         (rs6000_emit_move): Likewise.
9127         (rs6000_secondary_memory_needed_rtx): Likewise.
9128         (rs6000_alloc_sdmode_stack_slot): Likewise.
9129         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
9130         via xxlxor, just like DFmode 0.0.
9132         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
9133         define as 1 if we are running on a power7 or newer.
9134         (enum r6000_reg_class_enum): Add new constraints.
9136         * config/rs6000/dfp.md (movsd): Delete, combine with binary
9137         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
9138         with other moves by using conditional constraits (wg).  Use LFIWZX
9139         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
9140         (movsd splitter): Likewise.
9141         (movsd_hardfloat): Likewise.
9142         (movsd_softfloat): Likewise.
9144         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
9145         binary and decimal floating point moves.
9146         (fmove_ok): New attributes to combine binary and decimal floating
9147         point moves, and to combine power6x (mfpgpr) moves along normal
9148         floating moves.
9149         (real_value_to_target): Likewise.
9150         (f32_lr): Likewise.
9151         (f32_lm): Likewise.
9152         (f32_li): Likewise.
9153         (f32_sr): Likewise.
9154         (f32_sm): Likewise.
9155         (f32_si): Likewise.
9156         (movsf): Combine binary and decimal floating point moves.  Combine
9157         power6x (mfpgpr) moves with other moves by using conditional
9158         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
9159         (mov<mode> for SFmode/SDmode); Likewise.
9160         (SFmode/SDmode splitters): Likewise.
9161         (movsf_hardfloat): Likewise.
9162         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
9163         (movsf_softfloat): Likewise.
9164         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
9166         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
9167         wx and wz constraints.
9169         * config/rs6000/constraints.md (wg constraint): New constraint to
9170         return FLOAT_REGS if -mmfpgpr (power6x) was used.
9172         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
9173         constraint.
9175         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
9176         -mdebug=reg, print wg, wl, wx, and wz constraints.
9177         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
9178         Initialize the reload functions for 64-bit binary/decimal floating
9179         point types.
9180         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
9181         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
9182         create the buffer on the stack to overcome not having a 32-bit
9183         load and store.
9184         (rs6000_emit_move): Likewise.
9185         (rs6000_secondary_memory_needed_rtx): Likewise.
9186         (rs6000_alloc_sdmode_stack_slot): Likewise.
9187         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
9188         via xxlxor, just like DFmode 0.0.
9190         * config/rs6000/dfp.md (movdd): Delete, combine with binary
9191         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
9192         with other moves by using conditional constraits (wg).  Use LFIWZX
9193         and STFIWX for loading SDmode on power7.
9194         (movdd splitters): Likewise.
9195         (movdd_hardfloat32): Likewise.
9196         (movdd_softfloat32): Likewise.
9197         (movdd_hardfloat64_mfpgpr): Likewise.
9198         (movdd_hardfloat64): Likewise.
9199         (movdd_softfloat64): Likewise.
9201         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
9202         64-bit binary and decimal floating point moves.
9203         (FMOVE64X): Likewise.
9204         (movdf): Combine 64-bit binary and decimal floating point moves.
9205         Combine power6x (mfpgpr) moves with other moves by using
9206         conditional constraits (wg).
9207         (mov<mode> for DFmode/DDmode): Likewise.
9208         (DFmode/DDmode splitters): Likewise.
9209         (movdf_hardfloat32): Likewise.
9210         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
9211         (movdf_softfloat32): Likewise.
9212         (movdf_hardfloat64_mfpgpr): Likewise.
9213         (movdf_hardfloat64): Likewise.
9214         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
9215         (movdf_softfloat64): Likewise.
9216         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
9217         (reload_<mode>_load): Move to later in the file so they aren't in
9218         the middle of the floating point move insns.
9219         (reload_<mode>_store): Likewise.
9221         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
9222         constraint.
9224         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
9225         constraint if -mdebug=reg.
9226         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
9227         Enable using dd reload support if needed.
9229         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
9230         binary and decimal floating point moves in rs6000.md.
9231         (movtd_internal): Likewise.
9233         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
9234         decimal floating point moves.
9235         (movtf): Likewise.
9236         (movtf_internal): Likewise.
9237         (mov<mode>_internal, TDmode/TFmode): Likewise.
9238         (movtf_softfloat): Likewise.
9239         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
9241         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
9242         movdi_internal64, using wg constraint for move direct operations.
9243         (movdi_internal64): Likewise.
9245         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
9246         MODES_TIEABLE_P for selected modes.  Print the numerical value of
9247         the various virtual registers. Use GPR/FPR first/last values,
9248         instead of hard coding the register numbers.  Print which modes
9249         have reload functions registered.
9250         (rs6000_option_override_internal): If -mdebug=reg, trace the options
9251         settings before/after setting cpu, target and subtarget settings.
9252         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
9253         and for secondary reload failures in rs6000_secondary_reload_inner.
9254         (rs6000_secondary_reload_fail): Likewise.
9255         (rs6000_secondary_reload_inner): Likewise.
9257         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
9258         macros for first/last GPR and FPR registers.
9259         (LAST_GPR_REGNO): Likewise.
9260         (FIRST_FPR_REGNO): Likewise.
9261         (LAST_FPR_REGNO): Likewise.
9263         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
9264         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
9265         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
9266         (vcond<mode><mode>): Likewise.
9267         (vcondu<mode><mode>): Likewise.
9268         (vector_gtu<mode>): Likewise.
9269         (vector_gte<mode>): Likewise.
9270         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
9271         to prevent the compiler from converting DImode operations to TImode.
9272         (ior<mode>3): Likewise.
9273         (and<mode>3): Likewise.
9274         (one_cmpl<mode>2): Likewise.
9275         (nor<mode>3): Likewise.
9276         (andc<mode>3): Likewise.
9278         * config/rs6000/constraints.md (wt constraint): New constraint
9279         that returns VSX_REGS if TImode is allowed in VSX registers.
9281         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
9282         constant under VSX.
9284         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
9285         similar to TImode, but it is restricted to being in the GPRs.
9287         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
9288         TImode to occupy a single VSX register.
9290         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
9291         -mvsx-timode for power7/power8.
9292         (power7 cpu): Likewise.
9293         (power8 cpu): Likewise.
9295         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
9296         sure that TFmode/TDmode take up two registers if they are ever
9297         allowed in the upper VSX registers.
9298         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
9299         registers.
9300         (rs6000_init_hard_regno_mode_ok): Likewise.
9301         (rs6000_debug_reg_global): Add debugging for PTImode and wt
9302         constraint.  Print if LRA is turned on.
9303         (rs6000_option_override_internal): Give an error if -mvsx-timode
9304         and VSX is not enabled.
9305         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
9306         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
9307         to reg+offset addressing.  Use PTImode when checking offset
9308         addresses for validity.
9309         (reg_offset_addressing_ok_p): Likewise.
9310         (rs6000_legitimate_offset_address_p): Likewise.
9311         (rs6000_legitimize_address): Likewise.
9312         (rs6000_legitimize_reload_address): Likewise.
9313         (rs6000_legitimate_address_p): Likewise.
9314         (rs6000_eliminate_indexed_memrefs): Likewise.
9315         (rs6000_emit_move): Likewise.
9316         (rs6000_secondary_reload): Likewise.
9317         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
9318         reloads to fpr registers to continue to use reg+offset addressing,
9319         but 64-bit reloads to altivec registers need reg+reg addressing.
9320         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
9321         it.  Treat LO_SUM like a PLUS operation.
9322         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
9323         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
9324         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
9325         registers to share a register with a smaller sized type, since VSX
9326         puts scalars in the upper 64-bits.
9327         (print_operand): Add support for PTImode.
9328         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
9329         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
9330         registers, but don't have arithmetic support.
9331         (rs6000_memory_move_cost): Add test for VSX.
9332         (rs6000_opt_masks): Add -mvsx-timode.
9334         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
9335         for TImode.
9336         (VSs): Likewise.
9337         (VSr): Use wt constraint for TImode.
9338         (VSv): Drop TImode support.
9339         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
9340         (vsx_movti_64bit): Likewise.
9341         (vsx_movti_32bit): Likewise.
9342         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
9343         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
9344         one '?' on the appropriate output constraint.  Do not allow TImode
9345         logical operations on 32-bit systems.
9346         (vsx_ior<mode>3): Likewise.
9347         (vsx_xor<mode>3): Likewise.
9348         (vsx_one_cmpl<mode>2): Likewise.
9349         (vsx_nor<mode>3): Likewise.
9350         (vsx_andc<mode>3): Likewise.
9351         (vsx_concat_<mode>): Likewise.
9352         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
9354         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
9355         OPTION_MASK_VSX_TIMODE.
9356         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
9357         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
9359         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
9360         (TI2 iterator): New iterator for TImode, PTImode.
9361         (wd mode attribute): Add values for vector types.
9362         (movti_string): Replace TI move operations with operations for TImode
9363         and PTImode.  Add support for TImode being allowed in VSX registers.
9364         (mov<mode>_string, TImode/PTImode): Likewise.
9365         (movti_ppc64): Likewise.
9366         (mov<mode>_ppc64, TImode/PTImode): Likewise.
9367         (TI mode splitters): Likewise.
9369         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
9370         constraint.
9372 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
9374         PR tree-optimization/56355
9375         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
9376         Also handle integers with undefined overflow.
9378 2013-03-20  Catherine Moore  <clm@codesourcery.com>
9379             Maciej W. Rozycki  <macro@codesourcery.com>
9380             Tom de Vries  <tom@codesourcery.com>
9381             Nathan Sidwell <nathan@codesourcery.com>
9382             Iain Sandoe  <iain@codesourcery.com>
9383             Nathan Froyd  <froydnj@codesourcery.com>
9384             Chao-ying Fu <fu@mips.com>
9386         * doc/extend.texi: (micromips, nomicromips, nocompression):
9387         Document new function attributes.
9388         * doc/invoke.texi (minterlink-compressed, mmicromips,
9389         m14k, m14ke, m14kec): Document new options.
9390         (minterlink-mips16): Update documentation.
9391         * doc/md.texi (ZC, ZD): Document new constraints.
9392         * configure.ac (gcc_cv_as_micromips): Check if linker
9393         supports the .set micromips directive.
9394         * configure: Regenerate.
9395         * config.in: Regenerate.
9396         * config/mips/mips-tables.opt: Regenerate.
9397         * config/mips/micromips.md: New file.
9398         * constraints.md (ZC, ZD): New constraints.
9399         * config/mips/predicates.md (movep_src_register): New predicate.
9400         (movep_src_operand): New predicate.
9401         (non_volatile_mem_operand): New predicate.
9402         * config/mips/mips.md (multimem): New type.
9403         (length): Differentiate between 17-bit and 18-bit branch offsets.
9404         (MOVEP1, MOVEP2): New mode iterator.
9405         (mov_<load>l): Use ZC constraint.
9406         (mov_<load>r): Likewise.
9407         (mov_<store>l): Likewise.
9408         (mov_<store>r): Likewise.
9409         (*branch_equality<mode>_inverted): Add microMIPS support.
9410         (*branch_equality<mode>): Likewise.
9411         (*jump_absolute): Likewise.
9412         (indirect_jump_<mode>): Likewise.
9413         (tablejump_<mode>): Likewise.
9414         (<optab>_internal): Likewise.
9415         (sibcall_internal): Likewise.
9416         (sibcall_value_internal): Likewise.
9417         (prefetch): Use constraint ZD.
9418         * config/mips/mips.opt (minterlink-compressed): New option.
9419         (minterlink-mips16): Now an alias for minterlink-compressed.
9420         (mmicromips): New option.
9421         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
9422         (compare_and_swap_12): Likewise.
9423         (sync_add<mode>): Likewise.
9424         (sync_<optab>_12): Likewise.
9425         (sync_old_<optab>_12): Likewise.
9426         (sync_new_<optab>_12): Likewise.
9427         (sync_nand_12): Likewise.
9428         (sync_old_nand_12): Likewise.
9429         (sync_new_nand_12): Likewise.
9430         (sync_sub<mode>): Likewise.
9431         (sync_old_add<mode>): Likewise.
9432         (sync_old_sub<mode>): Likewise.
9433         (sync_new_add<mode>): Likewise.
9434         (sync_new_sub<mode>): Likewise.
9435         (sync_<optab><mode>): Likewise.
9436         (sync_old_<optab><mode>): Likewise.
9437         (sync_new_<optab><mode>): Likewise.
9438         (sync_nand<mode>): Likewise.
9439         (sync_old_nand<mode>): Likewise.
9440         (sync_new_nand<mode>): Likewise.
9441         (sync_lock_test_and_set<mode>): Likewise.
9442         (test_and_set_12): Likewise.
9443         (atomic_compare_and_swap<mode>): Likewise.
9444         (atomic_exchange<mode>_llsc): Likewise.
9445         (atomic_fetch_add<mode>_llsc): Likewise.
9446         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
9447         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
9448         (umips_save_restore_pattern_p): Likewise.
9449         (umips_load_store_pair_p): Likewise.
9450         (umips_output_load_store_pair): Likewise.
9451         (umips_movep_target_p): Likewise.
9452         (umips_12bit_offset_address_p): Likewise.
9453         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
9454         (mips_base_mips16): Rename this...
9455         (mips_base_compression_flags): ...to this. Update all uses.
9456         (mips_attribute_table): Add micromips, nomicromips and nocompression.
9457         (mips_mips16_decl_p): Delete.
9458         (mips_nomips16_decl_p): Delete.
9459         (mips_get_compress_on_flags): New function.
9460         (mips_get_compress_off_flags): New function.
9461         (mips_get_compress_mode): New function.
9462         (mips_get_compress_on_name): New function.
9463         (mips_get_compress_off_name): New function.
9464         (mips_insert_attributes): Support multiple compression types.
9465         (mips_merge_decl_attributes): Likewise.
9466         (umips_12bit_offset_address_p): New function.
9467         (mips_start_function_definition): Emit .set micromips directive.
9468         (mips_call_may_need_jalx_p): New function.
9469         (mips_function_ok_for_sibcall): Add microMIPS support.
9470         (mips_print_operand_punctuation): Support short delay slots and
9471         compact jumps.
9472         (umips_swm_mask, umips_swm_encoding): New.
9473         (umips_build_save_restore): New function.
9474         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
9475         (was_mips16_p): Remove.
9476         (old_compression_mode): New.
9477         (mips_set_compression_mode): New function.
9478         (mips_set_current_function): Add microMIPS support.
9479         (mips_option_override): Likewise.
9480         (umips_save_restore_pattern_p): New function.
9481         (umips_output_save_restore): New function.
9482         (umips_load_store_pair_p_1): New function.
9483         (umips_load_store_pair_p): New function.
9484         (umips_output_load_store_pair_1): New function.
9485         (umips_output_load_store_pair): New function.
9486         (umips_movep_target_p) New function.
9487         (mips_prepare_pch_save): Add microMIPS support.
9488         * config/mips/mips.h (TARGET_COMPRESSION): New.
9489         (TARGET_CPU_CPP_BUILTINS): Update macro
9490         to use new compression flags and to support microMIPS.
9491         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
9492         (MIPS_ARCH_FLOAT_SPEC): Likewise.
9493         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
9494         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
9495         (ASM_SPEC): Support mmicromips and mno-micromips.
9496         (M16STORE_REG_P): New macro.
9497         (MIPS_CALL): Support TARGET_MICROMIPS.
9498         (MICROMIPS_J): New macro.
9499         (mips_base_mips16): Rename this...
9500         (mips_base_compression_flags): ...to this.
9501         (UMIPS_12BIT_OFFSET_P): New macro.
9502         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
9503         (MULTILIB_DIRNAMES): Likewise.
9504 2013-03-20  Richard Biener  <rguenther@suse.de>
9506         PR tree-optimization/56661
9507         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
9508         the result does not have to be distinct.
9510 2013-03-20  Richard Biener  <rguenther@suse.de>
9512         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
9513         remap_gimple_op_r.
9515 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9516             Steven Bosscher <steven@gcc.gnu.org>
9518         PR rtl-optimization/56605
9519         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
9521 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
9523         PR bootstrap/56656
9524         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
9525         that require movd instead of movq.
9527 2013-03-20  Richard Biener  <rguenther@suse.de>
9529         * tree-ssa-structalias.c (struct variable_info): Add pointer
9530         to the first field of an aggregate with sub-vars.  Make
9531         this and the pointer to the next subfield its ID.
9532         (vi_next): New function.
9533         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
9534         storedanything_id, integer_id): Increment by one.
9535         (new_var_info, get_call_vi, lookup_call_clobber_vi,
9536         get_call_clobber_vi): Adjust.
9537         (solution_set_expand): Simplify and speedup.
9538         (solution_set_add): Inline into ...
9539         (set_union_with_increment): ... this.  Adjust accordingly.
9540         (do_sd_constraint): Likewise.
9541         (do_ds_constraint): Likewise.
9542         (do_complex_constraint): Simplify.
9543         (build_pred_graph): Adjust.
9544         (solve_graph): Likewise.  Simplify and speedup.
9545         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
9546         get_constraint_for_component_ref, get_constraint_for_1,
9547         first_vi_for_offset, first_or_preceding_vi_for_offset,
9548         create_function_info_for, create_variable_info_for_1,
9549         create_variable_info_for, intra_create_variable_infos): Adjust.
9550         (init_base_vars): Push NULL for ID zero.
9551         (compute_points_to_sets): Adjust.
9553 2013-03-20  Richard Biener  <rguenther@suse.de>
9555         * cfgloop.c (verify_loop_structure): Streamline and avoid
9556         ICEing on corrupt loop tree.
9557         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
9558         loop tree.
9560 2013-03-20  Richard Biener  <rguenther@suse.de>
9562         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
9563         check whether an SSA update is needed.
9565 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
9567         * config/mips/constraints.md (T): Rename to...
9568         (Yf): ...this.
9569         (U): Rename to...
9570         (Yd): ...this.
9571         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
9572         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
9574 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
9576         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
9577         (*subsi3_carryin_uxtw): Likewise.
9579 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
9581         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
9582         (*rorsi3_insn_uxtw): Likewise.
9584 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
9586         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
9587         (*extrsi5_insn_uxtw): Likewise.
9589 2013-03-19  Richard Biener  <rguenther@suse.de>
9591         PR tree-optimization/56273
9592         * passes.c (init_optimization_passes): Move second VRP after DOM.
9594 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
9596         * config/i386/i386.md (*movti_internal): Merge from
9597         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
9598         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
9599         nox64 isa attributes.
9601 2013-03-18  Richard Biener  <rguenther@suse.de>
9603         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
9604         (unite): Likewise.
9605         (merge_node_constraints): Likewise.
9606         (build_succ_graph): Likewise.
9607         (valid_graph_edge): Inline into single caller.
9608         (unify_nodes): Likewise.  Use bitmap_set_bit return value
9609         and cache varinfo.
9610         (scc_visit): Fix formatting and variable use.
9611         (do_sd_constraint): Use gcc_checking_assert.
9612         (do_ds_constraint): Likewise.
9613         (do_complex_constraint): Likewise.
9614         (condense_visit): Likewise.  Cleanup.
9615         (dump_pred_graph): New function.
9616         (perform_var_substitution): Dump the pred-graph before
9617         variable substitution.
9618         (find_equivalent_node): Use gcc_checking_assert.
9619         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
9621 2013-03-18  Richard Biener  <rguenther@suse.de>
9623         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
9624         Remove cond_expr_stmt_list argument and do not gimplify the
9625         built expression.
9626         (vect_loop_versioning): Adjust.
9627         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
9628         Cleanup to use less temporaries.
9629         (vect_create_data_ref_ptr): Cleanup.
9631 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
9633         PR tree-optimization/56635
9634         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
9635         require types_compatible_p types.
9637 2013-03-18  Nick Clifton  <nickc@redhat.com>
9639         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
9640         spurious backslash.
9642         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
9643         Add missing line to comment describing function.
9645 2013-03-18  Richard Biener  <rguenther@suse.de>
9647         PR tree-optimization/56210
9648         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9649         Handle string / character search functions.
9650         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
9652 2013-03-18  Richard Biener  <rguenther@suse.de>
9654         PR middle-end/56483
9655         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
9656         and implement properly.
9657         * gimple.h (gimple_cond_single_var_p): Remove.
9659 2013-03-18  Richard Biener  <rguenther@suse.de>
9661         * tree-data-ref.h (find_data_references_in_loop): Declare.
9662         * tree-data-ref.c (get_references_in_stmt): Use a stack
9663         vector pre-allocated in the callers.
9664         (find_data_references_in_stmt): Adjust.
9665         (graphite_find_data_references_in_stmt): Likewise.
9666         (create_rdg_vertices): Likewise.
9667         (find_data_references_in_loop): Export.
9668         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
9669         Compute dependences here...
9670         (vect_analyze_data_refs): ...not here.  When we encounter
9671         a non-vectorizable data reference in basic-block vectorization
9672         truncate the data reference vector.  Do not bother to
9673         fixup data-dependence information for gather loads.
9674         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
9675         of data references, as reported.
9677 2013-03-18  Richard Biener  <rguenther@suse.de>
9679         PR tree-optimization/3713
9680         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
9681         has_constants and expr.
9682         (stmt_has_constants): Properly valueize SSA names when deciding
9683         whether the stmt has constants.
9685 2013-03-18  Richard Biener  <rguenther@suse.de>
9687         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
9688         whole function when there is nothing to do.
9689         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
9690         * tree-vectorizer.c (vectorize_loops): Update virtual and
9691         loop-closed SSA once.
9692         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
9694 2013-03-18  Richard Biener  <rguenther@suse.de>
9696         PR middle-end/56113
9697         * domwalk.c (bb_postorder): New global static.
9698         (cmp_bb_postorder): New function.
9699         (walk_dominator_tree): Replace scheme imposing an order for
9700         visiting dominator sons by one sorting them at the time they
9701         are pushed on the stack.
9703 2013-03-18  Richard Biener  <rguenther@suse.de>
9705         PR tree-optimization/39326
9706         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
9707         (struct mem_ref): Replace mem member with ao_ref typed member.
9708         (MEM_ANALYZABLE): Adjust.
9709         (memref_eq): Likewise.
9710         (mem_ref_alloc): Likewise.
9711         (gather_mem_refs_stmt): Likewise.
9712         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
9713         (execute_sm_if_changed_flag_set): Adjust.
9714         (execute_sm): Likewise.
9715         (ref_always_accessed_p): Likewise.
9716         (refs_independent_p): Likewise.
9717         (can_sm_ref_p): Likewise.
9719 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
9721         PR c/56566
9722         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
9723         return 1 even for !unsignedp.
9725 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
9727         * config/i386/i386.md (isa): Add x64 and nox64.
9728         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
9729         (*pushtf): Enable *roF alternative for x64 isa only.
9730         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
9731         mode attribute of integer alternatives to DImode for TARGET_64BIT.
9732         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
9733         (*movtf_internal): Merge from *movtf_internal_rex64 and
9734         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
9735         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
9736         nox64 isa attributes.
9737         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
9738         nox64 isa attributes.
9739         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
9741 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
9743         * config/alpha/alpha.c (TARGET_LRA_P): New define.
9745 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
9747         PR target/56640
9748         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
9749         class names.  Remove trailing comma after "ALL_REGS".
9751 2013-03-16  Jan Hubicka  <jh@suse.cz>
9753         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
9754         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
9755         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
9756         of cgraph_get_create_node.
9757         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
9759 2013-03-16  Jason Merrill  <jason@redhat.com>
9761         PR debug/49090
9762         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
9763         with DW_AT_default_value.
9765 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
9767         * BASE-VER: Set to 4.9.0.
9769 2013-03-14  Andi Kleen  <ak@linux.intel.com>
9771         PR target/56619
9772         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
9773         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
9774         Document _x* TSX intrinsics.
9776 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
9777             David Holsgrove  <david.holsgrove@xilinx.com>
9779         * configure.ac: Add MicroBlaze TLS support detection.
9780         * configure: Regenerate.
9781         * config/microblaze/microblaze-protos.h
9782         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
9783         symbol_mentioned_p, label_mentioned_p): Add prototypes.
9784         * config/microblaze/microblaze.c (microblaze_address_type): Add
9785         ADDRESS_TLS and tls_reloc address types.
9786         (microblaze_address_info): Add tls_reloc.
9787         (TARGET_HAVE_TLS): Define.
9788         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
9789          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
9790          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
9791         load_tls_operand,  microblaze_call_tls_get_addr,
9792         microblaze_legitimize_tls_address): New functions.
9793         (microblaze_classify_unspec): Handle UNSPEC_TLS.
9794         (get_base_reg): Use microblaze_tls_symbol_p.
9795         (microblaze_classify_address): Handle TLS.
9796         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
9797         label_mentioned_p and microblaze_tls_referenced_p.
9798         (microblaze_legitimize_address): Handle TLS.
9799         (microblaze_address_insns): Handle ADDRESS_TLS.
9800         (pic_address_needs_scratch): Handle TLS.
9801         (print_operand_address): Handle TLS.
9802         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
9803         (microblaze_expand_move): Handle TLS.
9804         (microblaze_legitimate_constant_p): Check
9805         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
9806         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9807         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
9808         (PIC_OFFSET_TABLE_REGNUM): Set.
9809         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
9810         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
9811         (addsi3, movsi_internal2, movdf_internal): Update constraints
9812         * config/microblaze/predicates.md (arith_plus_operand): Define
9813         (move_operand): Redefine as move_src_operand,
9814         check microblaze_tls_referenced_p.
9816 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
9818         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
9819         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
9821 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
9823         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
9824         CC mode for AND.
9826 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
9828         PR tree-optimization/53265
9829         * common.opt (Waggressive-loop-optimizations): New option.
9830         * tree-ssa-loop-niter.c: Include tree-pass.h.
9831         (do_warn_aggressive_loop_optimizations): New function.
9832         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
9833         if number_of_latch_executions returned constant.
9834         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
9835         early.  If number_of_latch_executions returned constant, set
9836         nb_iterations_upper_bound back to it.
9837         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
9838         field.
9839         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
9840         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
9842         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
9843         (MULTILIB_OSDIRNAMES): Set.
9844         * genmultilib: If defaultosdirname doesn't start with :: , set
9845         defaultosdirname2 instead, clear it and emit two . multilib_raw
9846         entries instead of just one.
9848 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
9850         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
9851         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
9852         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
9853         (SUBTARGET_OVERRIDE_OPTIONS): New.
9855 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
9857         PR target/49880
9858         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
9859         (musermode): Convert to Var(TARGET_USERMODE).
9860         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
9861         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
9862         * config/sh/sh.c (sh_option_override): Use
9863         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
9864         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
9865         condition.
9866         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
9867         TARGET_SH4.
9868         (udivsi3_i4_single, divsi3_i4_single): Use
9869         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
9871 2013-03-13  Dave Korn  <dave.korn.cygwin@....>
9873         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
9874         default setting.
9876 2013-03-13  Richard Biener  <rguenther@suse.de>
9878         PR tree-optimization/56608
9879         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
9880         calls when vectorizing basic-blocks.
9882 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
9884         PR plugins/45078
9885         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
9886         tm_file.
9888 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
9890         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
9892 2013-03-11  Jan Hubicka  <jh@suse.cz>
9894         PR lto/56557
9895         * lto-streamer-out.c (output_symbol_p): Skip references from
9896         constructors of external variables.
9898 2013-03-11  Jan Hubicka  <jh@suse.cz>
9900         PR middle-end/56571
9901         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
9902         from pseudos.
9903         * emit-rtl.c (verify_rtx_sharing): Likewise.
9904         (copy_insn_1): Likewise.
9905         * rtl.c (copy_rtx): Likewise.
9907 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
9909         PR target/56591
9910         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
9911         output_operand_lossage message.
9913 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
9915         PR target/56470
9916         * arm.c (shift_op): Validate RTL pattern on the fly.
9917         (arm_print_operand, case 'S'): Don't use shift_operator to validate
9918         the RTL.
9920 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9922         PR target/56347
9923         * config/pa/pa.md (call_value): Check for calls to powf and direct to
9924         new call patterns that clobber %fr12.
9925         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
9926         split and postreload patterns.
9927         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
9928         registers %fr12 and %fr12R as call used.
9930 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
9932         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
9933         (canon_address, record_store, replace_read, check_mem_read_rtx,
9934         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
9935         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
9936         rest_of_handle_dse): Likewise.
9938 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
9940         PR middle-end/56524
9941         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
9942         Add base_optabs.
9943         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
9944         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
9945         (save_optabs_if_changed): Replace with...
9946         (init_tree_optimization_optabs): ...this.
9947         * optabs.c (save_optabs_if_changed): Rename to...
9948         (init_tree_optimization_optabs): ...this.  Take the optimization node
9949         as argument.  Do nothing if the base optabs are already correct.
9950         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
9951         to recompute optabs.
9952         * function.h (function): Remove optabs field.
9953         * function.c (invoke_set_current_function_hook): Call
9954         init_tree_optimization_optabs.  Use the result to initialize
9955         this_fn_optabs.
9957 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
9959         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
9960         if GTMA_HAS_NO_INSTRUMENTATION.
9961         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
9962         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
9963         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
9964         * gimple-pretty-print.c (dump_gimple_transaction): Handle
9965         GTMA_HAS_NO_INSTRUMENTATION.
9967 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
9969         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
9970         libasan_preinit.o.
9972 2013-03-08  Marek Polacek  <polacek@redhat.com>
9973             Jakub Jelinek  <jakub@redhat.com>
9975         PR tree-optimization/56478
9976         * predict.c (is_comparison_with_loop_invariant_p): Change the
9977         type of loop_step to tree.
9978         (predict_loops): Adjust.
9979         (predict_iv_comparison): Perform the computations on double_ints.
9981 2013-03-08  Richard Biener  <rguenther@suse.de>
9983         PR tree-optimization/56570
9984         * tree-cfg.c (verify_expr_location_1): Verify locations for
9985         DECL_DEBUG_EXPR.
9986         * tree-sra.c (create_access_replacement): Strip locations
9987         from DECL_DEBUG_EXPRs.
9989 2013-03-08  Richard Biener  <rguenther@suse.de>
9991         * tree-inline.c (expand_call_inline): Do not associate
9992         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
9993         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
9995 2013-03-08  Richard Biener  <rguenther@suse.de>
9997         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
9998         or block changes with -Og.  Fix for location / block encoding
9999         changes and PHI arguments with locations.
10001 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
10003         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
10004         for all counters.
10005         (struct output_info): Likewise.
10006         (register_overhead): Remove bad gcc_assert.
10007         (bitmap_find_bit): If there is only a single bitmap element, do not
10008         count a miss as a search.
10009         (print_statistics): Update for counter type changes.
10010         (dump_bitmap_statistics): Likewise.  Print headers such that they
10011         are properly lined up with the printed counters.
10013 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
10015         PR tree-optimization/56559
10016         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
10017         check that it has only a single use.
10019 2013-03-07  Richard Biener  <rguenther@suse.de>
10021         * doc/invoke.texi (fwhole-program): Discourage use in combination
10022         with -flto.
10024 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
10026         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
10028         PR tree-optimization/56539
10029         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
10030         instead of GSI_CONTINUE_LINKING as last argument to
10031         force_gimple_operand_gsi.  Adjust function comment.
10033         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
10034         aarch64-cores.def.
10036         PR middle-end/56548
10037         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
10038         promoted mode, convert the result back to the original mode.
10040 2013-03-06  Richard Biener  <rguenther@suse.de>
10042         PR middle-end/56294
10043         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
10044         (insert_updated_phi_nodes_compare_uids): New function.
10045         (update_ssa): Sort symbols_to_rename after UID before
10046         traversing it to insert PHI nodes.
10048 2013-03-06  Richard Biener  <rguenther@suse.de>
10050         PR middle-end/50494
10051         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
10052         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
10054         Revert
10055         2013-02-13  Richard Biener  <rguenther@suse.de>
10057         PR lto/50494
10058         * varasm.c (output_constant_def_1): Get the decl representing
10059         the constant as argument.
10060         (output_constant_def): Wrap output_constant_def_1.
10061         (make_decl_rtl): Use output_constant_def_1 with the decl
10062         representing the constant.
10063         (build_constant_desc): Optionally re-use a decl already
10064         representing the constant.
10065         (tree_output_constant_def): Adjust.
10067 2013-03-06  Joey Ye  <joey.ye@arm.com>
10069         PR lto/50293
10070         * gcc.c (convert_white_space): New function.
10071         (main): Handles white space in function name.
10073 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
10075         PR target/56529
10076         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
10077         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
10078         to SH_DIV_CALL_TABLE for TARGET_SH2.
10079         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
10080         list.
10081         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
10082         call-table options.
10084 2013-03-05  Sterling Augustine  <saugustine@google.com>
10085             Cary Coutant  <ccoutant@google.com>
10087         PR debug/55364
10088         * dwarf2out.c (resolve_addr): Don't call
10089         remove_loc_list_addr_table_entries a second time for the same
10090         expression.
10092 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
10094         PR debug/56510
10095         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
10096         (avoid_complex_debug_insns): New function.
10097         (expand_debug_locations): Call it.
10099         PR rtl-optimization/56484
10100         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
10101         lifetimes of hard registers on small register class machines.
10103 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
10105         * config/microblaze/microblaze-protos.h: Rename
10106         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
10107         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
10108         fast_interrupt.
10109         (microblaze_fast_interrupt_function_p): New function.
10110         (microblaze_is_interrupt_handler): Rename to
10111         microblaze_is_interrupt_variant and add fast_interrupt check.
10112         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
10113         (save_restore_insns): Likewise.
10114         (compute_frame_size): Likewise.
10115         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
10116         (microblaze_globalize_label): Likewise.
10117         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
10118         * config/microblaze/microblaze.md: Use wrapper
10119         microblaze_is_interrupt_variant.
10121 2013-03-05  Kai Tietz  <ktietz@redhat.com>
10123         * sdbout.c (sdbout_one_type): Switch to current function's section
10124         supporting cold/hot.
10126 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
10128         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
10129         -mxl-reorder.
10131 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
10133         PR middle-end/56461
10134         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
10135         if VALGRIND_GET_VBITS is defined, temporarily make object
10136         memory all defined, and restore previous valgrind addressability
10137         and definability afterwards.  Free this_object at the end.
10139         PR middle-end/56461
10140         * lra.c (lra): Call lra_clear_live_ranges if live_p,
10141         right before calling lra_create_live_ranges, also call it
10142         when clearing live_p.  Only call lra_clear_live_ranges
10143         at the end if live_p.
10145         PR middle-end/56461
10146         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
10148 2013-03-05  Richard Biener  <rguenther@suse.de>
10150         PR tree-optimization/56521
10151         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
10152         value-id.
10154 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
10156         PR c++/55135
10157         * except.h (remove_unreachable_eh_regions): New prototype.
10158         * except.c (remove_eh_handler_splicer): New function, split out
10159         of remove_eh_handler.
10160         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
10161         warning about running it on many EH regions one at a time.
10162         (remove_unreachable_eh_regions_worker): New function, walk the
10163         EH tree in depth-first order and remove non-marked regions.
10164         (remove_unreachable_eh_regions): New function.
10165         * tree-eh.c (mark_reachable_handlers): New function, split out
10166         from remove_unreachable_handlers.
10167         (remove_unreachable_handlers): Use mark_reachable_handlers and
10168         remove_unreachable_eh_regions.
10169         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
10170         and remove_unreachable_eh_regions.
10172 2013-03-05  Richard Biener  <rguenther@suse.de>
10174         PR middle-end/56525
10175         * loop-init.c (fix_loop_structure): Remove loops in two stages,
10176         not freeing them until the end.
10178 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10180         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
10182 2013-03-05  Richard Biener  <rguenther@suse.de>
10184         PR tree-optimization/56270
10185         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
10186         of loads after scheduling an SLP instance.
10188 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
10190         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
10191         tic6x.exp.
10192         (check_gcc_parallelize): Run guality.exp as a separate job from
10193         vect.exp with unsorted.exp and $(dg_target_exps) separately from
10194         struct-layout-1.exp with stackalign.exp.
10196         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
10198         PR middle-end/56461
10199         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
10200         load_index sbitmap even if some bit in it isn't set.
10202         PR middle-end/56461
10203         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
10204         (discover_iteration_bound_by_body_walk): Change queues to
10205         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
10206         spelling in comment.  Call safe_push on queues[bound_index] directly.
10207         Release queues[queue_index] in every iteration unconditionally.
10208         Release bounds vector.
10210         PR middle-end/56461
10211         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
10212         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
10213         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
10214         inner_phis vector.
10216 2013-03-05  Richard Biener  <rguenther@suse.de>
10218         PR lto/56515
10219         * tree-inline.c (remap_blocks_to_null): New function.
10220         (expand_call_inline): When expanding a call stmt without
10221         an associated block inline remap all callee blocks to NULL.
10223 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
10225         PR rtl-optimization/56494
10226         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
10227         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
10228         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
10230         PR middle-end/56461
10231         * sel-sched-ir.c (free_sched_pools): Release
10232         succs_info_pool.stack[succs_info_pool.max_top] vectors too
10233         if succs_info_pool.max_top isn't -1.
10235         PR bootstrap/56509
10236         * opts.c (opts_obstack, opts_concat): Moved to...
10237         * opts-common.c (opts_obstack, opts_concat): ... here.
10239 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
10241         PR middle-end/56461
10242         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
10244 2013-03-04  Martin Jambor  <mjambor@suse.cz>
10246         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
10247         all appropriate places.
10249 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
10251         PR tree-optimization/56424
10252         * ipa-split.c (split_function): Do not set the RSO flag if result is
10253         not by reference and its type is a register type.
10255 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
10257         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
10258         (microblaze_legitimate_pic_operand): Likewise
10259         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
10260         new function microblaze_legitimate_pic_operand
10261         * config/microblaze/microblaze-protos.h
10262         (microblaze_legitimate_pic_operand): Declare.
10264 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10266         * config/microblaze/predicates.md (call_insn_simple_operand):
10267         New predicate for supported rtx code types.
10268         * config/microblaze/microblaze.md (call_internal1): Use
10269         call_insn_simple_operand predicate.
10271 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
10273         PR middle-end/56461
10274         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
10275         partitions.ordered_remove.
10277         PR middle-end/56461
10278         * tree-vect-stmts.c (vectorizable_conversion): Don't call
10279         vec_oprnds0.create (1) for modifier == NONE.
10281         PR middle-end/56461
10282         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
10283         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
10284         vec_oprnds1 right before pushing anything to it for
10285         scalar_shift_arg.
10287         PR middle-end/56461
10288         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
10289         set nbbs to 0 instead of having separate code path.
10290         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
10291         instead of false as last argument if returning NULL.
10293 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
10295         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
10296         the attribute is now called "target" instead of "option".
10297         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
10298         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
10299         attribute/pragma name for TARGET_OPTION_VALID_P and
10300         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
10301         * doc/tm.texi: Regenerated.
10303 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
10305         * config/microblaze/microblaze.c:
10306         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
10307         * config/microblaze/microblaze.h: Add -mxl-reorder to
10308         DRIVER_SELF_SPECS.
10309         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
10310         instructions emitted if TARGET_REORDER.
10311         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
10312         or 0 for -m/-mno case, but initialises as 2 to detect default use case
10313         separately.
10315 2013-03-01  Xinliang David Li  <davidxl@google.com>
10317         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
10318         walk length.
10320 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
10322         PR middle-end/56461
10323         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
10324         vector even when returning true.  Fix up function comment formatting.
10326         PR middle-end/56461
10327         * ira-build.c (ira_loop_nodes_count): New variable.
10328         (create_loop_tree_nodes): Initialize it.
10329         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
10331         PR middle-end/56461
10332         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
10333         method on dr_chain and result_chain.
10334         * tree-vect-stmts.c (vectorizable_store): Only call
10335         result_chain.create if j == 0.
10337         PR middle-end/56461
10338         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
10339         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
10340         before overwriting it.
10342 2013-03-01  Tobias Burnus  <burnus@net-b.de>
10344         * doc/extended.texi (C Extensions): Change order in @menu
10345         to match @node.
10346         (Other MIPS Built-in Functions): Move last MIPS entry before
10347         "picoChip Built-in Functions".
10348         (SH Built-in Functions): Move after RX Built-in Functions.
10349         * doc/gcc.texi (Introduction): Change order in @menu
10350         to match @node.
10351         * doc/md.texi (Constraints): Ditto.
10352         * gty.texi (Type Information): Ditto.
10353         (User-provided marking routines for template types): Make
10354         subsection.
10355         * doc/invoke.texi (AArch64 Options): Move before
10356         "Adapteva Epiphany Options".
10358 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
10359             Jakub Jelinek  <jakub@redhat.com>
10361         PR sanitizer/56454
10362         * asan.c (gate_asan): Lookup no_sanitize_address instead of
10363         no_address_safety_analysis attribute.
10364         * doc/extend.texi (no_address_safety_attribute): Rename to
10365         no_sanitize_address attribute, mention no_address_safety_analysis
10366         attribute as deprecated alias.
10368 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
10370         PR middle-end/56461
10371         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
10372         type to vec<vec<tree> > *.
10373         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
10374         to be vec<tree> instead of vec<tree> *, set vec_defs
10375         to vNULL and call vec_defs.create (number_of_vects), adjust other
10376         uses of vec_defs.
10377         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
10378         vectorizable_condition): Adjust vect_get_slp_defs callers.
10380 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
10382         * config/aarch64/aarch64.c
10383         (aarch64_float_const_representable): Remove unused variable.
10385 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
10387         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
10389 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
10391         * config/aarch64/aarch64-builtins.c
10392         (aarch64_init_simd_builtins): Make static.
10394 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
10396         * config/aarch64/aarch64.c
10397         (aarch64_simd_make_constant): Make static.
10399 2013-02-28  Martin Jambor  <mjambor@suse.cz>
10401         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
10402         with no initialization to the RHS of debug statements.
10404 2013-02-28  Martin Jambor  <mjambor@suse.cz>
10406         PR tree-optimization/56294
10407         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
10408         Adjust dumping.
10409         (get_access_replacement): Do not call create_access_replacement.
10410         Assert a replacement exists.
10411         (get_repl_default_def_ssa_name): Create the replacement declaration
10412         itself.
10414 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10416         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
10417         final_end_function.
10419 2013-02-28  Marek Polacek  <polacek@redhat.com>
10421         PR rtl-optimization/56466
10422         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
10423         if we're changing a loop.
10424         (peel_loops_completely): Likewise.
10426 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
10428         PR c++/55813
10429         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
10431 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
10433         PR target/56445
10434         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
10435         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
10436         INTX_FTYPE_FX, FX_FTYPE_INTX.
10437         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
10439 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
10441         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
10442         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
10443         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
10444         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
10445         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
10446         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
10447         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
10448         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
10449         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
10450         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
10451         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
10452         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
10453         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
10454         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
10455         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
10456         (avrxmega6): Increase max flash segments from 5 to 6.
10457         * config/avr/t-multilib: Regenerate.
10458         * config/avr/avr-tables.opt: Regenerate.
10459         * doc/avr-mmcu.texi: Regenerate.
10461 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
10463         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
10464         (avr_device_to_arch): Rename to avr_device_to_ld.
10465         (avr_device_to_as): New prototype.
10466         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
10467         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
10468         * config/avr/driver-avr.c (avr_device_to_as): New.
10469         (avr_device_to_arch): Rename to avr_device_to_ld.
10471 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
10473         PR middle-end/56461
10474         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
10475         method on dr_chain and result_chain.
10477         PR middle-end/56461
10478         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
10479         pointer_set_destroy on not_executed_last_iteration.
10481         PR middle-end/56461
10482         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
10484         PR middle-end/56461
10485         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
10486         FOR_EACH_DEFINED_FUNCTION when freeing state.
10488         PR middle-end/56461
10489         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
10490         pool_free.
10491         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
10492         overwriting it.
10494         PR middle-end/56461
10495         * ipa-cp.c (decide_whether_version_node): Call vec_free on
10496         known_aggs[i].items and release known_aggs vector.
10498         PR middle-end/56461
10499         * ipa-reference.c (propagate): Free node_info even for alias nodes.
10501 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10503         * config/microblaze/microblaze.c (microblaze_emit_compare):
10504         Use xor for EQ/NE comparisions.
10505         * config/microblaze/microblaze.md (cstoresf4): Add constraints
10506         (cbranchsf4): Adjust operator to comparison_operator.
10508 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
10510         PR middle-end/56461
10511         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
10512         vector.
10513         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
10514         vec_safe_push, always update *slot.
10515         (redirect_edge_var_map_clear): Use vec_free.
10516         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
10517         (free_var_map_entry): Use vec_free.
10518         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
10519         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
10521 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
10523         PR middle-end/45472
10524         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
10525         when the may_trap_p bit of the exprs being merged differs.
10526         Reorder tests for speculativeness in the logical and operator.
10528 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
10530         * incpath.c (add_standard_paths): Use reconcat instead of concat
10531         where appropriate and avoid leaking memory.
10533         * opts.h: Include obstack.h.
10534         (opts_concat): New prototype.
10535         (opts_obstack): New declaration.
10536         * opts.c (opts_concat): New function.
10537         (opts_obstack): New variable.
10538         (init_options_struct): Call gcc_init_obstack on opts_obstack.
10539         (finish_options): Use opts_concat instead of concat
10540         and XOBNEWVEC instead of XNEWVEC.
10541         * opts-common.c (generate_canonical_option, decode_cmdline_option,
10542         generate_option): Likewise.
10543         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
10544         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
10546         PR target/56455
10547         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
10548         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
10550 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
10552         PR middle-end/56461
10553         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
10555 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
10557         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
10558         (arm_block_move_unaligned_straight): Likewise.
10559         (arm_adjust_block_mem): Likewise.
10561 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
10563         PR target/48901
10564         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
10565         temp, cond and label.
10566         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
10568         PR target/52500
10569         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
10570         * config/c6x/c6x.h (dbx_register_map): Update declaration.
10572         PR target/52501
10573         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
10574         of prologue/epilogue functions.
10576         PR target/52550
10577         * config/tilegx/tilegx.c (tilegx_expand_prologue):
10578         Remove unused variable cfa_offset.
10579         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
10581         PR target/54639
10582         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
10583         type promotion to unsigned.
10585         PR target/54640
10586         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
10587         for HOST_WIDE_INT of 32 bit / same size as int.
10588         (arm_block_move_unaligned_straight): Likewise.
10589         (arm_adjust_block_mem): Likewise.
10591         PR target/54662
10592         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
10593         ALL_CFLAGS.
10595 2013-02-26  Marek Polacek  <polacek@redhat.com>
10597         PR tree-optimization/56426
10598         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
10600 2013-02-26  Richard Biener  <rguenther@suse.de>
10602         PR target/56444
10603         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
10604         unused variable loops.
10606 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
10608         PR tree-optimization/56448
10609         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
10610         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
10611         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
10612         later operands of the references, or even first operand for
10613         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
10615         PR tree-optimization/56443
10616         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
10617         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
10618         to type_for_mode langhook.
10620 2013-02-25  Matt Turner  <mattst88@gmail.com>
10622         * doc/invoke.texi: Document r4700.
10624 2013-02-25  Richard Biener  <rguenther@suse.de>
10626         PR tree-optimization/56175
10627         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
10628         split out from ...
10629         (simplify_bitwise_binary): ... here.  Also guard the conversion
10630         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
10632 2013-02-25  Catherine Moore  <clm@codesourcery.com>
10634         Revert:
10635         2013-02-24  Catherine Moore  <clm@codesourcery.com>
10636             Maciej W. Rozycki  <macro@codesourcery.com>
10637             Tom de Vries  <tom@codesourcery.com>
10638             Nathan Sidwell  <nathan@codesourcery.com>
10639             Iain Sandoe  <iain@codesourcery.com>
10640             Nathan Froyd  <froydnj@codesourcery.com>
10641             Chao-ying Fu  <fu@mips.com>
10643         * doc/extend.texi: (micromips, nomicromips, nocompression):
10644         Document new function attributes.
10645         * doc/invoke.texi (minterlink-compressed, mmicromips,
10646         m14k, m14ke, m14kec): Document new options.
10647         (minterlink-mips16): Update documentation.
10648         * doc/md.texi (ZC, ZD): Document new constraints.
10649         * configure.ac (gcc_cv_as_micromips): Check if linker
10650         supports the .set micromips directive.
10651         * configure: Regenerate.
10652         * config.in: Regenerate.
10653         * config/mips/mips-tables.opt: Regenerate.
10654         * config/mips/micromips.md: New file.
10655         * constraints.md (ZC, AD): New constraints.
10656         * config/mips/predicates.md (movep_src_register): New predicate.
10657         (movep_src_operand): New predicate.
10658         (non_volatile_mem_operand): New predicate.
10659         * config/mips/mips.md (multimem): New type.
10660         (length): Differentiate between 17-bit and 18-bit branch offsets.
10661         (MOVEP1, MOVEP2): New mode iterator.
10662         (mov_<load>l): Use ZC constraint.
10663         (mov_<load>r): Likewise.
10664         (mov_<store>l): Likewise.
10665         (mov_<store>r): Likewise.
10666         (*branch_equality<mode>_inverted): Add microMIPS support.
10667         (*branch_equality<mode>): Likewise.
10668         (*jump_absolute): Likewise.
10669         (indirect_jump_<mode>): Likewise.
10670         (tablejump_<mode>): Likewise.
10671         (<optab>_internal): Likewise.
10672         (sibcall_internal): Likewise.
10673         (sibcall_value_internal): Likewise.
10674         (prefetch): Use constraint ZD.
10675         * config/mips/mips.opt (minterlink-compressed): New option.
10676         (minterlink-mips16): Now an alias for minterlink-compressed.
10677         (mmicromips): New option.
10678         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
10679         (compare_and_swap_12): Likewise.
10680         (sync_add<mode>): Likewise.
10681         (sync_<optab>_12): Likewise.
10682         (sync_old_<optab>_12): Likewise.
10683         (sync_new_<optab>_12): Likewise.
10684         (sync_nand_12): Likewise.
10685         (sync_old_nand_12): Likewise.
10686         (sync_new_nand_12): Likewise.
10687         (sync_sub<mode>): Likewise.
10688         (sync_old_add<mode>): Likewise.
10689         (sync_old_sub<mode>): Likewise.
10690         (sync_new_add<mode>): Likewise.
10691         (sync_new_sub<mode>): Likewise.
10692         (sync_<optab><mode>): Likewise.
10693         (sync_old_<optab><mode>): Likewise.
10694         (sync_new_<optab><mode>): Likewise.
10695         (sync_nand<mode>): Likewise.
10696         (sync_old_nand<mode>): Likewise.
10697         (sync_new_nand<mode>): Likewise.
10698         (sync_lock_test_and_set<mode>): Likewise.
10699         (test_and_set_12): Likewise.
10700         (atomic_compare_and_swap<mode>): Likewise.
10701         (atomic_exchange<mode>_llsc): Likewise.
10702         (atomic_fetch_add<mode>_llsc): Likewise.
10703         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
10704         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
10705         (umips_save_restore_pattern_p): Likewise.
10706         (umips_load_store_pair_p): Likewise.
10707         (umips_output_load_store_pair): Likewise.
10708         (umips_movep_target_p): Likewise.
10709         (umips_12bit_offset_address_p): Likewise.
10710         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
10711         (mips_base_mips16): Rename this...
10712         (mips_base_compression_flags): ...to this. Update all uses.
10713         (mips_attribute_table): Add micromips, nomicromips and nocompression.
10714         (mips_mips16_decl_p): Delete.
10715         (mips_nomips16_decl_p): Delete.
10716         (mips_get_compress_on_flags): New function.
10717         (mips_get_compress_off_flags): New function.
10718         (mips_get_compress_mode): New function.
10719         (mips_get_compress_on_name): New function.
10720         (mips_get_compress_off_name): New function.
10721         (mips_insert_attributes): Support multiple compression types.
10722         (mips_merge_decl_attributes): Likewise.
10723         (umips_12bit_offset_address_p): New function.
10724         (mips_start_function_definition): Emit .set micromips directive.
10725         (mips_call_may_need_jalx_p): New function.
10726         (mips_function_ok_for_sibcall): Add microMIPS support.
10727         (mips_print_operand_punctuation): Support short delay slots and
10728         compact jumps.
10729         (umips_swm_mask, umips_swm_encoding): New.
10730         (umips_build_save_restore): New function.
10731         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
10732         (was_mips16_p): Remove.
10733         (old_compression_mode): New.
10734         (mips_set_compression_mode): New function.
10735         (mips_set_current_function): Add microMIPS support.
10736         (mips_option_override): Likewise.
10737         (umips_save_restore_pattern_p): New function.
10738         (umips_output_save_restore): New function.
10739         (umips_load_store_pair_p_1): New function.
10740         (umips_load_store_pair_p): New function.
10741         (umips_output_load_store_pair_1): New function.
10742         (umips_output_load_store_pair): New function.
10743         (umips_movep_target_p) New function.
10744         (mips_prepare_pch_save): Add microMIPS support.
10745         * config/mips/mips.h (TARGET_COMPRESSION): New.
10746         (TARGET_CPU_CPP_BUILTINS): Update macro
10747         to use new compression flags and to support microMIPS.
10748         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
10749         (MIPS_ARCH_FLOAT_SPEC): Likewise.
10750         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
10751         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
10752         (ASM_SPEC): Support mmicromips and mno-micromips.
10753         (M16STORE_REG_P): New macro.
10754         (MIPS_CALL): Support TARGET_MICROMIPS.
10755         (MICROMIPS_J): New macro.
10756         (mips_base_mips16): Rename this...
10757         (mips_base_compression_flags): ...to this.
10758         (UMIPS_12BIT_OFFSET_P): New macro.
10759         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10760         (MULTILIB_DIRNAMES): Likewise.
10762 2013-02-25  Tom de Vries  <tom@codesourcery.com>
10764         PR rtl-optimization/56131
10765         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
10766         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
10767         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
10769 2013-02-25  Tobias Burnus  <burnus@net-b.de>
10771         * doc/invoke.texi (-fsanitize=): Move from optimization
10772         to debugging options.
10774 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
10776         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
10778 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
10779             Alexander Monakov  <amonakov@ispras.ru>
10781         PR middle-end/56077
10782         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
10783         flush pending lists also on non-jumps.  Adjust comment.
10785 2013-02-24  Catherine Moore  <clm@codesourcery.com>
10786             Maciej W. Rozycki  <macro@codesourcery.com>
10787             Tom de Vries  <tom@codesourcery.com>
10788             Nathan Sidwell  <nathan@codesourcery.com>
10789             Iain Sandoe  <iain@codesourcery.com>
10790             Nathan Froyd  <froydnj@codesourcery.com>
10791             Chao-ying Fu  <fu@mips.com>
10793         * doc/extend.texi: (micromips, nomicromips, nocompression):
10794         Document new function attributes.
10795         * doc/invoke.texi (minterlink-compressed, mmicromips,
10796         m14k, m14ke, m14kec): Document new options.
10797         (minterlink-mips16): Update documentation.
10798         * doc/md.texi (ZC, ZD): Document new constraints.
10799         * configure.ac (gcc_cv_as_micromips): Check if linker
10800         supports the .set micromips directive.
10801         * configure: Regenerate.
10802         * config.in: Regenerate.
10803         * config/mips/mips-tables.opt: Regenerate.
10804         * config/mips/micromips.md: New file.
10805         * constraints.md (ZC, AD): New constraints.
10806         * config/mips/predicates.md (movep_src_register): New predicate.
10807         (movep_src_operand): New predicate.
10808         (non_volatile_mem_operand): New predicate.
10809         * config/mips/mips.md (multimem): New type.
10810         (length): Differentiate between 17-bit and 18-bit branch offsets.
10811         (MOVEP1, MOVEP2): New mode iterator.
10812         (mov_<load>l): Use ZC constraint.
10813         (mov_<load>r): Likewise.
10814         (mov_<store>l): Likewise.
10815         (mov_<store>r): Likewise.
10816         (*branch_equality<mode>_inverted): Add microMIPS support.
10817         (*branch_equality<mode>): Likewise.
10818         (*jump_absolute): Likewise.
10819         (indirect_jump_<mode>): Likewise.
10820         (tablejump_<mode>): Likewise.
10821         (<optab>_internal): Likewise.
10822         (sibcall_internal): Likewise.
10823         (sibcall_value_internal): Likewise.
10824         (prefetch): Use constraint ZD.
10825         * config/mips/mips.opt (minterlink-compressed): New option.
10826         (minterlink-mips16): Now an alias for minterlink-compressed.
10827         (mmicromips): New option.
10828         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
10829         (compare_and_swap_12): Likewise.
10830         (sync_add<mode>): Likewise.
10831         (sync_<optab>_12): Likewise.
10832         (sync_old_<optab>_12): Likewise.
10833         (sync_new_<optab>_12): Likewise.
10834         (sync_nand_12): Likewise.
10835         (sync_old_nand_12): Likewise.
10836         (sync_new_nand_12): Likewise.
10837         (sync_sub<mode>): Likewise.
10838         (sync_old_add<mode>): Likewise.
10839         (sync_old_sub<mode>): Likewise.
10840         (sync_new_add<mode>): Likewise.
10841         (sync_new_sub<mode>): Likewise.
10842         (sync_<optab><mode>): Likewise.
10843         (sync_old_<optab><mode>): Likewise.
10844         (sync_new_<optab><mode>): Likewise.
10845         (sync_nand<mode>): Likewise.
10846         (sync_old_nand<mode>): Likewise.
10847         (sync_new_nand<mode>): Likewise.
10848         (sync_lock_test_and_set<mode>): Likewise.
10849         (test_and_set_12): Likewise.
10850         (atomic_compare_and_swap<mode>): Likewise.
10851         (atomic_exchange<mode>_llsc): Likewise.
10852         (atomic_fetch_add<mode>_llsc): Likewise.
10853         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
10854         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
10855         (umips_save_restore_pattern_p): Likewise.
10856         (umips_load_store_pair_p): Likewise.
10857         (umips_output_load_store_pair): Likewise.
10858         (umips_movep_target_p): Likewise.
10859         (umips_12bit_offset_address_p): Likewise.
10860         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
10861         (mips_base_mips16): Rename this...
10862         (mips_base_compression_flags): ...to this. Update all uses.
10863         (mips_attribute_table): Add micromips, nomicromips and nocompression.
10864         (mips_mips16_decl_p): Delete.
10865         (mips_nomips16_decl_p): Delete.
10866         (mips_get_compress_on_flags): New function.
10867         (mips_get_compress_off_flags): New function.
10868         (mips_get_compress_mode): New function.
10869         (mips_get_compress_on_name): New function.
10870         (mips_get_compress_off_name): New function.
10871         (mips_insert_attributes): Support multiple compression types.
10872         (mips_merge_decl_attributes): Likewise.
10873         (umips_12bit_offset_address_p): New function.
10874         (mips_start_function_definition): Emit .set micromips directive.
10875         (mips_call_may_need_jalx_p): New function.
10876         (mips_function_ok_for_sibcall): Add microMIPS support.
10877         (mips_print_operand_punctuation): Support short delay slots and
10878         compact jumps.
10879         (umips_swm_mask, umips_swm_encoding): New.
10880         (umips_build_save_restore): New function.
10881         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
10882         (was_mips16_p): Remove.
10883         (old_compression_mode): New.
10884         (mips_set_compression_mode): New function.
10885         (mips_set_current_function): Add microMIPS support.
10886         (mips_option_override): Likewise.
10887         (umips_save_restore_pattern_p): New function.
10888         (umips_output_save_restore): New function.
10889         (umips_load_store_pair_p_1): New function.
10890         (umips_load_store_pair_p): New function.
10891         (umips_output_load_store_pair_1): New function.
10892         (umips_output_load_store_pair): New function.
10893         (umips_movep_target_p) New function.
10894         (mips_prepare_pch_save): Add microMIPS support.
10895         * config/mips/mips.h (TARGET_COMPRESSION): New.
10896         (TARGET_CPU_CPP_BUILTINS): Update macro
10897         to use new compression flags and to support microMIPS.
10898         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
10899         (MIPS_ARCH_FLOAT_SPEC): Likewise.
10900         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
10901         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
10902         (ASM_SPEC): Support mmicromips and mno-micromips.
10903         (M16STORE_REG_P): New macro.
10904         (MIPS_CALL): Support TARGET_MICROMIPS.
10905         (MICROMIPS_J): New macro.
10906         (mips_base_mips16): Rename this...
10907         (mips_base_compression_flags): ...to this.
10908         (UMIPS_12BIT_OFFSET_P): New macro.
10909         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10910         (MULTILIB_DIRNAMES): Likewise.
10912 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
10914         PR target/52555
10915         * target-globals.c (save_target_globals): For init_reg_sets and
10916         target_reinit remporarily set this_fn_optabs to this_target_optabs.
10918 2013-02-22  James Grennahlgh  <james.greenhalgh@arm.com>
10920         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
10921         * config/aarch64/t-aarch64
10922         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
10924 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
10926         PR inline-asm/56148
10927         * lra-constraints.c (process_alt_operands): Reload operand
10928         conflicting with earlier clobber only if no more other conflicting
10929         operands.
10931 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
10933         PR sanitizer/56393
10934         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
10935         if not linking a shared library.
10937 2013-02-22  Seth LaForge  <sethml@google.com>
10939         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
10941 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
10943         * config/arm/arm.md (split for extendsidi): Update condition.
10944         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
10945         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
10946         (qhs_zextenddi_cstr): Likewise.
10948 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
10950         PR middle-end/56420
10951         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
10952         avoid signed wrapping.
10953         (expand_mult): Handle properly multiplication by
10954         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
10955         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
10956         in the compiler if coeff is HOST_WIDE_INT_MIN.
10957         (expand_divmod): Don't make ext_op1 static, change it's type to
10958         uhwi.  Avoid undefined behavior in -INTVAL (op1).
10960         PR rtl-optimization/50339
10961         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
10962         field.
10963         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
10964         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
10965         into splitting_ashiftrt field.
10966         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
10967         ASHIFTRT.
10968         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
10969         choices.
10971 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
10973         PR middle-end/56108
10974         * trans-mem.c (execute_tm_mark): Do not expand transactions that
10975         are sure to go irrevocable.
10977 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
10979         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
10980         scalars are valid operands.
10982 2013-02-21  Martin Jambor  <mjambor@suse.cz>
10984         PR tree-optimization/56310
10985         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
10986         only matching indices and non-negative final offsets.
10987         (intersect_aggregates_with_edge): Pass src_idx to
10988         agg_replacements_to_vector.  Pass src_idx insstead of index to
10989         intersect_with_agg_replacements.
10991 2013-02-21  Martin Jambor  <mjambor@suse.cz>
10993         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
10994         instead of hard-wired defaults.
10996 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
10998         * doc/invoke.texi (MIPS Options): Update documentation of the
10999         floating-point multiply-accumulate instruction restrictions.
11001 2013-02-21  Kostya Serebryany  <kcc@google.com>
11003         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
11004         asan_shadow_offset on x86_64 linux.
11006 2013-02-21  Richard Biener  <rguenther@suse.de>
11008         PR tree-optimization/56415
11009         Revert
11010         2013-02-11  Richard Biener  <rguenther@suse.de>
11012         PR tree-optimization/56273
11013         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
11014         first VRP run.
11016 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
11018         PR bootstrap/56258
11019         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
11020         instead of @itemx.
11022         PR inline-asm/56405
11023         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
11024         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
11026 2013-02-20  Jan Hubicka  <jh@suse.cz>
11028         PR tree-optimization/56265
11029         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
11030         when target is referenced for first time.
11032 2013-02-20  Richard Biener  <rguenther@suse.de>
11034         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
11035         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
11036         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
11037         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
11038         not return anything.
11039         (rename_ssa_copies): Do not remove unused locals.
11040         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
11041         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
11042         * passes.c (execute_function_todo): Do not schedule unused locals
11043         removal if cleanup_tree_cfg did something.
11044         * tree-ssa-live.c (remove_unused_locals): Dump statistics
11045         about the number of removed locals.
11047 2013-02-20  Richard Biener  <rguenther@suse.de>
11049         PR tree-optimization/56398
11050         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
11052 2013-02-20  Martin Jambor  <mjambor@suse.cz>
11054         PR tree-optimization/55334
11055         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
11056         restricted pointers to arrays.
11058 2013-02-20  Richard Biener  <rguenther@suse.de>
11059             Jakub Jelinek  <jakub@redhat.com>
11061         PR tree-optimization/56396
11062         * tree-ssa-ccp.c (n_const_val): New static variable.
11063         (get_value): Return NULL for SSA names we don't have a lattice
11064         entry for.
11065         (ccp_initialize): Initialize n_const_val.
11066         * tree-ssa-copy.c (n_copy_of): New static variable.
11067         (init_copy_prop): Initialize n_copy_of.
11068         (get_value): Return NULL_TREE for SSA names we don't have a
11069         lattice entry for.
11071 2013-02-20  Martin Jambor  <mjambor@suse.cz>
11073         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
11075 2013-02-20  Richard Biener  <rguenther@suse.de>
11077         * genpreds.c (write_lookup_constraint): Do not compare first
11078         letter of the constraint again.
11080 2013-02-20  Richard Biener  <rguenther@suse.de>
11082         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
11083         and ceil_log2.
11084         (get_use_iv_cost): Terminate hashtable walk when coming across
11085         an empty entry.
11087 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
11089         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
11090         reassociation for avx2 targets.
11092 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11094         * config/microblaze/microblaze.c: microblaze_has_clz = 0
11095         Add version check for v8.10.a to enable microblaze_has_clz
11096         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
11097         version and TARGET_PATTERN_COMPARE check
11098         * config/microblaze/microblaze.md: New clzsi2 instruction
11100 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11102         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
11103         function before branching.
11105 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
11107         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
11108         DUMP_INSN_RTX_UID.
11109         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
11111 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
11113         PR middle-end/55889
11114         * sel-sched.c: Include ira.h.
11115         (implicit_clobber_conflict_p): New function.
11116         (moveup_expr): Use it.
11117         * Makefile.in (sel-sched.o): Depend on ira.h.
11119 2013-02-19  Richard Biener  <rguenther@suse.de>
11121         PR tree-optimization/56384
11122         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
11123         (vn_hash_type): Split out from ...
11124         (vn_hash_constant_with_type): ... here.
11125         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
11126         (vn_phi_eq): Compare types from vn_phi_s structure.
11127         (vn_phi_lookup): Populate vn_phi_s type.
11128         (vn_phi_insert): Likewise.
11130 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
11132         PR tree-optimization/56350
11133         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
11134         if haven't found reduction or nested cycle operand, rather than
11135         asserting we must find it.
11137         PR tree-optimization/56381
11138         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
11139         to fold_build3.
11141 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
11142             Jakub Jelinek  <jakub@redhat.com>
11144         PR target/52555
11145         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
11146         (swap_optab_enable): Same.
11147         (init_all_optabs): Use argument instead of global.
11148         * tree.h (struct tree_optimization_option): New field target_optabs.
11149         * expr.h (init_all_optabs): Add argument to prototype.
11150         (TREE_OPTIMIZATION_OPTABS): New.
11151         (save_optabs_if_changed): Protoize.
11152         * optabs.h: Declare this_fn_optabs.
11153         * optabs.c (save_optabs_if_changed): New.
11154         Declare this_fn_optabs.
11155         (init_optabs): Add argument to init_all_optabs() call.
11156         * function.c (invoke_set_current_function_hook): Handle per
11157         function optabs.
11158         * function.h (struct function): New field optabs.
11159         * config/mips/mips.c (mips_set_mips16_mode): Handle when
11160         optimization_current_node has changed.
11161         * target-globals.h (save_target_globals_default_opts): Protoize.
11162         * target-globals.c (save_target_globals_default_opts): New.
11164 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11166         PR target/56347
11167         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
11168         registers %fr12 and %fr12R as call used.
11170         PR target/56214
11171         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
11172         and HImode, require all displacements to be an integer multiple of
11173         their mode size.
11174         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
11175         only allow QImode and HImode when reload is in progress and strict is
11176         true.  Likewise for symbolic addresses.  Use base14_operand to check
11177         displacements in REG+BASE addresses.
11179 2013-02-18  Richard Biener  <rguenther@suse.de>
11181         PR tree-optimization/56366
11182         * tree-vect-loop.c (get_initial_def_for_induction): Properly
11183         handle sign-conversion of outer-loop initial induction value.
11185 2013-02-18  Richard Biener  <rguenther@suse.de>
11187         PR middle-end/56349
11188         * cfghooks.c (merge_blocks): If we merge a latch into another
11189         block adjust references to it.
11190         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
11191         (verify_loop_structure): Verify that a recorded latch is in fact
11192         a latch.
11194 2013-02-18  Richard Biener  <rguenther@suse.de>
11196         PR tree-optimization/56321
11197         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
11198         order SSA name release and virtual operand unlinking.
11200 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11202         * config/microblaze/microblaze.md (save_stack_block): Define.
11203         (restore_stack_block): Likewise.
11205 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11207         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
11208         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
11209         * config/microblaze/microblaze.c (microblaze_option_override):
11210         Bail out early for PIC modes when target does not support PIC.
11212 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11214         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
11215         Replace with a microblaze version.
11216         (microblaze_trampoline_init): Adapt for microblaze.
11217         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
11218         microblaze.
11220 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
11221             Dodji Seketeli  <dodji@redhat.com>
11223         PR asan/56330
11224         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
11225         (instrument_mem_region_access): Do not forget to always put
11226         instrumentation of the of 'base' and 'base + len' in a "if (len !=
11227         0) statement, even for cases where either 'base' or 'base + len'
11228         are not instrumented -- because they have been previously
11229         instrumented.  Simplify the logic by putting all the statements
11230         instrument 'base + len' inside a sequence, and then insert that
11231         sequence right before the current insertion point.  Then, to
11232         instrument 'base + len', just get an iterator on that statement.
11233         And do not forget to update the pointer to iterator the function
11234         received as argument.
11236 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
11238         PR rtl-optimization/56348
11239         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
11241 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
11243         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
11244         (clean_graph_dump_file): Pass base to start_graph_dump.
11246 2013-02-14  Richard Henderson  <rth@redhat.com>
11248         PR target/55941
11249         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
11251 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
11253         * collect2-aix.h: Define F_LOADONLY.
11255 2013-02-14  Richard Biener  <rguenther@suse.de>
11257         PR lto/50494
11258         * varasm.c (output_constant_def_1): Get the decl representing
11259         the constant as argument.
11260         (output_constant_def): Wrap output_constant_def_1.
11261         (make_decl_rtl): Use output_constant_def_1 with the decl
11262         representing the constant.
11263         (build_constant_desc): Optionally re-use a decl already
11264         representing the constant.
11265         (tree_output_constant_def): Adjust.
11267 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
11269         Fix an asan crash
11270         * asan.c (instrument_builtin_call):  Really put the length of the
11271         second source argument into src1_len.
11273 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
11275         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
11276         argument.  If it is false, don't create edge from then_bb to
11277         fallthru_bb.
11278         (insert_if_then_before_iter): Pass true to it.
11279         (build_check_stmt): Pass false to it.
11280         (transform_statements): Flush hash table only on extended basic
11281         block boundaries, rather than at the beginning of every bb.
11282         Don't flush hash table on nonfreeing_call_p calls.
11283         * tree-flow.h (nonfreeing_call_p): New prototype.
11284         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
11286 2013-02-13  David S. Miller  <davem@davemloft.net>
11288         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
11290 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
11292         PR target/56184
11293         * ira.c (max_regno_before_ira): Move from ...
11294         (ira): ... here.
11295         (fix_reg_equiv_init): Use max_regno_before_ira instead of
11296         vec_safe_length.
11298 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
11300         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
11302 2013-02-13  Richard Biener  <rguenther@suse.de>
11304         PR lto/56295
11305         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
11306         globals in MEM_REFs.
11308 2013-02-13  Richard Biener  <rguenther@suse.de>
11310         * loop-init.c (loop_optimizer_init): Clear loop state when
11311         re-initializing preserved loops.
11312         * loop-unswitch.c (unswitch_single_loop): Return whether
11313         we unswitched the loop.  Do not verify loop state here.
11314         (unswitch_loops): When we unswitched a loop discover new loops.
11316 2013-02-13  Kostya Serebryany  <kcc@google.com>
11318         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
11319         on x86_64 linux.
11320         * sanitizer.def: Rename __asan_init to __asan_init_v1.
11322 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
11324         Avoid instrumenting duplicated memory access in the same basic block
11325         * Makefile.in (asan.o): Add new dependency on hash-table.h
11326         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
11327         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
11328         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
11329         (free_mem_ref_resources, has_mem_ref_been_instrumented)
11330         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
11331         (get_mem_ref_of_assignment): New functions.
11332         (get_mem_refs_of_builtin_call): Extract from
11333         instrument_builtin_call and tweak a little bit to make it fit with
11334         the new signature.
11335         (instrument_builtin_call): Use the new
11336         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
11337         of is_gimple_builtin_call.
11338         (instrument_derefs, instrument_mem_region_access): Insert the
11339         instrumented memory reference into the hash table.
11340         (maybe_instrument_assignment): Renamed instrument_assignment into
11341         this, and change it to advance the iterator when instrumentation
11342         actually happened and return true in that case.  This makes it
11343         homogeneous with maybe_instrument_assignment, and thus give a
11344         chance to callers to be more 'regular'.
11345         (transform_statements): Clear the memory reference hash table
11346         whenever we enter a new BB, when we cross a function call, or when
11347         we are done transforming statements.  Use
11348         maybe_instrument_assignment instead of instrumentation.  No more
11349         need to special case maybe_instrument_assignment and advance the
11350         iterator after calling it; it's now handled just like
11351         maybe_instrument_call.  Update comment.
11353 2013-02-13  Richard Biener  <rguenther@suse.de>
11355         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
11356         Fix loop discovery code.
11358 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
11360         PR inline-asm/56148
11361         * lra-constraints.c (process_alt_operands): Match early clobber
11362         operand with itself.  Check conflicts with earlyclobber only if
11363         the operand is not reloaded.  Prefer to reload conflicting operand
11364         if earlyclobber and matching operands are the same.
11366 2013-02-12  Richard Biener  <rguenther@suse.de>
11368         PR lto/56297
11369         * lto-streamer-out.c (write_symbol): Do not output symbols
11370         for hard register variables.
11372 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
11374         PR target/54222
11375         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
11376         (umulsidi3_insn, mulsidi3_insn): New insns.
11378 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
11380         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
11381         (struct tune_params): Add vec_costs field.
11382         * config/arm/arm.c (arm_builtin_vectorization_cost)
11383         (arm_add_stmt_cost): New functions.
11384         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
11385         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
11386         (arm_default_vec_cost): New struct of type cpu_vec_costs.
11387         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
11388         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
11389         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
11390         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
11392 2013-02-12  Richard Biener  <rguenther@suse.de>
11394         PR lto/56295
11395         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
11396         decls again if possible.
11398 2013-02-12  Richard Biener  <rguenther@suse.de>
11400         PR middle-end/56288
11401         * tree-ssa.c (verify_ssa_name): Fix check, move
11402         SSA_NAME_IN_FREE_LIST check up.
11404 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
11405             Steven Bosscher   <steven@gcc.gnu.org>
11407         PR rtl-optimization/56151
11408         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
11409         equal to op0 or op1, and last_insn pattern is CODE operation
11410         with MEM dest and one of the operands matches that MEM.
11412 2013-02-11  Sriraman Tallam  <tmsriramgoogle.com>
11414         * doc/extend.texi: Document Function Multiversioning and "default"
11415         parameter string to target attribute.
11416         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
11417         target attribute parameter is "default".
11418         (ix86_compare_version_priority): Remove checks for target attribute.
11419         (ix86_mangle_function_version_assembler_name): Change error to sorry.
11420         Remove check for target attribute equal to NULL. Add assert.
11421         (ix86_generate_version_dispatcher_body): Change error to sorry.
11423 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
11424             Jack Howarth  <howarth@bromo.med.uc.edu>
11425             Patrick Marlier  <patrick.marlier@gmail.com>
11427         PR libitm/55693
11428         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
11429         define ENDFILE_SPEC as TM_DESTRUCTOR.
11430         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
11432 2013-02-11  Alexander Potapenko  <glider@google.com>
11433             Jack Howarth  <howarth@bromo.med.uc.edu>
11434             Jakub Jelinek  <jakub@redhat.com>
11436         PR sanitizer/55617
11437         * config/darwin.c (cdtor_record): Rename ctor_record.
11438         (sort_cdtor_records): Rename sort_ctor_records.
11439         (finalize_dtors): New routine to sort destructors by
11440         priority before use in assemble_integer.
11441         (machopic_asm_out_destructor): Use finalize_dtors if needed.
11443 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
11445         PR rtl-optimization/56275
11446         * simplify-rtx.c (avoid_constant_pool_reference): Check that
11447         offset is non-negative and less than cmode size before
11448         calling simplify_subreg.
11450 2013-02-11  Richard Biener  <rguenther@suse.de>
11452         PR tree-optimization/56264
11453         * cfgloop.h (fix_loop_structure): Adjust prototype.
11454         * loop-init.c (fix_loop_structure): Return the number of
11455         newly discovered loops.
11456         * tree-cfgcleanup.c (repair_loop_structures): When new loops
11457         are discovered, do a full loop-closed SSA rewrite.
11459 2013-02-11  Richard Biener  <rguenther@suse.de>
11461         PR tree-optimization/56273
11462         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
11463         first VRP run.
11464         (check_array_ref): Fix missing newline in dumps.
11465         (search_for_addr_array): Likewise.
11467 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
11469         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
11471 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
11473         PR target/56256
11474         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
11476 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
11478         PR rtl-optimization/56246
11479         * lra-constraints.c (simplify_operand_subreg): Try to reuse
11480         reload pseudo.
11481         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
11482         constraints are satisfied.
11484 2013-02-08  Jeff Law  <law@redhat.com>
11486         PR debug/53948
11487         * emit-rtl.c (reg_is_parm_p): New function.
11488         * regs.h (reg_is_parm_p): New prototype.
11489         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
11490         callee-clobbered registers.
11492 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
11494         PR target/56043
11495         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
11496         If there is no implicit builtin declaration, just return NULL.
11498 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
11500         * config/i386/sse.md (FMAMODEM): New mode iterator.
11501         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
11502         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
11504 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
11506         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
11507         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
11508         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
11510 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11512         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
11513         (microblaze*-*-elf): Likewise.
11514         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
11515         LINK_SPEC.
11516         * config/microblaze/microblaze-c.c: Add builtin defines for
11517         _LITTLE_ENDIAN and _BIG_ENDIAN.
11518         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
11519         add to TARGET_DEFAULT flags.
11520         Expand ASM_SPEC and LINK_SPEC.
11521         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
11522         * config/microblaze/microblaze.md: Update extendsidi2 and
11523         movdi_internal instructions to use low-order / high-order reg
11524         print_operands.
11525         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
11526         options and inversemask / mask of LITTLE_ENDIAN.
11527         * config/microblaze/t-microblaze: Expand multilib options to
11528         include mlittle-endian (le) and update exceptions patterns.
11530 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
11532         PR rtl-optimization/56195
11533         * lra-constraints.c (get_reload_reg): Don't reuse regs
11534         if they have smaller mode than requested, if they have
11535         wider mode than requested, try to return a SUBREG.
11537         PR tree-optimization/56250
11538         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
11539         if type is unsigned and code isn't MULT_EXPR.
11541 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
11543         PR tree-optimization/56064
11544         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
11545         bits according to mode.
11546         * fixed-value.h (fixed_from_double_int)
11547         (const_fixed_from_double_int): Adjust comments.
11549 2013-02-08  Richard Biener  <rguenther@suse.de>
11551         PR lto/56231
11552         * lto-streamer.h (struct data_in): Remove current_file, current_line
11553         and current_col members.
11554         * lto-streamer-out.c (lto_output_location): Stream changed bits
11555         en-block for efficiency.
11556         * lto-streamer-in.c (clear_line_info): Remove.
11557         (lto_input_location): Cache current file, line and column
11558         globally via local statics.  Read changed bits en-block.
11559         (input_function): Do not call clear_line_info.
11560         (lto_read_body): Likewise.
11561         (lto_input_toplevel_asms): Likewise.
11563 2013-02-08  Michael Matz  <matz@suse.de>
11565         PR tree-optimization/52448
11566         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
11567         (nt_call_phase): New static.
11568         (add_or_mark_expr): Only mark accesses with newer phase than any
11569         call seen.
11570         (nonfreeing_call_p): New.
11571         (nt_init_block): Update nt_call_phase, mark blocks as visited.
11572         (nt_fini_block): Keep blocks marked as visited.
11573         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
11575 2013-02-08  Richard Biener  <rguenther@suse.de>
11577         * ira.c (ira): Free broken dominator information.
11579 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
11581         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
11583 2013-02-08  Marek Polacek  <polacek@redhat.com>
11585         * cfgloop.c (verify_loop_structure): Add more checking of headers.
11587 2013-02-08  Richard Biener  <rguenther@suse.de>
11589         PR middle-end/56181
11590         * cfgloop.h (flow_loops_find): Adjust.
11591         (bb_loop_header_p): Declare.
11592         * cfgloop.c (bb_loop_header_p): New function split out from ...
11593         (flow_loops_find): ... here.  Adjust function signature,
11594         support incremental loop structure update.
11595         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
11596         * cfgloopmanip.c (fix_loop_structure): Move ...
11597         * loop-init.c (fix_loop_structure): ... here.
11598         (apply_loop_flags): Split out from ...
11599         (loop_optimizer_init): ... here.
11600         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
11601         in incremental mode, only remove dead loops here.
11603 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
11605         PR target/54222
11606         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
11607         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
11608         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
11609         (*round<mode>3.libgcc): New insns for fixed-modes.
11610         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
11611         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
11612         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
11613         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
11614         implementations.  Define to __builtin_avr_absFX,
11615         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
11616         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
11617         __builtin_avr_countlsFX, respectively.
11618         * config/avr/avr-c.c (target.h): Include it.
11619         (enum avr_builtin_id): New enum.
11620         (avr_resolve_overloaded_builtin): New static function.
11621         (avr_register_target_pragmas): Use it to set
11622         targetm.resolve_overloaded_builtin.
11623         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
11624         tree nodes used by DEF_BUILTIN.
11625         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
11626         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
11627         <AVR_BUILTIN_xxBITS>: Same.
11629 2013-02-08  Richard Biener  <rguenther@suse.de>
11631         * cfgloop.c (verify_loop_structure): Properly handle
11632         a loop exiting to another loop header.
11633         * ira-int.h (ira_loops): Remove.
11634         * ira.c (ira_loops): Remove.
11635         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
11636         (do_reload): Use loop_optimizer_finalize.
11637         * ira-build.c (create_loop_tree_nodes): Use get_loops and
11638         number_of_loops to access the loop tree.
11639         (more_one_region_p): Likewise.
11640         (finish_loop_tree_nodes): Likewise.
11641         (rebuild_regno_allocno_maps): Likewise.
11642         (mark_loops_for_removal): Likewise.
11643         (mark_all_loops_for_removal): Likewise.
11644         (remove_unnecessary_regions): Likewise.
11645         (ira_build): Likewise.
11646         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
11648 2013-02-08  Richard Biener  <rguenther@suse.de>
11650         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
11651         * ipa-pure-const.c (analyze_function): Avoid calling
11652         mark_irreducible_loops twice.
11653         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
11655 2013-02-07  David S. Miller  <davem@davemloft.net>
11657         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
11658         on 'reg'.
11659         * var-tracking.c (vt_add_function_parameter): Test the presence of
11660         HAVE_window_save properly and do not remap argument registers when
11661         we have a leaf function.
11663 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
11665         PR bootstrap/56227
11666         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
11667         instead of "ll".
11668         * config/i386/i386.c (ix86_print_operand): Ditto.
11670 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
11672         * lra-constraints.c (process_alt_operands): Fix recently added comment.
11674 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
11676         PR rtl-optimization/56225
11677         * lra-constraints.c (process_alt_operands): Check that reload hard
11678         reg can hold value for strict_low_part.
11680 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
11682         PR debug/56154
11683         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
11684         dwarf2out_end_function.
11685         (in_first_function_p, maybe_at_text_label_p,
11686         first_loclabel_num_not_at_text_label): New variables.
11687         (dwarf2out_var_location): In the first function find out
11688         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
11689         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
11690         functions.
11692 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
11694         PR rtl-optimization/56178
11695         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
11696         SUBREG of a register.  Tidy up related block of code.
11697         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
11698         note if the source is a register or a SUBREG of a register.
11700 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
11702         PR target/56228
11703         * config/rs6000/rs6000.md (ptrm): New mode attr.
11704         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
11705         call_value_indirect_aix<pttrsize>,
11706         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
11707         m in constraints.
11709 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
11711         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
11712         if -bnortl. Convert to strcmp and strncmp.
11714 2013-02-07  Alan Modra  <amodra@gmail.com>
11716         PR target/54009
11717         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
11718         addresses won't wrap when offsetting.
11719         (rs6000_secondary_reload): Provide secondary reloads needed for
11720         wrapping LO_SUM addresses.
11722 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
11724         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
11725         MACH, just __MACH__.
11727 2013-02-06  Richard Biener  <rguenther@suse.de>
11729         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
11730         instead of calling fix_loop_structure.
11732 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
11734         PR middle-end/56217
11735         * omp-low.c (use_pointer_for_field): Return false if
11736         lower_send_shared_vars doesn't generate any copy-out code.
11738 2013-02-06  Tom de Vries  <tom@codesourcery.com>
11740         PR rtl-optimization/56131
11741         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
11742         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
11743         of the label is NULL.  Add comment.
11745 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
11747         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
11749         PR sanitizer/55374
11750         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
11751         (STATIC_LIBTSAN_LIBS): Likewise.
11752         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
11753         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
11754         is defined, don't add anything else beyond that.
11755         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
11756         (LINK_COMMAND_SPEC): Use them.
11758         PR tree-optimization/56205
11759         * tree-stdarg.c (check_all_va_list_escapes): Return true if
11760         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
11761         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
11763 2013-02-05  Richard Biener  <rguenther@suse.de>
11765         PR tree-optimization/53342
11766         PR tree-optimization/53185
11767         * tree-vectorizer.h (vect_check_strided_load): Remove.
11768         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
11769         not disallow peeling for vectorized strided loads.
11770         (vect_check_strided_load): Make static and simplify.
11771         (vect_analyze_data_refs): Adjust.
11772         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
11773         correctly when vectorizing strided loads.
11775 2013-02-05  Richard Biener  <rguenther@suse.de>
11777         * doc/install.texi: Refer to ISL, not PPL.
11779 2013-02-05  Jan Hubicka  <jh@suse.cz>
11781         PR tree-optimization/55789
11782         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
11784 2013-02-05  Jan Hubicka  <jh@suse.cz>
11786         PR tree-optimization/55789
11787         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
11788         the dead call anyway.
11790 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
11792         PR sanitizer/55374
11793         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
11795 2013-02-04  Alexander Potapenko  <glider@google.com>
11796             Jack Howarth  <howarth@bromo.med.uc.edu>
11797             Jakub Jelinek  <jakub@redhat.com>
11799         PR sanitizer/55617
11800         * config/darwin.c (sort_ctor_records): Stabilized qsort
11801         on constructor priority by using original position.
11802         (finalize_ctors): New routine to sort constructors by
11803         priority before use in assemble_integer.
11804         (machopic_asm_out_constructor): Use finalize_ctors if needed.
11806 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
11808         PR libstdc++/54314
11809         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
11810         about visibility on artificial decls.
11811         * config/sol2.c (solaris_assemble_visibility): Likewise.
11813 2013-02-04  Kai Tietz  <ktietz@redhat.com>
11815         PR target/56186
11816         * config/i386/i386.c (function_value_ms_64): Add additional valtype
11817         argument and improve checking of return-argument types for 16-byte
11818         modes.
11819         (ix86_function_value_1): Add additional valtype argument on call
11820         of function_value_64.
11821         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
11822         handling infunction_value_64 function.
11824 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
11826         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
11828 2013-02-04  Richard Biener  <rguenther@suse.de>
11830         PR tree-optimization/56188
11831         * tree-ssa-structalias.c (label_visit): Consider case with
11832         initially non-empty points-to set.
11833         (perform_var_substitution): Dump node mapping and clean up.
11835 2013-02-04  Richard Guenther  <rguenther@suse.de>
11837         PR lto/56168
11838         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
11839         node prevail as last resort.
11840         (lto_symtab_merge_decls): Remove guard on LTRANS here.
11841         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
11843 2013-02-04  Richard Biener  <rguenther@suse.de>
11845         PR tree-optimization/56113
11846         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
11847         Merge into ...
11848         (equiv_class_lookup_or_add): ... this.
11849         (label_visit): Adjust and fix error in previous patch.
11850         (perform_var_substitution): Adjust.
11852 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
11854         * config/sh/divtab.c: Fix formatting and comments throughout the file.
11855         * config/sh/sh4-300.md: Likewise.
11856         * config/sh/sh4a.md: Likewise.
11857         * config/sh/constraints.md: Likewise.
11858         * config/sh/sh.md: Likewise.
11859         * config/sh/netbsd-elf.h: Likewise.
11860         * config/sh/predicates.md: Likewise.
11861         * config/sh/sh-protos.h: Likewise.
11862         * config/sh/ushmedia.h: Likewise.
11863         * config/sh/linux.h: Likewise.
11864         * config/sh/sh.c: Likewise.
11865         * config/sh/superh.h: Likewise.
11866         * config/sh/elf.h: Likewise.
11867         * config/sh/sh4.md: Likewise.
11868         * config/sh/sh.h: Likewise.
11870 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11872         * config/pa/constraints.md: Adjust unused letters.  Change "T"
11873         constraint to match_test floating_point_store_memory_operand().
11874         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
11875         (base14_operand): New.
11876         (floating_point_store_memory_operand): New.
11877         (integer_store_memory_operand): Revise to use base14_operand and
11878         reg_plus_base_memory_operand.
11879         (move_dest_operand): Allow symbolic_memory_operands.
11880         (symbolic_memory_operand): Check for LO_SOM.
11881         (symbolic_operand): Change default case to break.
11882         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
11883         CONST_DOUBLE values to be reloaded by putting them into memory when
11884         the destination is a floating point register.
11885         (movdf): Remove code to handle CONST_DOUBLE.
11886         (movsf): Likewise.
11887         (reload_indf_r1): New.
11888         (reload_insf_r1): New.
11889         Consistently use "Q" and "T" constraints with integer and floating
11890         point move instructions, respectively.
11891         (movdi): Remove FAIL.
11892         Change predicate for source operand unamed DImode move from
11893         general_operand to move_src_operand.
11894         (umulsidi3): Change predicate for destination operand to
11895         register_operand.
11896         Likewise for similar unamed patterns.
11897         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
11898         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
11899         (hppa_legitimize_address): Simplify mask calculation.
11900         (pa_emit_move_sequence): Revised handling of secondary reloads from
11901         REG+D addresses for floating point loads and stores.  Directly handle
11902         loading CONST0_RTX (mode) to a floating point register.
11903         (pa_secondary_reload): Handle reloading DF and SFmode constant values
11904         to floating point registers.  Don't restrict secondary reloads to
11905         floating point registers to integer modes.  Revise some comments and
11906         cleanup some code.
11907         (TARGET_LEGITIMATE_ADDRESS_P): Define.
11908         (pa_legitimate_address_p): New.
11909         (pa_legitimize_reload_address): New.
11910         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
11911         (STRICT_REG_OK_FOR_BASE_P): New.
11912         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
11913         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
11915 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
11916             Andrew Dixie  <andrewd@gentrack.com>
11918         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
11919         flag set.
11921 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
11923         * expmed.c (extract_bit_field_1): Pass the full width of the
11924         structure to get_best_reg_extraction_insn.
11926 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
11928         PR target/54601
11929         * configure.ac (use_cxa_atexit): Add AIX.
11930         * configure: Regenerate.
11932         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
11934 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
11936         PR debug/54793
11937         * final.c (need_profile_function): New variable.
11938         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
11939         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
11940         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
11941         notes, targetm.asm_out.function_prologue doesn't emit anything,
11942         HAVE_prologue and profiler should be emitted before prologue,
11943         set need_profile_function instead of emitting it.
11944         (final_scan_insn): If need_profile_function, emit
11945         profile_function on the first NOTE_INSN_BASIC_BLOCK or
11946         NOTE_INSN_FUNCTION_BEG note.
11948 2013-02-01  Richard Henderson  <rth@redhat.com>
11950         * config/rs6000/rs6000.md (smulditi3): New.
11951         (umulditi3): New.
11953         * config/alpha/alpha.md (umulditi3): New.
11955 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
11957         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
11958         (ASM_OUTPUT_ALIGNED_LOCAL): New.
11960 2013-02-01  Richard Biener  <rguenther@suse.de>
11962         PR tree-optimization/56113
11963         * tree-ssa-structalias.c (label_visit): Reduce work for
11964         single-predecessor nodes.
11966 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
11968         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
11969         range isn't testing for zero.
11971 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
11973         PR middle-end/56113
11974         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
11976 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
11977             Nick Clifton  <nickc@redhat.com>
11979         * config/v850/constraints.md (Q): Define as a memory constraint.
11980         * config/v850/predicates.md (label_ref_operand): New predicate.
11981         (e3v5_shift_operand): New predicate.
11982         (ior_operator): New predicate.
11983         * config/v850/t-v850: Add e3v5 multilib.
11984         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
11985         (v850_gen_movdi): Prototype.
11986         * config/v850/v850.c: Add support for e3v5 architecture.
11987         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
11988         TARGET_V850E_UP.
11989         (construct_save_jarl): Add e3v5 long JARL support.
11990         (v850_adjust_insn_length): New function.  Adjust length of call
11991         insns when using e3v5 instructions.
11992         (v850_gen_movdi): New function: Generate instructions to move a
11993         DImode value.
11994         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
11995         (CPP_SPEC): Define __v850e3v5__ as appropriate.
11996         (TARGET_USE_FPU): Enable for e3v5.
11997         (CONST_OK_FOR_W): New macro.
11998         (ADJUST_INSN_LENGTH): Define.
11999         * config/v850/v850.md (UNSPEC_LOOP): Define.
12000         (attr cpu): Add v850e3v5.
12001         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
12002         (movdi): New pattern.
12003         (movdi_internal): New pattern.
12004         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
12005         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
12006         (cstoresf4): Likewise.
12007         (cstoredf4): Likewise.
12008         (insv): New pattern.
12009         (rotlso3_a): New pattern.
12010         (rotlsi3_b): New pattern
12011         (rotlsi3_v850e3v5): New pattern.
12012         (doloop_begin): New pattern.
12013         (fix_loop_counter): New pattern.
12014         (doloop_end): New pattern.
12015         (branch_normal): Add e3v5 long branch support.
12016         (branch_invert): Likewise.
12017         (branch_z_normal): Likewise.
12018         (branch_z_invert): Likewise.
12019         (branch_nz_normal): Likewise.
12020         (branch_nz_invert): Likewise.
12021         (call_internal_short): Add e3v5 register-indirect JARL support.
12022         (call_internal_long): Likewise.
12023         (call_value_internal_short): Likewise.
12024         (call_value_internal_long): Likewise.
12025         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
12026         (mloop): New option.
12027         * config.gcc: Add support for configuring v840e3v5 target.
12028         * doc/invoke.texi: Document new v850 specific command line options.
12030 2013-01-31  Paul Koning  <ni1d@arrl.net>
12032         PR debug/55059
12033         PR debug/54508
12034         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
12035         children if parent is a class.
12036         (prune_unused_types_prune): Don't add DW_AT_declaration.
12038 2013-01-31  Richard Biener  <rguenther@suse.de>
12040         PR tree-optimization/56157
12041         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
12042         match up operand with SLP child.
12044 2013-01-31  Jason Merrill  <jason@redhat.com>
12046         PR debug/54410
12047         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
12048         parameters the first time.
12049         (gen_scheduled_generic_parms_dies): Check completeness here.
12051 2013-01-31  Richard Biener  <rguenther@suse.de>
12053         PR middle-end/53073
12054         * common.opt (faggressive-loop-optimizations): New flag,
12055         enabled by default.
12056         * doc/invoke.texi (faggressive-loop-optimizations): Document.
12057         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
12058         infer_loop_bounds_from_undefined by it.
12060 2013-01-31  Richard Biener  <rguenther@suse.de>
12062         PR tree-optimization/56150
12063         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
12064         visit virtual operands.
12065         (find_uses_to_rename_bb): Likewise.
12067 2013-01-31  Richard Biener  <rguenther@suse.de>
12069         PR tree-optimization/56150
12070         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
12071         mixed store non-store stmts.
12073 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
12075         PR sanitizer/55374
12076         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
12077         LIBASAN_EARLY_SPEC is defined.
12078         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
12079         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
12080         before %o.
12081         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
12083         PR c++/55742
12084         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
12085         invalid args instead of ICEing on it.
12086         (ix86_valid_target_attribute_tree): Return error_mark_node if
12087         ix86_valid_target_attribute_inner_p failed.
12088         (ix86_valid_target_attribute_p): Return false only if
12089         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
12090         target("default") attribute.
12091         (sorted_attr_string): Change argument from const char * to tree,
12092         merge in all target attribute arguments rather than just one.
12093         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
12094         instead of free.  Avoid using strcat.
12095         (ix86_mangle_function_version_assembler_name): Mangle
12096         target("default") as if no target attribute is present.  Adjust
12097         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
12098         instead of xmalloc and XDELETEVEC instead of free.
12099         (ix86_function_versions): Don't return true if one of the decls
12100         doesn't have target attribute.  If they don't and one of the decls
12101         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
12102         sorted_attr_string caller.  Use XDELETEVEC instead of free.
12103         (ix86_supports_function_versions): Remove.
12104         (make_name): Fix up formatting.
12105         (make_dispatcher_decl): Remove resolver_name and its initialization.
12106         Avoid leaking memory.
12107         (is_function_default_version): Return true if there is
12108         target("default") attribute rather than no target attribute at all.
12109         (make_resolver_func): Avoid leaking memory.
12110         (ix86_generate_version_dispatcher_body): Likewise.
12111         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
12112         * target.def (supports_function_versions): Remove.
12113         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
12114         * doc/tm.texi: Regenerated.
12116 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
12118         PR rtl-optimization/56144
12119         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
12120         for values with side effects.
12122 2013-01-30  Richard Biener  <rguenther@suse.de>
12124         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
12125         (sparseset_pop): Likewise.
12126         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
12127         to be able to use quick_push in the worker loop.
12129 2013-01-30  Marek Polacek  <polacek@redhat.com>
12131         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
12133 2013-01-30  Richard Biener  <rguenther@suse.de>
12135         PR lto/56147
12136         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
12138 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
12140         PR tree-optimization/56064
12141         * fixed-value.c (fixed_from_double_int): New function.
12142         * fixed-value.h (fixed_from_double_int): New prototype.
12143         (const_fixed_from_double_int): New static inline function.
12144         * fold-const.c (native_interpret_fixed): New static function.
12145         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
12146         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
12147         (native_encode_fixed): New static function.
12148         (native_encode_expr) <FIXED_CST>: Use it.
12149         (native_interpret_int): Move double_int worker code to...
12150         * double-int.c (double_int::from_buffer): ...this new static method.
12151         * double-int.h (double_int::from_buffer): Prototype it.
12153 2013-01-30  Richard Biener  <rguenther@suse.de>
12155         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
12156         New pointer-map and obstack.
12157         (init_alias_vars): Allocate pointer-map and obstack.
12158         (delete_points_to_sets): Free them.
12159         (find_what_var_points_to): Cache result.
12160         (find_what_p_points_to): Adjust for changed interface of
12161         find_what_var_points_to.
12162         (compute_points_to_sets): Likewise.
12163         (ipa_pta_execute): Likewise.
12165 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12167         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
12168         * configure: Regenerate.
12169         * config.in: Regenerate.
12170         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
12171         #nobits/#progbits if supported.
12173 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
12175         PR target/56121
12176         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
12177         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
12178         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
12180 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
12182         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
12183         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
12185 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
12187         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
12188         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
12190 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
12192         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
12193         declaration.
12194         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
12195         * config/arm/cortex-a7.md: New bypasses using
12196         arm_mac_accumulator_is_result.
12198 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
12200         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
12201         (cortex_a7_neon_mla): Likewise.
12202         (cortex_a7_fpfmad): New reservation.
12203         (cortex_a7_fpmacs): Use ffmas and update required units.
12204         (cortex_a7_fpmuld): Update required units and latency.
12205         (cortex_a7_fpmacd): Likewise.
12206         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
12207         (cortex_a7_neon). Likewise.
12208         (bypass) Update participating units.
12210 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
12212         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
12213         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
12214         from fmac to ffma.
12215         * config/arm/vfp11.md (vfp_farith): Use ffmas.
12216         (vfp_fmul): Use ffmad.
12217         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
12218         (cortex_r4_fmacd): Use ffmad.
12219         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
12220         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
12221         (cortex_a9_fmacd): Use ffmad.
12222         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
12223         (cortex_a8_vfp_macd): Use ffmad.
12224         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
12225         (cortex_a5_fpmacd): Use ffmad.
12226         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
12227         (cortex_a15_vfp_macd): Use ffmad.
12228         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
12230 2013-01-29  Jason Merrill  <jason@redhat.com>
12232         PR libstdc++/54314
12233         * varasm.c (default_assemble_visibility): Don't warn about
12234         visibility on artificial decls.
12236 2013-01-29  Richard Biener  <rguenther@suse.de>
12238         PR tree-optimization/56113
12239         * tree-ssa-structalias.c (equiv_class_lookup): Also return
12240         the bitmap leader.
12241         (label_visit): Free duplicate bitmaps and record the leader instead.
12242         (perform_var_substitution): Adjust.
12244 2013-01-29  Richard Biener  <rguenther@suse.de>
12246         PR tree-optimization/55270
12247         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
12248         the CFG, schedule loops for fixup.
12250 2013-01-29  Nick Clifton  <nickc@redhat.com>
12252         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
12253         SP_REG.
12255 2013-01-28  Leif Ekblad  <leif@rdos.net>
12257         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
12258         * config/i386/i386.h (TARGET_RDOS): New macro.
12259         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
12260         * config/i386/i386.c (ix86_option_override_internal): For 64bit
12261         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
12262         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
12263         DEFAULT_LARGE_SECTION_THRESHOLD.
12264         * config/i386/i386.md (R14_REG, R15_REG): New constants.
12265         * config/i386/rdos.h: New file.
12266         * config/i386/rdos64.h: New file.
12268 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
12270         PR other/54814
12271         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
12272         TEST_HARD_REG_BIT.
12274 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
12276         PR rtl-optimization/56117
12277         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
12278         call cselib_lookup_from_insn on the MEM before calling
12279         add_insn_mem_dependence.
12281 2013-01-28  Richard Biener  <rguenther@suse.de>
12283         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
12284         to a stmt that didn't have one.
12285         (copy_phis_for_bb): Likewise for PHI arguments.
12286         (copy_debug_stmt): Likewise for debug stmts.
12288 2013-01-28  Richard Biener  <rguenther@suse.de>
12290         PR tree-optimization/56034
12291         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
12292         (partition_builtin_p): Adjust.
12293         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
12294         it is the last partition.
12295         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
12296         up the vertex for the definition.
12297         (classify_partition): Classify whether a partition is a
12298         PKIND_REDUCTION, thus has uses outside of the loop.
12299         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
12300         Merge all PKIND_REDUCTION partitions into the last partition.
12301         (tree_loop_distribution): Seed partitions from reductions as well.
12303 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
12305         PR tree-optimization/56125
12306         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
12307         pow(x,c) into sqrt(x) * powi(x, n/2) or
12308         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
12309         optimizing for size.
12310         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
12311         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
12312         integer.
12314         PR tree-optimization/56094
12315         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
12316         to UNKNOWN_LOCATION while gimplifying expr.
12318 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
12320         PR target/56114
12321         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
12322         operand 0 in movabs insn template for -masm=intel asm alternative.
12323         (*movabs<mode>_2): Ditto for operand 1.
12325 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
12327         PR target/54663
12328         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
12329         of microblaze-c.o
12331 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
12333         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
12334         tm_file.
12336 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
12338         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
12339         Undef to avoid warning.
12341 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
12343         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
12344         * configure: Regenerate.
12346 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
12348         PR tree-optimization/56098
12349         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
12350         for stmts with volatile ops.
12351         (cond_store_replacement): Don't optimize if assign has volatile ops.
12352         (cond_if_else_store_replacement_1): Don't optimize if either
12353         then_assign or else_assign have volatile ops.
12354         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
12355         volatile ops.
12357 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
12359         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
12361 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
12363         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
12364         missing ':' in asm example.
12366 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
12368         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
12369         entries into lane and laneq entries.
12370         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
12371         Remove AdvSIMD scalar modes.
12372         (aarch64_sq<r>dmulh_laneq<mode>): New.
12373         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
12374         modes.
12375         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
12376         builtin implementations to relfect changes in RTL in aarch64-simd.md.
12377         * config/aarch64/iterators.md (VCOND): New.
12378         (VCONQ): New.
12380 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
12382         PR target/54222
12383         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
12384         Add NULL LIBNAME argument to existing definitions.
12385         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
12386         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
12387         * config/avr/avr.c (DEF_BUILTIN): Same.
12388         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
12389         (avr_expand_builtin): Expand to a vanilla call if a libgcc
12390         implementation is available (DECL_ASSEMBLER_NAME is set).
12391         (avr_fold_absfx): New static function.
12392         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
12393         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
12394         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
12395         AVR_BUILTIN_ABSLLK.
12396         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
12397         (abshk, absk, abslk, absllk): Provide as static inline functions.
12399 2013-01-25  Marek Polacek  <polacek@redhat.com>
12401         PR tree-optimization/56035
12402         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
12404 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
12406         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
12407         (*movtf_internal_rex64): Add (!o,C) alternative
12408         (*movxf_internal_rex64): Ditto.
12409         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
12411 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
12413         * doc/invoke.texi: fix typo.
12414         * doc/objc.texi: fix typo.
12416 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
12418         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
12419         for the first two alternatives.
12421 2013-01-24  Diego Novillo  <dnovillo@google.com>
12423         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
12424         (ggc-zone.o): Remove.
12425         * configure.ac: Remove option --with-gc.
12426         * configure: Re-generate.
12427         * doc/install.texi: Remove documentation for --with-gc.
12428         * gengtype.c (write_enum_defn): Remove.  Update all users.
12429         (write_Types_process_field): Remove generation of gt_e_* argument.
12430         (output_type_enum): Remove.  Update all users.
12431         (write_enum_defn): Remove.  Update all users.
12432         (enum alloc_zone): Remove.  Update all users.
12433         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
12434         * ggc-common.c (ggc_splay_alloc): Remove first argument.
12435         Update all callers.
12436         (struct ptr_data): Remove field TYPE.  Update all users.
12437         (gt_pch_note_object): Remove argument TYPE.  Update all users.
12438         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
12439         Update all users.
12440         * ggc-none.c (ggc_alloc_typed_stat): Remove.
12441         (struct alloc_zone): Remove.
12442         (ggc_internal_alloc_zone_stat): Remove.
12443         (ggc_internal_cleared_alloc_zone_stat): Remove.
12444         * ggc-page.c (ggc_alloc_typed_stat): Remove.
12445         (ggc_pch_count_object): Remove last argument.  Update all users.
12446         (ggc_pch_alloc_object): Remove last argument.  Update all users.
12447         (struct alloc_zone): Remove.
12448         * ggc-zone.c: Remove.
12449         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
12450         (struct alloc_zone): Remove.
12451         (ggc_alloc_typed_stat): Remove.
12452         (ggc_alloc_typed): Remove.
12453         (ggc_splay_alloc): Remove first argument.
12454         (rtl_zone): Remove.  Update all users.
12455         (tree_zone): Remove.  Update all users.
12456         (tree_id_zone): Remove.  Update all users.
12457         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
12458         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
12459         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
12460         * tree-ssanames.c: Remove references to zone allocator in comments.
12462 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
12464         * config/avr/avr.c (avr_out_fract): Make register numbers that
12465         might be outside of source operand signed.
12467 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
12469         * config/i386/constraints.md (Yf): New constraint.
12470         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
12471         of f constraint to conditionaly disable x87 register preferences.
12472         (*movdf_internal): Ditto.
12473         (*movsf_internal): Ditto.
12475 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
12477         PR inline-asm/55934
12478         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
12479         that have operands with impossible constraints.
12480         Add a FIXME for a speed-up opportunity.
12481         * lra-constraints.c (process_alt_operands): Verify that a class
12482         selected from constraints on asms is valid for the operand mode.
12483         (curr_insn_transform): Remove incorrect comment.
12485 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
12487         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
12488         TOC operand is a valid symbol ref in the constant pool.
12490 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
12492         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
12494 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
12496         PR target/54222
12497         * config/avr/stdfix.h: New file.
12498         * t-avr (stdfix-gcc.h): New rule to build it.
12499         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
12501 2013-01-23  Kostya Serebryany  <kcc@google.com>
12503         * config/darwin.h: remove dependency on
12504         CoreFoundation (asan on Mac OS).
12506 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
12508         PR target/49069
12509         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
12510         instead of cmpdi_operand for first comparison operand.
12511         Don't assert that comparison operands aren't both constants.
12513 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
12515         * doc/install.texi (Downloading the Source): Update references to
12516         downloading separate components.
12518 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
12520         * doc/extend.texi (__int128): Improve grammar.
12522 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
12524         PR target/56028
12525         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
12526         alternative to (o,r).
12527         (*movdi_internal_rex64): Remove (!o,n) alternative.
12528         (DImode immediate->memory splitter): Remove.
12529         (DImode immediate->memory peephole2): Remove.
12530         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
12531         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
12532         alternative to (!o,*r).
12533         (*movtf_internal_sse): New pattern.
12534         (*movxf_internal_rex64): New pattern.
12535         (*movxf_internal): Disable for TARGET_64BIT.
12536         (*movdf_internal_rex64): Remove (!o,F) alternative.
12538 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
12540         PR middle-end/56074
12541         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
12542         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
12543         * tree-vect-loop-manip.c (find_loop_location): Also ignore
12544         stmt locations where LOCATION_LOCUS of the stmt location is
12545         UNKNOWN_LOCATION or BUILTINS_LOCATION.
12547         PR target/55686
12548         * config/i386/i386.md (UNSPEC_STOS): New.
12549         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
12550         *strsetqi_1): Add UNSPEC_STOS.
12552 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
12554         PR c++/56067
12555         * doc/invoke.texi: Remove left over -Wsynth example.
12557 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
12559         PR tree-optimization/56051
12560         * fold-const.c (fold_binary_loc): Don't fold
12561         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
12562         a narrowing conversion, or widening conversion from signed
12563         to unsigned.
12565 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
12567         PR rtl-optimization/56023
12568         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
12569         dependent on debug instruction.
12571 2013-01-21  Martin Jambor  <mjambor@suse.cz>
12573         PR middle-end/56022
12574         * function.c (allocate_struct_function): Call
12575         invoke_set_current_function_hook earlier.
12577 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
12579         * reload1.c (init_reload): Only initialize reload_obstack
12580         during the first call.
12582 2013-01-21  Marek Polacek  <polacek@redhat.com>
12584         * cfgloop.c (verify_loop_structure): Fix up grammar.
12586 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
12588         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
12589         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
12591 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12593         PR target/56058
12594         * config/arm/marvell-pj4.md: Update copyright year.
12595         Fix up use of alu to alu_reg and simple_alu_imm.
12597 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
12599         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
12601 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
12603         PR target/55433
12604         * lra-constraints.c (curr_insn_transform): Don't reuse original
12605         insn for secondary memory move when memory mode should be different.
12607 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12609         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
12610         atomic_storedi_1): New patterns.
12612 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
12614         btver2 pipeline descriptions.
12615         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
12616         descriptions.
12617         * config/i386/i386.md (btver2_decode): New type attributes.
12618         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
12619         type attributes.
12620         * config/i386/btver2.md: New file describing btver2 pipelines.
12622 2013-01-19  Andrew Pinski  <apinski@cavium.com>
12624         PR tree-optimization/52631
12625         * tree-ssa-sccvn (visit_use): Before looking up the original
12626         statement, try looking up the simplified expression.
12628 2013-01-19  Anthony Green  <green@moxielogic.com>
12630         * config/moxie/moxie.c (moxie_expand_prologue): Set
12631         current_function_static_stack_size.
12633 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
12635         PR tree-optimization/56029
12636         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
12637         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
12639 2013-01-18  Sharad Singhai  <singhai@google.com>
12641         PR tree-optimization/55995
12642         * dumpfile.c (dump_loc): Print location only if available.
12643         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
12645 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
12647         PR target/55433
12648         * lra-constraints.c (curr_insn_transform): Reuse original insn for
12649         secondary memory move.
12650         (inherit_reload_reg): Use rclass instead of cl for
12651         check_secondary_memory_needed_p.
12653 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
12655         PR middle-end/56015
12656         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
12657         the case where writing real complex part of target modifies op1.
12659 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
12661         * config/aarch64/aarch64-simd.md
12662         (aarch64_vcond_internal<mode>): Handle unordered cases.
12663         * config/aarch64/iterators.md (v_cmp_result): New.
12665 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
12666             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12668         * config/arm/marvell-pj4.md: New file.
12669         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
12670         * config/arm/arm.md (generic_sched): Add marvell_pj4.
12671         (generic_vfp): Likewise.
12672         * config/arm/arm-cores.def: Add marvell-pj4.
12673         * config/arm/arm-tune.md: Regenerate.
12674         * config/arm/arm-tables.opt: Regenerate.
12675         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
12676         * doc/invoke.texi: Document marvell-pj4.
12678 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
12680         * config/aarch64/arm_neon.h: Map scalar types to standard types.
12682 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
12684         PR debug/54114
12685         PR debug/54402
12686         PR debug/49888
12687         * var-tracking.c (negative_power_of_two_p): New.
12688         (global_get_addr_cache, local_get_addr_cache): New.
12689         (get_addr_from_global_cache, get_addr_from_local_cache): New.
12690         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
12691         heading comment.
12692         (vt_stack_offset_p): Remove.
12693         (vt_canon_true_dep): Always canonicalize loc's address.
12694         (clobber_overlapping_mems): Make sure we have a MEM.
12695         (local_get_addr_clear_given_value): New.
12696         (val_reset): Clear local cached entries.
12697         (compute_bb_dataflow): Create and release the local cache.
12698         Disable duplicate MEMs clobbering.
12699         (emit_notes_in_bb): Clobber MEMs likewise.
12700         (vt_emit_notes): Create and release the local cache.
12701         (vt_initialize, vt_finalize): Create and release the global
12702         cache, respectively.
12703         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
12705 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
12707         PR libmudflap/53359
12708         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
12709         not found in the symtab.
12711 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
12713         PR debug/56006
12714         PR rtl-optimization/55547
12715         PR rtl-optimization/53827
12716         PR debug/53671
12717         PR debug/49888
12718         * alias.c (offset_overlap_p): New, factored out of...
12719         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
12720         the conservative special case for symbolic constants.  Don't
12721         adjust zero sizes on alignment.
12723 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
12725         PR rtl-optimization/52573
12726         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
12727         REG_UNUSED for the same register.
12729 2013-01-17  Richard Biener  <rguenther@suse.de>
12730             Marek Polacek  <polacek@redhat.com>
12732         PR rtl-optimization/55833
12733         * loop-unswitch.c (unswitch_loops): Move loop verification...
12734         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
12735         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
12736         Set it to true when we're removing a loop from hierarchy tree in
12737         an irreducible region.
12738         (fix_bb_placements): Adjust caller.
12739         (fix_loop_placements): Likewise.
12741 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
12743         * config/avr/builtins.def (DEF_BUILTIN): Factor out
12744         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
12745         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
12746         Remove ID.  Adjust comments.
12747         * config/avr/avr-c.c (avr_builtin_name): Remove.
12748         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
12749         * config/avr/avr.c (avr_tolower): New static function.
12750         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
12751         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
12752         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
12753         default expansion.
12755 2013-01-17  Jan Hubicka  <jh@suse.cz>
12757         PR tree-optimization/55273
12758         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
12760 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
12762         PR target/55981
12763         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
12764         store through atomic_store<mode>_1.
12765         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
12767 2013-01-17  Martin Jambor  <mjambor@suse.cz>
12769         PR tree-optimizations/55264
12770         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
12771         for virtual methods.
12772         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
12773         virtual methods before inlining is over.
12774         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
12775         virtual functions.
12776         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
12777         non-virtual.
12779 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
12781         PR rtl-optimization/56005
12782         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
12783         pending reads for prefetch.
12785 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
12787         * config/aarch64/aarch64.md
12788         (*cstoresi_neg_uxtw): New pattern.
12789         (*cmovsi_insn_uxtw): New pattern.
12790         (*<optab>si3_uxtw): New pattern.
12791         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
12792         (*<optab>si3_insn_uxtw): New pattern.
12793         (*bswapsi2_uxtw): New pattern.
12795 2013-01-16  Richard Biener  <rguenther@suse.de>
12797         * tree-inline.c (tree_function_versioning): Remove set but
12798         never used variable.
12800 2013-01-16  Richard Biener  <rguenther@suse.de>
12802         PR tree-optimization/55964
12803         * tree-flow.h (rename_variables_in_loop): Remove.
12804         (rename_variables_in_bb): Likewise.
12805         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
12806         (copy_loop_before): Adjust and delete update-ssa status.
12807         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
12808         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
12809         (rename_variables_in_loop): Remove.
12810         (slpeel_update_phis_for_duplicate_loop): Likewise.
12811         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
12812         use available cfg machinery instead of duplicating it.
12813         Update PHI nodes and perform poor-mans SSA update here.
12814         (slpeel_tree_peel_loop_to_edge): Adjust.
12816 2013-01-16  Richard Biener  <rguenther@suse.de>
12818         PR tree-optimization/54767
12819         PR tree-optimization/53465
12820         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
12821         (vrp_visit_phi_node): For PHI arguments coming via backedges
12822         drop all symbolical range information.
12823         (execute_vrp): Compute backedges.
12825 2013-01-16  Richard Biener  <rguenther@suse.de>
12827         * doc/install.texi: Update CLooG and ISL requirements to
12828         0.18.0 and 0.11.1.
12830 2013-01-16  Christian Bruel  <christian.bruel@st.com>
12832         PR target/55301
12833         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
12834         (broken_move): Handle UNSPECV_SP_SWITCH_B.
12835         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
12837 2013-01-16  DJ Delorie  <dj@redhat.com>
12839         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
12840         (UNSPECV_SP_SWITCH_E): New.
12841         (sp_switch_1): Change to an unspec.
12842         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
12843         replace $r15.
12845 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
12847         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
12848         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
12849         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
12850         (expand_mem_thread_fence): Ditto.
12851         (expand_mem_signal_fence): Ditto.
12852         (expand_atomic_load): Ditto.
12853         (expand_atomic_store): Ditto.
12855 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
12857         PR rtl-optimization/55547
12858         PR rtl-optimization/53827
12859         PR debug/53671
12860         PR debug/49888
12861         * alias.c (memrefs_conflict_p): Set sizes to negative after
12862         AND adjustments.
12864 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
12866         PR target/55940
12867         * function.c (thread_prologue_and_epilogue_insns): Always
12868         add crtl->drap_reg to set_up_by_prologue.set, even if
12869         stack_realign_drap is false.
12871 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
12873         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
12874         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
12875         *call): Fix indention.
12877 2013-01-15  Tom de Vries  <tom@codesourcery.com>
12879         PR target/55876
12880         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
12881         Update comment.
12883 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
12885         PR rtl-optimization/55153
12886         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
12888 2013-01-15  Martin Jambor  <mjambor@suse.cz>
12890         PR tree-optimization/55920
12891         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
12892         accesses as grp_to_be_debug_replaced.
12894 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
12896         PR tree-optimization/55920
12897         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
12898         there is non-useless type conversion needed from debug rhs to lhs,
12899         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
12901 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
12902             Mikael Pettersson  <mikpe@it.uu.se>
12904         PR target/43961
12905         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
12906         Thumb.
12907         (ASM_OUTPUT_CASE_LABEL): Remove.
12908         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
12909         * final.c (shorten_branches): Update alignment of labels before
12910         jump tables if CASE_VECTOR_SHORTEN_MODE.
12912 2013-01-15  Richard Biener  <rguenther@suse.de>
12914         PR bootstrap/55961
12915         * system.h: Do not include gmp.h for building host tools.
12917 2013-01-15  Richard Biener  <rguenther@suse.de>
12919         PR middle-end/55882
12920         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
12921         account for bitpos when computing alignment.
12923 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
12925         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
12926         (ix86_target_macros_internal): Likewise.
12928         * config/i386/i386.c (m_CORE2I7): Removed.
12929         (m_CORE_HASWELL): New macro.
12930         (m_CORE_ALL): Likewise.
12931         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
12932         (initial_ix86_arch_features): Likewise.
12933         (processor_target_table): Initializations for Core avx2.
12934         (cpu_names): New names "core-avx2".
12935         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
12936         PROCESSOR_CORE_HASWELL.
12937         (ix86_issue_rate): New case.
12938         (ia32_multipass_dfa_lookahead): Likewise.
12939         (ix86_sched_init_global): Likewise.
12941         * config/i386/i386.h (TARGET_HASWELL): New macro.
12942         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
12943         (processor_type): New PROCESSOR_HASWELL.
12945 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
12947         PR tree-optimization/55955
12948         * tree-vect-loop.c (vectorizable_reduction): Give up early on
12949         *SHIFT_EXPR and *ROTATE_EXPR codes.
12951         PR tree-optimization/48766
12952         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
12953         -ftrapv disable -fwrapv.
12955 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
12957         PR target/55974
12958         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
12959         etc. to 1 and not to __flash.
12960         Use LL suffix for __INT24_MAX__ with -mint8.
12961         Use ULL suffix for __UINT24_MAX__ with -mint8.
12963 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
12965         * config/avr/avr-arch.h
12966         (struct base_arch_s): Use typedef avr_arch_t instead.
12967         (struct arch_info_s): Use typedef avr_arch_info_t instead.
12968         (struct mcu_type_s): Use typedef avr_mcu_t instead.
12969         * config/avr/avr.c: Same.
12970         * config/avr/avr-devices.c: Same.
12971         * config/avr/driver-avr.c: Same.
12972         * config/avr/gen-avr-mmcu-texi.c: Same.
12973         * config/avr/avr-mcus.def: Adjust comment.
12975 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
12977         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
12978         * config/aarch64/iterators.md (VALLDI): New.
12980 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
12981             Andi Kleen  <ak@linux.intel.com>
12983         PR target/55948
12984         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
12985         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
12986         memmodel flag.
12988 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
12990         * config/avr/avr-stdint.h: Remove trailing blanks.
12991         * config/avr/avr-log.h: Same.
12992         * config/avr/avr-arch.h: Same.
12993         * config/avr/avr-devices.c: Same.
12994         * config/avr/avr-dimode.md: Same.
12995         * config/avr/predicates.md: Same.
12996         * config/avr/avr-c.c: Same.  And fix typo.
12998         * config/avr/avr-protos.h: Same.  And:
12999         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
13000         (init_cumulative_args): Rename to avr_init_cumulative_args.
13001         (expand_prologue): Rename to avr_expand_prologue.
13002         (expand_epilogue): Rename to avr_expand_epilogue.
13003         (adjust_insn_length): Rename to avr_adjust_insn_length.
13004         (notice_update_cc): Rename to avr_notice_update_cc.
13005         (final_prescan_insn): Rename to avr_final_prescan_insn.
13006         * config/avr/avr.c: Same.
13007         * config/avr/avr.h: Same.
13008         * config/avr/avr.md: Remove trailing blanks.
13009         (prologue): Use avr_expand_prologue.
13010         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
13012 2013-01-14  Richard Biener  <rguenther@suse.de>
13014         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
13015         verify_location, collect_subblocks): New functions.
13016         (verify_gimple_in_cfg): Verify that locations only reference
13017         BLOCKs in the functions BLOCK tree.
13019 2013-01-14  Richard Biener  <rguenther@suse.de>
13021         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
13022         PHI argument.
13023         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
13024         unshare reference.
13025         (insert_out_of_ssa_copy_on_edge): Likewise.
13026         (rewrite_close_phi_out_of_ssa): Likewise.
13027         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
13028         debug expressions.
13029         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
13030         propagated constants.
13031         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
13032         can not be shared.
13034 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
13036         * config/avr/avr-modes.def: Add GPL copyright notice.
13038 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
13040         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
13041         MEMMODEL_MASK to determine memory model.
13042         (atomic_store<mode>): Ditto from operands[2].
13043         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
13045 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
13047         PR fortran/55935
13048         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
13049         (fold_gimple_assign): Don't call unshare_expr here.
13050         (fold_ctor_reference): Call unshare_expr.
13052 2013-01-13  Terry Guo  <terry.guo@arm.com>
13054         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
13055         * doc/fragments.texi: Document MULTILIB_REUSE.
13056         * gcc.c (multilib_reuse): New internal spec.
13057         (set_multilib_dir): Also search multilib from multilib_reuse.
13058         * genmultilib (tmpmultilib3): Refactor code.
13059         (tmpmultilib4): Ditto.
13060         (multilib_reuse): New multilib argument.
13062 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
13064         * Makefile.in: Update copyright.
13066 2013-01-12  Tom de Vries  <tom@codesourcery.com>
13068         PR middle-end/55890
13069         * calls.c (expand_call): Check if arg_nr is valid.
13071 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
13073         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
13074         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
13075         documentation.  Add missing '__' in front of
13076         __builtin_ia32_packssdw256.
13078 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13080         PR target/55719
13081         * config/s390/s390.c (s390_preferred_reload_class): Do not return
13082         NO_REGS for larl operands.
13083         (s390_reload_larl_operand): Use s390_load_address instead of
13084         emit_move_insn.
13086 2013-01-11  Richard Biener  <rguenther@suse.de>
13088         * tree-cfg.c (verify_node_sharing_1): Split out from ...
13089         (verify_node_sharing): ... here.
13090         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
13092 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
13094         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
13095         Substitute TREECHECKING.
13096         * configure: Regenerate.
13097         * Makefile.in (TREECHECKING): New.
13099 2013-01-11  Richard Guenther  <rguenther@suse.de>
13101         PR tree-optimization/44061
13102         * tree-vrp.c (extract_range_basic): Compute zero as
13103         value-range for __builtin_constant_p of function parameters.
13105 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
13107         Update copyright years.
13109 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
13111         PR rtl-optimization/55672
13112         * lra-eliminations.c (mark_not_eliminable): Permit addition with
13113         const to be eliminable.
13115 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
13117         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
13118         * configure: Regenerate.
13120 2013-01-10  Richard Biener  <rguenther@suse.de>
13122         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
13124 2013-01-10  Richard Biener  <rguenther@suse.de>
13126         PR bootstrap/55792
13127         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
13128         locations for virtual PHI arguments.
13129         (rewrite_update_phi_arguments): Likewise.
13131 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
13133         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
13134         on to assembler.
13136 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
13138         PR tree-optimization/55921
13139         * tree-complex.c (expand_complex_asm): New function.
13140         (expand_complex_operations_1): Call it for GIMPLE_ASM.
13142 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13144         PR target/55718
13145         * config/s390/s390.c (s390_symref_operand_p)
13146         (s390_loadrelative_operand_p): Merge the two functions.
13147         (s390_check_qrst_address, print_operand_address): Add parameters
13148         to s390_loadrelative_operand_p invokation.
13149         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
13150         (s390_reload_larl_operand, s390_secondary_reload): Use
13151         s390_loadrelative_operand_p instead of s390_symref_operand_p.
13152         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
13154 2013-01-09  Mike Stump  <mikestump@comcast.net>
13156         * dse.c (record_store): Remove unnecessary assert.
13158 2013-01-09  Jan Hubicka  <jh@suse.cz>
13160         PR tree-optimization/55569
13161         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
13162         * cfgloop.h (scale_loop_profile): Likewise.
13164 2013-01-09  Jan Hubicka  <jh@suse.cz>
13166         PR lto/45375
13167         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
13168         functions.
13169         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
13171 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
13173         PR middle-end/55114
13174         * expr.h (maybe_emit_group_store): Declare.
13175         * expr.c (maybe_emit_group_store): New function.
13176         * builtins.c (expand_builtin_int_roundingfn): Call it.
13177         (expand_builtin_int_roundingfn_2): Likewise.
13179 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
13181         PR rtl-optimization/55829
13182         * lra-constraints.c (match_reload): Add code for absent output.
13183         (curr_insn_transform): Add code for reloads of matched inputs
13184         without output.
13186 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
13188         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
13189         attribute of movddup insn to DF.
13190         (*vec_interleave_lowv2df): Ditto.
13191         (vec_dupv2df): Ditto.
13193 2013-01-09  Jan Hubicka  <jh@suse.cz>
13195         PR tree-optimiation/55875
13196         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
13197         EVERY_ITERATION parameter.
13198         (number_of_iterations_exit): Check if exit is executed every iteration.
13199         (idx_infer_loop_bounds): Similarly here.
13200         (n_of_executions_at_most): Simplify
13201         to only test for cases where statement is dominated by the
13202         particular bound; handle correctly the "postdominance" test.
13203         (scev_probably_wraps_p): Use max loop iterations info
13204         as a global bound first.
13206 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
13207             Nick Clifton  <nickc@redhat.com>
13209         * config/v850/v850.md (cbranchsf4): New pattern.
13210         (cstoresf4): New pattern.
13211         (cbranchdf4): New pattern.
13212         (cstoredf4): New pattern.
13213         (movsicc): Disallow floating point comparisons.
13214         (cmpsf_le_insn): Fix order of operators.
13215         (cmpsf_lt_insn): Likewise.
13216         (cmpsf_eq_insn): Likewise.
13217         (cmpdf_le_insn): Likewise.
13218         (cmpdf_lt_insn): Likewise.
13219         (cmpdf_eq_insn): Likewise.
13220         (cmpsf_ge_insn): Use LE comparison.
13221         (cmpdf_ge_insn): Likewise.
13222         (cmpsf_gt_insn): Use LT comparison.
13223         (cmpdf_gt_insn): Likewise.
13224         (cmpsf_ne_insn): Delete pattern.
13225         (cmpdf_ne_insn): Delete pattern.
13226         * config/v850/v850.c (v850_gen_float_compare): Use
13227         gen_cmpdf_eq_insn for NE comparison.
13228         (v850_float_z_comparison_operator)
13229         (v850_float_nz_comparison_operator): Move from here ...
13230         * config/v850/predicates.md: ... to here.  Move GT and GE
13231         comparisons into v850_float_z_comparison_operator.
13232         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
13233         Delete prototype.
13234         (v850_float_nz_comparison_operator): Likewise.
13236 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13238         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
13239         with calls to gen_insvsi/gen_insvdi.
13241 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
13243         * config/i386/i386.c (initial_ix86_tune_features): Set up
13244         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
13246 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
13247             Jakub Jelinek  <jakub@redhat.com>
13249         PR tree-optimization/48189
13250         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
13251         If nitercst is 0, don't predict the exit edge.
13253 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
13255         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
13256         in asm_fprintf with reg_names.
13257         (aarch64_print_operand_address): Likewise.
13258         (aarch64_return_addr): Likewise.
13259         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
13261 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13263         * config/pa/pa.h (VAL_U6_BITS_P): Define.
13264         (INT_U6_BITS): Likewise.
13265         * config/pa/predicates.md (uint6_operand): New predicate.
13266         (shift5_operand, shift6_operand): Likewise.
13267         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
13268         arith32_operand.
13269         (lshrdi3): Use shift6_operand.
13270         (shrpsi4, shrpdi4): New insn patterns.
13271         (extzv): Delete expander.
13272         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
13273         predicates in unamed zero extract patterns.  Tighten common constraint.
13274         (extv): Delete expander.
13275         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
13276         predicates in unamed sign extract patterns.  Tighten common constraint.
13277         (insv): Delete expander.
13278         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
13279         predicates in unamed insert patterns.  Tighten common constraint.
13280         Change uint32_operand predicate to uint6_operand predicate in unamed
13281         DImode pattern to insert constant values of type 1...1xxxx.
13283 2013-01-04  Jan Hubicka  <jh@suse.cz>
13285         PR tree-optimization/55823
13286         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
13287         issue.
13289 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
13290             Uros Bizjak  <ubizjak@gmail.com>
13292         PR rtl-optimization/55845
13293         * df-problems.c (can_move_insns_across): Stop scanning at
13294         volatile_insn_p source instruction or give up if
13295         across_from .. across_to range contains any volatile_insn_p
13296         instructions.
13298 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
13300         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
13301         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
13302         Declare.
13303         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
13304         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
13306 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
13308         PR fortran/55341
13309         * asan.c (asan_clear_shadow): New function.
13310         (asan_emit_stack_protection): Use it.
13312 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
13314         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
13315         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
13316         with tab instead of space.
13318 2013-01-08  Nick Clifton  <nickc@redhat.com>
13320         * config/rl78/rl78.c (rl78_expand_prologue): Always select
13321         register bank 0 at the start of an interrupt handler.
13322         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
13323         MDBH registers.
13325 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
13327         * config/aarch64/aarch64-simd.md
13328         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
13329         (aarch64_simd_bsl): Likewise.
13330         (aarch64_vcond_internal<mode>): Likewise.
13331         (vcond<mode><mode>): Likewise.
13332         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
13333         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
13335 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
13337         * config/aarch64/aarch64-builtins.c
13338         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
13340 2013-01-08  Martin Jambor  <mjambor@suse.cz>
13342         PR debug/55579
13343         * tree-sra.c (analyze_access_subtree): Return true also after
13344         potentially creating a debug-only replacement.
13346 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
13348         PR middle-end/55890
13349         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
13351         PR tree-optimization/54120
13352         * tree-vrp.c (range_fits_type_p): Don't allow
13353         src_precision < precision from signed vr to unsigned_p
13354         if vr->min or vr->max is negative.
13355         (simplify_float_conversion_using_ranges): Test can_float_p
13356         against CODE_FOR_nothing.
13358 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
13359             Richard Biener  <rguenther@suse.de>
13361         PR middle-end/55851
13362         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
13363         types instead of just INTEGER_TYPE types.
13365 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
13367         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
13368         TF_SIZE): Define.
13370 2013-01-07  Steve Ellcey  <sellcey@mips.com>
13372         PR target/42661
13373         * config/mips/mips.opt: Change mad to mmad to match documentation.
13375 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
13377         PR target/55897
13378         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
13379         .progmemx.data now.
13381 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
13383         PR target/55897
13384         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
13385         (avr_addrspace_t): Add .section_name field.
13386         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
13387         array size.
13388         (avr_addrspace): Same.  Initialize .section_name.  Remove last
13389         NULL entry.  Put __memx into .progmemx.data.
13390         (progmem_section_prefix): Remove.
13391         (avr_asm_init_sections): No need to initialize progmem_section.
13392         (avr_asm_named_section): Use avr_addrspace[].section_name to get
13393         section name prefix.
13394         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
13395         retrieve the progmem section.
13396         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
13397         boundary to run over avr_addrspace[].
13398         (avr_register_target_pragmas): Ditto.
13400 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
13402         * varasm.c (output_constant_def_contents): For asan_protect_global
13403         protected strings, adjust DECL_ALIGN if needed, before testing for
13404         anchored symbols.
13405         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
13406         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
13407         normal decls.
13408         (output_object_block): For asan protected decls, emit asan padding
13409         after their contents.
13410         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
13411         (asan_finish_file): Test it here instead.
13413 2013-01-07  Nick Clifton  <nickc@redhat.com>
13414             Matthias Klose  <doko@debian.org>
13415             Doug Kwan  <dougkwan@google.com>
13416             H.J. Lu  <hongjiu.lu@intel.com>
13418         PR driver/55470
13419         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
13421         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
13423         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
13425         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
13427         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
13429 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
13431         PR target/54461
13432         * doc/install.texi (Cross-Compiler-Specific Options): Document
13433         --with-avrlibc.
13435 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
13437         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
13438         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
13439         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
13440         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
13441         vqmovun_high_s64): Fix source operand number and update copyright.
13443 2013-01-07  Richard Biener  <rguenther@suse.de>
13445         PR middle-end/55890
13446         * gimple.h (gimple_call_builtin_p): New overload.
13447         * gimple.c (validate_call): New function.
13448         (gimple_call_builtin_p): Likewise.
13449         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
13450         Use gimple_call_builtin_p.
13451         (find_func_clobbers): Likewise.
13452         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
13453         (strlen_optimize_stmt): Likewise.
13455 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
13457         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
13458         (vld1q_dup_*): Likewise.
13459         (vld1_*): Likewise.
13460         (vld1q_*): Likewise.
13461         (vld1_lane_*): Likewise.
13462         (vld1q_lane_*): Likewise.
13464 2013-01-07  Richard Biener  <rguenther@suse.de>
13466         * lto-streamer.h (LTO_minor_version): Bump to 2.
13468 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
13470         * config/aarch64/aarch64-protos.h
13471         (aarch64_const_double_zero_rtx_p): Rename to...
13472         (aarch64_float_const_zero_rtx_p): ...this.
13473         (aarch64_float_const_representable_p): New.
13474         (aarch64_output_simd_mov_immediate): Likewise.
13475         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
13476         move immediate case.
13477         * config/aarch64/aarch64.c
13478         (aarch64_const_double_zero_rtx_p): Rename to...
13479         (aarch64_float_const_zero_rtx_p): ...this.
13480         (aarch64_print_operand): Allow printing of new constants.
13481         (aarch64_valid_floating_const): New.
13482         (aarch64_legitimate_constant_p): Check for valid floating-point
13483         constants.
13484         (aarch64_simd_valid_immediate): Likewise.
13485         (aarch64_vect_float_const_representable_p): New.
13486         (aarch64_float_const_representable_p): Likewise.
13487         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
13488         (aarch64_output_simd_mov_immediate): New.
13489         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
13490         (*movdf_aarch64): Likewise.
13491         * config/aarch64/constraints.md (Ufc): New.
13492         (Y): call aarch64_float_const_zero_rtx.
13493         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
13495 2013-01-07  Richard Biener  <rguenther@suse.de>
13497         PR tree-optimization/55888
13498         PR tree-optimization/55862
13499         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
13500         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
13501         not if it is contained therein.
13503 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
13505         * config/avr/t-avr: Typo.
13507 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
13509         PR55243
13510         * config/avr/t-avr: Don't automatically rebuild
13511         $(srcdir)/config/avr/t-multilib
13512         $(srcdir)/config/avr/avr-tables.opt
13513         $(srcdir)/doc/avr-mmcu.texi
13514         (avr-mcus): New phony target to build them on request.
13515         (s-avr-mlib, s-avr-mmcu-texi): Remove.
13516         * avr/avr-mcus.def: Adjust comments.
13518 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
13520         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
13522 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
13524         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
13526 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
13528         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
13530 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
13532         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
13533         to generate profiling.
13534         * config/rs6000/aix64.h (LIB_SPEC): Same.
13536 2013-01-04  Andrew Pinski  <apinski@cavium.com>
13538         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
13539         New function.
13540         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
13542 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
13544         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
13545         unconditionally.
13546         (ix86_expand_move): Ditto.
13547         (ix86_zero_extend_to_Pmode): Ditto.
13548         (ix86_expand_call): Ditto.
13549         (ix86_expand_special_args_builtin): Ditto.
13550         (ix86_expand_builtin): Ditto.
13552 2013-01-04  Richard Biener  <rguenther@suse.de>
13554         PR tree-optimization/55862
13555         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
13556         translating them through PHI nodes.
13558 2013-01-04  Martin Jambor  <mjambor@suse.cz>
13560         PR tree-optimization/55755
13561         * tree-sra.c (sra_modify_assign): Do not check that an access has no
13562         children when trying to avoid producing a VIEW_CONVERT_EXPR.
13564 2013-01-04  Marek Polacek  <polacek@redhat.com>
13566         PR middle-end/55859
13567         * opts.c (default_options_optimization): Clarify error message.
13569 2013-01-04  Richard Biener  <rguenther@suse.de>
13571         PR middle-end/55863
13572         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
13573         reassociation.
13575 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13577         PR target/53789
13578         * config/pa/pa.md (movsi): Revert previous change.
13579         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
13580         references.
13582 2013-01-03  Richard Henderson  <rth@redhat.com>
13584         * config/i386/i386.c (ix86_expand_move): Always assign to op1
13585         after eliminating TLS symbols.
13587 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
13589         PR bootstrap/50167
13590         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
13591         * graphite-poly.c (debug_gmp_value): Likewise.
13593 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
13595         PR target/55712
13596         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
13597         selected code model, define __code_mode_small__, __code_model_medium__,
13598         __code_model_large__, __code_model_32__ or __code_model_kernel__.
13599         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
13600         xchg temporary register with %k.  Declare temporary register as
13601         early clobbered.
13602         [__x86_64__]: For medium and large code models, preserve %rbx register.
13604 2013-01-03  Richard Biener  <rguenther@suse.de>
13606         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
13607         (dump_subscript): Adjust.
13608         (finalize_ddr_dependent): Do not dump redundant info.
13609         (analyze_siv_subscript): Adjust.
13610         (subscript_dependence_tester): Likewise.
13611         (compute_affine_dependence): Likewise.
13613 2013-01-03  Richard Biener  <rguenther@suse.de>
13615         Revert
13616         2013-01-03  Richard Biener  <rguenther@suse.de>
13618         PR tree-optimization/55857
13619         * tree-vect-stmts.c (vectorizable_load): Do not setup
13620         re-alignment for invariant loads.
13622         2013-01-02  Richard Biener  <rguenther@suse.de>
13624         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
13625         invariant load do not generate a vector load from the scalar location.
13627 2013-01-03  Richard Biener  <rguenther@suse.de>
13629         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
13630         for not vectorizing.
13631         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
13632         not build INDIRECT_REFs, call get_name once only.
13633         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
13634         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
13636 2013-01-03  Richard Biener  <rguenther@suse.de>
13638         PR tree-optimization/55857
13639         * tree-vect-stmts.c (vectorizable_load): Do not setup
13640         re-alignment for invariant loads.
13642 2013-01-03  Richard Biener  <rguenther@suse.de>
13644         PR lto/55848
13645         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
13646         prefer a built-in decl.
13648 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
13650         * gcc.c (process_command): Update copyright notice dates.
13651         * gcov.c (print_version): Likewise.
13652         * gcov-dump.c (print_version): Likewise.
13654         PR rtl-optimization/55838
13655         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
13656         iv0.step, iv1.step and step.
13658 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
13659             Marc Glisse  <marc.glisse@inria.fr>
13661         PR tree-optimization/55832
13662         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
13663         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
13664         integer_{one,zero}_node.
13666 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
13668         PR debug/54402
13669         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
13670         * var-tracking.c (reverse_op): Don't add reverse ops to
13671         VALUEs that have already
13672         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
13674 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
13676         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
13678 2013-01-02  Teresa Johnson  <tejohnson@google.com>
13680         * dumpfile.c (dump_loc): Print filename with location.
13681         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
13682         new location_t parameter to emit complete unroll message with
13683         new dump framework.
13684         (canonicalize_loop_induction_variables): Compute loops location
13685         and pass to try_unroll_loop_completely.
13686         * loop-unroll.c (report_unroll_peel): New function.
13687         (peel_loops_completely): Use new dump format with location
13688         for main dumpfile message, and invoke report_unroll_peel on success.
13689         (decide_unrolling_and_peeling): Ditto.
13690         (decide_peel_once_rolling): Remove old dumpfile message subsumed
13691         by report_unroll_peel.
13692         (decide_peel_completely): Ditto.
13693         (decide_unroll_constant_iterations): Ditto.
13694         (decide_unroll_runtime_iterations): Ditto.
13695         (decide_peel_simple): Ditto.
13696         (decide_unroll_stupid): Ditto.
13697         * cfgloop.c (get_loop_location): New function.
13698         * cfgloop.h (get_loop_location): Declare.
13700 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
13702         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
13703         NULL.
13705 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13707         PR middle-end/55198
13708         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
13709         BLKmode objects when EXPAND_MEMORY is specified.
13711 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
13713         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
13714         in loop predicate.
13715         (fold_builtin_cpu): Do not share cpu model decls across statements.
13717 2013-01-02  Jason Merrill  <jason@redhat.com>
13719         PR c++/55804
13720         * tree.c (build_array_type_1): Revert earlier change.
13722 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
13724         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
13725         "cortex-a57".
13726         * config/aarch64/aarch64-tune.md: Re-generate.
13728 2013-01-02  Richard Biener  <rguenther@suse.de>
13730         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
13731         invariant load do not generate a vector load from the scalar location.
13733 2013-01-02  Richard Biener  <rguenther@suse.de>
13735         PR bootstrap/55784
13736         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
13737         * configure: Regenerate.
13739 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
13741         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
13742         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
13743         (expand_builtin_int_roundingfn_2): Keep the original target around
13744         for the fallback case.
13746 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
13748         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
13749         to be clear for sign changes.
13751 2013-01-01  Jan Hubicka  <jh@suse.cz>
13753         * ipa-inline-analysis.c: Fix formatting.
13755 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
13757         PR tree-optimization/55831
13758         * tree-vect-loop.c (get_initial_def_for_induction): Use
13759         gsi_after_labels instead of gsi_start_bb.
13761 Copyright (C) 2013 Free Software Foundation, Inc.
13763 Copying and distribution of this file, with or without modification,
13764 are permitted in any medium without royalty provided the copyright
13765 notice and this notice are preserved.