* config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
[official-gcc.git] / gcc / ChangeLog
blob5015d16f75266f3cb52298a6780b800584009550
1 2013-03-26  Roland McGrath  <mcgrathr@google.com>
3         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
4         than fprintf with a non-constant, non-format string.
6 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
8         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
9         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
10         operand 0 predicate.
11         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
12         attribute.  Use general_x64nomem_operand as operand 1 predicate.
13         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
14         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
15         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
16         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
17         (mov<mode>_insv_1): Remove expander.  Merge insn with
18         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
19         Use general_x64nomem_operand as operand 1 predicate.
20         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
21         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
22         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
23         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
24         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
25         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
26         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
27         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
28         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
29         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
30         (general_x64nomem_operand): Ditto.
32 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
34         * config/rtems.opt: Add -pthread option.
36 2013-03-26  Richard Biener  <rguenther@suse.de>
38         * alias.c (find_base_term): Avoid redundant and not used recursion.
39         (base_alias_check): Get the initial base term from the caller.
40         (true_dependence_1): Compute and pass base terms to base_alias_check.
41         (write_dependence_p): Likewise.
42         (may_alias_p): Likewise.
44 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
46         * config/aarch64/aarch64.c (aarch64_classify_address): Support
47         PC-relative load in SI modes and above only.
49 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
51         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
52         * config/arm/iwmmxt.md (WCGR0): Update.
53         (WCGR1, WCGR2, WCGR3): Likewise.
55 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
57         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
58         Use x64 and nox64 isa attributes.
60 2013-03-26  Richard Biener  <rguenther@suse.de>
62         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
63         alignment computations and rely on get_object_alignment_1
64         for the !TYPE_P case.
65         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
67 2013-03-26  Walter Lee  <walt@tilera.com>
69         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
70         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
72 2013-03-25  Jeff Law  <law@redhat.com>
73         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
74         check for INTEGRAL_TYPE_P that was missing due to checking in
75         wrong version of prior patch.
77 2013-03-25  Walter Lee  <walt@tilera.com>
79         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
80         TILEGX_INSN_SHUFFLEBYTES1.
81         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
82         shufflebytes1.
83         (tilegx_builtins): Ditto.
84         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
86 2013-03-25  Walter Lee  <walt@tilera.com>
88         * config/tilegx/tilegx.md (floatsisf2): New pattern.
89         (floatunssisf2): New pattern.
90         (floatsidf2): New pattern.
91         (floatunssidf2): New pattern.
93 2013-03-25  Walter Lee  <walt@tilera.com>
95         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
96         tests for constraint J, K, N, P.
98 2013-03-25  Walter Lee  <walt@tilera.com>
100         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
101         Use indirect/pcrel encoding.
102         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
103         Ditto.
105 2013-03-25  Steve Ellcey  <sellcey@mips.com>
107         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
108         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
109         * config/mips/mips.c (mips_option_override): Set IMADD default.
110         * config/mips/mips.h (PTF_AVOID_IMADD): New.
111         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
112         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
113         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
114         * doc/invoke.texi (-mimadd/-mno-imadd): New.
116 2013-03-25  Jeff Law  <law@redhat.com>
118         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
119         slightly to avoid creating and folding useless trees.  Simplify
120         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
122 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
124         * config/i386/i386.md (*zero_extendsidi2): Merge with
125         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
126         * config/i386/predicates.md (x86_64_zext_operand): Rename from
127         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
128         targets.  Clarify comment.
130 2013-03-25  Martin Jambor  <mjambor@suse.cz>
132         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
133         pass-through jump functions differently.
134         (ipa_read_jump_function): Likewise.  Also use setter functions to set
135         up jump functions.
137 2013-03-25  Martin Jambor  <mjambor@suse.cz>
139         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
140         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
141         process it.
142         (ipa_get_indirect_edge_target): New function.
143         (devirtualization_time_bonus): New parameter known_aggs, pass it to
144         ipa_get_indirect_edge_target.  Update all callers.
145         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
146         ipa_get_indirect_edge_target_1 instead of calling
147         ipa_get_indirect_edge_target.
148         (create_specialized_node): Pass aggvlas to
149         ipcp_discover_new_direct_edges.
151 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
153         * config/arm/arm.md (f_sels, f_seld): New types.
154         (*cmov<mode>): New pattern.
155         * config/arm/predicates.md (arm_vsel_comparison_operator): New
156         predicate.
158 2013-03-25  Kai Tietz  <ktietz@redhat.com>
160         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
161         POSIX-printf for mingw-hosted  builds.
163 2013-03-25  Richard Biener  <rguenther@suse.de>
165         PR middle-end/56694
166         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
167         must-not-throw stmt location.
169 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
171         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
172         Emit load-acquire versions when acq is true.
173         (arm_emit_store_exclusive): Add rel parameter.
174         Emit store-release versions when rel is true.
175         (arm_split_compare_and_swap): Use acquire-release instructions
176         instead.
177         of barriers when appropriate.
178         (arm_split_atomic_op): Likewise.
179         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
180         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
181         (VUNSPEC_SLX): Likewise.
182         (VUNSPEC_LDA): Likewise.
183         (VUNSPEC_STL): Likewise.
184         * config/arm/sync.md (atomic_load<mode>): New pattern.
185         (atomic_store<mode>): Likewise.
186         (arm_load_acquire_exclusive<mode>): Likewise.
187         (arm_load_acquire_exclusivesi): Likewise.
188         (arm_load_acquire_exclusivedi): Likewise.
189         (arm_store_release_exclusive<mode>): Likewise.
191 2013-03-25  Catherine Moore  <clm@codesourcery.com>
193         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
194         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
195         * config/mip/predicates.md (lwsp_swsp_operand,
196         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
197         sb16_operand, db4_operand, db7_operand, ib3_operand,
198         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
199         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
200         andi16_operand): New predicates.
201         * config/mips/mips.md (compression): New attribute.
202         (enabled): New attribute.
203         (length): Consider compression in computing length.
204         (shift_compression): New code attribute.
205         (*add<mode>3): New operands. Record compression.
206         (sub<mode>3): Likewise.
207         (one_cmpl<mode>2): Likewise.
208         (*and<mode>3): Likewise.
209         (*ior<mode>3): Likewise.
210         (unnamed pattern for xor): Likewise.
211         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
212         (*<optab><mode>3): Likewise.
213         (*mov<mode>_internal: Likewise.
214         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
215         (mips_unsigned_immediate_p): New.
216         (umips_lwsp_swsp_address_p): New.
217         (m16_based_address_p): New.
218         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
219         (mips_unsigned_immediate_p): New prototype.
220         (lwsp_swsp_address_p): New prototype.
221         (m16_based_address_p): New prototype.
222         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
223         (mips_signed_immediate_p): New function.
224         (m16_based_address_p): New function.
225         (lwsp_swsp_address_p): New function.
226         (mips_print_operand_punctuation): Recognize short delay slot insns
227         for microMIPS.add<mode>3"
229 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
231         PR target/56720
232         * config/arm/iterators.md (v_cmp_result): New mode attribute.
233         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
235 2013-03-25  Richard Biener  <rguenther@suse.de>
237         PR tree-optimization/56689
238         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
239         any edge.
241 2013-03-25  Richard Biener  <rguenther@suse.de>
243         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
244         of bitmap.
245         (memory_references): Likewise.
246         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
247         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
248         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
249         (gather_mem_refs_in_loops): Fold into ...
250         (analyze_memory_references): ... this.  Move initialization
251         to tree_ssa_lim_initialize.
252         (fill_always_executed_in): Rename to ...
253         (fill_always_executed_in_1): ... this.
254         (fill_always_executed_in): Move contains_call computation to
255         this new function from ...
256         (tree_ssa_lim_initialize): ... here.
257         (tree_ssa_lim): Call fill_always_executed_in.
259 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
261         * postreload.c (reload_combine): Fix code detecting returns.
263 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
265         * function.c (emit_use_return_register_into_block): On cc0 targets,
266         do not emit the sequence between cc0 setter and user.
268 2013-03-25  Kai Tietz  <ktietz@redhat.com>
270         * config/i386/predicates.md (local_symbolic_operand): Interpret
271         dll-imported symbols as none-local.
273 2013-03-25  Richard Biener  <rguenther@suse.de>
275         * tree-ssa-loop-im.c (struct depend): Remove.
276         (struct lim_aux_data): Make depends a vec of gimples.
277         (free_lim_aux_data): Adjust.
278         (add_dependency): Likewise.
279         (set_level): Likewise.
281 2013-03-25  Richard Biener  <rguenther@suse.de>
283         PR middle-end/56434
284         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
285         the pointer returned by calls with ECF_MALLOC set.
287 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
289         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
291 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
293         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
294         using MMXMODE mode iterator.
295         (*move<mode>_internal): Merge with *movv2sf_internal and
296         *movv2sf_internal_rex64 using MMXMODE mode iterator.
298 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
300         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
301         (record_last_mem_set_info): Likewise.
303         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
304         of XNEWVEC followed by memset.
305         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
307 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
309         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
310         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
311         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
312         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
313         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
314         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
315         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
316         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
317         BARRIER_P instead of GET_CODE.
319 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
321         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
322         inaccuracy in the probing code.
324         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
325         (ctrapdi4): Likewise.
327 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
329         * calls.c (expand_call): Add missing guard to code handling return
330         of non-BLKmode structures in MSB.
331         * function.c (expand_function_end): Likewise.
333 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
335         * combine.c (try_combine): Adjust comment.  Do not add the set of
336         insn #0 if the destination indirectly is set or dies in insn #2.
337         Tidy up code to distribute a new note.
339 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
341         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
342         also for alternatives 16 and 17.
344 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
346         * config/i386/sse.md (*mov<mode>_internal): Merge with
347         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
348         Emit insn template depending on type attribute.  Use
349         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
350         movd instead of movq mnemonic for interunit moves.  Rewrite mode
351         attribute calculation.  Remove unit attribute calculation.
352         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
353         Set prefix_data16 attribute for DImode ssemov types.
354         Use Ym instead of y for SSE-MMX conversion alternatives.
355         Reorder operand constraints.
357 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
359         * df.h (df_insn_delete): Adjust prototype.
360         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
361         and let it decide whether mark the basic block dirty.
362         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
363         * df-scan.c (df_insn_info_delete): New helper function, split
364         off from df_insn_delete.
365         (df_scan_free_bb_info): Use it.
366         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
367         Likewise.
368         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
369         that the insn is actually an insn and it has a non-NULL basic block.
370         Do not mark basic block dirty if only deleting a DEBUG_INSN.
372 2013-03-22  Richard Biener  <rguenther@suse.de>
374         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
375         dep_ref members.
376         (mem_ref_alloc): Do not allocate them.
377         (refs_independent_p): Do not query or maintain a cache.
379 2013-03-22  Richard Biener  <rguenther@suse.de>
381         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
382         (gather_mem_refs_in_loops): Do not compute it.
383         (analyze_memory_references): Do not allocate it.
384         (tree_ssa_lim_finalize): Do not free it.
385         (for_all_locs_in_loop): Do not query all_refs_in_loop.
387 2013-03-22  Richard Biener  <rguenther@suse.de>
389         * is-a.h (as_a): Use gcc_checking_assert.
391 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
393         * config/aarch64/aarch64.c (aarch64_print_operand): New
394         format specifier for printing a constant in hex.
395         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
396         format specifier for printing second operand.
398 2013-03-22  Richard Biener  <rguenther@suse.de>
400         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
401         bitmaps.
402         (gather_mem_refs_in_loops): Perform store accumulation here.
403         (create_vop_ref_mapping_loop): Remove.
404         (create_vop_ref_mapping): Likewise.
405         (analyze_memory_references): Initialize refs_stored_in_loop.
406         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
407         (record_indep_loop): Remove.
408         (record_dep_loop): New function.
409         (ref_indep_loop_p_1): Adjust to only walk over references
410         in the loop, not its subloops.
411         (ref_indep_loop_p): Rename to ...
412         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
413         maintaining a more fine-grained cache.
414         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
415         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
417 2013-03-22  Richard Biener  <rguenther@suse.de>
419         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
420         (struct mem_ref): Make accesses_in_loop a vec of a vec of
421         aggregate mem_ref_loc.
422         (free_mem_ref_locs): Inline into ...
423         (memref_free): ... this and adjust.
424         (mem_ref_alloc): Adjust.
425         (mem_ref_locs_alloc): Remove.
426         (record_mem_ref_loc): Adjust.
427         (get_all_locs_in_loop): Rewrite into ...
428         (for_all_locs_in_loop): ... this iterator.
429         (rewrite_mem_ref_loc): New functor.
430         (rewrite_mem_refs): Use for_all_locs_in_loop.
431         (sm_set_flag_if_changed): New functor.
432         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
433         (ref_always_accessed): New functor.
434         (ref_always_accessed_p): Use for_all_locs_in_loop.
436 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
438         * tree-pass.h (PROP_gimple_lvec): New.
439         * passes.c (dump_properties): Handle PROP_gimple_lvec.
440         (init_optimization_passes): Move pass_lower_vector.
441         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
442         PROP_gimple_lvec.
443         (pass_lower_vector): Provide PROP_gimple_lvec.
444         (pass_lower_vector_ssa): Likewise.
445         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
447 2013-03-21  Mark Wielaard  <mjw@redhat.com>
449         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
451 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
453         * config/i386/i386.md (*movdi_internal): Disparage slightly
454         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
455         conversion alternatives.
457 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
459         PR middle-end/48087
460         * diagnostic.def (DK_WERROR): New kind.
461         * diagnostic.h (werrorcount): Define.
462         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
463         promoted to DK_ERROR, increment DK_WERROR counter instead of
464         DK_ERROR counter.
465         * toplev.c (toplev_main): Call print_ignored_options even if
466         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
467         even if just werrorcount is non-zero.
469         PR debug/55608
470         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
471         on failure.
472         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
473         (string_cst_pool_decl): New function.
474         (optimize_one_addr_into_implicit_ptr): New function.
475         (resolve_addr_in_expr): Optimize DWARF location expression
476         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
477         which doesn't live in memory, but has DW_AT_location or
478         DW_AT_const_value, or refers to a string literal, into
479         DW_OP_GNU_implicit_pointer.
480         (optimize_location_into_implicit_ptr): New function.
481         (resolve_addr): If removing DW_AT_location of a variable because
482         it was DW_OP_addr of address of the variable, but the variable doesn't
483         live in memory, try to emit const value attribute for the initializer.
485 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
487         * tree.h (VECTOR_TYPE_P): New macro.
488         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
489         TYPE_MODE): Use it.
490         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
491         VEC_COND_EXPR cannot be lvalues.
492         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
494 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
496         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
497         Restrict the transformation to equal modes.
499 2013-03-21  Richard Biener  <rguenther@suse.de>
501         PR tree-optimization/39326
502         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
503         (MEM_ANALYZABLE): Adjust.
504         (record_mem_ref_loc): Move bitmap ops ...
505         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
506         unanalyzable refs, do not record locations for it.
507         (analyze_memory_references): Allocate ref zero as shared
508         unanalyzable ref.
509         (refs_independent_p): Do not test for unanalyzed mems here.
510         (ref_indep_loop_p_1): Special-case disambiguation against
511         the unanalyzed ref.
512         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
514 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
516         * config/arm/arm-protos.h (tune_params): Add
517         prefer_neon_for_64bits field.
518         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
519         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
520         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
521         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
522         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
523         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
524         (arm_option_override): Handle -mneon-for-64bits new option.
525         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
526         (prefer_neon_for_64bits): Declare new variable.
527         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
528         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
529         (arch_enabled): Handle new arch types. Remove support for onlya8
530         and nota8.
531         (one_cmpldi2): Use new arch names.
532         (zero_extend<mode>di2, extend<mode>di2): Ditto.
533         * config/arm/arm.opt (mneon-for-64bits): Add option.
534         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
535         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
536         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
537         of onlya8.
538         * doc/invoke.texi (-mneon-for-64bits): Document.
540 2013-03-21  Richard Biener  <rguenther@suse.de>
542         PR tree-optimization/39326
543         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
544         (sort_bbs_in_loop_postorder_cmp): New function.
545         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
547 2013-03-21  Richard Biener  <rguenther@suse.de>
549         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
550         (vect_insert_into_interleaving_chain): Likewise.
551         (vect_drs_dependent_in_basic_block): Inline ...
552         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
553         split out from ...
554         (vect_analyze_data_ref_dependence): ... here.  Simplify.
555         (vect_check_interleaving): Simplify.
556         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
557         (vect_slp_analyze_data_ref_dependences): ... this new function.
558         (dr_group_sort_cmp): New function.
559         (vect_analyze_data_ref_accesses): Compute data-reference groups
560         here instead of in vect_analyze_data_ref_dependence.  Use
561         a more efficient algorithm.
562         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
563         vect_slp_analyze_data_ref_dependences.  Call
564         vect_analyze_data_ref_accesses earlier.
565         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
566         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
567         (vect_slp_analyze_data_ref_dependences): New prototype.
569 2013-03-21  Richard Biener  <rguenther@suse.de>
571         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
572         ref is stored in the loop.
573         (find_refs_for_sm): Walk only over all stores.
574         (store_motion_loop): Allocate from lim_bitmap_obstack.
575         (store_motion): Likewise.
577 2013-03-21  Richard Biener  <rguenther@suse.de>
579         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
580         Update virtual SSA form.
582 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
584         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
585         * configure: Regenerate.
586         * config.in: Regenerate.
587         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
588         if !HAVE_LD_EH_FRAME_CIEV3.
590 2013-03-21  Richard Biener  <rguenther@suse.de>
592         * tree-cfg.c (verify_expr_no_block): New function.
593         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
594         nor DECL_VALUE_EXPR have locations with associated blocks.
595         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
596         (clear_unused_block_pointer): Remove code dealing with
597         blocks in DECL_DEBUG_EXPR locations.
599 2013-03-21  Richard Biener  <rguenther@suse.de>
601         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
602         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
603         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
604         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
605         instead of DECL_DEBUG_EXPR_IS_FROM.
606         * gimplify.c (gimplify_modify_expr): Likewise.
607         * tree-cfg.c (verify_expr_location_1): Likewise.
608         * tree-complex.c (create_one_component_var): Likewise.
609         * tree-sra.c (create_access_replacement): Likewise.
610         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
611         (clear_unused_block_pointer): Likewise.
612         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
613         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
614         * var-tracking.c (var_debug_decl): Likewise.
615         (track_expr_p): Likewise.
616         * tree-inline.c (add_local_variables): Likewise.  Set
617         DECL_HAS_DEBUG_EXPR_P after copying it.
618         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
619         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
621 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
623         PR bootstrap/56656
624         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
625         * configure: Regenerate.
626         * config.in: Regenerate.
627         * config/i386/i386.md (*movdf_internal): Use
628         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
629         movd instead of movq mnemonic for interunit moves.
630         (*movdi_internal): Ditto.
632 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
634         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
635         (abd<mode>_3): New pattern.
636         (aba<mode>_3): New pattern.
637         (fabd<mode>_3): New pattern.
639 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
641         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
642         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
643         occurrence of REGISTER_PREFIX as its empty string.
645 2013-03-20  Jeff Law  <law@redhat.com>
647         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
648         addititional equivalences for equality comparisons between an SSA_NAME
649         and a constant where the SSA_NAME was set from a widening conversion.
651 2013-03-20  Walter Lee  <walt@tilera.com>
653         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
655 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
657         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
658         depending on type attribute.
659         (*movti_internal): Ditto.
660         (*movtf_internal): Ditto.
661         (*movxf_internal): Ditto.
662         (*movdf_internal): Ditto.
663         (*movsf_internal): Ditto.
665 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
667         * config/i386/i386.md (*movti_internal): Set prefix attribute to
668         maybe_vex for sselog1 and ssemov types.
669         (*movdi_internal): Reorder operand constraints.
670         (*movsi_internal): Ditto.  Set prefix attribute to
671         maybe_vex for sselog1 and ssemov types.
672         (*movtf_internal): Set prefix attribute to maybe_vex
673         for sselog1 and ssemov types.
674         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
675         DImode ssemov types.  Reorder operand constraints.
676         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
677         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
678         attribute for SImode ssemov types.  Reorder operand constraints.
680 2013-03-20  Martin Jambor  <mjambor@suse.cz>
682         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
683         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
685 2013-03-20  Pat Haugen <pthaugen@us.ibm.com>
687         * config/rs6000/predicates.md (indexed_address, update_address_mem
688         update_indexed_address_mem): New predicates.
689         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
690         attribute for load/store instructions.
691         * config/rs6000/dfp.md (movsd_store): Likewise.
692         (movsd_load): Likewise.
693         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
694         (unnamed HI->DI extend define_insn): Likewise.
695         (unnamed SI->DI extend define_insn): Likewise.
696         (unnamed QI->SI extend define_insn): Likewise.
697         (unnamed QI->HI extend define_insn): Likewise.
698         (unnamed HI->SI extend define_insn): Likewise.
699         (unnamed HI->SI extend define_insn): Likewise.
700         (extendsfdf2_fpr): Likewise.
701         (movsi_internal1): Likewise.
702         (movsi_internal1_single): Likewise.
703         (movhi_internal): Likewise.
704         (movqi_internal): Likewise.
705         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
706         attribute for load/store instructions.
707         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
708         instructions.
709         (mov<mode>_softfloat): Likewise.
710         (mov<mode>_hardfloat32): Likewise.
711         (mov<mode>_hardfloat64): Likewise.
712         (mov<mode>_softfloat64): Likewise.
713         (movdi_internal32): Likewise.
714         (movdi_internal64): Likewise.
715         (probe_stack_<mode>): Likewise.
717 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
719         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
720         floating point, and decimal floating point to reload iterator.
722         * config/rs6000/constraints.md (wl constraint): New constraints to
723         return FLOAT_REGS if certain options are used to reduce the number
724         of separate patterns that exist in the file.
725         (wx constraint): Likewise.
726         (wz constraint): Likewise.
728         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
729         -mdebug=reg, print wg, wl, wx, and wz constraints.
730         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
731         Initialize the reload functions for 64-bit binary/decimal floating
732         point types.
733         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
734         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
735         create the buffer on the stack to overcome not having a 32-bit
736         load and store.
737         (rs6000_emit_move): Likewise.
738         (rs6000_secondary_memory_needed_rtx): Likewise.
739         (rs6000_alloc_sdmode_stack_slot): Likewise.
740         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
741         via xxlxor, just like DFmode 0.0.
743         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
744         define as 1 if we are running on a power7 or newer.
745         (enum r6000_reg_class_enum): Add new constraints.
747         * config/rs6000/dfp.md (movsd): Delete, combine with binary
748         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
749         with other moves by using conditional constraits (wg).  Use LFIWZX
750         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
751         (movsd splitter): Likewise.
752         (movsd_hardfloat): Likewise.
753         (movsd_softfloat): Likewise.
755         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
756         binary and decimal floating point moves.
757         (fmove_ok): New attributes to combine binary and decimal floating
758         point moves, and to combine power6x (mfpgpr) moves along normal
759         floating moves.
760         (real_value_to_target): Likewise.
761         (f32_lr): Likewise.
762         (f32_lm): Likewise.
763         (f32_li): Likewise.
764         (f32_sr): Likewise.
765         (f32_sm): Likewise.
766         (f32_si): Likewise.
767         (movsf): Combine binary and decimal floating point moves.  Combine
768         power6x (mfpgpr) moves with other moves by using conditional
769         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
770         (mov<mode> for SFmode/SDmode); Likewise.
771         (SFmode/SDmode splitters): Likewise.
772         (movsf_hardfloat): Likewise.
773         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
774         (movsf_softfloat): Likewise.
775         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
777         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
778         wx and wz constraints.
780         * config/rs6000/constraints.md (wg constraint): New constraint to
781         return FLOAT_REGS if -mmfpgpr (power6x) was used.
783         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
784         constraint.
786         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
787         -mdebug=reg, print wg, wl, wx, and wz constraints.
788         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
789         Initialize the reload functions for 64-bit binary/decimal floating
790         point types.
791         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
792         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
793         create the buffer on the stack to overcome not having a 32-bit
794         load and store.
795         (rs6000_emit_move): Likewise.
796         (rs6000_secondary_memory_needed_rtx): Likewise.
797         (rs6000_alloc_sdmode_stack_slot): Likewise.
798         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
799         via xxlxor, just like DFmode 0.0.
801         * config/rs6000/dfp.md (movdd): Delete, combine with binary
802         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
803         with other moves by using conditional constraits (wg).  Use LFIWZX
804         and STFIWX for loading SDmode on power7.
805         (movdd splitters): Likewise.
806         (movdd_hardfloat32): Likewise.
807         (movdd_softfloat32): Likewise.
808         (movdd_hardfloat64_mfpgpr): Likewise.
809         (movdd_hardfloat64): Likewise.
810         (movdd_softfloat64): Likewise.
812         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
813         64-bit binary and decimal floating point moves.
814         (FMOVE64X): Likewise.
815         (movdf): Combine 64-bit binary and decimal floating point moves.
816         Combine power6x (mfpgpr) moves with other moves by using
817         conditional constraits (wg).
818         (mov<mode> for DFmode/DDmode): Likewise.
819         (DFmode/DDmode splitters): Likewise.
820         (movdf_hardfloat32): Likewise.
821         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
822         (movdf_softfloat32): Likewise.
823         (movdf_hardfloat64_mfpgpr): Likewise.
824         (movdf_hardfloat64): Likewise.
825         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
826         (movdf_softfloat64): Likewise.
827         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
828         (reload_<mode>_load): Move to later in the file so they aren't in
829         the middle of the floating point move insns.
830         (reload_<mode>_store): Likewise.
832         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
833         constraint.
835         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
836         constraint if -mdebug=reg.
837         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
838         Enable using dd reload support if needed.
840         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
841         binary and decimal floating point moves in rs6000.md.
842         (movtd_internal): Likewise.
844         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
845         decimal floating point moves.
846         (movtf): Likewise.
847         (movtf_internal): Likewise.
848         (mov<mode>_internal, TDmode/TFmode): Likewise.
849         (movtf_softfloat): Likewise.
850         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
852         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
853         movdi_internal64, using wg constraint for move direct operations.
854         (movdi_internal64): Likewise.
856         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
857         MODES_TIEABLE_P for selected modes.  Print the numerical value of
858         the various virtual registers. Use GPR/FPR first/last values,
859         instead of hard coding the register numbers.  Print which modes
860         have reload functions registered.
861         (rs6000_option_override_internal): If -mdebug=reg, trace the options
862         settings before/after setting cpu, target and subtarget settings.
863         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
864         and for secondary reload failures in rs6000_secondary_reload_inner.
865         (rs6000_secondary_reload_fail): Likewise.
866         (rs6000_secondary_reload_inner): Likewise.
868         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
869         macros for first/last GPR and FPR registers.
870         (LAST_GPR_REGNO): Likewise.
871         (FIRST_FPR_REGNO): Likewise.
872         (LAST_FPR_REGNO): Likewise.
874         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
875         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
876         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
877         (vcond<mode><mode>): Likewise.
878         (vcondu<mode><mode>): Likewise.
879         (vector_gtu<mode>): Likewise.
880         (vector_gte<mode>): Likewise.
881         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
882         to prevent the compiler from converting DImode operations to TImode.
883         (ior<mode>3): Likewise.
884         (and<mode>3): Likewise.
885         (one_cmpl<mode>2): Likewise.
886         (nor<mode>3): Likewise.
887         (andc<mode>3): Likewise.
889         * config/rs6000/constraints.md (wt constraint): New constraint
890         that returns VSX_REGS if TImode is allowed in VSX registers.
892         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
893         constant under VSX.
895         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
896         similar to TImode, but it is restricted to being in the GPRs.
898         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
899         TImode to occupy a single VSX register.
901         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
902         -mvsx-timode for power7/power8.
903         (power7 cpu): Likewise.
904         (power8 cpu): Likewise.
906         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
907         sure that TFmode/TDmode take up two registers if they are ever
908         allowed in the upper VSX registers.
909         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
910         registers.
911         (rs6000_init_hard_regno_mode_ok): Likewise.
912         (rs6000_debug_reg_global): Add debugging for PTImode and wt
913         constraint.  Print if LRA is turned on.
914         (rs6000_option_override_internal): Give an error if -mvsx-timode
915         and VSX is not enabled.
916         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
917         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
918         to reg+offset addressing.  Use PTImode when checking offset
919         addresses for validity.
920         (reg_offset_addressing_ok_p): Likewise.
921         (rs6000_legitimate_offset_address_p): Likewise.
922         (rs6000_legitimize_address): Likewise.
923         (rs6000_legitimize_reload_address): Likewise.
924         (rs6000_legitimate_address_p): Likewise.
925         (rs6000_eliminate_indexed_memrefs): Likewise.
926         (rs6000_emit_move): Likewise.
927         (rs6000_secondary_reload): Likewise.
928         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
929         reloads to fpr registers to continue to use reg+offset addressing,
930         but 64-bit reloads to altivec registers need reg+reg addressing.
931         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
932         it.  Treat LO_SUM like a PLUS operation.
933         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
934         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
935         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
936         registers to share a register with a smaller sized type, since VSX
937         puts scalars in the upper 64-bits.
938         (print_operand): Add support for PTImode.
939         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
940         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
941         registers, but don't have arithmetic support.
942         (rs6000_memory_move_cost): Add test for VSX.
943         (rs6000_opt_masks): Add -mvsx-timode.
945         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
946         for TImode.
947         (VSs): Likewise.
948         (VSr): Use wt constraint for TImode.
949         (VSv): Drop TImode support.
950         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
951         (vsx_movti_64bit): Likewise.
952         (vsx_movti_32bit): Likewise.
953         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
954         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
955         one '?' on the appropriate output constraint.  Do not allow TImode
956         logical operations on 32-bit systems.
957         (vsx_ior<mode>3): Likewise.
958         (vsx_xor<mode>3): Likewise.
959         (vsx_one_cmpl<mode>2): Likewise.
960         (vsx_nor<mode>3): Likewise.
961         (vsx_andc<mode>3): Likewise.
962         (vsx_concat_<mode>): Likewise.
963         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
965         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
966         OPTION_MASK_VSX_TIMODE.
967         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
968         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
970         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
971         (TI2 iterator): New iterator for TImode, PTImode.
972         (wd mode attribute): Add values for vector types.
973         (movti_string): Replace TI move operations with operations for TImode
974         and PTImode.  Add support for TImode being allowed in VSX registers.
975         (mov<mode>_string, TImode/PTImode): Likewise.
976         (movti_ppc64): Likewise.
977         (mov<mode>_ppc64, TImode/PTImode): Likewise.
978         (TI mode splitters): Likewise.
980         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
981         constraint.
983 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
985         PR tree-optimization/56355
986         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
987         Also handle integers with undefined overflow.
989 2013-03-20  Catherine Moore  <clm@codesourcery.com>
990             Maciej W. Rozycki  <macro@codesourcery.com>
991             Tom de Vries  <tom@codesourcery.com>
992             Nathan Sidwell <nathan@codesourcery.com>
993             Iain Sandoe  <iain@codesourcery.com>
994             Nathan Froyd  <froydnj@codesourcery.com>
995             Chao-ying Fu <fu@mips.com>
997         * doc/extend.texi: (micromips, nomicromips, nocompression):
998         Document new function attributes.
999         * doc/invoke.texi (minterlink-compressed, mmicromips,
1000         m14k, m14ke, m14kec): Document new options.
1001         (minterlink-mips16): Update documentation.
1002         * doc/md.texi (ZC, ZD): Document new constraints.
1003         * configure.ac (gcc_cv_as_micromips): Check if linker
1004         supports the .set micromips directive.
1005         * configure: Regenerate.
1006         * config.in: Regenerate.
1007         * config/mips/mips-tables.opt: Regenerate.
1008         * config/mips/micromips.md: New file.
1009         * constraints.md (ZC, ZD): New constraints.
1010         * config/mips/predicates.md (movep_src_register): New predicate.
1011         (movep_src_operand): New predicate.
1012         (non_volatile_mem_operand): New predicate.
1013         * config/mips/mips.md (multimem): New type.
1014         (length): Differentiate between 17-bit and 18-bit branch offsets.
1015         (MOVEP1, MOVEP2): New mode iterator.
1016         (mov_<load>l): Use ZC constraint.
1017         (mov_<load>r): Likewise.
1018         (mov_<store>l): Likewise.
1019         (mov_<store>r): Likewise.
1020         (*branch_equality<mode>_inverted): Add microMIPS support.
1021         (*branch_equality<mode>): Likewise.
1022         (*jump_absolute): Likewise.
1023         (indirect_jump_<mode>): Likewise.
1024         (tablejump_<mode>): Likewise.
1025         (<optab>_internal): Likewise.
1026         (sibcall_internal): Likewise.
1027         (sibcall_value_internal): Likewise.
1028         (prefetch): Use constraint ZD.
1029         * config/mips/mips.opt (minterlink-compressed): New option.
1030         (minterlink-mips16): Now an alias for minterlink-compressed.
1031         (mmicromips): New option.
1032         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
1033         (compare_and_swap_12): Likewise.
1034         (sync_add<mode>): Likewise.
1035         (sync_<optab>_12): Likewise.
1036         (sync_old_<optab>_12): Likewise.
1037         (sync_new_<optab>_12): Likewise.
1038         (sync_nand_12): Likewise.
1039         (sync_old_nand_12): Likewise.
1040         (sync_new_nand_12): Likewise.
1041         (sync_sub<mode>): Likewise.
1042         (sync_old_add<mode>): Likewise.
1043         (sync_old_sub<mode>): Likewise.
1044         (sync_new_add<mode>): Likewise.
1045         (sync_new_sub<mode>): Likewise.
1046         (sync_<optab><mode>): Likewise.
1047         (sync_old_<optab><mode>): Likewise.
1048         (sync_new_<optab><mode>): Likewise.
1049         (sync_nand<mode>): Likewise.
1050         (sync_old_nand<mode>): Likewise.
1051         (sync_new_nand<mode>): Likewise.
1052         (sync_lock_test_and_set<mode>): Likewise.
1053         (test_and_set_12): Likewise.
1054         (atomic_compare_and_swap<mode>): Likewise.
1055         (atomic_exchange<mode>_llsc): Likewise.
1056         (atomic_fetch_add<mode>_llsc): Likewise.
1057         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
1058         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
1059         (umips_save_restore_pattern_p): Likewise.
1060         (umips_load_store_pair_p): Likewise.
1061         (umips_output_load_store_pair): Likewise.
1062         (umips_movep_target_p): Likewise.
1063         (umips_12bit_offset_address_p): Likewise.
1064         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
1065         (mips_base_mips16): Rename this...
1066         (mips_base_compression_flags): ...to this. Update all uses.
1067         (mips_attribute_table): Add micromips, nomicromips and nocompression.
1068         (mips_mips16_decl_p): Delete.
1069         (mips_nomips16_decl_p): Delete.
1070         (mips_get_compress_on_flags): New function.
1071         (mips_get_compress_off_flags): New function.
1072         (mips_get_compress_mode): New function.
1073         (mips_get_compress_on_name): New function.
1074         (mips_get_compress_off_name): New function.
1075         (mips_insert_attributes): Support multiple compression types.
1076         (mips_merge_decl_attributes): Likewise.
1077         (umips_12bit_offset_address_p): New function.
1078         (mips_start_function_definition): Emit .set micromips directive.
1079         (mips_call_may_need_jalx_p): New function.
1080         (mips_function_ok_for_sibcall): Add microMIPS support.
1081         (mips_print_operand_punctuation): Support short delay slots and
1082         compact jumps.
1083         (umips_swm_mask, umips_swm_encoding): New.
1084         (umips_build_save_restore): New function.
1085         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
1086         (was_mips16_p): Remove.
1087         (old_compression_mode): New.
1088         (mips_set_compression_mode): New function.
1089         (mips_set_current_function): Add microMIPS support.
1090         (mips_option_override): Likewise.
1091         (umips_save_restore_pattern_p): New function.
1092         (umips_output_save_restore): New function.
1093         (umips_load_store_pair_p_1): New function.
1094         (umips_load_store_pair_p): New function.
1095         (umips_output_load_store_pair_1): New function.
1096         (umips_output_load_store_pair): New function.
1097         (umips_movep_target_p) New function.
1098         (mips_prepare_pch_save): Add microMIPS support.
1099         * config/mips/mips.h (TARGET_COMPRESSION): New.
1100         (TARGET_CPU_CPP_BUILTINS): Update macro
1101         to use new compression flags and to support microMIPS.
1102         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
1103         (MIPS_ARCH_FLOAT_SPEC): Likewise.
1104         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
1105         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
1106         (ASM_SPEC): Support mmicromips and mno-micromips.
1107         (M16STORE_REG_P): New macro.
1108         (MIPS_CALL): Support TARGET_MICROMIPS.
1109         (MICROMIPS_J): New macro.
1110         (mips_base_mips16): Rename this...
1111         (mips_base_compression_flags): ...to this.
1112         (UMIPS_12BIT_OFFSET_P): New macro.
1113         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
1114         (MULTILIB_DIRNAMES): Likewise.
1115 2013-03-20  Richard Biener  <rguenther@suse.de>
1117         PR tree-optimization/56661
1118         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
1119         the result does not have to be distinct.
1121 2013-03-20  Richard Biener  <rguenther@suse.de>
1123         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
1124         remap_gimple_op_r.
1126 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1127             Steven Bosscher <steven@gcc.gnu.org>
1129         PR rtl-optimization/56605
1130         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
1132 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
1134         PR bootstrap/56656
1135         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
1136         that require movd instead of movq.
1138 2013-03-20  Richard Biener  <rguenther@suse.de>
1140         * tree-ssa-structalias.c (struct variable_info): Add pointer
1141         to the first field of an aggregate with sub-vars.  Make
1142         this and the pointer to the next subfield its ID.
1143         (vi_next): New function.
1144         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
1145         storedanything_id, integer_id): Increment by one.
1146         (new_var_info, get_call_vi, lookup_call_clobber_vi,
1147         get_call_clobber_vi): Adjust.
1148         (solution_set_expand): Simplify and speedup.
1149         (solution_set_add): Inline into ...
1150         (set_union_with_increment): ... this.  Adjust accordingly.
1151         (do_sd_constraint): Likewise.
1152         (do_ds_constraint): Likewise.
1153         (do_complex_constraint): Simplify.
1154         (build_pred_graph): Adjust.
1155         (solve_graph): Likewise.  Simplify and speedup.
1156         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
1157         get_constraint_for_component_ref, get_constraint_for_1,
1158         first_vi_for_offset, first_or_preceding_vi_for_offset,
1159         create_function_info_for, create_variable_info_for_1,
1160         create_variable_info_for, intra_create_variable_infos): Adjust.
1161         (init_base_vars): Push NULL for ID zero.
1162         (compute_points_to_sets): Adjust.
1164 2013-03-20  Richard Biener  <rguenther@suse.de>
1166         * cfgloop.c (verify_loop_structure): Streamline and avoid
1167         ICEing on corrupt loop tree.
1168         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
1169         loop tree.
1171 2013-03-20  Richard Biener  <rguenther@suse.de>
1173         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
1174         check whether an SSA update is needed.
1176 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
1178         * config/mips/constraints.md (T): Rename to...
1179         (Yf): ...this.
1180         (U): Rename to...
1181         (Yd): ...this.
1182         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
1183         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
1185 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
1187         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
1188         (*subsi3_carryin_uxtw): Likewise.
1190 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
1192         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
1193         (*rorsi3_insn_uxtw): Likewise.
1195 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
1197         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
1198         (*extrsi5_insn_uxtw): Likewise.
1200 2013-03-19  Richard Biener  <rguenther@suse.de>
1202         PR tree-optimization/56273
1203         * passes.c (init_optimization_passes): Move second VRP after DOM.
1205 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
1207         * config/i386/i386.md (*movti_internal): Merge from
1208         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
1209         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
1210         nox64 isa attributes.
1212 2013-03-18  Richard Biener  <rguenther@suse.de>
1214         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
1215         (unite): Likewise.
1216         (merge_node_constraints): Likewise.
1217         (build_succ_graph): Likewise.
1218         (valid_graph_edge): Inline into single caller.
1219         (unify_nodes): Likewise.  Use bitmap_set_bit return value
1220         and cache varinfo.
1221         (scc_visit): Fix formatting and variable use.
1222         (do_sd_constraint): Use gcc_checking_assert.
1223         (do_ds_constraint): Likewise.
1224         (do_complex_constraint): Likewise.
1225         (condense_visit): Likewise.  Cleanup.
1226         (dump_pred_graph): New function.
1227         (perform_var_substitution): Dump the pred-graph before
1228         variable substitution.
1229         (find_equivalent_node): Use gcc_checking_assert.
1230         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
1232 2013-03-18  Richard Biener  <rguenther@suse.de>
1234         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
1235         Remove cond_expr_stmt_list argument and do not gimplify the
1236         built expression.
1237         (vect_loop_versioning): Adjust.
1238         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
1239         Cleanup to use less temporaries.
1240         (vect_create_data_ref_ptr): Cleanup.
1242 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
1244         PR tree-optimization/56635
1245         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
1246         require types_compatible_p types.
1248 2013-03-18  Nick Clifton  <nickc@redhat.com>
1250         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
1251         spurious backslash.
1253         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
1254         Add missing line to comment describing function.
1256 2013-03-18  Richard Biener  <rguenther@suse.de>
1258         PR tree-optimization/56210
1259         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1260         Handle string / character search functions.
1261         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
1263 2013-03-18  Richard Biener  <rguenther@suse.de>
1265         PR middle-end/56483
1266         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
1267         and implement properly.
1268         * gimple.h (gimple_cond_single_var_p): Remove.
1270 2013-03-18  Richard Biener  <rguenther@suse.de>
1272         * tree-data-ref.h (find_data_references_in_loop): Declare.
1273         * tree-data-ref.c (get_references_in_stmt): Use a stack
1274         vector pre-allocated in the callers.
1275         (find_data_references_in_stmt): Adjust.
1276         (graphite_find_data_references_in_stmt): Likewise.
1277         (create_rdg_vertices): Likewise.
1278         (find_data_references_in_loop): Export.
1279         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
1280         Compute dependences here...
1281         (vect_analyze_data_refs): ...not here.  When we encounter
1282         a non-vectorizable data reference in basic-block vectorization
1283         truncate the data reference vector.  Do not bother to
1284         fixup data-dependence information for gather loads.
1285         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
1286         of data references, as reported.
1288 2013-03-18  Richard Biener  <rguenther@suse.de>
1290         PR tree-optimization/3713
1291         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
1292         has_constants and expr.
1293         (stmt_has_constants): Properly valueize SSA names when deciding
1294         whether the stmt has constants.
1296 2013-03-18  Richard Biener  <rguenther@suse.de>
1298         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
1299         whole function when there is nothing to do.
1300         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
1301         * tree-vectorizer.c (vectorize_loops): Update virtual and
1302         loop-closed SSA once.
1303         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
1305 2013-03-18  Richard Biener  <rguenther@suse.de>
1307         PR middle-end/56113
1308         * domwalk.c (bb_postorder): New global static.
1309         (cmp_bb_postorder): New function.
1310         (walk_dominator_tree): Replace scheme imposing an order for
1311         visiting dominator sons by one sorting them at the time they
1312         are pushed on the stack.
1314 2013-03-18  Richard Biener  <rguenther@suse.de>
1316         PR tree-optimization/39326
1317         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
1318         (struct mem_ref): Replace mem member with ao_ref typed member.
1319         (MEM_ANALYZABLE): Adjust.
1320         (memref_eq): Likewise.
1321         (mem_ref_alloc): Likewise.
1322         (gather_mem_refs_stmt): Likewise.
1323         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
1324         (execute_sm_if_changed_flag_set): Adjust.
1325         (execute_sm): Likewise.
1326         (ref_always_accessed_p): Likewise.
1327         (refs_independent_p): Likewise.
1328         (can_sm_ref_p): Likewise.
1330 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
1332         PR c/56566
1333         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
1334         return 1 even for !unsignedp.
1336 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
1338         * config/i386/i386.md (isa): Add x64 and nox64.
1339         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
1340         (*pushtf): Enable *roF alternative for x64 isa only.
1341         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
1342         mode attribute of integer alternatives to DImode for TARGET_64BIT.
1343         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
1344         (*movtf_internal): Merge from *movtf_internal_rex64 and
1345         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
1346         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
1347         nox64 isa attributes.
1348         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
1349         nox64 isa attributes.
1350         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
1352 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
1354         * config/alpha/alpha.c (TARGET_LRA_P): New define.
1356 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
1358         PR target/56640
1359         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
1360         class names.  Remove trailing comma after "ALL_REGS".
1362 2013-03-16  Jan Hubicka  <jh@suse.cz>
1364         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
1365         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
1366         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
1367         of cgraph_get_create_node.
1368         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
1370 2013-03-16  Jason Merrill  <jason@redhat.com>
1372         PR debug/49090
1373         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
1374         with DW_AT_default_value.
1376 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
1378         * BASE-VER: Set to 4.9.0.
1380 2013-03-14  Andi Kleen  <ak@linux.intel.com>
1382         PR target/56619
1383         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
1384         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
1385         Document _x* TSX intrinsics.
1387 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
1388             David Holsgrove  <david.holsgrove@xilinx.com>
1390         * configure.ac: Add MicroBlaze TLS support detection.
1391         * configure: Regenerate.
1392         * config/microblaze/microblaze-protos.h
1393         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
1394         symbol_mentioned_p, label_mentioned_p): Add prototypes.
1395         * config/microblaze/microblaze.c (microblaze_address_type): Add
1396         ADDRESS_TLS and tls_reloc address types.
1397         (microblaze_address_info): Add tls_reloc.
1398         (TARGET_HAVE_TLS): Define.
1399         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
1400          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
1401          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
1402         load_tls_operand,  microblaze_call_tls_get_addr,
1403         microblaze_legitimize_tls_address): New functions.
1404         (microblaze_classify_unspec): Handle UNSPEC_TLS.
1405         (get_base_reg): Use microblaze_tls_symbol_p.
1406         (microblaze_classify_address): Handle TLS.
1407         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
1408         label_mentioned_p and microblaze_tls_referenced_p.
1409         (microblaze_legitimize_address): Handle TLS.
1410         (microblaze_address_insns): Handle ADDRESS_TLS.
1411         (pic_address_needs_scratch): Handle TLS.
1412         (print_operand_address): Handle TLS.
1413         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
1414         (microblaze_expand_move): Handle TLS.
1415         (microblaze_legitimate_constant_p): Check
1416         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
1417         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
1418         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
1419         (PIC_OFFSET_TABLE_REGNUM): Set.
1420         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
1421         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
1422         (addsi3, movsi_internal2, movdf_internal): Update constraints
1423         * config/microblaze/predicates.md (arith_plus_operand): Define
1424         (move_operand): Redefine as move_src_operand,
1425         check microblaze_tls_referenced_p.
1427 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
1429         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
1430         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
1432 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
1434         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
1435         CC mode for AND.
1437 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
1439         PR tree-optimization/53265
1440         * common.opt (Waggressive-loop-optimizations): New option.
1441         * tree-ssa-loop-niter.c: Include tree-pass.h.
1442         (do_warn_aggressive_loop_optimizations): New function.
1443         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
1444         if number_of_latch_executions returned constant.
1445         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
1446         early.  If number_of_latch_executions returned constant, set
1447         nb_iterations_upper_bound back to it.
1448         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
1449         field.
1450         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
1451         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
1453         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
1454         (MULTILIB_OSDIRNAMES): Set.
1455         * genmultilib: If defaultosdirname doesn't start with :: , set
1456         defaultosdirname2 instead, clear it and emit two . multilib_raw
1457         entries instead of just one.
1459 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
1461         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
1462         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
1463         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
1464         (SUBTARGET_OVERRIDE_OPTIONS): New.
1466 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
1468         PR target/49880
1469         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
1470         (musermode): Convert to Var(TARGET_USERMODE).
1471         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
1472         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
1473         * config/sh/sh.c (sh_option_override): Use
1474         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
1475         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
1476         condition.
1477         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
1478         TARGET_SH4.
1479         (udivsi3_i4_single, divsi3_i4_single): Use
1480         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
1482 2013-03-13  Dave Korn  <dave.korn.cygwin@....>
1484         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
1485         default setting.
1487 2013-03-13  Richard Biener  <rguenther@suse.de>
1489         PR tree-optimization/56608
1490         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
1491         calls when vectorizing basic-blocks.
1493 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
1495         PR plugins/45078
1496         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
1497         tm_file.
1499 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
1501         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
1503 2013-03-11  Jan Hubicka  <jh@suse.cz>
1505         PR lto/56557
1506         * lto-streamer-out.c (output_symbol_p): Skip references from
1507         constructors of external variables.
1509 2013-03-11  Jan Hubicka  <jh@suse.cz>
1511         PR middle-end/56571
1512         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
1513         from pseudos.
1514         * emit-rtl.c (verify_rtx_sharing): Likewise.
1515         (copy_insn_1): Likewise.
1516         * rtl.c (copy_rtx): Likewise.
1518 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
1520         PR target/56591
1521         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
1522         output_operand_lossage message.
1524 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
1526         PR target/56470
1527         * arm.c (shift_op): Validate RTL pattern on the fly.
1528         (arm_print_operand, case 'S'): Don't use shift_operator to validate
1529         the RTL.
1531 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1533         PR target/56347
1534         * config/pa/pa.md (call_value): Check for calls to powf and direct to
1535         new call patterns that clobber %fr12.
1536         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
1537         split and postreload patterns.
1538         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
1539         registers %fr12 and %fr12R as call used.
1541 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
1543         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
1544         (canon_address, record_store, replace_read, check_mem_read_rtx,
1545         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
1546         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
1547         rest_of_handle_dse): Likewise.
1549 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
1551         PR middle-end/56524
1552         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
1553         Add base_optabs.
1554         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
1555         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
1556         (save_optabs_if_changed): Replace with...
1557         (init_tree_optimization_optabs): ...this.
1558         * optabs.c (save_optabs_if_changed): Rename to...
1559         (init_tree_optimization_optabs): ...this.  Take the optimization node
1560         as argument.  Do nothing if the base optabs are already correct.
1561         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
1562         to recompute optabs.
1563         * function.h (function): Remove optabs field.
1564         * function.c (invoke_set_current_function_hook): Call
1565         init_tree_optimization_optabs.  Use the result to initialize
1566         this_fn_optabs.
1568 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
1570         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
1571         if GTMA_HAS_NO_INSTRUMENTATION.
1572         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
1573         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
1574         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
1575         * gimple-pretty-print.c (dump_gimple_transaction): Handle
1576         GTMA_HAS_NO_INSTRUMENTATION.
1578 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
1580         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
1581         libasan_preinit.o.
1583 2013-03-08  Marek Polacek  <polacek@redhat.com>
1584             Jakub Jelinek  <jakub@redhat.com>
1586         PR tree-optimization/56478
1587         * predict.c (is_comparison_with_loop_invariant_p): Change the
1588         type of loop_step to tree.
1589         (predict_loops): Adjust.
1590         (predict_iv_comparison): Perform the computations on double_ints.
1592 2013-03-08  Richard Biener  <rguenther@suse.de>
1594         PR tree-optimization/56570
1595         * tree-cfg.c (verify_expr_location_1): Verify locations for
1596         DECL_DEBUG_EXPR.
1597         * tree-sra.c (create_access_replacement): Strip locations
1598         from DECL_DEBUG_EXPRs.
1600 2013-03-08  Richard Biener  <rguenther@suse.de>
1602         * tree-inline.c (expand_call_inline): Do not associate
1603         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
1604         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
1606 2013-03-08  Richard Biener  <rguenther@suse.de>
1608         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
1609         or block changes with -Og.  Fix for location / block encoding
1610         changes and PHI arguments with locations.
1612 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
1614         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
1615         for all counters.
1616         (struct output_info): Likewise.
1617         (register_overhead): Remove bad gcc_assert.
1618         (bitmap_find_bit): If there is only a single bitmap element, do not
1619         count a miss as a search.
1620         (print_statistics): Update for counter type changes.
1621         (dump_bitmap_statistics): Likewise.  Print headers such that they
1622         are properly lined up with the printed counters.
1624 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
1626         PR tree-optimization/56559
1627         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
1628         check that it has only a single use.
1630 2013-03-07  Richard Biener  <rguenther@suse.de>
1632         * doc/invoke.texi (fwhole-program): Discourage use in combination
1633         with -flto.
1635 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
1637         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
1639         PR tree-optimization/56539
1640         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
1641         instead of GSI_CONTINUE_LINKING as last argument to
1642         force_gimple_operand_gsi.  Adjust function comment.
1644         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
1645         aarch64-cores.def.
1647         PR middle-end/56548
1648         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
1649         promoted mode, convert the result back to the original mode.
1651 2013-03-06  Richard Biener  <rguenther@suse.de>
1653         PR middle-end/56294
1654         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
1655         (insert_updated_phi_nodes_compare_uids): New function.
1656         (update_ssa): Sort symbols_to_rename after UID before
1657         traversing it to insert PHI nodes.
1659 2013-03-06  Richard Biener  <rguenther@suse.de>
1661         PR middle-end/50494
1662         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
1663         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
1665         Revert
1666         2013-02-13  Richard Biener  <rguenther@suse.de>
1668         PR lto/50494
1669         * varasm.c (output_constant_def_1): Get the decl representing
1670         the constant as argument.
1671         (output_constant_def): Wrap output_constant_def_1.
1672         (make_decl_rtl): Use output_constant_def_1 with the decl
1673         representing the constant.
1674         (build_constant_desc): Optionally re-use a decl already
1675         representing the constant.
1676         (tree_output_constant_def): Adjust.
1678 2013-03-06  Joey Ye  <joey.ye@arm.com>
1680         PR lto/50293
1681         * gcc.c (convert_white_space): New function.
1682         (main): Handles white space in function name.
1684 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
1686         PR target/56529
1687         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
1688         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
1689         to SH_DIV_CALL_TABLE for TARGET_SH2.
1690         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
1691         list.
1692         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
1693         call-table options.
1695 2013-03-05  Sterling Augustine  <saugustine@google.com>
1696             Cary Coutant  <ccoutant@google.com>
1698         PR debug/55364
1699         * dwarf2out.c (resolve_addr): Don't call
1700         remove_loc_list_addr_table_entries a second time for the same
1701         expression.
1703 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
1705         PR debug/56510
1706         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
1707         (avoid_complex_debug_insns): New function.
1708         (expand_debug_locations): Call it.
1710         PR rtl-optimization/56484
1711         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
1712         lifetimes of hard registers on small register class machines.
1714 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
1716         * config/microblaze/microblaze-protos.h: Rename
1717         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
1718         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
1719         fast_interrupt.
1720         (microblaze_fast_interrupt_function_p): New function.
1721         (microblaze_is_interrupt_handler): Rename to
1722         microblaze_is_interrupt_variant and add fast_interrupt check.
1723         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
1724         (save_restore_insns): Likewise.
1725         (compute_frame_size): Likewise.
1726         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
1727         (microblaze_globalize_label): Likewise.
1728         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
1729         * config/microblaze/microblaze.md: Use wrapper
1730         microblaze_is_interrupt_variant.
1732 2013-03-05  Kai Tietz  <ktietz@redhat.com>
1734         * sdbout.c (sdbout_one_type): Switch to current function's section
1735         supporting cold/hot.
1737 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
1739         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
1740         -mxl-reorder.
1742 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
1744         PR middle-end/56461
1745         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
1746         if VALGRIND_GET_VBITS is defined, temporarily make object
1747         memory all defined, and restore previous valgrind addressability
1748         and definability afterwards.  Free this_object at the end.
1750         PR middle-end/56461
1751         * lra.c (lra): Call lra_clear_live_ranges if live_p,
1752         right before calling lra_create_live_ranges, also call it
1753         when clearing live_p.  Only call lra_clear_live_ranges
1754         at the end if live_p.
1756         PR middle-end/56461
1757         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
1759 2013-03-05  Richard Biener  <rguenther@suse.de>
1761         PR tree-optimization/56521
1762         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
1763         value-id.
1765 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
1767         PR c++/55135
1768         * except.h (remove_unreachable_eh_regions): New prototype.
1769         * except.c (remove_eh_handler_splicer): New function, split out
1770         of remove_eh_handler.
1771         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
1772         warning about running it on many EH regions one at a time.
1773         (remove_unreachable_eh_regions_worker): New function, walk the
1774         EH tree in depth-first order and remove non-marked regions.
1775         (remove_unreachable_eh_regions): New function.
1776         * tree-eh.c (mark_reachable_handlers): New function, split out
1777         from remove_unreachable_handlers.
1778         (remove_unreachable_handlers): Use mark_reachable_handlers and
1779         remove_unreachable_eh_regions.
1780         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
1781         and remove_unreachable_eh_regions.
1783 2013-03-05  Richard Biener  <rguenther@suse.de>
1785         PR middle-end/56525
1786         * loop-init.c (fix_loop_structure): Remove loops in two stages,
1787         not freeing them until the end.
1789 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1791         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
1793 2013-03-05  Richard Biener  <rguenther@suse.de>
1795         PR tree-optimization/56270
1796         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
1797         of loads after scheduling an SLP instance.
1799 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
1801         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
1802         tic6x.exp.
1803         (check_gcc_parallelize): Run guality.exp as a separate job from
1804         vect.exp with unsorted.exp and $(dg_target_exps) separately from
1805         struct-layout-1.exp with stackalign.exp.
1807         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
1809         PR middle-end/56461
1810         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
1811         load_index sbitmap even if some bit in it isn't set.
1813         PR middle-end/56461
1814         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
1815         (discover_iteration_bound_by_body_walk): Change queues to
1816         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
1817         spelling in comment.  Call safe_push on queues[bound_index] directly.
1818         Release queues[queue_index] in every iteration unconditionally.
1819         Release bounds vector.
1821         PR middle-end/56461
1822         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
1823         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
1824         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
1825         inner_phis vector.
1827 2013-03-05  Richard Biener  <rguenther@suse.de>
1829         PR lto/56515
1830         * tree-inline.c (remap_blocks_to_null): New function.
1831         (expand_call_inline): When expanding a call stmt without
1832         an associated block inline remap all callee blocks to NULL.
1834 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
1836         PR rtl-optimization/56494
1837         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
1838         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
1839         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
1841         PR middle-end/56461
1842         * sel-sched-ir.c (free_sched_pools): Release
1843         succs_info_pool.stack[succs_info_pool.max_top] vectors too
1844         if succs_info_pool.max_top isn't -1.
1846         PR bootstrap/56509
1847         * opts.c (opts_obstack, opts_concat): Moved to...
1848         * opts-common.c (opts_obstack, opts_concat): ... here.
1850 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
1852         PR middle-end/56461
1853         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
1855 2013-03-04  Martin Jambor  <mjambor@suse.cz>
1857         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
1858         all appropriate places.
1860 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
1862         PR tree-optimization/56424
1863         * ipa-split.c (split_function): Do not set the RSO flag if result is
1864         not by reference and its type is a register type.
1866 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
1868         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
1869         (microblaze_legitimate_pic_operand): Likewise
1870         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
1871         new function microblaze_legitimate_pic_operand
1872         * config/microblaze/microblaze-protos.h
1873         (microblaze_legitimate_pic_operand): Declare.
1875 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
1877         * config/microblaze/predicates.md (call_insn_simple_operand):
1878         New predicate for supported rtx code types.
1879         * config/microblaze/microblaze.md (call_internal1): Use
1880         call_insn_simple_operand predicate.
1882 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
1884         PR middle-end/56461
1885         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
1886         partitions.ordered_remove.
1888         PR middle-end/56461
1889         * tree-vect-stmts.c (vectorizable_conversion): Don't call
1890         vec_oprnds0.create (1) for modifier == NONE.
1892         PR middle-end/56461
1893         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
1894         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
1895         vec_oprnds1 right before pushing anything to it for
1896         scalar_shift_arg.
1898         PR middle-end/56461
1899         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
1900         set nbbs to 0 instead of having separate code path.
1901         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
1902         instead of false as last argument if returning NULL.
1904 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
1906         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
1907         the attribute is now called "target" instead of "option".
1908         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
1909         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
1910         attribute/pragma name for TARGET_OPTION_VALID_P and
1911         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
1912         * doc/tm.texi: Regenerated.
1914 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
1916         * config/microblaze/microblaze.c:
1917         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
1918         * config/microblaze/microblaze.h: Add -mxl-reorder to
1919         DRIVER_SELF_SPECS.
1920         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
1921         instructions emitted if TARGET_REORDER.
1922         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
1923         or 0 for -m/-mno case, but initialises as 2 to detect default use case
1924         separately.
1926 2013-03-01  Xinliang David Li  <davidxl@google.com>
1928         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
1929         walk length.
1931 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
1933         PR middle-end/56461
1934         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
1935         vector even when returning true.  Fix up function comment formatting.
1937         PR middle-end/56461
1938         * ira-build.c (ira_loop_nodes_count): New variable.
1939         (create_loop_tree_nodes): Initialize it.
1940         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
1942         PR middle-end/56461
1943         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
1944         method on dr_chain and result_chain.
1945         * tree-vect-stmts.c (vectorizable_store): Only call
1946         result_chain.create if j == 0.
1948         PR middle-end/56461
1949         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
1950         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
1951         before overwriting it.
1953 2013-03-01  Tobias Burnus  <burnus@net-b.de>
1955         * doc/extended.texi (C Extensions): Change order in @menu
1956         to match @node.
1957         (Other MIPS Built-in Functions): Move last MIPS entry before
1958         "picoChip Built-in Functions".
1959         (SH Built-in Functions): Move after RX Built-in Functions.
1960         * doc/gcc.texi (Introduction): Change order in @menu
1961         to match @node.
1962         * doc/md.texi (Constraints): Ditto.
1963         * gty.texi (Type Information): Ditto.
1964         (User-provided marking routines for template types): Make
1965         subsection.
1966         * doc/invoke.texi (AArch64 Options): Move before
1967         "Adapteva Epiphany Options".
1969 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
1970             Jakub Jelinek  <jakub@redhat.com>
1972         PR sanitizer/56454
1973         * asan.c (gate_asan): Lookup no_sanitize_address instead of
1974         no_address_safety_analysis attribute.
1975         * doc/extend.texi (no_address_safety_attribute): Rename to
1976         no_sanitize_address attribute, mention no_address_safety_analysis
1977         attribute as deprecated alias.
1979 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
1981         PR middle-end/56461
1982         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
1983         type to vec<vec<tree> > *.
1984         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
1985         to be vec<tree> instead of vec<tree> *, set vec_defs
1986         to vNULL and call vec_defs.create (number_of_vects), adjust other
1987         uses of vec_defs.
1988         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
1989         vectorizable_condition): Adjust vect_get_slp_defs callers.
1991 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
1993         * config/aarch64/aarch64.c
1994         (aarch64_float_const_representable): Remove unused variable.
1996 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
1998         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
2000 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
2002         * config/aarch64/aarch64-builtins.c
2003         (aarch64_init_simd_builtins): Make static.
2005 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
2007         * config/aarch64/aarch64.c
2008         (aarch64_simd_make_constant): Make static.
2010 2013-02-28  Martin Jambor  <mjambor@suse.cz>
2012         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
2013         with no initialization to the RHS of debug statements.
2015 2013-02-28  Martin Jambor  <mjambor@suse.cz>
2017         PR tree-optimization/56294
2018         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
2019         Adjust dumping.
2020         (get_access_replacement): Do not call create_access_replacement.
2021         Assert a replacement exists.
2022         (get_repl_default_def_ssa_name): Create the replacement declaration
2023         itself.
2025 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2027         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
2028         final_end_function.
2030 2013-02-28  Marek Polacek  <polacek@redhat.com>
2032         PR rtl-optimization/56466
2033         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
2034         if we're changing a loop.
2035         (peel_loops_completely): Likewise.
2037 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
2039         PR c++/55813
2040         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
2042 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
2044         PR target/56445
2045         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
2046         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
2047         INTX_FTYPE_FX, FX_FTYPE_INTX.
2048         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
2050 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
2052         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
2053         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
2054         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
2055         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
2056         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
2057         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
2058         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
2059         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
2060         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
2061         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
2062         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
2063         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
2064         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
2065         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
2066         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
2067         (avrxmega6): Increase max flash segments from 5 to 6.
2068         * config/avr/t-multilib: Regenerate.
2069         * config/avr/avr-tables.opt: Regenerate.
2070         * doc/avr-mmcu.texi: Regenerate.
2072 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
2074         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
2075         (avr_device_to_arch): Rename to avr_device_to_ld.
2076         (avr_device_to_as): New prototype.
2077         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
2078         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
2079         * config/avr/driver-avr.c (avr_device_to_as): New.
2080         (avr_device_to_arch): Rename to avr_device_to_ld.
2082 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
2084         PR middle-end/56461
2085         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
2086         method on dr_chain and result_chain.
2088         PR middle-end/56461
2089         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
2090         pointer_set_destroy on not_executed_last_iteration.
2092         PR middle-end/56461
2093         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
2095         PR middle-end/56461
2096         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
2097         FOR_EACH_DEFINED_FUNCTION when freeing state.
2099         PR middle-end/56461
2100         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
2101         pool_free.
2102         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
2103         overwriting it.
2105         PR middle-end/56461
2106         * ipa-cp.c (decide_whether_version_node): Call vec_free on
2107         known_aggs[i].items and release known_aggs vector.
2109         PR middle-end/56461
2110         * ipa-reference.c (propagate): Free node_info even for alias nodes.
2112 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
2114         * config/microblaze/microblaze.c (microblaze_emit_compare):
2115         Use xor for EQ/NE comparisions.
2116         * config/microblaze/microblaze.md (cstoresf4): Add constraints
2117         (cbranchsf4): Adjust operator to comparison_operator.
2119 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
2121         PR middle-end/56461
2122         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
2123         vector.
2124         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
2125         vec_safe_push, always update *slot.
2126         (redirect_edge_var_map_clear): Use vec_free.
2127         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
2128         (free_var_map_entry): Use vec_free.
2129         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
2130         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
2132 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
2134         PR middle-end/45472
2135         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
2136         when the may_trap_p bit of the exprs being merged differs.
2137         Reorder tests for speculativeness in the logical and operator.
2139 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
2141         * incpath.c (add_standard_paths): Use reconcat instead of concat
2142         where appropriate and avoid leaking memory.
2144         * opts.h: Include obstack.h.
2145         (opts_concat): New prototype.
2146         (opts_obstack): New declaration.
2147         * opts.c (opts_concat): New function.
2148         (opts_obstack): New variable.
2149         (init_options_struct): Call gcc_init_obstack on opts_obstack.
2150         (finish_options): Use opts_concat instead of concat
2151         and XOBNEWVEC instead of XNEWVEC.
2152         * opts-common.c (generate_canonical_option, decode_cmdline_option,
2153         generate_option): Likewise.
2154         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
2155         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
2157         PR target/56455
2158         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
2159         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
2161 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
2163         PR middle-end/56461
2164         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
2166 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
2168         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
2169         (arm_block_move_unaligned_straight): Likewise.
2170         (arm_adjust_block_mem): Likewise.
2172 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
2174         PR target/48901
2175         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
2176         temp, cond and label.
2177         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
2179         PR target/52500
2180         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
2181         * config/c6x/c6x.h (dbx_register_map): Update declaration.
2183         PR target/52501
2184         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
2185         of prologue/epilogue functions.
2187         PR target/52550
2188         * config/tilegx/tilegx.c (tilegx_expand_prologue):
2189         Remove unused variable cfa_offset.
2190         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
2192         PR target/54639
2193         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
2194         type promotion to unsigned.
2196         PR target/54640
2197         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
2198         for HOST_WIDE_INT of 32 bit / same size as int.
2199         (arm_block_move_unaligned_straight): Likewise.
2200         (arm_adjust_block_mem): Likewise.
2202         PR target/54662
2203         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
2204         ALL_CFLAGS.
2206 2013-02-26  Marek Polacek  <polacek@redhat.com>
2208         PR tree-optimization/56426
2209         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
2211 2013-02-26  Richard Biener  <rguenther@suse.de>
2213         PR target/56444
2214         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
2215         unused variable loops.
2217 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
2219         PR tree-optimization/56448
2220         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
2221         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
2222         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
2223         later operands of the references, or even first operand for
2224         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
2226         PR tree-optimization/56443
2227         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
2228         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
2229         to type_for_mode langhook.
2231 2013-02-25  Matt Turner  <mattst88@gmail.com>
2233         * doc/invoke.texi: Document r4700.
2235 2013-02-25  Richard Biener  <rguenther@suse.de>
2237         PR tree-optimization/56175
2238         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
2239         split out from ...
2240         (simplify_bitwise_binary): ... here.  Also guard the conversion
2241         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
2243 2013-02-25  Catherine Moore  <clm@codesourcery.com>
2245         Revert:
2246         2013-02-24  Catherine Moore  <clm@codesourcery.com>
2247             Maciej W. Rozycki  <macro@codesourcery.com>
2248             Tom de Vries  <tom@codesourcery.com>
2249             Nathan Sidwell  <nathan@codesourcery.com>
2250             Iain Sandoe  <iain@codesourcery.com>
2251             Nathan Froyd  <froydnj@codesourcery.com>
2252             Chao-ying Fu  <fu@mips.com>
2254         * doc/extend.texi: (micromips, nomicromips, nocompression):
2255         Document new function attributes.
2256         * doc/invoke.texi (minterlink-compressed, mmicromips,
2257         m14k, m14ke, m14kec): Document new options.
2258         (minterlink-mips16): Update documentation.
2259         * doc/md.texi (ZC, ZD): Document new constraints.
2260         * configure.ac (gcc_cv_as_micromips): Check if linker
2261         supports the .set micromips directive.
2262         * configure: Regenerate.
2263         * config.in: Regenerate.
2264         * config/mips/mips-tables.opt: Regenerate.
2265         * config/mips/micromips.md: New file.
2266         * constraints.md (ZC, AD): New constraints.
2267         * config/mips/predicates.md (movep_src_register): New predicate.
2268         (movep_src_operand): New predicate.
2269         (non_volatile_mem_operand): New predicate.
2270         * config/mips/mips.md (multimem): New type.
2271         (length): Differentiate between 17-bit and 18-bit branch offsets.
2272         (MOVEP1, MOVEP2): New mode iterator.
2273         (mov_<load>l): Use ZC constraint.
2274         (mov_<load>r): Likewise.
2275         (mov_<store>l): Likewise.
2276         (mov_<store>r): Likewise.
2277         (*branch_equality<mode>_inverted): Add microMIPS support.
2278         (*branch_equality<mode>): Likewise.
2279         (*jump_absolute): Likewise.
2280         (indirect_jump_<mode>): Likewise.
2281         (tablejump_<mode>): Likewise.
2282         (<optab>_internal): Likewise.
2283         (sibcall_internal): Likewise.
2284         (sibcall_value_internal): Likewise.
2285         (prefetch): Use constraint ZD.
2286         * config/mips/mips.opt (minterlink-compressed): New option.
2287         (minterlink-mips16): Now an alias for minterlink-compressed.
2288         (mmicromips): New option.
2289         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
2290         (compare_and_swap_12): Likewise.
2291         (sync_add<mode>): Likewise.
2292         (sync_<optab>_12): Likewise.
2293         (sync_old_<optab>_12): Likewise.
2294         (sync_new_<optab>_12): Likewise.
2295         (sync_nand_12): Likewise.
2296         (sync_old_nand_12): Likewise.
2297         (sync_new_nand_12): Likewise.
2298         (sync_sub<mode>): Likewise.
2299         (sync_old_add<mode>): Likewise.
2300         (sync_old_sub<mode>): Likewise.
2301         (sync_new_add<mode>): Likewise.
2302         (sync_new_sub<mode>): Likewise.
2303         (sync_<optab><mode>): Likewise.
2304         (sync_old_<optab><mode>): Likewise.
2305         (sync_new_<optab><mode>): Likewise.
2306         (sync_nand<mode>): Likewise.
2307         (sync_old_nand<mode>): Likewise.
2308         (sync_new_nand<mode>): Likewise.
2309         (sync_lock_test_and_set<mode>): Likewise.
2310         (test_and_set_12): Likewise.
2311         (atomic_compare_and_swap<mode>): Likewise.
2312         (atomic_exchange<mode>_llsc): Likewise.
2313         (atomic_fetch_add<mode>_llsc): Likewise.
2314         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
2315         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
2316         (umips_save_restore_pattern_p): Likewise.
2317         (umips_load_store_pair_p): Likewise.
2318         (umips_output_load_store_pair): Likewise.
2319         (umips_movep_target_p): Likewise.
2320         (umips_12bit_offset_address_p): Likewise.
2321         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
2322         (mips_base_mips16): Rename this...
2323         (mips_base_compression_flags): ...to this. Update all uses.
2324         (mips_attribute_table): Add micromips, nomicromips and nocompression.
2325         (mips_mips16_decl_p): Delete.
2326         (mips_nomips16_decl_p): Delete.
2327         (mips_get_compress_on_flags): New function.
2328         (mips_get_compress_off_flags): New function.
2329         (mips_get_compress_mode): New function.
2330         (mips_get_compress_on_name): New function.
2331         (mips_get_compress_off_name): New function.
2332         (mips_insert_attributes): Support multiple compression types.
2333         (mips_merge_decl_attributes): Likewise.
2334         (umips_12bit_offset_address_p): New function.
2335         (mips_start_function_definition): Emit .set micromips directive.
2336         (mips_call_may_need_jalx_p): New function.
2337         (mips_function_ok_for_sibcall): Add microMIPS support.
2338         (mips_print_operand_punctuation): Support short delay slots and
2339         compact jumps.
2340         (umips_swm_mask, umips_swm_encoding): New.
2341         (umips_build_save_restore): New function.
2342         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
2343         (was_mips16_p): Remove.
2344         (old_compression_mode): New.
2345         (mips_set_compression_mode): New function.
2346         (mips_set_current_function): Add microMIPS support.
2347         (mips_option_override): Likewise.
2348         (umips_save_restore_pattern_p): New function.
2349         (umips_output_save_restore): New function.
2350         (umips_load_store_pair_p_1): New function.
2351         (umips_load_store_pair_p): New function.
2352         (umips_output_load_store_pair_1): New function.
2353         (umips_output_load_store_pair): New function.
2354         (umips_movep_target_p) New function.
2355         (mips_prepare_pch_save): Add microMIPS support.
2356         * config/mips/mips.h (TARGET_COMPRESSION): New.
2357         (TARGET_CPU_CPP_BUILTINS): Update macro
2358         to use new compression flags and to support microMIPS.
2359         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
2360         (MIPS_ARCH_FLOAT_SPEC): Likewise.
2361         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
2362         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
2363         (ASM_SPEC): Support mmicromips and mno-micromips.
2364         (M16STORE_REG_P): New macro.
2365         (MIPS_CALL): Support TARGET_MICROMIPS.
2366         (MICROMIPS_J): New macro.
2367         (mips_base_mips16): Rename this...
2368         (mips_base_compression_flags): ...to this.
2369         (UMIPS_12BIT_OFFSET_P): New macro.
2370         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
2371         (MULTILIB_DIRNAMES): Likewise.
2373 2013-02-25  Tom de Vries  <tom@codesourcery.com>
2375         PR rtl-optimization/56131
2376         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
2377         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
2378         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
2380 2013-02-25  Tobias Burnus  <burnus@net-b.de>
2382         * doc/invoke.texi (-fsanitize=): Move from optimization
2383         to debugging options.
2385 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
2387         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
2389 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
2390             Alexander Monakov  <amonakov@ispras.ru>
2392         PR middle-end/56077
2393         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
2394         flush pending lists also on non-jumps.  Adjust comment.
2396 2013-02-24  Catherine Moore  <clm@codesourcery.com>
2397             Maciej W. Rozycki  <macro@codesourcery.com>
2398             Tom de Vries  <tom@codesourcery.com>
2399             Nathan Sidwell  <nathan@codesourcery.com>
2400             Iain Sandoe  <iain@codesourcery.com>
2401             Nathan Froyd  <froydnj@codesourcery.com>
2402             Chao-ying Fu  <fu@mips.com>
2404         * doc/extend.texi: (micromips, nomicromips, nocompression):
2405         Document new function attributes.
2406         * doc/invoke.texi (minterlink-compressed, mmicromips,
2407         m14k, m14ke, m14kec): Document new options.
2408         (minterlink-mips16): Update documentation.
2409         * doc/md.texi (ZC, ZD): Document new constraints.
2410         * configure.ac (gcc_cv_as_micromips): Check if linker
2411         supports the .set micromips directive.
2412         * configure: Regenerate.
2413         * config.in: Regenerate.
2414         * config/mips/mips-tables.opt: Regenerate.
2415         * config/mips/micromips.md: New file.
2416         * constraints.md (ZC, AD): New constraints.
2417         * config/mips/predicates.md (movep_src_register): New predicate.
2418         (movep_src_operand): New predicate.
2419         (non_volatile_mem_operand): New predicate.
2420         * config/mips/mips.md (multimem): New type.
2421         (length): Differentiate between 17-bit and 18-bit branch offsets.
2422         (MOVEP1, MOVEP2): New mode iterator.
2423         (mov_<load>l): Use ZC constraint.
2424         (mov_<load>r): Likewise.
2425         (mov_<store>l): Likewise.
2426         (mov_<store>r): Likewise.
2427         (*branch_equality<mode>_inverted): Add microMIPS support.
2428         (*branch_equality<mode>): Likewise.
2429         (*jump_absolute): Likewise.
2430         (indirect_jump_<mode>): Likewise.
2431         (tablejump_<mode>): Likewise.
2432         (<optab>_internal): Likewise.
2433         (sibcall_internal): Likewise.
2434         (sibcall_value_internal): Likewise.
2435         (prefetch): Use constraint ZD.
2436         * config/mips/mips.opt (minterlink-compressed): New option.
2437         (minterlink-mips16): Now an alias for minterlink-compressed.
2438         (mmicromips): New option.
2439         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
2440         (compare_and_swap_12): Likewise.
2441         (sync_add<mode>): Likewise.
2442         (sync_<optab>_12): Likewise.
2443         (sync_old_<optab>_12): Likewise.
2444         (sync_new_<optab>_12): Likewise.
2445         (sync_nand_12): Likewise.
2446         (sync_old_nand_12): Likewise.
2447         (sync_new_nand_12): Likewise.
2448         (sync_sub<mode>): Likewise.
2449         (sync_old_add<mode>): Likewise.
2450         (sync_old_sub<mode>): Likewise.
2451         (sync_new_add<mode>): Likewise.
2452         (sync_new_sub<mode>): Likewise.
2453         (sync_<optab><mode>): Likewise.
2454         (sync_old_<optab><mode>): Likewise.
2455         (sync_new_<optab><mode>): Likewise.
2456         (sync_nand<mode>): Likewise.
2457         (sync_old_nand<mode>): Likewise.
2458         (sync_new_nand<mode>): Likewise.
2459         (sync_lock_test_and_set<mode>): Likewise.
2460         (test_and_set_12): Likewise.
2461         (atomic_compare_and_swap<mode>): Likewise.
2462         (atomic_exchange<mode>_llsc): Likewise.
2463         (atomic_fetch_add<mode>_llsc): Likewise.
2464         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
2465         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
2466         (umips_save_restore_pattern_p): Likewise.
2467         (umips_load_store_pair_p): Likewise.
2468         (umips_output_load_store_pair): Likewise.
2469         (umips_movep_target_p): Likewise.
2470         (umips_12bit_offset_address_p): Likewise.
2471         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
2472         (mips_base_mips16): Rename this...
2473         (mips_base_compression_flags): ...to this. Update all uses.
2474         (mips_attribute_table): Add micromips, nomicromips and nocompression.
2475         (mips_mips16_decl_p): Delete.
2476         (mips_nomips16_decl_p): Delete.
2477         (mips_get_compress_on_flags): New function.
2478         (mips_get_compress_off_flags): New function.
2479         (mips_get_compress_mode): New function.
2480         (mips_get_compress_on_name): New function.
2481         (mips_get_compress_off_name): New function.
2482         (mips_insert_attributes): Support multiple compression types.
2483         (mips_merge_decl_attributes): Likewise.
2484         (umips_12bit_offset_address_p): New function.
2485         (mips_start_function_definition): Emit .set micromips directive.
2486         (mips_call_may_need_jalx_p): New function.
2487         (mips_function_ok_for_sibcall): Add microMIPS support.
2488         (mips_print_operand_punctuation): Support short delay slots and
2489         compact jumps.
2490         (umips_swm_mask, umips_swm_encoding): New.
2491         (umips_build_save_restore): New function.
2492         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
2493         (was_mips16_p): Remove.
2494         (old_compression_mode): New.
2495         (mips_set_compression_mode): New function.
2496         (mips_set_current_function): Add microMIPS support.
2497         (mips_option_override): Likewise.
2498         (umips_save_restore_pattern_p): New function.
2499         (umips_output_save_restore): New function.
2500         (umips_load_store_pair_p_1): New function.
2501         (umips_load_store_pair_p): New function.
2502         (umips_output_load_store_pair_1): New function.
2503         (umips_output_load_store_pair): New function.
2504         (umips_movep_target_p) New function.
2505         (mips_prepare_pch_save): Add microMIPS support.
2506         * config/mips/mips.h (TARGET_COMPRESSION): New.
2507         (TARGET_CPU_CPP_BUILTINS): Update macro
2508         to use new compression flags and to support microMIPS.
2509         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
2510         (MIPS_ARCH_FLOAT_SPEC): Likewise.
2511         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
2512         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
2513         (ASM_SPEC): Support mmicromips and mno-micromips.
2514         (M16STORE_REG_P): New macro.
2515         (MIPS_CALL): Support TARGET_MICROMIPS.
2516         (MICROMIPS_J): New macro.
2517         (mips_base_mips16): Rename this...
2518         (mips_base_compression_flags): ...to this.
2519         (UMIPS_12BIT_OFFSET_P): New macro.
2520         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
2521         (MULTILIB_DIRNAMES): Likewise.
2523 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
2525         PR target/52555
2526         * target-globals.c (save_target_globals): For init_reg_sets and
2527         target_reinit remporarily set this_fn_optabs to this_target_optabs.
2529 2013-02-22  James Grennahlgh  <james.greenhalgh@arm.com>
2531         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
2532         * config/aarch64/t-aarch64
2533         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
2535 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
2537         PR inline-asm/56148
2538         * lra-constraints.c (process_alt_operands): Reload operand
2539         conflicting with earlier clobber only if no more other conflicting
2540         operands.
2542 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
2544         PR sanitizer/56393
2545         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
2546         if not linking a shared library.
2548 2013-02-22  Seth LaForge  <sethml@google.com>
2550         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
2552 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
2554         * config/arm/arm.md (split for extendsidi): Update condition.
2555         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
2556         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
2557         (qhs_zextenddi_cstr): Likewise.
2559 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
2561         PR middle-end/56420
2562         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
2563         avoid signed wrapping.
2564         (expand_mult): Handle properly multiplication by
2565         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
2566         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
2567         in the compiler if coeff is HOST_WIDE_INT_MIN.
2568         (expand_divmod): Don't make ext_op1 static, change it's type to
2569         uhwi.  Avoid undefined behavior in -INTVAL (op1).
2571         PR rtl-optimization/50339
2572         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
2573         field.
2574         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
2575         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
2576         into splitting_ashiftrt field.
2577         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
2578         ASHIFTRT.
2579         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
2580         choices.
2582 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
2584         PR middle-end/56108
2585         * trans-mem.c (execute_tm_mark): Do not expand transactions that
2586         are sure to go irrevocable.
2588 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
2590         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
2591         scalars are valid operands.
2593 2013-02-21  Martin Jambor  <mjambor@suse.cz>
2595         PR tree-optimization/56310
2596         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
2597         only matching indices and non-negative final offsets.
2598         (intersect_aggregates_with_edge): Pass src_idx to
2599         agg_replacements_to_vector.  Pass src_idx insstead of index to
2600         intersect_with_agg_replacements.
2602 2013-02-21  Martin Jambor  <mjambor@suse.cz>
2604         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
2605         instead of hard-wired defaults.
2607 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
2609         * doc/invoke.texi (MIPS Options): Update documentation of the
2610         floating-point multiply-accumulate instruction restrictions.
2612 2013-02-21  Kostya Serebryany  <kcc@google.com>
2614         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
2615         asan_shadow_offset on x86_64 linux.
2617 2013-02-21  Richard Biener  <rguenther@suse.de>
2619         PR tree-optimization/56415
2620         Revert
2621         2013-02-11  Richard Biener  <rguenther@suse.de>
2623         PR tree-optimization/56273
2624         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
2625         first VRP run.
2627 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
2629         PR bootstrap/56258
2630         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
2631         instead of @itemx.
2633         PR inline-asm/56405
2634         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
2635         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
2637 2013-02-20  Jan Hubicka  <jh@suse.cz>
2639         PR tree-optimization/56265
2640         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
2641         when target is referenced for first time.
2643 2013-02-20  Richard Biener  <rguenther@suse.de>
2645         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
2646         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
2647         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
2648         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
2649         not return anything.
2650         (rename_ssa_copies): Do not remove unused locals.
2651         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
2652         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
2653         * passes.c (execute_function_todo): Do not schedule unused locals
2654         removal if cleanup_tree_cfg did something.
2655         * tree-ssa-live.c (remove_unused_locals): Dump statistics
2656         about the number of removed locals.
2658 2013-02-20  Richard Biener  <rguenther@suse.de>
2660         PR tree-optimization/56398
2661         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
2663 2013-02-20  Martin Jambor  <mjambor@suse.cz>
2665         PR tree-optimization/55334
2666         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
2667         restricted pointers to arrays.
2669 2013-02-20  Richard Biener  <rguenther@suse.de>
2670             Jakub Jelinek  <jakub@redhat.com>
2672         PR tree-optimization/56396
2673         * tree-ssa-ccp.c (n_const_val): New static variable.
2674         (get_value): Return NULL for SSA names we don't have a lattice
2675         entry for.
2676         (ccp_initialize): Initialize n_const_val.
2677         * tree-ssa-copy.c (n_copy_of): New static variable.
2678         (init_copy_prop): Initialize n_copy_of.
2679         (get_value): Return NULL_TREE for SSA names we don't have a
2680         lattice entry for.
2682 2013-02-20  Martin Jambor  <mjambor@suse.cz>
2684         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
2686 2013-02-20  Richard Biener  <rguenther@suse.de>
2688         * genpreds.c (write_lookup_constraint): Do not compare first
2689         letter of the constraint again.
2691 2013-02-20  Richard Biener  <rguenther@suse.de>
2693         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
2694         and ceil_log2.
2695         (get_use_iv_cost): Terminate hashtable walk when coming across
2696         an empty entry.
2698 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
2700         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
2701         reassociation for avx2 targets.
2703 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
2705         * config/microblaze/microblaze.c: microblaze_has_clz = 0
2706         Add version check for v8.10.a to enable microblaze_has_clz
2707         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
2708         version and TARGET_PATTERN_COMPARE check
2709         * config/microblaze/microblaze.md: New clzsi2 instruction
2711 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
2713         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
2714         function before branching.
2716 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
2718         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
2719         DUMP_INSN_RTX_UID.
2720         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
2722 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
2724         PR middle-end/55889
2725         * sel-sched.c: Include ira.h.
2726         (implicit_clobber_conflict_p): New function.
2727         (moveup_expr): Use it.
2728         * Makefile.in (sel-sched.o): Depend on ira.h.
2730 2013-02-19  Richard Biener  <rguenther@suse.de>
2732         PR tree-optimization/56384
2733         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
2734         (vn_hash_type): Split out from ...
2735         (vn_hash_constant_with_type): ... here.
2736         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
2737         (vn_phi_eq): Compare types from vn_phi_s structure.
2738         (vn_phi_lookup): Populate vn_phi_s type.
2739         (vn_phi_insert): Likewise.
2741 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
2743         PR tree-optimization/56350
2744         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
2745         if haven't found reduction or nested cycle operand, rather than
2746         asserting we must find it.
2748         PR tree-optimization/56381
2749         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
2750         to fold_build3.
2752 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
2753             Jakub Jelinek  <jakub@redhat.com>
2755         PR target/52555
2756         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
2757         (swap_optab_enable): Same.
2758         (init_all_optabs): Use argument instead of global.
2759         * tree.h (struct tree_optimization_option): New field target_optabs.
2760         * expr.h (init_all_optabs): Add argument to prototype.
2761         (TREE_OPTIMIZATION_OPTABS): New.
2762         (save_optabs_if_changed): Protoize.
2763         * optabs.h: Declare this_fn_optabs.
2764         * optabs.c (save_optabs_if_changed): New.
2765         Declare this_fn_optabs.
2766         (init_optabs): Add argument to init_all_optabs() call.
2767         * function.c (invoke_set_current_function_hook): Handle per
2768         function optabs.
2769         * function.h (struct function): New field optabs.
2770         * config/mips/mips.c (mips_set_mips16_mode): Handle when
2771         optimization_current_node has changed.
2772         * target-globals.h (save_target_globals_default_opts): Protoize.
2773         * target-globals.c (save_target_globals_default_opts): New.
2775 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2777         PR target/56347
2778         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
2779         registers %fr12 and %fr12R as call used.
2781         PR target/56214
2782         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
2783         and HImode, require all displacements to be an integer multiple of
2784         their mode size.
2785         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
2786         only allow QImode and HImode when reload is in progress and strict is
2787         true.  Likewise for symbolic addresses.  Use base14_operand to check
2788         displacements in REG+BASE addresses.
2790 2013-02-18  Richard Biener  <rguenther@suse.de>
2792         PR tree-optimization/56366
2793         * tree-vect-loop.c (get_initial_def_for_induction): Properly
2794         handle sign-conversion of outer-loop initial induction value.
2796 2013-02-18  Richard Biener  <rguenther@suse.de>
2798         PR middle-end/56349
2799         * cfghooks.c (merge_blocks): If we merge a latch into another
2800         block adjust references to it.
2801         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
2802         (verify_loop_structure): Verify that a recorded latch is in fact
2803         a latch.
2805 2013-02-18  Richard Biener  <rguenther@suse.de>
2807         PR tree-optimization/56321
2808         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
2809         order SSA name release and virtual operand unlinking.
2811 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
2813         * config/microblaze/microblaze.md (save_stack_block): Define.
2814         (restore_stack_block): Likewise.
2816 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
2818         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
2819         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
2820         * config/microblaze/microblaze.c (microblaze_option_override):
2821         Bail out early for PIC modes when target does not support PIC.
2823 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
2825         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
2826         Replace with a microblaze version.
2827         (microblaze_trampoline_init): Adapt for microblaze.
2828         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
2829         microblaze.
2831 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
2832             Dodji Seketeli  <dodji@redhat.com>
2834         PR asan/56330
2835         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
2836         (instrument_mem_region_access): Do not forget to always put
2837         instrumentation of the of 'base' and 'base + len' in a "if (len !=
2838         0) statement, even for cases where either 'base' or 'base + len'
2839         are not instrumented -- because they have been previously
2840         instrumented.  Simplify the logic by putting all the statements
2841         instrument 'base + len' inside a sequence, and then insert that
2842         sequence right before the current insertion point.  Then, to
2843         instrument 'base + len', just get an iterator on that statement.
2844         And do not forget to update the pointer to iterator the function
2845         received as argument.
2847 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
2849         PR rtl-optimization/56348
2850         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
2852 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
2854         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
2855         (clean_graph_dump_file): Pass base to start_graph_dump.
2857 2013-02-14  Richard Henderson  <rth@redhat.com>
2859         PR target/55941
2860         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
2862 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
2864         * collect2-aix.h: Define F_LOADONLY.
2866 2013-02-14  Richard Biener  <rguenther@suse.de>
2868         PR lto/50494
2869         * varasm.c (output_constant_def_1): Get the decl representing
2870         the constant as argument.
2871         (output_constant_def): Wrap output_constant_def_1.
2872         (make_decl_rtl): Use output_constant_def_1 with the decl
2873         representing the constant.
2874         (build_constant_desc): Optionally re-use a decl already
2875         representing the constant.
2876         (tree_output_constant_def): Adjust.
2878 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
2880         Fix an asan crash
2881         * asan.c (instrument_builtin_call):  Really put the length of the
2882         second source argument into src1_len.
2884 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
2886         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
2887         argument.  If it is false, don't create edge from then_bb to
2888         fallthru_bb.
2889         (insert_if_then_before_iter): Pass true to it.
2890         (build_check_stmt): Pass false to it.
2891         (transform_statements): Flush hash table only on extended basic
2892         block boundaries, rather than at the beginning of every bb.
2893         Don't flush hash table on nonfreeing_call_p calls.
2894         * tree-flow.h (nonfreeing_call_p): New prototype.
2895         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
2897 2013-02-13  David S. Miller  <davem@davemloft.net>
2899         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
2901 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
2903         PR target/56184
2904         * ira.c (max_regno_before_ira): Move from ...
2905         (ira): ... here.
2906         (fix_reg_equiv_init): Use max_regno_before_ira instead of
2907         vec_safe_length.
2909 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
2911         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
2913 2013-02-13  Richard Biener  <rguenther@suse.de>
2915         PR lto/56295
2916         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
2917         globals in MEM_REFs.
2919 2013-02-13  Richard Biener  <rguenther@suse.de>
2921         * loop-init.c (loop_optimizer_init): Clear loop state when
2922         re-initializing preserved loops.
2923         * loop-unswitch.c (unswitch_single_loop): Return whether
2924         we unswitched the loop.  Do not verify loop state here.
2925         (unswitch_loops): When we unswitched a loop discover new loops.
2927 2013-02-13  Kostya Serebryany  <kcc@google.com>
2929         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
2930         on x86_64 linux.
2931         * sanitizer.def: Rename __asan_init to __asan_init_v1.
2933 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
2935         Avoid instrumenting duplicated memory access in the same basic block
2936         * Makefile.in (asan.o): Add new dependency on hash-table.h
2937         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
2938         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
2939         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
2940         (free_mem_ref_resources, has_mem_ref_been_instrumented)
2941         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
2942         (get_mem_ref_of_assignment): New functions.
2943         (get_mem_refs_of_builtin_call): Extract from
2944         instrument_builtin_call and tweak a little bit to make it fit with
2945         the new signature.
2946         (instrument_builtin_call): Use the new
2947         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
2948         of is_gimple_builtin_call.
2949         (instrument_derefs, instrument_mem_region_access): Insert the
2950         instrumented memory reference into the hash table.
2951         (maybe_instrument_assignment): Renamed instrument_assignment into
2952         this, and change it to advance the iterator when instrumentation
2953         actually happened and return true in that case.  This makes it
2954         homogeneous with maybe_instrument_assignment, and thus give a
2955         chance to callers to be more 'regular'.
2956         (transform_statements): Clear the memory reference hash table
2957         whenever we enter a new BB, when we cross a function call, or when
2958         we are done transforming statements.  Use
2959         maybe_instrument_assignment instead of instrumentation.  No more
2960         need to special case maybe_instrument_assignment and advance the
2961         iterator after calling it; it's now handled just like
2962         maybe_instrument_call.  Update comment.
2964 2013-02-13  Richard Biener  <rguenther@suse.de>
2966         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
2967         Fix loop discovery code.
2969 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
2971         PR inline-asm/56148
2972         * lra-constraints.c (process_alt_operands): Match early clobber
2973         operand with itself.  Check conflicts with earlyclobber only if
2974         the operand is not reloaded.  Prefer to reload conflicting operand
2975         if earlyclobber and matching operands are the same.
2977 2013-02-12  Richard Biener  <rguenther@suse.de>
2979         PR lto/56297
2980         * lto-streamer-out.c (write_symbol): Do not output symbols
2981         for hard register variables.
2983 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
2985         PR target/54222
2986         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
2987         (umulsidi3_insn, mulsidi3_insn): New insns.
2989 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
2991         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
2992         (struct tune_params): Add vec_costs field.
2993         * config/arm/arm.c (arm_builtin_vectorization_cost)
2994         (arm_add_stmt_cost): New functions.
2995         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
2996         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
2997         (arm_default_vec_cost): New struct of type cpu_vec_costs.
2998         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
2999         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
3000         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
3001         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
3003 2013-02-12  Richard Biener  <rguenther@suse.de>
3005         PR lto/56295
3006         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
3007         decls again if possible.
3009 2013-02-12  Richard Biener  <rguenther@suse.de>
3011         PR middle-end/56288
3012         * tree-ssa.c (verify_ssa_name): Fix check, move
3013         SSA_NAME_IN_FREE_LIST check up.
3015 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
3016             Steven Bosscher   <steven@gcc.gnu.org>
3018         PR rtl-optimization/56151
3019         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
3020         equal to op0 or op1, and last_insn pattern is CODE operation
3021         with MEM dest and one of the operands matches that MEM.
3023 2013-02-11  Sriraman Tallam  <tmsriramgoogle.com>
3025         * doc/extend.texi: Document Function Multiversioning and "default"
3026         parameter string to target attribute.
3027         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
3028         target attribute parameter is "default".
3029         (ix86_compare_version_priority): Remove checks for target attribute.
3030         (ix86_mangle_function_version_assembler_name): Change error to sorry.
3031         Remove check for target attribute equal to NULL. Add assert.
3032         (ix86_generate_version_dispatcher_body): Change error to sorry.
3034 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
3035             Jack Howarth  <howarth@bromo.med.uc.edu>
3036             Patrick Marlier  <patrick.marlier@gmail.com>
3038         PR libitm/55693
3039         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
3040         define ENDFILE_SPEC as TM_DESTRUCTOR.
3041         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
3043 2013-02-11  Alexander Potapenko  <glider@google.com>
3044             Jack Howarth  <howarth@bromo.med.uc.edu>
3045             Jakub Jelinek  <jakub@redhat.com>
3047         PR sanitizer/55617
3048         * config/darwin.c (cdtor_record): Rename ctor_record.
3049         (sort_cdtor_records): Rename sort_ctor_records.
3050         (finalize_dtors): New routine to sort destructors by
3051         priority before use in assemble_integer.
3052         (machopic_asm_out_destructor): Use finalize_dtors if needed.
3054 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
3056         PR rtl-optimization/56275
3057         * simplify-rtx.c (avoid_constant_pool_reference): Check that
3058         offset is non-negative and less than cmode size before
3059         calling simplify_subreg.
3061 2013-02-11  Richard Biener  <rguenther@suse.de>
3063         PR tree-optimization/56264
3064         * cfgloop.h (fix_loop_structure): Adjust prototype.
3065         * loop-init.c (fix_loop_structure): Return the number of
3066         newly discovered loops.
3067         * tree-cfgcleanup.c (repair_loop_structures): When new loops
3068         are discovered, do a full loop-closed SSA rewrite.
3070 2013-02-11  Richard Biener  <rguenther@suse.de>
3072         PR tree-optimization/56273
3073         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
3074         first VRP run.
3075         (check_array_ref): Fix missing newline in dumps.
3076         (search_for_addr_array): Likewise.
3078 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
3080         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
3082 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
3084         PR target/56256
3085         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
3087 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
3089         PR rtl-optimization/56246
3090         * lra-constraints.c (simplify_operand_subreg): Try to reuse
3091         reload pseudo.
3092         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
3093         constraints are satisfied.
3095 2013-02-08  Jeff Law  <law@redhat.com>
3097         PR debug/53948
3098         * emit-rtl.c (reg_is_parm_p): New function.
3099         * regs.h (reg_is_parm_p): New prototype.
3100         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
3101         callee-clobbered registers.
3103 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
3105         PR target/56043
3106         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
3107         If there is no implicit builtin declaration, just return NULL.
3109 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
3111         * config/i386/sse.md (FMAMODEM): New mode iterator.
3112         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
3113         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
3115 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
3117         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
3118         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
3119         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
3121 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
3123         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
3124         (microblaze*-*-elf): Likewise.
3125         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
3126         LINK_SPEC.
3127         * config/microblaze/microblaze-c.c: Add builtin defines for
3128         _LITTLE_ENDIAN and _BIG_ENDIAN.
3129         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
3130         add to TARGET_DEFAULT flags.
3131         Expand ASM_SPEC and LINK_SPEC.
3132         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
3133         * config/microblaze/microblaze.md: Update extendsidi2 and
3134         movdi_internal instructions to use low-order / high-order reg
3135         print_operands.
3136         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
3137         options and inversemask / mask of LITTLE_ENDIAN.
3138         * config/microblaze/t-microblaze: Expand multilib options to
3139         include mlittle-endian (le) and update exceptions patterns.
3141 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
3143         PR rtl-optimization/56195
3144         * lra-constraints.c (get_reload_reg): Don't reuse regs
3145         if they have smaller mode than requested, if they have
3146         wider mode than requested, try to return a SUBREG.
3148         PR tree-optimization/56250
3149         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
3150         if type is unsigned and code isn't MULT_EXPR.
3152 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
3154         PR tree-optimization/56064
3155         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
3156         bits according to mode.
3157         * fixed-value.h (fixed_from_double_int)
3158         (const_fixed_from_double_int): Adjust comments.
3160 2013-02-08  Richard Biener  <rguenther@suse.de>
3162         PR lto/56231
3163         * lto-streamer.h (struct data_in): Remove current_file, current_line
3164         and current_col members.
3165         * lto-streamer-out.c (lto_output_location): Stream changed bits
3166         en-block for efficiency.
3167         * lto-streamer-in.c (clear_line_info): Remove.
3168         (lto_input_location): Cache current file, line and column
3169         globally via local statics.  Read changed bits en-block.
3170         (input_function): Do not call clear_line_info.
3171         (lto_read_body): Likewise.
3172         (lto_input_toplevel_asms): Likewise.
3174 2013-02-08  Michael Matz  <matz@suse.de>
3176         PR tree-optimization/52448
3177         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
3178         (nt_call_phase): New static.
3179         (add_or_mark_expr): Only mark accesses with newer phase than any
3180         call seen.
3181         (nonfreeing_call_p): New.
3182         (nt_init_block): Update nt_call_phase, mark blocks as visited.
3183         (nt_fini_block): Keep blocks marked as visited.
3184         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
3186 2013-02-08  Richard Biener  <rguenther@suse.de>
3188         * ira.c (ira): Free broken dominator information.
3190 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
3192         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
3194 2013-02-08  Marek Polacek  <polacek@redhat.com>
3196         * cfgloop.c (verify_loop_structure): Add more checking of headers.
3198 2013-02-08  Richard Biener  <rguenther@suse.de>
3200         PR middle-end/56181
3201         * cfgloop.h (flow_loops_find): Adjust.
3202         (bb_loop_header_p): Declare.
3203         * cfgloop.c (bb_loop_header_p): New function split out from ...
3204         (flow_loops_find): ... here.  Adjust function signature,
3205         support incremental loop structure update.
3206         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
3207         * cfgloopmanip.c (fix_loop_structure): Move ...
3208         * loop-init.c (fix_loop_structure): ... here.
3209         (apply_loop_flags): Split out from ...
3210         (loop_optimizer_init): ... here.
3211         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
3212         in incremental mode, only remove dead loops here.
3214 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
3216         PR target/54222
3217         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
3218         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
3219         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
3220         (*round<mode>3.libgcc): New insns for fixed-modes.
3221         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
3222         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
3223         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
3224         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
3225         implementations.  Define to __builtin_avr_absFX,
3226         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
3227         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
3228         __builtin_avr_countlsFX, respectively.
3229         * config/avr/avr-c.c (target.h): Include it.
3230         (enum avr_builtin_id): New enum.
3231         (avr_resolve_overloaded_builtin): New static function.
3232         (avr_register_target_pragmas): Use it to set
3233         targetm.resolve_overloaded_builtin.
3234         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
3235         tree nodes used by DEF_BUILTIN.
3236         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
3237         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
3238         <AVR_BUILTIN_xxBITS>: Same.
3240 2013-02-08  Richard Biener  <rguenther@suse.de>
3242         * cfgloop.c (verify_loop_structure): Properly handle
3243         a loop exiting to another loop header.
3244         * ira-int.h (ira_loops): Remove.
3245         * ira.c (ira_loops): Remove.
3246         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
3247         (do_reload): Use loop_optimizer_finalize.
3248         * ira-build.c (create_loop_tree_nodes): Use get_loops and
3249         number_of_loops to access the loop tree.
3250         (more_one_region_p): Likewise.
3251         (finish_loop_tree_nodes): Likewise.
3252         (rebuild_regno_allocno_maps): Likewise.
3253         (mark_loops_for_removal): Likewise.
3254         (mark_all_loops_for_removal): Likewise.
3255         (remove_unnecessary_regions): Likewise.
3256         (ira_build): Likewise.
3257         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
3259 2013-02-08  Richard Biener  <rguenther@suse.de>
3261         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
3262         * ipa-pure-const.c (analyze_function): Avoid calling
3263         mark_irreducible_loops twice.
3264         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
3266 2013-02-07  David S. Miller  <davem@davemloft.net>
3268         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
3269         on 'reg'.
3270         * var-tracking.c (vt_add_function_parameter): Test the presence of
3271         HAVE_window_save properly and do not remap argument registers when
3272         we have a leaf function.
3274 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
3276         PR bootstrap/56227
3277         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
3278         instead of "ll".
3279         * config/i386/i386.c (ix86_print_operand): Ditto.
3281 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
3283         * lra-constraints.c (process_alt_operands): Fix recently added comment.
3285 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
3287         PR rtl-optimization/56225
3288         * lra-constraints.c (process_alt_operands): Check that reload hard
3289         reg can hold value for strict_low_part.
3291 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
3293         PR debug/56154
3294         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
3295         dwarf2out_end_function.
3296         (in_first_function_p, maybe_at_text_label_p,
3297         first_loclabel_num_not_at_text_label): New variables.
3298         (dwarf2out_var_location): In the first function find out
3299         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
3300         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
3301         functions.
3303 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
3305         PR rtl-optimization/56178
3306         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
3307         SUBREG of a register.  Tidy up related block of code.
3308         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
3309         note if the source is a register or a SUBREG of a register.
3311 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
3313         PR target/56228
3314         * config/rs6000/rs6000.md (ptrm): New mode attr.
3315         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
3316         call_value_indirect_aix<pttrsize>,
3317         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
3318         m in constraints.
3320 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
3322         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
3323         if -bnortl. Convert to strcmp and strncmp.
3325 2013-02-07  Alan Modra  <amodra@gmail.com>
3327         PR target/54009
3328         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
3329         addresses won't wrap when offsetting.
3330         (rs6000_secondary_reload): Provide secondary reloads needed for
3331         wrapping LO_SUM addresses.
3333 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
3335         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
3336         MACH, just __MACH__.
3338 2013-02-06  Richard Biener  <rguenther@suse.de>
3340         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
3341         instead of calling fix_loop_structure.
3343 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
3345         PR middle-end/56217
3346         * omp-low.c (use_pointer_for_field): Return false if
3347         lower_send_shared_vars doesn't generate any copy-out code.
3349 2013-02-06  Tom de Vries  <tom@codesourcery.com>
3351         PR rtl-optimization/56131
3352         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
3353         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
3354         of the label is NULL.  Add comment.
3356 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
3358         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
3360         PR sanitizer/55374
3361         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
3362         (STATIC_LIBTSAN_LIBS): Likewise.
3363         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
3364         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
3365         is defined, don't add anything else beyond that.
3366         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
3367         (LINK_COMMAND_SPEC): Use them.
3369         PR tree-optimization/56205
3370         * tree-stdarg.c (check_all_va_list_escapes): Return true if
3371         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
3372         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
3374 2013-02-05  Richard Biener  <rguenther@suse.de>
3376         PR tree-optimization/53342
3377         PR tree-optimization/53185
3378         * tree-vectorizer.h (vect_check_strided_load): Remove.
3379         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
3380         not disallow peeling for vectorized strided loads.
3381         (vect_check_strided_load): Make static and simplify.
3382         (vect_analyze_data_refs): Adjust.
3383         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
3384         correctly when vectorizing strided loads.
3386 2013-02-05  Richard Biener  <rguenther@suse.de>
3388         * doc/install.texi: Refer to ISL, not PPL.
3390 2013-02-05  Jan Hubicka  <jh@suse.cz>
3392         PR tree-optimization/55789
3393         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
3395 2013-02-05  Jan Hubicka  <jh@suse.cz>
3397         PR tree-optimization/55789
3398         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
3399         the dead call anyway.
3401 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
3403         PR sanitizer/55374
3404         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
3406 2013-02-04  Alexander Potapenko  <glider@google.com>
3407             Jack Howarth  <howarth@bromo.med.uc.edu>
3408             Jakub Jelinek  <jakub@redhat.com>
3410         PR sanitizer/55617
3411         * config/darwin.c (sort_ctor_records): Stabilized qsort
3412         on constructor priority by using original position.
3413         (finalize_ctors): New routine to sort constructors by
3414         priority before use in assemble_integer.
3415         (machopic_asm_out_constructor): Use finalize_ctors if needed.
3417 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
3419         PR libstdc++/54314
3420         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
3421         about visibility on artificial decls.
3422         * config/sol2.c (solaris_assemble_visibility): Likewise.
3424 2013-02-04  Kai Tietz  <ktietz@redhat.com>
3426         PR target/56186
3427         * config/i386/i386.c (function_value_ms_64): Add additional valtype
3428         argument and improve checking of return-argument types for 16-byte
3429         modes.
3430         (ix86_function_value_1): Add additional valtype argument on call
3431         of function_value_64.
3432         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
3433         handling infunction_value_64 function.
3435 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
3437         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
3439 2013-02-04  Richard Biener  <rguenther@suse.de>
3441         PR tree-optimization/56188
3442         * tree-ssa-structalias.c (label_visit): Consider case with
3443         initially non-empty points-to set.
3444         (perform_var_substitution): Dump node mapping and clean up.
3446 2013-02-04  Richard Guenther  <rguenther@suse.de>
3448         PR lto/56168
3449         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
3450         node prevail as last resort.
3451         (lto_symtab_merge_decls): Remove guard on LTRANS here.
3452         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
3454 2013-02-04  Richard Biener  <rguenther@suse.de>
3456         PR tree-optimization/56113
3457         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
3458         Merge into ...
3459         (equiv_class_lookup_or_add): ... this.
3460         (label_visit): Adjust and fix error in previous patch.
3461         (perform_var_substitution): Adjust.
3463 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
3465         * config/sh/divtab.c: Fix formatting and comments throughout the file.
3466         * config/sh/sh4-300.md: Likewise.
3467         * config/sh/sh4a.md: Likewise.
3468         * config/sh/constraints.md: Likewise.
3469         * config/sh/sh.md: Likewise.
3470         * config/sh/netbsd-elf.h: Likewise.
3471         * config/sh/predicates.md: Likewise.
3472         * config/sh/sh-protos.h: Likewise.
3473         * config/sh/ushmedia.h: Likewise.
3474         * config/sh/linux.h: Likewise.
3475         * config/sh/sh.c: Likewise.
3476         * config/sh/superh.h: Likewise.
3477         * config/sh/elf.h: Likewise.
3478         * config/sh/sh4.md: Likewise.
3479         * config/sh/sh.h: Likewise.
3481 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3483         * config/pa/constraints.md: Adjust unused letters.  Change "T"
3484         constraint to match_test floating_point_store_memory_operand().
3485         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
3486         (base14_operand): New.
3487         (floating_point_store_memory_operand): New.
3488         (integer_store_memory_operand): Revise to use base14_operand and
3489         reg_plus_base_memory_operand.
3490         (move_dest_operand): Allow symbolic_memory_operands.
3491         (symbolic_memory_operand): Check for LO_SOM.
3492         (symbolic_operand): Change default case to break.
3493         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
3494         CONST_DOUBLE values to be reloaded by putting them into memory when
3495         the destination is a floating point register.
3496         (movdf): Remove code to handle CONST_DOUBLE.
3497         (movsf): Likewise.
3498         (reload_indf_r1): New.
3499         (reload_insf_r1): New.
3500         Consistently use "Q" and "T" constraints with integer and floating
3501         point move instructions, respectively.
3502         (movdi): Remove FAIL.
3503         Change predicate for source operand unamed DImode move from
3504         general_operand to move_src_operand.
3505         (umulsidi3): Change predicate for destination operand to
3506         register_operand.
3507         Likewise for similar unamed patterns.
3508         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
3509         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
3510         (hppa_legitimize_address): Simplify mask calculation.
3511         (pa_emit_move_sequence): Revised handling of secondary reloads from
3512         REG+D addresses for floating point loads and stores.  Directly handle
3513         loading CONST0_RTX (mode) to a floating point register.
3514         (pa_secondary_reload): Handle reloading DF and SFmode constant values
3515         to floating point registers.  Don't restrict secondary reloads to
3516         floating point registers to integer modes.  Revise some comments and
3517         cleanup some code.
3518         (TARGET_LEGITIMATE_ADDRESS_P): Define.
3519         (pa_legitimate_address_p): New.
3520         (pa_legitimize_reload_address): New.
3521         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
3522         (STRICT_REG_OK_FOR_BASE_P): New.
3523         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
3524         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
3526 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
3527             Andrew Dixie  <andrewd@gentrack.com>
3529         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
3530         flag set.
3532 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
3534         * expmed.c (extract_bit_field_1): Pass the full width of the
3535         structure to get_best_reg_extraction_insn.
3537 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
3539         PR target/54601
3540         * configure.ac (use_cxa_atexit): Add AIX.
3541         * configure: Regenerate.
3543         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
3545 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
3547         PR debug/54793
3548         * final.c (need_profile_function): New variable.
3549         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
3550         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
3551         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
3552         notes, targetm.asm_out.function_prologue doesn't emit anything,
3553         HAVE_prologue and profiler should be emitted before prologue,
3554         set need_profile_function instead of emitting it.
3555         (final_scan_insn): If need_profile_function, emit
3556         profile_function on the first NOTE_INSN_BASIC_BLOCK or
3557         NOTE_INSN_FUNCTION_BEG note.
3559 2013-02-01  Richard Henderson  <rth@redhat.com>
3561         * config/rs6000/rs6000.md (smulditi3): New.
3562         (umulditi3): New.
3564         * config/alpha/alpha.md (umulditi3): New.
3566 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
3568         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
3569         (ASM_OUTPUT_ALIGNED_LOCAL): New.
3571 2013-02-01  Richard Biener  <rguenther@suse.de>
3573         PR tree-optimization/56113
3574         * tree-ssa-structalias.c (label_visit): Reduce work for
3575         single-predecessor nodes.
3577 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
3579         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
3580         range isn't testing for zero.
3582 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
3584         PR middle-end/56113
3585         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
3587 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
3588             Nick Clifton  <nickc@redhat.com>
3590         * config/v850/constraints.md (Q): Define as a memory constraint.
3591         * config/v850/predicates.md (label_ref_operand): New predicate.
3592         (e3v5_shift_operand): New predicate.
3593         (ior_operator): New predicate.
3594         * config/v850/t-v850: Add e3v5 multilib.
3595         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
3596         (v850_gen_movdi): Prototype.
3597         * config/v850/v850.c: Add support for e3v5 architecture.
3598         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
3599         TARGET_V850E_UP.
3600         (construct_save_jarl): Add e3v5 long JARL support.
3601         (v850_adjust_insn_length): New function.  Adjust length of call
3602         insns when using e3v5 instructions.
3603         (v850_gen_movdi): New function: Generate instructions to move a
3604         DImode value.
3605         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
3606         (CPP_SPEC): Define __v850e3v5__ as appropriate.
3607         (TARGET_USE_FPU): Enable for e3v5.
3608         (CONST_OK_FOR_W): New macro.
3609         (ADJUST_INSN_LENGTH): Define.
3610         * config/v850/v850.md (UNSPEC_LOOP): Define.
3611         (attr cpu): Add v850e3v5.
3612         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
3613         (movdi): New pattern.
3614         (movdi_internal): New pattern.
3615         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
3616         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
3617         (cstoresf4): Likewise.
3618         (cstoredf4): Likewise.
3619         (insv): New pattern.
3620         (rotlso3_a): New pattern.
3621         (rotlsi3_b): New pattern
3622         (rotlsi3_v850e3v5): New pattern.
3623         (doloop_begin): New pattern.
3624         (fix_loop_counter): New pattern.
3625         (doloop_end): New pattern.
3626         (branch_normal): Add e3v5 long branch support.
3627         (branch_invert): Likewise.
3628         (branch_z_normal): Likewise.
3629         (branch_z_invert): Likewise.
3630         (branch_nz_normal): Likewise.
3631         (branch_nz_invert): Likewise.
3632         (call_internal_short): Add e3v5 register-indirect JARL support.
3633         (call_internal_long): Likewise.
3634         (call_value_internal_short): Likewise.
3635         (call_value_internal_long): Likewise.
3636         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
3637         (mloop): New option.
3638         * config.gcc: Add support for configuring v840e3v5 target.
3639         * doc/invoke.texi: Document new v850 specific command line options.
3641 2013-01-31  Paul Koning  <ni1d@arrl.net>
3643         PR debug/55059
3644         PR debug/54508
3645         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
3646         children if parent is a class.
3647         (prune_unused_types_prune): Don't add DW_AT_declaration.
3649 2013-01-31  Richard Biener  <rguenther@suse.de>
3651         PR tree-optimization/56157
3652         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
3653         match up operand with SLP child.
3655 2013-01-31  Jason Merrill  <jason@redhat.com>
3657         PR debug/54410
3658         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
3659         parameters the first time.
3660         (gen_scheduled_generic_parms_dies): Check completeness here.
3662 2013-01-31  Richard Biener  <rguenther@suse.de>
3664         PR middle-end/53073
3665         * common.opt (faggressive-loop-optimizations): New flag,
3666         enabled by default.
3667         * doc/invoke.texi (faggressive-loop-optimizations): Document.
3668         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
3669         infer_loop_bounds_from_undefined by it.
3671 2013-01-31  Richard Biener  <rguenther@suse.de>
3673         PR tree-optimization/56150
3674         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
3675         visit virtual operands.
3676         (find_uses_to_rename_bb): Likewise.
3678 2013-01-31  Richard Biener  <rguenther@suse.de>
3680         PR tree-optimization/56150
3681         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
3682         mixed store non-store stmts.
3684 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
3686         PR sanitizer/55374
3687         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
3688         LIBASAN_EARLY_SPEC is defined.
3689         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
3690         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
3691         before %o.
3692         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
3694         PR c++/55742
3695         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
3696         invalid args instead of ICEing on it.
3697         (ix86_valid_target_attribute_tree): Return error_mark_node if
3698         ix86_valid_target_attribute_inner_p failed.
3699         (ix86_valid_target_attribute_p): Return false only if
3700         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
3701         target("default") attribute.
3702         (sorted_attr_string): Change argument from const char * to tree,
3703         merge in all target attribute arguments rather than just one.
3704         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
3705         instead of free.  Avoid using strcat.
3706         (ix86_mangle_function_version_assembler_name): Mangle
3707         target("default") as if no target attribute is present.  Adjust
3708         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
3709         instead of xmalloc and XDELETEVEC instead of free.
3710         (ix86_function_versions): Don't return true if one of the decls
3711         doesn't have target attribute.  If they don't and one of the decls
3712         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
3713         sorted_attr_string caller.  Use XDELETEVEC instead of free.
3714         (ix86_supports_function_versions): Remove.
3715         (make_name): Fix up formatting.
3716         (make_dispatcher_decl): Remove resolver_name and its initialization.
3717         Avoid leaking memory.
3718         (is_function_default_version): Return true if there is
3719         target("default") attribute rather than no target attribute at all.
3720         (make_resolver_func): Avoid leaking memory.
3721         (ix86_generate_version_dispatcher_body): Likewise.
3722         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
3723         * target.def (supports_function_versions): Remove.
3724         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
3725         * doc/tm.texi: Regenerated.
3727 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
3729         PR rtl-optimization/56144
3730         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
3731         for values with side effects.
3733 2013-01-30  Richard Biener  <rguenther@suse.de>
3735         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
3736         (sparseset_pop): Likewise.
3737         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
3738         to be able to use quick_push in the worker loop.
3740 2013-01-30  Marek Polacek  <polacek@redhat.com>
3742         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
3744 2013-01-30  Richard Biener  <rguenther@suse.de>
3746         PR lto/56147
3747         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
3749 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
3751         PR tree-optimization/56064
3752         * fixed-value.c (fixed_from_double_int): New function.
3753         * fixed-value.h (fixed_from_double_int): New prototype.
3754         (const_fixed_from_double_int): New static inline function.
3755         * fold-const.c (native_interpret_fixed): New static function.
3756         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
3757         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
3758         (native_encode_fixed): New static function.
3759         (native_encode_expr) <FIXED_CST>: Use it.
3760         (native_interpret_int): Move double_int worker code to...
3761         * double-int.c (double_int::from_buffer): ...this new static method.
3762         * double-int.h (double_int::from_buffer): Prototype it.
3764 2013-01-30  Richard Biener  <rguenther@suse.de>
3766         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
3767         New pointer-map and obstack.
3768         (init_alias_vars): Allocate pointer-map and obstack.
3769         (delete_points_to_sets): Free them.
3770         (find_what_var_points_to): Cache result.
3771         (find_what_p_points_to): Adjust for changed interface of
3772         find_what_var_points_to.
3773         (compute_points_to_sets): Likewise.
3774         (ipa_pta_execute): Likewise.
3776 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3778         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
3779         * configure: Regenerate.
3780         * config.in: Regenerate.
3781         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
3782         #nobits/#progbits if supported.
3784 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
3786         PR target/56121
3787         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
3788         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
3789         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
3791 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
3793         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
3794         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
3796 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
3798         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
3799         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
3801 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
3803         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
3804         declaration.
3805         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
3806         * config/arm/cortex-a7.md: New bypasses using
3807         arm_mac_accumulator_is_result.
3809 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
3811         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
3812         (cortex_a7_neon_mla): Likewise.
3813         (cortex_a7_fpfmad): New reservation.
3814         (cortex_a7_fpmacs): Use ffmas and update required units.
3815         (cortex_a7_fpmuld): Update required units and latency.
3816         (cortex_a7_fpmacd): Likewise.
3817         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
3818         (cortex_a7_neon). Likewise.
3819         (bypass) Update participating units.
3821 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
3823         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
3824         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
3825         from fmac to ffma.
3826         * config/arm/vfp11.md (vfp_farith): Use ffmas.
3827         (vfp_fmul): Use ffmad.
3828         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
3829         (cortex_r4_fmacd): Use ffmad.
3830         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
3831         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
3832         (cortex_a9_fmacd): Use ffmad.
3833         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
3834         (cortex_a8_vfp_macd): Use ffmad.
3835         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
3836         (cortex_a5_fpmacd): Use ffmad.
3837         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
3838         (cortex_a15_vfp_macd): Use ffmad.
3839         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
3841 2013-01-29  Jason Merrill  <jason@redhat.com>
3843         PR libstdc++/54314
3844         * varasm.c (default_assemble_visibility): Don't warn about
3845         visibility on artificial decls.
3847 2013-01-29  Richard Biener  <rguenther@suse.de>
3849         PR tree-optimization/56113
3850         * tree-ssa-structalias.c (equiv_class_lookup): Also return
3851         the bitmap leader.
3852         (label_visit): Free duplicate bitmaps and record the leader instead.
3853         (perform_var_substitution): Adjust.
3855 2013-01-29  Richard Biener  <rguenther@suse.de>
3857         PR tree-optimization/55270
3858         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
3859         the CFG, schedule loops for fixup.
3861 2013-01-29  Nick Clifton  <nickc@redhat.com>
3863         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
3864         SP_REG.
3866 2013-01-28  Leif Ekblad  <leif@rdos.net>
3868         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
3869         * config/i386/i386.h (TARGET_RDOS): New macro.
3870         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
3871         * config/i386/i386.c (ix86_option_override_internal): For 64bit
3872         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
3873         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
3874         DEFAULT_LARGE_SECTION_THRESHOLD.
3875         * config/i386/i386.md (R14_REG, R15_REG): New constants.
3876         * config/i386/rdos.h: New file.
3877         * config/i386/rdos64.h: New file.
3879 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
3881         PR other/54814
3882         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
3883         TEST_HARD_REG_BIT.
3885 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
3887         PR rtl-optimization/56117
3888         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
3889         call cselib_lookup_from_insn on the MEM before calling
3890         add_insn_mem_dependence.
3892 2013-01-28  Richard Biener  <rguenther@suse.de>
3894         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
3895         to a stmt that didn't have one.
3896         (copy_phis_for_bb): Likewise for PHI arguments.
3897         (copy_debug_stmt): Likewise for debug stmts.
3899 2013-01-28  Richard Biener  <rguenther@suse.de>
3901         PR tree-optimization/56034
3902         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
3903         (partition_builtin_p): Adjust.
3904         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
3905         it is the last partition.
3906         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
3907         up the vertex for the definition.
3908         (classify_partition): Classify whether a partition is a
3909         PKIND_REDUCTION, thus has uses outside of the loop.
3910         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
3911         Merge all PKIND_REDUCTION partitions into the last partition.
3912         (tree_loop_distribution): Seed partitions from reductions as well.
3914 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
3916         PR tree-optimization/56125
3917         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
3918         pow(x,c) into sqrt(x) * powi(x, n/2) or
3919         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
3920         optimizing for size.
3921         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
3922         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
3923         integer.
3925         PR tree-optimization/56094
3926         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
3927         to UNKNOWN_LOCATION while gimplifying expr.
3929 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
3931         PR target/56114
3932         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
3933         operand 0 in movabs insn template for -masm=intel asm alternative.
3934         (*movabs<mode>_2): Ditto for operand 1.
3936 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
3938         PR target/54663
3939         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
3940         of microblaze-c.o
3942 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
3944         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
3945         tm_file.
3947 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
3949         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
3950         Undef to avoid warning.
3952 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
3954         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
3955         * configure: Regenerate.
3957 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
3959         PR tree-optimization/56098
3960         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
3961         for stmts with volatile ops.
3962         (cond_store_replacement): Don't optimize if assign has volatile ops.
3963         (cond_if_else_store_replacement_1): Don't optimize if either
3964         then_assign or else_assign have volatile ops.
3965         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
3966         volatile ops.
3968 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
3970         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
3972 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
3974         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
3975         missing ':' in asm example.
3977 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
3979         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
3980         entries into lane and laneq entries.
3981         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
3982         Remove AdvSIMD scalar modes.
3983         (aarch64_sq<r>dmulh_laneq<mode>): New.
3984         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
3985         modes.
3986         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
3987         builtin implementations to relfect changes in RTL in aarch64-simd.md.
3988         * config/aarch64/iterators.md (VCOND): New.
3989         (VCONQ): New.
3991 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
3993         PR target/54222
3994         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
3995         Add NULL LIBNAME argument to existing definitions.
3996         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
3997         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
3998         * config/avr/avr.c (DEF_BUILTIN): Same.
3999         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
4000         (avr_expand_builtin): Expand to a vanilla call if a libgcc
4001         implementation is available (DECL_ASSEMBLER_NAME is set).
4002         (avr_fold_absfx): New static function.
4003         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
4004         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
4005         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
4006         AVR_BUILTIN_ABSLLK.
4007         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
4008         (abshk, absk, abslk, absllk): Provide as static inline functions.
4010 2013-01-25  Marek Polacek  <polacek@redhat.com>
4012         PR tree-optimization/56035
4013         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
4015 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
4017         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
4018         (*movtf_internal_rex64): Add (!o,C) alternative
4019         (*movxf_internal_rex64): Ditto.
4020         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
4022 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
4024         * doc/invoke.texi: fix typo.
4025         * doc/objc.texi: fix typo.
4027 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
4029         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
4030         for the first two alternatives.
4032 2013-01-24  Diego Novillo  <dnovillo@google.com>
4034         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
4035         (ggc-zone.o): Remove.
4036         * configure.ac: Remove option --with-gc.
4037         * configure: Re-generate.
4038         * doc/install.texi: Remove documentation for --with-gc.
4039         * gengtype.c (write_enum_defn): Remove.  Update all users.
4040         (write_Types_process_field): Remove generation of gt_e_* argument.
4041         (output_type_enum): Remove.  Update all users.
4042         (write_enum_defn): Remove.  Update all users.
4043         (enum alloc_zone): Remove.  Update all users.
4044         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
4045         * ggc-common.c (ggc_splay_alloc): Remove first argument.
4046         Update all callers.
4047         (struct ptr_data): Remove field TYPE.  Update all users.
4048         (gt_pch_note_object): Remove argument TYPE.  Update all users.
4049         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
4050         Update all users.
4051         * ggc-none.c (ggc_alloc_typed_stat): Remove.
4052         (struct alloc_zone): Remove.
4053         (ggc_internal_alloc_zone_stat): Remove.
4054         (ggc_internal_cleared_alloc_zone_stat): Remove.
4055         * ggc-page.c (ggc_alloc_typed_stat): Remove.
4056         (ggc_pch_count_object): Remove last argument.  Update all users.
4057         (ggc_pch_alloc_object): Remove last argument.  Update all users.
4058         (struct alloc_zone): Remove.
4059         * ggc-zone.c: Remove.
4060         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
4061         (struct alloc_zone): Remove.
4062         (ggc_alloc_typed_stat): Remove.
4063         (ggc_alloc_typed): Remove.
4064         (ggc_splay_alloc): Remove first argument.
4065         (rtl_zone): Remove.  Update all users.
4066         (tree_zone): Remove.  Update all users.
4067         (tree_id_zone): Remove.  Update all users.
4068         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
4069         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
4070         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
4071         * tree-ssanames.c: Remove references to zone allocator in comments.
4073 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
4075         * config/avr/avr.c (avr_out_fract): Make register numbers that
4076         might be outside of source operand signed.
4078 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
4080         * config/i386/constraints.md (Yf): New constraint.
4081         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
4082         of f constraint to conditionaly disable x87 register preferences.
4083         (*movdf_internal): Ditto.
4084         (*movsf_internal): Ditto.
4086 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
4088         PR inline-asm/55934
4089         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
4090         that have operands with impossible constraints.
4091         Add a FIXME for a speed-up opportunity.
4092         * lra-constraints.c (process_alt_operands): Verify that a class
4093         selected from constraints on asms is valid for the operand mode.
4094         (curr_insn_transform): Remove incorrect comment.
4096 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
4098         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
4099         TOC operand is a valid symbol ref in the constant pool.
4101 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
4103         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
4105 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
4107         PR target/54222
4108         * config/avr/stdfix.h: New file.
4109         * t-avr (stdfix-gcc.h): New rule to build it.
4110         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
4112 2013-01-23  Kostya Serebryany  <kcc@google.com>
4114         * config/darwin.h: remove dependency on
4115         CoreFoundation (asan on Mac OS).
4117 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
4119         PR target/49069
4120         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
4121         instead of cmpdi_operand for first comparison operand.
4122         Don't assert that comparison operands aren't both constants.
4124 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
4126         * doc/install.texi (Downloading the Source): Update references to
4127         downloading separate components.
4129 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
4131         * doc/extend.texi (__int128): Improve grammar.
4133 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
4135         PR target/56028
4136         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
4137         alternative to (o,r).
4138         (*movdi_internal_rex64): Remove (!o,n) alternative.
4139         (DImode immediate->memory splitter): Remove.
4140         (DImode immediate->memory peephole2): Remove.
4141         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
4142         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
4143         alternative to (!o,*r).
4144         (*movtf_internal_sse): New pattern.
4145         (*movxf_internal_rex64): New pattern.
4146         (*movxf_internal): Disable for TARGET_64BIT.
4147         (*movdf_internal_rex64): Remove (!o,F) alternative.
4149 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
4151         PR middle-end/56074
4152         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
4153         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
4154         * tree-vect-loop-manip.c (find_loop_location): Also ignore
4155         stmt locations where LOCATION_LOCUS of the stmt location is
4156         UNKNOWN_LOCATION or BUILTINS_LOCATION.
4158         PR target/55686
4159         * config/i386/i386.md (UNSPEC_STOS): New.
4160         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
4161         *strsetqi_1): Add UNSPEC_STOS.
4163 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
4165         PR c++/56067
4166         * doc/invoke.texi: Remove left over -Wsynth example.
4168 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
4170         PR tree-optimization/56051
4171         * fold-const.c (fold_binary_loc): Don't fold
4172         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
4173         a narrowing conversion, or widening conversion from signed
4174         to unsigned.
4176 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
4178         PR rtl-optimization/56023
4179         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
4180         dependent on debug instruction.
4182 2013-01-21  Martin Jambor  <mjambor@suse.cz>
4184         PR middle-end/56022
4185         * function.c (allocate_struct_function): Call
4186         invoke_set_current_function_hook earlier.
4188 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
4190         * reload1.c (init_reload): Only initialize reload_obstack
4191         during the first call.
4193 2013-01-21  Marek Polacek  <polacek@redhat.com>
4195         * cfgloop.c (verify_loop_structure): Fix up grammar.
4197 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
4199         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
4200         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
4202 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4204         PR target/56058
4205         * config/arm/marvell-pj4.md: Update copyright year.
4206         Fix up use of alu to alu_reg and simple_alu_imm.
4208 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
4210         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
4212 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
4214         PR target/55433
4215         * lra-constraints.c (curr_insn_transform): Don't reuse original
4216         insn for secondary memory move when memory mode should be different.
4218 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4220         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
4221         atomic_storedi_1): New patterns.
4223 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
4225         btver2 pipeline descriptions.
4226         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
4227         descriptions.
4228         * config/i386/i386.md (btver2_decode): New type attributes.
4229         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
4230         type attributes.
4231         * config/i386/btver2.md: New file describing btver2 pipelines.
4233 2013-01-19  Andrew Pinski  <apinski@cavium.com>
4235         PR tree-optimization/52631
4236         * tree-ssa-sccvn (visit_use): Before looking up the original
4237         statement, try looking up the simplified expression.
4239 2013-01-19  Anthony Green  <green@moxielogic.com>
4241         * config/moxie/moxie.c (moxie_expand_prologue): Set
4242         current_function_static_stack_size.
4244 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
4246         PR tree-optimization/56029
4247         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
4248         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
4250 2013-01-18  Sharad Singhai  <singhai@google.com>
4252         PR tree-optimization/55995
4253         * dumpfile.c (dump_loc): Print location only if available.
4254         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
4256 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
4258         PR target/55433
4259         * lra-constraints.c (curr_insn_transform): Reuse original insn for
4260         secondary memory move.
4261         (inherit_reload_reg): Use rclass instead of cl for
4262         check_secondary_memory_needed_p.
4264 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
4266         PR middle-end/56015
4267         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
4268         the case where writing real complex part of target modifies op1.
4270 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
4272         * config/aarch64/aarch64-simd.md
4273         (aarch64_vcond_internal<mode>): Handle unordered cases.
4274         * config/aarch64/iterators.md (v_cmp_result): New.
4276 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
4277             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4279         * config/arm/marvell-pj4.md: New file.
4280         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
4281         * config/arm/arm.md (generic_sched): Add marvell_pj4.
4282         (generic_vfp): Likewise.
4283         * config/arm/arm-cores.def: Add marvell-pj4.
4284         * config/arm/arm-tune.md: Regenerate.
4285         * config/arm/arm-tables.opt: Regenerate.
4286         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
4287         * doc/invoke.texi: Document marvell-pj4.
4289 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
4291         * config/aarch64/arm_neon.h: Map scalar types to standard types.
4293 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
4295         PR debug/54114
4296         PR debug/54402
4297         PR debug/49888
4298         * var-tracking.c (negative_power_of_two_p): New.
4299         (global_get_addr_cache, local_get_addr_cache): New.
4300         (get_addr_from_global_cache, get_addr_from_local_cache): New.
4301         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
4302         heading comment.
4303         (vt_stack_offset_p): Remove.
4304         (vt_canon_true_dep): Always canonicalize loc's address.
4305         (clobber_overlapping_mems): Make sure we have a MEM.
4306         (local_get_addr_clear_given_value): New.
4307         (val_reset): Clear local cached entries.
4308         (compute_bb_dataflow): Create and release the local cache.
4309         Disable duplicate MEMs clobbering.
4310         (emit_notes_in_bb): Clobber MEMs likewise.
4311         (vt_emit_notes): Create and release the local cache.
4312         (vt_initialize, vt_finalize): Create and release the global
4313         cache, respectively.
4314         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
4316 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
4318         PR libmudflap/53359
4319         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
4320         not found in the symtab.
4322 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
4324         PR debug/56006
4325         PR rtl-optimization/55547
4326         PR rtl-optimization/53827
4327         PR debug/53671
4328         PR debug/49888
4329         * alias.c (offset_overlap_p): New, factored out of...
4330         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
4331         the conservative special case for symbolic constants.  Don't
4332         adjust zero sizes on alignment.
4334 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
4336         PR rtl-optimization/52573
4337         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
4338         REG_UNUSED for the same register.
4340 2013-01-17  Richard Biener  <rguenther@suse.de>
4341             Marek Polacek  <polacek@redhat.com>
4343         PR rtl-optimization/55833
4344         * loop-unswitch.c (unswitch_loops): Move loop verification...
4345         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
4346         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
4347         Set it to true when we're removing a loop from hierarchy tree in
4348         an irreducible region.
4349         (fix_bb_placements): Adjust caller.
4350         (fix_loop_placements): Likewise.
4352 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
4354         * config/avr/builtins.def (DEF_BUILTIN): Factor out
4355         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
4356         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
4357         Remove ID.  Adjust comments.
4358         * config/avr/avr-c.c (avr_builtin_name): Remove.
4359         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
4360         * config/avr/avr.c (avr_tolower): New static function.
4361         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
4362         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
4363         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
4364         default expansion.
4366 2013-01-17  Jan Hubicka  <jh@suse.cz>
4368         PR tree-optimization/55273
4369         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
4371 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
4373         PR target/55981
4374         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
4375         store through atomic_store<mode>_1.
4376         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
4378 2013-01-17  Martin Jambor  <mjambor@suse.cz>
4380         PR tree-optimizations/55264
4381         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
4382         for virtual methods.
4383         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
4384         virtual methods before inlining is over.
4385         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
4386         virtual functions.
4387         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
4388         non-virtual.
4390 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
4392         PR rtl-optimization/56005
4393         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
4394         pending reads for prefetch.
4396 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
4398         * config/aarch64/aarch64.md
4399         (*cstoresi_neg_uxtw): New pattern.
4400         (*cmovsi_insn_uxtw): New pattern.
4401         (*<optab>si3_uxtw): New pattern.
4402         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
4403         (*<optab>si3_insn_uxtw): New pattern.
4404         (*bswapsi2_uxtw): New pattern.
4406 2013-01-16  Richard Biener  <rguenther@suse.de>
4408         * tree-inline.c (tree_function_versioning): Remove set but
4409         never used variable.
4411 2013-01-16  Richard Biener  <rguenther@suse.de>
4413         PR tree-optimization/55964
4414         * tree-flow.h (rename_variables_in_loop): Remove.
4415         (rename_variables_in_bb): Likewise.
4416         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
4417         (copy_loop_before): Adjust and delete update-ssa status.
4418         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
4419         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
4420         (rename_variables_in_loop): Remove.
4421         (slpeel_update_phis_for_duplicate_loop): Likewise.
4422         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
4423         use available cfg machinery instead of duplicating it.
4424         Update PHI nodes and perform poor-mans SSA update here.
4425         (slpeel_tree_peel_loop_to_edge): Adjust.
4427 2013-01-16  Richard Biener  <rguenther@suse.de>
4429         PR tree-optimization/54767
4430         PR tree-optimization/53465
4431         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
4432         (vrp_visit_phi_node): For PHI arguments coming via backedges
4433         drop all symbolical range information.
4434         (execute_vrp): Compute backedges.
4436 2013-01-16  Richard Biener  <rguenther@suse.de>
4438         * doc/install.texi: Update CLooG and ISL requirements to
4439         0.18.0 and 0.11.1.
4441 2013-01-16  Christian Bruel  <christian.bruel@st.com>
4443         PR target/55301
4444         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
4445         (broken_move): Handle UNSPECV_SP_SWITCH_B.
4446         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
4448 2013-01-16  DJ Delorie  <dj@redhat.com>
4450         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
4451         (UNSPECV_SP_SWITCH_E): New.
4452         (sp_switch_1): Change to an unspec.
4453         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
4454         replace $r15.
4456 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
4458         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
4459         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
4460         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
4461         (expand_mem_thread_fence): Ditto.
4462         (expand_mem_signal_fence): Ditto.
4463         (expand_atomic_load): Ditto.
4464         (expand_atomic_store): Ditto.
4466 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
4468         PR rtl-optimization/55547
4469         PR rtl-optimization/53827
4470         PR debug/53671
4471         PR debug/49888
4472         * alias.c (memrefs_conflict_p): Set sizes to negative after
4473         AND adjustments.
4475 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
4477         PR target/55940
4478         * function.c (thread_prologue_and_epilogue_insns): Always
4479         add crtl->drap_reg to set_up_by_prologue.set, even if
4480         stack_realign_drap is false.
4482 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
4484         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
4485         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
4486         *call): Fix indention.
4488 2013-01-15  Tom de Vries  <tom@codesourcery.com>
4490         PR target/55876
4491         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
4492         Update comment.
4494 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
4496         PR rtl-optimization/55153
4497         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
4499 2013-01-15  Martin Jambor  <mjambor@suse.cz>
4501         PR tree-optimization/55920
4502         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
4503         accesses as grp_to_be_debug_replaced.
4505 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
4507         PR tree-optimization/55920
4508         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
4509         there is non-useless type conversion needed from debug rhs to lhs,
4510         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
4512 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
4513             Mikael Pettersson  <mikpe@it.uu.se>
4515         PR target/43961
4516         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
4517         Thumb.
4518         (ASM_OUTPUT_CASE_LABEL): Remove.
4519         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
4520         * final.c (shorten_branches): Update alignment of labels before
4521         jump tables if CASE_VECTOR_SHORTEN_MODE.
4523 2013-01-15  Richard Biener  <rguenther@suse.de>
4525         PR bootstrap/55961
4526         * system.h: Do not include gmp.h for building host tools.
4528 2013-01-15  Richard Biener  <rguenther@suse.de>
4530         PR middle-end/55882
4531         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
4532         account for bitpos when computing alignment.
4534 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
4536         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
4537         (ix86_target_macros_internal): Likewise.
4539         * config/i386/i386.c (m_CORE2I7): Removed.
4540         (m_CORE_HASWELL): New macro.
4541         (m_CORE_ALL): Likewise.
4542         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
4543         (initial_ix86_arch_features): Likewise.
4544         (processor_target_table): Initializations for Core avx2.
4545         (cpu_names): New names "core-avx2".
4546         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
4547         PROCESSOR_CORE_HASWELL.
4548         (ix86_issue_rate): New case.
4549         (ia32_multipass_dfa_lookahead): Likewise.
4550         (ix86_sched_init_global): Likewise.
4552         * config/i386/i386.h (TARGET_HASWELL): New macro.
4553         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
4554         (processor_type): New PROCESSOR_HASWELL.
4556 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
4558         PR tree-optimization/55955
4559         * tree-vect-loop.c (vectorizable_reduction): Give up early on
4560         *SHIFT_EXPR and *ROTATE_EXPR codes.
4562         PR tree-optimization/48766
4563         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
4564         -ftrapv disable -fwrapv.
4566 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
4568         PR target/55974
4569         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
4570         etc. to 1 and not to __flash.
4571         Use LL suffix for __INT24_MAX__ with -mint8.
4572         Use ULL suffix for __UINT24_MAX__ with -mint8.
4574 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
4576         * config/avr/avr-arch.h
4577         (struct base_arch_s): Use typedef avr_arch_t instead.
4578         (struct arch_info_s): Use typedef avr_arch_info_t instead.
4579         (struct mcu_type_s): Use typedef avr_mcu_t instead.
4580         * config/avr/avr.c: Same.
4581         * config/avr/avr-devices.c: Same.
4582         * config/avr/driver-avr.c: Same.
4583         * config/avr/gen-avr-mmcu-texi.c: Same.
4584         * config/avr/avr-mcus.def: Adjust comment.
4586 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
4588         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
4589         * config/aarch64/iterators.md (VALLDI): New.
4591 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
4592             Andi Kleen  <ak@linux.intel.com>
4594         PR target/55948
4595         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
4596         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
4597         memmodel flag.
4599 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
4601         * config/avr/avr-stdint.h: Remove trailing blanks.
4602         * config/avr/avr-log.h: Same.
4603         * config/avr/avr-arch.h: Same.
4604         * config/avr/avr-devices.c: Same.
4605         * config/avr/avr-dimode.md: Same.
4606         * config/avr/predicates.md: Same.
4607         * config/avr/avr-c.c: Same.  And fix typo.
4609         * config/avr/avr-protos.h: Same.  And:
4610         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
4611         (init_cumulative_args): Rename to avr_init_cumulative_args.
4612         (expand_prologue): Rename to avr_expand_prologue.
4613         (expand_epilogue): Rename to avr_expand_epilogue.
4614         (adjust_insn_length): Rename to avr_adjust_insn_length.
4615         (notice_update_cc): Rename to avr_notice_update_cc.
4616         (final_prescan_insn): Rename to avr_final_prescan_insn.
4617         * config/avr/avr.c: Same.
4618         * config/avr/avr.h: Same.
4619         * config/avr/avr.md: Remove trailing blanks.
4620         (prologue): Use avr_expand_prologue.
4621         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
4623 2013-01-14  Richard Biener  <rguenther@suse.de>
4625         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
4626         verify_location, collect_subblocks): New functions.
4627         (verify_gimple_in_cfg): Verify that locations only reference
4628         BLOCKs in the functions BLOCK tree.
4630 2013-01-14  Richard Biener  <rguenther@suse.de>
4632         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
4633         PHI argument.
4634         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
4635         unshare reference.
4636         (insert_out_of_ssa_copy_on_edge): Likewise.
4637         (rewrite_close_phi_out_of_ssa): Likewise.
4638         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
4639         debug expressions.
4640         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
4641         propagated constants.
4642         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
4643         can not be shared.
4645 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
4647         * config/avr/avr-modes.def: Add GPL copyright notice.
4649 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
4651         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
4652         MEMMODEL_MASK to determine memory model.
4653         (atomic_store<mode>): Ditto from operands[2].
4654         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
4656 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
4658         PR fortran/55935
4659         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
4660         (fold_gimple_assign): Don't call unshare_expr here.
4661         (fold_ctor_reference): Call unshare_expr.
4663 2013-01-13  Terry Guo  <terry.guo@arm.com>
4665         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
4666         * doc/fragments.texi: Document MULTILIB_REUSE.
4667         * gcc.c (multilib_reuse): New internal spec.
4668         (set_multilib_dir): Also search multilib from multilib_reuse.
4669         * genmultilib (tmpmultilib3): Refactor code.
4670         (tmpmultilib4): Ditto.
4671         (multilib_reuse): New multilib argument.
4673 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
4675         * Makefile.in: Update copyright.
4677 2013-01-12  Tom de Vries  <tom@codesourcery.com>
4679         PR middle-end/55890
4680         * calls.c (expand_call): Check if arg_nr is valid.
4682 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
4684         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
4685         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
4686         documentation.  Add missing '__' in front of
4687         __builtin_ia32_packssdw256.
4689 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4691         PR target/55719
4692         * config/s390/s390.c (s390_preferred_reload_class): Do not return
4693         NO_REGS for larl operands.
4694         (s390_reload_larl_operand): Use s390_load_address instead of
4695         emit_move_insn.
4697 2013-01-11  Richard Biener  <rguenther@suse.de>
4699         * tree-cfg.c (verify_node_sharing_1): Split out from ...
4700         (verify_node_sharing): ... here.
4701         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
4703 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
4705         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
4706         Substitute TREECHECKING.
4707         * configure: Regenerate.
4708         * Makefile.in (TREECHECKING): New.
4710 2013-01-11  Richard Guenther  <rguenther@suse.de>
4712         PR tree-optimization/44061
4713         * tree-vrp.c (extract_range_basic): Compute zero as
4714         value-range for __builtin_constant_p of function parameters.
4716 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
4718         Update copyright years.
4720 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
4722         PR rtl-optimization/55672
4723         * lra-eliminations.c (mark_not_eliminable): Permit addition with
4724         const to be eliminable.
4726 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
4728         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
4729         * configure: Regenerate.
4731 2013-01-10  Richard Biener  <rguenther@suse.de>
4733         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
4735 2013-01-10  Richard Biener  <rguenther@suse.de>
4737         PR bootstrap/55792
4738         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
4739         locations for virtual PHI arguments.
4740         (rewrite_update_phi_arguments): Likewise.
4742 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
4744         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
4745         on to assembler.
4747 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
4749         PR tree-optimization/55921
4750         * tree-complex.c (expand_complex_asm): New function.
4751         (expand_complex_operations_1): Call it for GIMPLE_ASM.
4753 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4755         PR target/55718
4756         * config/s390/s390.c (s390_symref_operand_p)
4757         (s390_loadrelative_operand_p): Merge the two functions.
4758         (s390_check_qrst_address, print_operand_address): Add parameters
4759         to s390_loadrelative_operand_p invokation.
4760         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
4761         (s390_reload_larl_operand, s390_secondary_reload): Use
4762         s390_loadrelative_operand_p instead of s390_symref_operand_p.
4763         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
4765 2013-01-09  Mike Stump  <mikestump@comcast.net>
4767         * dse.c (record_store): Remove unnecessary assert.
4769 2013-01-09  Jan Hubicka  <jh@suse.cz>
4771         PR tree-optimization/55569
4772         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
4773         * cfgloop.h (scale_loop_profile): Likewise.
4775 2013-01-09  Jan Hubicka  <jh@suse.cz>
4777         PR lto/45375
4778         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
4779         functions.
4780         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
4782 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
4784         PR middle-end/55114
4785         * expr.h (maybe_emit_group_store): Declare.
4786         * expr.c (maybe_emit_group_store): New function.
4787         * builtins.c (expand_builtin_int_roundingfn): Call it.
4788         (expand_builtin_int_roundingfn_2): Likewise.
4790 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
4792         PR rtl-optimization/55829
4793         * lra-constraints.c (match_reload): Add code for absent output.
4794         (curr_insn_transform): Add code for reloads of matched inputs
4795         without output.
4797 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
4799         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
4800         attribute of movddup insn to DF.
4801         (*vec_interleave_lowv2df): Ditto.
4802         (vec_dupv2df): Ditto.
4804 2013-01-09  Jan Hubicka  <jh@suse.cz>
4806         PR tree-optimiation/55875
4807         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
4808         EVERY_ITERATION parameter.
4809         (number_of_iterations_exit): Check if exit is executed every iteration.
4810         (idx_infer_loop_bounds): Similarly here.
4811         (n_of_executions_at_most): Simplify
4812         to only test for cases where statement is dominated by the
4813         particular bound; handle correctly the "postdominance" test.
4814         (scev_probably_wraps_p): Use max loop iterations info
4815         as a global bound first.
4817 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
4818             Nick Clifton  <nickc@redhat.com>
4820         * config/v850/v850.md (cbranchsf4): New pattern.
4821         (cstoresf4): New pattern.
4822         (cbranchdf4): New pattern.
4823         (cstoredf4): New pattern.
4824         (movsicc): Disallow floating point comparisons.
4825         (cmpsf_le_insn): Fix order of operators.
4826         (cmpsf_lt_insn): Likewise.
4827         (cmpsf_eq_insn): Likewise.
4828         (cmpdf_le_insn): Likewise.
4829         (cmpdf_lt_insn): Likewise.
4830         (cmpdf_eq_insn): Likewise.
4831         (cmpsf_ge_insn): Use LE comparison.
4832         (cmpdf_ge_insn): Likewise.
4833         (cmpsf_gt_insn): Use LT comparison.
4834         (cmpdf_gt_insn): Likewise.
4835         (cmpsf_ne_insn): Delete pattern.
4836         (cmpdf_ne_insn): Delete pattern.
4837         * config/v850/v850.c (v850_gen_float_compare): Use
4838         gen_cmpdf_eq_insn for NE comparison.
4839         (v850_float_z_comparison_operator)
4840         (v850_float_nz_comparison_operator): Move from here ...
4841         * config/v850/predicates.md: ... to here.  Move GT and GE
4842         comparisons into v850_float_z_comparison_operator.
4843         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
4844         Delete prototype.
4845         (v850_float_nz_comparison_operator): Likewise.
4847 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4849         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
4850         with calls to gen_insvsi/gen_insvdi.
4852 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
4854         * config/i386/i386.c (initial_ix86_tune_features): Set up
4855         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
4857 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
4858             Jakub Jelinek  <jakub@redhat.com>
4860         PR tree-optimization/48189
4861         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
4862         If nitercst is 0, don't predict the exit edge.
4864 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4866         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
4867         in asm_fprintf with reg_names.
4868         (aarch64_print_operand_address): Likewise.
4869         (aarch64_return_addr): Likewise.
4870         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
4872 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4874         * config/pa/pa.h (VAL_U6_BITS_P): Define.
4875         (INT_U6_BITS): Likewise.
4876         * config/pa/predicates.md (uint6_operand): New predicate.
4877         (shift5_operand, shift6_operand): Likewise.
4878         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
4879         arith32_operand.
4880         (lshrdi3): Use shift6_operand.
4881         (shrpsi4, shrpdi4): New insn patterns.
4882         (extzv): Delete expander.
4883         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
4884         predicates in unamed zero extract patterns.  Tighten common constraint.
4885         (extv): Delete expander.
4886         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
4887         predicates in unamed sign extract patterns.  Tighten common constraint.
4888         (insv): Delete expander.
4889         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
4890         predicates in unamed insert patterns.  Tighten common constraint.
4891         Change uint32_operand predicate to uint6_operand predicate in unamed
4892         DImode pattern to insert constant values of type 1...1xxxx.
4894 2013-01-04  Jan Hubicka  <jh@suse.cz>
4896         PR tree-optimization/55823
4897         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
4898         issue.
4900 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
4901             Uros Bizjak  <ubizjak@gmail.com>
4903         PR rtl-optimization/55845
4904         * df-problems.c (can_move_insns_across): Stop scanning at
4905         volatile_insn_p source instruction or give up if
4906         across_from .. across_to range contains any volatile_insn_p
4907         instructions.
4909 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
4911         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
4912         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
4913         Declare.
4914         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
4915         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
4917 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
4919         PR fortran/55341
4920         * asan.c (asan_clear_shadow): New function.
4921         (asan_emit_stack_protection): Use it.
4923 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
4925         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
4926         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
4927         with tab instead of space.
4929 2013-01-08  Nick Clifton  <nickc@redhat.com>
4931         * config/rl78/rl78.c (rl78_expand_prologue): Always select
4932         register bank 0 at the start of an interrupt handler.
4933         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
4934         MDBH registers.
4936 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
4938         * config/aarch64/aarch64-simd.md
4939         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
4940         (aarch64_simd_bsl): Likewise.
4941         (aarch64_vcond_internal<mode>): Likewise.
4942         (vcond<mode><mode>): Likewise.
4943         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
4944         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
4946 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
4948         * config/aarch64/aarch64-builtins.c
4949         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
4951 2013-01-08  Martin Jambor  <mjambor@suse.cz>
4953         PR debug/55579
4954         * tree-sra.c (analyze_access_subtree): Return true also after
4955         potentially creating a debug-only replacement.
4957 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
4959         PR middle-end/55890
4960         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
4962         PR tree-optimization/54120
4963         * tree-vrp.c (range_fits_type_p): Don't allow
4964         src_precision < precision from signed vr to unsigned_p
4965         if vr->min or vr->max is negative.
4966         (simplify_float_conversion_using_ranges): Test can_float_p
4967         against CODE_FOR_nothing.
4969 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
4970             Richard Biener  <rguenther@suse.de>
4972         PR middle-end/55851
4973         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
4974         types instead of just INTEGER_TYPE types.
4976 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
4978         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
4979         TF_SIZE): Define.
4981 2013-01-07  Steve Ellcey  <sellcey@mips.com>
4983         PR target/42661
4984         * config/mips/mips.opt: Change mad to mmad to match documentation.
4986 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
4988         PR target/55897
4989         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
4990         .progmemx.data now.
4992 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
4994         PR target/55897
4995         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
4996         (avr_addrspace_t): Add .section_name field.
4997         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
4998         array size.
4999         (avr_addrspace): Same.  Initialize .section_name.  Remove last
5000         NULL entry.  Put __memx into .progmemx.data.
5001         (progmem_section_prefix): Remove.
5002         (avr_asm_init_sections): No need to initialize progmem_section.
5003         (avr_asm_named_section): Use avr_addrspace[].section_name to get
5004         section name prefix.
5005         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
5006         retrieve the progmem section.
5007         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
5008         boundary to run over avr_addrspace[].
5009         (avr_register_target_pragmas): Ditto.
5011 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
5013         * varasm.c (output_constant_def_contents): For asan_protect_global
5014         protected strings, adjust DECL_ALIGN if needed, before testing for
5015         anchored symbols.
5016         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
5017         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
5018         normal decls.
5019         (output_object_block): For asan protected decls, emit asan padding
5020         after their contents.
5021         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
5022         (asan_finish_file): Test it here instead.
5024 2013-01-07  Nick Clifton  <nickc@redhat.com>
5025             Matthias Klose  <doko@debian.org>
5026             Doug Kwan  <dougkwan@google.com>
5027             H.J. Lu  <hongjiu.lu@intel.com>
5029         PR driver/55470
5030         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
5032         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
5034         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
5036         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
5038         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
5040 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
5042         PR target/54461
5043         * doc/install.texi (Cross-Compiler-Specific Options): Document
5044         --with-avrlibc.
5046 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
5048         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
5049         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
5050         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
5051         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
5052         vqmovun_high_s64): Fix source operand number and update copyright.
5054 2013-01-07  Richard Biener  <rguenther@suse.de>
5056         PR middle-end/55890
5057         * gimple.h (gimple_call_builtin_p): New overload.
5058         * gimple.c (validate_call): New function.
5059         (gimple_call_builtin_p): Likewise.
5060         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5061         Use gimple_call_builtin_p.
5062         (find_func_clobbers): Likewise.
5063         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
5064         (strlen_optimize_stmt): Likewise.
5066 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
5068         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
5069         (vld1q_dup_*): Likewise.
5070         (vld1_*): Likewise.
5071         (vld1q_*): Likewise.
5072         (vld1_lane_*): Likewise.
5073         (vld1q_lane_*): Likewise.
5075 2013-01-07  Richard Biener  <rguenther@suse.de>
5077         * lto-streamer.h (LTO_minor_version): Bump to 2.
5079 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
5081         * config/aarch64/aarch64-protos.h
5082         (aarch64_const_double_zero_rtx_p): Rename to...
5083         (aarch64_float_const_zero_rtx_p): ...this.
5084         (aarch64_float_const_representable_p): New.
5085         (aarch64_output_simd_mov_immediate): Likewise.
5086         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
5087         move immediate case.
5088         * config/aarch64/aarch64.c
5089         (aarch64_const_double_zero_rtx_p): Rename to...
5090         (aarch64_float_const_zero_rtx_p): ...this.
5091         (aarch64_print_operand): Allow printing of new constants.
5092         (aarch64_valid_floating_const): New.
5093         (aarch64_legitimate_constant_p): Check for valid floating-point
5094         constants.
5095         (aarch64_simd_valid_immediate): Likewise.
5096         (aarch64_vect_float_const_representable_p): New.
5097         (aarch64_float_const_representable_p): Likewise.
5098         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
5099         (aarch64_output_simd_mov_immediate): New.
5100         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
5101         (*movdf_aarch64): Likewise.
5102         * config/aarch64/constraints.md (Ufc): New.
5103         (Y): call aarch64_float_const_zero_rtx.
5104         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
5106 2013-01-07  Richard Biener  <rguenther@suse.de>
5108         PR tree-optimization/55888
5109         PR tree-optimization/55862
5110         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
5111         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
5112         not if it is contained therein.
5114 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
5116         * config/avr/t-avr: Typo.
5118 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
5120         PR55243
5121         * config/avr/t-avr: Don't automatically rebuild
5122         $(srcdir)/config/avr/t-multilib
5123         $(srcdir)/config/avr/avr-tables.opt
5124         $(srcdir)/doc/avr-mmcu.texi
5125         (avr-mcus): New phony target to build them on request.
5126         (s-avr-mlib, s-avr-mmcu-texi): Remove.
5127         * avr/avr-mcus.def: Adjust comments.
5129 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
5131         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
5133 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
5135         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
5137 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
5139         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
5141 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
5143         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
5144         to generate profiling.
5145         * config/rs6000/aix64.h (LIB_SPEC): Same.
5147 2013-01-04  Andrew Pinski  <apinski@cavium.com>
5149         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
5150         New function.
5151         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
5153 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
5155         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
5156         unconditionally.
5157         (ix86_expand_move): Ditto.
5158         (ix86_zero_extend_to_Pmode): Ditto.
5159         (ix86_expand_call): Ditto.
5160         (ix86_expand_special_args_builtin): Ditto.
5161         (ix86_expand_builtin): Ditto.
5163 2013-01-04  Richard Biener  <rguenther@suse.de>
5165         PR tree-optimization/55862
5166         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
5167         translating them through PHI nodes.
5169 2013-01-04  Martin Jambor  <mjambor@suse.cz>
5171         PR tree-optimization/55755
5172         * tree-sra.c (sra_modify_assign): Do not check that an access has no
5173         children when trying to avoid producing a VIEW_CONVERT_EXPR.
5175 2013-01-04  Marek Polacek  <polacek@redhat.com>
5177         PR middle-end/55859
5178         * opts.c (default_options_optimization): Clarify error message.
5180 2013-01-04  Richard Biener  <rguenther@suse.de>
5182         PR middle-end/55863
5183         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
5184         reassociation.
5186 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5188         PR target/53789
5189         * config/pa/pa.md (movsi): Revert previous change.
5190         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
5191         references.
5193 2013-01-03  Richard Henderson  <rth@redhat.com>
5195         * config/i386/i386.c (ix86_expand_move): Always assign to op1
5196         after eliminating TLS symbols.
5198 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
5200         PR bootstrap/50167
5201         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
5202         * graphite-poly.c (debug_gmp_value): Likewise.
5204 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
5206         PR target/55712
5207         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
5208         selected code model, define __code_mode_small__, __code_model_medium__,
5209         __code_model_large__, __code_model_32__ or __code_model_kernel__.
5210         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
5211         xchg temporary register with %k.  Declare temporary register as
5212         early clobbered.
5213         [__x86_64__]: For medium and large code models, preserve %rbx register.
5215 2013-01-03  Richard Biener  <rguenther@suse.de>
5217         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
5218         (dump_subscript): Adjust.
5219         (finalize_ddr_dependent): Do not dump redundant info.
5220         (analyze_siv_subscript): Adjust.
5221         (subscript_dependence_tester): Likewise.
5222         (compute_affine_dependence): Likewise.
5224 2013-01-03  Richard Biener  <rguenther@suse.de>
5226         Revert
5227         2013-01-03  Richard Biener  <rguenther@suse.de>
5229         PR tree-optimization/55857
5230         * tree-vect-stmts.c (vectorizable_load): Do not setup
5231         re-alignment for invariant loads.
5233         2013-01-02  Richard Biener  <rguenther@suse.de>
5235         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
5236         invariant load do not generate a vector load from the scalar location.
5238 2013-01-03  Richard Biener  <rguenther@suse.de>
5240         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
5241         for not vectorizing.
5242         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
5243         not build INDIRECT_REFs, call get_name once only.
5244         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
5245         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
5247 2013-01-03  Richard Biener  <rguenther@suse.de>
5249         PR tree-optimization/55857
5250         * tree-vect-stmts.c (vectorizable_load): Do not setup
5251         re-alignment for invariant loads.
5253 2013-01-03  Richard Biener  <rguenther@suse.de>
5255         PR lto/55848
5256         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
5257         prefer a built-in decl.
5259 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
5261         * gcc.c (process_command): Update copyright notice dates.
5262         * gcov.c (print_version): Likewise.
5263         * gcov-dump.c (print_version): Likewise.
5265         PR rtl-optimization/55838
5266         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
5267         iv0.step, iv1.step and step.
5269 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
5270             Marc Glisse  <marc.glisse@inria.fr>
5272         PR tree-optimization/55832
5273         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
5274         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
5275         integer_{one,zero}_node.
5277 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
5279         PR debug/54402
5280         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
5281         * var-tracking.c (reverse_op): Don't add reverse ops to
5282         VALUEs that have already
5283         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
5285 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
5287         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
5289 2013-01-02  Teresa Johnson  <tejohnson@google.com>
5291         * dumpfile.c (dump_loc): Print filename with location.
5292         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
5293         new location_t parameter to emit complete unroll message with
5294         new dump framework.
5295         (canonicalize_loop_induction_variables): Compute loops location
5296         and pass to try_unroll_loop_completely.
5297         * loop-unroll.c (report_unroll_peel): New function.
5298         (peel_loops_completely): Use new dump format with location
5299         for main dumpfile message, and invoke report_unroll_peel on success.
5300         (decide_unrolling_and_peeling): Ditto.
5301         (decide_peel_once_rolling): Remove old dumpfile message subsumed
5302         by report_unroll_peel.
5303         (decide_peel_completely): Ditto.
5304         (decide_unroll_constant_iterations): Ditto.
5305         (decide_unroll_runtime_iterations): Ditto.
5306         (decide_peel_simple): Ditto.
5307         (decide_unroll_stupid): Ditto.
5308         * cfgloop.c (get_loop_location): New function.
5309         * cfgloop.h (get_loop_location): Declare.
5311 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
5313         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
5314         NULL.
5316 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5318         PR middle-end/55198
5319         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
5320         BLKmode objects when EXPAND_MEMORY is specified.
5322 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
5324         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
5325         in loop predicate.
5326         (fold_builtin_cpu): Do not share cpu model decls across statements.
5328 2013-01-02  Jason Merrill  <jason@redhat.com>
5330         PR c++/55804
5331         * tree.c (build_array_type_1): Revert earlier change.
5333 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
5335         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
5336         "cortex-a57".
5337         * config/aarch64/aarch64-tune.md: Re-generate.
5339 2013-01-02  Richard Biener  <rguenther@suse.de>
5341         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
5342         invariant load do not generate a vector load from the scalar location.
5344 2013-01-02  Richard Biener  <rguenther@suse.de>
5346         PR bootstrap/55784
5347         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
5348         * configure: Regenerate.
5350 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
5352         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
5353         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
5354         (expand_builtin_int_roundingfn_2): Keep the original target around
5355         for the fallback case.
5357 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
5359         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
5360         to be clear for sign changes.
5362 2013-01-01  Jan Hubicka  <jh@suse.cz>
5364         * ipa-inline-analysis.c: Fix formatting.
5366 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
5368         PR tree-optimization/55831
5369         * tree-vect-loop.c (get_initial_def_for_induction): Use
5370         gsi_after_labels instead of gsi_start_bb.
5372 Copyright (C) 2013 Free Software Foundation, Inc.
5374 Copying and distribution of this file, with or without modification,
5375 are permitted in any medium without royalty provided the copyright
5376 notice and this notice are preserved.