[AArch64] Remove aarch64_symbolic_constant_p.
[official-gcc.git] / gcc / ChangeLog
blob129a608212487107b277fd05318f407280b23603
1 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3         * config/aarch64/aarch64-protos.h
4         aarch64_classify_symbol_expression): Define.
5         (aarch64_symbolic_constant_p): Remove.
6         * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
7         static.  Fix line length and white space.
8         (aarch64_symbolic_constant_p): Remove.
9         * config/aarch64/predicates.md (aarch64_valid_symref):
10         Use aarch64_classify_symbol_expression.
12 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14         * config/arm/constraints.md (Ts): New constraint.
15         * config/arm/arm.md (arm_movqi_insn): Add alternatives for
16         16-bit encodings.
17         (compare_scc): Use "Ts" constraint for operand 0.
18         (ior_scc_scc): Likewise.
19         (and_scc_scc): Likewise.
20         (and_scc_scc_nodom): Likewise.
21         (ior_scc_scc_cmp): Likewise for operand 7.
22         (and_scc_scc_cmp): Likewise.
23         * config/arm/thumb2.md (thumb2_movsi_insn):
24         Add alternatives for 16-bit encodings.
25         (thumb2_movhi_insn): Likewise.
26         (thumb2_movsicc_insn): Likewise.
27         (thumb2_and_scc): Take 'and' outside cond_exec.  Use "Ts" constraint.
28         (thumb2_negscc): Use "Ts" constraint.
29         Move mvn instruction outside cond_exec block.
30         * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
31         for 16-bit encodings.
33 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35         * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
36         encoding.
37         (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
38         (mulsi3subsi): Likewise.
39         (mulsidi3adddi): Likewise.
40         (mulsidi3_v6): Likewise.
41         (umulsidi3_v6): Likewise.
42         (umulsidi3adddi_v6): Likewise.
43         (smulsi3_highpart_v6): Likewise.
44         (umulsi3_highpart_v6): Likewise.
45         (mulhisi3tb): Likewise.
46         (mulhisi3bt): Likewise.
47         (mulhisi3tt): Likewise.
48         (maddhisi4): Likewise.
49         (maddhisi4tb): Likewise.
50         (maddhisi4tt): Likewise.
51         (maddhidi4): Likewise.
52         (maddhidi4tb): Likewise.
53         (maddhidi4tt): Likewise.
54         (zeroextractsi_compare0_scratch): Likewise.
55         (insv_zero): Likewise.
56         (insv_t2): Likewise.
57         (anddi_notzesidi_di): Likewise.
58         (anddi_notsesidi_di): Likewise.
59         (andsi_notsi_si): Likewise.
60         (iordi_zesidi_di): Likewise.
61         (xordi_zesidi_di): Likewise.
62         (andsi_iorsi3_notsi): Likewise.
63         (smax_0): Likewise.
64         (smax_m1): Likewise.
65         (smin_0): Likewise.
66         (not_shiftsi): Likewise.
67         (unaligned_loadsi): Likewise.
68         (unaligned_loadhis): Likewise.
69         (unaligned_loadhiu): Likewise.
70         (unaligned_storesi): Likewise.
71         (unaligned_storehi): Likewise.
72         (extv_reg): Likewise.
73         (extzv_t2): Likewise.
74         (divsi3): Likewise.
75         (udivsi3): Likewise.
76         (arm_zero_extendhisi2addsi): Likewise.
77         (arm_zero_extendqisi2addsi): Likewise.
78         (compareqi_eq0): Likewise.
79         (arm_extendhisi2_v6): Likewise.
80         (arm_extendqisi2addsi): Likewise.
81         (arm_movt): Likewise.
82         (thumb2_ldrd): Likewise.
83         (thumb2_ldrd_base): Likewise.
84         (thumb2_ldrd_base_neg): Likewise.
85         (thumb2_strd): Likewise.
86         (thumb2_strd_base): Likewise.
87         (thumb2_strd_base_neg): Likewise.
88         (arm_negsi2): Add alternative for 16-bit encoding.
89         (arm_one_cmplsi2): Likewise.
91 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
93         * config/arm/predicates.md (arm_cond_move_operator): New predicate.
94         * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
95         (movdfcc): Likewise.
96         * config/arm/vfp.md (*thumb2_movsf_vfp):
97         Disable predication for arm_restrict_it.
98         (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
99         (*thumb2_movdfcc_vfp): Likewise.
100         (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
101         *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
102         *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
103         *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
104         *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
105         *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
106         *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
107         *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
108         *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
109         *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
110         *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
111         *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
112         Disable predication for arm_restrict_it.
114 2013-06-28  Kirill Yukhin  <kirill.yukhin@intel.com>
116         * config/i386/bmiintrin.h (_bextr_u32): New.
117         (_bextr_u64): Ditto.
119 2013-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
121         * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
122         (mips64r5900el-*-elf*): Include mips/n32-elf.h.
123         * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
124         (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
125         * config/mips/n32-elf.h: ...this new file.
127 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
129         PR target/57224
130         * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
131         IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
133 2013-06-27  Catherine Moore <clm@codesourcery.com>
135         * config/mips/mips-tables.opt: Regenerate.
136         * config/mips/mips-cpus.def: Add m14ke and m14kec.
137         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies
138         -mdspr2.
139         * doc/invoke.texi: Add -m14kc.
141 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
143         PR target/57623
144         * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
145         constraints of operand 1 and 2.
147         PR target/57623
148         * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
149         to match RTL canonicalization.  Swap predicates and
150         constraints of operand 1 and 2.
152 2013-06-27  Vladimir Makarov  <vmakarov@redhat.com>
154         * lra-constraints.c (inherit_in_ebb): Process static hard regs
155         too.  Process OP_INOUT regs for splitting too.
157 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
159         * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
160         decl before the loop, initialize to NULL.
161         (vectorizable_load): Initialize ptr_incr to NULL.
163 2013-06-27  Martin Jambor  <mjambor@suse.cz>
165         PR lto/57208
166         * ipa-ref.h (ipa_maybe_record_reference): Declare.
167         * ipa-ref.c (ipa_maybe_record_reference): New function.
168         * cgraphclones.c (cgraph_create_virtual_clone): Use it.
169         * ipa-cp.c (create_specialized_node): Record potential references from
170         aggvals.
171         * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
173 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
175         * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
176         parameter 'mode' of type 'enum machine_mode mode'; change to pass
177         'mode' to force_reg.
178         (aarch64_add_offset): Update calls to aarch64_force_temporary.
179         (aarch64_expand_mov_immediate): Likewise.
181 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
183         * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
184         'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
186 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
188         * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
189         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
190         (struct machine_function): Add tbegin_p.
191         (s390_canonicalize_comparison): Fold CC mode compares to
192         conditional jump if possible.
193         (s390_emit_jump): Return the emitted jump.
194         (s390_branch_condition_mask, s390_branch_condition_mnemonic):
195         Handle CCRAWmode compares.
196         (s390_option_override): Default to -mhtm if available.
197         (s390_reg_clobbered_rtx): Handle floating point regs as well.
198         (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
199         FPRs instead of df_regs_ever_live_p.
200         (s390_optimize_nonescaping_tx): New function.
201         (s390_init_frame_layout): Extend clobbered_regs array to cover
202         FPRs as well.
203         (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
204         (s390_expand_tbegin): New function.
205         (enum s390_builtin): New enum definition.
206         (code_for_builtin): New array definition.
207         (s390_init_builtins): New function.
208         (s390_expand_builtin): New function.
209         (TARGET_INIT_BUILTINS): Define.
210         (TARGET_EXPAND_BUILTIN): Define.
211         * common/config/s390/s390-common.c (processor_flags_table): Add
212         PF_TX.
213         * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
214         (s390_alc_comparison): Likewise.
215         * config/s390/s390-modes.def: Add CCRAWmode.
216         * config/s390/s390.h (processor_flags): Add PF_TX.
217         (TARGET_CPU_HTM): Define macro.
218         (TARGET_HTM): Define macro.
219         (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
220         * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
221         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
222         (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
223         (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum
224         values.
225         (TBEGIN_MASK, TBEGINC_MASK): New constants.
226         ("*cc_to_int"): Move up.
227         ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
228         constants other than 0.
229         ("*ccraw_to_int"): New insn and splitter definition.
230         ("tbegin", "tbegin_nofloat", "tbegin_retry")
231         ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
232         ("tx_assist"): New expander.
233         ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
234         ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
235         * config/s390/s390.opt: Add -mhtm option.
236         * config/s390/s390-protos.h (s390_emit_jump): Add return type.
237         * config/s390/htmxlintrin.h: New file.
238         * config/s390/htmintrin.h: New file.
239         * config/s390/s390intrin.h: New file.
240         * doc/extend.texi: Document htm builtins.
241         * config.gcc: Add the new header files to extra_headers.
243 2013-06-26  Thomas Schwinge  <thomas@codesourcery.com>
245         * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
246         (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET):
247         Undefine.
249 2013-06-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
250             Pat Haugen <pthaugen@us.ibm.com>
251             Peter Bergner <bergner@vnet.ibm.com>
253         * config/rs6000/power8.md: New.
254         * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
255         setting for power8 entry.
256         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
257         * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
258         test for Power4/Power5 only.
259         (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
260         support.
261         (force_new_group): Adjust comment.
262         * config/rs6000/rs6000.md: Include power8.md.
264 2013-06-26  Greta Yorsh  <Greta.Yorsh@arm.com>
266         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
267         * config/arm/arm-protos.h (arm_max_conditional_execute): New
268         declaration.
269         (tune_params): Update comment.
270         * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
271         (arm_max_conditional_execute): New function.
272         (thumb2_final_prescan_insn): Use max_insn_skipped and
273         MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
275 2013-06-25  Jakub Jelinek  <jakub@redhat.com>
277         PR tree-optimization/57705
278         * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
279         SSA_NAME step, provided that it is not defined inside the loop.
280         (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested
281         loop.
282         (get_initial_def_for_induction): Handle SSA_NAME IV step.
284 2013-06-25  Martin Jambor  <mjambor@suse.cz>
286         PR middle-end/57670
287         * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
288         * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
289         calls in the dump.
290         (ipa_note_param_call): Initialize member_ptr flag.
291         (ipa_analyze_indirect_call_uses): Set member_ptr flag.
292         (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
293         (ipa_write_indirect_edge_info): Stream member_ptr flag.
294         (ipa_read_indirect_edge_info): Likewise.
296 2013-06-25  Richard Biener  <rguenther@suse.de>
298         PR middle-end/56977
299         * passes.c (init_optimization_passes): Move pass_fold_builtins
300         and pass_dce earlier with -Og.
302 2013-06-25  Eric Botcazou  <ebotcazou@adacore.com>
304         * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
305         <BIT_FIELD_REF>: Remove trailing TAB.
306         * varasm.c (output_constructor_bitfield): Fix formatting glitch and
307         remove blank line.
309 2013-06-24  Martin Jambor  <mjambor@suse.cz>
311         PR tree-optimization/57358
312         * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
313         (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
314         (ipa_analyze_params_uses): Generate pessimistic info when true.
316 2013-06-24  Martin Jambor  <mjambor@suse.cz>
318         PR tree-optimization/57539
319         * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
320         global.inlined_to of the new node to it.  All callers changed.
321         * ipa-inline-transform.c (clone_inlined_nodes): New variable
322         inlining_into, pass it to cgraph_clone_node.
323         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
324         ipa_free_edge_args_substructures.
325         (ipa_edge_duplication_hook): Only add edges from inlined nodes to
326         rdesc linked list.  Do not assert rdesc edges have inlined caller.
327         Assert we have found an rdesc in the rdesc list.
329 2013-06-24  Richard Biener  <rguenther@suse.de>
331         * pointer-set.h (struct pointer_set_t): Move here from
332         pointer-set.c.
333         (pointer_set_lookup): Declare.
334         (class pointer_map): New template class implementing a
335         generic pointer to T map.
336         (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
337         pointer_map<T>::contains, pointer_map<T>::insert,
338         pointer_map<T>::traverse): New functions.
339         * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
340         (pointer_set_lookup): New function.
341         (pointer_set_contains): Use pointer_set_lookup.
342         (pointer_set_insert): Likewise.
343         (insert_aux): Remove.
344         (struct pointer_map_t): Embed a pointer_set_t.
345         (pointer_map_create): Adjust.
346         (pointer_map_destroy): Likewise.
347         (pointer_map_contains): Likewise.
348         (pointer_map_insert): Likewise.
349         (pointer_map_traverse): Likewise.
350         * tree-streamer.h (struct streamer_tree_cache_d): Use a
351         pointer_map<unsigned> instead of a pointer_map_t.
352         * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
353         (streamer_tree_cache_lookup): Likewise.
354         (streamer_tree_cache_create): Likewise.
355         (streamer_tree_cache_delete): Likewise.
356         * lto-streamer.h (struct lto_tree_ref_encoder): Use a
357         pointer_map<unsigned> instead of a pointer_map_t.
358         (lto_init_tree_ref_encoder): Adjust.
359         (lto_destroy_tree_ref_encoder): Likewise.
360         * lto-section-out.c (lto_output_decl_index): Likewise.
361         (lto_record_function_out_decl_state): Likewise.
362         * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
364 2013-06-24  Richard Biener  <rguenther@suse.de>
366         PR tree-optimization/57488
367         * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
369 2013-06-24  Alan Modra  <amodra@gmail.com>
371         * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
372         (gen_easy_altivec_constant): Likewise.
373         * config/rs6000/predicates.md (easy_vector_constant_add_self,
374         easy_vector_constant_msb): Likewise.
376 2013-06-23  Jakub Jelinek  <jakub@redhat.com>
378         PR target/57688
379         * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
380         add missing return true.
382 2013-06-23  Oleg Endo <olegendo@gcc.gnu.org>
384         PR target/52483
385         * config/sh/predicates.md (general_extend_operand): Invoke
386         general_movsrc_operand for memory operands.
387         (general_movsrc_operand): Allow reg+reg addressing, do not use
388         general_operand for memory operands.
390 2013-06-23  Sriraman Tallam  <tmsriram@google.com>
392         * config/i386/i386.c (ix86_pragma_target_parse):  Restore target
393         when current target options does not apply.
394         * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
395         * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
396         * config/i386/bmiintrin.h: Pass appropriate target attributes to header.
397         * config/i386/mmintrin.h: Ditto.
398         * config/i386/nmmintrin.h: Ditto.
399         * config/i386/avx2intrin.h: Ditto.
400         * config/i386/fxsrintrin.h: Ditto.
401         * config/i386/tbmintrin.h: Ditto.
402         * config/i386/xsaveintrin.h: Ditto.
403         * config/i386/f16cintrin.h: Ditto.
404         * config/i386/xtestintrin.h: Ditto.
405         * config/i386/xsaveoptintrin.h: Ditto.
406         * config/i386/bmi2intrin.h: Ditto.
407         * config/i386/lzcntintrin.h: Ditto.
408         * config/i386/smmintrin.h: Ditto.
409         * config/i386/wmmintrin.h: Ditto.
410         * config/i386/x86intrin.h: Remove all header include guards.
411         * config/i386/prfchwintrin.h: Ditto.
412         * config/i386/pmmintrin.h: Ditto.
413         * config/i386/tmmintrin.h: Ditto.
414         * config/i386/xmmintrin.h: Ditto.
415         * config/i386/popcntintrin.h: Ditto.
416         * config/i386/rdseedintrin.h: Ditto.
417         * config/i386/ammintrin.h: Ditto.
418         * config/i386/emmintrin.h: Ditto.
419         * config/i386/immintrin.h: Remove all header include guards.
420         * config/i386/fma4intrin.h: Ditto.
421         * config/i386/lwpintrin.h: Ditto.
422         * config/i386/xopintrin.h: Ditto.
423         * config/i386/ia32intrin.h: Ditto.
424         * config/i386/avxintrin.h: Ditto.
425         * config/i386/rtmintrin.h: Ditto.
426         * config/i386/fmaintrin.h: Ditto.
427         * config/i386/mm3dnow.h: Ditto.
429 2013-06-22  Sriraman Tallam  <tmsriram@google.com>
431         * common/config/i386/i386-common.c: Handle LZCNT.
433 2013-06-22  Andi Kleen  <ak@linux.intel.com>
435         * doc/extend.texi: Use __atomic_store_n instead of
436         __atomic_store in HLE example.
438 2013-06-22  Oleg Endo <olegendo@gcc.gnu.org>
440         * config/sh/sh.c: Remove <cstdlib> workaround.
442 2013-06-21  Andi Kleen  <ak@linux.intel.com>
444         * doc/extend.texi: Dont use __atomic_clear in HLE
445         example.  Fix typo.
447 2013-06-21  Andi Kleen  <ak@linux.intel.com>
449         * doc/extend.texi: Document that __atomic_clear and
450           __atomic_test_and_set should only be used with bool.
452 2013-06-20  Jan Hubicka  <jh@suse.cz>
454         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
455         types_same_for_odr.
456         * tree.c (decls_same_for_odr): New function.
457         (same_for_edr): New function.
458         (types_same_for_odr): New function.
459         (get_binfo_at_offset): Use it.
460         * tree.h (types_same_for_odr): Declare.
462 2013-06-20  Oleg Endo <olegendo@gcc.gnu.org>
463             Jason Merrill  <jason@redhat.com>
465         * system.h: Include <cstdlib> as well as <stdlib.h>.
467 2013-06-20  Uros Bizjak  <ubizjak@gmail.com>
469         PR target/57655
470         * config/i386/i386.c (construct_container): Report error if
471         long double is used with disabled x87 float returns.
473 2013-06-20  Jan Hubicka  <jh@suse.cz>
475         * lto-cgraph.c (input_symtab): Do not set cgraph state.
477 2013-06-20  Joern Rennecke <joern.rennecke@embecosm.com>
479         PR rtl-optimization/57425
480         PR rtl-optimization/57569
481         * alias.c (write_dependence_p): Remove parameters mem_mode and
482         canon_mem_addr.  Add parameters x_mode, x_addr and x_canonicalized.
483         Changed all callers.
484         (canon_anti_dependence): Get comments and semantics in sync.
485         Add parameter mem_canonicalized.  Changed all callers.
486         * rtl.h (canon_anti_dependence): Update prototype.
488 2013-06-20  Richard Biener  <rguenther@suse.de>
490         * data-streamer-in.c (streamer_read_uhwi): Optimize single
491         byte case, inline streamer_read_uchar and defer section
492         overrun check.
494 2013-06-20  Richard Biener  <rguenther@suse.de>
496         PR tree-optimization/57584
497         * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
498         SSA names into the expanded expression that take part in
499         abnormal coalescing.
501 2013-06-19    <singhai@google.com>
503         * gcov.c (print_usage): Handle new option.
504         (process_args): Ditto.
505         (get_gcov_intermediate_filename): New function.
506         (output_intermediate_file): New function.
507         (output_gcov_file): New function
508         (generate_results): Handle new option.
509         (release_function): Relase demangled name.
510         (read_graph_file): Handle demangled name.
511         (output_lines): Ditto.
512         * doc/gcov.texi: Document gcov intermediate format.
514 2013-06-19  Vladimir Makarov  <vmakarov@redhat.com>
516         PR bootstrap/57604
517         * lra.c (emit_add3_insn, emit_add2_insn): New functions.
518         (lra_emit_add): Use the functions.  Add comment about Y as an
519         address segment.
521 2013-06-19  David Edelsohn  <dje.gcc@gmail.com>
523         PR driver/57652
524         * collect2.c (collect_atexit): New.
525         (collect_exit): Delete.
526         (main): Register collect_atexit with atexit.
527         (collect_wait): Change collect_exit to exit.
528         (do_wait): Same.
529         * collect2.h (collect_exit): Delete.
530         * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
532 2013-06-19  Wei Mi  <wmi@google.com>
534         PR rtl-optimization/57518
535         * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
536         if regno is used in paradoxical subreg.
537         (update_equiv_regs): Check pdx_subregs[regno] before
538         set a reg to be equivalent with a mem.
540 2013-06-19  Matthias Klose  <doko@ubuntu.com>
542         PR driver/57651
543         * file-find.h (find_a_file): Add a mode parameter.
544         * file-find.c (find_a_file): Likewise.
545         * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
546         with X_OK for the executables.
547         * collect2.c (main): Call find_a_file with X_OK.
549 2013-06-19  Steve Ellcey  <sellcey@mips.com>
551         PR target/56942
552         * config/mips/mips.md (casesi_internal_mips16_<mode>):
553         Use NEXT_INSN instead of next_real_insn.
555 2013-06-19  Jan Hubicka  <jh@suse.cz>
557         * cgraph.h (const_value_known_p): Replace by ...
558         (ctor_for_folding): .. this one.
559         * cgraphunit.c (process_function_and_variable_attributes): Use it.
560         * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
561         * expr.c (expand_expr_real_1): Likewise.
562         (string_constant): Likewise.
563         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
564         * ipa.c (process_references): Likewise.
565         (symtab_remove_unreachable_nodes): Likewise.
566         * ipa-inline-analysis.c (param_change_prob): Likewise.
567         * gimple-fold.c (canonicalize_constructor_val): Likewise.
568         (get_base_constructor): Likwise.
569         * varpool.c (varpool_remove_node): Likewise.
570         (varpool_remove_initializer): LIkewise.
571         (dump_varpool_node): LIkwise.
572         (const_value_known_p): Rewrite to ...
573         (ctor_for_folding): ... this one.
575 2013-06-19  Jakub Jelinek  <jakub@redhat.com>
577         PR driver/57651
578         * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
579         PERSONALITY in $PATH derived prefixes.
581 2013-06-19  Jeff Law  <law@redhat.com>
583         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
584         in comment.
586         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
587         (simplify_bitwise_binary): Use it to simpify certain binary ops on
588         booleans.
590 2013-06-19  Sofiane Naci  <sofiane.naci@arm.com>
592         * config/arm/vfp.md: Move VFP instruction classification documentation
593         to ...
594         * config/arm/arm.md: ... here.  Update instruction classification
595         documentation.
597 2013-06-19  Richard Earnshaw  <rearnsha@arm.com>
599         arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
600         (peepholes for eq(reg, not-0)): Ensure condition register is dead after
601         pattern.  Use more efficient sequences on ARMv5 and Thumb2.
603 2013-06-19  Steven Bosscher  <steven@gcc.gnu.org>
605         PR target/57609
606         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
607         with NEXT_INSN.  Use tablejump_p to check for jump table data
608         insns.
610 2013-06-19  Paolo Carlini  <paolo.carlini@oracle.com>
612         PR c++/56544
613         * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
614         that now in C++ the value is correct per the C++ standards.
616 2013-06-19  Richard Biener  <rguenther@suse.de>
618         * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
619         for global context.
621 2013-06-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
623         Revert:
624         2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
626         PR target/57609
627         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
628         with next_active_insn.
630 2013-06-18  Sriraman Tallam  <tmsriram@google.com>
632         * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
633         functions are inlined during failures to flag an error.
634         * tree-inline.c (expand_call_inline): Allow the error to be flagged
635         in early inline pass.
637 2013-06-18  H.J. Lu  <hongjiu.lu@intel.com>
639         * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
640         in comments.
642 2013-06-18  Julian Brown  <julian@codesourcery.com>
644         * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
645         Permit virtual register pre-reload if !strict.
646         (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
647         change.
648         * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
649         prototype.
650         * config/arm/neon.md (movmisalign<mode>): Use
651         neon_perm_struct_or_reg_operand instead of
652         neon_struct_or_register_operand.
653         (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
654         neon_permissive_struct_operand instead of neon_struct_operand.
655         * config/arm/constraints.md (Un, Um, Us): Adjust calls to
656         neon_vector_mem_operand.
657         * config/arm/predicates.md (neon_struct_operand): Adjust call to
658         neon_vector_mem_operand.
659         (neon_permissive_struct_operand): New.
660         (neon_struct_or_register_operand): Rename to...
661         (neon_perm_struct_or_reg_operand): This. Adjust call to
662         neon_vector_mem_operand.
664 2013-06-18  Richard Biener  <rguenther@suse.de>
666         * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
667         * lto-streamer.h: Include pointer-set.h.
668         (struct lto_decl_slot): Remove.
669         (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
670         Remove next_index entry.
671         (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
672         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
673         (lto_init_tree_ref_encoder): Adjust.
674         (lto_destroy_tree_ref_encoder): Likewise.
675         * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
676         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
677         (lto_output_decl_index): Adjust.
678         (lto_new_out_decl_state): Likewise.
679         (lto_record_function_out_decl_state): Likewise.
680         * lto-streamer-out.c (copy_function): Likewise.
682 2013-06-18  Richard Biener  <rguenther@suse.de>
684         * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
685         * cgraphunit.c: Include cfgloop.h.
686         (init_lowered_empty_function): Initialize the loop tree.
687         (assemble_thunk): Insert new BBs into loops.
689 2013-06-18  Richard Biener  <rguenther@suse.de>
691         * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
692         * tree-streamer.c (streamer_tree_cache_create): Make maintaining
693         the map from cache entry to cache index optional.
694         (streamer_tree_cache_replace_tree): Adjust accordingly.
695         (streamer_tree_cache_append): Likewise.
696         (streamer_tree_cache_delete): Likewise.
697         * lto-streamer-in.c (lto_data_in_create): Do not maintain the
698         streamer cache map from cache entry to cache index.
699         * lto-streamer-out.c (create_output_block): Adjust.
701 2013-06-18  Sofiane Naci  <sofiane.naci@arm.com>
703         * config/arm/arm.md (attribute "insn"): Move multiplication and
704         division attributes to...
705         (attribute "type"): ... here.  Remove mult.
706         (attribute "mul32"): New attribute.
707         (attribute "mul64"): Add umaal.
708         (*arm_mulsi3): Update attributes.
709         (*arm_mulsi3_v6): Likewise.
710         (*thumb_mulsi3): Likewise.
711         (*thumb_mulsi3_v6): Likewise.
712         (*mulsi3_compare0): Likewise.
713         (*mulsi3_compare0_v6): Likewise.
714         (*mulsi_compare0_scratch): Likewise.
715         (*mulsi_compare0_scratch_v6): Likewise.
716         (*mulsi3addsi): Likewise.
717         (*mulsi3addsi_v6): Likewise.
718         (*mulsi3addsi_compare0): Likewise.
719         (*mulsi3addsi_compare0_v6): Likewise.
720         (*mulsi3addsi_compare0_scratch): Likewise.
721         (*mulsi3addsi_compare0_scratch_v6): Likewise.
722         (*mulsi3subsi): Likewise.
723         (*mulsidi3adddi): Likewise.
724         (*mulsi3addsi_v6): Likewise.
725         (*mulsidi3adddi_v6): Likewise.
726         (*mulsidi3_nov6): Likewise.
727         (*mulsidi3_v6): Likewise.
728         (*umulsidi3_nov6): Likewise.
729         (*umulsidi3_v6): Likewise.
730         (*umulsidi3adddi): Likewise.
731         (*umulsidi3adddi_v6): Likewise.
732         (*smulsi3_highpart_nov6): Likewise.
733         (*smulsi3_highpart_v6): Likewise.
734         (*umulsi3_highpart_nov6): Likewise.
735         (*umulsi3_highpart_v6): Likewise.
736         (mulhisi3): Likewise.
737         (*mulhisi3tb): Likewise.
738         (*mulhisi3bt): Likewise.
739         (*mulhisi3tt): Likewise.
740         (maddhisi4): Likewise.
741         (*maddhisi4tb): Likewise.
742         (*maddhisi4tt): Likewise.
743         (maddhidi4): Likewise.
744         (*maddhidi4tb): Likewise.
745         (*maddhidi4tt): Likewise.
746         (divsi3): Likewise.
747         (udivsi3): Likewise.
748         * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
749         (thumb2_mulsi_short_compare0): Likewise.
750         (thumb2_mulsi_short_compare0_scratch): Likewise.
751         * config/arm/arm1020e.md (1020mult1): Update attribute change.
752         (1020mult2): Likewise.
753         (1020mult3): Likewise.
754         (1020mult4): Likewise.
755         (1020mult5): Likewise.
756         (1020mult6): Likewise.
757         * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
758         change.
759         (cortex_a15_mult64): Likewise.
760         (cortex_a15_sdiv): Likewise.
761         (cortex_a15_udiv): Likewise.
762         * config/arm/arm1026ejs.md (mult1): Update attribute change.
763         (mult2): Likewise.
764         (mult3): Likewise.
765         (mult4): Likewise.
766         (mult5): Likewise.
767         (mult6): Likewise.
768         * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
769         (pj4_ir_div): Likewise.
770         * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
771         (11_mult2): Likewise.
772         (11_mult3): Likewise.
773         (11_mult4): Likewise.
774         (11_mult5): Likewise.
775         (11_mult6): Likewise.
776         (11_mult7): Likewise.
777         * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
778         (cortex_a8_mla): Likewise.
779         (cortex_a8_mull): Likewise.
780         (cortex_a8_smulwy): Likewise.
781         (cortex_a8_smlald): Likewise.
782         * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
783         * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
784         (cortex_r4_mul_3): Likewise.
785         (cortex_r4_mla_4): Likewise.
786         (cortex_r4_mla_3): Likewise.
787         (cortex_r4_smlald): Likewise.
788         (cortex_r4_mull): Likewise.
789         (cortex_r4_sdiv): Likewise.
790         (cortex_r4_udiv): Likewise.
791         * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
792         (cortex_a7_idiv): Likewise.
793         * config/arm/arm926ejs.md (9_mult1): Update attribute change.
794         (9_mult2): Likewise.
795         (9_mult3): Likewise.
796         (9_mult4): Likewise.
797         (9_mult5): Likewise.
798         (9_mult6): Likewise.
799         * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
800         (cortex_a53_sdiv): Likewise.
801         (cortex_a53_udiv): Likewise.
802         * config/arm/fa726te.md (726te_mult_op): Update attribute change.
803         * config/arm/fmp626.md (mp626_mult1): Update attribute change.
804         (mp626_mult2): Likewise.
805         (mp626_mult3): Likewise.
806         (mp626_mult4): Likewise.
807         * config/arm/fa526.md (526_mult1): Update attribute change.
808         (526_mult2): Likewise.
809         * config/arm/arm-generic.md (mult): Update attribute change.
810         (mult_ldsched_strongarm): Likewise.
811         (mult_ldsched): Likewise.
812         (multi_cycle): Likewise.
813         * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
814         * config/arm/fa606te.md (606te_mult1): Update attribute change.
815         (606te_mult2): Likewise.
816         (606te_mult3): Likewise.
817         (606te_mult4): Likewise.
818         * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
819         (cortex_a9_mac16): Likewise.
820         (cortex_a9_multiply): Likewise.
821         (cortex_a9_mac): Likewise.
822         (cortex_a9_multiply_long): Likewise.
823         * config/arm/fa626te.md (626te_mult1): Update attribute change.
824         (626te_mult2): Likewise.
825         (626te_mult3): Likewise.
826         (626te_mult4): Likewise.
828 2013-06-18  Richard Biener  <rguenther@suse.de>
830         PR lto/57334
831         * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
833 2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
835         PR target/57609
836         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
837         with next_active_insn.
839 2013-06-18  Alan Modra  <amodra@gmail.com>
841         * config/rs6000/rs6000.h (enum data_align): New.
842         (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
843         (DATA_ABI_ALIGNMENT): Define.
844         (CONSTANT_ALIGNMENT): Correct comment.
845         * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
846         * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
848 2013-06-17  David Malcolm  <dmalcolm@redhat.com>
850         * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
851         ATTRIBUTE_UNUSED marking.
853 2013-06-17  Sofiane Naci  <sofiane.naci@arm.com>
855         * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
856         alternative and update.
857         (aarch64_dup_lanedi): Delete.
858         * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
859         * config/aarch64/aarch64-simd-builtins.def: Update.
861 2013-06-17  Richard Biener  <rguenther@suse.de>
863         * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
864         (lto_input_scc): Declare.
865         (lto_input_tree_1): Likewise.
866         (struct lto_stats_d): Add num_tree_bodies_output and
867         num_pickle_refs_output.
868         * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
869         (lto_read_tree_1): Split out from ...
870         (lto_read_tree): ... this.
871         (lto_input_scc): New function.
872         (lto_input_tree_1): Split out from ...
873         (lto_input_tree): ... this.  Handle LTO_tree_scc.
874         (lto_data_in_create): Create the streamer cache without hashes.
875         * lto-streamer-out.c (create_output_block): Create the streamer
876         cache with hashes when not doing WPA.
877         (lto_write_tree_1): Split out from ...
878         (lto_write_tree): ... this.
879         (get_symbol_initial_value): New function.
880         (lto_output_tree_1): Split out from ...
881         (lto_output_tree): ... this.  Write trees as series of SCCs
882         using a DFS walk via DFS_write_tree.
883         (struct sccs, struct scc_entry): New types.
884         (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
885         (DFS_write_tree_body): New function.
886         (DFS_write_tree): Likewise.
887         (hash_tree): Likewise.
888         (scc_entry_compare): Likewise.
889         (hash_scc): Likewise.
890         (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
891         * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
892         TREE_CHAIN as regular reference.
893         (streamer_read_integer_cst): Remove.
894         (streamer_get_pickled_tree): Adjust.
895         * tree-streamer-out.c (streamer_write_chain): Disable streaming
896         of DECL_EXTERNALs in BLOCK_VARS for now.
897         (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
898         reference.
899         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
900         Add hash value argument and record that if hashes are recorded
901         in the cache.
902         (streamer_tree_cache_insert_1): Adjust.
903         (streamer_tree_cache_insert): Likewise.
904         (streamer_tree_cache_insert_at): Rename to ...
905         (streamer_tree_cache_replace_tree): ... this and adjust.
906         (streamer_tree_cache_append): Adjust.
907         (record_common_node): Likewise.
908         (streamer_tree_cache_create): Add argument whether to
909         record hash values together with trees.
910         (streamer_tree_cache_delete): Adjust.
911         * tree-streamer.h (struct streamer_tree_cache_d): Add
912         vector of hashes.
913         (streamer_read_integer_cst): Remove.
914         (streamer_tree_cache_insert): Adjust.
915         (streamer_tree_cache_append): Likewise.
916         (streamer_tree_cache_insert_at): Rename to ...
917         (streamer_tree_cache_replace_tree): ... this and adjust.
918         (streamer_tree_cache_create): Add argument whether to record hashes.
919         (streamer_tree_cache_get): Rename to ...
920         (streamer_tree_cache_get_tree): ... this.
921         (streamer_tree_cache_get_hash): New function.
922         * tree.c (cache_integer_cst): New function.
923         * tree.h (cache_integer_cst): Declare.
924         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
925         * lto-symtab.c (lto_varpool_replace_node): Only release
926         DECL_INITIAL of non-prevailing decls.
927         * varpool.c (varpool_remove_initializer): Do not release
928         DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
930 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
932         * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
933         (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
934         * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
935         (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
936         (mul<mode>3_mul3): Handle TARGET_MIPS5900.
937         (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
938         (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
939         (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
940         instead of TARGET_64BIT.
941         (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
942         Require ISA_HAS_<D>DIV.
944 2013-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
946         * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
947         (mips*-*-linux*): Move default with_llsc setting to where other
948         defaults are set.
949         (mips*-*-vxworks*): Move with_arch default from with_cpu block to
950         with_arch block.
951         (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
952         Likewise.  Remove default with_tune setting.  Move default float
953         setting to its own block.  Handle with_llsc in the same block as above.
955 2013-06-16  Joern Rennecke <joern.rennecke@embecosm.com>
957         PR rtl-optimization/57425
958         PR rtl-optimization/57569
959         * alias.c (write_dependence_p): Add new parameters mem_mode,
960         canon_mem_addr and mem_canonicalized.  Change type of writep to bool.
961         Changed all callers.
962         (canon_anti_dependence): New function.
963         * cse.c (check_dependence): Use canon_anti_dependence.
964         * cselib.c (cselib_invalidate_mem): Likewise.
965         * rtl.h (canon_anti_dependence): Declare.
967 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
969         * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
970         * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
971         ".set mips3" for 64-bit targets.
973 2013-06-15  Dehao Chen  <dehao@google.com>
975         * tree-flow.h (gimple_check_call_matching_types): Add new argument.
976         * gimple-low.c (gimple_check_call_matching_types): Likewise.
977         (gimple_check_call_args): Likewise.
978         * value-prof.c (check_ic_target): Likewise.
979         * ipa-inline.c (early_inliner): Likewise.
980         * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
981         * cgraph.c (cgraph_create_edge_1): Likewise.
982         (cgraph_make_edge_direct): Likewise.
984 2013-06-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
986         PR target/57615
987         * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
988         rs6000_output_move_128bit to handle emitting quad memory
989         operations.  Set attribute length to 8 bytes.
991 2013-06-14  Vidya Praveen <vidyapraveen@arm.com>
993         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
994         New pattern.
995         (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
996         (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
997         (aarch64_<su>mlsl<mode>): Likewise.
999 2013-06-14  Mike Stump  <mikestump@comcast.net>
1001         * Makefile.in (TARGET_H): Add insn-codes.h.
1003 2013-06-14  Alan Modra  <amodra@gmail.com>
1005         PR middle-end/57134
1006         PR middle-end/57586
1007         * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
1008         EXPAND_MEMORY and EXPAND_WRITE to recursive call.  Don't use
1009         bitfield expansion when EXPAND_MEMORY.
1010         (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
1012 2013-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
1014         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1015         test for clearing quad memory on 32-bit later.
1017 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
1019         * fold-const.c (negate_expr_p): Handle VECTOR_CST.
1020         (fold_negate_expr): Likewise.
1021         (fold_real_zero_addition_p): Handle vectors.
1022         (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
1024 2013-06-14  Alan Modra  <amodra@gmail.com>
1026         * varasm.c (force_const_mem): Revert 2013-06-07 change.
1028 2013-06-13  Jan Hubicka  <jh@suse.cz>
1030         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
1031         Local comdats are not externally visible.
1032         * symtab.c (dump_symtab_base): Dump externally visible.
1033         (verify_symtab_base): Verify back links in the symtab hash.
1035 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
1037         * fold-const.c (operand_equal_p): Consider NOP_EXPR and
1038         CONVERT_EXPR as equal nodes.
1040 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
1042         * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
1044 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
1046         * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
1047         Generalize to complex and vector.
1048         * tree.c (build_all_ones_cst): New function.
1049         * tree.h (build_all_ones_cst): Declare it.
1051 2013-06-13  Alan Modra  <amodra@gmail.com>
1053         * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
1054         * config/rs6000/rs6000.md (signbittf2): New insn.
1055         (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
1056         (abstf2_internal, cmptf_internal2): Likewise.
1057         * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
1059 2013-06-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
1060             Pat Haugen <pthaugen@us.ibm.com>
1061             Peter Bergner <bergner@vnet.ibm.com>
1063         * config/rs6000/rs6000.c (emit_load_locked): Add support for
1064         power8 byte, half-word, and quad-word atomic instructions.
1065         (emit_store_conditional): Likewise.
1066         (rs6000_expand_atomic_compare_and_swap): Likewise.
1067         (rs6000_expand_atomic_op): Likewise.
1069         * config/rs6000/sync.md (larx): Add new modes for power8.
1070         (stcx): Likewise.
1071         (AINT): New mode iterator to include TImode as well as normal
1072         integer modes on power8.
1073         (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
1074         that VSX registers are not considered.  Use AINT mode iterator
1075         instead of INT1 to allow inclusion of quad word atomic operations
1076         on power8.
1077         (load_locked<mode>): Likewise.
1078         (store_conditional<mode>): Likewise.
1079         (atomic_compare_and_swap<mode>): Likewise.
1080         (atomic_exchange<mode>): Likewise.
1081         (atomic_nand<mode>): Likewise.
1082         (atomic_fetch_<fetchop_name><mode>): Likewise.
1083         (atomic_nand_fetch<mode>): Likewise.
1084         (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
1085         each type.
1086         (ATOMIC): On power8, add QImode, HImode modes.
1087         (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
1088         modes that promote to SImode.
1089         (load_lockedti): Convert TImode arguments to PTImode, so that we
1090         get a guaranteed even/odd register pair.
1091         (load_lockedpti): Likewise.
1092         (store_conditionalti): Likewise.
1093         (store_conditionalpti): Likewise.
1095         * config/rs6000/rs6000.md (QHI): New mode iterator for power8
1096         atomic load/store instructions.
1097         (HSI): Likewise.
1099 2013-06-12  Richard Sandiford  <rdsandiford@googlemail.com>
1101         * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
1102         loads.
1103         (insn_count): New attribute, with most cases extracted from...
1104         (length): ...here.  Redefine most cases in terms of insn_count.
1105         (single_insn): Delete.
1106         (can_delay): Use insn_count to check for single instructions.
1107         (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
1108         (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
1109         (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
1110         (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
1111         (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
1112         (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
1113         (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
1114         (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
1115         (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
1116         (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
1117         rather than "length".
1118         (tls_get_tp_<mode>): Likewise.  Remove redundant "no_delay" attribute.
1119         * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
1120         Use "insn_count" rather than "length".
1121         * config/mips/mips-dsp.md
1122         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
1123         (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
1124         length attributes.
1126 2013-06-12  Marc Glisse  <marc.glisse@inria.fr>
1128         PR tree-optimization/57361
1129         * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
1131 2013-06-12  Sofiane Naci  <sofiane.naci@arm.com>
1133         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
1134         to split.
1135         (aarch64_simd_combine<mode>): New instruction expansion.
1136         * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
1137         function prototype.
1138         * config/aarch64/aarch64.c (aarch64_split_combine): New function.
1139         * config/aarch64/iterators.md (Vdbl): Add entry for DF.
1141 2013-06-12  Jan Hubicka  <jh@suse.cz>
1143         * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
1144         decl has when in streaming stage.
1145         * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
1146         * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
1148 2013-06-12  Roland Stigge <stigge@antcom.de>
1150         PR target/57578
1151         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
1153 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
1155         PR tree-optimization/57537
1156         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
1157         vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
1159 2013-06-12  Richard Biener  <rguenther@suse.de>
1161         * data-streamer.h (streamer_write_char_stream): CSE
1162         obs->current_pointer.
1163         * data-streamer-out.c (streamer_write_uhwi_stream): Inline
1164         streamer_write_char_stream manually and optimize the resulting loop.
1165         (streamer_write_hwi_stream): Likewise.
1167 2013-06-12  Jan Hubicka  <jh@suse.cz>
1169         * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
1170         * cgraph.h (varpool_create_empty_node): Declare.
1171         * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
1172         duplicated nodes.
1173         * symtab.c (symtab_unregister_node): Be lax about missin entries
1174         in node hash.
1175         (symtab_get_node): Update comment.
1176         * varpool.c (varpool_create_empty_node): Break out from ...
1177         (varpool_node_for_decl): ... here.
1178         * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
1180 2013-06-12  Eric Botcazou  <ebotcazou@adacore.com>
1182         * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
1183         <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
1184         part.  Use straight-line flow at the end.
1185         <COMPONENT_REF>: Remove superfluous else.
1186         <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
1188 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
1190         PR target/56564
1191         * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
1192         target hook even for !TREE_PUBLIC decls.  If no resolution info
1193         is available, return false for common and external decls.
1195 2013-06-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
1197         * config/rl78/constraints.md (U): New constraint.
1198         * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
1199         valloc attribute.
1201 2013-06-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
1203         PR target/57589
1204         * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
1205         to allow returning address to AT_PLATFORM name.
1207 2013-06-11  Jan Hubicka  <jh@suse.cz>
1209         * cgraph.c (cgraph_create_function_alias): Set weakref flag.
1210         * cgraph.h (symtab_node_base): Add weakref flag.
1211         * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
1212         (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
1213         (output_weakrefs): Use weakref flag.
1214         * fold-const.c (simple_operand_p): Handle WEAK.
1215         * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
1216         * ipa.c (varpool_externally_visible_p): Drop weakref.
1217         (function_and_variable_visibility): Update comment; fix weakref
1218         sanity checks; do not clear DECL_WEAK on them.
1219         * lto-cgraph.c (lto_output_node): update.
1220         (lto_output_varpool_node): Update.
1221         (input_overwrite_node): Update.
1222         (input_node): Update.
1223         (input_varpool_node): Update.
1224         * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
1225         (lto_symtab_merge_symbols): Add sanity check.
1226         (lto_symtab_prevailing_decl): Do not special case weakrefs.
1227         * passes.c (rest_of_decl_compilation): Set static flag, too.
1228         * symtab.c (dump_symtab_base): Dump weakref.
1229         (verify_symtab_base): Sanity check weakrefs.
1230         (symtab_make_decl_local): Remove duplicated code.
1231         (symtab_alias_ultimate_target): Simplify.
1232         * varpool.c (varpool_create_variable_alias): Set weakref flag.
1234 2013-06-11  DJ Delorie  <dj@redhat.com>
1236         * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
1237         (rl78_unwind_word_mode): New.
1239 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
1241         * final.c (debug_prefix_maps): Make static.
1243 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
1245         * function.c (initial_trampoline): Remove stray copy.
1247 2013-06-11  Sofiane Naci  <sofiane.naci@arm.com>
1249         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
1251 2013-06-11  Martin Jambor  <mjambor@suse.cz>
1253         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
1254         within bounds at the beginning of the function.
1256 2013-06-11  Alan Modra  <amodra@gmail.com>
1258         * varasm.c (get_section): Don't die on !DECL_P decl.  Tidy error
1259         reporting.
1260         (get_named_section): Don't NULL !DECL_P decl.
1262 2013-06-11  Igor Zamyatin  <igor.zamyatin@intel.com>
1264         * doc/invoke.texi (core-avx2): Document.
1265         (slm): Likewise.
1266         (atom): Updated with MOVBE.
1268 2013-06-11  Richard Biener  <rguenther@suse.de>
1270         * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
1272 2013-06-11  Anton Blanchard  <anton@samba.org>
1274         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
1275         correct shift value in little-endian mode.
1277 2013-06-11  Jakub Jelinek  <jakub@redhat.com>
1279         PR target/56564
1280         * varasm.c (get_variable_align): Move #endif to the right place.
1282 2013-06-10  Cary Coutant  <ccoutant@google.com>
1284         * dwarf2out.c (hash_external_ref): Use die_symbol or signature
1285         for hash so that hash table traversal order is deterministic.
1287 2013-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
1288             Pat Haugen <pthaugen@us.ibm.com>
1289             Peter Bergner <bergner@vnet.ibm.com>
1291         * config/rs6000/vector.md (GPR move splitter): Do not split moves
1292         of vectors in GPRS if they are direct moves or quad word load or
1293         store moves.
1295         * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
1296         declaration.
1297         (direct_move_p): Likewise.
1298         (quad_load_store_p): Likewise.
1300         * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
1301         classes into bins based on the physical register type.
1302         (reg_class_to_reg_type): Likewise.
1303         (IS_STD_REG_TYPE): Likewise.
1304         (IS_FP_VECT_REG_TYPE): Likewise.
1305         (reload_fpr_gpr): Arrays to determine what insn to use if we can
1306         use direct move instructions.
1307         (reload_gpr_vsx): Likewise.
1308         (reload_vsx_gpr): Likewise.
1309         (rs6000_init_hard_regno_mode_ok): Precalculate the register type
1310         information that is a simplification of register classes.  Also
1311         precalculate direct move reload helpers.
1312         (direct_move_p): New function to return true if the operation can
1313         be done as a direct move instruciton.
1314         (quad_load_store_p): New function to return true if the operation
1315         is a quad memory operation.
1316         (rs6000_legitimize_address): If quad memory, only allow register
1317         indirect for TImode addresses.
1318         (rs6000_legitimate_address_p): Likewise.
1319         (enum reload_reg_type): Delete, replace with rs6000_reg_type.
1320         (rs6000_reload_register_type): Likewise.
1321         (register_to_reg_type): Return register type.
1322         (rs6000_secondary_reload_simple_move): New helper function for
1323         secondary reload and secondary memory needed to identify anything
1324         that is a simple move, and does not need reloading.
1325         (rs6000_secondary_reload_direct_move): New helper function for
1326         secondary reload to identify cases that can be done with several
1327         instructions via the direct move instructions.
1328         (rs6000_secondary_reload_move): New helper function for secondary
1329         reload to identify moves between register types that can be done.
1330         (rs6000_secondary_reload): Add support for quad memory operations
1331         and for direct move.
1332         (rs6000_secondary_memory_needed): Likewise.
1333         (rs6000_debug_secondary_memory_needed): Change argument names.
1334         (rs6000_output_move_128bit): New function to return the move to
1335         use for 128-bit moves, including knowing about the various
1336         limitations of quad memory operations.
1338         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
1339         memory operations.  call rs6000_output_move_128bit for the actual
1340         instruciton(s) to generate.
1341         (vsx_movti_64bit): Likewise.
1343         * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
1344         (UNSPEC_P8V_MTVSRWZ): Likewise.
1345         (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
1346         (UNSPEC_P8V_MTVSRD): Likewise.
1347         (UNSPEC_P8V_XXPERMDI): Likewise.
1348         (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
1349         (UNSPEC_FUSION_GPR): Likewise.
1350         (FMOVE128_GPR): New iterator for direct move.
1351         (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
1352         (f32_sv): Likewise.
1353         (f32_dm): Likewise.
1354         (zero_extend<mode>di2_internal1): Add support for power8 32-bit
1355         loads and direct move instructions.
1356         (zero_extendsidi2_lfiwzx): Likewise.
1357         (extendsidi2_lfiwax): Likewise.
1358         (extendsidi2_nocell): Likewise.
1359         (floatsi<mode>2_lfiwax): Likewise.
1360         (lfiwax): Likewise.
1361         (floatunssi<mode>2_lfiwzx): Likewise.
1362         (lfiwzx): Likewise.
1363         (fix_trunc<mode>_stfiwx): Likewise.
1364         (fixuns_trunc<mode>_stfiwx): Likewise.
1365         (mov<mode>_hardfloat, 32-bit floating point): Likewise.
1366         (mov<move>_hardfloat64, 64-bit floating point): Likewise.
1367         (parity<mode>2_cmpb): Set length/type attr.
1368         (unnamed shift right patterns, mov<mode>_internal2): Change type attr
1369         for 'mr.' to fast_compare.
1370         (bpermd_<mode>): Change type attr to popcnt.
1371         (p8_fmrgow_<mode>): New insns for power8 direct move support.
1372         (p8_mtvsrwz_1): Likewise.
1373         (p8_mtvsrwz_2): Likewise.
1374         (reload_fpr_from_gpr<mode>): Likewise.
1375         (p8_mtvsrd_1): Likewise.
1376         (p8_mtvsrd_2): Likewise.
1377         (p8_xxpermdi_<mode>): Likewise.
1378         (reload_vsx_from_gpr<mode>): Likewise.
1379         (reload_vsx_from_gprsf): Likewise.
1380         (p8_mfvsrd_3_<mode>): LIkewise.
1381         (reload_gpr_from_vsx<mode>): Likewise.
1382         (reload_gpr_from_vsxsf): Likewise.
1383         (p8_mfvsrd_4_disf): Likewise.
1384         (multi-word GPR splits): Do not split direct moves or quad memory
1385         operations.
1387 2013-06-10  David Malcolm  <dmalcolm@redhat.com>
1389         * tree-into-ssa.c (interesting_blocks): Make static.
1391 2013-06-10  Jakub Jelinek  <jakub@redhat.com>
1393         PR target/56564
1394         * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
1395         CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
1396         Use DATA_ABI_ALIGNMENT for that case instead if defined.
1397         (get_variable_align): New function.
1398         (get_variable_section, emit_bss, emit_common,
1399         assemble_variable_contents, place_block_symbol): Use
1400         get_variable_align instead of DECL_ALIGN.
1401         (assemble_noswitch_variable): Add align argument, use it
1402         instead of DECL_ALIGN.
1403         (assemble_variable): Adjust caller.  Use get_variable_align
1404         instead of DECL_ALIGN.
1405         * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
1406         caller.
1407         (DATA_ABI_ALIGNMENT): Define.
1408         * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
1409         * config/i386/i386.c (x86_data_alignment): Add opt argument.  If
1410         opt is false, only return the psABI mandated alignment increase.
1411         * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
1412         (DATA_ABI_ALIGNMENT): ... this.
1413         * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
1414         (DATA_ABI_ALIGNMENT): ... this.
1415         * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
1416         * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
1417         (DATA_ABI_ALIGNMENT): ... this.
1418         * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
1419         * doc/tm.texi: Regenerated.
1421 2013-06-10  Uros Bizjak  <ubizjak@gmail.com>
1423         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
1424         cmp_code to construct REG_EQUAL note.
1426 2013-06-09  Jakub Jelinek  <jakub@redhat.com>
1428         PR target/57568
1429         * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
1430         that operands[2] doesn't overlap with operands[0].
1432 2013-06-09  David Edelsohn  <dje.gcc@gmail.com>
1433             Jan Hubicka  <jh@suse.cz>
1435         * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
1436         hack to mark symbols as used.
1438 2013-06-08  Vladimir Makarov  <vmakarov@redhat.com>
1440         PR rtl-optimization/57559
1441         * lra-constraints.c (process_alt_operands): Don't discourage
1442         memory with known offset for offsetable memory constraint.
1443         * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
1445 2013-06-08  Eric Botcazou  <ebotcazou@adacore.com>
1447         * varasm.c (struct oc_local_state): Reorder fields.
1448         (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
1449         and adjust accordingly.
1450         (output_constructor): Reorder initialization code and adjust call to
1451         output_constructor_bitfield.
1453 2013-06-07  Jan Hubicka  <jh@suse.cz>
1455         * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
1457 2013-06-07  David Malcolm  <dmalcolm@redhat.com>
1459         * tree-object-size.c (unknown): Make const.
1461 2013-06-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1463         * config/s390/s390.md (cpu_facility): Add cpu_zarch.
1464         ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
1465         for last alternative in the cpu_facility attribute.
1467 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1469         PR target/56315
1470         * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
1471         (xordi3): Change operand 2 constraint to arm_xordi_operand.
1472         * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
1473         * config/arm/constraints.md (Dg): New constraint.
1474         * config/arm/neon.md (xordi3_neon): Remove.
1475         (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
1476         * config/arm/predicates.md (arm_xordi_operand): New predicate.
1478 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1480         * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
1481         Clean up alternatives.
1483 2013-06-07  Alan Modra  <amodra@gmail.com>
1485         * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
1486         va_list_gpr_size.
1488 2013-06-07  Alan Modra  <amodra@gmail.com>
1490         * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
1492 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1494         * config/arm/constraints.md (Df): New constraint.
1495         * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
1496         Correct length attribute for last two alternatives.
1498 2013-06-07  Alan Modra  <amodra@gmail.com>
1500         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
1501         override user -mfp-in-toc.
1502         (offsettable_ok_by_alignment): Consider just the current access
1503         rather than the whole object, unless BLKmode.  Handle
1504         CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
1505         (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
1506         for -mcmodel=medium.
1507         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
1508         override user -mfp-in-toc or -msum-in-toc.  Default to
1509         -mno-fp-in-toc for -mcmodel=medium.
1511 2013-06-06  DJ Delorie  <dj@redhat.com>
1513         * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
1514         TARGET_VALID_POINTER_MODE.
1516 2013-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
1517             Pat Haugen <pthaugen@us.ibm.com>
1518             Peter Bergner <bergner@vnet.ibm.com>
1520         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
1521         Document new power8 builtins.
1523         * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
1524         condition code register, to allow 128-bit logical operations to be
1525         done in the VSX or GPR registers.
1526         (nor<mode>3): Use the canonical form for nor.
1527         (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
1528         vclz*, and vpopcnt* vector instructions.
1529         (nand<mode>3): Likewise.
1530         (orc<mode>3): Likewise.
1531         (clz<mode>2): LIkewise.
1532         (popcount<mode>2): Likewise.
1534         * config/rs6000/predicates.md (int_reg_operand): Rework tests so
1535         that only the GPRs are recognized.
1537         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1538         support for new power8 builtins.
1540         * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
1541         builtin functions.
1542         (xscvdpspn): Likewise.
1543         (vclz): Likewise.
1544         (vclzb): Likewise.
1545         (vclzh): Likewise.
1546         (vclzw): Likewise.
1547         (vclzd): Likewise.
1548         (vpopcnt): Likewise.
1549         (vpopcntb): Likewise.
1550         (vpopcnth): Likewise.
1551         (vpopcntw): Likewise.
1552         (vpopcntd): Likewise.
1553         (vgbbd): Likewise.
1554         (vmrgew): Likewise.
1555         (vmrgow): Likewise.
1556         (eqv): Likewise.
1557         (eqv_v16qi3): Likewise.
1558         (eqv_v8hi3): Likewise.
1559         (eqv_v4si3): Likewise.
1560         (eqv_v2di3): Likewise.
1561         (eqv_v4sf3): Likewise.
1562         (eqv_v2df3): Likewise.
1563         (nand): Likewise.
1564         (nand_v16qi3): Likewise.
1565         (nand_v8hi3): Likewise.
1566         (nand_v4si3): Likewise.
1567         (nand_v2di3): Likewise.
1568         (nand_v4sf3): Likewise.
1569         (nand_v2df3): Likewise.
1570         (orc): Likewise.
1571         (orc_v16qi3): Likewise.
1572         (orc_v8hi3): Likewise.
1573         (orc_v4si3): Likewise.
1574         (orc_v2di3): Likewise.
1575         (orc_v4sf3): Likewise.
1576         (orc_v2df3): Likewise.
1578         * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
1579         allow power8 quad mode in 64-bit.
1580         (rs6000_builtin_vectorized_function): Add support to vectorize
1581         ISA 2.07 count leading zeros, population count builtins.
1582         (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
1583         V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
1584         (builtin_function_type): Add vgbbd builtin function which takes an
1585         unsigned argument.
1586         (altivec_expand_vec_perm_const): Add support for new power8 merge
1587         instructions.
1589         * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
1590         that does not include TImdoe for use with 32-bit.
1591         (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
1592         instructions.
1593         (UNSPEC_VSX_CVDPSPN): Likewise.
1594         (vsx_xscvdpspn): Likewise.
1595         (vsx_xscvspdpn): Likewise.
1596         (vsx_xscvdpspn_scalar): Likewise.
1597         (vsx_xscvspdpn_directmove): Likewise.
1598         (vsx_and<mode>3): Split logical operations into 32-bit and
1599         64-bit. Add support to do logical operations on TImode as well as
1600         VSX vector types.  Allow logical operations to be done in either
1601         VSX registers or in general purpose registers in 64-bit mode.  Add
1602         splitters if GPRs were used. For AND, add clobber of CCmode to
1603         allow use of ANDI on GPRs.  Rewrite nor to use the canonical RTL
1604         encoding.
1605         (vsx_and<mode>3_32bit): Likewise.
1606         (vsx_and<mode>3_64bit): Likewise.
1607         (vsx_ior<mode>3): Likewise.
1608         (vsx_ior<mode>3_32bit): Likewise.
1609         (vsx_ior<mode>3_64bit): Likewise.
1610         (vsx_xor<mode>3): Likewise.
1611         (vsx_xor<mode>3_32bit): Likewise.
1612         (vsx_xor<mode>3_64bit): Likewise.
1613         (vsx_one_cmpl<mode>2): Likewise.
1614         (vsx_one_cmpl<mode>2_32bit): Likewise.
1615         (vsx_one_cmpl<mode>2_64bit): Likewise.
1616         (vsx_nor<mode>3): Likewise.
1617         (vsx_nor<mode>3_32bit): Likewise.
1618         (vsx_nor<mode>3_64bit): Likewise.
1619         (vsx_andc<mode>3): Likewise.
1620         (vsx_andc<mode>3_32bit): Likewise.
1621         (vsx_andc<mode>3_64bit): Likewise.
1622         (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
1623         and xxlorc instructions.
1624         (vsx_eqv<mode>3_64bit): Likewise.
1625         (vsx_nand<mode>3_32bit): Likewise.
1626         (vsx_nand<mode>3_64bit): Likewise.
1627         (vsx_orc<mode>3_32bit): Likewise.
1628         (vsx_orc<mode>3_64bit): Likewise.
1630         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
1632         * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
1633         instruction.
1634         (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
1635         (p8_vmrgow): Likewise.
1636         (altivec_and<mode>3): Add clobber of CCmode to allow AND using
1637         GPRs to be split under VSX.
1638         (p8v_clz<mode>2): Add power8 count leading zero support.
1639         (p8v_popcount<mode>2): Add power8 population count support.
1640         (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
1641         support.
1643         * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
1644         instruction.
1646         * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
1647         builtin functions.
1648         (vec_nand): Likewise.
1649         (vec_vclz): Likewise.
1650         (vec_vclzb): Likewise.
1651         (vec_vclzd): Likewise.
1652         (vec_vclzh): Likewise.
1653         (vec_vclzw): Likewise.
1654         (vec_vgbbd): Likewise.
1655         (vec_vmrgew): Likewise.
1656         (vec_vmrgow): Likewise.
1657         (vec_vpopcnt): Likewise.
1658         (vec_vpopcntb): Likewise.
1659         (vec_vpopcntd): Likewise.
1660         (vec_vpopcnth): Likewise.
1661         (vec_vpopcntw): Likewise.
1663 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
1665         PR rtl-optimization/57468
1666         * config/i386/i386.c (inline_secondary_memory_needed): Ignore
1667         spilled pseudos.
1669 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
1671         PR rtl-optimization/57459
1672         * lra-constraints.c (update_ebb_live_info): Fix typo for operand
1673         type when setting live regs.
1675 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
1677         * config/s390/s390.opt (mlra): New option.
1678         * config/s390/s390.c (s390_decompose_address): Check displacement
1679         for all registers for LRA.
1680         (s390_secondary_reload): Don't used secondary reloads for LRA.
1681         (s390_lra_p): New function.
1682         (TARGET_LRA_P): Define.
1683         * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
1684         of attribute cpu_facility to zarch for the last alternative.
1685         (*cmpmem_short): Ditto.
1687 2013-06-06  Eric Botcazou  <ebotcazou@adacore.com>
1689         * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
1690         (arm_compute_static_chain_stack_bytes): Use it.  Tidy up.
1691         (arm_expand_prologue): Likewise.
1693 2013-06-06  Teresa Johnson  <tejohnson@google.com>
1695         PR c++/53743
1696         * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
1697         as this is now done by redirect_edge_and_branch_force.
1698         * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
1699         barriers, and fix interaction with splitting.
1700         * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
1701         * cfgcleanup.c (try_forward_edges): Fix early return value to properly
1702         reflect changes made in the routine.
1703         * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
1704         (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
1705         since this is called in cfglayout mode, and replace partition fixup
1706         with assert as that is now done by force_nonfallthru_and_redirect.
1707         (add_reg_crossing_jump_notes): Handle the fact that some jumps may
1708         already be marked with region crossing note.
1709         (insert_section_boundary_note): Make non-static, gate on flag
1710         has_bb_partition, rewrite to also check for multiple partitions.
1711         (rest_of_handle_reorder_blocks): Remove call to
1712         insert_section_boundary_note, now done later during free_cfg.
1713         (duplicate_computed_gotos): Don't duplicate partition crossing edge.
1714         * bb-reorder.h (insert_section_boundary_note): Declare.
1715         * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
1716         * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
1717         invoke insert_section_boundary_note.
1718         (try_redirect_by_replacing_jump): Remove unnecessary
1719         check for region crossing note.
1720         (fixup_partition_crossing): New function.
1721         (rtl_redirect_edge_and_branch): Fixup partition boundaries.
1722         (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
1723         in non-cfglayout mode.
1724         (force_nonfallthru_and_redirect): Fixup partition boundaries,
1725         remove old code that tried to do this. Emit barrier correctly
1726         when we are in cfglayout mode.
1727         (last_bb_in_partition): New function.
1728         (rtl_split_edge): Correctly fixup partition boundaries.
1729         (commit_one_edge_insertion): Remove old code that tried to
1730         fixup region crossing edge since this is now handled in
1731         split_block, and set up insertion point correctly since
1732         block may now end in a jump.
1733         (verify_hot_cold_block_grouping): Guard against checking when not in
1734         linearized RTL mode.
1735         (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
1736         notes.
1737         (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
1738         rtl_verify_flow_info, so not called in cfglayout mode.
1739         (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
1740         (fixup_reorder_chain): Remove old code that attempted to fixup region
1741         crossing note as this is now handled in force_nonfallthru_and_redirect.
1742         (duplicate_insn_chain): Don't duplicate switch section notes.
1743         (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
1744         note.
1745         * basic-block.h (emit_barrier_after_bb): Declare.
1747 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1749         * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
1750         sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
1751         arm_usatsihi): Adjust alternatives for arm_restrict_it.
1753 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1755         * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
1756         where appropriate.
1757         * config/arm/ldmstm.md: Regenerate.
1759 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1761         * config/arm/sync.md (atomic_loaddi_1):
1762         Disable predication for arm_restrict_it.
1763         (arm_load_exclusive<mode>): Likewise.
1764         (arm_load_exclusivesi): Likewise.
1765         (arm_load_exclusivedi): Likewise.
1766         (arm_load_acquire_exclusive<mode>): Likewise.
1767         (arm_load_acquire_exclusivesi): Likewise.
1768         (arm_load_acquire_exclusivedi): Likewise.
1769         (arm_store_exclusive<mode>): Likewise.
1770         (arm_store_exclusive<mode>): Likewise.
1771         (arm_store_release_exclusivedi): Likewise.
1772         (arm_store_release_exclusive<mode>): Likewise.
1774 2013-06-06  Richard Biener  <rguenther@suse.de>
1776         * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
1777         after LTO_null.
1778         (lto_tag_is_tree_code_p): Adjust.
1779         (lto_tag_is_gimple_code_p): Likewise.
1780         (lto_gimple_code_to_tag): Likewise.
1781         (lto_tag_to_gimple_code): Likewise.
1782         (lto_tree_code_to_tag): Likewise.
1783         (lto_tag_to_tree_code): Likewise.
1784         * data-streamer.h (streamer_write_hwi_in_range): Use
1785         uhwi streaming to stream the normalized range.
1786         (streamer_read_hwi_in_range): Likewise.
1788 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1790         * config/arm/arm.md (enabled_for_depr_it): New attribute.
1791         (predicable_short_it): Likewise.
1792         (predicated): Likewise.
1793         (enabled): Handle above.
1794         (define_cond_exec): Set predicated attribute to yes.
1796 2013-06-05  Mike Stump  <mikestump@comcast.net>
1798         * gdbinit.in (__FUNCTION__): Add.
1800 2013-06-05  Uros Bizjak  <ubizjak@gmail.com>
1802         * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
1803         GE, GT, GEU and GTU compares, modulo DImode compares with zero.
1805 2013-06-05  Jan Hubicka  <jh@suse.cz>
1807         * varasm.c (mark_decl_referenced): Revert the removal until targets
1808         are fixed.
1810 2013-06-05  David Edelsohn  <dje.gcc@gmail.com>
1812         * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
1813         instead of mark_decl_referenced.
1815 2013-06-05  Jan Hubicka  <jh@suse.cz>
1817         * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
1818         (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
1819         and symtab_used_from_object_file_p.
1820         (cgraph_make_node_local_1): Clear forced_by_abi.
1821         (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
1822         * cgraph.h (symtab_node_base): Add forced_by_abi.
1823         (decide_is_variable_needed): Remove.
1824         (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
1825         * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
1826         (decide_is_symbol_needed): ... this one; handle symbols in general;
1827         always analyze virtuals; honnor forced_by_abi.
1828         (cgraph_finalize_function): Update.
1829         (varpool_finalize_decl): Update.
1830         (symbol_defined_and_needed): Remove.
1831         (analyze_functions): Update.
1832         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
1833         output_refs, input_overwrite_node): Handle forced_by_abi.
1834         * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
1835         (address_taken_from_non_vtable_p): ... this one.
1836         (comdat_can_be_unshared_p_1): New function.
1837         (cgraph_comdat_can_be_unshared_p): Rename to ...
1838         (comdat_can_be_unshared_p): ... this one; handle symbols in general.
1839         (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
1840         (function_and_variable_visibility): Clear forced_by_abi as needed.
1841         * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
1842         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
1843         * symtab.c (dump_symtab_base): Dump forced_by_abi.
1844         * varpool.c (decide_is_variable_needed): Remove.
1846 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1848         * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
1849         (arm_option_override): Override arm_restrict_it where appropriate.
1850         (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
1851         * config/arm/arm.opt (mrestrict-it): New command-line option.
1852         * doc/invoke.texi: Document -mrestrict-it.
1854 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
1856         * tsan.c (tsan_atomic_table): Make const.
1858 2013-06-05  Richard Biener  <rguenther@suse.de>
1860         * tree-streamer.c (streamer_tree_cache_insert_1): Update the
1861         index associated with the tree we are supposed to replace.
1862         * tree-streamer-out.c (pack_ts_base_value_fields): Output
1863         TREE_ASM_WRITTEN as zero for everything but SSA names.
1865 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
1867         * tree-ssa-structalias.c (call_stmt_vars): Make static.
1869 2013-06-04  Jan Hubicka  <jh@suse.cz>
1871         * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
1872         (input_node, input_varpool_node): Handle correctly external same
1873         body aliases.
1874         * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
1875         nodes at ltrans stage.
1877 2013-06-04  Jan Hubicka  <jh@suse.cz>
1879         * ipa-inline.c (update_caller_keys): Fix availability test.
1880         (update_callee_keys): Likewise.
1881         * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
1882         to follow ELF standard.
1884 2013-06-04  Jürgen Urban  <JuergenUrban@gmx.de>
1886         * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
1887         (mips64r5900el-*-elf*): New configurations.
1888         * config/mips/mips-cpus.def (r5900): New processor.
1889         * config/mips/mips-tables.opt: Regenerate.
1890         * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
1891         (mips_issue_rate): Handle PROCESSOR_R5900.
1892         (mips_reorg_process_insns): Force reorder mode for the R5900.
1893         * config/mips/mips.h (TARGET_MIPS5900): Define.
1894         (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
1895         TARGET_MIPS5900.
1896         (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
1897         TARGET_MIPS5900.
1898         * config/mips/mips.md (processor): Add r5900.
1899         (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
1901 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1903         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
1904         into function to generate MOVI instruction.
1905         * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
1906         (aarch64_preferred_simd_mode): Turn into wrapper.
1907         (aarch64_output_scalar_simd_mov_immediate): New function.
1908         * config/aarch64/aarch64-protos.h: Add prototype for above.
1910 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1912         * config/aarch64/aarch64.c (simd_immediate_info): Remove
1913         element_char member.
1914         (sizetochar): Return signed char.
1915         (aarch64_simd_valid_immediate): Remove elchar and other
1916         unnecessary variables.
1917         (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
1918         Calculate element_char as required.
1919         * config/aarch64/aarch64-protos.h: Update and move prototype
1920         for aarch64_output_simd_mov_immediate.
1921         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
1922         Update arguments.
1924 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1926         * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
1927         information completed by aarch64_simd_valid_immediate.
1928         (aarch64_legitimate_constant_p): Update arguments.
1929         (aarch64_simd_valid_immediate): Work with struct rather than many
1930         pointers.
1931         (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
1932         (aarch64_simd_make_constant): Update arguments.
1933         (aarch64_output_simd_mov_immediate): Work with struct rather than
1934         many pointers.  Output immediate directly rather than as operand.
1935         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
1936         Update prototype.
1937         * config/aarch64/constraints.md (Dn): Update arguments.
1939 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1941         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
1942         longer static.
1943         (aarch64_simd_immediate_valid_for_move): Remove.
1944         (aarch64_simd_scalar_immediate_valid_for_move): Update call.
1945         (aarch64_simd_make_constant): Update call.
1946         (aarch64_output_simd_mov_immediate): Update call.
1947         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
1948         Add prototype.
1949         * config/aarch64/constraints.md (Dn): Update call.
1951 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
1953         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
1954         return type to bool for prototype.
1955         (aarch64_legitimate_constant_p): Check for true instead of not -1.
1956         (aarch64_simd_valid_immediate): Fix up each return to return a bool.
1957         (aarch64_simd_immediate_valid_for_move): Update retval for bool.
1959 2013-06-04  Catherine Moore  <clm@codesourcery.com>
1961         * config/mips/mips.opt (meva): New.
1962         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
1963         (ASM_SPEC): Handle -meva.
1964         * doc/invoke.texi (meva):  Document.
1966 2013-06-04  Alan Modra  <amodra@gmail.com>
1968         * config/rs6000/rs6000.c (output_toc): Correct little-endian float
1969         constant output.
1971 2013-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1973         * rtl.def: Add extra fourth optional field to define_cond_exec.
1974         * gensupport.c (process_one_cond_exec): Process attributes from
1975         define_cond_exec.
1976         * doc/md.texi: Document fourth field in define_cond_exec.
1978 2013-06-04  Eric Botcazou  <ebotcazou@adacore.com>
1980         * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
1981         out the processing order as in store_bit_field_1.
1983 2013-06-04  Jan Hubicka  <jh@suse.cz>
1985         PR middle-end/57500
1986         * cgraphunit.c (cgraph_process_same_body_aliases): Create
1987         non-VAR_DECL node if it does not exist yet.
1989 2013-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
1991         * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
1992         (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
1993         (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
1994         target_cpu_default setting.
1996 2013-06-03  Teresa Johnson  <tejohnson@google.com>
1998         * dumpfile.c (opt_info_switch_p): Change -fopt-info
1999         default to -fopt-info=optimized instead of all.
2000         * doc/invoke.texi: Ditto.
2001         * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
2002         success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
2003         (execute_vect_slp): Emit BB vectorization success under
2004         MSG_OPTIMIZED_LOCATIONS.
2005         * tree-vect-slp.c (vect_slp_transform_bb): Change
2006         MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
2007         * tree-vect-loop.c (vect_transform_loop): Ditto.
2009 2013-06-03  Jason Merrill  <jason@redhat.com>
2011         PR c++/57415
2012         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2013         Use TARGET_EXPR for C++.
2015 2013-06-03  Jakub Jelinek  <jakub@redhat.com>
2017         PR rtl-optimization/57268
2018         * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
2019         if DEBUG_INSN_P (insn).
2021         Reapply
2022         2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
2024         PR rtl-optimization/57268
2025         * sched-deps.c (sched_analyze_2): Flush dependence lists if
2026         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2028 2013-06-03  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
2030         * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
2031         (ix86_avoid_lea_for_addr): Likewise.
2032         (exact_dependency_1): Likewise.
2033         (ix86_adjust_cost): Likewise.
2034         (swap_top_of_ready_list): Fix formatting and !reload_completed check
2035         removed.
2036         (do_reorder_for_imul): Fix typo, formatting and
2037         !reload_completed check removed.
2038         (ix86_sched_reorder): Fix typo and formatting.
2039         (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
2040         list.
2042 2013-06-03  Sofiane Naci  <sofiane.naci@arm.com>
2044         * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
2046 2013-06-03  Eric Botcazou  <ebotcazou@adacore.com>
2048         * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
2049         <STRING_CST>: Likewise.
2050         <VECTOR_CST>: Likewise.
2052 2013-06-01  Janus Weil  <janus@gcc.gnu.org>
2053             Mikael Morin  <mikael@gcc.gnu.org>
2055         * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
2056         * config.in: Regenerated.
2057         * configure: Regenerated.
2059 2013-06-01  Jan Hubicka  <jh@suse.cz>
2061         PR middle-end/57366
2062         * cgraphunit.c (compile): When weakref is not supported,
2063         set up transparent aliases before final output pass.
2064         * varasm.c (assemble_alias): Do not try to do it here.
2066 2013-06-01  Jan Hubicka  <jh@suse.cz>
2068         PR middle-end/57467
2069         * passes.c (for_per_function): Skip unanalyzed functions.
2071 2013-06-01  Jan Hubicka  <jh@suse.cz>
2073         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
2074         (lto_symtab_merge_symbols_1): ... this one.
2075         (lto_symtab_merge_cgraph_nodes): Rename to ...
2076         (lto_symtab_merge_symbols): ... this one; simplify.
2077         * cgraph.c (same_body_aliases_done): Rename to ...
2078         (cpp_implicit_aliases_done): ... this one.
2079         (cgraph_create_function_alias): Update.
2080         (cgraph_same_body_alias): Update.
2081         (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
2082         (verify_edge_corresponds_to_fndecl): Simplify.
2083         * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
2084         (cgraph_node): Remove same_body_alias.
2085         (varpool_node): Remove alias_of and extra_name_alias.
2086         (same_body_aliases_done): Rename to ..
2087         (cpp_implicit_aliases_done): ... this one.
2088         (symtab_alias_ultimate_target): Add default parameter.
2089         (symtab_resolve_alias): New function.
2090         (fixup_same_cpp_alias_visibility): Declare.
2091         (cgraph_function_node): Add default parameter.
2092         (cgraph_node_asm_name): Likewise.
2093         (cgraph_function_or_thunk_node): Add default parameter; do
2094         not ICE when it is NULL.
2095         (varpool_variable_node): Likewise.
2096         * tree-emutls.c (create_emultls_var): Update.
2097         (ipa_lower_emutls): Update.
2098         * cgraphunit.c (cgraph_decide_is_function_needed): Update.
2099         (cgraph_reset_node): Reset alias info.
2100         (cgraph_finalize_function): Update.
2101         (fixup_same_cpp_alias_visibility): Move to symtab.c.
2102         (analyze_function): Simplify.
2103         (cgraph_process_same_body_aliases): Simplify.
2104         (analyze_functions): Fixup same body aliases.
2105         (handle_alias_pairs): Simplify.
2106         (assemble_thunk): Update.
2107         (assemble_thunks_and_aliases): Update.
2108         (output_weakrefs): Rewrite.
2109         * lto-cgraph.c (lto_output_node): Rewrite alias handling.
2110         (lto_output_varpool_node): Likewise.
2111         (compute_ltrans_boundary): Remve assert.
2112         (get_alias_symbol): New functoin.
2113         (input_node): Rewrite alias handling.
2114         (input_varpool_node): Likewise.
2115         * ipa-pure-const.c (propagate_pure_const): Fix formating.
2116         * ipa.c (process_references): Handle weakrefs correctly.
2117         (symtab_remove_unreachable_nodes): Likewise.
2118         * trans-mem.c (get_cg_data): Update.
2119         (ipa_tm_create_version_alias): Update.
2120         (ipa_tm_execute): Update.
2121         * symtab.c (dump_symtab_base): Dump aliases.
2122         (verify_symtab_base): Verify aliases.
2123         (symtab_node_availability): New function.
2124         (symtab_alias_ultimate_target): Simplify.
2125         (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
2126         handle all the fixup cases.
2127         (symtab_resolve_alias): New function.
2128         * passes.c (ipa_write_summaries): Handle weakrefs.
2129         * varpool.c (varpool_analyze_node): Simplify.
2130         (assemble_aliases): Update.
2131         (varpool_create_variable_alias): Simplify.
2132         (varpool_extra_name_alias): Simplify.
2133         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
2134         (lto_symtab_merge_symbols): ... this one.
2136 2013-06-01  Dinar Temirbulatov  <dinar@kugelworks.com>
2138         Revert
2139         PR rtl-optimization/57268
2140         * sched-deps.c (sched_analyze_2): Flush dependence lists if
2141         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2143 2013-06-01  Tobias Burnus  <burnus@net-b.de>
2145         Partially reverted:
2146         2013-05-31  Tobias Burnus  <burnus@net-b.de>
2148         PR middle-end/57073
2149         * tree-ssa-math-opts.c (execute_cse_sincos): Move check
2150         further up.
2152 2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
2154         PR rtl-optimization/57268
2155         * sched-deps.c (sched_analyze_2): Flush dependence lists if
2156         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2158 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
2160         * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
2161         unordered comparison operators when -fno-trapping-math is in effect
2162         on the e500.
2163         * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
2164         and implement unordered comparison operators properly on the e500.
2166 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
2168         * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
2169         for constant scalar integers.
2170         (simplify_relational_operation_1): Likewise.
2172 2013-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
2174         * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
2175         * config/rs6000/rs6000.md (cpu): Reorder.  Split long line.
2176         Fix comment.
2178 2013-05-31  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
2179             Igor Zamyatin  <igor.zamyatin@intel.com>
2181         Silvermont (SLM) architecture performance tuning.
2182         * config/i386/i386.h (enum ix86_tune_indices): Add
2183         X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
2184         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
2186         * config/i386/i386.c (initial_ix86_tune_features)
2187         <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
2188         (ix86_lea_outperforms): Handle Silvermont tuning.
2189         (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
2190         call.
2191         (ix86_use_lea_for_mov): Likewise.
2192         (ix86_avoid_lea_for_addr): Likewise.
2193         (ix86_lea_for_add_ok): Likewise.
2194         (exact_dependency_1): New function.
2195         (exact_store_load_dependency): Likewise.
2196         (ix86_adjust_cost): Handle Silvermont tuning.
2197         (do_reoder_for_imul): Likewise.
2198         (swap_top_of_ready_list): New function.
2199         (ix86_sched_reorder): Changed to handle Silvermont tuning.
2201         * config/i386/i386.md (peepholes that split memory operand in fp
2202         converts): New.
2204 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2206         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2207         Remove un-necessary braces.
2209 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2211         * config/aarch64/aarch64.c (aarch64_classify_symbol):
2212         Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
2214 2013-05-31  Tobias Burnus  <burnus@net-b.de>
2216         PR middle-end/57073
2217         * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
2219 2013-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2221         PR target/56315
2222         * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
2223         * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
2224         * config/arm/neon.md (iordi3_neon): Remove.
2225         (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
2226         * config/arm/predicates.md (imm_for_neon_logic_operand):
2227         Move to earlier in the file.
2228         (neon_logic_op2): Likewise.
2229         (arm_iordi_operand_neon): New predicate.
2231 2013-05-31  Richard Biener  <rguenther@suse.de>
2233         PR tree-optimization/57478
2234         PR tree-optimization/57453
2235         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
2236         are life as well.
2238 2013-05-31  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
2240         * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
2241         (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
2243 2013-05-30  Tobias Burnus  <burnus@net-b.de>
2244             Thomas Koenig  <tkoenig@gcc.gnu.org>
2246         PR middle-end/57073
2247         * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
2248         powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
2250 2013-05-30  Steven Bosscher  <steven@gcc.gnu.org>
2252         * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
2254 2013-05-30  Vladimir Makarov  <vmakarov@redhat.com>
2256         * target.def (register_usage_leveling_p): New hook.
2257         * targhooks.c (default_register_usage_leveling_p): New.
2258         * targhooks.h (default_register_usage_leveling_p): New prototype.
2259         * lra-assigns.c (register_usage_leveling_p): Use the hook.
2260         * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
2261         * doc/tm.texi: Update.
2262         * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
2264 2013-05-30  Ian Bolton  <ian.bolton@arm.com>
2266         * config/aarch64/aarch64.md (insv<mode>): New define_expand.
2267         (*insv_reg<mode>): New define_insn.
2269 2013-05-30  Joern Rennecke <joern.rennecke@embecosm.com>
2271         PR rtl-optimization/57439
2272         * postreload.c (move2add_valid_value_p): Check that we have
2273         a zero subreg_regno_offset when accessing the register in
2274         the requested mode.
2276 2013-05-30  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
2277             Igor Zamyatin  <igor.zamyatin@intel.com>
2279         Silvermont (SLM) architecture pipeline model, tuning and
2280         insn selection.
2281         * config.gcc: Add slm config options and target.
2283         * config/i386/slm.md: New.
2285         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
2287         * gcc/config/i386/i386-c.c (ix86_target_macros_internal):  New case
2288         PROCESSOR_SLM.
2289         (ix86_target_macros_internal): Likewise.
2291         * gcc/config/i386/i386.c (slm_cost): New cost.
2292         (m_SLM): New macro flag.
2293         (initial_ix86_tune_features): Set m_SLM.
2294         (x86_accumulate_outgoing_args): Likewise.
2295         (x86_arch_always_fancy_math_387): Likewise.
2296         (processor_target_table): Add slm cost.
2297         (cpu_names): Add slm cpu name.
2298         (x86_option_override_internal): Set SLM ISA.
2299         (ix86_issue_rate): New case PROCESSOR_SLM.
2300         (ia32_multipass_dfa_lookahead): Likewise.
2301         (fold_builtin_cpu): Add slm.
2303         * config/i386/i386.h (TARGET_SLM): New target macro.
2304         (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
2305         (processor_type): Add PROCESSOR_SLM.
2307         * config/i386/i386.md (cpu): Add new value "slm".
2308         (slm.md): Include slm.md.
2310 2013-05-30  Bernd Schmidt  <bernds@codesourcery.com>
2311             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
2313         * config/arm/arm-protos.h: Add and update function protos.
2314         * config/arm/arm.c (use_simple_return_p): New added.
2315         (thumb2_expand_return): Check simple_return flag.
2316         * config/arm/arm.md: Add simple_return and conditional simple_return.
2317         * config/arm/iterators.md: Add iterator for return and simple_return.
2319 2013-05-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
2321         * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
2322         (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
2323         (arm_emit_vfp_multi_reg_pop): Likewise.
2324         (thumb2_emit_ldrd_pop): Likewise.
2325         (arm_expand_epilogue): Add misc REG_CFA notes.
2326         (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
2328 2013-05-29  Lawrence Crowl  <crowl@google.com>
2330         * config/arm/t-arm: Update for below.
2332         * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
2333         Change type to hash_table.  Update dependent calls and types.
2335         * config/i386/t-cygming: Update for below.
2337         * config/i386/t-interix: Update for below.
2339         * config/i386/winnt.c (i386_pe_section_type_flags::htab):
2340         Change type to hash_table.  Update dependent calls and types.
2341         (i386_find_on_wrapper_list::wrappers): Likewise.
2343         * config/ia64/t-ia64: Update for below.
2345         * config/ia64/ia64.c (bundle_state_table):
2346         Change type to hash_table.  Update dependent calls and types.
2348         * config/mips/mips.c (mips_reorg_process_insns::htab):
2349         Change type to hash_table.  Update dependent calls and types.
2351         * config/sol2.c (solaris_comdat_htab):
2352         Change type to hash_table.  Update dependent calls and types.
2354         * config/t-sol2: Update for above.
2356 2013-05-29  Teresa Johnson  <tejohnson@google.com>
2358         * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
2359         functions are not yet marked as defined.
2361 2013-05-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
2362             Pat Haugen <pthaugen@us.ibm.com>
2363             Peter Bergner <bergner@vnet.ibm.com>
2365         * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
2366         instructions.
2367         (VEC_A): Likewise.
2368         (VEC_C): Likewise.
2369         (vrotl<mode>3): Likewise.
2370         (vashl<mode>3): Likewise.
2371         (vlshr<mode>3): Likewise.
2372         (vashr<mode>3): Likewise.
2374         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2375         support for power8 V2DI builtins.
2377         * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
2378         power8 V2DI builtins.
2379         (vupkhsw): Likewise.
2380         (vupklsw): Likewise.
2381         (vaddudm): Likewise.
2382         (vminsd): Likewise.
2383         (vmaxsd): Likewise.
2384         (vminud): Likewise.
2385         (vmaxud): Likewise.
2386         (vpkudum): Likewise.
2387         (vpksdss): Likewise.
2388         (vpkudus): Likewise.
2389         (vpksdus): Likewise.
2390         (vrld): Likewise.
2391         (vsld): Likewise.
2392         (vsrd): Likewise.
2393         (vsrad): Likewise.
2394         (vsubudm): Likewise.
2395         (vcmpequd): Likewise.
2396         (vcmpgtsd): Likewise.
2397         (vcmpgtud): Likewise.
2398         (vcmpequd_p): Likewise.
2399         (vcmpgtsd_p): Likewise.
2400         (vcmpgtud_p): Likewise.
2401         (vupkhsw): Likewise.
2402         (vupklsw): Likewise.
2403         (vaddudm): Likewise.
2404         (vmaxsd): Likewise.
2405         (vmaxud): Likewise.
2406         (vminsd): Likewise.
2407         (vminud): Likewise.
2408         (vpksdss): Likewise.
2409         (vpksdus): Likewise.
2410         (vpkudum): Likewise.
2411         (vpkudus): Likewise.
2412         (vrld): Likewise.
2413         (vsld): Likewise.
2414         (vsrad): Likewise.
2415         (vsrd): Likewise.
2416         (vsubudm): Likewise.
2418         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
2419         support for power8 V2DI instructions.
2421         * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
2422         power8 V2DI instructions.  Combine pack and unpack insns to use an
2423         iterator for each mode.  Check whether a particular mode supports
2424         Altivec instructions instead of just checking TARGET_ALTIVEC.
2425         (UNSPEC_VPKUWUM): Likewise.
2426         (UNSPEC_VPKSHSS): Likewise.
2427         (UNSPEC_VPKSWSS): Likewise.
2428         (UNSPEC_VPKUHUS): Likewise.
2429         (UNSPEC_VPKSHUS): Likewise.
2430         (UNSPEC_VPKUWUS): Likewise.
2431         (UNSPEC_VPKSWUS): Likewise.
2432         (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
2433         (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
2434         (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
2435         (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
2436         (UNSPEC_VUPKHSB): Likewise.
2437         (UNSPEC_VUNPACK_HI_SIGN): Likewise.
2438         (UNSPEC_VUNPACK_LO_SIGN): Likewise.
2439         (UNSPEC_VUPKHSH): Likewise.
2440         (UNSPEC_VUPKLSB): Likewise.
2441         (UNSPEC_VUPKLSH): Likewise.
2442         (VI2): Likewise.
2443         (VI_char): Likewise.
2444         (VI_scalar): Likewise.
2445         (VI_unit): Likewise.
2446         (VP): Likewise.
2447         (VP_small): Likewise.
2448         (VP_small_lc): Likewise.
2449         (VU_char): Likewise.
2450         (add<mode>3): Likewise.
2451         (altivec_vaddcuw): Likewise.
2452         (altivec_vaddu<VI_char>s): Likewise.
2453         (altivec_vadds<VI_char>s): Likewise.
2454         (sub<mode>3): Likewise.
2455         (altivec_vsubcuw): Likewise.
2456         (altivec_vsubu<VI_char>s): Likewise.
2457         (altivec_vsubs<VI_char>s): Likewise.
2458         (altivec_vavgs<VI_char>): Likewise.
2459         (altivec_vcmpbfp): Likewise.
2460         (altivec_eq<mode>): Likewise.
2461         (altivec_gt<mode>): Likewise.
2462         (altivec_gtu<mode>): Likewise.
2463         (umax<mode>3): Likewise.
2464         (smax<mode>3): Likewise.
2465         (umin<mode>3): Likewise.
2466         (smin<mode>3): Likewise.
2467         (altivec_vpkuhum): Likewise.
2468         (altivec_vpkuwum): Likewise.
2469         (altivec_vpkshss): Likewise.
2470         (altivec_vpkswss): Likewise.
2471         (altivec_vpkuhus): Likewise.
2472         (altivec_vpkshus): Likewise.
2473         (altivec_vpkuwus): Likewise.
2474         (altivec_vpkswus): Likewise.
2475         (altivec_vpks<VI_char>ss): Likewise.
2476         (altivec_vpks<VI_char>us): Likewise.
2477         (altivec_vpku<VI_char>us): Likewise.
2478         (altivec_vpku<VI_char>um): Likewise.
2479         (altivec_vrl<VI_char>): Likewise.
2480         (altivec_vsl<VI_char>): Likewise.
2481         (altivec_vsr<VI_char>): Likewise.
2482         (altivec_vsra<VI_char>): Likewise.
2483         (altivec_vsldoi_<mode>): Likewise.
2484         (altivec_vupkhsb): Likewise.
2485         (altivec_vupkhs<VU_char>): Likewise.
2486         (altivec_vupkls<VU_char>): Likewise.
2487         (altivec_vupkhsh): Likewise.
2488         (altivec_vupklsb): Likewise.
2489         (altivec_vupklsh): Likewise.
2490         (altivec_vcmpequ<VI_char>_p): Likewise.
2491         (altivec_vcmpgts<VI_char>_p): Likewise.
2492         (altivec_vcmpgtu<VI_char>_p): Likewise.
2493         (abs<mode>2): Likewise.
2494         (vec_unpacks_hi_v16qi): Likewise.
2495         (vec_unpacks_hi_v8hi): Likewise.
2496         (vec_unpacks_lo_v16qi): Likewise.
2497         (vec_unpacks_hi_<VP_small_lc>): Likewise.
2498         (vec_unpacks_lo_v8hi): Likewise.
2499         (vec_unpacks_lo_<VP_small_lc>): Likewise.
2500         (vec_pack_trunc_v8h): Likewise.
2501         (vec_pack_trunc_v4si): Likewise.
2502         (vec_pack_trunc_<mode>): Likewise.
2504         * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
2505         V2DI builtins.
2506         (vec_vmaxsd): Likewise.
2507         (vec_vmaxud): Likewise.
2508         (vec_vminsd): Likewise.
2509         (vec_vminud): Likewise.
2510         (vec_vpksdss): Likewise.
2511         (vec_vpksdus): Likewise.
2512         (vec_vpkudum): Likewise.
2513         (vec_vpkudus): Likewise.
2514         (vec_vrld): Likewise.
2515         (vec_vsld): Likewise.
2516         (vec_vsrad): Likewise.
2517         (vec_vsrd): Likewise.
2518         (vec_vsubudm): Likewise.
2519         (vec_vupkhsw): Likewise.
2520         (vec_vupklsw): Likewise.
2522 2013-05-29  Jan Hubicka  <jh@suse.cz>
2524         * cgraph.h (symtab_node_base): Add definition, alias and analyzed
2525         flags; reorder rest of fields in more consistent way.
2526         (varpool_node): Remove analyzed, finalized and alias.
2527         (cgraph_ndoe): Likewise.
2528         (symtab_alias_ultimate_target): New function.
2529         (cgraph_function_node): Move offline.
2530         (cgraph_reset_node): Declare.
2531         (cgraph_comdat_can_be_unshared_p): Remove.
2532         (varpool_remove_initializer): Declare.
2533         (varpool_first_defined_variable, varpool_next_defined_variable
2534         cgraph_first_defined_function, cgraph_next_defined_function): Update.
2535         (cgraph_function_with_gimple_body_p): Update.
2536         (varpool_all_refs_explicit_p): Update.
2537         (symtab_alias_target): New function.
2538         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
2539         (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
2540         (cgraph_function_or_thunk_node): Simplify using
2541         symtab_alias_ultimate_target.
2542         (varpool_variable_node): Likewise.
2543         * cgraph.c (cgraph_create_function_alias): Update.
2544         (cgraph_add_thunk): Update.
2545         (cgraph_remove_node): Update.
2546         (dump_cgraph_node): Do not dump removed flags.
2547         (cgraph_function_body_availability): Update.
2548         (cgraph_propagate_frequency): Update.
2549         (verify_cgraph_node): Check sanity of local flag.
2550         (cgraph_function_node): Move here from cgraph.h; revamp for
2551         cgraph_function_or_thunk_node.
2552         * lto-symtab.c (lto_varpool_replace_node): Update.
2553         (lto_symtab_resolve_can_prevail_p): Update.
2554         (lto_symtab_merge_cgraph_nodes): Update.
2555         * ipa-cp.c (determine_versionability, initialize_node_lattices,
2556         propagate_constants_accross_call, devirtualization_time_bonus,
2557         ipcp_propagate_stage): Update.
2558         * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
2559         * ipa-inline-transform.c (clone_inlined_nodes,
2560         preserve_function_body_p): Update.
2561         * ipa-reference.c (propagate): Update.
2562         (write_node_summary_p): Update.
2563         * toplev.c (wrapup_global_declaration_2): Update.
2564         * cgraphunit.c (cgraph_analyze_function): Rename to ...
2565         (analyze_function) ... this one.
2566         (cgraph_process_new_functions): Update.
2567         (cgraph_reset_node): Export.
2568         (cgraph_finalize_function): Update.
2569         (cgraph_add_new_function): Update.
2570         (process_function_and_variable_attributes): Update.
2571         (varpool_finalize_decl): Update.
2572         (symbol_finalized): Remove.
2573         (symbol_finalized_and_needed): Rename to ...
2574         (symbol_defined_and_needed): ... update.
2575         (cgraph_analyze_functions): Update.
2576         (handle_alias_pairs): Update.
2577         (mark_functions_to_output): Update.
2578         (assemble_thunk): Update.
2579         (output_in_order): Update.
2580         (output_weakrefs): Update.
2581         (finalize_compilation_unit): Update.
2582         * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
2583         lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
2584         input_node, input_varpool_node): Update.
2585         * dbxout.c (dbxout_expand_expr): Update.
2586         * cgraphclones.c (cgraph_clone_node): Update.
2587         (cgraph_copy_node_for_versioning): Update.
2588         (cgraph_materialize_clone): Update.
2589         (cgraph_materialize_all_clones): Update.
2590         * ipa-pure-const.c (analyze_function, pure_const_write_summary,
2591         propagate_pure_const, propagate_nothrow): Update.
2592         * lto-streamer-out.c (lto_output, write_symbol): Update.
2593         * ipa-utils.c (ipa_reverse_postorder): Update.
2594         * ipa-inline.c (can_inline_edge_p): Update.
2595         (update_caller_keys, ipa_inline): Update.
2596         * dwarf2out.c (reference_to_unused,
2597         premark_types_used_by_global_vars_helper): Update.
2598         * tree-eh.c (tree_could_trap_p): Update.
2599         * ipa-split.c (consider_split, execute_split_functions): Update.
2600         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
2601         has_addr_references_p): Update; move ahead in file for better
2602         readability.
2603         (process_references): Simplify.
2604         (symtab_remove_unreachable_nodes): Update; cleanup way function/var
2605         bodies are removed.
2606         (cgraph_comdat_can_be_unshared_p): Make static.
2607         (cgraph_externally_visible_p): Update.
2608         (varpool_externally_visible_p): Update.
2609         (function_and_variable_visibility): Update.
2610         * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
2611         ipa_tm_mark_force_output_node): Update.
2612         * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
2613         estimate_edge_devirt_benefit, inline_generate_summary,
2614         inline_write_summary): Update.
2615         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
2616         * ipa-prop.c (ipa_compute_jump_functions): Update.
2617         (ipa_print_node_params, ipa_prop_read_section,
2618         ipa_update_after_lto_read, read_replacements_section): Update.
2619         * varasm.c (mark_decl_referenced): Update.
2620         (assemble_alias, dump_tm_clone_pairs): Update.
2621         * tree-inline.c (copy_bb): Update.
2622         (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
2623         Update.
2624         * symtab.c (dump_symtab_base): Print new flags.
2625         (verify_symtab_base): Verify new flags.
2626         (symtab_alias_ultimate_target): New function.
2627         * tree-ssa-structalias.c (get_constraint_for_ssa_var,
2628         create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
2629         Update.
2630         * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
2631         Update.
2632         * i386.c (ix86_get_function_versions_dispatcher,
2633         ix86_generate_version_dispatcher_body): Update.
2634         (fold_builtin_cpu): Use varpool_add_new_variable.
2635         * varpool.c (varpool_remove_initializer): Break out from ...
2636         (varpool_remove_node): ... this one.
2637         (dump_varpool_node, varpool_node_for_asm,
2638         cgraph_variable_initializer_availability, varpool_analyze_node,
2639         varpool_assemble_decl, varpool_remove_unreferenced_decls,
2640         varpool_finalize_named_section_flags, varpool_create_variable_alias):
2641         Update.
2643 2013-05-29  Jan Hubicka  <jh@suse.cz>
2645         * passes.c (init_optimization_passes): Move OMP expansion into lowering.
2647 2013-05-29  Easwaran Raman  <eraman@google.com>
2649         PR tree-optimization/57442
2650         * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
2651         when control exits the main loop.
2653 2013-05-29  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
2655         * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
2656         and RX600.
2657         * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
2658         * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
2659         * rx/t-rx: Add rx100 under multi library matches option for nofpu
2660         option.
2662 2013-05-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2664         PR tree-optimization/57441
2665         * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
2666         Don't limit size of incr_vec to number of candidates.
2668 2013-05-29  Steve Ellcey  <sellcey@imgtec.com>
2670         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
2671         and mips16 directories.
2672         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
2673         (MULTILIB_DIRNAMES): Ditto.
2674         (MULTILIB_EXCEPTIONS): Add new exceptions.
2675         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
2676         (MULTILIB_DIRNAMES): Ditto.
2677         (MULTILIB_EXCEPTIONS): Add new exceptions.
2679 2012-05-29  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2680             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2682         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
2683         SYMBOL_TINY_ABSOLUTE.
2684         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
2685         SYMBOL_TINY_ABSOLUTE.
2686         (aarch64_expand_mov_immediate): Likewise.
2687         (aarch64_classify_symbol): Likewise.
2688         (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
2689         Permit SYMBOL_TINY_ABSOLUTE.
2690         * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
2692 2013-05-29  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2693             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2695         * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
2696         Refactor if/switch.  Replace gcc_assert with if.
2698 2013-05-29  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
2700         * config/i386/i386.c (initial_ix86_tune_features): Enable
2701         FP Reassociation for AMD bdver1 and bdver2.
2703 2013-05-29  Martin Jambor  <mjambor@suse.cz>
2705         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
2706         and IMAGPART_EXPR do not occur within other handled_components.
2708 2013-05-29  Richard Biener  <rguenther@suse.de>
2710         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
2711         access on whether the use is in the BB we currently try to
2712         vectorize.
2713         (vect_bb_vectorization_profitable_p): Pass the BB we currently
2714         vectorize to vect_bb_slp_scalar_cost.
2716 2013-05-29  Richard Biener  <rguenther@suse.de>
2718         * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
2719         computing scalar cost offsetted by stmts that are kept live
2720         by scalar uses.
2721         (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
2722         for computation of scalar cost.
2724 2013-05-28  Steve Ellcey  <sellcey@mips.com>
2726         * config/mips/mips-cpus.def (mips32r2): Change processor type.
2728 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2730         * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
2731         array notation built-in reduction functions.
2732         * doc/passes.texi (Passes): Added documentation about changes done
2733         for Cilk Plus.
2734         * doc/invoke.texi (C Dialect Options): Added documentation about
2735         the -fcilkplus flag.
2736         * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
2737         (BUILTINS_DEF): Depend on cilkplus.def.
2738         * builtins.def: Include cilkplus.def.  Define DEF_CILKPLUS_BUILTIN.
2739         * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
2740         * cilkplus.def: New file.
2742 2013-05-28  Joern Rennecke <joern.rennecke@embecosm.com>
2744         PR rtl-optimization/57439
2745         * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
2747 2013-05-28  Easwaran Raman  <eraman@google.com>
2749         PR tree-optimization/57337
2750         * tree-ssa-reassoc.c (appears_later_in_bb): New function.
2751         (find_insert_point): Correctly identify the insertion point
2752         when two statements with the same UID is compared.
2754 2013-05-28  Richard Biener  <rguenther@suse.de>
2756         PR tree-optimization/56787
2757         * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
2758         from the list of data references.
2759         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
2760         clobbers.
2761         (vect_analyze_loop_operations): Likewise.
2762         (vect_transform_loop): Remove clobbers.
2764 2013-05-28  Martin Jambor  <mjambor@suse.cz>
2766         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
2767         and REALPART_EXPRs have scalar type.
2769 2013-05-28  Richard Biener  <rguenther@suse.de>
2771         PR tree-optimization/57411
2772         * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
2773         virtual operands.
2774         * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
2775         virtual operand propagation.
2777 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
2779         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
2780         destination register for bmasksi_vis.
2781         (vector_init_bshuffle): Likewise.
2782         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
2784 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
2786         * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
2787         * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
2788         mode if the instruction isn't available in the original mode.
2789         * config/sparc/sparc.opt (mfix-ut699): New option.
2790         * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
2791         (divdf3): Turn into expander.
2792         (divdf3_nofix): New insn.
2793         (divdf3_fix): Likewise.
2794         (divsf3): Disable if -mfix-ut699.
2795         (sqrtdf2): Turn into expander.
2796         (sqrtdf2_nofix): New insn.
2797         (sqrtdf2_fix): Likewise.
2798         (sqrtsf2): Disable if -mfix-ut699.
2800 2013-05-27  Richard Biener  <rguenther@suse.de>
2802         PR middle-end/57412
2803         * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
2804         block for the new loop.
2806 2013-05-27  Richard Biener  <rguenther@suse.de>
2808         PR tree-optimization/57343
2809         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
2810         use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
2811         (number_of_iterations_cond): Do not build the folded tree.
2813 2013-05-27  Richard Biener  <rguenther@suse.de>
2815         Revert
2816         PR middle-end/57381
2817         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
2818         OEP_CONSTANT_ADDRESS_OF retained.
2820         PR tree-optimization/57417
2821         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
2822         for unchanged base.
2823         (set_ssa_val_to): Compare addresses using
2824         get_addr_base_and_unit_offset.
2826 2013-05-27  Joern Rennecke <joern.rennecke@embecosm.com>
2828         PR rtl-optimization/56833
2829         * postreload.c (move2add_record_mode): New function.
2830         (move2add_record_sym_value, move2add_valid_value_p): Likewise.
2831         (move2add_use_add2_insn): Use move2add_record_sym_value.
2832         (move2add_use_add3_insn): Likewise.
2833         (reload_cse_move2add): Use move2add_valid_value_p and
2834         move2add_record_mode.  Invalidate call-clobbered and REG_INC
2835         affected regs by setting reg_mode to VOIDmode.
2836         (move2add_note_store): Don't pretend the inside of a SUBREG is
2837         the actual destination.  Invalidate single/leading registers by
2838         setting reg_mode to VOIDmode.
2839         Use move2add_record_sym_value, move2add_valid_value_p and
2840         move2add_record_mode.
2842 2013-05-27  Richard Biener  <rguenther@suse.de>
2844         PR tree-optimization/57396
2845         * tree-affine.c (double_int_constant_multiple_p): Properly
2846         return false for val == 0 and div != 0.
2848 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
2850         * config/mips/mips.h: Use #elif in preprocessor conditions.
2852 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
2854         PR target/53916
2855         * config/mips/constraints.md (kl): New constraint.
2856         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
2857         (divmod<mode>4_internal): Rename to divmod<mode>4.  Use "kl" as the
2858         constraint for operand 0.  Split after CSE for MIPS16.  Emit a move
2859         from LO for MIPS16.
2860         (udivmod<mode>4_internal): Likewise udivmod<mode>4.
2862 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
2864         PR target/55777
2865         * config/mips/mips.c (mips_can_inline_p): New function.
2866         (TARGET_CAN_INLINE_P): Define.
2868 2013-05-25  Steven Bosscher  <steven@gcc.gnu.org>
2870         * sched-int.h (ds_t, dw_t): Make unsigned int.
2871         Fix documentation that describes how all the ds_t bits are used.
2872         Reserve the last bit for delayed-branch scheduling.
2873         (BITS_PER_DEP_STATUS): Move to ds_t typedef.
2874         (BITS_PER_DEP_WEAK): Fix definition and documentation.
2875         (gen_dep_weak_1): Remove prototype.
2876         * sched-deps.c (get_dep_weak_1): Make static.
2877         * target.def (speculate_insn, needs_block_p, gen_spec_check,
2878         get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
2879         * doc/tm.texi: Regenerate.
2880         * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
2882 2013-05-24  Steven Bosscher  <steven@gcc.gnu.org>
2884         PR debug/56950
2885         * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
2887 2013-05-24  Nathan Sidwell  <nathan@codesourcery.com>
2888             Sandra Loosemore  <sandra@codesourcery.com>
2890         * config.gcc (powerpc-*): Allow native for with-cpu.
2892 2013-05-24  Jeff Law  <law@redhat.com>
2894         PR tree-optimization/57124
2895         * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
2896         conversion feeding a condition if the range has an overflow
2897         if -fstrict-overflow.  Add warnings for when we do make the
2898         transformation.
2900 2013-05-24  Dehao Chen  <dehao@google.com>
2902         * tree-cfg.c (locus_discrim_map): Fix the typo.
2903         (locus_discrim_hasher): Likewise.
2904         (locus_discrim_hasher::hash): Likewise.
2905         (locus_discrim_hasher::equal): Likewise.
2907 2013-05-24  Martin Jambor  <mjambor@suse.cz>
2909         PR tree-optimization/57294
2910         * cgraph.h (ipa_record_stmt_references): Declare.
2911         * cgraphbuild.c (ipa_record_stmt_references): New function.
2912         (build_cgraph_edges): Use ipa_record_stmt_references.
2913         (rebuild_cgraph_edges): Likewise.
2914         (cgraph_rebuild_references): Likewise.
2915         * ipa-prop.c (ipa_modify_call_arguments): Discard references
2916         associated with the old statement and build references from the
2917         newly built statements.
2918         * ipa-ref.c (ipa_remove_stmt_references): New function.
2919         * ipa-ref.h (ipa_remove_stmt_references): Declare.
2921 2013-05-24  Vladimir Makarov  <vmakarov@redhat.com>
2923         * lra-constraints.c (emit_spill_move): Use smaller mode for
2924         mem-mem moves.
2925         (check_and_process_move): Consider mem-reg moves for secondary
2926         too.
2927         (curr_insn_transform): Don't lose insns emitted before for
2928         secondary memory moves.
2929         (inherit_in_ebb): Mark defined reg.  Add usage only if it is not a
2930         reg set up in the current insn.
2932 2013-05-24  Dehao Chen  <dehao@google.com>
2934         * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
2935         hash function.
2936         (locus_descrim_hasher::equal): Likewise.
2937         (build_gimple_cfg): New discriminator assignment algorithm.
2938         (make_edges): Likewise.
2939         (next_discriminator_for_locus): Likewise.
2940         (same_line_p): Likewise.
2941         (assign_discriminators): Likewise.
2942         (make_cond_expr_edges): Likewise.
2943         (make_gimple_switch_edges): Likewise.
2944         (make_goto_expr_edges): Likewise.
2945         (make_gimple_asm_edges): Likewise.
2947 2013-05-24  Ian Bolton  <ian.bolton@arm.com>
2949         * config/aarch64/aarch64.c (aarch64_print_operand): Change the
2950         X format specifier to only display bottom 16 bits.
2951         * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
2952         immediate to match for operand 2, since it will be masked.
2954 2013-05-24  Richard Biener  <rguenther@suse.de>
2956         PR tree-optimization/57287
2957         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
2958         all SSA names that occur in abnormal PHIs.
2960 2013-05-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2962         PR tree-ssa/57385
2963         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
2964         that index is not negative.
2966 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
2968         PR rtl-optimization/55177
2969         * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
2970         (simplify_byte_swapping_operation): New.
2971         (simplify_binary_operation_1): Call it for AND, IOR and XOR.
2972         (simplify_relational_operation_1): Deal with BSWAP.
2974 2013-05-23  Richard Henderson  <rth@redhat.com>
2976         PR target/56742
2977         * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
2978         (ix86_reorg): Call it.
2980 2013-05-23  Uros Bizjak  <ubizjak@gmail.com>
2982         PR target/57379
2983         * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
2984         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
2985         REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
2987 2013-05-23  Christian Bruel  <christian.bruel@st.com>
2989         PR debug/57351
2990         * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
2992 2013-05-23  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2993             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2995         * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
2996         * config/aarch64/constraints.md (Usa): Remove.
2997         * doc/md.texi (AArch64 Usa): Remove.
2999 2013-05-23  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3000             Marcus Shawcroft  <marcus.shawcroft@arm.com>
3002         * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
3003         * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
3004         * config/aarch64/predicates.md (aarch64_const_address): Remove.
3005         (aarch64_mov_operand): Use aarch64_mov_operand_p.
3007 2013-05-23  Vidya Praveen <vidyapraveen@arm.com>
3009         * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
3010         instruction (AdvSIMD).
3011         * config/aarch64/aarch64-builtins.c
3012         (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
3013         * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
3015 2013-05-23  Martin Jambor  <mjambor@suse.cz>
3017         PR middle-end/57347
3018         * tree.h (contains_bitfld_component_ref_p): Declare.
3019         * tree-sra.c (contains_bitfld_comp_ref_p): Move...
3020         * tree.c (contains_bitfld_component_ref_p): ...here.  Adjust its
3021         caller.
3022         * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
3023         not access a bit-field.  Assert all final offsets are byte-aligned.
3025 2013-05-23  Richard Biener  <rguenther@suse.de>
3027         PR tree-optimization/57380
3028         * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
3029         least one invariant or re-used load.
3030         * passes.c (init_optimization_passes): Move pass_phiprop before
3031         pass_forwprop.
3033 2013-05-23  James Greenhalgh  <james.greenhalgh@arm.com>
3035         * config/aarch64/aarch64-simd.md
3036         (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
3038 2013-05-23  Richard Biener  <rguenther@suse.de>
3040         PR middle-end/57381
3041         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
3042         OEP_CONSTANT_ADDRESS_OF retained.
3044 2013-05-23  Jakub Jelinek  <jakub@redhat.com>
3046         PR middle-end/57344
3047         * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
3048         don't lower unit.  Handle unit not being always BITS_PER_WORD.
3050 2013-05-23  Richard Biener  <rguenther@suse.de>
3052         PR rtl-optimization/57341
3053         * ira.c (validate_equiv_mem_from_store): Use anti_dependence
3054         instead of true_dependence.
3056 2013-05-22  David Malcolm  <dmalcolm@redhat.com>
3058         * bb-reorder.c (branch_threshold): Make const.
3059         (exec_threshold): Ditto.
3061 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
3062             Pat Haugen <pthaugen@us.ibm.com>
3063             Peter Bergner <bergner@vnet.ibm.com>
3065         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
3066         documentation for the power8 crypto builtins.
3068         * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
3070         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
3071         macros for defining power8 builtin functions.
3072         (BU_P8V_AV_2): Likewise.
3073         (BU_P8V_AV_P): Likewise.
3074         (BU_P8V_VSX_1): Likewise.
3075         (BU_P8V_OVERLOAD_1): Likewise.
3076         (BU_P8V_OVERLOAD_2): Likewise.
3077         (BU_CRYPTO_1): Likewise.
3078         (BU_CRYPTO_2): Likewise.
3079         (BU_CRYPTO_3): Likewise.
3080         (BU_CRYPTO_OVERLOAD_1): Likewise.
3081         (BU_CRYPTO_OVERLOAD_2): Likewise.
3082         (XSCVSPDP): Fix typo, point to the correct instruction.
3083         (VCIPHER): Add power8 crypto builtins.
3084         (VCIPHERLAST): Likewise.
3085         (VNCIPHER): Likewise.
3086         (VNCIPHERLAST): Likewise.
3087         (VPMSUMB): Likewise.
3088         (VPMSUMH): Likewise.
3089         (VPMSUMW): Likewise.
3090         (VPERMXOR_V2DI): Likewise.
3091         (VPERMXOR_V4SI: Likewise.
3092         (VPERMXOR_V8HI: Likewise.
3093         (VPERMXOR_V16QI: Likewise.
3094         (VSHASIGMAW): Likewise.
3095         (VSHASIGMAD): Likewise.
3096         (VPMSUM): Likewise.
3097         (VPERMXOR): Likewise.
3098         (VSHASIGMA): Likewise.
3100         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
3101         __CRYPTO__ if the crypto instructions are available.
3102         (altivec_overloaded_builtins): Add support for overloaded power8
3103         builtins.
3105         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
3106         support for power8 crypto builtins.
3107         (builtin_function_type): Likewise.
3108         (altivec_init_builtins): Add support for builtins that take vector
3109         long long (V2DI) arguments.
3111         * config/rs6000/crypto.md: New file, define power8 crypto
3112         instructions.
3114 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
3115             Pat Haugen <pthaugen@us.ibm.com>
3116             Peter Bergner <bergner@vnet.ibm.com>
3118         * doc/invoke.texi (Option Summary): Add power8 options.
3119         (RS/6000 and PowerPC Options): Likewise.
3121         * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
3122         constraints.md instead of rs6000.h.  Reorder w* constraints.  Add
3123         wm, wn, wr documentation.
3125         * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
3126         registers if direct move instructions are enabled.
3127         (wn): New constraint for no registers.
3128         (wq): New constraint for quad word even GPR registers.
3129         (wr): New constraint if 64-bit instructions are enabled.
3130         (wv): New constraint if power8 vector instructions are enabled.
3131         (wQ): New constraint for quad word memory locations.
3133         * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
3134         constraint for 0..15 for crypto instructions.
3135         (gpc_reg_operand): If VSX allow registers in VSX registers as well
3136         as GPR and floating point registers.
3137         (int_reg_operand): New predicate to match only GPR registers.
3138         (base_reg_operand): New predicate to match base registers.
3139         (quad_int_reg_operand): New predicate to match even GPR registers
3140         for quad memory operations.
3141         (vsx_reg_or_cint_operand): New predicate to allow vector logical
3142         operations in both GPR and VSX registers.
3143         (quad_memory_operand): New predicate for quad memory operations.
3144         (reg_or_indexed_operand): New predicate for direct move support.
3146         * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
3147         Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
3148         (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
3149         (POWERPC_MASKS): Add power8 options.
3150         (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
3151         various options.
3153         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
3154         Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
3156         * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
3157         (-mpower8-fusion): New power8 options.
3158         (-mpower8-fusion-sign): Likewise.
3159         (-mpower8-vector): Likewise.
3160         (-mcrypto): Likewise.
3161         (-mdirect-move): Likewise.
3162         (-mquad-memory): Likewise.
3164         * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
3165         power8.
3166         (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
3167         registers.
3168         (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
3169         (rs6000_debug_vector_unit): Add p8_vector.
3170         (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
3171         definitions.  Also print fusion state.
3172         (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
3173         (rs6000_builtin_mask_calculate): Add power8 builtin support.
3174         (rs6000_option_override_internal): Add support for power8.
3175         (rs6000_common_init_builtins): Add debugging for skipped builtins
3176         if -mdebug=builtin.
3177         (rs6000_adjust_cost): Add power8 support.
3178         (rs6000_issue_rate): Likewise.
3179         (insn_must_be_first_in_group): Likewise.
3180         (insn_must_be_last_in_group): Likewise.
3181         (force_new_group): Likewise.
3182         (rs6000_register_move_cost): Likewise.
3183         (rs6000_opt_masks): Likewise.
3185         * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
3186         power8 capable assembler, default to power7 options.
3187         (TARGET_DIRECT_MOVE): Likewise.
3188         (TARGET_CRYPTO): Likewise.
3189         (TARGET_P8_VECTOR): Likewise.
3190         (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
3191         (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
3192         (VECTOR_MEM_P8_VECTOR_P): Likewise.
3193         (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
3194         (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
3195         (TARGET_XSCVDPSPN): Likewise.
3196         (TARGET_XSCVSPDPN): Likewsie.
3197         (TARGET_SYNC_HI_QI): Likewise.
3198         (TARGET_SYNC_TI): Likewise.
3199         (MASK_CRYPTO): Likewise.
3200         (MASK_DIRECT_MOVE): Likewise.
3201         (MASK_P8_FUSION): Likewise.
3202         (MASK_P8_VECTOR): Likewise.
3203         (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
3204         temporary used by some of the direct move instructions to get two FP
3205         temporary registers does not force creation of a stack frame.
3206         (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
3207         (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
3208         that any VSX registers are tieable, even if they are also an
3209         Altivec vector mode.
3210         (r6000_reg_class_enum): Add wm, wr, wv constraints.
3211         (RS6000_BTM_P8_VECTOR): Power8 builtin support.
3212         (RS6000_BTM_CRYPTO): Likewise.
3213         (RS6000_BTM_COMMON): Likewise.
3215         * config/rs6000/rs6000.md (cpu attribute): Add power8.
3216         * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
3217         (enum rs6000_vector): Add power8 vector support.
3219 2013-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3221         PR target/19599
3222         PR target/57340
3223         * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
3224         (any_sibcall_could_use_r3): this and handle indirect calls.
3225         (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
3227 2013-05-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3229         * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
3231 2013-05-22  Richard Biener  <rguenther@suse.de>
3233         PR middle-end/57349
3234         * profile.c (branch_prob): Do not split blocks that are
3235         abnormally receiving from ECF_RETURNS_TWICE functions.
3237 2013-05-22  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
3239         * recog.c (offsettable_address_addr_space_p): Fix calculation of
3240         address mode.  Move pointer mode initialization to the same place.
3242 2013-05-22  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3244         * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
3245         while it has any effect.
3247 2013-05-21  Easwaran Raman  <eraman@google.com>
3249         PR tree-optimization/57322
3250         * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
3251         UID of the statement added to the BB to be 1.
3253 2013-05-21  Jakub Jelinek  <jakub@redhat.com>
3255         PR tree-optimization/57331
3256         * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
3257         of conversion from pointer type to integral type with integer.
3259 2013-05-21  Martin Jambor  <mjambor@suse.cz>
3261         PR lto/57289
3262         * ipa-prop.c (ipa_read_node_info): Process param_used and
3263         controlled_uses in the same order as when writing.
3265 2013-05-21  Magnus Granberg  <baldrick@free.fr>
3267         PR plugins/56754
3268         * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
3270 2013-05-21  Richard Biener  <rguenther@suse.de>
3272         PR tree-optimization/57318
3273         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
3274         estimate stmts with side-effects as likely eliminated.
3276 2013-05-21  Richard Biener  <rguenther@suse.de>
3278         PR tree-optimization/57330
3279         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
3280         preserve the call stmts fntype.
3282 2013-05-21  Richard Biener  <rguenther@suse.de>
3284         PR tree-optimization/57303
3285         * tree-ssa-sink.c (statement_sink_location): Improve killing
3286         stmt detection and properly handle self-assignments.
3288 2013-05-21  Christian Bruel  <christian.bruel@st.com>
3290         * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
3291         spanning registers. LEAF_REG_REMAP is supported only for contiguous
3292         registers. Set register size out of the PARALLEL loop.
3294 2013-05-20  Oleg Endo  <olegendo@gcc.gnu.org>
3296         PR target/56547
3297         * config/sh/sh.md (fmasf4): Remove empty constraints strings.
3298         (*fmasf4, *fmasf4_media): New insns.
3300 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
3302         * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
3303         * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
3304         (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
3305         (mips_idiv_insns): Update the comments to say that the returned
3306         instruction counts are in units of BASE_INSN_LENGTH.
3307         (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
3308         by BASE_INSN_LENGTH rather than 4.  Add the jump separately,
3309         using 2 rather than 4 as the length of indirect MIPS16 and
3310         microMIPS jumps.  Use NOP_INSN_LENGTH rather than 4 as the
3311         length of a NOP.  Don't divide MIPS16 lengths by 2.
3312         (mips16_split_long_branches): Assume a branch is long if the
3313         length is greater than 4 rather than 8.
3314         * config/mips/mips.md (length): Give MIPS16 lengths directly,
3315         rather than multiplying them by 2.  Multiply instruction counts
3316         by BASE_INSN_LENGTH rather than 4.
3317         (*jump_mips16, tls_get_tp_mips16_<mode>)
3318         (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
3320 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
3322         * config/mips/mips.md (extended_mips16): Remove branch case.
3323         (length): Remove duplicated extended_mips16 test.
3325 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
3327         * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
3329 2013-05-18  Richard Sandiford  <rdsandiford@googlemail.com>
3331         * recog.h (Recog_data): Rename to...
3332         (recog_data_d): ...this.
3333         (recog_data): Update accordingly.
3334         * recog.c (recog_data): Likewise.
3335         * reload.c (save_recog_data): Likewise.
3336         * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
3337         (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
3339 2013-05-17  Julian Brown  <julian@codesourcery.com>
3341         * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
3342         found in a REG_EQUAL note, invalidate it.
3344 2013-05-17   Easwaran Raman  <eraman@google.com>
3346         * tree-ssa-reassoc.c (find_insert_point): New function.
3347         (insert_stmt_after): Likewise.
3348         (get_def_stmt): Likewise.
3349         (ensure_ops_are_available): Likewise.
3350         (not_dominated_by): Likewise.
3351         (rewrite_expr_tree): Do not move statements beyond what is
3352         necessary. Remove call to swap_ops_for_binary_stmt...
3353         (reassociate_bb): ... and move it here.
3354         (build_and_add_sum): Assign UIDs for new statements.
3355         (linearize_expr): Likewise.
3356         (do_reassoc): Renumber gimple statement UIDs.
3358 2013-05-17  Jan Hubicka  <jh@suse.cz>
3360         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
3361         weakrefs.
3362         * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
3363         * cgraphunit.c (handle_alias_pairs): Store target of unresolved
3364         weakrefs.
3365         (output_weakrefs): Update.
3367 2013-05-17  Po-Chun Chang  <pchang9@cs.wisc.edu>
3368             Martin Jambor  <mjambor@suse.cz>
3370         PR middle-end/57276
3371         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
3372         value that corresponds to the given aggval is found in values vector.
3374 2013-05-17  Uros Bizjak  <ubizjak@gmail.com>
3376         * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
3377         sse, sse2, sse3, ssse3 and sse4a flags to options.
3379 2013-05-17  David Malcolm  <dmalcolm@redhat.com>
3381         * gengtype-state.c: (s_expr_writer): New class, to handle
3382         prettifying of output layout of s-expressions.
3383         (state_writer): New class, to write out gtype.state.
3384         (state_written_type_count): Move this variable into member data of
3385         state_writer.
3386         (s_expr_writer::s_expr_writer): New code: constructor for new class
3387         (state_writer::state_writer(): ditto
3388         (s_expr_writer::write_new_line): New function
3389         (s_expr_writer::write_any_indent): ditto
3390         (s_expr_writer::begin_s_expr): ditto
3391         (s_expr_writer::end_s_expr): ditto
3392         (write_state_fileloc): convert to method of state_writer...
3393         (state_writer:: write_state_fileloc): ...and use methods of
3394         s_expr_writer to write indentation into the gtype.state output file
3395         to visually represent the hierarchical structure of the list
3396         structures
3397         (write_state_fields): ditto, renaming to...
3398         (state_writer::write_state_fields)
3399         (write_state_a_string): ditto, renaming to...
3400         (state_writer::write_state_a_string)
3401         (write_state_string_option): ditto, renaming to...
3402         (state_writer::write_state_string_option)
3403         (write_state_type_option): ditto, renaming to...
3404         (state_writer::write_state_type_option)
3405         (write_state_nested_option): ditto, renaming to...
3406         (state_writer::write_state_nested_option)
3407         (write_state_option): ditto, renaming to...
3408         (state_writer::write_state_option)
3409         (write_state_options): ditto, renaming to...
3410         (state_writer::write_state_options)
3411         (write_state_lang_bitmap): ditto, renaming to...
3412         (state_writer::write_state_lang_bitmap)
3413         (write_state_version): ditto, renaming to...
3414         (state_writer::write_state_version)
3415         (write_state_scalar_type): ditto, renaming to...
3416         (state_writer::write_state_scalar_type)
3417         (write_state_string_type): ditto, renaming to...
3418         (state_writer::write_state_string_type)
3419         (write_state_undefined_type): ditto, renaming to...
3420         (state_writer::write_state_undefined_type)
3421         (write_state_struct_union_type): ditto, renaming to...
3422         (state_writer::write_state_struct_union_type)
3423         (write_state_struct_type): ditto, renaming to...
3424         (state_writer::write_state_struct_type)
3425         (write_state_user_struct_type): ditto, renaming to...
3426         (state_writer::write_state_user_struct_type)
3427         (write_state_lang_struct_type): ditto, renaming to...
3428         (state_writer::write_state_lang_struct_type)
3429         (write_state_param_struct_type): ditto, renaming to...
3430         (state_writer::write_state_param_struct_type)
3431         (write_state_pointer_type): ditto, renaming to...
3432         (state_writer::write_state_pointer_type)
3433         (write_state_array_type): ditto, renaming to...
3434         (state_writer::write_state_array_type)
3435         (write_state_gc_used): ditto, renaming to...
3436         (state_writer::write_state_gc_used)
3437         (write_state_common_type_content): ditto, renaming to...
3438         (state_writer::write_state_common_type_content)
3439         (write_state_type): ditto, renaming to...
3440         (state_writer::write_state_type)
3441         (write_state_pair_list): ditto, renaming to...
3442         (state_writer::write_state_pair_list)
3443         (write_state_pair): ditto, renaming to...
3444         (state_writer::write_state_pair)
3445         (write_state_typedefs): ditto, renaming to...
3446         (state_writer::write_state_typedefs)
3447         (write_state_structures): ditto, renaming to...
3448         (state_writer::write_state_structures)
3449         (write_state_param_structs): ditto, renaming to...
3450         (state_writer::write_state_param_structs)
3451         (write_state_variables): ditto, renaming to...
3452         (state_writer::write_state_variables)
3453         (write_state_srcdir): ditto, renaming to...
3454         (state_writer::write_state_srcdir)
3455         (write_state_files_list): ditto, renaming to...
3456         (state_writer::write_state_files_list)
3457         (write_state_languages): ditto, renaming to...
3458         (state_writer::write_state_languages)
3459         (write_state): create a state_writer instance and use it when
3460         writing out the state file
3462 2013-05-17  Mike Stump  <mikestump@comcast.net>
3464         PR rtl-optimization/57304
3465         * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
3466         accessing DF_REF_REAL_LOC.
3468 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
3470         PR rtl-optimization/57281
3471         PR rtl-optimization/57300
3472         * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
3473         (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
3474         what the other splitter did if the registers are dead.
3476 2013-05-17  Richard Biener  <rguenther@suse.de>
3478         * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
3479         MEM_REF offsets.
3481 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
3483         * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
3484         linking.
3486 2013-05-17  Marek Polacek  <polacek@redhat.com>
3488         * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
3489         length when doing non-zero store of storing '\0' to '\0'.
3491 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
3493         * tree-vect-patterns.c (vect_recog_rotate_pattern): For
3494         vect_external_def oprnd1 with loop_vinfo, try to emit
3495         optional cast, negation and and stmts on the loop preheader
3496         edge instead of into the pattern def seq.
3498         PR tree-optimization/57051
3499         * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
3500         case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
3502 2013-05-16  Nick Clifton  <nickc@redhat.com>
3504         * config/rl78/rl78.c (rl78_attribute_table): Add naked.
3505         (rl78_is_naked_func): New function.
3506         (rl78_expand_prologue): Skip prologue generation for naked functions.
3507         (rl78_expand_epilogue): Skip epilogue generation for naked functions.
3508         * doc/extend.texi (naked): Add RL78 to the list of processors
3509         that supports this attribute.
3511 2013-05-16  Jeff Law  <law@redhat.com>
3513         * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
3515 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
3517         * config/i386/driver-i386.c (host_detect_local_cpu): Determine
3518         cache parameters using detect_caches_amd also for CYRIX,
3519         NSC and TM2 signatures.
3521 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
3522             Dzianis Kahanovich  <mahatma@eu.by>
3524         PR target/45359
3525         PR target/46396
3526         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3527         VIA/Centaur processors and determine their cache parameters
3528         using detect_caches_amd.
3530 2013-05-16  Teresa Johnson  <tejohnson@google.com>
3532         * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
3533         (rtl_verify_edges): New function.
3534         (rtl_verify_bb_insns): Ditto.
3535         (rtl_verify_bb_pointers): Ditto.
3536         (rtl_verify_bb_insn_chain): Ditto.
3537         (rtl_verify_fallthru): Ditto.
3538         (rtl_verify_bb_layout): Ditto.
3539         (rtl_verify_flow_info_1): Outline checks into new functions.
3540         (rtl_verify_flow_info): Ditto.
3542 2013-05-16  Steve Ellcey  <sellcey@imgtec.com>
3544         * cfghooks.c (copy_bbs): Add update_dominance argument.
3545         * cfghooks.h (copy_bbs): Update prototype.
3546         * tree-cfg.c (gimple_duplicate_sese_region):
3547         Add update_dominance argument.
3548         * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
3549         * tree-ssa-loop-ch.c (copy_loop_headers): Update
3550         gimple_duplicate_sese_region call.
3551         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
3552         Update copy_bbs call.
3553         * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
3554         * trans-mem.c (ipa_uninstrument_transaction): Ditto.
3556 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
3558         * tree-vectorizer.h (NUM_PATTERNS): Increment.
3559         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
3560         vect_recog_rotate_pattern.
3561         (vect_recog_rotate_pattern): New function.
3563 2013-05-16  Jason Merrill  <jason@redhat.com>
3565         * Makefile.in (LLINKER): New variable.
3566         (mostlyclean): Remove link mutex.
3567         * configure.ac: Handle --enable-link-mutex.
3568         * lock-and-run.sh: New script.
3570 2013-05-16  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3572         PR target/19599
3573         * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
3574         for NULL decl.
3576 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3578         * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
3580 2013-05-16  Greta Yorsh  <Greta.Yorsh@arm.com>
3582         * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
3583         * config/arm/arm.c (next_consecutive_mem): New function.
3584         (gen_movmem_ldrd_strd): Likewise.
3585         * config/arm/arm.md (movmemqi): Update condition and code.
3586         (unaligned_loaddi, unaligned_storedi): New patterns.
3588 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3590         * config.gcc: Obsolete *-*-solaris2.9*.
3591         * doc/install.texi (Specific, *-*-solaris2*): Document it.
3593 2013-05-16  Richard Biener  <rguenther@suse.de>
3595         * passes.c (init_optimization_passes): Move pass_parallelize_loops
3596         earlier, after GRAPHITE transforms and IV canonicalization.
3598 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
3600         * omp-low.c (extract_omp_for_data): For collapsed loops,
3601         if at least one of the loops is known at compile time to
3602         iterate zero times, set count to 0.
3603         (expand_omp_regimplify_p): New function.
3604         (expand_omp_for_generic): For collapsed loops, if at least
3605         one of the loops isn't known to iterate at least once,
3606         add runtime check with setting count to 0.
3607         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
3608         For unsigned types if it isn't known at compile time that
3609         the loop will iterate at least once, add runtime check to bypass
3610         the whole loop if initial condition isn't true.
3612 2013-05-16  Nathan Sidwell  <nathan@codesourcery.com>
3614         * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
3616 2013-05-16  Marc Glisse  <marc.glisse@inria.fr>
3618         PR middle-end/57286
3619         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
3620         transformations to avoid an infinite loop.
3622 2013-05-16  Marek Polacek  <polacek@redhat.com>
3624         * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
3626 2013-05-15  Leif Ekblad  <leif@rdos.net>
3628         * config/i386/i386.c (ix86_decompose_address): Use
3629         DEFAULT_TLS_SEG_REG to access TLS segment register.
3630         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
3631         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
3632         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
3634 2013-05-15  Richard Sandiford  <rdsandiford@googlemail.com>
3636         PR target/57260
3637         * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
3638         sibling calls to functions that would normally be lazily bound,
3639         unless $gp is call-clobbered.
3641 2013-05-15  Uros Bizjak  <ubizjak@gmail.com>
3643         * config/i386/i386.c (ix86_option_override_internal): Update
3644         processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags.  Add
3645         PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
3646         non-SSE 3dNow! targets.  Enable TARGET_PRFCHW for TARGET_3DNOW targets.
3647         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
3648         of TARGET_3DNOW.
3649         (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
3651 2013-05-15  Andreas Schwab  <schwab@suse.de>
3653         * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
3654         for rotlhi3+1 and rotlqi3+1, resp.  Fix reference to non-existing
3655         third operand.
3657 2013-05-15  Teresa Johnson  <tejohnson@google.com>
3659         * loop-unroll.c (report_unroll_peel): Check decision before
3660         emitting unroll/peel message.
3662 2013-05-15  Teresa Johnson  <tejohnson@google.com>
3664         * function.h (has_bb_partition): New rtl_data flag.
3665         (bb_reorder_complete): Ditto.
3666         * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
3667         instead of flag_reorder_blocks_and_partition.
3668         * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
3669         with some enhancements.
3670         (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
3671         * bb-reorder.c (connect_traces): Check for has_bb_partition
3672         instead of flag_reorder_blocks_and_partition.
3673         (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
3674         (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
3675         verify_hot_cold_block_grouping.
3676         (partition_hot_cold_basic_blocks): Set has_bb_partition.
3678 2013-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3680         PR target/19599
3681         * config/arm/predicates.md (call_insn_operand): New predicate.
3682         * config/arm/constraints.md ("Cs", "Ss"):  New constraints.
3683         * config/arm/arm.md (*call_insn, *call_value_insn): Match only
3684         if insn is not a tail call.
3685         (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
3686         registers.
3687         * config/arm/arm.h (enum reg_class): New caller save register class.
3688         (REG_CLASS_NAMES): Likewise.
3689         (REG_CLASS_CONTENTS): Likewise.
3690         * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
3691         without decls.
3693 2013-05-15  Richard Biener  <rguenther@suse.de>
3695         * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
3696         of MSG_OPTIMIZED_LOCATIONS.
3697         * tree-vect-slp.c (vect_make_slp_decision): Likewise.
3698         (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
3699         message.
3700         * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
3701         of MSG_OPTIMIZED_LOCATIONS.
3702         (execute_vect_slp): Likewise.
3703         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
3704         (vect_create_cond_for_alias_checks): Likewise.
3705         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
3706         (vect_recog_widen_mult_pattern): Likewise.
3707         (vect_recog_widen_sum_pattern): Likewise.
3708         (vect_recog_over_widening_pattern): Likewise.
3709         (vect_recog_widen_shift_pattern): Likewise.
3710         (vect_recog_vector_vector_shift_pattern): Likewise.
3711         (vect_recog_divmod_pattern): Likewise.
3712         (vect_recog_mixed_size_cond_pattern): Likewise.
3713         (vect_recog_bool_pattern): Likewise.
3714         (vect_pattern_recog_1): Likewise.
3716 2013-05-15  Martin Jambor  <mjambor@suse.cz>
3718         * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
3719         non-functions to builtin_unreachable.
3720         * ipa-inline-transform.c (inline_call): Do not assert estimates were
3721         correct when new direct edges were discovered.
3723 2013-05-15  Martin Jambor  <mjambor@suse.cz>
3725         * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
3726         header, print symbol order instead of node uid, print more information
3727         about indirect edge targets.
3728         (ipa_make_edge_direct_to_target): Print symbol order instead of node
3729         uids.
3730         (ipa_make_edge_direct_to_target): Likewise.
3731         (remove_described_reference): Likewise.
3732         (propagate_controlled_uses): Likewise.
3733         (ipa_print_node_params): Also print symbol order.
3734         (ipcp_transform_function): Print symbol order instead of node uids.
3735         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
3736         (cgraph_get_create_real_symbol_node): Likewise.
3737         * ipa-cp.c (print_lattice): Likewise.
3738         (print_all_lattices): Likewise.
3739         (determine_versionability): Likewise.
3740         (initialize_node_lattices): Likewise.
3741         (estimate_local_effects): Likewise.
3742         (update_profiling_info): Likewise.
3743         (create_specialized_node): Likewise.
3744         (perhaps_add_new_callers): Likewise.
3745         (decide_about_value): Likewise.
3746         (decide_whether_version_node): Likewise.
3747         (identify_dead_nodes): Likewise.
3748         * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
3749         (dump_inline_summary): Likewise.
3750         (estimate_node_size_and_time): Likewise.
3751         (inline_analyze_function): Likewise.
3752         * ipa-inline.c (report_inline_failed_reason): Likewise.
3753         (want_early_inline_function_p): Likewise.
3754         (edge_badness): Likewise.
3755         (update_edge_key): Likewise.
3756         (inline_small_functions): Likewise.  Add dumping of order to two other
3757         dumps.
3758         * ipa-pure-const.c (pure_const_read_summary): Print symbol order
3759         instead of node uids.
3760         (propagate_pure_const): Likewise.
3761         (propagate_pure_const): Likewise.
3762         * ipa-utils.c (dump_cgraph_node_set): Likewise.
3763         * lto-cgraph.c (input_node): Explicitly specify we dump uid.
3764         * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
3765         of node uids.
3766         * tree-pretty-print.c (dump_function_header): Likewise.
3767         * tree-sra.c (convert_callers_for_node): Dump in traditional format.
3768         Print symbol order instead of node uids.
3770 2013-05-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3772         * config/s390/s390.c (s390_register_move_cost): Don't impose the
3773         FPR<->GPR move cost penalty if ldgr/lgdr can be used.
3775 2013-05-15  Richard Biener  <rguenther@suse.de>
3777         PR tree-optimization/57275
3778         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
3779         return value for fail to do runtime alias checks for gather loads.
3781 2013-05-15  Jan Hubicka  <jh@suse.cz>
3783         PR lto/57038
3784         PR lto/47375
3785         * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
3786         weakrefs are not external.
3787         (lto_symtab_merge_decls): Fix thinko when dealing with
3788         non-lto_symtab decls.
3789         (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
3790         (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
3791         * varpool.c (dump_varpool_node): Dump more flags.
3793 2013-05-15  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
3795         * config/i386/i386.c (processor_alias_table): Add instruction
3796         FSGSBASE for AMD bdver3 architecture.
3798 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
3800         * tree.c (warn_deprecated_use): Print file:line using locus color.
3801         * diagnostic.c (diagnostic_report_current_module): Print file:line
3802         and file:line:column using locus color.
3804 2013-05-14  Mike Stump  <mikestump@comcast.net>
3806         * gdbinit.in: Add __null.
3808 2013-05-14  Mike Stump  <mikestump@comcast.net>
3810         * recog.h: Rename struct recog_data to Recog_data.
3811         * recog.c: Likewise.
3812         * reload.c (can_reload_into): Likewise.
3813         * config/picochip/picochip.c: Likewise.
3815 2013-05-14  Mike Stump  <mikestump@comcast.net>
3817         * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
3819 2013-05-14  Steven Bosscher  <steven@gcc.gnu.org>
3821         * resource.h (struct resources): Remove unch_memory member.
3822         (CLEAR_RESOURCE): Don't clear unch_memory.
3823         * resource.c (mark_referenced_resources): Don't set it.
3824         (mark_set_resources): Likewise.
3825         (mark_target_live_regs): Don't clear it.
3826         (init_resource_info): Likewise.
3827         * reorg.c (resource_conflicts_p): Don't compare it.
3828         (redundant_insn): Don't set it.
3830         * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
3831         Remove prototypes.
3832         * emit-rtl.c (next_label): Remove unused function.
3833         (skip_consecutive_labels, link_cc0_insns): Move to ...
3834         * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
3835         only place where these functions are used, and make them static.
3837 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
3839         * fold-const.c (fold_negate_expr): Handle vectors.
3840         (fold_truth_not_expr): Make it static.
3841         (fold_invert_truthvalue): New static function.
3842         (invert_truthvalue_loc): Handle vectors. Do not call
3843         fold_truth_not_expr directly.
3844         (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
3845         <TRUTH_NOT_EXPR>: Do not cast to boolean.
3846         (fold_comparison): Handle vector constants.
3847         (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
3848         (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
3849         * tree.h (fold_truth_not_expr): Remove declaration.
3851 2013-05-14  James Greenhalgh  <james.greenhalgh@arm.com>
3853         * config/aarch64/aarch64-simd.md
3854         (aarch64_vcond_internal<mode>): Rename to...
3855         (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
3856         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
3857         float modes. Clarify all iterator modes.
3858         (vcond<mode><mode>): Use new name for vcond expanders.
3859         (vcond<v_cmp_result><mode>): Likewise.
3860         (vcondu<mode><mode>: Likewise.
3861         * config/aarch64/iterators.md (VDQF_COND): New.
3863 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
3865         PR bootstrap/57266
3866         * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
3867         variable for the shift amount. Check that we shift by non-negative
3868         amounts.
3870 2013-05-14  Chung-Lin Tang  <cltang@codesourcery.com>
3872         PR target/42017
3873         * config/arm/arm.h (EPILOGUE_USES): Only return true
3874         for LR_REGNUM after epilogue_completed.
3876 2013-05-14  Joern Rennecke <joern.rennecke@embecosm.com>
3878         * config/avr/avr.c (avr_encode_section_info): Bail out if the type
3879         is error_mark_node.
3881 2013-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3883         PR target/57261
3884         * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
3885         and Solaris 11+/x86 with gld.
3886         * configure: Regenerate.
3888 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
3890         * expmed.c (expand_shift_1): Canonicalize rotates by
3891         constant bitsize / 2 to bitsize - 1.
3892         * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
3893         case ROTATERT>: Likewise.
3895         Revert:
3896         2013-05-10  Jakub Jelinek  <jakub@redhat.com>
3898         * config/i386/i386.md (rotateinv): New code attr.
3899         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
3900         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
3901         roll $31, %eax, etc.
3903 2013-05-14  Richard Biener  <rguenther@suse.de>
3905         PR middle-end/57235
3906         * tree-eh.c (sink_clobbers): Give up for successors with
3907         multiple predecessors and no virtual uses.
3909 2013-05-14  Eric Botcazou  <ebotcazou@adacore.com>
3911         * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
3912         * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
3914 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
3916         PR middle-end/57251
3917         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
3918         the case when both op0 and op1 have VOIDmode.
3920 2013-05-14  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
3922         * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
3923         in multiply-accumulate mode.
3925 2013-05-13  Guozhi Wei  <carrot@google.com>
3927         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
3929 2013-05-13  Kai Tietz  <ktietz@redhat.com>
3931         PR target/56975
3932         * config/i386/cygming.h (TARGET_PECOFF): Define as true.
3933         * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
3934         (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
3935         * config/i386/i386.c (ix86_option_override_internal): Likewise.
3936         (ix86_expand_prologue): Likewise.
3937         (ix86_expand_split_stack_prologue): Likewise.
3938         (legitimate_pic_address_disp_p): Likewise.
3939         (legitimize_pic_address): Likewise.
3940         (legitimize_tls_address): Likewise.
3941         (legitimize_pe_coff_symbol): Likewise.
3942         (output_pic_addr_const): Likewise.
3943         (construct_plt_address): Likewise.
3944         (ix86_expand_call): Likewise.
3945         (x86_output_mi_thunk): Likewise.
3946         (x86_function_profiler): Likewise.
3948 2013-05-13  Sofiane Naci  <sofiane.naci@arm.com>
3950         * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
3951         similar switch cases.
3952         (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
3953         (aarch64_simd_mov_to_<mode>low): Delete.
3954         (aarch64_simd_mov_to_<mode>high): Delete.
3955         (move_lo_quad_<mode>): Add w<-r alternative.
3956         (aarch64_simd_move_hi_quad_<mode>): Likewise.
3957         (aarch64_simd_mov_from_*): Update type attribute.
3958         * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
3959         statement.
3961 2013-05-13  Jan Hubicka  <jh@suse.cz>
3963         * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
3964         * config/i386/i386.c (ix86_compute_frame_layout,
3965         ix86_expand_epilogue, emit_i387_cw_initialization,
3966         ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
3967         ix86_local_alignment): Fix use of size/speed predicates.
3969 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
3971         PR tree-optimization/45216
3972         PR tree-optimization/57157
3973         * tree-ssa-forwprop.c (simplify_rotate): Only recognize
3974         the (-Y) & (B - 1) variant if OP is |.
3975         * expmed.c (expand_shift_1): For rotations by const0_rtx just
3976         return shifted.  Use (-op1) & (prec - 1) as other_amount
3977         instead of prec - op1.
3979 2013-05-13  Martin Jambor  <mjambor@suse.cz>
3981         PR middle-end/42371
3982         * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
3983         (ipa_constant_data): New type.
3984         (ipa_jump_func): Use ipa_constant_data to hold information about
3985         constant jump functions.
3986         (ipa_get_jf_constant): Adjust to jump function type changes.
3987         (ipa_get_jf_constant_rdesc): New function.
3988         (ipa_param_descriptor): New field controlled_uses.
3989         (ipa_get_controlled_uses): New function.
3990         (ipa_set_controlled_uses): Likewise.
3991         * ipa-ref.h (ipa_find_reference): Declare.
3992         * ipa-prop.c (ipa_cst_ref_desc): New type.
3993         (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
3994         changes.
3995         (ipa_set_jf_constant): Likewise.  Also create reference descriptions.
3996         New parameter cs.  Adjust all callers.
3997         (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
3998         (remove_described_reference): New function.
3999         (jfunc_rdesc_usable): Likewise.
4000         (try_make_edge_direct_simple_call): Decrement controlled use count,
4001         attempt to remove reference if it hits zero.
4002         (combine_controlled_uses_counters): New function.
4003         (propagate_controlled_uses): Likewise.
4004         (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
4005         (ipa_edge_duplication_hook): Duplicate reference descriptions.
4006         (ipa_print_node_params): Print described use counter.
4007         (ipa_write_jump_function): Adjust to jump function type changes.
4008         (ipa_read_jump_function): New parameter CS, pass it to
4009         ipa_set_jf_constant.  Adjust caller.
4010         (ipa_write_node_info): Stream controlled use count
4011         (ipa_read_node_info): Likewise.
4012         * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
4013         asserting.
4014         * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
4015         count.  Remove cloning-added reference if it reaches zero.
4016         * ipa-ref.c (ipa_find_reference): New function.
4018 2013-05-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
4020         * config/i386/i386.c (processor_target_table): Modified default
4021         alignment values for AMD BD and BT architectures.
4023 2013-05-13  Marc Glisse  <marc.glisse@inria.fr>
4025         * tree-vect-generic.c (uniform_vector_p): Move ...
4026         * tree.c (uniform_vector_p): ... here.
4027         * tree.h (uniform_vector_p): Declare it.
4028         * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
4029         into a scalar.
4031 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
4033         PR tree-optimization/57230
4034         * tree-ssa-strlen.c (handle_char_store): Record length for
4035         array store from STRING_CST.
4037         PR tree-optimization/57230
4038         * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
4039         check.
4041 2013-05-12  Joern Rennecke  <joern.rennecke@embecosm.com>
4043         * config/epiphany/epiphany.c (epiphany_init): Check size of
4044         NUM_MODES_FOR_MODE_SWITCHING.
4045         (epiphany_expand_prologue):
4046         Remove CONFIG_REGNUM initial value handling code.
4047         (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
4048         (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
4049         (emit_set_fp_mode, epiphany_mode_after): Likewise.
4050         (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
4051         Don't return 1 for FP_MODE_NONE.
4052         * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
4053         Add value for EPIPHANY_MSW_ENTITY_CONFIG.
4054         (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
4055         * config/epiphany/epiphany.md (save_config): New pattern.
4057 2013-05-12  Uros Bizjak  <ubizjak@gmail.com>
4059         * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
4061 2013-05-10  Uros Bizjak  <ubizjak@gmail.com>
4063         * config/i386/i386.md (memory): Handle sseishft1.
4064         * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
4065         (*vec_extractv2di_1): Ditto.
4067 2013-05-10  Vladimir Makarov  <vmakarov@redhat.com>
4069         * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
4070         saved registers.
4072 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4074         * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
4075         Add mthumb/march=armv7-a multilib.
4076         Add mthumb/march=armv7-r multilib.
4077         Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
4079 2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
4081         * config/v850/t-rtems: Add more multilibs.
4083 2013-05-10  Richard Biener  <rguenther@suse.de>
4085         PR tree-optimization/57214
4086         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
4087         not propagate from SSA names that occur in abnormal PHI nodes.
4089 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
4091         * stor-layout.c (element_precision): New function.
4092         * machmode.h (element_precision): Declare it.
4093         * tree.c (build_minus_one_cst): New function.
4094         (element_precision): Likewise.
4095         * tree.h (build_minus_one_cst): Declare new function.
4096         (element_precision): Likewise.
4097         * fold-const.c (operand_equal_p): Use element_precision.
4098         (fold_binary_loc): Handle vector types.
4099         * convert.c (convert_to_integer): Use element_precision.
4100         * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
4101         separately.
4103 2013-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
4105         * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
4106         (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
4107         (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
4108         (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
4109         * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
4110         (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
4111         (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
4112         (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
4113         * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
4114         (Uuw8): New constraints.
4115         (Usb4): Move into alphabetical order.
4116         * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
4117         (sd8_operand, ub8_operand, uw8_operand): New predicates.
4118         * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
4119         previously unnamed patterns.
4120         (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
4121         (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
4122         (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
4123         (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
4124         of set_attr_alternative/if_then_else.  Use extended_mips16 instead
4125         of specific lengths.
4127 2013-05-10  Jakub Jelinek  <jakub@redhat.com>
4129         * config/i386/i386.md (rotateinv): New code attr.
4130         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
4131         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
4132         roll $31, %eax, etc.
4134         PR tree-optimization/45216
4135         PR tree-optimization/57157
4136         * tree-ssa-forwprop.c (simplify_rotate): New function.
4137         (ssa_forward_propagate_and_combine): Call it.
4139 2013-05-10  Richard Biener  <rguenther@suse.de>
4141         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
4142         disable peeling when we version for aliasing.
4143         (vector_alignment_reachable_p): Honor explicit user alignment.
4144         (vect_supportable_dr_alignment): Likewise.
4145         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
4146         STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
4147         * tree-vect-loop.c (vect_transform_loop): First apply versioning,
4148         then peeling to arrange for the cost-model check to come first.
4150 2013-05-10  Alan Modra  <amodra@gmail.com>
4152         * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
4153         (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
4154         * configure: Regenerate.
4156 2013-05-10  Alan Modra  <amodra@gmail.com>
4158         PR target/55033
4159         * varasm.c (default_elf_select_section): Move !DECL_P check..
4160         (get_named_section): ..to here before calling get_section_name.
4161         Adjust assertion.
4162         (default_section_type_flags): Add DECL_P check.
4163         * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
4164         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
4166 2013-05-09  Joern Rennecke  <joern.rennecke@embecosm.com>
4168         * config/epiphany/epiphany.c (epiphany_expand_prologue):
4169         When using gen_stack_adjust_str with a register offset, add a
4170         REG_FRAME_RELATED_EXPR note.
4172 2013-05-09  Uros Bizjak  <ubizjak@gmail.com>
4174         * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
4175         (*vec_extractv4si_zext_mem): Ditto.
4176         (*vec_extractv2di): Add 0->x and x->x alternatives.
4177         * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
4178         * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
4180 2013-05-09  Jason Merrill  <jason@redhat.com>
4182         N3639 C++1y VLA support
4183         * gimplify.c (gimplify_vla_decl): Don't touch an existing
4184         DECL_VALUE_EXPR.
4186         * tree.c (build_constructor_va): New.
4187         * tree.h: Declare it.
4189 2013-05-09  Martin Jambor  <mjambor@suse.cz>
4191         PR lto/57084
4192         * gimple-fold.c (canonicalize_constructor_val): Call
4193         cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
4195 2013-05-09  Jan Hubicka  <jh@suse.cz>
4196             Richard Biener  <rguenther@suse.de>
4198         PR lto/54095
4199         * symtab.c (symtab_make_decl_local): Do not add private names.
4201 2013-05-09  Jan Hubicka  <jh@suse.cz>
4203         PR lto/54095
4204         * symtab.c (insert_to_assembler_name_hash): Handle clones.
4205         (unlink_from_assembler_name_hash): Likewise.
4206         (symtab_prevail_in_asm_name_hash, symtab_register_node,
4207         symtab_unregister_node, symtab_initialize_asm_name_hash,
4208         change_decl_assembler_name): Update.
4210 2013-05-09  Sofiane Naci  <sofiane.naci@arm.com>
4212         * config/aarch64/aarch64.md: New movtf split.
4213         (*movtf_aarch64): Update.
4214         (aarch64_movdi_tilow): Handle TF modes and rename to
4215         aarch64_movdi_<mode>low.
4216         (aarch64_movdi_tihigh): Handle TF modes and rename to
4217         aarch64_movdi_<mode>high
4218         (aarch64_movtihigh_di): Handle TF modes and rename to
4219         aarch64_mov<mode>high_di
4220         (aarch64_movtilow_di): Handle TF modes and rename to
4221         aarch64_mov<mode>low_di
4222         (aarch64_movtilow_tilow): Remove spurious whitespace.
4223         * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
4224         splits.
4225         (aarch64_print_operand): Update.
4227 2013-05-09  Alan Modra  <amodra@gmail.com>
4229         * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
4230         powerpc64le.
4231         * configure: Regenerate.
4233 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
4235         * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
4236         splitter preparation statements.
4237         * config/i386/sse.md (*vec_extract* splitters): Ditto.
4238         (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
4239         adjust_address_nv.
4241 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4243         * gimple-ssa-strength-reduction.c (count_candidates): Change
4244         return value to int.
4245         (analyze_candidates_and_replace): Change type of length to int.
4247 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
4249         * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
4250         (*vec_extract<mode>): Use VI12_128 mode iterator.
4251         (*vec_extract<mode>_mem): Ditto.
4252         (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
4253         attribute.
4255 2013-05-08  Diego Novillo  <dnovillo@google.com>
4257         PR bootstrap/54659
4259         Revert:
4260         2012-08-17  Diego Novillo  <dnovillo@google.com>
4262         PR bootstrap/54281
4263         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
4264         * config.in: Regenerate.
4265         * configure: Regenerate.
4266         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4268 2013-05-08  Jan Hubicka  <jh@suse.cz>
4270         PR lto/54095
4271         * cgraph.c (cgraph_make_node_local_1): Se unique_name.
4272         * cgraph.h (symtab_node_base): Add unique_name.
4273         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
4274         input_overwrite_node, input_varpool_node): Stream unique_name.
4275         * cgraphclones.c (cgraph_create_virtual_clone,
4276         cgraph_function_versioning): Set unique_name.
4277         * ipa.c (function_and_variable_visibility): Set unique_name.
4279 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4281         * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
4282         (alloc_cand_and_find_basis): Restrict conditional candidate
4283         processing to CAND_MULTs.
4285 2013-05-08  Jan Hubicka  <jh@suse.cz>
4287         PR lto/54095
4288         lto-symtab.c (lto_symtab_symbol_p): New function.
4289         (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
4290         lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
4291         lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
4292         Skip static symbols.
4294 2013-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
4296         PR tree-optimization/57200
4297         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
4298         Only call inform if the preceding warning_at returns true.
4300 2013-05-07  Han Shen  <shenhan@google.com>
4302         * cfgexpand.c (record_or_union_type_has_array_p): New function.
4303         (expand_used_vars): Add logic handling '-fstack-protector-strong'.
4304         * common.opt (fstack-protector-strong): New option.
4305         * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
4306         * doc/invoke.texi (Optimization Options): Document
4307         "-fstack-protector-strong".
4308         * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
4310 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
4312         * config/mips/mips.c (mips_machine_reorg2): Return 0.
4314 2013-05-07  Vladimir Makarov  <vmakarov@redhat.com>
4316         * ira.c (update_equiv_regs): Add insn having equiv memory even if
4317         it is not lhs of the insn.
4318         (setup_reg_equiv): Remove insn having equiv memory which it is not
4319         lhs of the insn.
4320         * lra-constraints.c (process_address): Try to improve generation
4321         code for address base + disp.
4322         (lra_constraints): Make correct the code for checking insn setting
4323         up backward equivalence.  Remove insn only if it is in the init
4324         insn list.
4325         * lra-eliminations.c (update_reg_eliminate): Change return value.
4326         (lra_eliminate): Use the result.
4328 2013-05-07  Uros Bizjak  <ubizjak@gmail.com>
4330         * config/i386/sse.md (ssescalarnummask): New mode attribute.
4331         (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
4332         (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
4333         *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
4334         register target operands.
4335         (*vec_extractv8hi_sse2): New pattern.
4336         (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
4337         (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
4338         (*vec_extract<mode>_mem): New insn and split pattern.
4340 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
4342         * config/arm/arm.c (arm_asan_shadow_offset): New function.
4343         (TARGET_ASAN_SHADOW_OFFSET): Define.
4344         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
4345         (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
4347 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4349         * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
4350         (incr_vec_index): Return -1 if increment not found.
4351         (create_add_on_incoming_edge): Assert if increment not found.
4352         (record_increment): Limit number of increments recorded.
4353         (all_phi_incrs_profitable): Return false if an increment not found.
4354         (replace_profitable_candidates): Don't process increments that were
4355         not recorded.
4356         (analyze_candidates_and_replace): Limit size of incr_vec.
4358 2013-05-07  Richard Biener  <rguenther@suse.de>
4360         * calls.c (special_function_p): setjmp-like functions are leaf.
4361         * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
4362         * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
4364 2013-05-07  Sofiane Naci  <sofiane.naci@arm.com>
4366         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
4367         (aarch64_simd_mov<mode>): New expander.
4368         (aarch64_simd_mov_to_<mode>low): New instruction pattern.
4369         (aarch64_simd_mov_to_<mode>high): Likewise.
4370         (aarch64_simd_mov_from_<mode>low): Likewise.
4371         (aarch64_simd_mov_from_<mode>high): Likewise.
4372         (aarch64_dup_lane<mode>): Update.
4373         (aarch64_dup_lanedi): New instruction pattern.
4374         * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
4375         * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
4377 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4379         * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
4380         (replace_mult_candidate): Remove unnecessary argument; remove
4381         unnecessary parameter from call to introduce_cast_before_cand.
4382         (replace_unconditional_candidate): Remove unnecessary parameter
4383         from call to replace_mult_candidate.
4384         (replace_conditional_candidate): Likewise.
4385         (insert_initializers): Use make_temp_ssa_name.
4386         (introduce_cast_before_cand): Remove unnecessary argument; use
4387         make_temp_ssa_name.
4388         (replace_one_candidate): Remove unnecessary argument; remove
4389         unnecessary parameter from calls to introduce_cast_before_cand.
4390         (replace_profitable_candidates): Remove unnecessary parameters
4391         from calls to replace_one_candidate.
4393 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4395         * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
4396         phi def as possibly hiding a basis for a CAND_ADD whose operands
4397         have been commuted in the analysis.
4398         (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
4400 2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4402         * config/aarch64/aarch64.md
4403         (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
4404         shift value between 0-4.
4406 2013-05-07  Richard Biener  <rguenther@suse.de>
4408         * double-int.h (rshift): New overload.
4409         * double-int.c (rshift): New function.
4410         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
4411         (create_reference_ops_from_ref): Remove.
4412         (vn_reference_insert): Use shared ops for constructing the
4413         reference and copy it.
4415 2013-05-07  Richard Biener  <rguenther@suse.de>
4417         PR middle-end/57190
4418         * tree-eh.c (sink_clobbers): Properly propagate
4419         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
4421 2013-05-07  Jakub Jelinek  <jakub@redhat.com>
4423         PR tree-optimization/57149
4424         * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
4425         (can_skip_redundant_opnd, compute_uninit_opnds_pos,
4426         collect_phi_def_edges, execute_late_warn_uninitialized): Use
4427         uninit_undefined_value_p instead of ssa_undefined_value_p.
4429         PR debug/57184
4430         * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
4431         for modifier == EXPAND_INITIALIZER.
4433 2013-05-07  Anton Blanchard  <anton@samba.org>
4435         * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
4436         for powerpc64 little endian.
4437         * configure: Regenerate.
4439 2013-05-06  Graham Stott  <grahams@btinternet.com>
4441         * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
4442         mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
4443         wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
4444         shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
4446 2013-05-06  Graham Stott  <grahams@btinternet.com>
4448         * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
4449         codes which allow non-lvalues.
4451 2013-05-06  Marc Glisse  <marc.glisse@inria.fr>
4453         * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
4454         components are all 1s.
4455         (integer_minus_onep): New function.
4456         * tree.h (integer_minus_onep): Declare it.
4457         * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
4458         integer_minus_onep instead of integer_all_onesp.
4460 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
4462         PR target/52933
4463         * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
4464         variations of these patterns.
4466 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
4468         * config/i386/i386.md (isa): Add x64_sse4 member.
4469         (enabled): Handle x64_sse4.
4470         (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
4471         instruction for 64bit SSE4_1 targets.  Update insn attributes.
4472         (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
4473         instruction for SSE4_1 targets.  Update insn attributes.
4474         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
4475         with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
4476         (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
4477         const_1 selector.
4478         (*vec_extractv4si): Rename from *sse4_1_pextrd.
4479         (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
4480         (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
4482 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
4484         PR target/57108
4485         * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
4487 2013-05-06  Maxim Kuznetsov  <maks.kuznetsov@gmail.com>
4489         * final.c (do_assembler_dialects): Don't handle curly braces and
4490         vertical bar escaped by % as dialect delimiters.
4491         (output_asm_insn): Print curly braces and vertical bar if escaped
4492         by % and ASSEMBLER_DIALECT defined.
4493         * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
4494         * doc/tm.texi: Regenerated.
4496 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
4498         * config/mips/mips.c: Include tree-pass.h.
4499         (mips_reorg): Split in pre- and post-dbr_schedule parts.
4500         (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
4501         (pass_mips_machine_reorg2): New machine specific pass.
4502         (insert_pass_mips_machine_reorg2): New pass plugin definition.
4503         (mips_option_override): Register the new pass.
4504         * rtl.h (cleanup_barriers): Remove prototype.
4505         (dbr_schedule): Likewise.
4506         * jump.c (cleanup_barriers): Make static.
4507         * reorg.c (dbr_schedule): Likewise.
4509 2013-05-06  Richard Biener  <rguenther@suse.de>
4511         PR tree-optimization/57185
4512         * tree-parloops.c (add_field_for_reduction): Handle anonymous
4513         SSA names properly.
4515 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
4517         PR target/57106
4518         * config/i386/i386.c (add_parameter_dependencies): Add dependence
4519         between "first_arg" and "insn", not "last" and "insn".
4521 2013-05-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4523         * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
4524         (find_candidates_in_block): Re-enable slsr_process_phi.
4525         (create_phi_basis): Fix double counting of candidate adjustment.
4527 2013-05-06  Richard Biener  <rguenther@suse.de>
4529         PR middle-end/57147
4530         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
4531         the edge is also fallthru, preserve it and just clear the
4532         abnormal flag.
4533         * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
4534         also complex, preserve that and just clear the fallthru flag.
4535         * tree-inline.c (update_ssa_across_abnormal_edges): Also
4536         update virtual operands.
4538 2013-05-06  Alan Modra  <amodra@gmail.com>
4540         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
4541         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
4542         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
4543         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
4544         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
4545         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
4547 2013-05-06  Alan Modra  <amodra@gmail.com>
4549         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
4550         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
4551         (DEFAULT_ASM_ENDIAN): Define.
4552         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
4553         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
4554         Update -K PIC clause from sysv4.h.
4555         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
4556         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
4558 2013-05-06  Alan Modra  <amodra@gmail.com>
4560         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
4561         twice for little-endian.
4562         (ashrdi3_no_power, ashrdi3): Support little-endian.
4564 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
4566         PR target/55303
4567         * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
4568         * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
4569         related expanders.
4570         * config/sh/iterators.md (SMIN_SMAX): New code iterator.
4571         * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
4572         clips_min_const_int, clips_max_const_int, clipu_max_const_int):
4573         New predicates.
4575 2013-05-05  Steven Bosscher  <steven@gcc.gnu.org>
4576             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4578         * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
4579         * config/pa/pa.opt: Make mbig-switch a no-op.
4580         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
4581         (CASE_VECTOR_MODE): Always return SImode.
4582         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
4583         for the !TARGET_BIG_SWITCH case.
4584         * config/pa/pa-linux.h: Likewise.
4585         * config/pa/pa-openbsd.h: Likewise.
4586         * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
4587         * config/pa/pa.md (short_jump): Remove define_insn.
4588         (casesi): Remove code for the !TARGET_BIG_SWITCH case.
4589         (casesi0): Remove define_insn.
4590         (type): Remove btable_branch.
4591         (pa_combine_type): Likewise.
4592         (in_nullified_branch_delay): Likewise.
4593         (in_call_delay): Likewise.
4594         (define_delay): Likewise.
4595         (define_insn_reservation "Z3"): Likewise.
4596         (define_insn_reservation "Z4"): Likewise.
4597         * config/pa/pa.c  (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
4598         (pa_adjust_insn_length): Remove adjustment for btable branches.
4599         * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
4600         and mno-big-switch
4602 2013-05-05  Uros Bizjak  <ubizjak@gmail.com>
4604         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
4605         from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
4606         Add m->r,x alternatives.
4607         (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
4608         splitters using SWI48x mode iterator.
4609         (*vec_extract_v2di_0_sse): Rename from *sse2_storeq.  Disable for
4610         TARGET_64BIT.  Add m->x alternative.
4611         (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
4612         Add o->x alternative.  Enable for TARGET_SSE.
4613         (sse_storeq): Remove expander.
4614         (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
4615         with memory input operand.
4616         (*vec_extractv2di_1 splitter): New.
4617         (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
4618         * config/i386/i386.md (ssevecmodelower): New mode attribute.
4620 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
4622         * config/rs6000/rs6000.c (INT_P): Reformat.  Delete obsolete comment.
4623         (INT_LOWPART): Delete.
4624         (extract_MB): Adjust.
4625         (extract_ME): Adjust.
4626         (print_operand): Adjust.
4628 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
4630         * config/rs6000/predicates.md (reg_or_add_cint_operand,
4631         reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
4632         (reg_or_logical_cint_operand, easy_fp_constant,
4633         logical_const_operand): Delete "CONST_DOUBLE" case.
4634         * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
4635         "HOST_BITS_PER_WIDE_INT == 64" test.
4636         (num_insns_constant): Ditto.  Delete CONST_DOUBLE DImode/VOIDmode case.
4637         (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
4638         (rs6000_emit_set_const): Delete CONST_DOUBLE case.
4639         (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
4640         test.
4641         (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
4642         CONST_DOUBLE DImode/VOIDmode case.
4643         (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
4644         (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
4645         CONST_DOUBLE VOIDmode case.
4646         (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
4647         (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
4648         * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
4649         Delete CONST_DOUBLE case.
4650         (splitters for mov FMOVE64 const_double): Delete
4651         "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
4652         "HOST_BITS_PER_WIDE_INT >= 64" test.
4653         (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
4654         case.
4655         (mov DI const_double): Delete.
4657 2013-05-04  Jakub Jelinek  <jakub@redhat.com>
4659         * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
4660         on op shows all bits zero in mode of a lowpart subreg, return zero.
4662 2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
4664         PR target/57150
4665         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
4666         to save TFmode registers and DImode to save TImode registers for
4667         caller save operations.
4668         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
4669         mark being partially clobbered since they only use the first
4670         double word.
4672         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
4673         and TDmode only use the upper 64-bits of each VSX register.
4675 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4677         * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
4678         (find_candidates_in_block): Disable slsr_process_phi.
4680 2013-05-03  Guozhi Wei  <carrot@google.com>
4682         * coverage.c (coverage_obj_init): Move the construction of gcov
4683         constructor to ...
4684         (build_init_ctor): ... here.
4686 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4688         * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
4689         (slsr_cand_d): Redefine def_phi.
4690         (stride_status, phi_adjust_status, count_phis_status): New enums.
4691         (find_phi_def): New.
4692         (find_basis_for_base_expr): New.
4693         (find_basis_for_candidate): Handle hidden bases.
4694         (alloc_cand_and_find_basis): Handle phi candidates.
4695         (slsr_process_phi): New.
4696         (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
4697         (create_mul_imm_cand): Likewise.
4698         (create_add_ssa_cand): Exclude phi base candidates.
4699         (create_add_imm_cand): Likewise.
4700         (slsr_process_cast): Likewise.
4701         (slsr_process_copy): Likewise.
4702         (find_candidates_in_block): Handle phi candidates.
4703         (dump_candidate): Likewise.
4704         (unconditional_cands): Delete.
4705         (unconditional_cands_with_known_stride_p): Delete.
4706         (phi_dependent_cand_p): New.
4707         (cand_increment): Handle phi-dependent candidates.
4708         (replace_dependent): Delete.
4709         (replace_mult_candidate): New.
4710         (replace_unconditional_candidate): New.
4711         (incr_vec_index): Move to avoid forward reference.
4712         (create_add_on_incoming_edge): New.
4713         (create_phi_basis): New.
4714         (replace_dependents): Delete.
4715         (replace_conditional_candidate): New.
4716         (phi_add_costs): New.
4717         (replace_uncond_cands_and_profitable_phis): New.
4718         (record_increment): Handle phi adjustments.
4719         (record_phi_increments): New.
4720         (record_increments): Handle phi adjustments.
4721         (phi_incr_cost): New.
4722         (lowest_cost_path): Handle phis.
4723         (total_savings): Likewise.
4724         (analyze_increments): Likewise.
4725         (ncd_with_phi): New.
4726         (ncd_of_cand_and_phis): New.
4727         (nearest_common_dominator_for_cands): Handle phi increments.
4728         (all_phi_incrs_profitable): New.
4729         (replace_profitable_candidates): Handle phi-dependent candidates.
4730         (analyze_candidates_and_replace): Likewise.
4732 2013-05-03  Teresa Johnson  <tejohnson@google.com>
4734         PR bootstrap/57154
4735         * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
4736         do not exceed REG_BR_PROB_BASE.
4738 2013-05-03  Jeff Law  <law@redhat.com>
4740         PR tree-optimization/57144
4741         * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
4742         operand of the condition will bit into the new type when eliminating
4743         a cast feeding a condition.
4745 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
4747         PR rtl-optimization/57130
4748         * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
4749         of COMPARE as in_code to the recursive call if needed.
4751 2013-05-03  Uros Bizjak  <ubizjak@gmail.com>
4753         * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
4754         (enabled): Handle new members.
4755         * config/i386/sse.md (*vec_concatv2si): Merge from
4756         *vec_concatv2si_sse2 and vec_concatv2si_sse.
4757         (vec_concatv2di): Merge with *vec_concatv2di_rex64.
4759 2013-05-03  Joern Rennecke <joern.rennecke@embecosm.com>
4761         PR tree-optimization/57027
4762         * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
4763         for fnms opportunity, check we got the prerequisite kind
4764         of tree / gimple before using accessor functions.
4766 2013-05-03  Richard Biener  <rguenther@suse.de>
4768         * double-int.h (lshift): New overload without precision
4769         and arith argument.
4770         (operator *=, operator +=, operator -=): Move ...
4771         * double-int.c (operator *=, operator +=, operator -=): ... here
4772         and implement more efficiently.
4773         (mul_double_with_sign): Remove.
4774         (lshift_double): Adjust to take unsinged shift argument, push
4775         dispatching code to callers.
4776         (mul_double_wide_with_sign): Add early out for callers that
4777         are not interested in high parts or overflow.
4778         (lshift): New function.
4779         (lshift, rshift, alshift, arshift, llshift, lrshift): Add
4780         dispatch code here.
4781         (lrotate, rrotate): Use logical shifts.
4782         * expr.c (get_inner_reference): Use lshift.
4783         * fixed-value.c (do_fixed_divide): Likewise.
4784         * tree-dfa.c (get_ref_base_and_extent): Likewise.
4785         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
4786         (indirect_refs_may_alias_p): Likewise.
4787         (stmt_kills_ref_p_1): Likewise.
4789 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
4791         * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
4793 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
4795         * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
4796         scalar form of FABD instruction.
4798 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
4800         * lra-constraints.c (process_alt_operands): Add checking alt
4801         number to choose the best alternative.
4803 2013-05-02  Richard Biener  <rguenther@suse.de>
4805         * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
4806         bitmap and its handling.
4807         (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
4809 2013-05-02  Richard Biener  <rguenther@suse.de>
4811         PR middle-end/57140
4812         * tree-inline.c (copy_loops): Properly handle removed loops.
4813         (copy_cfg_body): Mark destination loops for fixup if source
4814         loops needed fixup.
4816 2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
4818         PR target/56732
4819         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
4820         generating simple_return for naked functions.
4822 2013-05-02  Martin Jambor  <mjambor@suse.cz>
4824         PR middle-end/56988
4825         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
4826         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
4827         flags match.
4828         (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
4829         ipa_agg_replacement_value structures.
4830         (known_aggs_to_agg_replacement_list): Likewise.
4831         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
4832         (read_agg_replacement_chain): Likewise.
4833         (ipcp_transform_function): Also check that by_ref flags match.
4835 2013-05-02  Richard Biener  <rguenther@suse.de>
4837         * graphds.h (struct graph): Add obstack member.
4838         * graphds.c (new_graph): Initialize obstack and allocate
4839         vertices from it.
4840         (add_edge): Allocate edge from the obstack.
4841         (free_graph): Free the obstack instead of all edges and vertices.
4843 2013-05-02  Teresa Johnson  <tejohnson@google.com>
4845         * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
4846         divides.
4847         * cfg.c (update_bb_profile_for_threading): Ditto.
4848         * tree-inline.c (copy_bb): Ditto.
4849         (copy_edges_for_bb): Ditto.
4850         (initialize_cfun): Ditto.
4851         (copy_cfg_body): Ditto.
4852         (expand_call_inline): Ditto.
4853         * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
4854         (estimate_node_size_and_time): Ditto.
4855         (inline_merge_summary): Ditto.
4856         * cgraphclones.c (cgraph_clone_edge): Ditto.
4857         (cgraph_clone_node): Ditto.
4858         * sched-rgn.c (compute_dom_prob_ps): Ditto.
4859         (compute_trg_info): Ditto.
4861 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
4863         * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
4864         S reg when fp attribute set.
4865         (movdi_aarch64): Only allow to/from D reg when fp attribute set.
4867 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
4869         * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
4870         New pattern.
4871         (*and_one_cmplsi3_compare0_uxtw): Likewise.
4872         (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
4873         (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
4875 2013-05-02  Richard Biener  <rguenther@suse.de>
4877         * tree-scalar-evolution.c (scev_info_hasher): Remove.
4878         (struct instantiate_cache_entry): New type.
4879         (struct instantiate_cache_entry_hasher): New hashtable descriptor.
4880         (struct instantiate_cache_type): New type.
4881         (set_instantiated_value, get_instantiated_value): Remove.
4882         (get_instantiated_value_entry): New function.
4883         (instantiate_scev_name): Use the new cache and adjust.
4884         (instantiate_scev_poly): Adjust.
4885         (instantiate_scev_binary): Likewise.
4886         (instantiate_array_ref): Likewise.
4887         (instantiate_scev_convert): Likewise.
4888         (instantiate_scev_not): Likewise.
4889         (instantiate_scev_3): Likewise.
4890         (instantiate_scev_2): Likewise.
4891         (instantiate_scev_r): Likewise.
4892         (instantiate_scev): Likewise.
4893         (resolve_mixers): Likewise.
4895 2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
4897         PR target/57091
4898         * lra-constraints.c (best_small_class_operands_num): Remove.
4899         (process_alt_operands): Remove small_class_operands_num.  Take
4900         small classes operands into losers and only if the operand is not
4901         matched.  Modify debugging output.
4902         (curr_insn_transform): Remove best_small_class_operands_num.
4903         Print insn name.
4905 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4907         * config/aarch64/aarch64-builtins.c
4908         (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
4909         * config/aarch64/aarch64-simd-builtins.def
4910         (reduc_splus_): Add new modes.
4911         (reduc_uplus_): New.
4912         * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
4913         (reduc_uplus_v4sf): Likewise.
4914         (reduc_splus_v4sf): Likewise.
4915         (aarch64_addv<mode>): Likewise.
4916         (reduc_uplus_<mode>): Likewise.
4917         (reduc_splus_<mode>): Likewise.
4918         (aarch64_addvv2di): Likewise.
4919         (reduc_uplus_v2di): Likewise.
4920         (reduc_splus_v2di): Likewise.
4921         (aarch64_addvv2si): Likewise.
4922         (reduc_uplus_v2si): Likewise.
4923         (reduc_splus_v2si): Likewise.
4924         (reduc_<sur>plus_<mode>): New.
4925         (reduc_<sur>plus_v2di): Likewise.
4926         (reduc_<sur>plus_v2si): Likewise.
4927         (reduc_<sur>plus_v4sf): Likewise.
4928         (aarch64_addpv4sf): Likewise.
4929         * config/aarch64/arm_neon.h
4930         (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
4931         * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
4932         add UNSPEC_SADDV, UNSPEC_UADDV.
4933         (SUADDV): New.
4934         (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
4936 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4938         * config/aarch64/arm_neon.h
4939         (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
4941 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4943         * config/aarch64/aarch64-builtins
4944         (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
4946 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4948         * config/aarch64/aarch64-simd-builtins.def
4949         (reduc_smax_): New.
4950         (reduc_smin_): Likewise.
4951         (reduc_umax_): Likewise.
4952         (reduc_umin_): Likewise.
4953         (reduc_smax_nan_): Likewise.
4954         (reduc_smin_nan_): Likewise.
4955         (fmax): Remove.
4956         (fmin): Likewise.
4957         (smax): Update for V2SF, V4SF and V2DF modes.
4958         (smin): Likewise.
4959         (smax_nan): New.
4960         (smin_nan): Likewise.
4961         * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
4962         (<su><maxmin><mode>3): ...This, refactor.
4963         (s<maxmin><mode>3): New.
4964         (<maxmin_uns><mode>3): Likewise.
4965         (reduc_<maxmin_uns>_<mode>): Refactor.
4966         (reduc_<maxmin_uns>_v4sf): Likewise.
4967         (reduc_<maxmin_uns>_v2si): Likewise.
4968         (aarch64_<fmaxmin><mode>: Remove.
4969         * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
4970         new builtin names.
4971         (vmin<q>_f<32,64>): Likewise.
4972         * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
4973         (FMAXMIN): New.
4974         (su): Add mappings for smax, smin, umax, umin.
4975         (maxmin): New.
4976         (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
4977         (FMAXMIN): Rename as...
4978         (FMAXMIN_UNS): ...This.
4979         (maxminv): Remove.
4980         (fmaxminv): Likewise.
4981         (fmaxmin): Likewise.
4982         (maxmin_uns): New.
4983         (maxmin_uns_op): Likewise.
4985 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4987         * config/aarch64/arm_neon.h
4988         (vac<ge, gt><sd>_f<32, 64>): Rename to...
4989         (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
4990         (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
4992 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4994         * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
4995         * config/aarch64/iterators.md (FAC_COMPARISONS): New.
4997 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
4999         * config/aarch64/aarch64-simd.md
5000         (vcond<mode>_internal): Handle special cases for constant masks.
5001         (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
5002         (vcondu<mode><mode>): Likewise.
5003         (vcond<v_cmp_result><mode>): New.
5005 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
5007         * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
5008         (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
5009         * config/aarch64/aarch64-simd-builtins.def
5010         (cmeq): Update to BUILTIN_VALLDI.
5011         (cmgt): Likewise.
5012         (cmge): Likewise.
5013         (cmle): Likewise.
5014         (cmlt): Likewise.
5015         * config/aarch64/arm_neon.h
5016         (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
5017         to builtins or C as appropriate.
5019 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
5021         * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
5022         (cmgeu): ...This.
5023         (cmhi): Rename to...
5024         (cmgtu): ...This.
5025         * config/aarch64/aarch64-simd.md
5026         (simd_mode): Add SF.
5027         (aarch64_vcond_internal): Use new names for unsigned comparison insns.
5028         (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
5029         * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
5030         (cstore<mode>_neg): ...This.
5031         * config/aarch64/iterators.md
5032         (VALLF): new.
5033         (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
5034         (COMPARISONS): New.
5035         (UCOMPARISONS): Likewise.
5036         (optab): Add missing comparisons.
5037         (n_optab): New.
5038         (cmp_1): Likewise.
5039         (cmp_2): Likewise.
5040         (CMP): Likewise.
5041         (cmp): Remove.
5042         (VCMP_S): Likewise.
5043         (VCMP_U): Likewise.
5044         (V_cmp_result): Add DF, SF modes.
5045         (v_cmp_result): Likewise.
5046         (v): Likewise.
5047         (vmtype): Likewise.
5048         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
5050 2013-05-01  Greta Yorsh  <Greta.Yorsh@arm.com>
5052         * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
5053         define_insn to define_insn_and_split.
5054         (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
5055         (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
5056         (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
5057         (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
5058         (thumb2_negscc): Likewise.
5060 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
5062         * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
5064 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
5066         * config/arm/thumb2.md: Remove trailing whitespaces.
5068 2013-04-30  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
5070         * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
5071         Use gen_int_mode rather than GEN_INT.
5073 2013-04-30  H.J. Lu  <hongjiu.lu@intel.com>
5075         * value-prof.c (stream_in_histogram_value): Remove the strayed
5076         debug_gimple_stmt.
5078 2013-04-30  Richard Biener  <rguenther@suse.de>
5080         PR middle-end/57122
5081         * cfghooks.c (split_edge): Properly check for the loop latch edge.
5083 2013-04-30  Richard Biener  <rguenther@suse.de>
5085         PR middle-end/57107
5086         * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
5088 2013-04-30  Andrey Belevantsev  <abel@ispras.ru>
5090         PR rtl-optimization/56957
5091         PR rtl-optimization/57105
5092         * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
5093         variable.  Use just INSN_UID for determining whether an insn
5094         should be only disconnected from the insn stream.
5095         * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
5097 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
5099         PR tree-optimization/57104
5100         * tsan.c (instrument_expr): Don't instrument accesses to
5101         DECL_HARD_REGISTER VAR_DECLs.
5103 2013-04-30  Richard Biener  <rguenther@suse.de>
5105         * function.h (loops_for_fn): New inline function.
5106         (set_loops_for_fn): Likewise.
5107         * cfgloop.h (place_new_loop): Add struct function parameter.
5108         (get_loop): Likewise.
5109         (get_loops): Likewise.
5110         (number_of_loops): Likewise.
5111         (fel_next): Adjust.
5112         (fel_init): Likewise.
5113         * cfg.c (get_loop_copy): Adjust.
5114         * cfgloop.c (flow_loops_dump): Likewise.
5115         (record_loop_exits): Likewise.
5116         (verify_loop_structure): Likewise.
5117         * cfgloopanal.c (mark_irreducible_loops): Likewise.
5118         (estimate_reg_pressure_cost): Likewise.
5119         (mark_loop_exit_edges): Likewise.
5120         * cfgloopmanip.c (place_new_loop): Likewise.
5121         (add_loop): Likewise.
5122         (duplicate_loop): Likewise.
5123         * graph.c (draw_cfg_nodes): Likewise.
5124         * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
5125         * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
5126         (extract_affine_chrec): Likewise.
5127         (build_scop_iteration_domain): Likewise.
5128         * graphite.c (graphite_initialize): Likewise.
5129         * ira-build.c (create_loop_tree_nodes): Likewise.
5130         (more_one_region_p): Likewise.
5131         (rebuild_regno_allocno_maps): Likewise.
5132         (mark_loops_for_removal): Likewise.
5133         (mark_all_loops_for_removal): Likewise.
5134         (remove_unnecessary_regions): Likewise.
5135         (ira_build): Likewise.
5136         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
5137         * loop-init.c (fix_loop_structure): Likewise.
5138         (gate_rtl_move_loop_invariants): Likewise.
5139         (gate_rtl_unswitch): Likewise.
5140         (gate_rtl_unroll_and_peel_loops): Likewise.
5141         (rtl_doloop): Likewise.
5142         * lto-streamer-in.c (input_cfg): Likewise.
5143         * lto-streamer-out.c (output_cfg): Likewise.
5144         * modulo-sched.c (sms_schedule): Likewise.
5145         * predict.c (tree_estimate_probability): Likewise.
5146         (tree_estimate_probability_driver): Likewise.
5147         (estimate_loops): Likewise.
5148         * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
5149         (move_sese_region_to_fn): Likewise.
5150         (debug_loop_num): Likewise.
5151         * tree-chrec.c (chrec_evaluate): Likewise.
5152         (hide_evolution_in_other_loops_than_loop): Likewise.
5153         (chrec_component_in_loop_num): Likewise.
5154         (reset_evolution_in_loop): Likewise.
5155         (evolution_function_is_invariant_rec_p): Likewise.
5156         * tree-if-conv.c (main_tree_if_conversion): Likewise.
5157         * tree-inline.c (copy_loops): Likewise.
5158         (copy_cfg_body): Likewise.
5159         (tree_function_versioning): Likewise.
5160         * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
5161         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
5162         Likewise.
5163         (add_to_evolution_1): Likewise.
5164         (scev_const_prop): Likewise.
5165         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
5166         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
5167         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
5168         (tree_ssa_lim_initialize): Likewise.
5169         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
5170         (verify_loop_closed_ssa): Likewise.
5171         * tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
5172         (tree_ssa_loop_im): Likewise.
5173         (tree_ssa_loop_unswitch): Likewise.
5174         (tree_vectorize): Likewise.
5175         (check_data_deps): Likewise.
5176         (tree_ssa_loop_ivcanon): Likewise.
5177         (tree_ssa_loop_bounds): Likewise.
5178         (tree_complete_unroll): Likewise.
5179         (tree_complete_unroll_inner): Likewise.
5180         (tree_parallelize_loops): Likewise.
5181         (tree_ssa_loop_prefetch): Likewise.
5182         (tree_ssa_loop_ivopts): Likewise.
5183         * tree-ssa.c (execute_update_addresses_taken): Liekwise.
5184         * tree-vectorizer.c (vectorize_loops): Likewise.
5186 2013-04-29  Mike Frysinger  <vapier@gentoo.org>
5188         * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
5189         (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
5190         * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
5191         with EABI_LINK_SPEC.
5193 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
5195         PR target/44578
5196         * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
5197         alternative.
5199 2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
5201         PR target/57097
5202         * lra-constraints.c (process_alt_operands): Discourage a bit more
5203         using memory for pseudos.  Print cost dump for alternatives.
5204         Modify cost values for conflicts with early clobbers.
5205         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
5207 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
5209         PR target/57098
5210         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
5212 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
5214         * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
5215         from/to S register.
5216         (movdi_aarch64): Support LDR/STR from/to D register.
5218 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
5220         * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
5221         or higher by default.
5223 2013-04-29  Richard Biener  <rguenther@suse.de>
5225         PR middle-end/57075
5226         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
5227         even if not adding abnormal edges for calls that can make
5228         abnormal gotos.
5230 2013-04-29  Richard Biener  <rguenther@suse.de>
5232         PR middle-end/57103
5233         * tree-cfg.c (move_stmt_op): Fix condition under which to update
5234         TREE_BLOCK.
5235         (move_stmt_r): Remove redundant checking.
5237 2013-04-29  Teresa Johnson  <tejohnson@google.com>
5239         PR bootstrap/57077
5240         * basic-block.h (apply_scale): New function.
5241         (apply_probability): Use apply_scale.
5242         * gimple-streamer-in.c (input_bb): Ditto.
5243         * lto-streamer-in.c (input_cfg): Ditto.
5244         * lto-cgraph.c (merge_profile_summaries): Ditto.
5245         * tree-optimize.c (execute_fixup_cfg): Ditto.
5246         * tree-inline.c (copy_bb): Update comment to use apply_scale.
5247         (copy_edges_for_bb): Ditto.
5248         (copy_cfg_body): Ditto.
5250 2013-04-29  Tom de Vries  <tom@codesourcery.com>
5252         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
5253         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
5254         (tail_merge_optimize): Handle current_loops == NULL.
5256 2013-04-26  Jeff Law  <law@redhat.com>
5258         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
5259         (simplify_cond_using_ranges): Generalize code to simplify
5260         COND_EXPRs where one argument is a constant and the other
5261         is an SSA_NAME created by an integral type conversion.
5263 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5265         * config/arm/arm.md (store_minmaxsi): Use only when
5266         optimize_insn_for_size_p.
5268 2013-04-29  Christian Bruel  <christian.bruel@st.com>
5270         PR target/57108
5271         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
5273 2013-04-29  Richard Biener  <rguenther@suse.de>
5275         PR middle-end/57089
5276         * omp-low.c (expand_omp_taskreg): If the parent function had a broken
5277         loop tree make sure to schedule a fixup for the child as well.
5278         (expand_omp_for_generic): Properly add loops.
5279         (expand_omp_for_static_nochunk): Likewise.
5280         (expand_omp_for_static_chunk): Likewise.
5281         (expand_omp_for): For the degenerate case fixup loops.
5282         (expand_omp_sections): Fix default bb placement in loops.
5283         (expand_omp_atomic_pipeline): Properly add loops.
5285 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5287         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
5289 2013-04-29  Tom de Vries  <tom@codesourcery.com>
5291         * tree-ssa-tail-merge.c: Update header comment.
5293 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5295         * config/aarch64/arm_neon.h
5296         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
5297         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
5298         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
5299         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
5300         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
5301         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
5302         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
5303         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
5305 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5307         * config/aarch64/aarch64-simd.md
5308         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
5309         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
5310         fix_trunc, fixuns_trunc.
5311         (ftrunc<VDQF:mode>2): New.
5312         * config/aarch64/iterators.md (optab): Add fix, fixuns.
5313         (fix_trunc_optab): New.
5315 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5317         * config/aarch64/aarch64-builtins.c
5318         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
5319         iceilf, lround, iroundf.
5321 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
5323         PR target/54349
5324         * config/i386/i386.h (enum ix86_tune_indices)
5325         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
5326         New, split from X86_TUNE_INTER_UNIT_MOVES.
5327         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
5328         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
5329         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
5330         (TARGET_INTER_UNIT_MOVES): Remove.
5331         * config/i386/i386.c (initial_ix86_tune_features): Update.
5332         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
5333         (ix86_expand_convert_uns_didf_sse): Use
5334         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
5335         (ix86_expand_vector_init_one_nonzero): Ditto.
5336         (ix86_expand_vector_init_interleave): Ditto.
5337         (inline_secondary_memory_needed): Return true for moves from SSE class
5338         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
5339         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
5340         * config/i386/constraints.md (Yi, Ym): Depend on
5341         TARGET_INTER_UNIT_MOVES_TO_VEC.
5342         (Yj, Yn): New constraints.
5343         * config/i386/i386.md (*movdi_internal): Change constraints of
5344         operand 1 from Yi to Yj and from Ym to Yn.
5345         (*movsi_internal): Ditto.
5346         (*movdf_internal): Ditto.
5347         (*movsf_internal): Ditto.
5348         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
5349         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
5350         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
5351         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
5352         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
5353         * config/i386/sse.md (movdi_to_sse): Ditto.
5354         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
5355         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
5356         TARGET_INTER_UNIT_MOVES.
5357         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
5358         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
5359         instead of TARGET_INTER_UNIT_MOVES.
5360         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
5361         operand 1 from Yi to Yj and from Ym to Yn.
5363 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5365         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
5366         (float_truncate_hi_): Likewise.
5367         (float_extend_lo_): Likewise.
5368         (float_truncate_lo_): Likewise.
5369         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
5370         (aarch64_float_extend_lo_v2df): Likewise.
5371         (vec_unpacks_hi_v4sf): Likewise.
5372         (aarch64_float_truncate_lo_v2sf): Likewise.
5373         (aarch64_float_truncate_hi_v4sf): Likewise.
5374         (vec_pack_trunc_v2df): Likewise.
5375         (vec_pack_trunc_df): Likewise.
5377 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5379         * config/aarch64/aarch64-builtins.c
5380         (aarch64_fold_builtin): Fold float conversions.
5381         * config/aarch64/aarch64-simd-builtins.def
5382         (floatv2si, floatv4si, floatv2di): New.
5383         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
5384         * config/aarch64/aarch64-simd.md
5385         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
5386         * config/aarch64/iterators.md (FLOATUORS): New.
5387         (optab): Add float, floatuns.
5388         (su_optab): Likewise.
5390 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5392         * config/aarch64/aarch64-builtins.c
5393         (aarch64_builtin_vectorized_function): Use new names for
5394         fcvt builtins.
5395         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
5396         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
5397         (fcvtzu): Split as...
5398         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
5399         (fcvtas): Split as...
5400         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
5401         (fcvtau): Split as...
5402         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
5403         (fcvtps): Split as...
5404         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
5405         (fcvtpu): Split as...
5406         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
5407         (fcvtms): Split as...
5408         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
5409         (fcvtmu): Split as...
5410         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
5411         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
5412         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
5413         (lfrintnusf, lfrintnudf): Likewise.
5414         * config/aarch64/aarch64-simd.md
5415         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
5416         define_insn.
5417         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
5418         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
5419         (fcvt_pattern): Likewise.
5421 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5423         * config/aarch64/aarch64-simd.md
5424         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
5425         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
5427 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5429         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
5430         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
5431         (vrnd<a,m,n,p>_f32): Implement using builtins.
5432         (vrnd<i,x><q>_f<32, 64>): New.
5434 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5436         * config/aarch64/aarch64-builtins.c
5437         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
5438         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
5439         (frintz): Rename to...
5440         (btrunc): ...this.
5441         (frintp): Rename to...
5442         (ceil): ...this.
5443         (frintm): Rename to...
5444         (floor): ...this.
5445         (frinti): Rename to...
5446         (nearbyint): ...this.
5447         (frintx): Rename to...
5448         (rint): ...this.
5449         (frinta): Rename to...
5450         (round): ...this.
5451         * config/aarch64/aarch64-simd.md
5452         (aarch64_frint<frint_suffix><mode>): Delete.
5453         (<frint_pattern><mode>2): Convert to insn.
5454         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
5455         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
5456         (frint_pattern): Likewise.
5457         (frint_suffix): Likewise.
5459 2013-04-29  Richard Biener  <rguenther@suse.de>
5461         PR tree-optimization/57081
5462         * loop-init.c: Include tree-flow.h.
5463         (loop_optimizer_finalize): Free number of iteration estimates.
5464         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
5466 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
5468         PR tree-optimization/57083
5469         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
5470         non-singleton shift count range, zero extend low_bound for uns case.
5472         * config/i386/predicates.md (general_vector_operand): New predicate.
5473         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
5474         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
5475         if they aren't nonimmediate operands.  If their original values
5476         satisfy const_vector_equal_evenodd_p, don't shift them.
5477         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
5478         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
5479         if not nonimmediate_operand.
5480         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
5481         instead of register_operand.
5482         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
5484 2013-04-28  Eric Botcazou  <ebotcazou@adacore.com>
5486         * stor-layout.c (finalize_size_functions): Allocate a structure and
5487         reset cfun before dumping the functions.
5489 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
5491         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
5493         PR target/56866
5494         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
5495         use xop_pmacsdqh if uns_p.
5496         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
5497         the immediate rotate count.
5499 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
5501         * rtl.h (struct rtx_def): Add comment for field jump.
5502         (LRA_SUBREG_P): New macro.
5503         * recog.c (register_operand): Check LRA_SUBREG_P.
5504         * lra.c (lra): Add note at the end of RTL code. Align non-empty
5505         stack frame.
5506         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
5507         (lra_final_code_change): Skip subreg change for operators.
5508         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
5509         if there are no operand changes.
5510         * lra-constraints.c (curr_insn_set): New.
5511         (match_reload): Set LRA_SUBREG_P.
5512         (emit_spill_move): Ditto.
5513         (check_and_process_move): Use curr_insn_set. Process only single
5514         set insns.  Don't initialize sec_mem_p and change_p.
5515         (simplify_operand_subreg): Use LRA_SUBREG_P.
5516         (reg_in_class_p): New function.
5517         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
5518         of #ifdef.  Add code to remove cycling.
5519         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
5520         non-null disp.  Reload inner instead of disp when base and index
5521         are null.  Try to put lo_sum into register.
5522         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
5523         (check_and_process_move): Move code for move cost check to
5524         simple_move_p.  Remove equiv_substitution.
5525         (simple_move_p): New function.
5526         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
5527         curr_insn_set.  Call check_and_process_move only for single set
5528         insns.  Use the new function.  Move call of check_and_process_move
5529         after operand equiv substitution and address process.
5531 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
5533         PR go/57045
5534         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
5535         with nonlocal goto receivers or returns twice calls, ignore
5536         unininitialized values from abnormal edges to nl goto receiver
5537         or returns twice call.
5539 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
5541         PR tree-optimization/57051
5542         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
5543         and VEC_RSHIFT_EXPR if shift count is a multiple of element
5544         bitsize.
5546 2013-04-26  Richard Biener  <rguenther@suse.de>
5548         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
5549         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
5550         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
5551         (fixup_loop_arrays_after_move): New function.
5552         (move_sese_region_to_fn): Properly outline the loop tree parts
5553         of the SESE region.
5555 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
5557         * config/i386/i386.md (type, unit): Fix long lines.
5559 2013-04-26  Richard Biener  <rguenther@suse.de>
5561         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
5562         (lto-streamer-out.o): Likewise.
5563         * cfgloop.c (init_loops_structure): Export, add struct function
5564         argument and adjust.
5565         (flow_loops_find): Adjust.
5566         * cfgloop.h (enum loop_estimation): Add EST_LAST.
5567         (init_loops_structure): Declare.
5568         * lto-streamer-in.c: Include cfgloop.h.
5569         (input_cfg): Input the loop tree.
5570         * lto-streamer-out.c: Include cfgloop.h.
5571         (output_cfg): Output the loop tree.
5572         (output_struct_function_base): Do not drop PROP_loops.
5574 2013-03-26  Richard Biener  <rguenther@suse.de>
5576         * tree-cfg.c (execute_build_cfg): Build the loop tree.
5577         (pass_build_cfg): Provide PROP_loops.
5578         (move_sese_region_to_fn): Remove loops that are outlined into fn
5579         for now.
5580         * tree-inline.c: Include cfgloop.h.
5581         (initialize_cfun): Do not drop PROP_loops.
5582         (copy_loops): New function.
5583         (copy_cfg_body): Copy loop structure.
5584         (tree_function_versioning): Initialize destination loop tree.
5585         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
5586         (pass_parallelize_loops): Do IL verification.
5587         * loop-init.c (loop_optimizer_init): Fixup loops if required.
5588         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
5589         the CFG make sure we fixup loops as well.
5590         * tree-ssa-tail-merge.c: Include cfgloop.h.
5591         (replace_block_by): When merging loop latches mark loops for fixup.
5592         * lto-streamer-out.c (output_struct_function_base): Drop
5593         PROP_loops for now.
5594         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
5595         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
5596         * ipa-split.c: Include cfgloop.h.
5597         (split_function): Add the new return block to the loop tree root.
5598         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
5599         whether we have removed the forwarder block.
5600         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
5601         * cfgloop.h (place_new_loop): Declare.
5602         * cfgloopmanip.c (place_new_loop): Export.
5603         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
5604         (tree-switch-conversion.o): Likewise.
5605         (tree-complex.o): Likewise.
5606         (tree-inline.o): Likewise.
5607         (tree-ssa-tailmerge.o): Likewise.
5608         (ipa-split.o): Likewise.
5609         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
5610         (tree-ssa-copy.o): Likewise.
5611         * tree-switch-conversion.c: Include cfgloop.h
5612         (process_switch): If we emit a bit-test cascade, schedule loops
5613         for fixup.
5614         * tree-complex.c: Include cfgloop.h.
5615         (expand_complex_div_wide): Properly add new basic-blocks to loops.
5616         * asan.c: Include cfgloop.h.
5617         (create_cond_insert_point): Properly add new basic-blocks to
5618         loops, schedule loop fixup.
5619         * cfgloop.c (verify_loop_structure): Check that looks are not
5620         marked for fixup.
5621         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
5622         to loops.
5623         (expand_omp_for_generic): Likewise.
5624         (expand_omp_sections): Likewise.
5625         (expand_omp_atomic_pipeline): Schedule loops for fixup.
5626         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
5627         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
5628         is initialized, not when loops are present.
5629         * tree-parloops.c (parallelize_loops): Remove checking here.
5630         * passes.c (init_optimization_passes): Schedule a copy-propagation
5631         pass before complete unrolling of inner loops.
5633 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
5635         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
5636         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
5637         (colorize_init): Add argument to _WIN32 version.
5638         * toplev.c: Include diagnostic-color.h.
5639         (process_options): Default to -fdiagnostics-color=auto if
5640         GCC_COLORS env var is in the environment.
5641         * common.opt (fdiagnostics-color=): Add Var and Init.
5642         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
5643         env var is in the environment, the default is auto rather than never.
5645         * diagnostic.h (file_name_as_prefix): Add context argument.
5646         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
5647         the string as locus.
5648         * langhooks.c (lhd_print_error_function): Adjust caller.
5650 2013-04-25  Lawrence Crowl  <crowl@google.com>
5652         * var-tracking.c (shared_hash_def::htab):
5653         Change type to hash_table.  Update dependent calls and types.
5655 2013-04-25  Lawrence Crowl  <crowl@google.com>
5657         * Makefile.in: Update as needed below.
5659         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
5660         Move declaration to after the type's method definitons.
5662         * attribs.c (htab_t scoped_attributes::attribute_hash):
5663         Change type to hash_table.  Update dependent calls and types.
5665         * bitmap.c (htab_t bitmap_desc_hash):
5666         Change type to hash_table.  Update dependent calls and types.
5668         * cselib.c (htab_t cselib_hash_table):
5669         Change type to hash_table.  Update dependent calls and types.
5671         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
5672         (hash_string_slot_node): Move implementation into lto-streamer.h
5673         struct string_slot_hasher.
5674         (eq_string_slot_node): Likewise.
5676         * data-streamer-out.c: Update output_block::string_hash_table
5677         dependent calls and types.
5679         * dwarf2cfi.c (htab_t trace_index):
5680         Change type to hash_table.  Update dependent calls and types.
5682         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
5683         Change type to hash_table.  Update dependent calls and types.
5684         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
5685         (htab_t optimize_external_refs::map): Likewise.
5686         (htab_t output_comp_unit::extern_map): Likewise.
5687         (htab_t output_comdat_type_unit::extern_map): Likewise.
5688         (htab_t output_macinfo::macinfo_htab): Likewise.
5689         (htab_t optimize_location_lists::htab): Likewise.
5690         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
5692         * except.c (htab_t ehspec_hash_type):
5693         Change type to hash_table.  Update dependent calls and types.
5694         (assign_filter_values::ttypes): Likewise.
5695         (assign_filter_values::ehspec): Likewise.
5696         (sjlj_assign_call_site_values::ar_hash): Likewise.
5697         (convert_to_eh_region_ranges::ar_hash): Likewise.
5699         * gcse.c (htab_t pre_ldst_table):
5700         Change type to hash_table.  Update dependent calls and types.
5702         * ggc-common.c (htab_t saving_htab):
5703         Change type to hash_table.  Update dependent calls and types.
5704         (htab_t loc_hash): Likewise.
5705         (htab_t ptr_hash): Likewise.
5706         (call_count): Rename ggc_call_count.
5707         (call_alloc): Rename ggc_call_alloc.
5708         (loc_descriptor): Rename make_loc_descriptor.
5709         (add_statistics): Rename ggc_add_statistics.
5711         * ggc-common.c (saving_htab):
5712         Change type to hash_table.  Update dependent calls and types.
5714         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
5715         (push_gimplify_context): Likewise.
5716         (pop_gimplify_context): Likewise.
5717         (struct gimple_temp_hash_elt): Added.
5718         (struct gimplify_hasher): Likewise.
5719         (struct gimplify_ctx.temp_htab):
5720         Change type to hash_table.  Update dependent calls and types.
5722         * gimple-fold.c: Include gimplify-ctx.h.
5724         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
5725         Change type to hash_table.  Update dependent calls and types.
5726         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
5727         avoid potential global name collision.
5729         * gimplify.c: Include gimplify-ctx.h.
5730         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
5731         (htab_t gimplify_ctx::temp_htab):
5732         Update dependent calls and types for new type hash_table.
5733         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
5734         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
5736         * gimplify-ctx.h: New.
5737         (struct gimple_temp_hash_elt): Move from gimplify.c.
5738         (class gimplify_hasher): New.
5739         (struct gimplify_ctx): Move from gimple.h.
5740         (htab_t gimplify_ctx::temp_htab):
5741         Change type to hash_table.  Update dependent calls and types.
5743         * graphite-clast-to-gimple.c: Include graphite-htab.h.
5744         (htab_t ivs_params::newivs_index):
5745         Change type to hash_table.  Update dependent calls and types.
5746         (htab_t ivs_params::params_index): Likewise.
5747         (htab_t print_generated_program::params_index): Likewise.
5748         (htab_t gloog::newivs_index): Likewise.
5749         (htab_t gloog::params_index): Likewise.
5751         * graphite.c: Include graphite-htab.h.
5752         4htab_t graphite_transform_loops::bb_pbb_mapping):
5753         Change type to hash_table.  Update dependent calls and types.
5755         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
5756         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
5757         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
5759         * graphite-dependences.c: Include graphite-htab.h.
5760         (loop_is_parallel_p): Change hash table type of parameter.
5762         * graphite-htab.h: New.
5763         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
5764         (extern find_pbb_via_hash): Move from graphite-poly.h.
5765         (extern loop_is_parallel_p): Move from graphite-poly.h.
5766         (extern get_loop_body_pbbs): Move from graphite-poly.h.
5768         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
5769         (extern loop_is_parallel_p): Move to graphite-htab.h.
5770         (extern get_loop_body_pbbs): Move to graphite-htab.h.
5772         * haifa-sched.c (htab_t delay_htab):
5773         Change type to hash_table.  Update dependent calls and types.
5774         (htab_t delay_htab_i2): Likewise.
5776         * ira-color.c (htab_t allocno_hard_regs_htab):
5777         Change type to hash_table.  Update dependent calls and types.
5779         * ira-costs.c (htab_t cost_classes_htab):
5780         Change type to hash_table.  Update dependent calls and types.
5782         * loop-invariant.c (htab_t merge_identical_invariants::eq):
5783         Change type to hash_table.  Update dependent calls and types.
5785         * loop-iv.c (htab_t bivs):
5786         Change type to hash_table.  Update dependent calls and types.
5788         * loop-unroll.c (htab_t opt_info::insns_to_split):
5789         Change type to hash_table.  Update dependent calls and types.
5790         (htab_t opt_info::insns_with_var_to_expand): Likewise.
5792         * lto-streamer.h (struct string_slot): Move from data-streamer.h
5793         (struct string_slot_hasher): New.
5794         (htab_t output_block::string_hash_table):
5795         Change type to hash_table.  Update dependent calls and types.
5797         * lto-streamer-in.c (freeing_string_slot_hasher): New.
5798         (htab_t file_name_hash_table):
5799         Change type to hash_table.  Update dependent calls and types.
5801         * lto-streamer-out.c: Update output_block::string_hash_table dependent
5802         calls and types.
5804         * lto-streamer.c (htab_t tree_htab):
5805         Change type to hash_table.  Update dependent calls and types.
5807         * omp-low.c: Include gimplify-ctx.h.
5809         * passes.c (htab_t name_to_pass_map):
5810         Change type to hash_table.  Update dependent calls and types.
5811         (pass_traverse): Rename to passes_pass_traverse.
5813         * plugin.c (htab_t event_tab):
5814         Change type to hash_table.  Update dependent calls and types.
5816         * postreload-gcse.c (htab_t expr_table):
5817         Change type to hash_table.  Update dependent calls and types.
5818         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
5820         * sese.c (debug_rename_map_1): Make extern.
5821         (htab_t copy_bb_and_scalar_dependences::rename_map):
5822         Change type to hash_table.  Update dependent calls and types.
5824         * sese.h (extern debug_rename_map): Move to .c file.
5826         * store-motion.c (htab_t store_motion_mems_table):
5827         Change type to hash_table.  Update dependent calls and types.
5829         * trans-mem.c (htab_t tm_new_mem_hash):
5830         Change type to hash_table.  Update dependent calls and types.
5832         * tree-browser.c (htab_t TB_up_ht):
5833         Change type to hash_table.  Update dependent calls and types.
5835         * tree-cfg.c (htab_t discriminator_per_locus):
5836         Change type to hash_table.  Update dependent calls and types.
5838         * tree-complex.c: Include tree-hasher.h
5839         (htab_t complex_variable_components):
5840         Change type to hash_table.  Update dependent calls and types.
5842         * tree-eh.c (htab_t finally_tree):
5843         Change type to hash_table.  Update dependent calls and types.
5845         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
5846         struct int_tree_hasher.
5847         (extern int_tree_map_eq): Likewise.
5848         (uid_decl_map_hash): Removed.
5849         (extern decl_tree_map_eq): Likewise.
5851         * tree-hasher.h: New.
5852         (struct int_tree_hasher): New.
5853         (typedef int_tree_htab_type): New.
5855         * tree-inline.c: Include gimplify-ctx.h.
5857         * tree-mudflap.c: Include gimplify-ctx.h.
5859         * tree-parloops.c: Include tree-hasher.h.
5860         (htab_t eliminate_local_variables_stmt::decl_address):
5861         Change type to hash_table.  Update dependent calls and types.
5862         (htab_t separate_decls_in_region::decl_copies): Likewise.
5864         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
5865         Change type to hash_table.  Update dependent calls and types.
5867         * tree-sra.c (candidates):
5868         Change type to hash_table.  Update dependent calls and types.
5870         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
5871         in tree-flow.h.
5872         (int_tree_map_hash): Likewise.
5874         * tree-ssa-dom.c (htab_t avail_exprs):
5875         Change type to hash_table.  Update dependent calls and types.
5877         * tree-ssa-live.c (var_map_base_init::tree_to_index):
5878         Change type to hash_table.  Update dependent calls and types.
5880         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
5881         Change type to hash_table.  Update dependent calls and types.
5883         * tree-ssa-phiopt.c (seen_ssa_names):
5884         Change type to hash_table.  Update dependent calls and types.
5886         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
5887         Change type to hash_table.  Update dependent calls and types.
5889         * tree-ssa-uncprop.c (equiv):
5890         Change type to hash_table.  Update dependent calls and types.
5892 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
5894         PR rtl-optimization/57003
5895         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
5896         call note_stores with kill_clobbered_value callback again after
5897         killing regs_invalidated_by_call.
5899 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
5901         * config/aarch64/aarch64-simd.md
5902         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
5903         (aarch64_simd_bsl<mode>): Likewise.
5904         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
5906 2013-04-25  Marek Polacek  <polacek@redhat.com>
5908         PR tree-optimization/57066
5909         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
5911 2013-04-25  James Greenhalgh  <jame.greenhalgh@arm.com>
5913         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
5915 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
5917         * config/aarch64/aarch64-builtins.c
5918         (aarch64_fold_builtin): New.
5919         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
5920         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
5921         * config/aarch64/aarch64-simd-builtins.def (abs): New.
5922         * config/aarch64/arm_neon.h
5923         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
5925 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
5926             Tejas Belagod  <tejas.belagod@arm.com>
5928         * config/aarch64/aarch64-builtins.c
5929         (aarch64_gimple_fold_builtin): New.
5930         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
5931         * config/aarch64/aarch64-simd-builtins.def (addv): New.
5932         * config/aarch64/aarch64-simd.md (addpv4sf): New.
5933         (addvv4sf): Update.
5934         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
5936 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5938         * config/aarch64/aarch64.md
5939         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
5941 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5943         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
5944         (*ngcsi_uxtw): New pattern.
5946 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5947             Julian Brown  <julian@codesourcery.com>
5949         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
5950         (TB_DREG): Add T_V4HF.
5951         (v4hf_UP): New macro.
5952         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5953         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5954         Handle initialisation of V4HF. Adjust initialisation of reinterpret
5955         built-ins.
5956         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5957         (arm_vector_mode_supported_p): Handle V4HF.
5958         (arm_mangle_map): Handle V4HFmode.
5959         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
5960         * config/arm/arm_neon_builtins.def: Add entries for
5961         vcvtv4hfv4sf, vcvtv4sfv4hf.
5962         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
5963         (neon_vcvtv4hfv4sf): Likewise.
5964         * config/arm/neon-gen.ml: Handle half-precision floating point
5965         features.
5966         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
5967         * config/arm/arm_neon.h: Regenerate.
5968         * config/arm/neon.ml (type elts): Add F16.
5969         (type vectype): Add T_float16x4, T_floatHF.
5970         (type vecmode): Add V4HF.
5971         (type features): Add Requires_FP_bit feature.
5972         (elt_width): Handle F16.
5973         (elt_class): Likewise.
5974         (elt_of_class_width): Likewise.
5975         (mode_of_elt): Refactor.
5976         (type_for_elt): Handle F16, fix error messages.
5977         (vectype_size): Handle T_float16x4.
5978         (vcvt_sh): New function.
5979         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
5980         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
5981         (string_of_mode): Handle V4HF.
5982         * doc/arm-neon-intrinsics.texi: Regenerate.
5984 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
5986         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
5987         format specifier in 'X' case.
5989 2013-04-25  Alan Modra  <amodra@gmail.com>
5991         PR target/57052
5992         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
5993         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
5994         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
5995         Repeat for many other rotate/shift and mask patterns using subregs.
5996         Name lshiftrt insns.
5997         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
5998         on WORDS_BIG_ENDIAN.
6000 2013-04-25  Alan Modra  <amodra@gmail.com>
6002         * config.gcc: Support little-endian powerpc-linux targets.
6003         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
6004         (LINK_OS_LINUX_SPEC): Define.
6005         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
6006         Preserve MASK_LITTLE_ENDIAN.
6007         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
6008         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
6009         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
6010         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
6011         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
6012         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
6013         Correct fp word order for little-endian.  Don't shift toc entries
6014         smaller than a word for little-endian.
6015         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
6016         (bswapdi2 splits): Correct low-part subreg for little-endian.
6017         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
6018         low/high where such is correct only for be.
6019         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
6020         little-endian for -mcall-aixdesc.
6022 2013-04-25  Alan Modra  <amodra@gmail.com>
6024         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
6025         replace_equiv_address_nv.
6027 2013-04-25  Alan Modra  <amodra@gmail.com>
6029         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
6031 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
6033         Revert:
6034         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
6035         * rtl.h (struct rtx_def): ...
6037 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
6039         PR rtl-optimizations/57046
6040         * lra-constraints (split_reg): Set up lra_risky_transformations_p
6041         for multi-reg splits.
6043 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
6045         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
6047 2013-04-24  Sterling Augustine  <saugustine@google.com>
6049         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
6050         (comp_dir_string, debug_str_dwo_section): New.
6051         (DEBUG_STR_DWO_SECTION): Rename to ...
6052         (DEBUG_DWO_STR_SECTION): ... this.
6053         (DEBUG_NORM_STR_SECTION): Delete.
6054         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
6055         (DEBUG_STR_DWO_SECTION_FLAGS): New.
6056         (find_AT_string): Move most logic to ...
6057         (find_AT_string_in_table): ... here.  New.
6058         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
6059         add_skeleton_AT_string.  Delete logic.
6060         (output_skeleton_debug_sections): Remove call to
6061         add_top_level_skeleton_die_attrs.
6062         (add_comp_dir_attribute): Move logic to comp_dir_string.
6063         (dwarf2out_init): Initialize debug_str_dwo_section.
6064         (output_indirect_string): Call find_string_form.
6065         (output_indirect_strings): Rewrite.
6066         (prune_unused_types): Empty skeleton_debug_str_hash.
6067         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
6068         (dwarf2out_finish):  Call output_indirect_strings.
6070 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
6072         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
6074 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
6076         * rtl.h (struct rtx_def): Add comment for field jump.
6077         (LRA_SUBREG_P): New macro.
6078         * recog.c (register_operand): Check LRA_SUBREG_P.
6079         * lra.c (lra): Add note at the end of RTL code. Align non-empty
6080         stack frame.
6081         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
6082         (lra_final_code_change): Skip subreg change for operators.
6083         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
6084         if there are no operand changes.
6085         * lra-constraints.c (curr_insn_set): New.
6086         (match_reload): Set LRA_SUBREG_P.
6087         (emit_spill_move): Ditto.
6088         (check_and_process_move): Use curr_insn_set. Process only single
6089         set insns.  Don't initialize sec_mem_p and change_p.
6090         (simplify_operand_subreg): Use LRA_SUBREG_P.
6091         (reg_in_class_p): New function.
6092         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
6093         of #ifdef.  Add code to remove cycling.
6094         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
6095         non-null disp.  Reload inner instead of disp when base and index
6096         are null.  Try to put lo_sum into register.
6097         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
6098         (check_and_process_move): Move code for move cost check to
6099         simple_move_p.  Remove equiv_substitution.
6100         (simple_move_p): New function.
6101         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
6102         curr_insn_set.  Call check_and_process_move only for single set
6103         insns.  Use the new function.  Move call of check_and_process_move
6104         after operand equiv substitution and address process.
6106 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
6108         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
6109         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
6110         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
6112 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
6114         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
6116 2013-04-24  Marek Polacek  <polacek@redhat.com>
6118         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
6119         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
6120         (select_loops_exit_conditions): Likewise.
6121         (number_of_iterations_for_all_loops): Likewise.
6122         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
6123         (scev_analysis): Likewise.
6125 2013-04-02  Catherine Moore  <clm@codesourcery.com>
6126             Chao-ying Fu <fu@mips.com>
6128         * config/mips/micromips.md (jraddiusp): New pattern.
6129         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
6130         instruction if possible.
6132 2013-04-24  Alan Modra  <amodra@gmail.com>
6134         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
6136 2013-04-24  Julian Brown  <julian@codesourcery.com>
6137             Chung-Lin Tang  <cltang@codesourcery.com>
6139         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
6140         dependency behavior in enumeration type DIE generation. Add TODO note
6141         to comments about future DW_FORM_sdata/udata re-work of related code.
6143 2013-04-23  Lawrence Crowl  <crowl@google.com>
6145         * Makefile.in: Update as needed below.
6147         * hash-table.h (class hash_table):
6148         Correct many methods with parameter types compare_type to the correct
6149         value_type.  (Correct code was unlikely to notice the change.)
6150         (hash_table::elements_with_deleted) New.
6151         (class hashtable::iterator): New.
6152         (hashtable::begin()): New.
6153         (hashtable::end()): New.
6154         (FOR_EACH_HASH_TABLE_ELEMENT): New.
6156         * statistics.c (statistics_hashes):
6157         Change type to hash_table.  Update dependent calls and types.
6159         * tree-into-ssa.c (var_infos):
6160         Change type to hash_table.  Update dependent calls and types.
6162         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
6163         Change type to hash_table.  Update dependent calls and types.
6165         * tree-ssa-loop-im.c (struct mem_ref.refs):
6166         Change type to hash_table.  Update dependent calls and types.
6168         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
6169         Change type to hash_table.  Update dependent calls and types.
6171         * tree-ssa-sccvn.c (vn_tables_s::nary):
6172         Change type to hash_table.  Update dependent calls and types.
6173         (vn_tables_s::phis): Likewise.
6174         (vn_tables_s::references): Likewise.
6176         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
6177         (vn_reference_eq): Update parameter and return types.
6179         * tree-ssa-structalias.c (pointer_equiv_class_table):
6180         Change type to hash_table.  Update dependent calls and types.
6181         (location_equiv_class_table): Likewise.
6183         * tree-vect-data-refs.c: Consequential changes for making
6184         peeling a hash_table.
6186         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
6187         (destroy_loop_vec_info): Dependent hash_table update.
6189         * tree-vectorizer.h (peeling_htab):
6190         Change type to hash_table.  Update dependent calls and types.
6192 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
6194         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
6195         to check the register content is equal or not.
6196         * lra-constraints.c (match_reload): Use lra_assign_reg_val
6197         to assign register content record.
6198         * lra-eliminations.c (update_reg_eliminate): Use
6199         lra_update_reg_val_offset to update register content offset.
6200         * lra-int.h (struct lra_reg): Add offset member.
6201         (lra_reg_val_equal_p): New static inline function.
6202         (lra_update_reg_val_offset): New static inline function.
6203         (lra_assign_reg_val): New static inline function.
6204         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
6205         to assign register content record.
6206         (initialize_lra_reg_info_element): Initial offset to zero.
6208 2013-04-23  Catherine Moore  <clm@codesourcery.com>
6210         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
6211         operands.  Record compression.
6213 2013-04-23  Xinliang David Li  <davidxl@google.com>
6215         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
6217 2013-04-23  Richard Biener  <rguenther@suse.de>
6219         PR middle-end/57036
6220         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
6221         parameter, only add abnormal goto edges from the copied body
6222         if the call could perform abnormal gotos.
6223         (copy_cfg_body): Adjust.
6225 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
6227         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
6229 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
6231         * coretypes.h (gimple_stmt_iterator): Add struct to make
6232         compatible with C.
6234 2013-04-23  Richard Biener  <rguenther@suse.de>
6236         PR tree-optimization/57026
6237         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
6238         from SSA names occuring in abnormal PHI nodes.
6240 2013-04-22  Andi Kleen  <ak@linux.intel.com>
6242         * lto/lto.c (print_lto_report_1): Fix LTO report names.
6244 2013-04-22  Andi Kleen  <ak@linux.intel.com>
6246         * lto/lto.c (print_lto_report_1): Declare early.
6247         (read_cgraph_and_symbols): Call print_lto_report_1 early.
6249 2013-04-22  Andi Kleen  <ak@linux.intel.com>
6251         * common.opt (-flto-report-wpa): Add.
6252         * doc/invoke.texi (-flto-report-wpa): Add.
6253         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
6254         (lto_main): dito.
6256 2013-04-22  Xinliang David Li  <davidxl@google.com>
6258         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
6259         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
6260         * Makefile.in: New dependency
6262             David Daney <ddaney.cavm@gmail.com>
6264         * configure.ac (gcc_cv_as_micromips_support):  Use the
6265         --fatal-warnings option.
6266         * configure: Regenerate.
6268 2013-04-22  Marek Polacek  <polacek@redhat.com>
6270         PR sanitizer/56990
6271         * tsan.c (instrument_expr): Don't instrument expression
6272         in case its size is zero.
6274 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
6276         PR target/57032
6277         Revert:
6278         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
6280         * config/alpha/alpha.c (TARGET_LRA_P): New define.
6282 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
6284         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
6285         (gimple_stmt_iterator): New typedef.
6286         * gimple.h (gimple_stmt_iterator): Rename to...
6287         (gimple_stmt_iterator_d): ... This.
6288         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
6289         trees be valid for GIMPLE and GENERIC.
6290         (TARGET_GIMPLE_FOLD_BUILTIN): New.
6291         * gimple-fold.c (gimple_fold_call): Call target hook
6292         gimple_fold_builtin.
6293         * hooks.c (hook_bool_gsiptr_false): New.
6294         * hooks.h (hook_bool_gsiptr_false): New.
6295         * target.def (fold_stmt): New.
6296         * doc/tm.texi: Regenerate.
6298 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
6300         PR target/57018
6301         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
6302         a set sp if no stack realignment.
6304 2013-04-22  Nick Clifton  <nickc@redhat.com>
6306         * config.gcc (tilegx-linux): Extend extra_objs rather than
6307         overwriting it.
6308         (tilepro-linux): Likewise.
6310 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
6312         * config/aarch64/aarch64-builtins.c
6313         (CF): Remove.
6314         (CF0, CF1, CF2, CF3, CF4, CF10): New.
6315         (VAR<1-12>): Add MAP parameter.
6316         (BUILTIN_*): Likewise.
6317         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
6318         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
6319         (aarch64_ushl_n<mode>): Likewise.
6320         (aarch64_sshr_n<mode>): Likewise.
6321         (aarch64_ushr_n<mode>): Likewise.
6322         (aarch64_<maxmin><mode>): Likewise.
6323         (aarch64_sqrt<mode>): Likewise.
6324         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
6325         (vshr<q>_n_*): Likewise.
6327 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
6329         * config/aarch64/aarch64-builtins.c
6330         (aarch64_simd_builtin_type_mode): Handle SF types.
6331         (sf_UP): Define.
6332         (BUILTIN_GPF): Define.
6333         (aarch64_init_simd_builtins): Handle SF types.
6334         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
6335         (frecps): Likewise.
6336         (frecpx): Likewise.
6337         * config/aarch64/aarch64-simd.md
6338         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
6339         (aarch64_frecpe<mode>): New.
6340         (aarch64_frecps<mode>): Likewise.
6341         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
6342         (v8type): Add frecp<esx>.
6343         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
6344         (aarch64_frecps<mode>): Likewise.
6345         * config/aarch64/iterators.md (FRECP): New.
6346         (frecp_suffix): Likewise.
6347         * config/aarch64/arm_neon.h
6348         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
6350 2013-04-22  Christian Bruel  <christian.bruel@st.com>
6352         PR target/56995
6353         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
6354         (REG_CLASS_NAMES): Idem.
6355         (REG_CLASS_CONTENTS): Idem.
6356         (REGCLASS_HAS_FP_REG): Idem.
6357         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
6358         (sh_conditional_register_usage): Idem.
6360 2013-04-21  Jeff Law  <law@redhat.com>
6362         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
6363         (ssa_forward_propagate_and_combine): Use it.
6365 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
6367         * lra.c: Update the flow chart diagram.
6369 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
6371         PR rtl-optimization/56847
6372         * lra-constraints.c (process_alt_operands): Discourage alternative
6373         with non-matche doffsettable memory constraint fro memory with
6374         known offset.
6376 2013-04-19  Richard Biener  <rguenther@suse.de>
6378         PR tree-optimization/56982
6379         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
6380         function.
6381         * gimplify.c (gimplify_call_expr): Notice special calls.
6382         (gimplify_modify_expr): Likewise.
6383         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
6384         abnormal control flow receivers.
6385         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
6386         in the same way as cfun->has_nonlocal_labels.
6387         (gimple_purge_dead_abnormal_call_edges): Likewise.
6388         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
6389         receivers start a basic-block.
6391 2013-04-19  Richard Biener  <rguenther@suse.de>
6393         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
6394         member ...
6395         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
6396         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
6397         (SLP_TREE_LOAD_PERMUTATION): Add.
6398         (vect_transform_slp_perm_load): Adjust prototype.
6399         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
6400         (vect_free_slp_instance): Likewise.
6401         (vect_create_new_slp_node): Likewise.
6402         (vect_supported_slp_permutation_p): Remove.
6403         (vect_slp_rearrange_stmts): Adjust.
6404         (vect_supported_load_permutation_p): Likewise.  Inline
6405         vect_supported_slp_permutation_p here.
6406         (vect_analyze_slp_instance): Compute load permutations per
6407         slp node instead of per instance.
6408         (vect_get_slp_defs): Adjust.
6409         (vect_transform_slp_perm_load): Likewise.
6410         (vect_schedule_slp_instance): Remove redundant code.
6411         (vect_schedule_slp): Remove hack for PR56270, add it ...
6412         * tree-vect-stmts.c (vectorizable_load): ... here, do not
6413         CSE loads for SLP.  Adjust.
6415 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
6417         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
6418         spelling in two comments.
6420 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
6422         PR target/56797
6423         * config/arm/arm.c (load_multiple_sequence): Require SP
6424         as base register for loads if SP is in the register list.
6426 2013-04-19  Martin Jambor  <mjambor@suse.cz>
6428         PR tree-optimization/56718
6429         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
6430         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
6431         and made public.  Adjusted all callers.
6432         (ipa_intraprocedural_devirtualization): New function.
6433         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
6434         (ipa_intraprocedural_devirtualization): Likewise.
6435         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
6437 2013-04-19  Richard Biener  <rguenther@suse.de>
6439         PR tree-optimization/57000
6440         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
6442 2013-04-19  Terry Guo  <terry.guo@arm.com>
6444         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
6445         Replace with ...
6446         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
6447         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
6448         (cortex_m4_fmacs): Use new reservations.
6449         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
6451 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
6453         PR rtl-optimization/56999
6454         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
6455         related code.
6456         (lra_coalesce): Remove split_origin_bitmap and related code.
6457         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
6458         ranges if necessary.
6460 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
6462         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
6463         New array.
6464         (ix86_expand_call): Remove clobbered_registers array and use
6465         x86_64_ms_sysv_extra_clobbered_registers instead.
6466         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
6467         Declare here.
6468         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
6469         predicate.
6470         * config/i386/i386.md (*call_rex64_ms_sysv): Use
6471         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
6472         (*call_value_rex64_ms_sysv): Ditto.
6474 2013-04-18  Cary Coutant  <ccoutant@google.com>
6476         * dwarf2out.c (output_pubnames): Check die_perennial_p of
6477         parent instead of die_mark.
6479 2013-04-18  Diego Novillo  <dnovillo@google.com>
6481         * gimple.c (create_gimple_tmp): New.
6482         (get_expr_type): New.
6483         (build_assign): New.
6484         (build_type_cast): New.
6485         * gimple.h (enum ssa_mode): Define.
6486         (gimple_seq_set_location): New.
6487         * asan.c (build_check_stmt): Change some gimple_build_* calls
6488         to use build_assign and build_type_cast.
6490 2013-04-18  Richard Biener  <rguenther@suse.de>
6492         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
6493         handle negative step.  Remove redundant checks.
6494         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
6495         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
6496         for negative step and grouped loads fail to vectorize.
6498 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
6500         * emit-rtl.c (reset_insn_used_flags): New function.
6501         (reset_all_used_flags): Use it.
6502         (verify_insn_sharing): New function.
6503         (verify_rtl_sharing): Fix verification for SEQUENCEs.
6505 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
6507         PR tree-optimization/56984
6508         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
6509         and (x >> M) >= N don't register any assertion if N << M is the
6510         minimum value.
6512 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
6514         * lower-subreg.c (resolve_simple_move): If called self-recursive,
6515         do not delete_insn insns that have not yet been emitted, only
6516         unlink them with remove_insn.
6517         * df-scan.c (df_insn_delete): Revert r197492.
6519 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
6521         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
6522         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
6524 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
6526         * config/arm/arm.md (movsicc_insn): Convert define_insn into
6527         define_insn_and_split.
6528         (and_scc,ior_scc,negscc): Likewise.
6529         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
6531 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
6533         * config/arm/arm.c (use_return_insn): Return 0 for targets that
6534         can benefit from using a sequence of LDRD instructions in epilogue
6535         instead of a single LDM instruction.
6537 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6539         PR 45688
6540         * doc/extend.texi: Fix typo.
6542 2013-04-17  Richard Biener  <rguenther@suse.de>
6544         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
6545         (vect_build_slp_tree): ... here.
6546         (vect_build_slp_tree_1): Compute which stmts of the SLP group
6547         match.  Remove special-casing of mismatched complex loads.
6548         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
6549         re-try the match with swapped commutative operands.
6550         (vect_supported_load_permutation_p): Remove special-casing of
6551         mismatched complex loads.
6552         (vect_analyze_slp_instance): Adjust.
6554 2013-04-17  Richard Biener  <rguenther@suse.de>
6556         PR rtl-optimization/56921
6557         * cfgloop.h (struct loop): Add simple_loop_desc member.
6558         (struct niter_desc): Mark with GTY(()).
6559         (simple_loop_desc): Do not use aux field but simple_loop_desc.
6560         * loop-iv.c (get_simple_loop_desc): Likewise.
6561         (free_simple_loop_desc): Likewise.
6563         Revert
6564         2013-04-16  Richard Biener  <rguenther@suse.de>
6566         PR rtl-optimization/56921
6567         * loop-init.c (pass_rtl_move_loop_invariants): Add
6568         TODO_do_not_ggc_collect to todo_flags_finish.
6569         (pass_rtl_unswitch): Same.
6570         (pass_rtl_unroll_and_peel_loops): Same.
6571         (pass_rtl_doloop): Same.
6573 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
6575         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
6576         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
6577         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
6578         references.
6579         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
6580         * tree-streamer.c (record_common_node): Adjust reference in comment.
6582 2013-04-17  Terry Guo  <terry.guo@arm.com>
6584         * config/arm/cortex-m4.md: Add a new bypass.
6586 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6588         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
6589         New pattern.
6590         (*subs_<optab><mode>_multp2): New pattern.
6591         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
6592         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
6594 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6596         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
6597         (*subs_mul_imm_<mode>): New pattern.
6599 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
6601         PR target/56948
6602         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
6603         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
6604         (vsx_movti_32bit): Change j->wa to O->wa.
6606 2013-04-16  Richard Biener  <rguenther@suse.de>
6608         PR rtl-optimization/56921
6609         * loop-init.c (pass_rtl_move_loop_invariants): Add
6610         TODO_do_not_ggc_collect to todo_flags_finish.
6611         (pass_rtl_unswitch): Same.
6612         (pass_rtl_unroll_and_peel_loops): Same.
6613         (pass_rtl_doloop): Same.
6615 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
6617         * config/arm/arm.c (emit_multi_reg_push): New declaration
6618         for an existing function.
6619         (arm_emit_strd_push): New function.
6620         (arm_expand_prologue): Used here.
6621         (arm_emit_ldrd_pop): New function.
6622         (arm_expand_epilogue): Used here.
6623         (arm_get_frame_offsets): Update condition.
6624         (arm_emit_multi_reg_pop): Add a special case for load of a single
6625         register with writeback.
6627 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
6629         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
6630         description.
6632 2013-04-16  Richard Biener  <rguenther@suse.de>
6634         PR tree-optimization/56756
6635         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
6636         (first_mem_ref_loc): New.
6637         (execute_sm): Place the load temporarily before a previous
6638         access instead of in the latch edge to ensure its SSA dependencies
6639         are defined at points dominating the load.
6641 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
6643         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
6644         correct fix by moving header and footer insn to the footer of
6645         the merged basic block.  Clear BB_END of the merged-away block.
6647         PR middle-end/43631
6648         * emit-rtl.c (make_note_raw): New function.
6649         (link_insn_into_chain): New static inline function.
6650         (add_insn): Use it.
6651         (add_insn_before, add_insn_after): Factor insn chain linking code...
6652         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
6653         using link_insn_into_chain.
6654         (note_outside_basic_block_p): New helper function for emit_note_after
6655         and emit_note_before.
6656         (emit_note_after): Use nobb variant of add_insn_after if the note
6657         should not be contained in a basic block.
6658         (emit_note_before): Use nobb variant of add_insn_before if the note
6659         should not be contained in a basic block.
6660         (emit_note_copy): Use make_note_raw.
6661         (emit_note): Likewise.
6662         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
6663         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
6664         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
6665         the moved barrier the tail of the basic block it follows.
6666         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
6668 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
6670         PR tree-optimization/56962
6671         * gimple-ssa-strength-reduction.c (record_increment): Only set
6672         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
6673         either rhs1 or rhs2 is equal to c->base_expr.
6675 2013-04-15  Richard Biener  <rguenther@suse.de>
6677         PR tree-optimization/56933
6678         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
6679         member.
6680         (GROUP_READ_WRITE_DEPENDENCE): Remove.
6681         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
6682         * tree-vect-data-refs.c (vect_analyze_group_access): Move
6683         dependence check ...
6684         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
6685         ... here.
6686         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
6687         GROUP_READ_WRITE_DEPENDENCE.
6689 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6691         * emit-rtl.c (reset_all_used_flags): New function.
6692         (verify_rtl_sharing): Call reset_all_used_flags before and after
6693         performing the checks.
6695 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6697         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
6698         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
6699         * config/arm/constraints.md (De): New constraint.
6700         * config/arm/neon.md (anddi3_neon): Delete.
6701         (neon_vand<mode>): Expand to standard anddi3 pattern.
6702         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
6703         Move earlier in the file.
6704         (neon_inv_logic_op2): Likewise.
6705         (arm_anddi_operand_neon): New predicate.
6707 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6709         * configure.ac (gcc_cv_ld_as_needed): Set
6710         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
6711         Use -z ignore, -z record on *-*-solaris2*.
6712         (HAVE_LD_AS_NEEDED): Update comment.
6713         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
6714         * configure: Regenerate.
6715         * config.in: Regenerate.
6716         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
6717         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
6718         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
6719         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
6720         equivalents.  Fix markup.
6721         * doc/tm.texi: Regenerate.
6723 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
6725         * config/i386/i386.opt: New option mstack-protector-guard=.
6726         * config/i386/i386-opts.h: Add enum stack_protector_guard.
6727         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
6728         TARGET_SSP_TLS_GUARD.
6729         * config/i386/i386.c (ix86_option_override_internal): Set
6730         ix86_stack_protector_guard.
6731         * config/i386/i386.md (stack_protect_set): Enable for
6732         TARGET_SSP_TLS_GUARD only.
6733         (stack_protect_set_<mode>): Ditto.
6734         (stack_protect_test): Ditto.
6735         (stack_protect_test_<mode>): Ditto.
6736         * doc/invoke.texi (i386 Option): Document.
6738 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
6740         PR target/56890
6741         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
6742         (S_MODES): Set H_MODE bit.
6743         (SF_MODES): Set only S_MODE and SF_MODE bits.
6744         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
6745         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
6746         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
6747         <MODE_FLOAT>: Likewise.
6749 2013-04-15  Joey Ye  <joey.ye@arm.com>
6751         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
6753 2013-04-15  Joey Ye  <joey.ye@arm.com>
6755         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
6756         for real far jump.
6757         (thumb_far_jump_used_p): Count instruction size and set
6758         far_jump_used.
6760 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
6762         * reorg.c (fill_simple_delay_slots): Reindent block of code.
6763         * resource.c (mark_target_live_regs): Reformat conditional block.
6765 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
6767         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
6768         notes, they are emitted only just before final.
6769         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
6771 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
6773         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
6774         * cfgrtl.c (delete_insn): Call it here instead.
6775         * lra-spills.c (lra_final_code_change): Use delete_insn.
6776         * haifa-sched.c (sched_remove_insn): Likewise.
6777         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
6778         returning to the nop pool.
6779         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
6780         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
6782 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
6784         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
6785         * doc/tm.texi: Regenerated.
6787 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
6789         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
6790         QImode checks.
6792 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
6794         * df-core.c (df_find_def): Compare register numbers.
6795         (df_find_use): Likewise.
6797 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
6799         PR target/56903
6800         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
6801         lra_in_progress for return.
6803 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
6805         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
6806         define_insn into define_insn_and_split and emit movsicc patterns.
6808 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
6810         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
6812 2013-04-12  Richard Biener  <rguenther@suse.de>
6814         * tree-pass.h (TODO_do_not_ggc_collect): New.
6815         * passes.c (execute_one_ipa_transform_pass): Honor
6816         TODO_do_not_ggc_collect.
6817         (execute_one_pass): Likewise.
6819         Revert
6820         2013-04-10  Richard Biener  <rguenther@suse.de>
6822         * passes.c (init_optimization_passes): Remove reload pass.
6823         * ira.c (do_reload): Merge into ...
6824         (ira): ... this.
6825         (rest_of_handle_reload): Remove.
6826         (pass_reload): Likewise.
6827         * config/i386/i386.c (ix86_option_override): Refer to ira instead
6828         of reload for vzeroupper pass placement.
6830 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
6832         PR tree-optimization/56918
6833         PR tree-optimization/56920
6834         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
6835         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
6836         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
6837         use wide_mul_with_sign method.
6839 2013-04-12  Richard Biener  <rguenther@suse.de>
6841         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
6842         not be considered a gimple constant.
6844 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
6846         * fold-const.c (const_binop): Handle vector shifts by a scalar.
6847         (fold_binary_loc): Call const_binop also for mixed vector-scalar
6848         operations.
6850 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6851             Jakub Jelinek  <jakub@redhat.com>
6853         * opts.c: Include diagnostic-color.h.
6854         (common_handle_option): Handle OPT_fdiagnostics_color_.
6855         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
6856         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
6857         (diagnostic-color.o): New.
6858         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
6859         (diagnostic_color_rule): New enum.
6860         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
6861         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
6862         the location string.
6863         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
6864         either NULL, or color kind.
6865         * diagnostic-color.c: New file.
6866         * diagnostic-color.h: New file.
6867         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
6868         arguments.
6869         * doc/invoke.texi (-fdiagnostics-color): Document.
6870         * pretty-print.h (pp_show_color): Define.
6871         (struct pretty_print_info): Add show_color field.
6872         * diagnostic.c: Include diagnostic-color.h.
6873         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
6874         macros.  Colorize error:, warning: etc. strings and also the location
6875         string.
6876         (diagnostic_show_locus): Colorize the caret line.
6877         * pretty-print.c: Include diagnostic-color.h.
6878         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
6879         inside of %< %> quotes or quoted through q format modifier.
6881 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6883         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
6885 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6887         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
6888         code in CC_NZ mode.
6889         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
6890         pattern.
6892 2013-04-11  Marek Polacek  <polacek@redhat.com>
6894         PR tree-optimization/48184
6895         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
6897 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
6899         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
6900         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
6901         (skip_simple_arithmetic): Tidy up.
6902         * tree.h (skip_simple_constant_arithmetic): Declare.
6904 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6906         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
6908 2013-04-11  Richard Biener  <rguenther@suse.de>
6910         * tree-vect-loop.c (get_initial_def_for_induction): Properly
6911         generate vector constants.
6913 2013-04-11  Richard Biener  <rguenther@suse.de>
6915         PR tree-optimization/56878
6916         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
6917         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
6918         New function.
6919         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6920         Prefer to align the DR with the most invariant base address.
6922 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6924         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
6925         comment.
6927 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
6929         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
6930         floating-point vector comparisons against 0.
6932 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
6934         PR tree-optimization/56899
6935         * fold-const.c (extract_muldiv_1): Apply distributive law
6936         only if TYPE_OVERFLOW_WRAPS (ctype).
6938 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
6940         PR target/56124
6941         * ira-costs.c (scan_one_insn): Check whether the source rtx of
6942         loading has side effect.
6944 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
6946         * config/sparc/sparc.c: Include tree-pass.h.
6947         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
6948         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
6949         head of file.  Change return type.  Split off gate function.
6950         (sparc_gate_work_around_errata): New function.
6951         (pass_work_around_errata): New pass definition.
6952         (insert_pass_work_around_errata) New pass insert definition to
6953         insert pass_work_around_errata just after delayed-branch scheduling.
6954         (sparc_option_override): Insert the pass.
6955         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
6957 2013-04-10  David S. Miller  <davem@davemloft.net>
6959         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
6960         or -mcpu=hypersparc.
6962         * target.def (cstore_mode): New hook.
6963         * target.h: Include insn-codes.h
6964         * targhooks.c: Likewise.
6965         (default_cstore_mode): New function.
6966         * targhooks.h: Declare it.
6967         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
6968         * doc/tm.texi: Rebuild.
6969         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
6970         target hook, rather than inspecting the insn_data.
6971         * config/sparc/sparc.c (sparc_cstore_mode): New function.
6972         (TARGET_CSTORE_MODE): Redefine.
6973         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
6974         result patterns.
6975         * config/sparc/predicates.md (cstore_result_operand): New special
6976         predicate.
6977         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
6978         Use it for operand 0.
6979         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
6980         (*snesi_special): Likewise.
6981         (*snesi_zero): Likewise.
6982         (*seqsi_zero): Likewise.
6983         (*sltu_insn): Likewise.
6984         (*sgeu_insn): Likewise.
6985         (*seqdi_special): Make operand 0 and comparison operation be of
6986         DImode.
6987         (*snedi_special): Likewise.
6988         (*snedi_special_vis3): Likewise.
6989         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
6990         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
6991         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
6992         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
6993         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
6994         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
6995         (*sltu_extend_sp64): Likewise.
6996         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
6997         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
6998         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
6999         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
7000         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
7002 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
7004         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
7005         (aarch64_start_file): Use the new function.
7007 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
7008             Jason Merrill  <jason@redhat.com>
7010         * common.opt: Add -gdwarf.
7011         * opts.c (common_handle_option): Handle it.
7012         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
7014 2013-04-10  Richard Biener  <rguenther@suse.de>
7016         * passes.c (execute_todo): Do not call ggc_collect conditional here.
7017         (execute_one_ipa_transform_pass): But unconditionally here.
7018         (execute_one_pass): And here.
7019         (init_optimization_passes): Remove reload pass.
7020         * tree-pass.h (TODO_ggc_collect): Remove.
7021         (pass_reload): Likewise.
7022         * ira.c (do_reload): Merge into ...
7023         (ira): ... this.
7024         (rest_of_handle_reload): Remove.
7025         (pass_reload): Likewise.
7026         * config/i386/i386.c (ix86_option_override): Refer to ira instead
7027         of reload for vzeroupper pass placement.
7028         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
7029         and todo_flags_finish of all passes.
7031 2013-04-10  Richard Biener  <rguenther@suse.de>
7033         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
7034         first_const_oprnd field, rename first_def_type to first_op_type.
7035         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
7036         (vect_get_and_check_slp_defs): Always use the type of the
7037         operand.  Allow mixed vect_external_def, vect_constant_def types.
7038         (vect_get_constant_vectors): Handle mixed vect_external_def,
7039         vect_constant_def types.
7041 2013-04-10  Joern Rennecke <joern.rennecke@embecosm.com>
7043         PR tree-optimization/55524
7044         * tree-ssa-math-opts.c
7045         (convert_mult_to_fma): Don't use an fms construct
7046         when we don't have an fms operation, but fnma, and it looks
7047         likely that we'll be able to use the latter.
7049 2013-04-10  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
7051         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
7052         function.
7053         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
7054         inline fail caused by overwritable functions.
7056 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
7058         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
7059         unnecessary bits in the constant power of two case.
7061 2013-04-10  Richard Biener  <rguenther@suse.de>
7063         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
7064         broken code swapping operands.
7065         (vect_build_slp_tree): Do not compute load permutations here.
7066         (vect_analyze_slp_instance): Compute load permutations here,
7067         after building the SLP tree.
7069 2013-04-09  Christian Bruel  <christian.bruel@st.com>
7071         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
7072         of next/prev_real_insn.
7074 2013-04-09  Jan Hubicka  <jh@suse.cz>
7076         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
7077         Drop aliased parameter.
7078         (function_and_variable_visibility): Do not handle alias pairs.
7079         * cgraph.c (varpool_externally_visible_p): Update prototype.
7080         * varpool.c (varpool_add_new_variable): Update.
7082 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7084         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
7086 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
7088         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
7090         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
7092 2013-04-09  Marek Polacek  <polacek@redhat.com>
7094         PR tree-optimization/48762
7095         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
7097 2013-04-09  Richard Biener  <rguenther@suse.de>
7099         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
7100         dealing with cost.
7101         (vect_build_slp_tree): Likewise.
7102         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
7103         calculating the cost of a SLP instance.
7104         (vect_analyze_slp_instance): Use it from here, after building
7105         the SLP tree.
7107 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
7109         PR middle-end/56883
7110         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
7111         expand_omp_for_static_chunk): Use simple_p = true in
7112         force_gimple_operand_gsi calls when assigning to addressable decls.
7114 2013-04-09  Jeff Law  <law@redhat.com>
7116         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
7117         when the boolean was created by converting a wider object which
7118         had a boolean range.
7120 2013-04-09  Richard Biener  <rguenther@suse.de>
7122         * tree-vectorizer.h (slp_void_p): Remove.
7123         (slp_tree): Typedef before _slp_tree declaration.
7124         (struct _slp_tree): Use a vector of slp_tree as children.
7125         (vect_get_place_in_interleaving_chain): Remove.
7126         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
7127         Move ...
7128         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
7129         and make static.
7130         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
7131         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
7132         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
7133         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
7134         Use slp_node instead of slp_void_p and adjust.
7136 2013-04-09  Richard Biener  <rguenther@suse.de>
7138         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
7139         work that is not necessary.
7141 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
7143         PR tree-optimization/56854
7144         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
7145         forward into clobber stmts if it would change MEM_REF lhs into
7146         non-MEM_REF.
7148 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
7150         * tree.c (type_hash_lookup, type_hash_add): Make static.
7151         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
7153 2013-04-09  Richard Biener  <rguenther@suse.de>
7155         * tree.h (unsave_expr_now): Remove.
7156         * tree-inline.c (mark_local_for_remap_r): Remove.
7157         (unsave_expr_1): Likewise.
7158         (unsave_r): Likewise.
7159         (unsave_expr_now): Likewise.
7160         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
7161         (propagate_tree_value): Likewise.
7163 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
7165         * doc/rtl.texi (sequence): Rewrite documentation to match the
7166         current use of SEQUENCE rtl objects.
7167         * rtl.def (SEQUENCE): Likewise.
7169         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
7170         Update documentation.
7171         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
7172         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
7174         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
7176 2013-04-08  Teresa Johnson  <tejohnson@google.com>
7178         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
7179         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
7180         methods.
7181         (estimate_edge_size_and_time): Add comment to suggest using rounding
7182         methods.
7183         (estimate_node_size_and_time): Ditto.
7184         (remap_edge_change_prob): Use helper rounding divide methods.
7185         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
7186         (gimple_mod_pow2_value_transform): Ditto.
7187         (gimple_mod_subtract_transform): Ditto.
7188         (gimple_ic_transform): Ditto.
7189         (gimple_stringops_transform): Ditto.
7190         * stmt.c (conditional_probability): Ditto.
7191         (emit_case_dispatch_table): Ditto.
7192         * lto-cgraph.c (merge_profile_summaries): Ditto.
7193         * tree-optimize.c (execute_fixup_cfg): Ditto.
7194         * cfgcleanup.c (try_forward_edges): Ditto.
7195         * cfgloopmanip.c (scale_loop_profile): Ditto.
7196         (loopify): Ditto.
7197         (duplicate_loop_to_header_edge): Ditto.
7198         (lv_adjust_loop_entry_edge): Ditto.
7199         * tree-vect-loop.c (vect_transform_loop): Ditto.
7200         * profile.c (compute_branch_probabilities): Ditto.
7201         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
7202         * lto-streamer-in.c (input_cfg): Ditto.
7203         * gimple-streamer-in.c (input_bb): Ditto.
7204         * ipa-cp.c (update_profiling_info): Ditto.
7205         (update_specialized_profile): Ditto.
7206         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
7207         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
7208         rounding methods.
7209         * sched-rgn.c (compute_dom_prob_ps): Ditto.
7210         (compute_trg_info): Ditto.
7211         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
7212         (purge_dead_edges): Ditto.
7213         * loop-unswitch.c (unswitch_loop): Ditto.
7214         * cgraphclones.c (cgraph_clone_edge): Ditto.
7215         (cgraph_clone_node): Ditto.
7216         * tree-inline.c (copy_bb): Ditto.
7217         (copy_edges_for_bb): Ditto.
7218         (initialize_cfun): Ditto.
7219         (copy_cfg_body): Ditto.
7220         (expand_call_inline): Ditto.
7222 2013-04-08  Kai Tietz  <ktietz@redhat.com>
7224         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
7225         TARGET_CYGWIN64 by TARGET_64BIT.
7227 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
7229         * config/epiphany/epiphany.md (GPR_1): New constant.
7230         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
7231         * config/epiphany/epiphany.c (gen_compare_reg):
7232         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
7233         is already in place.
7234         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
7235         Don't require being called during rtl expansion; If y operlaps r0,
7236         return 0.
7237         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
7238         (epiphany_expand_epilogue): Likewise.
7240         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
7241         Don't use CC_FPmode for ORDERED / UNORDERED.
7242         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
7244         * config/epiphany/constraints.md (CnL): New constraint.
7245         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
7246         * config/epiphany/predicates.md (add_operand): Allow 1024.
7248         * config/epiphany/epiphany.md (logical_op): New code iterator.
7249         (op_mnc): New code attribute.
7250         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
7251         (mov_f+1, mov_f+2): New peephole2 patterns.
7253         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
7254         (cstoresi4): Also allow re-use of zero result when doing a NE
7255         comparison to a non-zero operand.
7256         Use (clobber (scratch)) for first insn if the gpr output is not needed.
7258         * config/epiphany/epiphany.md (<insn_opname>v2si3):
7259         Use gen_addsi3_i / gen_subsi3_i.
7261 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
7263         PR c++/34949
7264         PR c++/50243
7265         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
7266         contain anything but clobbers, at most one __builtin_stack_restore,
7267         optionally debug stmts and final resx, and if it has at least one
7268         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
7269         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
7270         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
7271         which isn't defaut definition, remove them.
7272         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
7273         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
7274         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
7275         with MEM_REF LHS with SSA_NAME address.
7277 2013-04-08  Jeff Law  <law@redhat.com>
7279         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
7281 2013-04-08  Richard Biener  <rguenther@suse.de>
7283         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
7284         extra newline.
7285         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
7286         determined vector type.
7287         (vect_analyze_data_refs): Likewise.
7288         (vect_get_new_vect_var): Adjust.
7289         (vect_create_destination_var): Preserve SSA name versions.
7290         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
7291         not dump anything here.
7293 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
7295         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
7296         Add member lr_slot_known.
7297         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
7298         if necessary.
7299         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
7300         Remove code that sets lr_slot_offset according to what a previous
7301         version of epiphany_emit_save_restore used to do.
7302         (epiphany_emit_save_restore): When doing an lr save or restore,
7303         set/verify lr_slot_known and lr_slot_offset.
7305 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
7307         PR target/54338
7308         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
7309         in ALL_REGS.
7311 2013-04-08  Richard Biener  <rguenther@suse.de>
7313         * alias.c (find_base_term): Fix thinko in previous change.
7315 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
7317         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
7318         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
7319         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
7320         if possible to compute val.
7321         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
7322         For QImode integers don't require anything about precision.  Use
7323         const_with_all_bytes_same to find out if the constant doesn't have
7324         repeated bytes in it.
7326 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7328         * config/s390/s390.c (s390_expand_insv): Only accept insertions
7329         within mode size.
7331 2013-04-08  Marek Polacek  <polacek@redhat.com>
7333         PR rtl-optimization/48182
7334         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
7335         value to 1.
7337 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7339         PR target/55487
7340         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
7341         nuses, make sure we have a label.
7343 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7345         PR target/56843
7346         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
7347         (rs6000_emit_swdiv_low_precision): Remove.
7348         (rs6000_emit_swdiv): Rewrite to handle between one and four
7349         iterations of Newton-Raphson generally; modify required number of
7350         iterations for some cases.
7351         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
7353 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
7355         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
7356         set-but-unused variable.
7358         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
7359         basic blocks of released function bodies garbage-collectable.
7361         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
7362         (struct rtl_opt_pass): Add TODO_df_finish.
7364         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
7366 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7368         * config/arm/constraints.md (q): New constraint.
7369         * config/arm/ldrdstrd.md: New file.
7370         * config/arm/arm.md (ldrdstrd.md) New include.
7371         (arm_movdi): Use "q" instead of "r" constraint
7372         for double-word memory access.
7373         (movdf_soft_insn): Likewise.
7374         * config/arm/vfp.md (movdi_vfp): Likewise.
7375         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
7376         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
7377         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
7378         (mem_ok_for_ldrd_strd): Likewise.
7379         (output_move_double): Update assertion.
7381 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7383         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
7385 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7387         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
7388         define_insn_and_split.
7389         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
7391 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7393         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
7394         define_insn_and_split.
7395         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
7396         (shiftsi3_compare): New pattern.
7397         (rrx): New pattern.
7398         * config/arm/unspecs.md (UNSPEC_RRX): New.
7400 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7402         * config/arm/arm.md (negdi_extendsidi): New pattern.
7403         (negdi_zero_extendsidi): Likewise.
7405 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7407         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
7408         define_insn_and_split.
7409         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
7410         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
7412 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7414         * config/arm/arm.md (arm_subdi3): Convert define_insn into
7415         define_insn_and_split.
7416         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
7417         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
7419 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7421         * config/arm/arm.md (subsi3_carryin): New pattern.
7422         (subsi3_carryin_const): Likewise.
7423         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
7424         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
7426 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7428         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
7430 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7432         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
7433         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
7435 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7437         * config/arm/arm.c (arm_expand_builtin): Change fcode
7438         type to unsigned int.
7440 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7442         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
7444 2013-04-04  Ian Lance Taylor  <iant@google.com>
7446         * doc/standards.texi (Standards): The Go frontend supports the Go 1
7447         language standard.
7449 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
7451         PR middle-end/56729
7452         * df-scan.c (df_insn_delete): Disable failing assert.
7454 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7456         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
7457         New function prototype.
7458         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
7459         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
7460         (arm_builtin_vectorized_function): New function.
7462 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7464         * config/arm/arm_neon_builtins.def: New file.
7465         * config/arm/arm.c (neon_builtin_data): Move contents to
7466         arm_neon_builtins.def.
7467         (enum arm_builtins): Include neon builtin definitions.
7468         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
7469         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
7471 2013-04-04  Marek Polacek  <polacek@redhat.com>
7473         PR tree-optimization/48186
7474         * predict.c (maybe_hot_frequency_p): Return false if
7475         HOT_BB_FREQUENCY_FRACTION is 0.
7476         (cgraph_maybe_hot_edge_p): Likewise.
7478 2013-04-04  Richard Biener  <rguenther@suse.de>
7480         PR tree-optimization/56826
7481         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
7482         more accurately.
7484 2013-04-04  Richard Biener  <rguenther@suse.de>
7486         PR tree-optimization/56213
7487         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
7488         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
7490 2013-04-04  Richard Biener  <rguenther@suse.de>
7492         PR tree-optimization/56837
7493         * tree-loop-distribution.c (classify_partition): For non-zero
7494         values require that the value has the same precision as its
7495         mode to be useful as memset value.
7497 2013-04-03  Nick Clifton  <nickc@redhat.com>
7499         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
7500         (fmssf4): Use fmsf.s on E3V5 architectures.
7501         (fnmasf4): Use fnmaf.s on E3V5 architectures.
7502         (fnmssf4): Use fnmsf.s on E3V5 architectures.
7504 2013-04-03  Jeff Law  <law@redhat.com>
7506         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
7507         (lra-eliminations.o): Likewise.
7509 2013-04-03  Teresa Johnson  <tejohnson@google.com>
7511         * gcov-io.c (compute_working_sets): Moved most of body of old
7512         compute_working_sets here from profile.c.
7513         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
7514         (gcov_working_set_t): Moved typedef here from basic-block.h
7515         (compute_working_set): Declare.
7516         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
7517         (get_working_sets): Renamed from compute_working_set,
7518         replace most of body with call to new compute_working_sets.
7519         (get_exec_counts): Replace call to compute_working_sets
7520         to get_working_sets.
7521         * profile.h (get_working_sets): Renamed from compute_working_set.
7522         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
7523         to get_working_sets.
7524         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
7525         * gcov-dump.c (dump_working_sets): New function.
7527 2013-04-03  Kenneth Zadeck <zadeck@naturalbridge.com>
7529         * hwint.c (sext_hwi, zext_hwi): New functions.
7530         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
7531         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
7532         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
7533         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
7534         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
7535         (sext_hwi, zext_hwi): New functions.
7537 2013-04-03  Jeff Law  <law@redhat.com>
7539         PR tree-optimization/56799
7540         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
7541         back test for widening conversion erroneously dropped in prior change.
7543 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7545         PR target/56809
7546         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
7547         instead of next_real_insn.
7549 2013-04-03  Marek Polacek  <polacek@redhat.com>
7551         PR sanitizer/55702
7552         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
7554 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7556         PR target/56809
7557         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
7558         next_real_insn.
7559         (thumb1_output_casesi): Likewise.
7560         (thumb2_output_casesi): Likewise.
7562 2013-04-03  Richard Biener  <rguenther@suse.de>
7564         PR tree-optimization/56817
7565         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
7566         Split out ...
7567         (tree_unroll_loops_completely_1): ... new function to manually
7568         walk the loop tree, properly defering outer loops of unrolled
7569         loops to later iterations.
7571 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
7573         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
7574         (vectorizable_load): Likewise.
7575         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
7576         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
7578 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
7580         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
7581         BIT_FIELD_REF.
7583 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7585         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
7587 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
7589         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
7591 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
7593         PR tree-optimization/56790
7594         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
7595         folding.
7597 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
7599         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
7600         Handle VEC_MERGE.
7601         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
7602         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
7603         equal arguments.
7605 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
7607         PR c/19449
7608         * tree.h (force_folding_builtin_constant_p): New decl.
7609         * builtins.c (force_folding_builtin_constant_p): New variable.
7610         (fold_builtin_constant_p): Fold immediately also if
7611         force_folding_builtin_constant_p.
7613 2013-04-03  Richard Biener  <rguenther@suse.de>
7615         PR tree-optimization/56812
7616         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
7617         DRs of the same interleaving chain are independent.
7619 2013-04-02  Jason Merrill  <jason@redhat.com>
7621         * gdbinit.in (pbb): Use debug fn.
7623 2013-04-02  Lawrence Crowl  <crowl@google.com>
7625         * sese.h (struct ivtype_map_elt_s): Remove unused.
7626         (extern debug_ivtype_map): Remove unused.
7627         (extern eq_ivtype_map_elts): Remove unused.
7628         * sese.c (debug_ivtype_map): Removed unused.
7629         (debug_ivtype_map_1): Removed unused.
7630         (debug_ivtype_elt): Remove unused.
7631         (eq_ivtype_map_elts): Remove unused.
7634 2013-04-02  Kai Tietz  <ktietz@redhat.com>
7636         PR target/52790
7637         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
7638         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
7639         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
7640         function.
7641         (legitimize_pe_coff_symbol): Likewise.
7642         (is_imported_p): New helper-function.
7643         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
7644         for Windows x64 targets.
7645         (ix86_expand_prologue): Optimize for pe-coff targets.
7646         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
7647         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
7648         medium/large code-model.
7649         (legitimize_pic_address): Likewise.
7650         (legitimize_tls_address): Likewise.
7651         (ix86_expand_call): Likewise.
7652         (x86_output_mi_thunk): Likewise.
7653         (get_dllimport_decl): Add new beimport argument.
7654         (construct_plt_address): Don't assert for x64 pe-coff targets.
7655         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
7656         targets.
7657         (SYMBOL_FLAG_STUBVAR): New macro.
7658         (SYMBOL_REF_STUBVAR_P): Likewise.
7659         * config/i386/winnt.c (stub_list): New structure.
7660         (stub_head): New local variable.
7661         (i386_pe_record_stub): New function.
7662         (i386_pe_file_end): Emit refptr-stubs.
7664 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
7666         PR rtl-optimization/56745
7667         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
7668         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
7670         PR c++/34949
7671         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
7672         and both of them are MEM_REFs, just compare first argument for
7673         equality and attempt to deal even with differing offsets.
7675         PR c++/34949
7676         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
7677         of gimple_clobber_p to be MEM_REF.
7678         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
7679         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
7680         after gimplification.
7681         * asan.c (get_mem_ref_of_assignment): Don't instrument
7682         gimple_clobber_p stmts.
7683         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
7684         gimple_clobber_p stmt if they have MEM_REF lhs and
7685         are dead because of another gimple_clobber_p stmt.
7686         * tree-ssa-live.c (clear_unused_block_pointer): Treat
7687         gimple_clobber_p stmts like debug stmts.
7688         (remove_unused_locals): Remove clobbers with MEM_REF lhs
7689         that refer to unused VAR_DECLs or uninitialized values.
7690         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
7691         gimple_clobber_p stmts if they refer to removed parameters.
7692         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
7693         formatting.
7695 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
7697         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
7698         using SWI48 mode attribute.
7700 2013-04-02  Wei Mi  <wmi@google.com>
7702         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
7703         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
7704         *<rotate_insn><mode>3_mask in i386.md.
7706 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7708         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
7710 2013-04-02  Richard Biener  <rguenther@suse.de>
7712         PR tree-optimization/56778
7713         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
7714         Runtime alias tests are not supported for gather loads.
7715         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
7716         stmts referenced from SSA operands before updating SSA form.
7718 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
7719             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7721         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
7722         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
7723         * config/arm/cortex-a53.md: New file.
7724         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
7725         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
7726         * config/arm/arm.c (arm_issue_rate): Likewise.
7727         * config/arm/arm-tune.md: Regenerate
7728         * config/arm/arm-tables.opt: Regenerate.
7729         * config/arm/arm-cores.def: Add cortex-a53.
7731 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
7733         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
7734         non-static link.
7736 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
7738         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
7739         scalar load/store operations using B/H registers.
7740         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
7742 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
7744         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
7745         scalar move.
7746         * config/aarch64/aarch64.c
7747         (aarch64_simd_scalar_immediate_valid_for_move): New.
7748         * config/aarch64/aarch64-protos.h
7749         (aarch64_simd_scalar_immediate_valid_for_move): New.
7750         * config/aarch64/constraints.md (Dh, Dq): New.
7751         * config/aarch64/iterators.md (hq): New.
7753 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
7755         * reorg.c (get_branch_condition): Deal with conditional returns.
7756         (fill_simple_delay_slots): Remove dead code dealing with jumps.
7758 2013-04-01  Wei Mi  <wmi@google.com>
7760         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
7761         Truncate operand 2 using %b asm operand modifier.
7762         (*<shift_insn><mode>3_mask): Ditto.
7763         (*<rotate_insn><mode>3_mask): Ditto.
7765 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
7767         PR middle-end/56798
7768         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
7770 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
7772         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
7773         of next_real_insn.
7774         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
7776 2013-03-30  Lawrence Crowl  <crowl@google.com>
7778         * dse.c (clear_alias_sets): Remove never set.
7779         (disqualified_clear_alias_sets): Remove never set.
7780         (clear_alias_mode_pool): Remove never set.
7781         (dse_step0): Remove condition that is never true.
7782         (canon_address): Remove condition that is never true.
7783         (dse_step7): Remove condition that is never true.
7784         (rest_of_handle_dse): Remove condition that is never true.
7785         (rest_of_handle_dse::did_global): Remove never read from above.
7786         (dse_step2_spill): Remove never called from above.
7787         (dse_step5_spill): Remove never called from above.
7789 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
7791         * doc/md.texi (Standard Names) <casesi>: Update documentation for
7792         JUMP_TABLE_DATA changes.
7793         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
7794         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
7795         (Insns) <jump_table_data>: New entry.
7796         * doc/tm.texi: Regenerate.
7798         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
7800         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
7801         for table jump at the end of a basic block using tablejump_p.
7802         * targhooks.c (default_invalid_within_doloop): Likewise.
7803         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
7804         target hook implementation that is identical to the default hook.
7805         (rs6000_invalid_within_doloop): Remove.
7807         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
7808         unused variable from tablejump_p call.
7810         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
7811         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
7812         (INSN_DELETED_P): Likewise.
7813         (emit_jump_table_data): New prototype.
7814         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
7815         after 4th as unused.
7816         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
7817         * sched-vis.c (print_insn): Likewise.
7818         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
7819         insn for compatibility with back ends that use next_active_insn to
7820         identify jump table data.
7821         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
7822         (remove_insn): Likewise.
7823         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
7824         to be emitted.
7825         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
7826         (emit_jump_table_data): New function.
7828         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
7829         basic block, a JUMP_TABLE_DATA never is.
7830         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
7831         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
7832         off from code handling real insns.
7833         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
7834         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
7835         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
7836         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
7837         is not a NONDEBUG_INSN_P.
7838         * ira-costs.c (scan_one_insn): Likewise.
7839         * jump.c (mark_all_labels): Likewise.
7840         (mark_jump_label_1): Likewise.
7841         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
7842         * lra.c (get_insn_freq): Expect all insns reaching here to be in
7843         a basic block.
7844         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
7845         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
7846         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
7847         JUMP_TABLE_DATA_P insns.
7848         (calculate_elim_costs_all_insns): Likewise.
7849         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
7850         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
7851         (delete_output_reload): Code style fixups.
7852         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
7853         insn flags on this non-insn.
7854         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
7855         as scheduling barriers, for pre-change compatibility.
7856         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
7857         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
7859         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
7860         redundant JUMP_TABLE_DATA_P test.
7861         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
7862         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
7863         (frv_for_each_packet): Likewise.
7864         * config/i386/i386.c (min_insn_size): Likewise.
7865         (ix86_avoid_jump_mispredicts): Likewise.
7866         * config/m32r/m32r.c (m32r_is_insn): Likewise.
7867         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
7868         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
7869         (mips16_insn_length): Robustify.
7870         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
7871         (mips16_split_long_branches): Likewise.
7872         * config/pa/pa.c (pa_combine_instructions): Likewise.
7873         * config/rs6000/rs6000.c (get_next_active_insn): Treat
7874         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
7875         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
7876         as contributing to pool range lengths.
7877         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
7878         Remove redundant JUMP_TABLE_DATA_P test.
7879         (sh_loop_align): Likewise.
7880         (split_branches): Likewise.
7881         (sh_insn_length_adjustment): Likewise.
7882         * config/spu/spu.c (get_branch_target): Likewise.
7884 2013-03-29  Jan Hubicka  <jh@suse.cz>
7886         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
7887         gcov streaming; stream hot bb threshold to ltrans.
7888         * predict.c (get_hot_bb_threshold): Break out from ....
7889         (maybe_hot_count_p): ... here.
7890         (set_hot_bb_threshold): New function.
7891         * lto-section-in.c (lto_section_name): Add profile.
7892         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
7893         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
7894         and data-streamer.h
7895         (histogram_entry): New structure.
7896         (histogram, histogram_pool): New global vars.
7897         (histogram_hash): New structure.
7898         (histogram_hash::hash): New method.
7899         (histogram_hash::equal): Likewise.
7900         (account_time_size): New function.
7901         (cmp_counts): New function.
7902         (dump_histogram): New function.
7903         (ipa_profile_generate_summary): New function.
7904         (ipa_profile_write_summary): New function.
7905         (ipa_profile_read_summary): New function.
7906         (ipa_profile): Decide on threshold.
7907         (pass_ipa_profile): Add ipa_profile_write_summary and
7908         ipa_profile_read_summary.
7909         * Makefile.in (ipa.o): Update dependencies.
7910         * lto-streamer.h (LTO_section_ipa_profile): New section.
7912 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7914         * tree.h (VAR_P): New.
7916 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
7918         PR lto/56777
7919         * doc/invoke.texi ([-fwhole-program]): Fix typo.
7921 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
7923         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
7924         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
7925         (control_flow_insn_p): Likewise.
7926         * cfgrtl.c (duplicate_insn_chain): Likewise.
7927         * final.c (get_attr_length_1): Likewise.
7928         (shorten_branches): Likewise.
7929         (final_scan_insn): Likewise.
7930         * function.c (instantiate_virtual_regs): Likewise.
7931         * gcse.c (insert_insn_end_basic_block): Likewise.
7932         * ira-costs.c (scan_one_insn): Likewise.
7933         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
7934         * lra.c (check_rtl): Likewise.
7935         * reload1.c (elimination_costs_in_insn): Likewise.
7936         * reorg.c (follow_jumps): Likewise.
7938         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
7939         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
7940         (thumb_far_jump_used_p): Likewise.
7941         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
7942         (workaround_speculation): Likewise.
7943         (add_sched_insns_for_speculation): Likewise.
7944         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
7945         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
7946         (frv_for_each_packet): Likewise.
7947         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
7948         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
7949         (final_emit_insn_group_barriers): Likewise.
7950         * config/m32r/m32r.c (m32r_is_insn): Likewise.
7951         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
7952         (mips16_insn_length): Likewise.
7953         * config/pa/pa.c (pa_reorg): Likewise.
7954         (pa_combine_instructions): Likewise.
7955         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
7956         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
7957         (sh_reorg): Likewise.
7958         (split_branches): Likewise.
7959         * config/spu/spu.c (get_branch_target): Likewise.
7961         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
7962         JUMP_TABLE_DATA_P.
7964 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
7966         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
7967         Fix declaration name.
7969 2013-03-28  Lawrence Crowl  <crowl@google.com>
7971         * graphds.h (struct graph.indicies): Remove unused.
7972         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
7973         (SCOP_ORIGINAL_PDDRS): Remove unused.
7974         * sese.h (extern insert_loop_close_phis): Removed unused.
7975         (extern insert_guard_phis): Removed unused.
7976         (extern ivtype_map_elt_info): Removed unused.
7977         (new_ivtype_map_elt): Removed unused.
7978         * sese.c (ivtype_map_elt_info): Removed unused.
7980 2013-03-28  Lawrence Crowl  <crowl@google.com>
7982         * Makefile.in: Add several missing include dependences.
7983         (DUMPFILE_H): New.
7984         (test-dump.o): New.  This object is not added to any executable,
7985         but is present for ad-hoc testing.
7986         * bitmap.c
7987         (debug (const bitmap_head_def &)): New.
7988         (debug (const bitmap_head_def *)): New.
7989         * bitmap.h
7990         (extern debug (const bitmap_head_def &)): New.
7991         (extern debug (const bitmap_head_def *)): New.
7992         * cfg.c
7993         (debug (edge_def &)): New.
7994         (debug (edge_def *)): New.
7995         * cfghooks.c
7996         (debug (basic_block_def &)): New.
7997         (debug (basic_block_def *)): New.
7998         * dumpfile.h
7999         (dump_node (const_tree, int, FILE *)): Correct source file.
8000         * dwarf2out.c
8001         (debug (die_struct &)): New.
8002         (debug (die_struct *)): New.
8003         * dwarf2out.h
8004         (extern debug (die_struct &)): New.
8005         (extern debug (die_struct *)): New.
8006         * gimple-pretty-print.c
8007         (debug (gimple_statement_d &)): New.
8008         (debug (gimple_statement_d *)): New.
8009         * gimple-pretty-print.h
8010         (extern debug (gimple_statement_d &)): New.
8011         (extern debug (gimple_statement_d *)): New.
8012         * ira-build.c
8013         (debug (ira_allocno_copy &)): New.
8014         (debug (ira_allocno_copy *)): New.
8015         (debug (ira_allocno &)): New.
8016         (debug (ira_allocno *)): New.
8017         * ira-int.h
8018         (extern debug (ira_allocno_copy &)): New.
8019         (extern debug (ira_allocno_copy *)): New.
8020         (extern debug (ira_allocno &)): New.
8021         (extern debug (ira_allocno *)): New.
8022         * ira-lives.c
8023         (debug (live_range &)): New.
8024         (debug (live_range *)): New.
8025         * lra-int.h
8026         (debug (lra_live_range &)): New.
8027         (debug (lra_live_range *)): New.
8028         * lra-lives.c
8029         (debug (lra_live_range &)): New.
8030         (debug (lra_live_range *)): New.
8031         * omega.c
8032         (debug (omega_pb_d &)): New.
8033         (debug (omega_pb_d *)): New.
8034         * omega.h
8035         (extern debug (omega_pb_d &)): New.
8036         (extern debug (omega_pb_d *)): New.
8037         * print-rtl.c
8038         (debug (const rtx_def &)): New.
8039         (debug (const rtx_def *)): New.
8040         * print-tree.c
8041         (debug_tree (tree): Move within file.
8042         (debug_raw (const tree_node &)): New.
8043         (debug_raw (const tree_node *)): New.
8044         (dump_tree_via_hooks (const tree_node *, int)): New.
8045         (debug (const tree_node &)): New.
8046         (debug (const tree_node *)): New.
8047         (debug_verbose (const tree_node &)): New.
8048         (debug_verbose (const tree_node *)): New.
8049         (debug_head (const tree_node &)): New.
8050         (debug_head (const tree_node *)): New.
8051         (debug_body (const tree_node &)): New.
8052         (debug_body (const tree_node *)): New.
8053         (debug_vec_tree (tree): Move and reimplement in terms of dump.
8054         (debug (vec<tree, va_gc> &)): New.
8055         (debug (vec<tree, va_gc> *)): New.
8056         * rtl.h
8057         (extern debug (const rtx_def &)): New.
8058         (extern debug (const rtx_def *)): New.
8059         * sbitmap.c
8060         (debug_raw (simple_bitmap_def &)): New.
8061         (debug_raw (simple_bitmap_def *)): New.
8062         (debug (simple_bitmap_def &)): New.
8063         (debug (simple_bitmap_def *)): New.
8064         * sbitmap.h
8065         (extern debug (simple_bitmap_def &)): New.
8066         (extern debug (simple_bitmap_def *)): New.
8067         (extern debug_raw (simple_bitmap_def &)): New.
8068         (extern debug_raw (simple_bitmap_def *)): New.
8069         * sel-sched-dump.c
8070         (debug (vinsn_def &)): New.
8071         (debug (vinsn_def *)): New.
8072         (debug_verbose (vinsn_def &)): New.
8073         (debug_verbose (vinsn_def *)): New.
8074         (debug (expr_def &)): New.
8075         (debug (expr_def *)): New.
8076         (debug_verbose (expr_def &)): New.
8077         (debug_verbose (expr_def *)): New.
8078         (debug (vec<rtx> &)): New.
8079         (debug (vec<rtx> *)): New.
8080         * sel-sched-dump.h
8081         (extern debug (vinsn_def &)): New.
8082         (extern debug (vinsn_def *)): New.
8083         (extern debug_verbose (vinsn_def &)): New.
8084         (extern debug_verbose (vinsn_def *)): New.
8085         (extern debug (expr_def &)): New.
8086         (extern debug (expr_def *)): New.
8087         (extern debug_verbose (expr_def &)): New.
8088         (extern debug_verbose (expr_def *)): New.
8089         (extern debug (vec<rtx> &)): New.
8090         (extern debug (vec<rtx> *)): New.
8091         * sel-sched-ir.h
8092         (_list_iter_cond_expr): Make inline instead of static.
8093         * sreal.c
8094         (debug (sreal &)): New.
8095         (debug (sreal *)): New.
8096         * sreal.h
8097         (extern debug (sreal &)): New.
8098         (extern debug (sreal *)): New.
8099         * tree.h
8100         (extern debug_raw (const tree_node &)): New.
8101         (extern debug_raw (const tree_node *)): New.
8102         (extern debug (const tree_node &)): New.
8103         (extern debug (const tree_node *)): New.
8104         (extern debug_verbose (const tree_node &)): New.
8105         (extern debug_verbose (const tree_node *)): New.
8106         (extern debug_head (const tree_node &)): New.
8107         (extern debug_head (const tree_node *)): New.
8108         (extern debug_body (const tree_node &)): New.
8109         (extern debug_body (const tree_node *)): New.
8110         (extern debug (vec<tree, va_gc> &)): New.
8111         (extern debug (vec<tree, va_gc> *)): New.
8112         * tree-cfg.c
8113         (debug (struct loop &)): New.
8114         (debug (struct loop *)): New.
8115         (debug_verbose (struct loop &)): New.
8116         (debug_verbose (struct loop *)): New.
8117         * tree-dump.c: Add header dependence.
8118         * tree-flow.h
8119         (extern debug (struct loop &)): New.
8120         (extern debug (struct loop *)): New.
8121         (extern debug_verbose (struct loop &)): New.
8122         (extern debug_verbose (struct loop *)): New.
8123         * tree-data-ref.c
8124         (debug (data_reference &)): New.
8125         (debug (data_reference *)): New.
8126         (debug (vec<data_reference_p> &)): New.
8127         (debug (vec<data_reference_p> *)): New.
8128         (debug (vec<ddr_p> &)): New.
8129         (debug (vec<ddr_p> *)): New.
8130         * tree-data-ref.h
8131         (extern debug (data_reference &)): New.
8132         (extern debug (data_reference *)): New.
8133         (extern debug (vec<data_reference_p> &)): New.
8134         (extern debug (vec<data_reference_p> *)): New.
8135         (extern debug (vec<ddr_p> &)): New.
8136         (extern debug (vec<ddr_p> *)): New.
8137         * tree-ssa-alias.c
8138         (debug (pt_solution &)): New.
8139         (debug (pt_solution *)): New.
8140         * tree-ssa-alias.h
8141         (extern debug (pt_solution &)): New.
8142         (extern debug (pt_solution *)): New.
8143         * tree-ssa-alias.c
8144         (debug (_var_map &)): New.
8145         (debug (_var_map *)): New.
8146         (debug (tree_live_info_d &)): New.
8147         (debug (tree_live_info_d *)): New.
8148         * tree-ssa-alias.h
8149         (extern debug (_var_map &)): New.
8150         (extern debug (_var_map *)): New.
8151         (extern debug (tree_live_info_d &)): New.
8152         (extern debug (tree_live_info_d *)): New.
8154 2013-03-28  Jan Hubicka  <jh@suse.cz>
8156         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
8158 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
8160         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
8161         record only when desired or required.
8163 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
8165         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
8166         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
8168 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8170         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
8171         (*andsi3_compare0_uxtw): New pattern.
8172         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
8173         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
8175 2013-03-28  Jan Hubicka  <jh@suse.cz>
8177         * data-streamer-in.c (streamer_read_gcov_count): New function.
8178         * gimple-streamer-out.c: Include value-prof.h.
8179         (output_gimple_stmt): Output histogram.
8180         (output_bb): Use streamer_write_gcov_count.
8181         * value-prof.c: Include data-streamer.h
8182         (dump_histogram_value): Add HIST_TYPE_MAX.
8183         (stream_out_histogram_value): New function.
8184         (stream_in_histogram_value): New function.
8185         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
8186         (stream_out_histogram_value, stream_in_histogram_value): Declare.
8187         * data-streamer-out.c (streamer_write_gcov_count): New function.
8188         (streamer_write_gcov_count_stream): New function.
8189         * lto-cgraph.c (lto_output_edge): Update counter streaming.
8190         (lto_output_node): Likewise.
8191         (input_node, input_edge): Likewise.
8192         * lto-streamer-out.c (output_cfg): Update streaming.
8193         * lto-streamer-in.c (input_cfg): Likewise.
8194         * data-streamer.h (streamer_write_gcov_count,
8195         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
8196         * gimple-streamer-in.c: Include value-prof.h
8197         (input_gimple_stmt): Input histograms.
8198         (input_bb): Update profile streaming.
8200 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
8202         * genmodes.c (emit_max_int): New function.
8203         (emit_insn_modes_h): Added call to emit_max_function.
8204         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
8205         Added doc.
8206         * machmode.def: Fixed comment.
8208 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
8210         * combine.c (try_combine): Removed useless assert.
8211         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
8213 2013-03-28  Marek Polacek  <polacek@redhat.com>
8214             Richard Biener  <rguenther@suse.de>
8216         PR tree-optimization/56695
8217         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
8218         build signed result of a vector comparison.
8219         * tree-cfg.c (verify_gimple_comparison): Check that a result
8220         of a vector comparison has signed type.
8222 2013-03-28  Richard Biener  <rguenther@suse.de>
8224         PR tree-optimization/37021
8225         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
8226         do not restrict gaps between groups.
8227         * tree-vect-stmts.c (vectorizable_load): Properly account for
8228         a gap between groups.
8230 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
8232         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
8233         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
8234         is not enabled.
8236 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
8238         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
8239         * doc/extend.texi (Named Address Spaces): Ditto.
8240         (Variable Attributes): Ditto.
8242 2013-03-27  Kai Tietz  <ktietz@redhat.com>
8244         * config.build: Add support for cygwin x64 target.
8245         * config.gcc: Likewise.
8246         * config.host: Likewise.
8247         * configure.ac: Likewise
8248         * configure: Regenerated.
8250 2013-03-27 Kai Tietz  <ktietz@redhat.com>
8252         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
8253         * config/i386/t-cygwin-w64: New file.
8254         * config/i386/cygwin-w64.h: New file.
8255         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
8256         and add support for x64-cygwin target.
8257         (CPP_SPEC): Likewise.
8258         (CXX_WRAP_SPEC_LIST): Undefine before define.
8259         (LIBGCJ_SONAME): Use 15 as version.
8261 2013-03-27  Richard Biener  <rguenther@suse.de>
8263         PR tree-optimization/56716
8264         * tree-ssa-structalias.c (perform_var_substitution): Adjust
8265         dumping for ref nodes.
8267 2013-03-27  Martin Jambor  <mjambor@suse.cz>
8269         PR tree-optimization/55334
8270         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
8271         restricted pointers to arrays.
8273 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8275         * Makefile.in (.SUFFIXES): Add .cc.
8276         (.c.o): Apply same recipe for implicit rule .cc.o.
8278 2013-03-27  Richard Biener  <rguenther@suse.de>
8280         PR tree-optimization/37021
8281         * tree-vect-data-refs.c (vect_check_strided_load): Allow
8282         REALPART/IMAGPART_EXPRs around the supported refs.
8283         * tree-ssa-structalias.c (find_func_aliases): Assume that
8284         floating-point values are not used to transfer pointers.
8286 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8288         * target.def (TARGET_HAS_IFUNC_P): New target hook.
8289         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
8290         * doc/tm.texi: Regenerate.
8291         * targhooks.h (default_has_ifunc_p): New.
8292         * targhooks.c (default_has_ifunc_p): Ditto.
8293         * config/linux-protos.h: New file.
8294         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
8295         this hook for linux which disables support of indirect functions in
8296         android.
8297         * config/linux-android.c: New file.
8298         * config/t-linux-android.c: Ditto.
8299         * config.gcc: Added new object file linux-android.o.
8300         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
8301         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
8302         * varasm.c (do_assemble_alias): Likewise.
8303         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
8304         doesn't support indirect functions.
8305         * configure: Regenerate.
8307 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
8309         PR target/56102
8310         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
8311         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
8312         mult-word mode.
8314 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8316         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
8318 2013-03-27  Terry Guo  <terry.guo@arm.com>
8320         * config/arm/arm-cores.def: Added core cortex-r7.
8321         * config/arm/arm-tune.md: Regenerated.
8322         * config/arm/arm-tables.opt: Regenerated.
8323         * doc/invoke.texi: Added entry for core cortex-r7.
8325 2013-03-27  Walter Lee  <walt@tilera.com>
8327         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
8328         double-decrement of next_scratch_regno.
8330 2013-03-27  Walter Lee  <walt@tilera.com>
8332         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
8333         input operands.
8334         (insn_v1mulus): Ditto.
8335         (insn_v2muls): Ditto.
8337 2013-03-27  Walter Lee  <walt@tilera.com>
8339         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
8340         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
8342 2013-03-27  Walter Lee  <walt@tilera.com>
8344         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
8345         (*sibcall_value): Ditto.
8347 2013-03-27  Walter Lee  <walt@tilera.com>
8349         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
8350         (insn_mnz_v8qi): ... this ...
8351         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
8352         vector equivalent.
8353         (insn_v<n>mnz): Replaced by ...
8354         (insn_v1mnz): ... this ...
8355         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
8356         equivalent.
8357         (insn_mz_<mode>): Replaced by ...
8358         (insn_mz_v8qi): ... this ...
8359         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
8360         vector equivalent.
8361         (insn_v<n>mz): Replaced by ...
8362         (insn_v1mz): ... this ...
8363         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
8364         equivalent.
8366 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
8368         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
8370 2013-03-26  Roland McGrath  <mcgrathr@google.com>
8372         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
8373         than fprintf with a non-constant, non-format string.
8375 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
8377         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
8378         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
8379         operand 0 predicate.
8380         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
8381         attribute.  Use general_x64nomem_operand as operand 1 predicate.
8382         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
8383         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
8384         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
8385         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
8386         (mov<mode>_insv_1): Remove expander.  Merge insn with
8387         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
8388         Use general_x64nomem_operand as operand 1 predicate.
8389         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
8390         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
8391         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
8392         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
8393         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
8394         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
8395         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
8396         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
8397         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
8398         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
8399         (general_x64nomem_operand): Ditto.
8401 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
8403         * config/rtems.opt: Add -pthread option.
8405 2013-03-26  Richard Biener  <rguenther@suse.de>
8407         * alias.c (find_base_term): Avoid redundant and not used recursion.
8408         (base_alias_check): Get the initial base term from the caller.
8409         (true_dependence_1): Compute and pass base terms to base_alias_check.
8410         (write_dependence_p): Likewise.
8411         (may_alias_p): Likewise.
8413 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
8415         * config/aarch64/aarch64.c (aarch64_classify_address): Support
8416         PC-relative load in SI modes and above only.
8418 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
8420         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
8421         * config/arm/iwmmxt.md (WCGR0): Update.
8422         (WCGR1, WCGR2, WCGR3): Likewise.
8424 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
8426         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
8427         Use x64 and nox64 isa attributes.
8429 2013-03-26  Richard Biener  <rguenther@suse.de>
8431         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
8432         alignment computations and rely on get_object_alignment_1
8433         for the !TYPE_P case.
8434         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
8436 2013-03-26  Walter Lee  <walt@tilera.com>
8438         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
8439         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
8441 2013-03-25  Jeff Law  <law@redhat.com>
8443         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
8444         check for INTEGRAL_TYPE_P that was missing due to checking in
8445         wrong version of prior patch.
8447 2013-03-25  Walter Lee  <walt@tilera.com>
8449         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
8450         TILEGX_INSN_SHUFFLEBYTES1.
8451         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
8452         shufflebytes1.
8453         (tilegx_builtins): Ditto.
8454         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
8456 2013-03-25  Walter Lee  <walt@tilera.com>
8458         * config/tilegx/tilegx.md (floatsisf2): New pattern.
8459         (floatunssisf2): New pattern.
8460         (floatsidf2): New pattern.
8461         (floatunssidf2): New pattern.
8463 2013-03-25  Walter Lee  <walt@tilera.com>
8465         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
8466         tests for constraint J, K, N, P.
8468 2013-03-25  Walter Lee  <walt@tilera.com>
8470         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
8471         Use indirect/pcrel encoding.
8472         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
8473         Ditto.
8475 2013-03-25  Steve Ellcey  <sellcey@mips.com>
8477         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
8478         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
8479         * config/mips/mips.c (mips_option_override): Set IMADD default.
8480         * config/mips/mips.h (PTF_AVOID_IMADD): New.
8481         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
8482         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
8483         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
8484         * doc/invoke.texi (-mimadd/-mno-imadd): New.
8486 2013-03-25  Jeff Law  <law@redhat.com>
8488         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
8489         slightly to avoid creating and folding useless trees.  Simplify
8490         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
8492 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
8494         * config/i386/i386.md (*zero_extendsidi2): Merge with
8495         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
8496         * config/i386/predicates.md (x86_64_zext_operand): Rename from
8497         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
8498         targets.  Clarify comment.
8500 2013-03-25  Martin Jambor  <mjambor@suse.cz>
8502         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
8503         pass-through jump functions differently.
8504         (ipa_read_jump_function): Likewise.  Also use setter functions to set
8505         up jump functions.
8507 2013-03-25  Martin Jambor  <mjambor@suse.cz>
8509         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
8510         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
8511         process it.
8512         (ipa_get_indirect_edge_target): New function.
8513         (devirtualization_time_bonus): New parameter known_aggs, pass it to
8514         ipa_get_indirect_edge_target.  Update all callers.
8515         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
8516         ipa_get_indirect_edge_target_1 instead of calling
8517         ipa_get_indirect_edge_target.
8518         (create_specialized_node): Pass aggvlas to
8519         ipcp_discover_new_direct_edges.
8521 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8523         * config/arm/arm.md (f_sels, f_seld): New types.
8524         (*cmov<mode>): New pattern.
8525         * config/arm/predicates.md (arm_vsel_comparison_operator): New
8526         predicate.
8528 2013-03-25  Kai Tietz  <ktietz@redhat.com>
8530         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
8531         POSIX-printf for mingw-hosted  builds.
8533 2013-03-25  Richard Biener  <rguenther@suse.de>
8535         PR middle-end/56694
8536         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
8537         must-not-throw stmt location.
8539 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8541         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
8542         Emit load-acquire versions when acq is true.
8543         (arm_emit_store_exclusive): Add rel parameter.
8544         Emit store-release versions when rel is true.
8545         (arm_split_compare_and_swap): Use acquire-release instructions
8546         instead.
8547         of barriers when appropriate.
8548         (arm_split_atomic_op): Likewise.
8549         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
8550         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
8551         (VUNSPEC_SLX): Likewise.
8552         (VUNSPEC_LDA): Likewise.
8553         (VUNSPEC_STL): Likewise.
8554         * config/arm/sync.md (atomic_load<mode>): New pattern.
8555         (atomic_store<mode>): Likewise.
8556         (arm_load_acquire_exclusive<mode>): Likewise.
8557         (arm_load_acquire_exclusivesi): Likewise.
8558         (arm_load_acquire_exclusivedi): Likewise.
8559         (arm_store_release_exclusive<mode>): Likewise.
8561 2013-03-25  Catherine Moore  <clm@codesourcery.com>
8563         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
8564         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
8565         * config/mip/predicates.md (lwsp_swsp_operand,
8566         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
8567         sb16_operand, db4_operand, db7_operand, ib3_operand,
8568         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
8569         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
8570         andi16_operand): New predicates.
8571         * config/mips/mips.md (compression): New attribute.
8572         (enabled): New attribute.
8573         (length): Consider compression in computing length.
8574         (shift_compression): New code attribute.
8575         (*add<mode>3): New operands. Record compression.
8576         (sub<mode>3): Likewise.
8577         (one_cmpl<mode>2): Likewise.
8578         (*and<mode>3): Likewise.
8579         (*ior<mode>3): Likewise.
8580         (unnamed pattern for xor): Likewise.
8581         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
8582         (*<optab><mode>3): Likewise.
8583         (*mov<mode>_internal: Likewise.
8584         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
8585         (mips_unsigned_immediate_p): New.
8586         (umips_lwsp_swsp_address_p): New.
8587         (m16_based_address_p): New.
8588         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
8589         (mips_unsigned_immediate_p): New prototype.
8590         (lwsp_swsp_address_p): New prototype.
8591         (m16_based_address_p): New prototype.
8592         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
8593         (mips_signed_immediate_p): New function.
8594         (m16_based_address_p): New function.
8595         (lwsp_swsp_address_p): New function.
8596         (mips_print_operand_punctuation): Recognize short delay slot insns
8597         for microMIPS.add<mode>3"
8599 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8601         PR target/56720
8602         * config/arm/iterators.md (v_cmp_result): New mode attribute.
8603         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
8605 2013-03-25  Richard Biener  <rguenther@suse.de>
8607         PR tree-optimization/56689
8608         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
8609         any edge.
8611 2013-03-25  Richard Biener  <rguenther@suse.de>
8613         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
8614         of bitmap.
8615         (memory_references): Likewise.
8616         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
8617         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
8618         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
8619         (gather_mem_refs_in_loops): Fold into ...
8620         (analyze_memory_references): ... this.  Move initialization
8621         to tree_ssa_lim_initialize.
8622         (fill_always_executed_in): Rename to ...
8623         (fill_always_executed_in_1): ... this.
8624         (fill_always_executed_in): Move contains_call computation to
8625         this new function from ...
8626         (tree_ssa_lim_initialize): ... here.
8627         (tree_ssa_lim): Call fill_always_executed_in.
8629 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
8631         * postreload.c (reload_combine): Fix code detecting returns.
8633 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
8635         * function.c (emit_use_return_register_into_block): On cc0 targets,
8636         do not emit the sequence between cc0 setter and user.
8638 2013-03-25  Kai Tietz  <ktietz@redhat.com>
8640         * config/i386/predicates.md (local_symbolic_operand): Interpret
8641         dll-imported symbols as none-local.
8643 2013-03-25  Richard Biener  <rguenther@suse.de>
8645         * tree-ssa-loop-im.c (struct depend): Remove.
8646         (struct lim_aux_data): Make depends a vec of gimples.
8647         (free_lim_aux_data): Adjust.
8648         (add_dependency): Likewise.
8649         (set_level): Likewise.
8651 2013-03-25  Richard Biener  <rguenther@suse.de>
8653         PR middle-end/56434
8654         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
8655         the pointer returned by calls with ECF_MALLOC set.
8657 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
8659         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
8661 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
8663         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
8664         using MMXMODE mode iterator.
8665         (*move<mode>_internal): Merge with *movv2sf_internal and
8666         *movv2sf_internal_rex64 using MMXMODE mode iterator.
8668 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
8670         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
8671         (record_last_mem_set_info): Likewise.
8673         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
8674         of XNEWVEC followed by memset.
8675         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
8677 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
8679         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
8680         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
8681         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
8682         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
8683         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
8684         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
8685         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
8686         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
8687         BARRIER_P instead of GET_CODE.
8689 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
8691         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
8692         inaccuracy in the probing code.
8694         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
8695         (ctrapdi4): Likewise.
8697 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
8699         * calls.c (expand_call): Add missing guard to code handling return
8700         of non-BLKmode structures in MSB.
8701         * function.c (expand_function_end): Likewise.
8703 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
8705         * combine.c (try_combine): Adjust comment.  Do not add the set of
8706         insn #0 if the destination indirectly is set or dies in insn #2.
8707         Tidy up code to distribute a new note.
8709 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
8711         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
8712         also for alternatives 16 and 17.
8714 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
8716         * config/i386/sse.md (*mov<mode>_internal): Merge with
8717         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
8718         Emit insn template depending on type attribute.  Use
8719         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
8720         movd instead of movq mnemonic for interunit moves.  Rewrite mode
8721         attribute calculation.  Remove unit attribute calculation.
8722         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
8723         Set prefix_data16 attribute for DImode ssemov types.
8724         Use Ym instead of y for SSE-MMX conversion alternatives.
8725         Reorder operand constraints.
8727 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
8729         * df.h (df_insn_delete): Adjust prototype.
8730         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
8731         and let it decide whether mark the basic block dirty.
8732         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
8733         * df-scan.c (df_insn_info_delete): New helper function, split
8734         off from df_insn_delete.
8735         (df_scan_free_bb_info): Use it.
8736         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
8737         Likewise.
8738         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
8739         that the insn is actually an insn and it has a non-NULL basic block.
8740         Do not mark basic block dirty if only deleting a DEBUG_INSN.
8742 2013-03-22  Richard Biener  <rguenther@suse.de>
8744         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
8745         dep_ref members.
8746         (mem_ref_alloc): Do not allocate them.
8747         (refs_independent_p): Do not query or maintain a cache.
8749 2013-03-22  Richard Biener  <rguenther@suse.de>
8751         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
8752         (gather_mem_refs_in_loops): Do not compute it.
8753         (analyze_memory_references): Do not allocate it.
8754         (tree_ssa_lim_finalize): Do not free it.
8755         (for_all_locs_in_loop): Do not query all_refs_in_loop.
8757 2013-03-22  Richard Biener  <rguenther@suse.de>
8759         * is-a.h (as_a): Use gcc_checking_assert.
8761 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
8763         * config/aarch64/aarch64.c (aarch64_print_operand): New
8764         format specifier for printing a constant in hex.
8765         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
8766         format specifier for printing second operand.
8768 2013-03-22  Richard Biener  <rguenther@suse.de>
8770         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
8771         bitmaps.
8772         (gather_mem_refs_in_loops): Perform store accumulation here.
8773         (create_vop_ref_mapping_loop): Remove.
8774         (create_vop_ref_mapping): Likewise.
8775         (analyze_memory_references): Initialize refs_stored_in_loop.
8776         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
8777         (record_indep_loop): Remove.
8778         (record_dep_loop): New function.
8779         (ref_indep_loop_p_1): Adjust to only walk over references
8780         in the loop, not its subloops.
8781         (ref_indep_loop_p): Rename to ...
8782         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
8783         maintaining a more fine-grained cache.
8784         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
8785         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
8787 2013-03-22  Richard Biener  <rguenther@suse.de>
8789         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
8790         (struct mem_ref): Make accesses_in_loop a vec of a vec of
8791         aggregate mem_ref_loc.
8792         (free_mem_ref_locs): Inline into ...
8793         (memref_free): ... this and adjust.
8794         (mem_ref_alloc): Adjust.
8795         (mem_ref_locs_alloc): Remove.
8796         (record_mem_ref_loc): Adjust.
8797         (get_all_locs_in_loop): Rewrite into ...
8798         (for_all_locs_in_loop): ... this iterator.
8799         (rewrite_mem_ref_loc): New functor.
8800         (rewrite_mem_refs): Use for_all_locs_in_loop.
8801         (sm_set_flag_if_changed): New functor.
8802         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
8803         (ref_always_accessed): New functor.
8804         (ref_always_accessed_p): Use for_all_locs_in_loop.
8806 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
8808         * tree-pass.h (PROP_gimple_lvec): New.
8809         * passes.c (dump_properties): Handle PROP_gimple_lvec.
8810         (init_optimization_passes): Move pass_lower_vector.
8811         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
8812         PROP_gimple_lvec.
8813         (pass_lower_vector): Provide PROP_gimple_lvec.
8814         (pass_lower_vector_ssa): Likewise.
8815         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
8817 2013-03-21  Mark Wielaard  <mjw@redhat.com>
8819         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
8821 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
8823         * config/i386/i386.md (*movdi_internal): Disparage slightly
8824         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
8825         conversion alternatives.
8827 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
8829         PR middle-end/48087
8830         * diagnostic.def (DK_WERROR): New kind.
8831         * diagnostic.h (werrorcount): Define.
8832         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
8833         promoted to DK_ERROR, increment DK_WERROR counter instead of
8834         DK_ERROR counter.
8835         * toplev.c (toplev_main): Call print_ignored_options even if
8836         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
8837         even if just werrorcount is non-zero.
8839         PR debug/55608
8840         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
8841         on failure.
8842         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
8843         (string_cst_pool_decl): New function.
8844         (optimize_one_addr_into_implicit_ptr): New function.
8845         (resolve_addr_in_expr): Optimize DWARF location expression
8846         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
8847         which doesn't live in memory, but has DW_AT_location or
8848         DW_AT_const_value, or refers to a string literal, into
8849         DW_OP_GNU_implicit_pointer.
8850         (optimize_location_into_implicit_ptr): New function.
8851         (resolve_addr): If removing DW_AT_location of a variable because
8852         it was DW_OP_addr of address of the variable, but the variable doesn't
8853         live in memory, try to emit const value attribute for the initializer.
8855 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
8857         * tree.h (VECTOR_TYPE_P): New macro.
8858         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
8859         TYPE_MODE): Use it.
8860         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
8861         VEC_COND_EXPR cannot be lvalues.
8862         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
8864 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
8866         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
8867         Restrict the transformation to equal modes.
8869 2013-03-21  Richard Biener  <rguenther@suse.de>
8871         PR tree-optimization/39326
8872         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
8873         (MEM_ANALYZABLE): Adjust.
8874         (record_mem_ref_loc): Move bitmap ops ...
8875         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
8876         unanalyzable refs, do not record locations for it.
8877         (analyze_memory_references): Allocate ref zero as shared
8878         unanalyzable ref.
8879         (refs_independent_p): Do not test for unanalyzed mems here.
8880         (ref_indep_loop_p_1): Special-case disambiguation against
8881         the unanalyzed ref.
8882         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
8884 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
8886         * config/arm/arm-protos.h (tune_params): Add
8887         prefer_neon_for_64bits field.
8888         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
8889         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
8890         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
8891         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
8892         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
8893         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
8894         (arm_option_override): Handle -mneon-for-64bits new option.
8895         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
8896         (prefer_neon_for_64bits): Declare new variable.
8897         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
8898         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
8899         (arch_enabled): Handle new arch types. Remove support for onlya8
8900         and nota8.
8901         (one_cmpldi2): Use new arch names.
8902         (zero_extend<mode>di2, extend<mode>di2): Ditto.
8903         * config/arm/arm.opt (mneon-for-64bits): Add option.
8904         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
8905         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
8906         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
8907         of onlya8.
8908         * doc/invoke.texi (-mneon-for-64bits): Document.
8910 2013-03-21  Richard Biener  <rguenther@suse.de>
8912         PR tree-optimization/39326
8913         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
8914         (sort_bbs_in_loop_postorder_cmp): New function.
8915         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
8917 2013-03-21  Richard Biener  <rguenther@suse.de>
8919         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
8920         (vect_insert_into_interleaving_chain): Likewise.
8921         (vect_drs_dependent_in_basic_block): Inline ...
8922         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
8923         split out from ...
8924         (vect_analyze_data_ref_dependence): ... here.  Simplify.
8925         (vect_check_interleaving): Simplify.
8926         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
8927         (vect_slp_analyze_data_ref_dependences): ... this new function.
8928         (dr_group_sort_cmp): New function.
8929         (vect_analyze_data_ref_accesses): Compute data-reference groups
8930         here instead of in vect_analyze_data_ref_dependence.  Use
8931         a more efficient algorithm.
8932         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
8933         vect_slp_analyze_data_ref_dependences.  Call
8934         vect_analyze_data_ref_accesses earlier.
8935         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
8936         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
8937         (vect_slp_analyze_data_ref_dependences): New prototype.
8939 2013-03-21  Richard Biener  <rguenther@suse.de>
8941         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
8942         ref is stored in the loop.
8943         (find_refs_for_sm): Walk only over all stores.
8944         (store_motion_loop): Allocate from lim_bitmap_obstack.
8945         (store_motion): Likewise.
8947 2013-03-21  Richard Biener  <rguenther@suse.de>
8949         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
8950         Update virtual SSA form.
8952 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8954         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
8955         * configure: Regenerate.
8956         * config.in: Regenerate.
8957         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
8958         if !HAVE_LD_EH_FRAME_CIEV3.
8960 2013-03-21  Richard Biener  <rguenther@suse.de>
8962         * tree-cfg.c (verify_expr_no_block): New function.
8963         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
8964         nor DECL_VALUE_EXPR have locations with associated blocks.
8965         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
8966         (clear_unused_block_pointer): Remove code dealing with
8967         blocks in DECL_DEBUG_EXPR locations.
8969 2013-03-21  Richard Biener  <rguenther@suse.de>
8971         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
8972         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
8973         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
8974         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
8975         instead of DECL_DEBUG_EXPR_IS_FROM.
8976         * gimplify.c (gimplify_modify_expr): Likewise.
8977         * tree-cfg.c (verify_expr_location_1): Likewise.
8978         * tree-complex.c (create_one_component_var): Likewise.
8979         * tree-sra.c (create_access_replacement): Likewise.
8980         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
8981         (clear_unused_block_pointer): Likewise.
8982         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
8983         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
8984         * var-tracking.c (var_debug_decl): Likewise.
8985         (track_expr_p): Likewise.
8986         * tree-inline.c (add_local_variables): Likewise.  Set
8987         DECL_HAS_DEBUG_EXPR_P after copying it.
8988         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
8989         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
8991 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
8993         PR bootstrap/56656
8994         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
8995         * configure: Regenerate.
8996         * config.in: Regenerate.
8997         * config/i386/i386.md (*movdf_internal): Use
8998         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
8999         movd instead of movq mnemonic for interunit moves.
9000         (*movdi_internal): Ditto.
9002 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
9004         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
9005         (abd<mode>_3): New pattern.
9006         (aba<mode>_3): New pattern.
9007         (fabd<mode>_3): New pattern.
9009 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
9011         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
9012         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
9013         occurrence of REGISTER_PREFIX as its empty string.
9015 2013-03-20  Jeff Law  <law@redhat.com>
9017         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
9018         addititional equivalences for equality comparisons between an SSA_NAME
9019         and a constant where the SSA_NAME was set from a widening conversion.
9021 2013-03-20  Walter Lee  <walt@tilera.com>
9023         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
9025 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
9027         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
9028         depending on type attribute.
9029         (*movti_internal): Ditto.
9030         (*movtf_internal): Ditto.
9031         (*movxf_internal): Ditto.
9032         (*movdf_internal): Ditto.
9033         (*movsf_internal): Ditto.
9035 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
9037         * config/i386/i386.md (*movti_internal): Set prefix attribute to
9038         maybe_vex for sselog1 and ssemov types.
9039         (*movdi_internal): Reorder operand constraints.
9040         (*movsi_internal): Ditto.  Set prefix attribute to
9041         maybe_vex for sselog1 and ssemov types.
9042         (*movtf_internal): Set prefix attribute to maybe_vex
9043         for sselog1 and ssemov types.
9044         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
9045         DImode ssemov types.  Reorder operand constraints.
9046         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
9047         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
9048         attribute for SImode ssemov types.  Reorder operand constraints.
9050 2013-03-20  Martin Jambor  <mjambor@suse.cz>
9052         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
9053         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
9055 2013-03-20  Pat Haugen <pthaugen@us.ibm.com>
9057         * config/rs6000/predicates.md (indexed_address, update_address_mem
9058         update_indexed_address_mem): New predicates.
9059         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
9060         attribute for load/store instructions.
9061         * config/rs6000/dfp.md (movsd_store): Likewise.
9062         (movsd_load): Likewise.
9063         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
9064         (unnamed HI->DI extend define_insn): Likewise.
9065         (unnamed SI->DI extend define_insn): Likewise.
9066         (unnamed QI->SI extend define_insn): Likewise.
9067         (unnamed QI->HI extend define_insn): Likewise.
9068         (unnamed HI->SI extend define_insn): Likewise.
9069         (unnamed HI->SI extend define_insn): Likewise.
9070         (extendsfdf2_fpr): Likewise.
9071         (movsi_internal1): Likewise.
9072         (movsi_internal1_single): Likewise.
9073         (movhi_internal): Likewise.
9074         (movqi_internal): Likewise.
9075         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
9076         attribute for load/store instructions.
9077         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
9078         instructions.
9079         (mov<mode>_softfloat): Likewise.
9080         (mov<mode>_hardfloat32): Likewise.
9081         (mov<mode>_hardfloat64): Likewise.
9082         (mov<mode>_softfloat64): Likewise.
9083         (movdi_internal32): Likewise.
9084         (movdi_internal64): Likewise.
9085         (probe_stack_<mode>): Likewise.
9087 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
9089         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
9090         floating point, and decimal floating point to reload iterator.
9092         * config/rs6000/constraints.md (wl constraint): New constraints to
9093         return FLOAT_REGS if certain options are used to reduce the number
9094         of separate patterns that exist in the file.
9095         (wx constraint): Likewise.
9096         (wz constraint): Likewise.
9098         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
9099         -mdebug=reg, print wg, wl, wx, and wz constraints.
9100         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
9101         Initialize the reload functions for 64-bit binary/decimal floating
9102         point types.
9103         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
9104         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
9105         create the buffer on the stack to overcome not having a 32-bit
9106         load and store.
9107         (rs6000_emit_move): Likewise.
9108         (rs6000_secondary_memory_needed_rtx): Likewise.
9109         (rs6000_alloc_sdmode_stack_slot): Likewise.
9110         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
9111         via xxlxor, just like DFmode 0.0.
9113         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
9114         define as 1 if we are running on a power7 or newer.
9115         (enum r6000_reg_class_enum): Add new constraints.
9117         * config/rs6000/dfp.md (movsd): Delete, combine with binary
9118         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
9119         with other moves by using conditional constraits (wg).  Use LFIWZX
9120         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
9121         (movsd splitter): Likewise.
9122         (movsd_hardfloat): Likewise.
9123         (movsd_softfloat): Likewise.
9125         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
9126         binary and decimal floating point moves.
9127         (fmove_ok): New attributes to combine binary and decimal floating
9128         point moves, and to combine power6x (mfpgpr) moves along normal
9129         floating moves.
9130         (real_value_to_target): Likewise.
9131         (f32_lr): Likewise.
9132         (f32_lm): Likewise.
9133         (f32_li): Likewise.
9134         (f32_sr): Likewise.
9135         (f32_sm): Likewise.
9136         (f32_si): Likewise.
9137         (movsf): Combine binary and decimal floating point moves.  Combine
9138         power6x (mfpgpr) moves with other moves by using conditional
9139         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
9140         (mov<mode> for SFmode/SDmode); Likewise.
9141         (SFmode/SDmode splitters): Likewise.
9142         (movsf_hardfloat): Likewise.
9143         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
9144         (movsf_softfloat): Likewise.
9145         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
9147         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
9148         wx and wz constraints.
9150         * config/rs6000/constraints.md (wg constraint): New constraint to
9151         return FLOAT_REGS if -mmfpgpr (power6x) was used.
9153         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
9154         constraint.
9156         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
9157         -mdebug=reg, print wg, wl, wx, and wz constraints.
9158         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
9159         Initialize the reload functions for 64-bit binary/decimal floating
9160         point types.
9161         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
9162         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
9163         create the buffer on the stack to overcome not having a 32-bit
9164         load and store.
9165         (rs6000_emit_move): Likewise.
9166         (rs6000_secondary_memory_needed_rtx): Likewise.
9167         (rs6000_alloc_sdmode_stack_slot): Likewise.
9168         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
9169         via xxlxor, just like DFmode 0.0.
9171         * config/rs6000/dfp.md (movdd): Delete, combine with binary
9172         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
9173         with other moves by using conditional constraits (wg).  Use LFIWZX
9174         and STFIWX for loading SDmode on power7.
9175         (movdd splitters): Likewise.
9176         (movdd_hardfloat32): Likewise.
9177         (movdd_softfloat32): Likewise.
9178         (movdd_hardfloat64_mfpgpr): Likewise.
9179         (movdd_hardfloat64): Likewise.
9180         (movdd_softfloat64): Likewise.
9182         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
9183         64-bit binary and decimal floating point moves.
9184         (FMOVE64X): Likewise.
9185         (movdf): Combine 64-bit binary and decimal floating point moves.
9186         Combine power6x (mfpgpr) moves with other moves by using
9187         conditional constraits (wg).
9188         (mov<mode> for DFmode/DDmode): Likewise.
9189         (DFmode/DDmode splitters): Likewise.
9190         (movdf_hardfloat32): Likewise.
9191         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
9192         (movdf_softfloat32): Likewise.
9193         (movdf_hardfloat64_mfpgpr): Likewise.
9194         (movdf_hardfloat64): Likewise.
9195         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
9196         (movdf_softfloat64): Likewise.
9197         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
9198         (reload_<mode>_load): Move to later in the file so they aren't in
9199         the middle of the floating point move insns.
9200         (reload_<mode>_store): Likewise.
9202         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
9203         constraint.
9205         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
9206         constraint if -mdebug=reg.
9207         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
9208         Enable using dd reload support if needed.
9210         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
9211         binary and decimal floating point moves in rs6000.md.
9212         (movtd_internal): Likewise.
9214         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
9215         decimal floating point moves.
9216         (movtf): Likewise.
9217         (movtf_internal): Likewise.
9218         (mov<mode>_internal, TDmode/TFmode): Likewise.
9219         (movtf_softfloat): Likewise.
9220         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
9222         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
9223         movdi_internal64, using wg constraint for move direct operations.
9224         (movdi_internal64): Likewise.
9226         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
9227         MODES_TIEABLE_P for selected modes.  Print the numerical value of
9228         the various virtual registers. Use GPR/FPR first/last values,
9229         instead of hard coding the register numbers.  Print which modes
9230         have reload functions registered.
9231         (rs6000_option_override_internal): If -mdebug=reg, trace the options
9232         settings before/after setting cpu, target and subtarget settings.
9233         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
9234         and for secondary reload failures in rs6000_secondary_reload_inner.
9235         (rs6000_secondary_reload_fail): Likewise.
9236         (rs6000_secondary_reload_inner): Likewise.
9238         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
9239         macros for first/last GPR and FPR registers.
9240         (LAST_GPR_REGNO): Likewise.
9241         (FIRST_FPR_REGNO): Likewise.
9242         (LAST_FPR_REGNO): Likewise.
9244         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
9245         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
9246         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
9247         (vcond<mode><mode>): Likewise.
9248         (vcondu<mode><mode>): Likewise.
9249         (vector_gtu<mode>): Likewise.
9250         (vector_gte<mode>): Likewise.
9251         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
9252         to prevent the compiler from converting DImode operations to TImode.
9253         (ior<mode>3): Likewise.
9254         (and<mode>3): Likewise.
9255         (one_cmpl<mode>2): Likewise.
9256         (nor<mode>3): Likewise.
9257         (andc<mode>3): Likewise.
9259         * config/rs6000/constraints.md (wt constraint): New constraint
9260         that returns VSX_REGS if TImode is allowed in VSX registers.
9262         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
9263         constant under VSX.
9265         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
9266         similar to TImode, but it is restricted to being in the GPRs.
9268         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
9269         TImode to occupy a single VSX register.
9271         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
9272         -mvsx-timode for power7/power8.
9273         (power7 cpu): Likewise.
9274         (power8 cpu): Likewise.
9276         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
9277         sure that TFmode/TDmode take up two registers if they are ever
9278         allowed in the upper VSX registers.
9279         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
9280         registers.
9281         (rs6000_init_hard_regno_mode_ok): Likewise.
9282         (rs6000_debug_reg_global): Add debugging for PTImode and wt
9283         constraint.  Print if LRA is turned on.
9284         (rs6000_option_override_internal): Give an error if -mvsx-timode
9285         and VSX is not enabled.
9286         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
9287         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
9288         to reg+offset addressing.  Use PTImode when checking offset
9289         addresses for validity.
9290         (reg_offset_addressing_ok_p): Likewise.
9291         (rs6000_legitimate_offset_address_p): Likewise.
9292         (rs6000_legitimize_address): Likewise.
9293         (rs6000_legitimize_reload_address): Likewise.
9294         (rs6000_legitimate_address_p): Likewise.
9295         (rs6000_eliminate_indexed_memrefs): Likewise.
9296         (rs6000_emit_move): Likewise.
9297         (rs6000_secondary_reload): Likewise.
9298         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
9299         reloads to fpr registers to continue to use reg+offset addressing,
9300         but 64-bit reloads to altivec registers need reg+reg addressing.
9301         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
9302         it.  Treat LO_SUM like a PLUS operation.
9303         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
9304         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
9305         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
9306         registers to share a register with a smaller sized type, since VSX
9307         puts scalars in the upper 64-bits.
9308         (print_operand): Add support for PTImode.
9309         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
9310         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
9311         registers, but don't have arithmetic support.
9312         (rs6000_memory_move_cost): Add test for VSX.
9313         (rs6000_opt_masks): Add -mvsx-timode.
9315         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
9316         for TImode.
9317         (VSs): Likewise.
9318         (VSr): Use wt constraint for TImode.
9319         (VSv): Drop TImode support.
9320         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
9321         (vsx_movti_64bit): Likewise.
9322         (vsx_movti_32bit): Likewise.
9323         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
9324         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
9325         one '?' on the appropriate output constraint.  Do not allow TImode
9326         logical operations on 32-bit systems.
9327         (vsx_ior<mode>3): Likewise.
9328         (vsx_xor<mode>3): Likewise.
9329         (vsx_one_cmpl<mode>2): Likewise.
9330         (vsx_nor<mode>3): Likewise.
9331         (vsx_andc<mode>3): Likewise.
9332         (vsx_concat_<mode>): Likewise.
9333         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
9335         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
9336         OPTION_MASK_VSX_TIMODE.
9337         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
9338         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
9340         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
9341         (TI2 iterator): New iterator for TImode, PTImode.
9342         (wd mode attribute): Add values for vector types.
9343         (movti_string): Replace TI move operations with operations for TImode
9344         and PTImode.  Add support for TImode being allowed in VSX registers.
9345         (mov<mode>_string, TImode/PTImode): Likewise.
9346         (movti_ppc64): Likewise.
9347         (mov<mode>_ppc64, TImode/PTImode): Likewise.
9348         (TI mode splitters): Likewise.
9350         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
9351         constraint.
9353 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
9355         PR tree-optimization/56355
9356         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
9357         Also handle integers with undefined overflow.
9359 2013-03-20  Catherine Moore  <clm@codesourcery.com>
9360             Maciej W. Rozycki  <macro@codesourcery.com>
9361             Tom de Vries  <tom@codesourcery.com>
9362             Nathan Sidwell <nathan@codesourcery.com>
9363             Iain Sandoe  <iain@codesourcery.com>
9364             Nathan Froyd  <froydnj@codesourcery.com>
9365             Chao-ying Fu <fu@mips.com>
9367         * doc/extend.texi: (micromips, nomicromips, nocompression):
9368         Document new function attributes.
9369         * doc/invoke.texi (minterlink-compressed, mmicromips,
9370         m14k, m14ke, m14kec): Document new options.
9371         (minterlink-mips16): Update documentation.
9372         * doc/md.texi (ZC, ZD): Document new constraints.
9373         * configure.ac (gcc_cv_as_micromips): Check if linker
9374         supports the .set micromips directive.
9375         * configure: Regenerate.
9376         * config.in: Regenerate.
9377         * config/mips/mips-tables.opt: Regenerate.
9378         * config/mips/micromips.md: New file.
9379         * constraints.md (ZC, ZD): New constraints.
9380         * config/mips/predicates.md (movep_src_register): New predicate.
9381         (movep_src_operand): New predicate.
9382         (non_volatile_mem_operand): New predicate.
9383         * config/mips/mips.md (multimem): New type.
9384         (length): Differentiate between 17-bit and 18-bit branch offsets.
9385         (MOVEP1, MOVEP2): New mode iterator.
9386         (mov_<load>l): Use ZC constraint.
9387         (mov_<load>r): Likewise.
9388         (mov_<store>l): Likewise.
9389         (mov_<store>r): Likewise.
9390         (*branch_equality<mode>_inverted): Add microMIPS support.
9391         (*branch_equality<mode>): Likewise.
9392         (*jump_absolute): Likewise.
9393         (indirect_jump_<mode>): Likewise.
9394         (tablejump_<mode>): Likewise.
9395         (<optab>_internal): Likewise.
9396         (sibcall_internal): Likewise.
9397         (sibcall_value_internal): Likewise.
9398         (prefetch): Use constraint ZD.
9399         * config/mips/mips.opt (minterlink-compressed): New option.
9400         (minterlink-mips16): Now an alias for minterlink-compressed.
9401         (mmicromips): New option.
9402         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
9403         (compare_and_swap_12): Likewise.
9404         (sync_add<mode>): Likewise.
9405         (sync_<optab>_12): Likewise.
9406         (sync_old_<optab>_12): Likewise.
9407         (sync_new_<optab>_12): Likewise.
9408         (sync_nand_12): Likewise.
9409         (sync_old_nand_12): Likewise.
9410         (sync_new_nand_12): Likewise.
9411         (sync_sub<mode>): Likewise.
9412         (sync_old_add<mode>): Likewise.
9413         (sync_old_sub<mode>): Likewise.
9414         (sync_new_add<mode>): Likewise.
9415         (sync_new_sub<mode>): Likewise.
9416         (sync_<optab><mode>): Likewise.
9417         (sync_old_<optab><mode>): Likewise.
9418         (sync_new_<optab><mode>): Likewise.
9419         (sync_nand<mode>): Likewise.
9420         (sync_old_nand<mode>): Likewise.
9421         (sync_new_nand<mode>): Likewise.
9422         (sync_lock_test_and_set<mode>): Likewise.
9423         (test_and_set_12): Likewise.
9424         (atomic_compare_and_swap<mode>): Likewise.
9425         (atomic_exchange<mode>_llsc): Likewise.
9426         (atomic_fetch_add<mode>_llsc): Likewise.
9427         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
9428         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
9429         (umips_save_restore_pattern_p): Likewise.
9430         (umips_load_store_pair_p): Likewise.
9431         (umips_output_load_store_pair): Likewise.
9432         (umips_movep_target_p): Likewise.
9433         (umips_12bit_offset_address_p): Likewise.
9434         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
9435         (mips_base_mips16): Rename this...
9436         (mips_base_compression_flags): ...to this. Update all uses.
9437         (mips_attribute_table): Add micromips, nomicromips and nocompression.
9438         (mips_mips16_decl_p): Delete.
9439         (mips_nomips16_decl_p): Delete.
9440         (mips_get_compress_on_flags): New function.
9441         (mips_get_compress_off_flags): New function.
9442         (mips_get_compress_mode): New function.
9443         (mips_get_compress_on_name): New function.
9444         (mips_get_compress_off_name): New function.
9445         (mips_insert_attributes): Support multiple compression types.
9446         (mips_merge_decl_attributes): Likewise.
9447         (umips_12bit_offset_address_p): New function.
9448         (mips_start_function_definition): Emit .set micromips directive.
9449         (mips_call_may_need_jalx_p): New function.
9450         (mips_function_ok_for_sibcall): Add microMIPS support.
9451         (mips_print_operand_punctuation): Support short delay slots and
9452         compact jumps.
9453         (umips_swm_mask, umips_swm_encoding): New.
9454         (umips_build_save_restore): New function.
9455         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
9456         (was_mips16_p): Remove.
9457         (old_compression_mode): New.
9458         (mips_set_compression_mode): New function.
9459         (mips_set_current_function): Add microMIPS support.
9460         (mips_option_override): Likewise.
9461         (umips_save_restore_pattern_p): New function.
9462         (umips_output_save_restore): New function.
9463         (umips_load_store_pair_p_1): New function.
9464         (umips_load_store_pair_p): New function.
9465         (umips_output_load_store_pair_1): New function.
9466         (umips_output_load_store_pair): New function.
9467         (umips_movep_target_p) New function.
9468         (mips_prepare_pch_save): Add microMIPS support.
9469         * config/mips/mips.h (TARGET_COMPRESSION): New.
9470         (TARGET_CPU_CPP_BUILTINS): Update macro
9471         to use new compression flags and to support microMIPS.
9472         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
9473         (MIPS_ARCH_FLOAT_SPEC): Likewise.
9474         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
9475         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
9476         (ASM_SPEC): Support mmicromips and mno-micromips.
9477         (M16STORE_REG_P): New macro.
9478         (MIPS_CALL): Support TARGET_MICROMIPS.
9479         (MICROMIPS_J): New macro.
9480         (mips_base_mips16): Rename this...
9481         (mips_base_compression_flags): ...to this.
9482         (UMIPS_12BIT_OFFSET_P): New macro.
9483         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
9484         (MULTILIB_DIRNAMES): Likewise.
9485 2013-03-20  Richard Biener  <rguenther@suse.de>
9487         PR tree-optimization/56661
9488         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
9489         the result does not have to be distinct.
9491 2013-03-20  Richard Biener  <rguenther@suse.de>
9493         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
9494         remap_gimple_op_r.
9496 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9497             Steven Bosscher <steven@gcc.gnu.org>
9499         PR rtl-optimization/56605
9500         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
9502 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
9504         PR bootstrap/56656
9505         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
9506         that require movd instead of movq.
9508 2013-03-20  Richard Biener  <rguenther@suse.de>
9510         * tree-ssa-structalias.c (struct variable_info): Add pointer
9511         to the first field of an aggregate with sub-vars.  Make
9512         this and the pointer to the next subfield its ID.
9513         (vi_next): New function.
9514         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
9515         storedanything_id, integer_id): Increment by one.
9516         (new_var_info, get_call_vi, lookup_call_clobber_vi,
9517         get_call_clobber_vi): Adjust.
9518         (solution_set_expand): Simplify and speedup.
9519         (solution_set_add): Inline into ...
9520         (set_union_with_increment): ... this.  Adjust accordingly.
9521         (do_sd_constraint): Likewise.
9522         (do_ds_constraint): Likewise.
9523         (do_complex_constraint): Simplify.
9524         (build_pred_graph): Adjust.
9525         (solve_graph): Likewise.  Simplify and speedup.
9526         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
9527         get_constraint_for_component_ref, get_constraint_for_1,
9528         first_vi_for_offset, first_or_preceding_vi_for_offset,
9529         create_function_info_for, create_variable_info_for_1,
9530         create_variable_info_for, intra_create_variable_infos): Adjust.
9531         (init_base_vars): Push NULL for ID zero.
9532         (compute_points_to_sets): Adjust.
9534 2013-03-20  Richard Biener  <rguenther@suse.de>
9536         * cfgloop.c (verify_loop_structure): Streamline and avoid
9537         ICEing on corrupt loop tree.
9538         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
9539         loop tree.
9541 2013-03-20  Richard Biener  <rguenther@suse.de>
9543         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
9544         check whether an SSA update is needed.
9546 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
9548         * config/mips/constraints.md (T): Rename to...
9549         (Yf): ...this.
9550         (U): Rename to...
9551         (Yd): ...this.
9552         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
9553         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
9555 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
9557         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
9558         (*subsi3_carryin_uxtw): Likewise.
9560 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
9562         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
9563         (*rorsi3_insn_uxtw): Likewise.
9565 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
9567         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
9568         (*extrsi5_insn_uxtw): Likewise.
9570 2013-03-19  Richard Biener  <rguenther@suse.de>
9572         PR tree-optimization/56273
9573         * passes.c (init_optimization_passes): Move second VRP after DOM.
9575 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
9577         * config/i386/i386.md (*movti_internal): Merge from
9578         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
9579         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
9580         nox64 isa attributes.
9582 2013-03-18  Richard Biener  <rguenther@suse.de>
9584         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
9585         (unite): Likewise.
9586         (merge_node_constraints): Likewise.
9587         (build_succ_graph): Likewise.
9588         (valid_graph_edge): Inline into single caller.
9589         (unify_nodes): Likewise.  Use bitmap_set_bit return value
9590         and cache varinfo.
9591         (scc_visit): Fix formatting and variable use.
9592         (do_sd_constraint): Use gcc_checking_assert.
9593         (do_ds_constraint): Likewise.
9594         (do_complex_constraint): Likewise.
9595         (condense_visit): Likewise.  Cleanup.
9596         (dump_pred_graph): New function.
9597         (perform_var_substitution): Dump the pred-graph before
9598         variable substitution.
9599         (find_equivalent_node): Use gcc_checking_assert.
9600         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
9602 2013-03-18  Richard Biener  <rguenther@suse.de>
9604         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
9605         Remove cond_expr_stmt_list argument and do not gimplify the
9606         built expression.
9607         (vect_loop_versioning): Adjust.
9608         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
9609         Cleanup to use less temporaries.
9610         (vect_create_data_ref_ptr): Cleanup.
9612 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
9614         PR tree-optimization/56635
9615         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
9616         require types_compatible_p types.
9618 2013-03-18  Nick Clifton  <nickc@redhat.com>
9620         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
9621         spurious backslash.
9623         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
9624         Add missing line to comment describing function.
9626 2013-03-18  Richard Biener  <rguenther@suse.de>
9628         PR tree-optimization/56210
9629         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9630         Handle string / character search functions.
9631         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
9633 2013-03-18  Richard Biener  <rguenther@suse.de>
9635         PR middle-end/56483
9636         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
9637         and implement properly.
9638         * gimple.h (gimple_cond_single_var_p): Remove.
9640 2013-03-18  Richard Biener  <rguenther@suse.de>
9642         * tree-data-ref.h (find_data_references_in_loop): Declare.
9643         * tree-data-ref.c (get_references_in_stmt): Use a stack
9644         vector pre-allocated in the callers.
9645         (find_data_references_in_stmt): Adjust.
9646         (graphite_find_data_references_in_stmt): Likewise.
9647         (create_rdg_vertices): Likewise.
9648         (find_data_references_in_loop): Export.
9649         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
9650         Compute dependences here...
9651         (vect_analyze_data_refs): ...not here.  When we encounter
9652         a non-vectorizable data reference in basic-block vectorization
9653         truncate the data reference vector.  Do not bother to
9654         fixup data-dependence information for gather loads.
9655         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
9656         of data references, as reported.
9658 2013-03-18  Richard Biener  <rguenther@suse.de>
9660         PR tree-optimization/3713
9661         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
9662         has_constants and expr.
9663         (stmt_has_constants): Properly valueize SSA names when deciding
9664         whether the stmt has constants.
9666 2013-03-18  Richard Biener  <rguenther@suse.de>
9668         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
9669         whole function when there is nothing to do.
9670         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
9671         * tree-vectorizer.c (vectorize_loops): Update virtual and
9672         loop-closed SSA once.
9673         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
9675 2013-03-18  Richard Biener  <rguenther@suse.de>
9677         PR middle-end/56113
9678         * domwalk.c (bb_postorder): New global static.
9679         (cmp_bb_postorder): New function.
9680         (walk_dominator_tree): Replace scheme imposing an order for
9681         visiting dominator sons by one sorting them at the time they
9682         are pushed on the stack.
9684 2013-03-18  Richard Biener  <rguenther@suse.de>
9686         PR tree-optimization/39326
9687         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
9688         (struct mem_ref): Replace mem member with ao_ref typed member.
9689         (MEM_ANALYZABLE): Adjust.
9690         (memref_eq): Likewise.
9691         (mem_ref_alloc): Likewise.
9692         (gather_mem_refs_stmt): Likewise.
9693         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
9694         (execute_sm_if_changed_flag_set): Adjust.
9695         (execute_sm): Likewise.
9696         (ref_always_accessed_p): Likewise.
9697         (refs_independent_p): Likewise.
9698         (can_sm_ref_p): Likewise.
9700 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
9702         PR c/56566
9703         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
9704         return 1 even for !unsignedp.
9706 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
9708         * config/i386/i386.md (isa): Add x64 and nox64.
9709         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
9710         (*pushtf): Enable *roF alternative for x64 isa only.
9711         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
9712         mode attribute of integer alternatives to DImode for TARGET_64BIT.
9713         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
9714         (*movtf_internal): Merge from *movtf_internal_rex64 and
9715         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
9716         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
9717         nox64 isa attributes.
9718         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
9719         nox64 isa attributes.
9720         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
9722 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
9724         * config/alpha/alpha.c (TARGET_LRA_P): New define.
9726 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
9728         PR target/56640
9729         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
9730         class names.  Remove trailing comma after "ALL_REGS".
9732 2013-03-16  Jan Hubicka  <jh@suse.cz>
9734         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
9735         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
9736         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
9737         of cgraph_get_create_node.
9738         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
9740 2013-03-16  Jason Merrill  <jason@redhat.com>
9742         PR debug/49090
9743         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
9744         with DW_AT_default_value.
9746 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
9748         * BASE-VER: Set to 4.9.0.
9750 2013-03-14  Andi Kleen  <ak@linux.intel.com>
9752         PR target/56619
9753         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
9754         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
9755         Document _x* TSX intrinsics.
9757 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
9758             David Holsgrove  <david.holsgrove@xilinx.com>
9760         * configure.ac: Add MicroBlaze TLS support detection.
9761         * configure: Regenerate.
9762         * config/microblaze/microblaze-protos.h
9763         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
9764         symbol_mentioned_p, label_mentioned_p): Add prototypes.
9765         * config/microblaze/microblaze.c (microblaze_address_type): Add
9766         ADDRESS_TLS and tls_reloc address types.
9767         (microblaze_address_info): Add tls_reloc.
9768         (TARGET_HAVE_TLS): Define.
9769         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
9770          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
9771          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
9772         load_tls_operand,  microblaze_call_tls_get_addr,
9773         microblaze_legitimize_tls_address): New functions.
9774         (microblaze_classify_unspec): Handle UNSPEC_TLS.
9775         (get_base_reg): Use microblaze_tls_symbol_p.
9776         (microblaze_classify_address): Handle TLS.
9777         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
9778         label_mentioned_p and microblaze_tls_referenced_p.
9779         (microblaze_legitimize_address): Handle TLS.
9780         (microblaze_address_insns): Handle ADDRESS_TLS.
9781         (pic_address_needs_scratch): Handle TLS.
9782         (print_operand_address): Handle TLS.
9783         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
9784         (microblaze_expand_move): Handle TLS.
9785         (microblaze_legitimate_constant_p): Check
9786         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
9787         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9788         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
9789         (PIC_OFFSET_TABLE_REGNUM): Set.
9790         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
9791         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
9792         (addsi3, movsi_internal2, movdf_internal): Update constraints
9793         * config/microblaze/predicates.md (arith_plus_operand): Define
9794         (move_operand): Redefine as move_src_operand,
9795         check microblaze_tls_referenced_p.
9797 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
9799         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
9800         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
9802 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
9804         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
9805         CC mode for AND.
9807 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
9809         PR tree-optimization/53265
9810         * common.opt (Waggressive-loop-optimizations): New option.
9811         * tree-ssa-loop-niter.c: Include tree-pass.h.
9812         (do_warn_aggressive_loop_optimizations): New function.
9813         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
9814         if number_of_latch_executions returned constant.
9815         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
9816         early.  If number_of_latch_executions returned constant, set
9817         nb_iterations_upper_bound back to it.
9818         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
9819         field.
9820         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
9821         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
9823         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
9824         (MULTILIB_OSDIRNAMES): Set.
9825         * genmultilib: If defaultosdirname doesn't start with :: , set
9826         defaultosdirname2 instead, clear it and emit two . multilib_raw
9827         entries instead of just one.
9829 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
9831         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
9832         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
9833         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
9834         (SUBTARGET_OVERRIDE_OPTIONS): New.
9836 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
9838         PR target/49880
9839         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
9840         (musermode): Convert to Var(TARGET_USERMODE).
9841         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
9842         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
9843         * config/sh/sh.c (sh_option_override): Use
9844         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
9845         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
9846         condition.
9847         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
9848         TARGET_SH4.
9849         (udivsi3_i4_single, divsi3_i4_single): Use
9850         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
9852 2013-03-13  Dave Korn  <dave.korn.cygwin@....>
9854         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
9855         default setting.
9857 2013-03-13  Richard Biener  <rguenther@suse.de>
9859         PR tree-optimization/56608
9860         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
9861         calls when vectorizing basic-blocks.
9863 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
9865         PR plugins/45078
9866         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
9867         tm_file.
9869 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
9871         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
9873 2013-03-11  Jan Hubicka  <jh@suse.cz>
9875         PR lto/56557
9876         * lto-streamer-out.c (output_symbol_p): Skip references from
9877         constructors of external variables.
9879 2013-03-11  Jan Hubicka  <jh@suse.cz>
9881         PR middle-end/56571
9882         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
9883         from pseudos.
9884         * emit-rtl.c (verify_rtx_sharing): Likewise.
9885         (copy_insn_1): Likewise.
9886         * rtl.c (copy_rtx): Likewise.
9888 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
9890         PR target/56591
9891         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
9892         output_operand_lossage message.
9894 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
9896         PR target/56470
9897         * arm.c (shift_op): Validate RTL pattern on the fly.
9898         (arm_print_operand, case 'S'): Don't use shift_operator to validate
9899         the RTL.
9901 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9903         PR target/56347
9904         * config/pa/pa.md (call_value): Check for calls to powf and direct to
9905         new call patterns that clobber %fr12.
9906         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
9907         split and postreload patterns.
9908         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
9909         registers %fr12 and %fr12R as call used.
9911 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
9913         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
9914         (canon_address, record_store, replace_read, check_mem_read_rtx,
9915         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
9916         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
9917         rest_of_handle_dse): Likewise.
9919 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
9921         PR middle-end/56524
9922         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
9923         Add base_optabs.
9924         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
9925         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
9926         (save_optabs_if_changed): Replace with...
9927         (init_tree_optimization_optabs): ...this.
9928         * optabs.c (save_optabs_if_changed): Rename to...
9929         (init_tree_optimization_optabs): ...this.  Take the optimization node
9930         as argument.  Do nothing if the base optabs are already correct.
9931         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
9932         to recompute optabs.
9933         * function.h (function): Remove optabs field.
9934         * function.c (invoke_set_current_function_hook): Call
9935         init_tree_optimization_optabs.  Use the result to initialize
9936         this_fn_optabs.
9938 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
9940         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
9941         if GTMA_HAS_NO_INSTRUMENTATION.
9942         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
9943         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
9944         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
9945         * gimple-pretty-print.c (dump_gimple_transaction): Handle
9946         GTMA_HAS_NO_INSTRUMENTATION.
9948 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
9950         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
9951         libasan_preinit.o.
9953 2013-03-08  Marek Polacek  <polacek@redhat.com>
9954             Jakub Jelinek  <jakub@redhat.com>
9956         PR tree-optimization/56478
9957         * predict.c (is_comparison_with_loop_invariant_p): Change the
9958         type of loop_step to tree.
9959         (predict_loops): Adjust.
9960         (predict_iv_comparison): Perform the computations on double_ints.
9962 2013-03-08  Richard Biener  <rguenther@suse.de>
9964         PR tree-optimization/56570
9965         * tree-cfg.c (verify_expr_location_1): Verify locations for
9966         DECL_DEBUG_EXPR.
9967         * tree-sra.c (create_access_replacement): Strip locations
9968         from DECL_DEBUG_EXPRs.
9970 2013-03-08  Richard Biener  <rguenther@suse.de>
9972         * tree-inline.c (expand_call_inline): Do not associate
9973         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
9974         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
9976 2013-03-08  Richard Biener  <rguenther@suse.de>
9978         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
9979         or block changes with -Og.  Fix for location / block encoding
9980         changes and PHI arguments with locations.
9982 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
9984         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
9985         for all counters.
9986         (struct output_info): Likewise.
9987         (register_overhead): Remove bad gcc_assert.
9988         (bitmap_find_bit): If there is only a single bitmap element, do not
9989         count a miss as a search.
9990         (print_statistics): Update for counter type changes.
9991         (dump_bitmap_statistics): Likewise.  Print headers such that they
9992         are properly lined up with the printed counters.
9994 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
9996         PR tree-optimization/56559
9997         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
9998         check that it has only a single use.
10000 2013-03-07  Richard Biener  <rguenther@suse.de>
10002         * doc/invoke.texi (fwhole-program): Discourage use in combination
10003         with -flto.
10005 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
10007         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
10009         PR tree-optimization/56539
10010         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
10011         instead of GSI_CONTINUE_LINKING as last argument to
10012         force_gimple_operand_gsi.  Adjust function comment.
10014         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
10015         aarch64-cores.def.
10017         PR middle-end/56548
10018         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
10019         promoted mode, convert the result back to the original mode.
10021 2013-03-06  Richard Biener  <rguenther@suse.de>
10023         PR middle-end/56294
10024         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
10025         (insert_updated_phi_nodes_compare_uids): New function.
10026         (update_ssa): Sort symbols_to_rename after UID before
10027         traversing it to insert PHI nodes.
10029 2013-03-06  Richard Biener  <rguenther@suse.de>
10031         PR middle-end/50494
10032         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
10033         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
10035         Revert
10036         2013-02-13  Richard Biener  <rguenther@suse.de>
10038         PR lto/50494
10039         * varasm.c (output_constant_def_1): Get the decl representing
10040         the constant as argument.
10041         (output_constant_def): Wrap output_constant_def_1.
10042         (make_decl_rtl): Use output_constant_def_1 with the decl
10043         representing the constant.
10044         (build_constant_desc): Optionally re-use a decl already
10045         representing the constant.
10046         (tree_output_constant_def): Adjust.
10048 2013-03-06  Joey Ye  <joey.ye@arm.com>
10050         PR lto/50293
10051         * gcc.c (convert_white_space): New function.
10052         (main): Handles white space in function name.
10054 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
10056         PR target/56529
10057         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
10058         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
10059         to SH_DIV_CALL_TABLE for TARGET_SH2.
10060         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
10061         list.
10062         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
10063         call-table options.
10065 2013-03-05  Sterling Augustine  <saugustine@google.com>
10066             Cary Coutant  <ccoutant@google.com>
10068         PR debug/55364
10069         * dwarf2out.c (resolve_addr): Don't call
10070         remove_loc_list_addr_table_entries a second time for the same
10071         expression.
10073 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
10075         PR debug/56510
10076         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
10077         (avoid_complex_debug_insns): New function.
10078         (expand_debug_locations): Call it.
10080         PR rtl-optimization/56484
10081         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
10082         lifetimes of hard registers on small register class machines.
10084 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
10086         * config/microblaze/microblaze-protos.h: Rename
10087         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
10088         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
10089         fast_interrupt.
10090         (microblaze_fast_interrupt_function_p): New function.
10091         (microblaze_is_interrupt_handler): Rename to
10092         microblaze_is_interrupt_variant and add fast_interrupt check.
10093         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
10094         (save_restore_insns): Likewise.
10095         (compute_frame_size): Likewise.
10096         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
10097         (microblaze_globalize_label): Likewise.
10098         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
10099         * config/microblaze/microblaze.md: Use wrapper
10100         microblaze_is_interrupt_variant.
10102 2013-03-05  Kai Tietz  <ktietz@redhat.com>
10104         * sdbout.c (sdbout_one_type): Switch to current function's section
10105         supporting cold/hot.
10107 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
10109         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
10110         -mxl-reorder.
10112 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
10114         PR middle-end/56461
10115         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
10116         if VALGRIND_GET_VBITS is defined, temporarily make object
10117         memory all defined, and restore previous valgrind addressability
10118         and definability afterwards.  Free this_object at the end.
10120         PR middle-end/56461
10121         * lra.c (lra): Call lra_clear_live_ranges if live_p,
10122         right before calling lra_create_live_ranges, also call it
10123         when clearing live_p.  Only call lra_clear_live_ranges
10124         at the end if live_p.
10126         PR middle-end/56461
10127         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
10129 2013-03-05  Richard Biener  <rguenther@suse.de>
10131         PR tree-optimization/56521
10132         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
10133         value-id.
10135 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
10137         PR c++/55135
10138         * except.h (remove_unreachable_eh_regions): New prototype.
10139         * except.c (remove_eh_handler_splicer): New function, split out
10140         of remove_eh_handler.
10141         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
10142         warning about running it on many EH regions one at a time.
10143         (remove_unreachable_eh_regions_worker): New function, walk the
10144         EH tree in depth-first order and remove non-marked regions.
10145         (remove_unreachable_eh_regions): New function.
10146         * tree-eh.c (mark_reachable_handlers): New function, split out
10147         from remove_unreachable_handlers.
10148         (remove_unreachable_handlers): Use mark_reachable_handlers and
10149         remove_unreachable_eh_regions.
10150         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
10151         and remove_unreachable_eh_regions.
10153 2013-03-05  Richard Biener  <rguenther@suse.de>
10155         PR middle-end/56525
10156         * loop-init.c (fix_loop_structure): Remove loops in two stages,
10157         not freeing them until the end.
10159 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10161         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
10163 2013-03-05  Richard Biener  <rguenther@suse.de>
10165         PR tree-optimization/56270
10166         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
10167         of loads after scheduling an SLP instance.
10169 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
10171         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
10172         tic6x.exp.
10173         (check_gcc_parallelize): Run guality.exp as a separate job from
10174         vect.exp with unsorted.exp and $(dg_target_exps) separately from
10175         struct-layout-1.exp with stackalign.exp.
10177         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
10179         PR middle-end/56461
10180         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
10181         load_index sbitmap even if some bit in it isn't set.
10183         PR middle-end/56461
10184         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
10185         (discover_iteration_bound_by_body_walk): Change queues to
10186         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
10187         spelling in comment.  Call safe_push on queues[bound_index] directly.
10188         Release queues[queue_index] in every iteration unconditionally.
10189         Release bounds vector.
10191         PR middle-end/56461
10192         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
10193         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
10194         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
10195         inner_phis vector.
10197 2013-03-05  Richard Biener  <rguenther@suse.de>
10199         PR lto/56515
10200         * tree-inline.c (remap_blocks_to_null): New function.
10201         (expand_call_inline): When expanding a call stmt without
10202         an associated block inline remap all callee blocks to NULL.
10204 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
10206         PR rtl-optimization/56494
10207         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
10208         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
10209         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
10211         PR middle-end/56461
10212         * sel-sched-ir.c (free_sched_pools): Release
10213         succs_info_pool.stack[succs_info_pool.max_top] vectors too
10214         if succs_info_pool.max_top isn't -1.
10216         PR bootstrap/56509
10217         * opts.c (opts_obstack, opts_concat): Moved to...
10218         * opts-common.c (opts_obstack, opts_concat): ... here.
10220 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
10222         PR middle-end/56461
10223         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
10225 2013-03-04  Martin Jambor  <mjambor@suse.cz>
10227         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
10228         all appropriate places.
10230 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
10232         PR tree-optimization/56424
10233         * ipa-split.c (split_function): Do not set the RSO flag if result is
10234         not by reference and its type is a register type.
10236 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
10238         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
10239         (microblaze_legitimate_pic_operand): Likewise
10240         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
10241         new function microblaze_legitimate_pic_operand
10242         * config/microblaze/microblaze-protos.h
10243         (microblaze_legitimate_pic_operand): Declare.
10245 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10247         * config/microblaze/predicates.md (call_insn_simple_operand):
10248         New predicate for supported rtx code types.
10249         * config/microblaze/microblaze.md (call_internal1): Use
10250         call_insn_simple_operand predicate.
10252 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
10254         PR middle-end/56461
10255         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
10256         partitions.ordered_remove.
10258         PR middle-end/56461
10259         * tree-vect-stmts.c (vectorizable_conversion): Don't call
10260         vec_oprnds0.create (1) for modifier == NONE.
10262         PR middle-end/56461
10263         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
10264         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
10265         vec_oprnds1 right before pushing anything to it for
10266         scalar_shift_arg.
10268         PR middle-end/56461
10269         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
10270         set nbbs to 0 instead of having separate code path.
10271         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
10272         instead of false as last argument if returning NULL.
10274 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
10276         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
10277         the attribute is now called "target" instead of "option".
10278         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
10279         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
10280         attribute/pragma name for TARGET_OPTION_VALID_P and
10281         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
10282         * doc/tm.texi: Regenerated.
10284 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
10286         * config/microblaze/microblaze.c:
10287         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
10288         * config/microblaze/microblaze.h: Add -mxl-reorder to
10289         DRIVER_SELF_SPECS.
10290         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
10291         instructions emitted if TARGET_REORDER.
10292         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
10293         or 0 for -m/-mno case, but initialises as 2 to detect default use case
10294         separately.
10296 2013-03-01  Xinliang David Li  <davidxl@google.com>
10298         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
10299         walk length.
10301 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
10303         PR middle-end/56461
10304         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
10305         vector even when returning true.  Fix up function comment formatting.
10307         PR middle-end/56461
10308         * ira-build.c (ira_loop_nodes_count): New variable.
10309         (create_loop_tree_nodes): Initialize it.
10310         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
10312         PR middle-end/56461
10313         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
10314         method on dr_chain and result_chain.
10315         * tree-vect-stmts.c (vectorizable_store): Only call
10316         result_chain.create if j == 0.
10318         PR middle-end/56461
10319         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
10320         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
10321         before overwriting it.
10323 2013-03-01  Tobias Burnus  <burnus@net-b.de>
10325         * doc/extended.texi (C Extensions): Change order in @menu
10326         to match @node.
10327         (Other MIPS Built-in Functions): Move last MIPS entry before
10328         "picoChip Built-in Functions".
10329         (SH Built-in Functions): Move after RX Built-in Functions.
10330         * doc/gcc.texi (Introduction): Change order in @menu
10331         to match @node.
10332         * doc/md.texi (Constraints): Ditto.
10333         * gty.texi (Type Information): Ditto.
10334         (User-provided marking routines for template types): Make
10335         subsection.
10336         * doc/invoke.texi (AArch64 Options): Move before
10337         "Adapteva Epiphany Options".
10339 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
10340             Jakub Jelinek  <jakub@redhat.com>
10342         PR sanitizer/56454
10343         * asan.c (gate_asan): Lookup no_sanitize_address instead of
10344         no_address_safety_analysis attribute.
10345         * doc/extend.texi (no_address_safety_attribute): Rename to
10346         no_sanitize_address attribute, mention no_address_safety_analysis
10347         attribute as deprecated alias.
10349 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
10351         PR middle-end/56461
10352         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
10353         type to vec<vec<tree> > *.
10354         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
10355         to be vec<tree> instead of vec<tree> *, set vec_defs
10356         to vNULL and call vec_defs.create (number_of_vects), adjust other
10357         uses of vec_defs.
10358         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
10359         vectorizable_condition): Adjust vect_get_slp_defs callers.
10361 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
10363         * config/aarch64/aarch64.c
10364         (aarch64_float_const_representable): Remove unused variable.
10366 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
10368         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
10370 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
10372         * config/aarch64/aarch64-builtins.c
10373         (aarch64_init_simd_builtins): Make static.
10375 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
10377         * config/aarch64/aarch64.c
10378         (aarch64_simd_make_constant): Make static.
10380 2013-02-28  Martin Jambor  <mjambor@suse.cz>
10382         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
10383         with no initialization to the RHS of debug statements.
10385 2013-02-28  Martin Jambor  <mjambor@suse.cz>
10387         PR tree-optimization/56294
10388         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
10389         Adjust dumping.
10390         (get_access_replacement): Do not call create_access_replacement.
10391         Assert a replacement exists.
10392         (get_repl_default_def_ssa_name): Create the replacement declaration
10393         itself.
10395 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10397         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
10398         final_end_function.
10400 2013-02-28  Marek Polacek  <polacek@redhat.com>
10402         PR rtl-optimization/56466
10403         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
10404         if we're changing a loop.
10405         (peel_loops_completely): Likewise.
10407 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
10409         PR c++/55813
10410         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
10412 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
10414         PR target/56445
10415         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
10416         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
10417         INTX_FTYPE_FX, FX_FTYPE_INTX.
10418         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
10420 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
10422         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
10423         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
10424         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
10425         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
10426         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
10427         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
10428         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
10429         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
10430         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
10431         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
10432         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
10433         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
10434         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
10435         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
10436         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
10437         (avrxmega6): Increase max flash segments from 5 to 6.
10438         * config/avr/t-multilib: Regenerate.
10439         * config/avr/avr-tables.opt: Regenerate.
10440         * doc/avr-mmcu.texi: Regenerate.
10442 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
10444         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
10445         (avr_device_to_arch): Rename to avr_device_to_ld.
10446         (avr_device_to_as): New prototype.
10447         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
10448         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
10449         * config/avr/driver-avr.c (avr_device_to_as): New.
10450         (avr_device_to_arch): Rename to avr_device_to_ld.
10452 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
10454         PR middle-end/56461
10455         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
10456         method on dr_chain and result_chain.
10458         PR middle-end/56461
10459         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
10460         pointer_set_destroy on not_executed_last_iteration.
10462         PR middle-end/56461
10463         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
10465         PR middle-end/56461
10466         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
10467         FOR_EACH_DEFINED_FUNCTION when freeing state.
10469         PR middle-end/56461
10470         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
10471         pool_free.
10472         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
10473         overwriting it.
10475         PR middle-end/56461
10476         * ipa-cp.c (decide_whether_version_node): Call vec_free on
10477         known_aggs[i].items and release known_aggs vector.
10479         PR middle-end/56461
10480         * ipa-reference.c (propagate): Free node_info even for alias nodes.
10482 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10484         * config/microblaze/microblaze.c (microblaze_emit_compare):
10485         Use xor for EQ/NE comparisions.
10486         * config/microblaze/microblaze.md (cstoresf4): Add constraints
10487         (cbranchsf4): Adjust operator to comparison_operator.
10489 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
10491         PR middle-end/56461
10492         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
10493         vector.
10494         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
10495         vec_safe_push, always update *slot.
10496         (redirect_edge_var_map_clear): Use vec_free.
10497         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
10498         (free_var_map_entry): Use vec_free.
10499         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
10500         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
10502 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
10504         PR middle-end/45472
10505         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
10506         when the may_trap_p bit of the exprs being merged differs.
10507         Reorder tests for speculativeness in the logical and operator.
10509 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
10511         * incpath.c (add_standard_paths): Use reconcat instead of concat
10512         where appropriate and avoid leaking memory.
10514         * opts.h: Include obstack.h.
10515         (opts_concat): New prototype.
10516         (opts_obstack): New declaration.
10517         * opts.c (opts_concat): New function.
10518         (opts_obstack): New variable.
10519         (init_options_struct): Call gcc_init_obstack on opts_obstack.
10520         (finish_options): Use opts_concat instead of concat
10521         and XOBNEWVEC instead of XNEWVEC.
10522         * opts-common.c (generate_canonical_option, decode_cmdline_option,
10523         generate_option): Likewise.
10524         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
10525         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
10527         PR target/56455
10528         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
10529         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
10531 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
10533         PR middle-end/56461
10534         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
10536 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
10538         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
10539         (arm_block_move_unaligned_straight): Likewise.
10540         (arm_adjust_block_mem): Likewise.
10542 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
10544         PR target/48901
10545         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
10546         temp, cond and label.
10547         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
10549         PR target/52500
10550         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
10551         * config/c6x/c6x.h (dbx_register_map): Update declaration.
10553         PR target/52501
10554         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
10555         of prologue/epilogue functions.
10557         PR target/52550
10558         * config/tilegx/tilegx.c (tilegx_expand_prologue):
10559         Remove unused variable cfa_offset.
10560         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
10562         PR target/54639
10563         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
10564         type promotion to unsigned.
10566         PR target/54640
10567         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
10568         for HOST_WIDE_INT of 32 bit / same size as int.
10569         (arm_block_move_unaligned_straight): Likewise.
10570         (arm_adjust_block_mem): Likewise.
10572         PR target/54662
10573         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
10574         ALL_CFLAGS.
10576 2013-02-26  Marek Polacek  <polacek@redhat.com>
10578         PR tree-optimization/56426
10579         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
10581 2013-02-26  Richard Biener  <rguenther@suse.de>
10583         PR target/56444
10584         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
10585         unused variable loops.
10587 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
10589         PR tree-optimization/56448
10590         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
10591         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
10592         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
10593         later operands of the references, or even first operand for
10594         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
10596         PR tree-optimization/56443
10597         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
10598         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
10599         to type_for_mode langhook.
10601 2013-02-25  Matt Turner  <mattst88@gmail.com>
10603         * doc/invoke.texi: Document r4700.
10605 2013-02-25  Richard Biener  <rguenther@suse.de>
10607         PR tree-optimization/56175
10608         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
10609         split out from ...
10610         (simplify_bitwise_binary): ... here.  Also guard the conversion
10611         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
10613 2013-02-25  Catherine Moore  <clm@codesourcery.com>
10615         Revert:
10616         2013-02-24  Catherine Moore  <clm@codesourcery.com>
10617             Maciej W. Rozycki  <macro@codesourcery.com>
10618             Tom de Vries  <tom@codesourcery.com>
10619             Nathan Sidwell  <nathan@codesourcery.com>
10620             Iain Sandoe  <iain@codesourcery.com>
10621             Nathan Froyd  <froydnj@codesourcery.com>
10622             Chao-ying Fu  <fu@mips.com>
10624         * doc/extend.texi: (micromips, nomicromips, nocompression):
10625         Document new function attributes.
10626         * doc/invoke.texi (minterlink-compressed, mmicromips,
10627         m14k, m14ke, m14kec): Document new options.
10628         (minterlink-mips16): Update documentation.
10629         * doc/md.texi (ZC, ZD): Document new constraints.
10630         * configure.ac (gcc_cv_as_micromips): Check if linker
10631         supports the .set micromips directive.
10632         * configure: Regenerate.
10633         * config.in: Regenerate.
10634         * config/mips/mips-tables.opt: Regenerate.
10635         * config/mips/micromips.md: New file.
10636         * constraints.md (ZC, AD): New constraints.
10637         * config/mips/predicates.md (movep_src_register): New predicate.
10638         (movep_src_operand): New predicate.
10639         (non_volatile_mem_operand): New predicate.
10640         * config/mips/mips.md (multimem): New type.
10641         (length): Differentiate between 17-bit and 18-bit branch offsets.
10642         (MOVEP1, MOVEP2): New mode iterator.
10643         (mov_<load>l): Use ZC constraint.
10644         (mov_<load>r): Likewise.
10645         (mov_<store>l): Likewise.
10646         (mov_<store>r): Likewise.
10647         (*branch_equality<mode>_inverted): Add microMIPS support.
10648         (*branch_equality<mode>): Likewise.
10649         (*jump_absolute): Likewise.
10650         (indirect_jump_<mode>): Likewise.
10651         (tablejump_<mode>): Likewise.
10652         (<optab>_internal): Likewise.
10653         (sibcall_internal): Likewise.
10654         (sibcall_value_internal): Likewise.
10655         (prefetch): Use constraint ZD.
10656         * config/mips/mips.opt (minterlink-compressed): New option.
10657         (minterlink-mips16): Now an alias for minterlink-compressed.
10658         (mmicromips): New option.
10659         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
10660         (compare_and_swap_12): Likewise.
10661         (sync_add<mode>): Likewise.
10662         (sync_<optab>_12): Likewise.
10663         (sync_old_<optab>_12): Likewise.
10664         (sync_new_<optab>_12): Likewise.
10665         (sync_nand_12): Likewise.
10666         (sync_old_nand_12): Likewise.
10667         (sync_new_nand_12): Likewise.
10668         (sync_sub<mode>): Likewise.
10669         (sync_old_add<mode>): Likewise.
10670         (sync_old_sub<mode>): Likewise.
10671         (sync_new_add<mode>): Likewise.
10672         (sync_new_sub<mode>): Likewise.
10673         (sync_<optab><mode>): Likewise.
10674         (sync_old_<optab><mode>): Likewise.
10675         (sync_new_<optab><mode>): Likewise.
10676         (sync_nand<mode>): Likewise.
10677         (sync_old_nand<mode>): Likewise.
10678         (sync_new_nand<mode>): Likewise.
10679         (sync_lock_test_and_set<mode>): Likewise.
10680         (test_and_set_12): Likewise.
10681         (atomic_compare_and_swap<mode>): Likewise.
10682         (atomic_exchange<mode>_llsc): Likewise.
10683         (atomic_fetch_add<mode>_llsc): Likewise.
10684         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
10685         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
10686         (umips_save_restore_pattern_p): Likewise.
10687         (umips_load_store_pair_p): Likewise.
10688         (umips_output_load_store_pair): Likewise.
10689         (umips_movep_target_p): Likewise.
10690         (umips_12bit_offset_address_p): Likewise.
10691         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
10692         (mips_base_mips16): Rename this...
10693         (mips_base_compression_flags): ...to this. Update all uses.
10694         (mips_attribute_table): Add micromips, nomicromips and nocompression.
10695         (mips_mips16_decl_p): Delete.
10696         (mips_nomips16_decl_p): Delete.
10697         (mips_get_compress_on_flags): New function.
10698         (mips_get_compress_off_flags): New function.
10699         (mips_get_compress_mode): New function.
10700         (mips_get_compress_on_name): New function.
10701         (mips_get_compress_off_name): New function.
10702         (mips_insert_attributes): Support multiple compression types.
10703         (mips_merge_decl_attributes): Likewise.
10704         (umips_12bit_offset_address_p): New function.
10705         (mips_start_function_definition): Emit .set micromips directive.
10706         (mips_call_may_need_jalx_p): New function.
10707         (mips_function_ok_for_sibcall): Add microMIPS support.
10708         (mips_print_operand_punctuation): Support short delay slots and
10709         compact jumps.
10710         (umips_swm_mask, umips_swm_encoding): New.
10711         (umips_build_save_restore): New function.
10712         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
10713         (was_mips16_p): Remove.
10714         (old_compression_mode): New.
10715         (mips_set_compression_mode): New function.
10716         (mips_set_current_function): Add microMIPS support.
10717         (mips_option_override): Likewise.
10718         (umips_save_restore_pattern_p): New function.
10719         (umips_output_save_restore): New function.
10720         (umips_load_store_pair_p_1): New function.
10721         (umips_load_store_pair_p): New function.
10722         (umips_output_load_store_pair_1): New function.
10723         (umips_output_load_store_pair): New function.
10724         (umips_movep_target_p) New function.
10725         (mips_prepare_pch_save): Add microMIPS support.
10726         * config/mips/mips.h (TARGET_COMPRESSION): New.
10727         (TARGET_CPU_CPP_BUILTINS): Update macro
10728         to use new compression flags and to support microMIPS.
10729         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
10730         (MIPS_ARCH_FLOAT_SPEC): Likewise.
10731         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
10732         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
10733         (ASM_SPEC): Support mmicromips and mno-micromips.
10734         (M16STORE_REG_P): New macro.
10735         (MIPS_CALL): Support TARGET_MICROMIPS.
10736         (MICROMIPS_J): New macro.
10737         (mips_base_mips16): Rename this...
10738         (mips_base_compression_flags): ...to this.
10739         (UMIPS_12BIT_OFFSET_P): New macro.
10740         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10741         (MULTILIB_DIRNAMES): Likewise.
10743 2013-02-25  Tom de Vries  <tom@codesourcery.com>
10745         PR rtl-optimization/56131
10746         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
10747         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
10748         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
10750 2013-02-25  Tobias Burnus  <burnus@net-b.de>
10752         * doc/invoke.texi (-fsanitize=): Move from optimization
10753         to debugging options.
10755 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
10757         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
10759 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
10760             Alexander Monakov  <amonakov@ispras.ru>
10762         PR middle-end/56077
10763         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
10764         flush pending lists also on non-jumps.  Adjust comment.
10766 2013-02-24  Catherine Moore  <clm@codesourcery.com>
10767             Maciej W. Rozycki  <macro@codesourcery.com>
10768             Tom de Vries  <tom@codesourcery.com>
10769             Nathan Sidwell  <nathan@codesourcery.com>
10770             Iain Sandoe  <iain@codesourcery.com>
10771             Nathan Froyd  <froydnj@codesourcery.com>
10772             Chao-ying Fu  <fu@mips.com>
10774         * doc/extend.texi: (micromips, nomicromips, nocompression):
10775         Document new function attributes.
10776         * doc/invoke.texi (minterlink-compressed, mmicromips,
10777         m14k, m14ke, m14kec): Document new options.
10778         (minterlink-mips16): Update documentation.
10779         * doc/md.texi (ZC, ZD): Document new constraints.
10780         * configure.ac (gcc_cv_as_micromips): Check if linker
10781         supports the .set micromips directive.
10782         * configure: Regenerate.
10783         * config.in: Regenerate.
10784         * config/mips/mips-tables.opt: Regenerate.
10785         * config/mips/micromips.md: New file.
10786         * constraints.md (ZC, AD): New constraints.
10787         * config/mips/predicates.md (movep_src_register): New predicate.
10788         (movep_src_operand): New predicate.
10789         (non_volatile_mem_operand): New predicate.
10790         * config/mips/mips.md (multimem): New type.
10791         (length): Differentiate between 17-bit and 18-bit branch offsets.
10792         (MOVEP1, MOVEP2): New mode iterator.
10793         (mov_<load>l): Use ZC constraint.
10794         (mov_<load>r): Likewise.
10795         (mov_<store>l): Likewise.
10796         (mov_<store>r): Likewise.
10797         (*branch_equality<mode>_inverted): Add microMIPS support.
10798         (*branch_equality<mode>): Likewise.
10799         (*jump_absolute): Likewise.
10800         (indirect_jump_<mode>): Likewise.
10801         (tablejump_<mode>): Likewise.
10802         (<optab>_internal): Likewise.
10803         (sibcall_internal): Likewise.
10804         (sibcall_value_internal): Likewise.
10805         (prefetch): Use constraint ZD.
10806         * config/mips/mips.opt (minterlink-compressed): New option.
10807         (minterlink-mips16): Now an alias for minterlink-compressed.
10808         (mmicromips): New option.
10809         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
10810         (compare_and_swap_12): Likewise.
10811         (sync_add<mode>): Likewise.
10812         (sync_<optab>_12): Likewise.
10813         (sync_old_<optab>_12): Likewise.
10814         (sync_new_<optab>_12): Likewise.
10815         (sync_nand_12): Likewise.
10816         (sync_old_nand_12): Likewise.
10817         (sync_new_nand_12): Likewise.
10818         (sync_sub<mode>): Likewise.
10819         (sync_old_add<mode>): Likewise.
10820         (sync_old_sub<mode>): Likewise.
10821         (sync_new_add<mode>): Likewise.
10822         (sync_new_sub<mode>): Likewise.
10823         (sync_<optab><mode>): Likewise.
10824         (sync_old_<optab><mode>): Likewise.
10825         (sync_new_<optab><mode>): Likewise.
10826         (sync_nand<mode>): Likewise.
10827         (sync_old_nand<mode>): Likewise.
10828         (sync_new_nand<mode>): Likewise.
10829         (sync_lock_test_and_set<mode>): Likewise.
10830         (test_and_set_12): Likewise.
10831         (atomic_compare_and_swap<mode>): Likewise.
10832         (atomic_exchange<mode>_llsc): Likewise.
10833         (atomic_fetch_add<mode>_llsc): Likewise.
10834         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
10835         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
10836         (umips_save_restore_pattern_p): Likewise.
10837         (umips_load_store_pair_p): Likewise.
10838         (umips_output_load_store_pair): Likewise.
10839         (umips_movep_target_p): Likewise.
10840         (umips_12bit_offset_address_p): Likewise.
10841         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
10842         (mips_base_mips16): Rename this...
10843         (mips_base_compression_flags): ...to this. Update all uses.
10844         (mips_attribute_table): Add micromips, nomicromips and nocompression.
10845         (mips_mips16_decl_p): Delete.
10846         (mips_nomips16_decl_p): Delete.
10847         (mips_get_compress_on_flags): New function.
10848         (mips_get_compress_off_flags): New function.
10849         (mips_get_compress_mode): New function.
10850         (mips_get_compress_on_name): New function.
10851         (mips_get_compress_off_name): New function.
10852         (mips_insert_attributes): Support multiple compression types.
10853         (mips_merge_decl_attributes): Likewise.
10854         (umips_12bit_offset_address_p): New function.
10855         (mips_start_function_definition): Emit .set micromips directive.
10856         (mips_call_may_need_jalx_p): New function.
10857         (mips_function_ok_for_sibcall): Add microMIPS support.
10858         (mips_print_operand_punctuation): Support short delay slots and
10859         compact jumps.
10860         (umips_swm_mask, umips_swm_encoding): New.
10861         (umips_build_save_restore): New function.
10862         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
10863         (was_mips16_p): Remove.
10864         (old_compression_mode): New.
10865         (mips_set_compression_mode): New function.
10866         (mips_set_current_function): Add microMIPS support.
10867         (mips_option_override): Likewise.
10868         (umips_save_restore_pattern_p): New function.
10869         (umips_output_save_restore): New function.
10870         (umips_load_store_pair_p_1): New function.
10871         (umips_load_store_pair_p): New function.
10872         (umips_output_load_store_pair_1): New function.
10873         (umips_output_load_store_pair): New function.
10874         (umips_movep_target_p) New function.
10875         (mips_prepare_pch_save): Add microMIPS support.
10876         * config/mips/mips.h (TARGET_COMPRESSION): New.
10877         (TARGET_CPU_CPP_BUILTINS): Update macro
10878         to use new compression flags and to support microMIPS.
10879         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
10880         (MIPS_ARCH_FLOAT_SPEC): Likewise.
10881         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
10882         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
10883         (ASM_SPEC): Support mmicromips and mno-micromips.
10884         (M16STORE_REG_P): New macro.
10885         (MIPS_CALL): Support TARGET_MICROMIPS.
10886         (MICROMIPS_J): New macro.
10887         (mips_base_mips16): Rename this...
10888         (mips_base_compression_flags): ...to this.
10889         (UMIPS_12BIT_OFFSET_P): New macro.
10890         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10891         (MULTILIB_DIRNAMES): Likewise.
10893 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
10895         PR target/52555
10896         * target-globals.c (save_target_globals): For init_reg_sets and
10897         target_reinit remporarily set this_fn_optabs to this_target_optabs.
10899 2013-02-22  James Grennahlgh  <james.greenhalgh@arm.com>
10901         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
10902         * config/aarch64/t-aarch64
10903         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
10905 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
10907         PR inline-asm/56148
10908         * lra-constraints.c (process_alt_operands): Reload operand
10909         conflicting with earlier clobber only if no more other conflicting
10910         operands.
10912 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
10914         PR sanitizer/56393
10915         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
10916         if not linking a shared library.
10918 2013-02-22  Seth LaForge  <sethml@google.com>
10920         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
10922 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
10924         * config/arm/arm.md (split for extendsidi): Update condition.
10925         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
10926         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
10927         (qhs_zextenddi_cstr): Likewise.
10929 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
10931         PR middle-end/56420
10932         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
10933         avoid signed wrapping.
10934         (expand_mult): Handle properly multiplication by
10935         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
10936         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
10937         in the compiler if coeff is HOST_WIDE_INT_MIN.
10938         (expand_divmod): Don't make ext_op1 static, change it's type to
10939         uhwi.  Avoid undefined behavior in -INTVAL (op1).
10941         PR rtl-optimization/50339
10942         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
10943         field.
10944         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
10945         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
10946         into splitting_ashiftrt field.
10947         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
10948         ASHIFTRT.
10949         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
10950         choices.
10952 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
10954         PR middle-end/56108
10955         * trans-mem.c (execute_tm_mark): Do not expand transactions that
10956         are sure to go irrevocable.
10958 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
10960         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
10961         scalars are valid operands.
10963 2013-02-21  Martin Jambor  <mjambor@suse.cz>
10965         PR tree-optimization/56310
10966         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
10967         only matching indices and non-negative final offsets.
10968         (intersect_aggregates_with_edge): Pass src_idx to
10969         agg_replacements_to_vector.  Pass src_idx insstead of index to
10970         intersect_with_agg_replacements.
10972 2013-02-21  Martin Jambor  <mjambor@suse.cz>
10974         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
10975         instead of hard-wired defaults.
10977 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
10979         * doc/invoke.texi (MIPS Options): Update documentation of the
10980         floating-point multiply-accumulate instruction restrictions.
10982 2013-02-21  Kostya Serebryany  <kcc@google.com>
10984         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
10985         asan_shadow_offset on x86_64 linux.
10987 2013-02-21  Richard Biener  <rguenther@suse.de>
10989         PR tree-optimization/56415
10990         Revert
10991         2013-02-11  Richard Biener  <rguenther@suse.de>
10993         PR tree-optimization/56273
10994         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
10995         first VRP run.
10997 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
10999         PR bootstrap/56258
11000         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
11001         instead of @itemx.
11003         PR inline-asm/56405
11004         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
11005         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
11007 2013-02-20  Jan Hubicka  <jh@suse.cz>
11009         PR tree-optimization/56265
11010         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
11011         when target is referenced for first time.
11013 2013-02-20  Richard Biener  <rguenther@suse.de>
11015         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
11016         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
11017         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
11018         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
11019         not return anything.
11020         (rename_ssa_copies): Do not remove unused locals.
11021         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
11022         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
11023         * passes.c (execute_function_todo): Do not schedule unused locals
11024         removal if cleanup_tree_cfg did something.
11025         * tree-ssa-live.c (remove_unused_locals): Dump statistics
11026         about the number of removed locals.
11028 2013-02-20  Richard Biener  <rguenther@suse.de>
11030         PR tree-optimization/56398
11031         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
11033 2013-02-20  Martin Jambor  <mjambor@suse.cz>
11035         PR tree-optimization/55334
11036         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
11037         restricted pointers to arrays.
11039 2013-02-20  Richard Biener  <rguenther@suse.de>
11040             Jakub Jelinek  <jakub@redhat.com>
11042         PR tree-optimization/56396
11043         * tree-ssa-ccp.c (n_const_val): New static variable.
11044         (get_value): Return NULL for SSA names we don't have a lattice
11045         entry for.
11046         (ccp_initialize): Initialize n_const_val.
11047         * tree-ssa-copy.c (n_copy_of): New static variable.
11048         (init_copy_prop): Initialize n_copy_of.
11049         (get_value): Return NULL_TREE for SSA names we don't have a
11050         lattice entry for.
11052 2013-02-20  Martin Jambor  <mjambor@suse.cz>
11054         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
11056 2013-02-20  Richard Biener  <rguenther@suse.de>
11058         * genpreds.c (write_lookup_constraint): Do not compare first
11059         letter of the constraint again.
11061 2013-02-20  Richard Biener  <rguenther@suse.de>
11063         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
11064         and ceil_log2.
11065         (get_use_iv_cost): Terminate hashtable walk when coming across
11066         an empty entry.
11068 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
11070         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
11071         reassociation for avx2 targets.
11073 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11075         * config/microblaze/microblaze.c: microblaze_has_clz = 0
11076         Add version check for v8.10.a to enable microblaze_has_clz
11077         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
11078         version and TARGET_PATTERN_COMPARE check
11079         * config/microblaze/microblaze.md: New clzsi2 instruction
11081 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11083         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
11084         function before branching.
11086 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
11088         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
11089         DUMP_INSN_RTX_UID.
11090         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
11092 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
11094         PR middle-end/55889
11095         * sel-sched.c: Include ira.h.
11096         (implicit_clobber_conflict_p): New function.
11097         (moveup_expr): Use it.
11098         * Makefile.in (sel-sched.o): Depend on ira.h.
11100 2013-02-19  Richard Biener  <rguenther@suse.de>
11102         PR tree-optimization/56384
11103         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
11104         (vn_hash_type): Split out from ...
11105         (vn_hash_constant_with_type): ... here.
11106         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
11107         (vn_phi_eq): Compare types from vn_phi_s structure.
11108         (vn_phi_lookup): Populate vn_phi_s type.
11109         (vn_phi_insert): Likewise.
11111 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
11113         PR tree-optimization/56350
11114         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
11115         if haven't found reduction or nested cycle operand, rather than
11116         asserting we must find it.
11118         PR tree-optimization/56381
11119         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
11120         to fold_build3.
11122 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
11123             Jakub Jelinek  <jakub@redhat.com>
11125         PR target/52555
11126         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
11127         (swap_optab_enable): Same.
11128         (init_all_optabs): Use argument instead of global.
11129         * tree.h (struct tree_optimization_option): New field target_optabs.
11130         * expr.h (init_all_optabs): Add argument to prototype.
11131         (TREE_OPTIMIZATION_OPTABS): New.
11132         (save_optabs_if_changed): Protoize.
11133         * optabs.h: Declare this_fn_optabs.
11134         * optabs.c (save_optabs_if_changed): New.
11135         Declare this_fn_optabs.
11136         (init_optabs): Add argument to init_all_optabs() call.
11137         * function.c (invoke_set_current_function_hook): Handle per
11138         function optabs.
11139         * function.h (struct function): New field optabs.
11140         * config/mips/mips.c (mips_set_mips16_mode): Handle when
11141         optimization_current_node has changed.
11142         * target-globals.h (save_target_globals_default_opts): Protoize.
11143         * target-globals.c (save_target_globals_default_opts): New.
11145 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11147         PR target/56347
11148         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
11149         registers %fr12 and %fr12R as call used.
11151         PR target/56214
11152         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
11153         and HImode, require all displacements to be an integer multiple of
11154         their mode size.
11155         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
11156         only allow QImode and HImode when reload is in progress and strict is
11157         true.  Likewise for symbolic addresses.  Use base14_operand to check
11158         displacements in REG+BASE addresses.
11160 2013-02-18  Richard Biener  <rguenther@suse.de>
11162         PR tree-optimization/56366
11163         * tree-vect-loop.c (get_initial_def_for_induction): Properly
11164         handle sign-conversion of outer-loop initial induction value.
11166 2013-02-18  Richard Biener  <rguenther@suse.de>
11168         PR middle-end/56349
11169         * cfghooks.c (merge_blocks): If we merge a latch into another
11170         block adjust references to it.
11171         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
11172         (verify_loop_structure): Verify that a recorded latch is in fact
11173         a latch.
11175 2013-02-18  Richard Biener  <rguenther@suse.de>
11177         PR tree-optimization/56321
11178         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
11179         order SSA name release and virtual operand unlinking.
11181 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11183         * config/microblaze/microblaze.md (save_stack_block): Define.
11184         (restore_stack_block): Likewise.
11186 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11188         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
11189         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
11190         * config/microblaze/microblaze.c (microblaze_option_override):
11191         Bail out early for PIC modes when target does not support PIC.
11193 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11195         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
11196         Replace with a microblaze version.
11197         (microblaze_trampoline_init): Adapt for microblaze.
11198         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
11199         microblaze.
11201 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
11202             Dodji Seketeli  <dodji@redhat.com>
11204         PR asan/56330
11205         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
11206         (instrument_mem_region_access): Do not forget to always put
11207         instrumentation of the of 'base' and 'base + len' in a "if (len !=
11208         0) statement, even for cases where either 'base' or 'base + len'
11209         are not instrumented -- because they have been previously
11210         instrumented.  Simplify the logic by putting all the statements
11211         instrument 'base + len' inside a sequence, and then insert that
11212         sequence right before the current insertion point.  Then, to
11213         instrument 'base + len', just get an iterator on that statement.
11214         And do not forget to update the pointer to iterator the function
11215         received as argument.
11217 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
11219         PR rtl-optimization/56348
11220         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
11222 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
11224         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
11225         (clean_graph_dump_file): Pass base to start_graph_dump.
11227 2013-02-14  Richard Henderson  <rth@redhat.com>
11229         PR target/55941
11230         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
11232 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
11234         * collect2-aix.h: Define F_LOADONLY.
11236 2013-02-14  Richard Biener  <rguenther@suse.de>
11238         PR lto/50494
11239         * varasm.c (output_constant_def_1): Get the decl representing
11240         the constant as argument.
11241         (output_constant_def): Wrap output_constant_def_1.
11242         (make_decl_rtl): Use output_constant_def_1 with the decl
11243         representing the constant.
11244         (build_constant_desc): Optionally re-use a decl already
11245         representing the constant.
11246         (tree_output_constant_def): Adjust.
11248 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
11250         Fix an asan crash
11251         * asan.c (instrument_builtin_call):  Really put the length of the
11252         second source argument into src1_len.
11254 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
11256         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
11257         argument.  If it is false, don't create edge from then_bb to
11258         fallthru_bb.
11259         (insert_if_then_before_iter): Pass true to it.
11260         (build_check_stmt): Pass false to it.
11261         (transform_statements): Flush hash table only on extended basic
11262         block boundaries, rather than at the beginning of every bb.
11263         Don't flush hash table on nonfreeing_call_p calls.
11264         * tree-flow.h (nonfreeing_call_p): New prototype.
11265         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
11267 2013-02-13  David S. Miller  <davem@davemloft.net>
11269         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
11271 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
11273         PR target/56184
11274         * ira.c (max_regno_before_ira): Move from ...
11275         (ira): ... here.
11276         (fix_reg_equiv_init): Use max_regno_before_ira instead of
11277         vec_safe_length.
11279 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
11281         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
11283 2013-02-13  Richard Biener  <rguenther@suse.de>
11285         PR lto/56295
11286         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
11287         globals in MEM_REFs.
11289 2013-02-13  Richard Biener  <rguenther@suse.de>
11291         * loop-init.c (loop_optimizer_init): Clear loop state when
11292         re-initializing preserved loops.
11293         * loop-unswitch.c (unswitch_single_loop): Return whether
11294         we unswitched the loop.  Do not verify loop state here.
11295         (unswitch_loops): When we unswitched a loop discover new loops.
11297 2013-02-13  Kostya Serebryany  <kcc@google.com>
11299         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
11300         on x86_64 linux.
11301         * sanitizer.def: Rename __asan_init to __asan_init_v1.
11303 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
11305         Avoid instrumenting duplicated memory access in the same basic block
11306         * Makefile.in (asan.o): Add new dependency on hash-table.h
11307         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
11308         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
11309         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
11310         (free_mem_ref_resources, has_mem_ref_been_instrumented)
11311         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
11312         (get_mem_ref_of_assignment): New functions.
11313         (get_mem_refs_of_builtin_call): Extract from
11314         instrument_builtin_call and tweak a little bit to make it fit with
11315         the new signature.
11316         (instrument_builtin_call): Use the new
11317         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
11318         of is_gimple_builtin_call.
11319         (instrument_derefs, instrument_mem_region_access): Insert the
11320         instrumented memory reference into the hash table.
11321         (maybe_instrument_assignment): Renamed instrument_assignment into
11322         this, and change it to advance the iterator when instrumentation
11323         actually happened and return true in that case.  This makes it
11324         homogeneous with maybe_instrument_assignment, and thus give a
11325         chance to callers to be more 'regular'.
11326         (transform_statements): Clear the memory reference hash table
11327         whenever we enter a new BB, when we cross a function call, or when
11328         we are done transforming statements.  Use
11329         maybe_instrument_assignment instead of instrumentation.  No more
11330         need to special case maybe_instrument_assignment and advance the
11331         iterator after calling it; it's now handled just like
11332         maybe_instrument_call.  Update comment.
11334 2013-02-13  Richard Biener  <rguenther@suse.de>
11336         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
11337         Fix loop discovery code.
11339 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
11341         PR inline-asm/56148
11342         * lra-constraints.c (process_alt_operands): Match early clobber
11343         operand with itself.  Check conflicts with earlyclobber only if
11344         the operand is not reloaded.  Prefer to reload conflicting operand
11345         if earlyclobber and matching operands are the same.
11347 2013-02-12  Richard Biener  <rguenther@suse.de>
11349         PR lto/56297
11350         * lto-streamer-out.c (write_symbol): Do not output symbols
11351         for hard register variables.
11353 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
11355         PR target/54222
11356         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
11357         (umulsidi3_insn, mulsidi3_insn): New insns.
11359 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
11361         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
11362         (struct tune_params): Add vec_costs field.
11363         * config/arm/arm.c (arm_builtin_vectorization_cost)
11364         (arm_add_stmt_cost): New functions.
11365         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
11366         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
11367         (arm_default_vec_cost): New struct of type cpu_vec_costs.
11368         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
11369         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
11370         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
11371         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
11373 2013-02-12  Richard Biener  <rguenther@suse.de>
11375         PR lto/56295
11376         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
11377         decls again if possible.
11379 2013-02-12  Richard Biener  <rguenther@suse.de>
11381         PR middle-end/56288
11382         * tree-ssa.c (verify_ssa_name): Fix check, move
11383         SSA_NAME_IN_FREE_LIST check up.
11385 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
11386             Steven Bosscher   <steven@gcc.gnu.org>
11388         PR rtl-optimization/56151
11389         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
11390         equal to op0 or op1, and last_insn pattern is CODE operation
11391         with MEM dest and one of the operands matches that MEM.
11393 2013-02-11  Sriraman Tallam  <tmsriramgoogle.com>
11395         * doc/extend.texi: Document Function Multiversioning and "default"
11396         parameter string to target attribute.
11397         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
11398         target attribute parameter is "default".
11399         (ix86_compare_version_priority): Remove checks for target attribute.
11400         (ix86_mangle_function_version_assembler_name): Change error to sorry.
11401         Remove check for target attribute equal to NULL. Add assert.
11402         (ix86_generate_version_dispatcher_body): Change error to sorry.
11404 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
11405             Jack Howarth  <howarth@bromo.med.uc.edu>
11406             Patrick Marlier  <patrick.marlier@gmail.com>
11408         PR libitm/55693
11409         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
11410         define ENDFILE_SPEC as TM_DESTRUCTOR.
11411         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
11413 2013-02-11  Alexander Potapenko  <glider@google.com>
11414             Jack Howarth  <howarth@bromo.med.uc.edu>
11415             Jakub Jelinek  <jakub@redhat.com>
11417         PR sanitizer/55617
11418         * config/darwin.c (cdtor_record): Rename ctor_record.
11419         (sort_cdtor_records): Rename sort_ctor_records.
11420         (finalize_dtors): New routine to sort destructors by
11421         priority before use in assemble_integer.
11422         (machopic_asm_out_destructor): Use finalize_dtors if needed.
11424 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
11426         PR rtl-optimization/56275
11427         * simplify-rtx.c (avoid_constant_pool_reference): Check that
11428         offset is non-negative and less than cmode size before
11429         calling simplify_subreg.
11431 2013-02-11  Richard Biener  <rguenther@suse.de>
11433         PR tree-optimization/56264
11434         * cfgloop.h (fix_loop_structure): Adjust prototype.
11435         * loop-init.c (fix_loop_structure): Return the number of
11436         newly discovered loops.
11437         * tree-cfgcleanup.c (repair_loop_structures): When new loops
11438         are discovered, do a full loop-closed SSA rewrite.
11440 2013-02-11  Richard Biener  <rguenther@suse.de>
11442         PR tree-optimization/56273
11443         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
11444         first VRP run.
11445         (check_array_ref): Fix missing newline in dumps.
11446         (search_for_addr_array): Likewise.
11448 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
11450         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
11452 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
11454         PR target/56256
11455         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
11457 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
11459         PR rtl-optimization/56246
11460         * lra-constraints.c (simplify_operand_subreg): Try to reuse
11461         reload pseudo.
11462         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
11463         constraints are satisfied.
11465 2013-02-08  Jeff Law  <law@redhat.com>
11467         PR debug/53948
11468         * emit-rtl.c (reg_is_parm_p): New function.
11469         * regs.h (reg_is_parm_p): New prototype.
11470         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
11471         callee-clobbered registers.
11473 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
11475         PR target/56043
11476         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
11477         If there is no implicit builtin declaration, just return NULL.
11479 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
11481         * config/i386/sse.md (FMAMODEM): New mode iterator.
11482         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
11483         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
11485 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
11487         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
11488         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
11489         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
11491 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11493         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
11494         (microblaze*-*-elf): Likewise.
11495         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
11496         LINK_SPEC.
11497         * config/microblaze/microblaze-c.c: Add builtin defines for
11498         _LITTLE_ENDIAN and _BIG_ENDIAN.
11499         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
11500         add to TARGET_DEFAULT flags.
11501         Expand ASM_SPEC and LINK_SPEC.
11502         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
11503         * config/microblaze/microblaze.md: Update extendsidi2 and
11504         movdi_internal instructions to use low-order / high-order reg
11505         print_operands.
11506         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
11507         options and inversemask / mask of LITTLE_ENDIAN.
11508         * config/microblaze/t-microblaze: Expand multilib options to
11509         include mlittle-endian (le) and update exceptions patterns.
11511 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
11513         PR rtl-optimization/56195
11514         * lra-constraints.c (get_reload_reg): Don't reuse regs
11515         if they have smaller mode than requested, if they have
11516         wider mode than requested, try to return a SUBREG.
11518         PR tree-optimization/56250
11519         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
11520         if type is unsigned and code isn't MULT_EXPR.
11522 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
11524         PR tree-optimization/56064
11525         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
11526         bits according to mode.
11527         * fixed-value.h (fixed_from_double_int)
11528         (const_fixed_from_double_int): Adjust comments.
11530 2013-02-08  Richard Biener  <rguenther@suse.de>
11532         PR lto/56231
11533         * lto-streamer.h (struct data_in): Remove current_file, current_line
11534         and current_col members.
11535         * lto-streamer-out.c (lto_output_location): Stream changed bits
11536         en-block for efficiency.
11537         * lto-streamer-in.c (clear_line_info): Remove.
11538         (lto_input_location): Cache current file, line and column
11539         globally via local statics.  Read changed bits en-block.
11540         (input_function): Do not call clear_line_info.
11541         (lto_read_body): Likewise.
11542         (lto_input_toplevel_asms): Likewise.
11544 2013-02-08  Michael Matz  <matz@suse.de>
11546         PR tree-optimization/52448
11547         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
11548         (nt_call_phase): New static.
11549         (add_or_mark_expr): Only mark accesses with newer phase than any
11550         call seen.
11551         (nonfreeing_call_p): New.
11552         (nt_init_block): Update nt_call_phase, mark blocks as visited.
11553         (nt_fini_block): Keep blocks marked as visited.
11554         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
11556 2013-02-08  Richard Biener  <rguenther@suse.de>
11558         * ira.c (ira): Free broken dominator information.
11560 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
11562         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
11564 2013-02-08  Marek Polacek  <polacek@redhat.com>
11566         * cfgloop.c (verify_loop_structure): Add more checking of headers.
11568 2013-02-08  Richard Biener  <rguenther@suse.de>
11570         PR middle-end/56181
11571         * cfgloop.h (flow_loops_find): Adjust.
11572         (bb_loop_header_p): Declare.
11573         * cfgloop.c (bb_loop_header_p): New function split out from ...
11574         (flow_loops_find): ... here.  Adjust function signature,
11575         support incremental loop structure update.
11576         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
11577         * cfgloopmanip.c (fix_loop_structure): Move ...
11578         * loop-init.c (fix_loop_structure): ... here.
11579         (apply_loop_flags): Split out from ...
11580         (loop_optimizer_init): ... here.
11581         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
11582         in incremental mode, only remove dead loops here.
11584 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
11586         PR target/54222
11587         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
11588         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
11589         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
11590         (*round<mode>3.libgcc): New insns for fixed-modes.
11591         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
11592         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
11593         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
11594         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
11595         implementations.  Define to __builtin_avr_absFX,
11596         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
11597         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
11598         __builtin_avr_countlsFX, respectively.
11599         * config/avr/avr-c.c (target.h): Include it.
11600         (enum avr_builtin_id): New enum.
11601         (avr_resolve_overloaded_builtin): New static function.
11602         (avr_register_target_pragmas): Use it to set
11603         targetm.resolve_overloaded_builtin.
11604         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
11605         tree nodes used by DEF_BUILTIN.
11606         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
11607         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
11608         <AVR_BUILTIN_xxBITS>: Same.
11610 2013-02-08  Richard Biener  <rguenther@suse.de>
11612         * cfgloop.c (verify_loop_structure): Properly handle
11613         a loop exiting to another loop header.
11614         * ira-int.h (ira_loops): Remove.
11615         * ira.c (ira_loops): Remove.
11616         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
11617         (do_reload): Use loop_optimizer_finalize.
11618         * ira-build.c (create_loop_tree_nodes): Use get_loops and
11619         number_of_loops to access the loop tree.
11620         (more_one_region_p): Likewise.
11621         (finish_loop_tree_nodes): Likewise.
11622         (rebuild_regno_allocno_maps): Likewise.
11623         (mark_loops_for_removal): Likewise.
11624         (mark_all_loops_for_removal): Likewise.
11625         (remove_unnecessary_regions): Likewise.
11626         (ira_build): Likewise.
11627         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
11629 2013-02-08  Richard Biener  <rguenther@suse.de>
11631         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
11632         * ipa-pure-const.c (analyze_function): Avoid calling
11633         mark_irreducible_loops twice.
11634         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
11636 2013-02-07  David S. Miller  <davem@davemloft.net>
11638         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
11639         on 'reg'.
11640         * var-tracking.c (vt_add_function_parameter): Test the presence of
11641         HAVE_window_save properly and do not remap argument registers when
11642         we have a leaf function.
11644 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
11646         PR bootstrap/56227
11647         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
11648         instead of "ll".
11649         * config/i386/i386.c (ix86_print_operand): Ditto.
11651 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
11653         * lra-constraints.c (process_alt_operands): Fix recently added comment.
11655 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
11657         PR rtl-optimization/56225
11658         * lra-constraints.c (process_alt_operands): Check that reload hard
11659         reg can hold value for strict_low_part.
11661 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
11663         PR debug/56154
11664         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
11665         dwarf2out_end_function.
11666         (in_first_function_p, maybe_at_text_label_p,
11667         first_loclabel_num_not_at_text_label): New variables.
11668         (dwarf2out_var_location): In the first function find out
11669         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
11670         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
11671         functions.
11673 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
11675         PR rtl-optimization/56178
11676         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
11677         SUBREG of a register.  Tidy up related block of code.
11678         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
11679         note if the source is a register or a SUBREG of a register.
11681 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
11683         PR target/56228
11684         * config/rs6000/rs6000.md (ptrm): New mode attr.
11685         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
11686         call_value_indirect_aix<pttrsize>,
11687         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
11688         m in constraints.
11690 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
11692         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
11693         if -bnortl. Convert to strcmp and strncmp.
11695 2013-02-07  Alan Modra  <amodra@gmail.com>
11697         PR target/54009
11698         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
11699         addresses won't wrap when offsetting.
11700         (rs6000_secondary_reload): Provide secondary reloads needed for
11701         wrapping LO_SUM addresses.
11703 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
11705         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
11706         MACH, just __MACH__.
11708 2013-02-06  Richard Biener  <rguenther@suse.de>
11710         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
11711         instead of calling fix_loop_structure.
11713 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
11715         PR middle-end/56217
11716         * omp-low.c (use_pointer_for_field): Return false if
11717         lower_send_shared_vars doesn't generate any copy-out code.
11719 2013-02-06  Tom de Vries  <tom@codesourcery.com>
11721         PR rtl-optimization/56131
11722         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
11723         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
11724         of the label is NULL.  Add comment.
11726 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
11728         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
11730         PR sanitizer/55374
11731         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
11732         (STATIC_LIBTSAN_LIBS): Likewise.
11733         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
11734         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
11735         is defined, don't add anything else beyond that.
11736         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
11737         (LINK_COMMAND_SPEC): Use them.
11739         PR tree-optimization/56205
11740         * tree-stdarg.c (check_all_va_list_escapes): Return true if
11741         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
11742         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
11744 2013-02-05  Richard Biener  <rguenther@suse.de>
11746         PR tree-optimization/53342
11747         PR tree-optimization/53185
11748         * tree-vectorizer.h (vect_check_strided_load): Remove.
11749         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
11750         not disallow peeling for vectorized strided loads.
11751         (vect_check_strided_load): Make static and simplify.
11752         (vect_analyze_data_refs): Adjust.
11753         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
11754         correctly when vectorizing strided loads.
11756 2013-02-05  Richard Biener  <rguenther@suse.de>
11758         * doc/install.texi: Refer to ISL, not PPL.
11760 2013-02-05  Jan Hubicka  <jh@suse.cz>
11762         PR tree-optimization/55789
11763         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
11765 2013-02-05  Jan Hubicka  <jh@suse.cz>
11767         PR tree-optimization/55789
11768         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
11769         the dead call anyway.
11771 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
11773         PR sanitizer/55374
11774         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
11776 2013-02-04  Alexander Potapenko  <glider@google.com>
11777             Jack Howarth  <howarth@bromo.med.uc.edu>
11778             Jakub Jelinek  <jakub@redhat.com>
11780         PR sanitizer/55617
11781         * config/darwin.c (sort_ctor_records): Stabilized qsort
11782         on constructor priority by using original position.
11783         (finalize_ctors): New routine to sort constructors by
11784         priority before use in assemble_integer.
11785         (machopic_asm_out_constructor): Use finalize_ctors if needed.
11787 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
11789         PR libstdc++/54314
11790         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
11791         about visibility on artificial decls.
11792         * config/sol2.c (solaris_assemble_visibility): Likewise.
11794 2013-02-04  Kai Tietz  <ktietz@redhat.com>
11796         PR target/56186
11797         * config/i386/i386.c (function_value_ms_64): Add additional valtype
11798         argument and improve checking of return-argument types for 16-byte
11799         modes.
11800         (ix86_function_value_1): Add additional valtype argument on call
11801         of function_value_64.
11802         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
11803         handling infunction_value_64 function.
11805 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
11807         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
11809 2013-02-04  Richard Biener  <rguenther@suse.de>
11811         PR tree-optimization/56188
11812         * tree-ssa-structalias.c (label_visit): Consider case with
11813         initially non-empty points-to set.
11814         (perform_var_substitution): Dump node mapping and clean up.
11816 2013-02-04  Richard Guenther  <rguenther@suse.de>
11818         PR lto/56168
11819         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
11820         node prevail as last resort.
11821         (lto_symtab_merge_decls): Remove guard on LTRANS here.
11822         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
11824 2013-02-04  Richard Biener  <rguenther@suse.de>
11826         PR tree-optimization/56113
11827         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
11828         Merge into ...
11829         (equiv_class_lookup_or_add): ... this.
11830         (label_visit): Adjust and fix error in previous patch.
11831         (perform_var_substitution): Adjust.
11833 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
11835         * config/sh/divtab.c: Fix formatting and comments throughout the file.
11836         * config/sh/sh4-300.md: Likewise.
11837         * config/sh/sh4a.md: Likewise.
11838         * config/sh/constraints.md: Likewise.
11839         * config/sh/sh.md: Likewise.
11840         * config/sh/netbsd-elf.h: Likewise.
11841         * config/sh/predicates.md: Likewise.
11842         * config/sh/sh-protos.h: Likewise.
11843         * config/sh/ushmedia.h: Likewise.
11844         * config/sh/linux.h: Likewise.
11845         * config/sh/sh.c: Likewise.
11846         * config/sh/superh.h: Likewise.
11847         * config/sh/elf.h: Likewise.
11848         * config/sh/sh4.md: Likewise.
11849         * config/sh/sh.h: Likewise.
11851 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11853         * config/pa/constraints.md: Adjust unused letters.  Change "T"
11854         constraint to match_test floating_point_store_memory_operand().
11855         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
11856         (base14_operand): New.
11857         (floating_point_store_memory_operand): New.
11858         (integer_store_memory_operand): Revise to use base14_operand and
11859         reg_plus_base_memory_operand.
11860         (move_dest_operand): Allow symbolic_memory_operands.
11861         (symbolic_memory_operand): Check for LO_SOM.
11862         (symbolic_operand): Change default case to break.
11863         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
11864         CONST_DOUBLE values to be reloaded by putting them into memory when
11865         the destination is a floating point register.
11866         (movdf): Remove code to handle CONST_DOUBLE.
11867         (movsf): Likewise.
11868         (reload_indf_r1): New.
11869         (reload_insf_r1): New.
11870         Consistently use "Q" and "T" constraints with integer and floating
11871         point move instructions, respectively.
11872         (movdi): Remove FAIL.
11873         Change predicate for source operand unamed DImode move from
11874         general_operand to move_src_operand.
11875         (umulsidi3): Change predicate for destination operand to
11876         register_operand.
11877         Likewise for similar unamed patterns.
11878         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
11879         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
11880         (hppa_legitimize_address): Simplify mask calculation.
11881         (pa_emit_move_sequence): Revised handling of secondary reloads from
11882         REG+D addresses for floating point loads and stores.  Directly handle
11883         loading CONST0_RTX (mode) to a floating point register.
11884         (pa_secondary_reload): Handle reloading DF and SFmode constant values
11885         to floating point registers.  Don't restrict secondary reloads to
11886         floating point registers to integer modes.  Revise some comments and
11887         cleanup some code.
11888         (TARGET_LEGITIMATE_ADDRESS_P): Define.
11889         (pa_legitimate_address_p): New.
11890         (pa_legitimize_reload_address): New.
11891         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
11892         (STRICT_REG_OK_FOR_BASE_P): New.
11893         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
11894         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
11896 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
11897             Andrew Dixie  <andrewd@gentrack.com>
11899         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
11900         flag set.
11902 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
11904         * expmed.c (extract_bit_field_1): Pass the full width of the
11905         structure to get_best_reg_extraction_insn.
11907 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
11909         PR target/54601
11910         * configure.ac (use_cxa_atexit): Add AIX.
11911         * configure: Regenerate.
11913         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
11915 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
11917         PR debug/54793
11918         * final.c (need_profile_function): New variable.
11919         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
11920         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
11921         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
11922         notes, targetm.asm_out.function_prologue doesn't emit anything,
11923         HAVE_prologue and profiler should be emitted before prologue,
11924         set need_profile_function instead of emitting it.
11925         (final_scan_insn): If need_profile_function, emit
11926         profile_function on the first NOTE_INSN_BASIC_BLOCK or
11927         NOTE_INSN_FUNCTION_BEG note.
11929 2013-02-01  Richard Henderson  <rth@redhat.com>
11931         * config/rs6000/rs6000.md (smulditi3): New.
11932         (umulditi3): New.
11934         * config/alpha/alpha.md (umulditi3): New.
11936 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
11938         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
11939         (ASM_OUTPUT_ALIGNED_LOCAL): New.
11941 2013-02-01  Richard Biener  <rguenther@suse.de>
11943         PR tree-optimization/56113
11944         * tree-ssa-structalias.c (label_visit): Reduce work for
11945         single-predecessor nodes.
11947 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
11949         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
11950         range isn't testing for zero.
11952 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
11954         PR middle-end/56113
11955         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
11957 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
11958             Nick Clifton  <nickc@redhat.com>
11960         * config/v850/constraints.md (Q): Define as a memory constraint.
11961         * config/v850/predicates.md (label_ref_operand): New predicate.
11962         (e3v5_shift_operand): New predicate.
11963         (ior_operator): New predicate.
11964         * config/v850/t-v850: Add e3v5 multilib.
11965         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
11966         (v850_gen_movdi): Prototype.
11967         * config/v850/v850.c: Add support for e3v5 architecture.
11968         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
11969         TARGET_V850E_UP.
11970         (construct_save_jarl): Add e3v5 long JARL support.
11971         (v850_adjust_insn_length): New function.  Adjust length of call
11972         insns when using e3v5 instructions.
11973         (v850_gen_movdi): New function: Generate instructions to move a
11974         DImode value.
11975         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
11976         (CPP_SPEC): Define __v850e3v5__ as appropriate.
11977         (TARGET_USE_FPU): Enable for e3v5.
11978         (CONST_OK_FOR_W): New macro.
11979         (ADJUST_INSN_LENGTH): Define.
11980         * config/v850/v850.md (UNSPEC_LOOP): Define.
11981         (attr cpu): Add v850e3v5.
11982         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
11983         (movdi): New pattern.
11984         (movdi_internal): New pattern.
11985         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
11986         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
11987         (cstoresf4): Likewise.
11988         (cstoredf4): Likewise.
11989         (insv): New pattern.
11990         (rotlso3_a): New pattern.
11991         (rotlsi3_b): New pattern
11992         (rotlsi3_v850e3v5): New pattern.
11993         (doloop_begin): New pattern.
11994         (fix_loop_counter): New pattern.
11995         (doloop_end): New pattern.
11996         (branch_normal): Add e3v5 long branch support.
11997         (branch_invert): Likewise.
11998         (branch_z_normal): Likewise.
11999         (branch_z_invert): Likewise.
12000         (branch_nz_normal): Likewise.
12001         (branch_nz_invert): Likewise.
12002         (call_internal_short): Add e3v5 register-indirect JARL support.
12003         (call_internal_long): Likewise.
12004         (call_value_internal_short): Likewise.
12005         (call_value_internal_long): Likewise.
12006         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
12007         (mloop): New option.
12008         * config.gcc: Add support for configuring v840e3v5 target.
12009         * doc/invoke.texi: Document new v850 specific command line options.
12011 2013-01-31  Paul Koning  <ni1d@arrl.net>
12013         PR debug/55059
12014         PR debug/54508
12015         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
12016         children if parent is a class.
12017         (prune_unused_types_prune): Don't add DW_AT_declaration.
12019 2013-01-31  Richard Biener  <rguenther@suse.de>
12021         PR tree-optimization/56157
12022         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
12023         match up operand with SLP child.
12025 2013-01-31  Jason Merrill  <jason@redhat.com>
12027         PR debug/54410
12028         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
12029         parameters the first time.
12030         (gen_scheduled_generic_parms_dies): Check completeness here.
12032 2013-01-31  Richard Biener  <rguenther@suse.de>
12034         PR middle-end/53073
12035         * common.opt (faggressive-loop-optimizations): New flag,
12036         enabled by default.
12037         * doc/invoke.texi (faggressive-loop-optimizations): Document.
12038         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
12039         infer_loop_bounds_from_undefined by it.
12041 2013-01-31  Richard Biener  <rguenther@suse.de>
12043         PR tree-optimization/56150
12044         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
12045         visit virtual operands.
12046         (find_uses_to_rename_bb): Likewise.
12048 2013-01-31  Richard Biener  <rguenther@suse.de>
12050         PR tree-optimization/56150
12051         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
12052         mixed store non-store stmts.
12054 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
12056         PR sanitizer/55374
12057         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
12058         LIBASAN_EARLY_SPEC is defined.
12059         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
12060         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
12061         before %o.
12062         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
12064         PR c++/55742
12065         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
12066         invalid args instead of ICEing on it.
12067         (ix86_valid_target_attribute_tree): Return error_mark_node if
12068         ix86_valid_target_attribute_inner_p failed.
12069         (ix86_valid_target_attribute_p): Return false only if
12070         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
12071         target("default") attribute.
12072         (sorted_attr_string): Change argument from const char * to tree,
12073         merge in all target attribute arguments rather than just one.
12074         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
12075         instead of free.  Avoid using strcat.
12076         (ix86_mangle_function_version_assembler_name): Mangle
12077         target("default") as if no target attribute is present.  Adjust
12078         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
12079         instead of xmalloc and XDELETEVEC instead of free.
12080         (ix86_function_versions): Don't return true if one of the decls
12081         doesn't have target attribute.  If they don't and one of the decls
12082         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
12083         sorted_attr_string caller.  Use XDELETEVEC instead of free.
12084         (ix86_supports_function_versions): Remove.
12085         (make_name): Fix up formatting.
12086         (make_dispatcher_decl): Remove resolver_name and its initialization.
12087         Avoid leaking memory.
12088         (is_function_default_version): Return true if there is
12089         target("default") attribute rather than no target attribute at all.
12090         (make_resolver_func): Avoid leaking memory.
12091         (ix86_generate_version_dispatcher_body): Likewise.
12092         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
12093         * target.def (supports_function_versions): Remove.
12094         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
12095         * doc/tm.texi: Regenerated.
12097 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
12099         PR rtl-optimization/56144
12100         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
12101         for values with side effects.
12103 2013-01-30  Richard Biener  <rguenther@suse.de>
12105         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
12106         (sparseset_pop): Likewise.
12107         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
12108         to be able to use quick_push in the worker loop.
12110 2013-01-30  Marek Polacek  <polacek@redhat.com>
12112         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
12114 2013-01-30  Richard Biener  <rguenther@suse.de>
12116         PR lto/56147
12117         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
12119 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
12121         PR tree-optimization/56064
12122         * fixed-value.c (fixed_from_double_int): New function.
12123         * fixed-value.h (fixed_from_double_int): New prototype.
12124         (const_fixed_from_double_int): New static inline function.
12125         * fold-const.c (native_interpret_fixed): New static function.
12126         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
12127         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
12128         (native_encode_fixed): New static function.
12129         (native_encode_expr) <FIXED_CST>: Use it.
12130         (native_interpret_int): Move double_int worker code to...
12131         * double-int.c (double_int::from_buffer): ...this new static method.
12132         * double-int.h (double_int::from_buffer): Prototype it.
12134 2013-01-30  Richard Biener  <rguenther@suse.de>
12136         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
12137         New pointer-map and obstack.
12138         (init_alias_vars): Allocate pointer-map and obstack.
12139         (delete_points_to_sets): Free them.
12140         (find_what_var_points_to): Cache result.
12141         (find_what_p_points_to): Adjust for changed interface of
12142         find_what_var_points_to.
12143         (compute_points_to_sets): Likewise.
12144         (ipa_pta_execute): Likewise.
12146 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12148         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
12149         * configure: Regenerate.
12150         * config.in: Regenerate.
12151         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
12152         #nobits/#progbits if supported.
12154 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
12156         PR target/56121
12157         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
12158         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
12159         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
12161 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
12163         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
12164         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
12166 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
12168         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
12169         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
12171 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
12173         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
12174         declaration.
12175         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
12176         * config/arm/cortex-a7.md: New bypasses using
12177         arm_mac_accumulator_is_result.
12179 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
12181         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
12182         (cortex_a7_neon_mla): Likewise.
12183         (cortex_a7_fpfmad): New reservation.
12184         (cortex_a7_fpmacs): Use ffmas and update required units.
12185         (cortex_a7_fpmuld): Update required units and latency.
12186         (cortex_a7_fpmacd): Likewise.
12187         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
12188         (cortex_a7_neon). Likewise.
12189         (bypass) Update participating units.
12191 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
12193         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
12194         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
12195         from fmac to ffma.
12196         * config/arm/vfp11.md (vfp_farith): Use ffmas.
12197         (vfp_fmul): Use ffmad.
12198         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
12199         (cortex_r4_fmacd): Use ffmad.
12200         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
12201         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
12202         (cortex_a9_fmacd): Use ffmad.
12203         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
12204         (cortex_a8_vfp_macd): Use ffmad.
12205         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
12206         (cortex_a5_fpmacd): Use ffmad.
12207         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
12208         (cortex_a15_vfp_macd): Use ffmad.
12209         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
12211 2013-01-29  Jason Merrill  <jason@redhat.com>
12213         PR libstdc++/54314
12214         * varasm.c (default_assemble_visibility): Don't warn about
12215         visibility on artificial decls.
12217 2013-01-29  Richard Biener  <rguenther@suse.de>
12219         PR tree-optimization/56113
12220         * tree-ssa-structalias.c (equiv_class_lookup): Also return
12221         the bitmap leader.
12222         (label_visit): Free duplicate bitmaps and record the leader instead.
12223         (perform_var_substitution): Adjust.
12225 2013-01-29  Richard Biener  <rguenther@suse.de>
12227         PR tree-optimization/55270
12228         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
12229         the CFG, schedule loops for fixup.
12231 2013-01-29  Nick Clifton  <nickc@redhat.com>
12233         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
12234         SP_REG.
12236 2013-01-28  Leif Ekblad  <leif@rdos.net>
12238         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
12239         * config/i386/i386.h (TARGET_RDOS): New macro.
12240         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
12241         * config/i386/i386.c (ix86_option_override_internal): For 64bit
12242         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
12243         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
12244         DEFAULT_LARGE_SECTION_THRESHOLD.
12245         * config/i386/i386.md (R14_REG, R15_REG): New constants.
12246         * config/i386/rdos.h: New file.
12247         * config/i386/rdos64.h: New file.
12249 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
12251         PR other/54814
12252         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
12253         TEST_HARD_REG_BIT.
12255 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
12257         PR rtl-optimization/56117
12258         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
12259         call cselib_lookup_from_insn on the MEM before calling
12260         add_insn_mem_dependence.
12262 2013-01-28  Richard Biener  <rguenther@suse.de>
12264         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
12265         to a stmt that didn't have one.
12266         (copy_phis_for_bb): Likewise for PHI arguments.
12267         (copy_debug_stmt): Likewise for debug stmts.
12269 2013-01-28  Richard Biener  <rguenther@suse.de>
12271         PR tree-optimization/56034
12272         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
12273         (partition_builtin_p): Adjust.
12274         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
12275         it is the last partition.
12276         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
12277         up the vertex for the definition.
12278         (classify_partition): Classify whether a partition is a
12279         PKIND_REDUCTION, thus has uses outside of the loop.
12280         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
12281         Merge all PKIND_REDUCTION partitions into the last partition.
12282         (tree_loop_distribution): Seed partitions from reductions as well.
12284 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
12286         PR tree-optimization/56125
12287         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
12288         pow(x,c) into sqrt(x) * powi(x, n/2) or
12289         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
12290         optimizing for size.
12291         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
12292         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
12293         integer.
12295         PR tree-optimization/56094
12296         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
12297         to UNKNOWN_LOCATION while gimplifying expr.
12299 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
12301         PR target/56114
12302         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
12303         operand 0 in movabs insn template for -masm=intel asm alternative.
12304         (*movabs<mode>_2): Ditto for operand 1.
12306 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
12308         PR target/54663
12309         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
12310         of microblaze-c.o
12312 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
12314         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
12315         tm_file.
12317 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
12319         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
12320         Undef to avoid warning.
12322 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
12324         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
12325         * configure: Regenerate.
12327 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
12329         PR tree-optimization/56098
12330         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
12331         for stmts with volatile ops.
12332         (cond_store_replacement): Don't optimize if assign has volatile ops.
12333         (cond_if_else_store_replacement_1): Don't optimize if either
12334         then_assign or else_assign have volatile ops.
12335         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
12336         volatile ops.
12338 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
12340         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
12342 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
12344         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
12345         missing ':' in asm example.
12347 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
12349         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
12350         entries into lane and laneq entries.
12351         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
12352         Remove AdvSIMD scalar modes.
12353         (aarch64_sq<r>dmulh_laneq<mode>): New.
12354         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
12355         modes.
12356         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
12357         builtin implementations to relfect changes in RTL in aarch64-simd.md.
12358         * config/aarch64/iterators.md (VCOND): New.
12359         (VCONQ): New.
12361 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
12363         PR target/54222
12364         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
12365         Add NULL LIBNAME argument to existing definitions.
12366         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
12367         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
12368         * config/avr/avr.c (DEF_BUILTIN): Same.
12369         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
12370         (avr_expand_builtin): Expand to a vanilla call if a libgcc
12371         implementation is available (DECL_ASSEMBLER_NAME is set).
12372         (avr_fold_absfx): New static function.
12373         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
12374         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
12375         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
12376         AVR_BUILTIN_ABSLLK.
12377         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
12378         (abshk, absk, abslk, absllk): Provide as static inline functions.
12380 2013-01-25  Marek Polacek  <polacek@redhat.com>
12382         PR tree-optimization/56035
12383         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
12385 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
12387         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
12388         (*movtf_internal_rex64): Add (!o,C) alternative
12389         (*movxf_internal_rex64): Ditto.
12390         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
12392 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
12394         * doc/invoke.texi: fix typo.
12395         * doc/objc.texi: fix typo.
12397 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
12399         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
12400         for the first two alternatives.
12402 2013-01-24  Diego Novillo  <dnovillo@google.com>
12404         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
12405         (ggc-zone.o): Remove.
12406         * configure.ac: Remove option --with-gc.
12407         * configure: Re-generate.
12408         * doc/install.texi: Remove documentation for --with-gc.
12409         * gengtype.c (write_enum_defn): Remove.  Update all users.
12410         (write_Types_process_field): Remove generation of gt_e_* argument.
12411         (output_type_enum): Remove.  Update all users.
12412         (write_enum_defn): Remove.  Update all users.
12413         (enum alloc_zone): Remove.  Update all users.
12414         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
12415         * ggc-common.c (ggc_splay_alloc): Remove first argument.
12416         Update all callers.
12417         (struct ptr_data): Remove field TYPE.  Update all users.
12418         (gt_pch_note_object): Remove argument TYPE.  Update all users.
12419         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
12420         Update all users.
12421         * ggc-none.c (ggc_alloc_typed_stat): Remove.
12422         (struct alloc_zone): Remove.
12423         (ggc_internal_alloc_zone_stat): Remove.
12424         (ggc_internal_cleared_alloc_zone_stat): Remove.
12425         * ggc-page.c (ggc_alloc_typed_stat): Remove.
12426         (ggc_pch_count_object): Remove last argument.  Update all users.
12427         (ggc_pch_alloc_object): Remove last argument.  Update all users.
12428         (struct alloc_zone): Remove.
12429         * ggc-zone.c: Remove.
12430         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
12431         (struct alloc_zone): Remove.
12432         (ggc_alloc_typed_stat): Remove.
12433         (ggc_alloc_typed): Remove.
12434         (ggc_splay_alloc): Remove first argument.
12435         (rtl_zone): Remove.  Update all users.
12436         (tree_zone): Remove.  Update all users.
12437         (tree_id_zone): Remove.  Update all users.
12438         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
12439         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
12440         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
12441         * tree-ssanames.c: Remove references to zone allocator in comments.
12443 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
12445         * config/avr/avr.c (avr_out_fract): Make register numbers that
12446         might be outside of source operand signed.
12448 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
12450         * config/i386/constraints.md (Yf): New constraint.
12451         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
12452         of f constraint to conditionaly disable x87 register preferences.
12453         (*movdf_internal): Ditto.
12454         (*movsf_internal): Ditto.
12456 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
12458         PR inline-asm/55934
12459         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
12460         that have operands with impossible constraints.
12461         Add a FIXME for a speed-up opportunity.
12462         * lra-constraints.c (process_alt_operands): Verify that a class
12463         selected from constraints on asms is valid for the operand mode.
12464         (curr_insn_transform): Remove incorrect comment.
12466 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
12468         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
12469         TOC operand is a valid symbol ref in the constant pool.
12471 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
12473         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
12475 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
12477         PR target/54222
12478         * config/avr/stdfix.h: New file.
12479         * t-avr (stdfix-gcc.h): New rule to build it.
12480         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
12482 2013-01-23  Kostya Serebryany  <kcc@google.com>
12484         * config/darwin.h: remove dependency on
12485         CoreFoundation (asan on Mac OS).
12487 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
12489         PR target/49069
12490         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
12491         instead of cmpdi_operand for first comparison operand.
12492         Don't assert that comparison operands aren't both constants.
12494 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
12496         * doc/install.texi (Downloading the Source): Update references to
12497         downloading separate components.
12499 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
12501         * doc/extend.texi (__int128): Improve grammar.
12503 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
12505         PR target/56028
12506         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
12507         alternative to (o,r).
12508         (*movdi_internal_rex64): Remove (!o,n) alternative.
12509         (DImode immediate->memory splitter): Remove.
12510         (DImode immediate->memory peephole2): Remove.
12511         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
12512         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
12513         alternative to (!o,*r).
12514         (*movtf_internal_sse): New pattern.
12515         (*movxf_internal_rex64): New pattern.
12516         (*movxf_internal): Disable for TARGET_64BIT.
12517         (*movdf_internal_rex64): Remove (!o,F) alternative.
12519 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
12521         PR middle-end/56074
12522         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
12523         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
12524         * tree-vect-loop-manip.c (find_loop_location): Also ignore
12525         stmt locations where LOCATION_LOCUS of the stmt location is
12526         UNKNOWN_LOCATION or BUILTINS_LOCATION.
12528         PR target/55686
12529         * config/i386/i386.md (UNSPEC_STOS): New.
12530         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
12531         *strsetqi_1): Add UNSPEC_STOS.
12533 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
12535         PR c++/56067
12536         * doc/invoke.texi: Remove left over -Wsynth example.
12538 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
12540         PR tree-optimization/56051
12541         * fold-const.c (fold_binary_loc): Don't fold
12542         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
12543         a narrowing conversion, or widening conversion from signed
12544         to unsigned.
12546 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
12548         PR rtl-optimization/56023
12549         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
12550         dependent on debug instruction.
12552 2013-01-21  Martin Jambor  <mjambor@suse.cz>
12554         PR middle-end/56022
12555         * function.c (allocate_struct_function): Call
12556         invoke_set_current_function_hook earlier.
12558 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
12560         * reload1.c (init_reload): Only initialize reload_obstack
12561         during the first call.
12563 2013-01-21  Marek Polacek  <polacek@redhat.com>
12565         * cfgloop.c (verify_loop_structure): Fix up grammar.
12567 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
12569         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
12570         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
12572 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12574         PR target/56058
12575         * config/arm/marvell-pj4.md: Update copyright year.
12576         Fix up use of alu to alu_reg and simple_alu_imm.
12578 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
12580         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
12582 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
12584         PR target/55433
12585         * lra-constraints.c (curr_insn_transform): Don't reuse original
12586         insn for secondary memory move when memory mode should be different.
12588 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12590         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
12591         atomic_storedi_1): New patterns.
12593 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
12595         btver2 pipeline descriptions.
12596         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
12597         descriptions.
12598         * config/i386/i386.md (btver2_decode): New type attributes.
12599         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
12600         type attributes.
12601         * config/i386/btver2.md: New file describing btver2 pipelines.
12603 2013-01-19  Andrew Pinski  <apinski@cavium.com>
12605         PR tree-optimization/52631
12606         * tree-ssa-sccvn (visit_use): Before looking up the original
12607         statement, try looking up the simplified expression.
12609 2013-01-19  Anthony Green  <green@moxielogic.com>
12611         * config/moxie/moxie.c (moxie_expand_prologue): Set
12612         current_function_static_stack_size.
12614 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
12616         PR tree-optimization/56029
12617         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
12618         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
12620 2013-01-18  Sharad Singhai  <singhai@google.com>
12622         PR tree-optimization/55995
12623         * dumpfile.c (dump_loc): Print location only if available.
12624         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
12626 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
12628         PR target/55433
12629         * lra-constraints.c (curr_insn_transform): Reuse original insn for
12630         secondary memory move.
12631         (inherit_reload_reg): Use rclass instead of cl for
12632         check_secondary_memory_needed_p.
12634 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
12636         PR middle-end/56015
12637         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
12638         the case where writing real complex part of target modifies op1.
12640 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
12642         * config/aarch64/aarch64-simd.md
12643         (aarch64_vcond_internal<mode>): Handle unordered cases.
12644         * config/aarch64/iterators.md (v_cmp_result): New.
12646 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
12647             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12649         * config/arm/marvell-pj4.md: New file.
12650         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
12651         * config/arm/arm.md (generic_sched): Add marvell_pj4.
12652         (generic_vfp): Likewise.
12653         * config/arm/arm-cores.def: Add marvell-pj4.
12654         * config/arm/arm-tune.md: Regenerate.
12655         * config/arm/arm-tables.opt: Regenerate.
12656         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
12657         * doc/invoke.texi: Document marvell-pj4.
12659 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
12661         * config/aarch64/arm_neon.h: Map scalar types to standard types.
12663 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
12665         PR debug/54114
12666         PR debug/54402
12667         PR debug/49888
12668         * var-tracking.c (negative_power_of_two_p): New.
12669         (global_get_addr_cache, local_get_addr_cache): New.
12670         (get_addr_from_global_cache, get_addr_from_local_cache): New.
12671         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
12672         heading comment.
12673         (vt_stack_offset_p): Remove.
12674         (vt_canon_true_dep): Always canonicalize loc's address.
12675         (clobber_overlapping_mems): Make sure we have a MEM.
12676         (local_get_addr_clear_given_value): New.
12677         (val_reset): Clear local cached entries.
12678         (compute_bb_dataflow): Create and release the local cache.
12679         Disable duplicate MEMs clobbering.
12680         (emit_notes_in_bb): Clobber MEMs likewise.
12681         (vt_emit_notes): Create and release the local cache.
12682         (vt_initialize, vt_finalize): Create and release the global
12683         cache, respectively.
12684         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
12686 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
12688         PR libmudflap/53359
12689         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
12690         not found in the symtab.
12692 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
12694         PR debug/56006
12695         PR rtl-optimization/55547
12696         PR rtl-optimization/53827
12697         PR debug/53671
12698         PR debug/49888
12699         * alias.c (offset_overlap_p): New, factored out of...
12700         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
12701         the conservative special case for symbolic constants.  Don't
12702         adjust zero sizes on alignment.
12704 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
12706         PR rtl-optimization/52573
12707         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
12708         REG_UNUSED for the same register.
12710 2013-01-17  Richard Biener  <rguenther@suse.de>
12711             Marek Polacek  <polacek@redhat.com>
12713         PR rtl-optimization/55833
12714         * loop-unswitch.c (unswitch_loops): Move loop verification...
12715         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
12716         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
12717         Set it to true when we're removing a loop from hierarchy tree in
12718         an irreducible region.
12719         (fix_bb_placements): Adjust caller.
12720         (fix_loop_placements): Likewise.
12722 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
12724         * config/avr/builtins.def (DEF_BUILTIN): Factor out
12725         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
12726         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
12727         Remove ID.  Adjust comments.
12728         * config/avr/avr-c.c (avr_builtin_name): Remove.
12729         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
12730         * config/avr/avr.c (avr_tolower): New static function.
12731         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
12732         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
12733         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
12734         default expansion.
12736 2013-01-17  Jan Hubicka  <jh@suse.cz>
12738         PR tree-optimization/55273
12739         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
12741 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
12743         PR target/55981
12744         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
12745         store through atomic_store<mode>_1.
12746         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
12748 2013-01-17  Martin Jambor  <mjambor@suse.cz>
12750         PR tree-optimizations/55264
12751         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
12752         for virtual methods.
12753         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
12754         virtual methods before inlining is over.
12755         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
12756         virtual functions.
12757         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
12758         non-virtual.
12760 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
12762         PR rtl-optimization/56005
12763         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
12764         pending reads for prefetch.
12766 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
12768         * config/aarch64/aarch64.md
12769         (*cstoresi_neg_uxtw): New pattern.
12770         (*cmovsi_insn_uxtw): New pattern.
12771         (*<optab>si3_uxtw): New pattern.
12772         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
12773         (*<optab>si3_insn_uxtw): New pattern.
12774         (*bswapsi2_uxtw): New pattern.
12776 2013-01-16  Richard Biener  <rguenther@suse.de>
12778         * tree-inline.c (tree_function_versioning): Remove set but
12779         never used variable.
12781 2013-01-16  Richard Biener  <rguenther@suse.de>
12783         PR tree-optimization/55964
12784         * tree-flow.h (rename_variables_in_loop): Remove.
12785         (rename_variables_in_bb): Likewise.
12786         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
12787         (copy_loop_before): Adjust and delete update-ssa status.
12788         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
12789         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
12790         (rename_variables_in_loop): Remove.
12791         (slpeel_update_phis_for_duplicate_loop): Likewise.
12792         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
12793         use available cfg machinery instead of duplicating it.
12794         Update PHI nodes and perform poor-mans SSA update here.
12795         (slpeel_tree_peel_loop_to_edge): Adjust.
12797 2013-01-16  Richard Biener  <rguenther@suse.de>
12799         PR tree-optimization/54767
12800         PR tree-optimization/53465
12801         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
12802         (vrp_visit_phi_node): For PHI arguments coming via backedges
12803         drop all symbolical range information.
12804         (execute_vrp): Compute backedges.
12806 2013-01-16  Richard Biener  <rguenther@suse.de>
12808         * doc/install.texi: Update CLooG and ISL requirements to
12809         0.18.0 and 0.11.1.
12811 2013-01-16  Christian Bruel  <christian.bruel@st.com>
12813         PR target/55301
12814         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
12815         (broken_move): Handle UNSPECV_SP_SWITCH_B.
12816         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
12818 2013-01-16  DJ Delorie  <dj@redhat.com>
12820         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
12821         (UNSPECV_SP_SWITCH_E): New.
12822         (sp_switch_1): Change to an unspec.
12823         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
12824         replace $r15.
12826 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
12828         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
12829         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
12830         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
12831         (expand_mem_thread_fence): Ditto.
12832         (expand_mem_signal_fence): Ditto.
12833         (expand_atomic_load): Ditto.
12834         (expand_atomic_store): Ditto.
12836 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
12838         PR rtl-optimization/55547
12839         PR rtl-optimization/53827
12840         PR debug/53671
12841         PR debug/49888
12842         * alias.c (memrefs_conflict_p): Set sizes to negative after
12843         AND adjustments.
12845 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
12847         PR target/55940
12848         * function.c (thread_prologue_and_epilogue_insns): Always
12849         add crtl->drap_reg to set_up_by_prologue.set, even if
12850         stack_realign_drap is false.
12852 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
12854         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
12855         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
12856         *call): Fix indention.
12858 2013-01-15  Tom de Vries  <tom@codesourcery.com>
12860         PR target/55876
12861         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
12862         Update comment.
12864 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
12866         PR rtl-optimization/55153
12867         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
12869 2013-01-15  Martin Jambor  <mjambor@suse.cz>
12871         PR tree-optimization/55920
12872         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
12873         accesses as grp_to_be_debug_replaced.
12875 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
12877         PR tree-optimization/55920
12878         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
12879         there is non-useless type conversion needed from debug rhs to lhs,
12880         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
12882 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
12883             Mikael Pettersson  <mikpe@it.uu.se>
12885         PR target/43961
12886         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
12887         Thumb.
12888         (ASM_OUTPUT_CASE_LABEL): Remove.
12889         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
12890         * final.c (shorten_branches): Update alignment of labels before
12891         jump tables if CASE_VECTOR_SHORTEN_MODE.
12893 2013-01-15  Richard Biener  <rguenther@suse.de>
12895         PR bootstrap/55961
12896         * system.h: Do not include gmp.h for building host tools.
12898 2013-01-15  Richard Biener  <rguenther@suse.de>
12900         PR middle-end/55882
12901         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
12902         account for bitpos when computing alignment.
12904 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
12906         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
12907         (ix86_target_macros_internal): Likewise.
12909         * config/i386/i386.c (m_CORE2I7): Removed.
12910         (m_CORE_HASWELL): New macro.
12911         (m_CORE_ALL): Likewise.
12912         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
12913         (initial_ix86_arch_features): Likewise.
12914         (processor_target_table): Initializations for Core avx2.
12915         (cpu_names): New names "core-avx2".
12916         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
12917         PROCESSOR_CORE_HASWELL.
12918         (ix86_issue_rate): New case.
12919         (ia32_multipass_dfa_lookahead): Likewise.
12920         (ix86_sched_init_global): Likewise.
12922         * config/i386/i386.h (TARGET_HASWELL): New macro.
12923         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
12924         (processor_type): New PROCESSOR_HASWELL.
12926 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
12928         PR tree-optimization/55955
12929         * tree-vect-loop.c (vectorizable_reduction): Give up early on
12930         *SHIFT_EXPR and *ROTATE_EXPR codes.
12932         PR tree-optimization/48766
12933         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
12934         -ftrapv disable -fwrapv.
12936 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
12938         PR target/55974
12939         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
12940         etc. to 1 and not to __flash.
12941         Use LL suffix for __INT24_MAX__ with -mint8.
12942         Use ULL suffix for __UINT24_MAX__ with -mint8.
12944 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
12946         * config/avr/avr-arch.h
12947         (struct base_arch_s): Use typedef avr_arch_t instead.
12948         (struct arch_info_s): Use typedef avr_arch_info_t instead.
12949         (struct mcu_type_s): Use typedef avr_mcu_t instead.
12950         * config/avr/avr.c: Same.
12951         * config/avr/avr-devices.c: Same.
12952         * config/avr/driver-avr.c: Same.
12953         * config/avr/gen-avr-mmcu-texi.c: Same.
12954         * config/avr/avr-mcus.def: Adjust comment.
12956 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
12958         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
12959         * config/aarch64/iterators.md (VALLDI): New.
12961 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
12962             Andi Kleen  <ak@linux.intel.com>
12964         PR target/55948
12965         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
12966         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
12967         memmodel flag.
12969 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
12971         * config/avr/avr-stdint.h: Remove trailing blanks.
12972         * config/avr/avr-log.h: Same.
12973         * config/avr/avr-arch.h: Same.
12974         * config/avr/avr-devices.c: Same.
12975         * config/avr/avr-dimode.md: Same.
12976         * config/avr/predicates.md: Same.
12977         * config/avr/avr-c.c: Same.  And fix typo.
12979         * config/avr/avr-protos.h: Same.  And:
12980         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
12981         (init_cumulative_args): Rename to avr_init_cumulative_args.
12982         (expand_prologue): Rename to avr_expand_prologue.
12983         (expand_epilogue): Rename to avr_expand_epilogue.
12984         (adjust_insn_length): Rename to avr_adjust_insn_length.
12985         (notice_update_cc): Rename to avr_notice_update_cc.
12986         (final_prescan_insn): Rename to avr_final_prescan_insn.
12987         * config/avr/avr.c: Same.
12988         * config/avr/avr.h: Same.
12989         * config/avr/avr.md: Remove trailing blanks.
12990         (prologue): Use avr_expand_prologue.
12991         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
12993 2013-01-14  Richard Biener  <rguenther@suse.de>
12995         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
12996         verify_location, collect_subblocks): New functions.
12997         (verify_gimple_in_cfg): Verify that locations only reference
12998         BLOCKs in the functions BLOCK tree.
13000 2013-01-14  Richard Biener  <rguenther@suse.de>
13002         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
13003         PHI argument.
13004         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
13005         unshare reference.
13006         (insert_out_of_ssa_copy_on_edge): Likewise.
13007         (rewrite_close_phi_out_of_ssa): Likewise.
13008         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
13009         debug expressions.
13010         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
13011         propagated constants.
13012         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
13013         can not be shared.
13015 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
13017         * config/avr/avr-modes.def: Add GPL copyright notice.
13019 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
13021         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
13022         MEMMODEL_MASK to determine memory model.
13023         (atomic_store<mode>): Ditto from operands[2].
13024         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
13026 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
13028         PR fortran/55935
13029         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
13030         (fold_gimple_assign): Don't call unshare_expr here.
13031         (fold_ctor_reference): Call unshare_expr.
13033 2013-01-13  Terry Guo  <terry.guo@arm.com>
13035         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
13036         * doc/fragments.texi: Document MULTILIB_REUSE.
13037         * gcc.c (multilib_reuse): New internal spec.
13038         (set_multilib_dir): Also search multilib from multilib_reuse.
13039         * genmultilib (tmpmultilib3): Refactor code.
13040         (tmpmultilib4): Ditto.
13041         (multilib_reuse): New multilib argument.
13043 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
13045         * Makefile.in: Update copyright.
13047 2013-01-12  Tom de Vries  <tom@codesourcery.com>
13049         PR middle-end/55890
13050         * calls.c (expand_call): Check if arg_nr is valid.
13052 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
13054         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
13055         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
13056         documentation.  Add missing '__' in front of
13057         __builtin_ia32_packssdw256.
13059 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13061         PR target/55719
13062         * config/s390/s390.c (s390_preferred_reload_class): Do not return
13063         NO_REGS for larl operands.
13064         (s390_reload_larl_operand): Use s390_load_address instead of
13065         emit_move_insn.
13067 2013-01-11  Richard Biener  <rguenther@suse.de>
13069         * tree-cfg.c (verify_node_sharing_1): Split out from ...
13070         (verify_node_sharing): ... here.
13071         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
13073 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
13075         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
13076         Substitute TREECHECKING.
13077         * configure: Regenerate.
13078         * Makefile.in (TREECHECKING): New.
13080 2013-01-11  Richard Guenther  <rguenther@suse.de>
13082         PR tree-optimization/44061
13083         * tree-vrp.c (extract_range_basic): Compute zero as
13084         value-range for __builtin_constant_p of function parameters.
13086 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
13088         Update copyright years.
13090 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
13092         PR rtl-optimization/55672
13093         * lra-eliminations.c (mark_not_eliminable): Permit addition with
13094         const to be eliminable.
13096 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
13098         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
13099         * configure: Regenerate.
13101 2013-01-10  Richard Biener  <rguenther@suse.de>
13103         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
13105 2013-01-10  Richard Biener  <rguenther@suse.de>
13107         PR bootstrap/55792
13108         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
13109         locations for virtual PHI arguments.
13110         (rewrite_update_phi_arguments): Likewise.
13112 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
13114         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
13115         on to assembler.
13117 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
13119         PR tree-optimization/55921
13120         * tree-complex.c (expand_complex_asm): New function.
13121         (expand_complex_operations_1): Call it for GIMPLE_ASM.
13123 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13125         PR target/55718
13126         * config/s390/s390.c (s390_symref_operand_p)
13127         (s390_loadrelative_operand_p): Merge the two functions.
13128         (s390_check_qrst_address, print_operand_address): Add parameters
13129         to s390_loadrelative_operand_p invokation.
13130         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
13131         (s390_reload_larl_operand, s390_secondary_reload): Use
13132         s390_loadrelative_operand_p instead of s390_symref_operand_p.
13133         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
13135 2013-01-09  Mike Stump  <mikestump@comcast.net>
13137         * dse.c (record_store): Remove unnecessary assert.
13139 2013-01-09  Jan Hubicka  <jh@suse.cz>
13141         PR tree-optimization/55569
13142         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
13143         * cfgloop.h (scale_loop_profile): Likewise.
13145 2013-01-09  Jan Hubicka  <jh@suse.cz>
13147         PR lto/45375
13148         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
13149         functions.
13150         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
13152 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
13154         PR middle-end/55114
13155         * expr.h (maybe_emit_group_store): Declare.
13156         * expr.c (maybe_emit_group_store): New function.
13157         * builtins.c (expand_builtin_int_roundingfn): Call it.
13158         (expand_builtin_int_roundingfn_2): Likewise.
13160 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
13162         PR rtl-optimization/55829
13163         * lra-constraints.c (match_reload): Add code for absent output.
13164         (curr_insn_transform): Add code for reloads of matched inputs
13165         without output.
13167 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
13169         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
13170         attribute of movddup insn to DF.
13171         (*vec_interleave_lowv2df): Ditto.
13172         (vec_dupv2df): Ditto.
13174 2013-01-09  Jan Hubicka  <jh@suse.cz>
13176         PR tree-optimiation/55875
13177         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
13178         EVERY_ITERATION parameter.
13179         (number_of_iterations_exit): Check if exit is executed every iteration.
13180         (idx_infer_loop_bounds): Similarly here.
13181         (n_of_executions_at_most): Simplify
13182         to only test for cases where statement is dominated by the
13183         particular bound; handle correctly the "postdominance" test.
13184         (scev_probably_wraps_p): Use max loop iterations info
13185         as a global bound first.
13187 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
13188             Nick Clifton  <nickc@redhat.com>
13190         * config/v850/v850.md (cbranchsf4): New pattern.
13191         (cstoresf4): New pattern.
13192         (cbranchdf4): New pattern.
13193         (cstoredf4): New pattern.
13194         (movsicc): Disallow floating point comparisons.
13195         (cmpsf_le_insn): Fix order of operators.
13196         (cmpsf_lt_insn): Likewise.
13197         (cmpsf_eq_insn): Likewise.
13198         (cmpdf_le_insn): Likewise.
13199         (cmpdf_lt_insn): Likewise.
13200         (cmpdf_eq_insn): Likewise.
13201         (cmpsf_ge_insn): Use LE comparison.
13202         (cmpdf_ge_insn): Likewise.
13203         (cmpsf_gt_insn): Use LT comparison.
13204         (cmpdf_gt_insn): Likewise.
13205         (cmpsf_ne_insn): Delete pattern.
13206         (cmpdf_ne_insn): Delete pattern.
13207         * config/v850/v850.c (v850_gen_float_compare): Use
13208         gen_cmpdf_eq_insn for NE comparison.
13209         (v850_float_z_comparison_operator)
13210         (v850_float_nz_comparison_operator): Move from here ...
13211         * config/v850/predicates.md: ... to here.  Move GT and GE
13212         comparisons into v850_float_z_comparison_operator.
13213         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
13214         Delete prototype.
13215         (v850_float_nz_comparison_operator): Likewise.
13217 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13219         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
13220         with calls to gen_insvsi/gen_insvdi.
13222 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
13224         * config/i386/i386.c (initial_ix86_tune_features): Set up
13225         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
13227 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
13228             Jakub Jelinek  <jakub@redhat.com>
13230         PR tree-optimization/48189
13231         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
13232         If nitercst is 0, don't predict the exit edge.
13234 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
13236         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
13237         in asm_fprintf with reg_names.
13238         (aarch64_print_operand_address): Likewise.
13239         (aarch64_return_addr): Likewise.
13240         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
13242 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13244         * config/pa/pa.h (VAL_U6_BITS_P): Define.
13245         (INT_U6_BITS): Likewise.
13246         * config/pa/predicates.md (uint6_operand): New predicate.
13247         (shift5_operand, shift6_operand): Likewise.
13248         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
13249         arith32_operand.
13250         (lshrdi3): Use shift6_operand.
13251         (shrpsi4, shrpdi4): New insn patterns.
13252         (extzv): Delete expander.
13253         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
13254         predicates in unamed zero extract patterns.  Tighten common constraint.
13255         (extv): Delete expander.
13256         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
13257         predicates in unamed sign extract patterns.  Tighten common constraint.
13258         (insv): Delete expander.
13259         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
13260         predicates in unamed insert patterns.  Tighten common constraint.
13261         Change uint32_operand predicate to uint6_operand predicate in unamed
13262         DImode pattern to insert constant values of type 1...1xxxx.
13264 2013-01-04  Jan Hubicka  <jh@suse.cz>
13266         PR tree-optimization/55823
13267         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
13268         issue.
13270 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
13271             Uros Bizjak  <ubizjak@gmail.com>
13273         PR rtl-optimization/55845
13274         * df-problems.c (can_move_insns_across): Stop scanning at
13275         volatile_insn_p source instruction or give up if
13276         across_from .. across_to range contains any volatile_insn_p
13277         instructions.
13279 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
13281         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
13282         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
13283         Declare.
13284         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
13285         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
13287 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
13289         PR fortran/55341
13290         * asan.c (asan_clear_shadow): New function.
13291         (asan_emit_stack_protection): Use it.
13293 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
13295         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
13296         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
13297         with tab instead of space.
13299 2013-01-08  Nick Clifton  <nickc@redhat.com>
13301         * config/rl78/rl78.c (rl78_expand_prologue): Always select
13302         register bank 0 at the start of an interrupt handler.
13303         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
13304         MDBH registers.
13306 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
13308         * config/aarch64/aarch64-simd.md
13309         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
13310         (aarch64_simd_bsl): Likewise.
13311         (aarch64_vcond_internal<mode>): Likewise.
13312         (vcond<mode><mode>): Likewise.
13313         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
13314         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
13316 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
13318         * config/aarch64/aarch64-builtins.c
13319         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
13321 2013-01-08  Martin Jambor  <mjambor@suse.cz>
13323         PR debug/55579
13324         * tree-sra.c (analyze_access_subtree): Return true also after
13325         potentially creating a debug-only replacement.
13327 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
13329         PR middle-end/55890
13330         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
13332         PR tree-optimization/54120
13333         * tree-vrp.c (range_fits_type_p): Don't allow
13334         src_precision < precision from signed vr to unsigned_p
13335         if vr->min or vr->max is negative.
13336         (simplify_float_conversion_using_ranges): Test can_float_p
13337         against CODE_FOR_nothing.
13339 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
13340             Richard Biener  <rguenther@suse.de>
13342         PR middle-end/55851
13343         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
13344         types instead of just INTEGER_TYPE types.
13346 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
13348         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
13349         TF_SIZE): Define.
13351 2013-01-07  Steve Ellcey  <sellcey@mips.com>
13353         PR target/42661
13354         * config/mips/mips.opt: Change mad to mmad to match documentation.
13356 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
13358         PR target/55897
13359         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
13360         .progmemx.data now.
13362 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
13364         PR target/55897
13365         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
13366         (avr_addrspace_t): Add .section_name field.
13367         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
13368         array size.
13369         (avr_addrspace): Same.  Initialize .section_name.  Remove last
13370         NULL entry.  Put __memx into .progmemx.data.
13371         (progmem_section_prefix): Remove.
13372         (avr_asm_init_sections): No need to initialize progmem_section.
13373         (avr_asm_named_section): Use avr_addrspace[].section_name to get
13374         section name prefix.
13375         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
13376         retrieve the progmem section.
13377         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
13378         boundary to run over avr_addrspace[].
13379         (avr_register_target_pragmas): Ditto.
13381 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
13383         * varasm.c (output_constant_def_contents): For asan_protect_global
13384         protected strings, adjust DECL_ALIGN if needed, before testing for
13385         anchored symbols.
13386         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
13387         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
13388         normal decls.
13389         (output_object_block): For asan protected decls, emit asan padding
13390         after their contents.
13391         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
13392         (asan_finish_file): Test it here instead.
13394 2013-01-07  Nick Clifton  <nickc@redhat.com>
13395             Matthias Klose  <doko@debian.org>
13396             Doug Kwan  <dougkwan@google.com>
13397             H.J. Lu  <hongjiu.lu@intel.com>
13399         PR driver/55470
13400         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
13402         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
13404         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
13406         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
13408         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
13410 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
13412         PR target/54461
13413         * doc/install.texi (Cross-Compiler-Specific Options): Document
13414         --with-avrlibc.
13416 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
13418         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
13419         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
13420         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
13421         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
13422         vqmovun_high_s64): Fix source operand number and update copyright.
13424 2013-01-07  Richard Biener  <rguenther@suse.de>
13426         PR middle-end/55890
13427         * gimple.h (gimple_call_builtin_p): New overload.
13428         * gimple.c (validate_call): New function.
13429         (gimple_call_builtin_p): Likewise.
13430         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
13431         Use gimple_call_builtin_p.
13432         (find_func_clobbers): Likewise.
13433         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
13434         (strlen_optimize_stmt): Likewise.
13436 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
13438         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
13439         (vld1q_dup_*): Likewise.
13440         (vld1_*): Likewise.
13441         (vld1q_*): Likewise.
13442         (vld1_lane_*): Likewise.
13443         (vld1q_lane_*): Likewise.
13445 2013-01-07  Richard Biener  <rguenther@suse.de>
13447         * lto-streamer.h (LTO_minor_version): Bump to 2.
13449 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
13451         * config/aarch64/aarch64-protos.h
13452         (aarch64_const_double_zero_rtx_p): Rename to...
13453         (aarch64_float_const_zero_rtx_p): ...this.
13454         (aarch64_float_const_representable_p): New.
13455         (aarch64_output_simd_mov_immediate): Likewise.
13456         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
13457         move immediate case.
13458         * config/aarch64/aarch64.c
13459         (aarch64_const_double_zero_rtx_p): Rename to...
13460         (aarch64_float_const_zero_rtx_p): ...this.
13461         (aarch64_print_operand): Allow printing of new constants.
13462         (aarch64_valid_floating_const): New.
13463         (aarch64_legitimate_constant_p): Check for valid floating-point
13464         constants.
13465         (aarch64_simd_valid_immediate): Likewise.
13466         (aarch64_vect_float_const_representable_p): New.
13467         (aarch64_float_const_representable_p): Likewise.
13468         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
13469         (aarch64_output_simd_mov_immediate): New.
13470         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
13471         (*movdf_aarch64): Likewise.
13472         * config/aarch64/constraints.md (Ufc): New.
13473         (Y): call aarch64_float_const_zero_rtx.
13474         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
13476 2013-01-07  Richard Biener  <rguenther@suse.de>
13478         PR tree-optimization/55888
13479         PR tree-optimization/55862
13480         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
13481         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
13482         not if it is contained therein.
13484 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
13486         * config/avr/t-avr: Typo.
13488 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
13490         PR55243
13491         * config/avr/t-avr: Don't automatically rebuild
13492         $(srcdir)/config/avr/t-multilib
13493         $(srcdir)/config/avr/avr-tables.opt
13494         $(srcdir)/doc/avr-mmcu.texi
13495         (avr-mcus): New phony target to build them on request.
13496         (s-avr-mlib, s-avr-mmcu-texi): Remove.
13497         * avr/avr-mcus.def: Adjust comments.
13499 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
13501         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
13503 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
13505         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
13507 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
13509         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
13511 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
13513         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
13514         to generate profiling.
13515         * config/rs6000/aix64.h (LIB_SPEC): Same.
13517 2013-01-04  Andrew Pinski  <apinski@cavium.com>
13519         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
13520         New function.
13521         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
13523 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
13525         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
13526         unconditionally.
13527         (ix86_expand_move): Ditto.
13528         (ix86_zero_extend_to_Pmode): Ditto.
13529         (ix86_expand_call): Ditto.
13530         (ix86_expand_special_args_builtin): Ditto.
13531         (ix86_expand_builtin): Ditto.
13533 2013-01-04  Richard Biener  <rguenther@suse.de>
13535         PR tree-optimization/55862
13536         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
13537         translating them through PHI nodes.
13539 2013-01-04  Martin Jambor  <mjambor@suse.cz>
13541         PR tree-optimization/55755
13542         * tree-sra.c (sra_modify_assign): Do not check that an access has no
13543         children when trying to avoid producing a VIEW_CONVERT_EXPR.
13545 2013-01-04  Marek Polacek  <polacek@redhat.com>
13547         PR middle-end/55859
13548         * opts.c (default_options_optimization): Clarify error message.
13550 2013-01-04  Richard Biener  <rguenther@suse.de>
13552         PR middle-end/55863
13553         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
13554         reassociation.
13556 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13558         PR target/53789
13559         * config/pa/pa.md (movsi): Revert previous change.
13560         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
13561         references.
13563 2013-01-03  Richard Henderson  <rth@redhat.com>
13565         * config/i386/i386.c (ix86_expand_move): Always assign to op1
13566         after eliminating TLS symbols.
13568 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
13570         PR bootstrap/50167
13571         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
13572         * graphite-poly.c (debug_gmp_value): Likewise.
13574 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
13576         PR target/55712
13577         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
13578         selected code model, define __code_mode_small__, __code_model_medium__,
13579         __code_model_large__, __code_model_32__ or __code_model_kernel__.
13580         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
13581         xchg temporary register with %k.  Declare temporary register as
13582         early clobbered.
13583         [__x86_64__]: For medium and large code models, preserve %rbx register.
13585 2013-01-03  Richard Biener  <rguenther@suse.de>
13587         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
13588         (dump_subscript): Adjust.
13589         (finalize_ddr_dependent): Do not dump redundant info.
13590         (analyze_siv_subscript): Adjust.
13591         (subscript_dependence_tester): Likewise.
13592         (compute_affine_dependence): Likewise.
13594 2013-01-03  Richard Biener  <rguenther@suse.de>
13596         Revert
13597         2013-01-03  Richard Biener  <rguenther@suse.de>
13599         PR tree-optimization/55857
13600         * tree-vect-stmts.c (vectorizable_load): Do not setup
13601         re-alignment for invariant loads.
13603         2013-01-02  Richard Biener  <rguenther@suse.de>
13605         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
13606         invariant load do not generate a vector load from the scalar location.
13608 2013-01-03  Richard Biener  <rguenther@suse.de>
13610         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
13611         for not vectorizing.
13612         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
13613         not build INDIRECT_REFs, call get_name once only.
13614         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
13615         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
13617 2013-01-03  Richard Biener  <rguenther@suse.de>
13619         PR tree-optimization/55857
13620         * tree-vect-stmts.c (vectorizable_load): Do not setup
13621         re-alignment for invariant loads.
13623 2013-01-03  Richard Biener  <rguenther@suse.de>
13625         PR lto/55848
13626         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
13627         prefer a built-in decl.
13629 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
13631         * gcc.c (process_command): Update copyright notice dates.
13632         * gcov.c (print_version): Likewise.
13633         * gcov-dump.c (print_version): Likewise.
13635         PR rtl-optimization/55838
13636         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
13637         iv0.step, iv1.step and step.
13639 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
13640             Marc Glisse  <marc.glisse@inria.fr>
13642         PR tree-optimization/55832
13643         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
13644         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
13645         integer_{one,zero}_node.
13647 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
13649         PR debug/54402
13650         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
13651         * var-tracking.c (reverse_op): Don't add reverse ops to
13652         VALUEs that have already
13653         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
13655 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
13657         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
13659 2013-01-02  Teresa Johnson  <tejohnson@google.com>
13661         * dumpfile.c (dump_loc): Print filename with location.
13662         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
13663         new location_t parameter to emit complete unroll message with
13664         new dump framework.
13665         (canonicalize_loop_induction_variables): Compute loops location
13666         and pass to try_unroll_loop_completely.
13667         * loop-unroll.c (report_unroll_peel): New function.
13668         (peel_loops_completely): Use new dump format with location
13669         for main dumpfile message, and invoke report_unroll_peel on success.
13670         (decide_unrolling_and_peeling): Ditto.
13671         (decide_peel_once_rolling): Remove old dumpfile message subsumed
13672         by report_unroll_peel.
13673         (decide_peel_completely): Ditto.
13674         (decide_unroll_constant_iterations): Ditto.
13675         (decide_unroll_runtime_iterations): Ditto.
13676         (decide_peel_simple): Ditto.
13677         (decide_unroll_stupid): Ditto.
13678         * cfgloop.c (get_loop_location): New function.
13679         * cfgloop.h (get_loop_location): Declare.
13681 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
13683         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
13684         NULL.
13686 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13688         PR middle-end/55198
13689         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
13690         BLKmode objects when EXPAND_MEMORY is specified.
13692 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
13694         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
13695         in loop predicate.
13696         (fold_builtin_cpu): Do not share cpu model decls across statements.
13698 2013-01-02  Jason Merrill  <jason@redhat.com>
13700         PR c++/55804
13701         * tree.c (build_array_type_1): Revert earlier change.
13703 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
13705         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
13706         "cortex-a57".
13707         * config/aarch64/aarch64-tune.md: Re-generate.
13709 2013-01-02  Richard Biener  <rguenther@suse.de>
13711         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
13712         invariant load do not generate a vector load from the scalar location.
13714 2013-01-02  Richard Biener  <rguenther@suse.de>
13716         PR bootstrap/55784
13717         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
13718         * configure: Regenerate.
13720 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
13722         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
13723         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
13724         (expand_builtin_int_roundingfn_2): Keep the original target around
13725         for the fallback case.
13727 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
13729         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
13730         to be clear for sign changes.
13732 2013-01-01  Jan Hubicka  <jh@suse.cz>
13734         * ipa-inline-analysis.c: Fix formatting.
13736 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
13738         PR tree-optimization/55831
13739         * tree-vect-loop.c (get_initial_def_for_induction): Use
13740         gsi_after_labels instead of gsi_start_bb.
13742 Copyright (C) 2013 Free Software Foundation, Inc.
13744 Copying and distribution of this file, with or without modification,
13745 are permitted in any medium without royalty provided the copyright
13746 notice and this notice are preserved.