1 2013-06-11 Richard Biener <rguenther@suse.de>
3 * collect2.c (main): Do not redirect ld stdout/stderr when
6 2013-06-11 Anton Blanchard <anton@samba.org>
8 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
9 correct shift value in little-endian mode.
11 2013-06-11 Jakub Jelinek <jakub@redhat.com>
14 * varasm.c (get_variable_align): Move #endif to the right place.
16 2013-06-10 Cary Coutant <ccoutant@google.com>
18 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
19 for hash so that hash table traversal order is deterministic.
21 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
22 Pat Haugen <pthaugen@us.ibm.com>
23 Peter Bergner <bergner@vnet.ibm.com>
25 * config/rs6000/vector.md (GPR move splitter): Do not split moves
26 of vectors in GPRS if they are direct moves or quad word load or
29 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
31 (direct_move_p): Likewise.
32 (quad_load_store_p): Likewise.
34 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
35 classes into bins based on the physical register type.
36 (reg_class_to_reg_type): Likewise.
37 (IS_STD_REG_TYPE): Likewise.
38 (IS_FP_VECT_REG_TYPE): Likewise.
39 (reload_fpr_gpr): Arrays to determine what insn to use if we can
40 use direct move instructions.
41 (reload_gpr_vsx): Likewise.
42 (reload_vsx_gpr): Likewise.
43 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
44 information that is a simplification of register classes. Also
45 precalculate direct move reload helpers.
46 (direct_move_p): New function to return true if the operation can
47 be done as a direct move instruciton.
48 (quad_load_store_p): New function to return true if the operation
49 is a quad memory operation.
50 (rs6000_legitimize_address): If quad memory, only allow register
51 indirect for TImode addresses.
52 (rs6000_legitimate_address_p): Likewise.
53 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
54 (rs6000_reload_register_type): Likewise.
55 (register_to_reg_type): Return register type.
56 (rs6000_secondary_reload_simple_move): New helper function for
57 secondary reload and secondary memory needed to identify anything
58 that is a simple move, and does not need reloading.
59 (rs6000_secondary_reload_direct_move): New helper function for
60 secondary reload to identify cases that can be done with several
61 instructions via the direct move instructions.
62 (rs6000_secondary_reload_move): New helper function for secondary
63 reload to identify moves between register types that can be done.
64 (rs6000_secondary_reload): Add support for quad memory operations
66 (rs6000_secondary_memory_needed): Likewise.
67 (rs6000_debug_secondary_memory_needed): Change argument names.
68 (rs6000_output_move_128bit): New function to return the move to
69 use for 128-bit moves, including knowing about the various
70 limitations of quad memory operations.
72 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
73 memory operations. call rs6000_output_move_128bit for the actual
74 instruciton(s) to generate.
75 (vsx_movti_64bit): Likewise.
77 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
78 (UNSPEC_P8V_MTVSRWZ): Likewise.
79 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
80 (UNSPEC_P8V_MTVSRD): Likewise.
81 (UNSPEC_P8V_XXPERMDI): Likewise.
82 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
83 (UNSPEC_FUSION_GPR): Likewise.
84 (FMOVE128_GPR): New iterator for direct move.
85 (f32_lv): New mode attribute for load/store of SFmode/SDmode
89 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
90 loads and direct move instructions.
91 (zero_extendsidi2_lfiwzx): Likewise.
92 (extendsidi2_lfiwax): Likewise.
93 (extendsidi2_nocell): Likewise.
94 (floatsi<mode>2_lfiwax): Likewise.
96 (floatunssi<mode>2_lfiwzx): Likewise.
98 (fix_trunc<mode>_stfiwx): Likewise.
99 (fixuns_trunc<mode>_stfiwx): Likewise.
100 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
101 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
102 (parity<mode>2_cmpb): Set length/type attr.
103 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
104 for 'mr.' to fast_compare.
105 (bpermd_<mode>): Change type attr to popcnt.
106 (p8_fmrgow_<mode>): New insns for power8 direct move support.
107 (p8_mtvsrwz_1): Likewise.
108 (p8_mtvsrwz_2): Likewise.
109 (reload_fpr_from_gpr<mode>): Likewise.
110 (p8_mtvsrd_1): Likewise.
111 (p8_mtvsrd_2): Likewise.
112 (p8_xxpermdi_<mode>): Likewise.
113 (reload_vsx_from_gpr<mode>): Likewise.
114 (reload_vsx_from_gprsf): Likewise.
115 (p8_mfvsrd_3_<mode>): LIkewise.
116 (reload_gpr_from_vsx<mode>): Likewise.
117 (reload_gpr_from_vsxsf): Likewise.
118 (p8_mfvsrd_4_disf): Likewise.
119 (multi-word GPR splits): Do not split direct moves or quad memory
122 2013-06-10 David Malcolm <dmalcolm@redhat.com>
124 * tree-into-ssa.c (interesting_blocks): Make static.
126 2013-06-10 Jakub Jelinek <jakub@redhat.com>
129 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
130 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
131 Use DATA_ABI_ALIGNMENT for that case instead if defined.
132 (get_variable_align): New function.
133 (get_variable_section, emit_bss, emit_common,
134 assemble_variable_contents, place_block_symbol): Use
135 get_variable_align instead of DECL_ALIGN.
136 (assemble_noswitch_variable): Add align argument, use it
137 instead of DECL_ALIGN.
138 (assemble_variable): Adjust caller. Use get_variable_align
139 instead of DECL_ALIGN.
140 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
142 (DATA_ABI_ALIGNMENT): Define.
143 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
144 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
145 opt is false, only return the psABI mandated alignment increase.
146 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
147 (DATA_ABI_ALIGNMENT): ... this.
148 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
149 (DATA_ABI_ALIGNMENT): ... this.
150 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
151 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
152 (DATA_ABI_ALIGNMENT): ... this.
153 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
154 * doc/tm.texi: Regenerated.
156 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
158 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
159 cmp_code to construct REG_EQUAL note.
161 2013-06-09 Jakub Jelinek <jakub@redhat.com>
164 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
165 that operands[2] doesn't overlap with operands[0].
167 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
168 Jan Hubicka <jh@suse.cz>
170 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
171 hack to mark symbols as used.
173 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
175 PR rtl-optimization/57559
176 * lra-constraints.c (process_alt_operands): Don't discourage
177 memory with known offset for offsetable memory constraint.
178 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
180 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
182 * varasm.c (struct oc_local_state): Reorder fields.
183 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
184 and adjust accordingly.
185 (output_constructor): Reorder initialization code and adjust call to
186 output_constructor_bitfield.
188 2013-06-07 Jan Hubicka <jh@suse.cz>
190 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
192 2013-06-07 David Malcolm <dmalcolm@redhat.com>
194 * tree-object-size.c (unknown): Make const.
196 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
198 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
199 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
200 for last alternative in the cpu_facility attribute.
202 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
205 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
206 (xordi3): Change operand 2 constraint to arm_xordi_operand.
207 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
208 * config/arm/constraints.md (Dg): New constraint.
209 * config/arm/neon.md (xordi3_neon): Remove.
210 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
211 * config/arm/predicates.md (arm_xordi_operand): New predicate.
213 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
215 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
216 Clean up alternatives.
218 2013-06-07 Alan Modra <amodra@gmail.com>
220 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
223 2013-06-07 Alan Modra <amodra@gmail.com>
225 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
227 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
229 * config/arm/constraints.md (Df): New constraint.
230 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
231 Correct length attribute for last two alternatives.
233 2013-06-07 Alan Modra <amodra@gmail.com>
235 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
236 override user -mfp-in-toc.
237 (offsettable_ok_by_alignment): Consider just the current access
238 rather than the whole object, unless BLKmode. Handle
239 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
240 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
242 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
243 override user -mfp-in-toc or -msum-in-toc. Default to
244 -mno-fp-in-toc for -mcmodel=medium.
246 2013-06-06 DJ Delorie <dj@redhat.com>
248 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
249 TARGET_VALID_POINTER_MODE.
251 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
252 Pat Haugen <pthaugen@us.ibm.com>
253 Peter Bergner <bergner@vnet.ibm.com>
255 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
256 Document new power8 builtins.
258 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
259 condition code register, to allow 128-bit logical operations to be
260 done in the VSX or GPR registers.
261 (nor<mode>3): Use the canonical form for nor.
262 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
263 vclz*, and vpopcnt* vector instructions.
264 (nand<mode>3): Likewise.
265 (orc<mode>3): Likewise.
266 (clz<mode>2): LIkewise.
267 (popcount<mode>2): Likewise.
269 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
270 that only the GPRs are recognized.
272 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
273 support for new power8 builtins.
275 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
277 (xscvdpspn): Likewise.
284 (vpopcntb): Likewise.
285 (vpopcnth): Likewise.
286 (vpopcntw): Likewise.
287 (vpopcntd): Likewise.
292 (eqv_v16qi3): Likewise.
293 (eqv_v8hi3): Likewise.
294 (eqv_v4si3): Likewise.
295 (eqv_v2di3): Likewise.
296 (eqv_v4sf3): Likewise.
297 (eqv_v2df3): Likewise.
299 (nand_v16qi3): Likewise.
300 (nand_v8hi3): Likewise.
301 (nand_v4si3): Likewise.
302 (nand_v2di3): Likewise.
303 (nand_v4sf3): Likewise.
304 (nand_v2df3): Likewise.
306 (orc_v16qi3): Likewise.
307 (orc_v8hi3): Likewise.
308 (orc_v4si3): Likewise.
309 (orc_v2di3): Likewise.
310 (orc_v4sf3): Likewise.
311 (orc_v2df3): Likewise.
313 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
314 allow power8 quad mode in 64-bit.
315 (rs6000_builtin_vectorized_function): Add support to vectorize
316 ISA 2.07 count leading zeros, population count builtins.
317 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
318 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
319 (builtin_function_type): Add vgbbd builtin function which takes an
321 (altivec_expand_vec_perm_const): Add support for new power8 merge
324 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
325 that does not include TImdoe for use with 32-bit.
326 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
328 (UNSPEC_VSX_CVDPSPN): Likewise.
329 (vsx_xscvdpspn): Likewise.
330 (vsx_xscvspdpn): Likewise.
331 (vsx_xscvdpspn_scalar): Likewise.
332 (vsx_xscvspdpn_directmove): Likewise.
333 (vsx_and<mode>3): Split logical operations into 32-bit and
334 64-bit. Add support to do logical operations on TImode as well as
335 VSX vector types. Allow logical operations to be done in either
336 VSX registers or in general purpose registers in 64-bit mode. Add
337 splitters if GPRs were used. For AND, add clobber of CCmode to
338 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
340 (vsx_and<mode>3_32bit): Likewise.
341 (vsx_and<mode>3_64bit): Likewise.
342 (vsx_ior<mode>3): Likewise.
343 (vsx_ior<mode>3_32bit): Likewise.
344 (vsx_ior<mode>3_64bit): Likewise.
345 (vsx_xor<mode>3): Likewise.
346 (vsx_xor<mode>3_32bit): Likewise.
347 (vsx_xor<mode>3_64bit): Likewise.
348 (vsx_one_cmpl<mode>2): Likewise.
349 (vsx_one_cmpl<mode>2_32bit): Likewise.
350 (vsx_one_cmpl<mode>2_64bit): Likewise.
351 (vsx_nor<mode>3): Likewise.
352 (vsx_nor<mode>3_32bit): Likewise.
353 (vsx_nor<mode>3_64bit): Likewise.
354 (vsx_andc<mode>3): Likewise.
355 (vsx_andc<mode>3_32bit): Likewise.
356 (vsx_andc<mode>3_64bit): Likewise.
357 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
358 and xxlorc instructions.
359 (vsx_eqv<mode>3_64bit): Likewise.
360 (vsx_nand<mode>3_32bit): Likewise.
361 (vsx_nand<mode>3_64bit): Likewise.
362 (vsx_orc<mode>3_32bit): Likewise.
363 (vsx_orc<mode>3_64bit): Likewise.
365 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
367 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
369 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
370 (p8_vmrgow): Likewise.
371 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
372 GPRs to be split under VSX.
373 (p8v_clz<mode>2): Add power8 count leading zero support.
374 (p8v_popcount<mode>2): Add power8 population count support.
375 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
378 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
381 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
383 (vec_nand): Likewise.
384 (vec_vclz): Likewise.
385 (vec_vclzb): Likewise.
386 (vec_vclzd): Likewise.
387 (vec_vclzh): Likewise.
388 (vec_vclzw): Likewise.
389 (vec_vgbbd): Likewise.
390 (vec_vmrgew): Likewise.
391 (vec_vmrgow): Likewise.
392 (vec_vpopcnt): Likewise.
393 (vec_vpopcntb): Likewise.
394 (vec_vpopcntd): Likewise.
395 (vec_vpopcnth): Likewise.
396 (vec_vpopcntw): Likewise.
398 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
400 PR rtl-optimization/57468
401 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
404 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
406 PR rtl-optimization/57459
407 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
408 type when setting live regs.
410 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
412 * config/s390/s390.opt (mlra): New option.
413 * config/s390/s390.c (s390_decompose_address): Check displacement
414 for all registers for LRA.
415 (s390_secondary_reload): Don't used secondary reloads for LRA.
416 (s390_lra_p): New function.
417 (TARGET_LRA_P): Define.
418 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
419 of attribute cpu_facility to zarch for the last alternative.
420 (*cmpmem_short): Ditto.
422 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
424 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
425 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
426 (arm_expand_prologue): Likewise.
428 2013-06-06 Teresa Johnson <tejohnson@google.com>
431 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
432 as this is now done by redirect_edge_and_branch_force.
433 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
434 barriers, and fix interaction with splitting.
435 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
436 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
437 reflect changes made in the routine.
438 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
439 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
440 since this is called in cfglayout mode, and replace partition fixup
441 with assert as that is now done by force_nonfallthru_and_redirect.
442 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
443 already be marked with region crossing note.
444 (insert_section_boundary_note): Make non-static, gate on flag
445 has_bb_partition, rewrite to also check for multiple partitions.
446 (rest_of_handle_reorder_blocks): Remove call to
447 insert_section_boundary_note, now done later during free_cfg.
448 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
449 * bb-reorder.h (insert_section_boundary_note): Declare.
450 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
451 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
452 invoke insert_section_boundary_note.
453 (try_redirect_by_replacing_jump): Remove unnecessary
454 check for region crossing note.
455 (fixup_partition_crossing): New function.
456 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
457 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
458 in non-cfglayout mode.
459 (force_nonfallthru_and_redirect): Fixup partition boundaries,
460 remove old code that tried to do this. Emit barrier correctly
461 when we are in cfglayout mode.
462 (last_bb_in_partition): New function.
463 (rtl_split_edge): Correctly fixup partition boundaries.
464 (commit_one_edge_insertion): Remove old code that tried to
465 fixup region crossing edge since this is now handled in
466 split_block, and set up insertion point correctly since
467 block may now end in a jump.
468 (verify_hot_cold_block_grouping): Guard against checking when not in
470 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
472 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
473 rtl_verify_flow_info, so not called in cfglayout mode.
474 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
475 (fixup_reorder_chain): Remove old code that attempted to fixup region
476 crossing note as this is now handled in force_nonfallthru_and_redirect.
477 (duplicate_insn_chain): Don't duplicate switch section notes.
478 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
480 * basic-block.h (emit_barrier_after_bb): Declare.
482 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
484 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
485 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
486 arm_usatsihi): Adjust alternatives for arm_restrict_it.
488 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
490 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
492 * config/arm/ldmstm.md: Regenerate.
494 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
496 * config/arm/sync.md (atomic_loaddi_1):
497 Disable predication for arm_restrict_it.
498 (arm_load_exclusive<mode>): Likewise.
499 (arm_load_exclusivesi): Likewise.
500 (arm_load_exclusivedi): Likewise.
501 (arm_load_acquire_exclusive<mode>): Likewise.
502 (arm_load_acquire_exclusivesi): Likewise.
503 (arm_load_acquire_exclusivedi): Likewise.
504 (arm_store_exclusive<mode>): Likewise.
505 (arm_store_exclusive<mode>): Likewise.
506 (arm_store_release_exclusivedi): Likewise.
507 (arm_store_release_exclusive<mode>): Likewise.
509 2013-06-06 Richard Biener <rguenther@suse.de>
511 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
513 (lto_tag_is_tree_code_p): Adjust.
514 (lto_tag_is_gimple_code_p): Likewise.
515 (lto_gimple_code_to_tag): Likewise.
516 (lto_tag_to_gimple_code): Likewise.
517 (lto_tree_code_to_tag): Likewise.
518 (lto_tag_to_tree_code): Likewise.
519 * data-streamer.h (streamer_write_hwi_in_range): Use
520 uhwi streaming to stream the normalized range.
521 (streamer_read_hwi_in_range): Likewise.
523 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
525 * config/arm/arm.md (enabled_for_depr_it): New attribute.
526 (predicable_short_it): Likewise.
527 (predicated): Likewise.
528 (enabled): Handle above.
529 (define_cond_exec): Set predicated attribute to yes.
531 2013-06-05 Mike Stump <mikestump@comcast.net>
533 * gdbinit.in (__FUNCTION__): Add.
535 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
537 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
538 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
540 2013-06-05 Jan Hubicka <jh@suse.cz>
542 * varasm.c (mark_decl_referenced): Revert the removal until targets
545 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
547 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
548 instead of mark_decl_referenced.
550 2013-06-05 Jan Hubicka <jh@suse.cz>
552 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
553 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
554 and symtab_used_from_object_file_p.
555 (cgraph_make_node_local_1): Clear forced_by_abi.
556 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
557 * cgraph.h (symtab_node_base): Add forced_by_abi.
558 (decide_is_variable_needed): Remove.
559 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
560 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
561 (decide_is_symbol_needed): ... this one; handle symbols in general;
562 always analyze virtuals; honnor forced_by_abi.
563 (cgraph_finalize_function): Update.
564 (varpool_finalize_decl): Update.
565 (symbol_defined_and_needed): Remove.
566 (analyze_functions): Update.
567 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
568 output_refs, input_overwrite_node): Handle forced_by_abi.
569 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
570 (address_taken_from_non_vtable_p): ... this one.
571 (comdat_can_be_unshared_p_1): New function.
572 (cgraph_comdat_can_be_unshared_p): Rename to ...
573 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
574 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
575 (function_and_variable_visibility): Clear forced_by_abi as needed.
576 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
577 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
578 * symtab.c (dump_symtab_base): Dump forced_by_abi.
579 * varpool.c (decide_is_variable_needed): Remove.
581 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
583 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
584 (arm_option_override): Override arm_restrict_it where appropriate.
585 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
586 * config/arm/arm.opt (mrestrict-it): New command-line option.
587 * doc/invoke.texi: Document -mrestrict-it.
589 2013-06-05 David Malcolm <dmalcolm@redhat.com>
591 * tsan.c (tsan_atomic_table): Make const.
593 2013-06-05 Richard Biener <rguenther@suse.de>
595 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
596 index associated with the tree we are supposed to replace.
597 * tree-streamer-out.c (pack_ts_base_value_fields): Output
598 TREE_ASM_WRITTEN as zero for everything but SSA names.
600 2013-06-05 David Malcolm <dmalcolm@redhat.com>
602 * tree-ssa-structalias.c (call_stmt_vars): Make static.
604 2013-06-04 Jan Hubicka <jh@suse.cz>
606 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
607 (input_node, input_varpool_node): Handle correctly external same
609 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
610 nodes at ltrans stage.
612 2013-06-04 Jan Hubicka <jh@suse.cz>
614 * ipa-inline.c (update_caller_keys): Fix availability test.
615 (update_callee_keys): Likewise.
616 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
617 to follow ELF standard.
619 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
621 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
622 (mips64r5900el-*-elf*): New configurations.
623 * config/mips/mips-cpus.def (r5900): New processor.
624 * config/mips/mips-tables.opt: Regenerate.
625 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
626 (mips_issue_rate): Handle PROCESSOR_R5900.
627 (mips_reorg_process_insns): Force reorder mode for the R5900.
628 * config/mips/mips.h (TARGET_MIPS5900): Define.
629 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
631 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
633 * config/mips/mips.md (processor): Add r5900.
634 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
636 2013-06-04 Ian Bolton <ian.bolton@arm.com>
638 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
639 into function to generate MOVI instruction.
640 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
641 (aarch64_preferred_simd_mode): Turn into wrapper.
642 (aarch64_output_scalar_simd_mov_immediate): New function.
643 * config/aarch64/aarch64-protos.h: Add prototype for above.
645 2013-06-04 Ian Bolton <ian.bolton@arm.com>
647 * config/aarch64/aarch64.c (simd_immediate_info): Remove
649 (sizetochar): Return signed char.
650 (aarch64_simd_valid_immediate): Remove elchar and other
651 unnecessary variables.
652 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
653 Calculate element_char as required.
654 * config/aarch64/aarch64-protos.h: Update and move prototype
655 for aarch64_output_simd_mov_immediate.
656 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
659 2013-06-04 Ian Bolton <ian.bolton@arm.com>
661 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
662 information completed by aarch64_simd_valid_immediate.
663 (aarch64_legitimate_constant_p): Update arguments.
664 (aarch64_simd_valid_immediate): Work with struct rather than many
666 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
667 (aarch64_simd_make_constant): Update arguments.
668 (aarch64_output_simd_mov_immediate): Work with struct rather than
669 many pointers. Output immediate directly rather than as operand.
670 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
672 * config/aarch64/constraints.md (Dn): Update arguments.
674 2013-06-04 Ian Bolton <ian.bolton@arm.com>
676 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
678 (aarch64_simd_immediate_valid_for_move): Remove.
679 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
680 (aarch64_simd_make_constant): Update call.
681 (aarch64_output_simd_mov_immediate): Update call.
682 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
684 * config/aarch64/constraints.md (Dn): Update call.
686 2013-06-04 Ian Bolton <ian.bolton@arm.com>
688 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
689 return type to bool for prototype.
690 (aarch64_legitimate_constant_p): Check for true instead of not -1.
691 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
692 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
694 2013-06-04 Catherine Moore <clm@codesourcery.com>
696 * config/mips/mips.opt (meva): New.
697 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
698 (ASM_SPEC): Handle -meva.
699 * doc/invoke.texi (meva): Document.
701 2013-06-04 Alan Modra <amodra@gmail.com>
703 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
706 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
708 * rtl.def: Add extra fourth optional field to define_cond_exec.
709 * gensupport.c (process_one_cond_exec): Process attributes from
711 * doc/md.texi: Document fourth field in define_cond_exec.
713 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
715 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
716 out the processing order as in store_bit_field_1.
718 2013-06-04 Jan Hubicka <jh@suse.cz>
721 * cgraphunit.c (cgraph_process_same_body_aliases): Create
722 non-VAR_DECL node if it does not exist yet.
724 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
726 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
727 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
728 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
729 target_cpu_default setting.
731 2013-06-03 Teresa Johnson <tejohnson@google.com>
733 * dumpfile.c (opt_info_switch_p): Change -fopt-info
734 default to -fopt-info=optimized instead of all.
735 * doc/invoke.texi: Ditto.
736 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
737 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
738 (execute_vect_slp): Emit BB vectorization success under
739 MSG_OPTIMIZED_LOCATIONS.
740 * tree-vect-slp.c (vect_slp_transform_bb): Change
741 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
742 * tree-vect-loop.c (vect_transform_loop): Ditto.
744 2013-06-03 Jason Merrill <jason@redhat.com>
747 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
748 Use TARGET_EXPR for C++.
750 2013-06-03 Jakub Jelinek <jakub@redhat.com>
752 PR rtl-optimization/57268
753 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
754 if DEBUG_INSN_P (insn).
757 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
759 PR rtl-optimization/57268
760 * sched-deps.c (sched_analyze_2): Flush dependence lists if
761 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
763 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
765 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
766 (ix86_avoid_lea_for_addr): Likewise.
767 (exact_dependency_1): Likewise.
768 (ix86_adjust_cost): Likewise.
769 (swap_top_of_ready_list): Fix formatting and !reload_completed check
771 (do_reorder_for_imul): Fix typo, formatting and
772 !reload_completed check removed.
773 (ix86_sched_reorder): Fix typo and formatting.
774 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
777 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
779 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
781 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
783 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
784 <STRING_CST>: Likewise.
785 <VECTOR_CST>: Likewise.
787 2013-06-01 Janus Weil <janus@gcc.gnu.org>
788 Mikael Morin <mikael@gcc.gnu.org>
790 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
791 * config.in: Regenerated.
792 * configure: Regenerated.
794 2013-06-01 Jan Hubicka <jh@suse.cz>
797 * cgraphunit.c (compile): When weakref is not supported,
798 set up transparent aliases before final output pass.
799 * varasm.c (assemble_alias): Do not try to do it here.
801 2013-06-01 Jan Hubicka <jh@suse.cz>
804 * passes.c (for_per_function): Skip unanalyzed functions.
806 2013-06-01 Jan Hubicka <jh@suse.cz>
808 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
809 (lto_symtab_merge_symbols_1): ... this one.
810 (lto_symtab_merge_cgraph_nodes): Rename to ...
811 (lto_symtab_merge_symbols): ... this one; simplify.
812 * cgraph.c (same_body_aliases_done): Rename to ...
813 (cpp_implicit_aliases_done): ... this one.
814 (cgraph_create_function_alias): Update.
815 (cgraph_same_body_alias): Update.
816 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
817 (verify_edge_corresponds_to_fndecl): Simplify.
818 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
819 (cgraph_node): Remove same_body_alias.
820 (varpool_node): Remove alias_of and extra_name_alias.
821 (same_body_aliases_done): Rename to ..
822 (cpp_implicit_aliases_done): ... this one.
823 (symtab_alias_ultimate_target): Add default parameter.
824 (symtab_resolve_alias): New function.
825 (fixup_same_cpp_alias_visibility): Declare.
826 (cgraph_function_node): Add default parameter.
827 (cgraph_node_asm_name): Likewise.
828 (cgraph_function_or_thunk_node): Add default parameter; do
829 not ICE when it is NULL.
830 (varpool_variable_node): Likewise.
831 * tree-emutls.c (create_emultls_var): Update.
832 (ipa_lower_emutls): Update.
833 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
834 (cgraph_reset_node): Reset alias info.
835 (cgraph_finalize_function): Update.
836 (fixup_same_cpp_alias_visibility): Move to symtab.c.
837 (analyze_function): Simplify.
838 (cgraph_process_same_body_aliases): Simplify.
839 (analyze_functions): Fixup same body aliases.
840 (handle_alias_pairs): Simplify.
841 (assemble_thunk): Update.
842 (assemble_thunks_and_aliases): Update.
843 (output_weakrefs): Rewrite.
844 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
845 (lto_output_varpool_node): Likewise.
846 (compute_ltrans_boundary): Remve assert.
847 (get_alias_symbol): New functoin.
848 (input_node): Rewrite alias handling.
849 (input_varpool_node): Likewise.
850 * ipa-pure-const.c (propagate_pure_const): Fix formating.
851 * ipa.c (process_references): Handle weakrefs correctly.
852 (symtab_remove_unreachable_nodes): Likewise.
853 * trans-mem.c (get_cg_data): Update.
854 (ipa_tm_create_version_alias): Update.
855 (ipa_tm_execute): Update.
856 * symtab.c (dump_symtab_base): Dump aliases.
857 (verify_symtab_base): Verify aliases.
858 (symtab_node_availability): New function.
859 (symtab_alias_ultimate_target): Simplify.
860 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
861 handle all the fixup cases.
862 (symtab_resolve_alias): New function.
863 * passes.c (ipa_write_summaries): Handle weakrefs.
864 * varpool.c (varpool_analyze_node): Simplify.
865 (assemble_aliases): Update.
866 (varpool_create_variable_alias): Simplify.
867 (varpool_extra_name_alias): Simplify.
868 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
869 (lto_symtab_merge_symbols): ... this one.
871 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
874 PR rtl-optimization/57268
875 * sched-deps.c (sched_analyze_2): Flush dependence lists if
876 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
878 2013-06-01 Tobias Burnus <burnus@net-b.de>
881 2013-05-31 Tobias Burnus <burnus@net-b.de>
884 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
887 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
889 PR rtl-optimization/57268
890 * sched-deps.c (sched_analyze_2): Flush dependence lists if
891 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
893 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
895 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
896 unordered comparison operators when -fno-trapping-math is in effect
898 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
899 and implement unordered comparison operators properly on the e500.
901 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
903 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
904 for constant scalar integers.
905 (simplify_relational_operation_1): Likewise.
907 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
909 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
910 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
913 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
914 Igor Zamyatin <igor.zamyatin@intel.com>
916 Silvermont (SLM) architecture performance tuning.
917 * config/i386/i386.h (enum ix86_tune_indices): Add
918 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
919 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
921 * config/i386/i386.c (initial_ix86_tune_features)
922 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
923 (ix86_lea_outperforms): Handle Silvermont tuning.
924 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
926 (ix86_use_lea_for_mov): Likewise.
927 (ix86_avoid_lea_for_addr): Likewise.
928 (ix86_lea_for_add_ok): Likewise.
929 (exact_dependency_1): New function.
930 (exact_store_load_dependency): Likewise.
931 (ix86_adjust_cost): Handle Silvermont tuning.
932 (do_reoder_for_imul): Likewise.
933 (swap_top_of_ready_list): New function.
934 (ix86_sched_reorder): Changed to handle Silvermont tuning.
936 * config/i386/i386.md (peepholes that split memory operand in fp
939 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
941 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
942 Remove un-necessary braces.
944 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
946 * config/aarch64/aarch64.c (aarch64_classify_symbol):
947 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
949 2013-05-31 Tobias Burnus <burnus@net-b.de>
952 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
954 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
957 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
958 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
959 * config/arm/neon.md (iordi3_neon): Remove.
960 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
961 * config/arm/predicates.md (imm_for_neon_logic_operand):
962 Move to earlier in the file.
963 (neon_logic_op2): Likewise.
964 (arm_iordi_operand_neon): New predicate.
966 2013-05-31 Richard Biener <rguenther@suse.de>
968 PR tree-optimization/57478
969 PR tree-optimization/57453
970 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
973 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
975 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
976 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
978 2013-05-30 Tobias Burnus <burnus@net-b.de>
979 Thomas Koenig <tkoenig@gcc.gnu.org>
982 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
983 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
985 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
987 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
989 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
991 * target.def (register_usage_leveling_p): New hook.
992 * targhooks.c (default_register_usage_leveling_p): New.
993 * targhooks.h (default_register_usage_leveling_p): New prototype.
994 * lra-assigns.c (register_usage_leveling_p): Use the hook.
995 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
996 * doc/tm.texi: Update.
997 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
999 2013-05-30 Ian Bolton <ian.bolton@arm.com>
1001 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
1002 (*insv_reg<mode>): New define_insn.
1004 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
1006 PR rtl-optimization/57439
1007 * postreload.c (move2add_valid_value_p): Check that we have
1008 a zero subreg_regno_offset when accessing the register in
1011 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
1012 Igor Zamyatin <igor.zamyatin@intel.com>
1014 Silvermont (SLM) architecture pipeline model, tuning and
1016 * config.gcc: Add slm config options and target.
1018 * config/i386/slm.md: New.
1020 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
1022 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
1024 (ix86_target_macros_internal): Likewise.
1026 * gcc/config/i386/i386.c (slm_cost): New cost.
1027 (m_SLM): New macro flag.
1028 (initial_ix86_tune_features): Set m_SLM.
1029 (x86_accumulate_outgoing_args): Likewise.
1030 (x86_arch_always_fancy_math_387): Likewise.
1031 (processor_target_table): Add slm cost.
1032 (cpu_names): Add slm cpu name.
1033 (x86_option_override_internal): Set SLM ISA.
1034 (ix86_issue_rate): New case PROCESSOR_SLM.
1035 (ia32_multipass_dfa_lookahead): Likewise.
1036 (fold_builtin_cpu): Add slm.
1038 * config/i386/i386.h (TARGET_SLM): New target macro.
1039 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
1040 (processor_type): Add PROCESSOR_SLM.
1042 * config/i386/i386.md (cpu): Add new value "slm".
1043 (slm.md): Include slm.md.
1045 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
1046 Zhenqiang Chen <zhenqiang.chen@linaro.org>
1048 * config/arm/arm-protos.h: Add and update function protos.
1049 * config/arm/arm.c (use_simple_return_p): New added.
1050 (thumb2_expand_return): Check simple_return flag.
1051 * config/arm/arm.md: Add simple_return and conditional simple_return.
1052 * config/arm/iterators.md: Add iterator for return and simple_return.
1054 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
1056 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
1057 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
1058 (arm_emit_vfp_multi_reg_pop): Likewise.
1059 (thumb2_emit_ldrd_pop): Likewise.
1060 (arm_expand_epilogue): Add misc REG_CFA notes.
1061 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
1063 2013-05-29 Lawrence Crowl <crowl@google.com>
1065 * config/arm/t-arm: Update for below.
1067 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
1068 Change type to hash_table. Update dependent calls and types.
1070 * config/i386/t-cygming: Update for below.
1072 * config/i386/t-interix: Update for below.
1074 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
1075 Change type to hash_table. Update dependent calls and types.
1076 (i386_find_on_wrapper_list::wrappers): Likewise.
1078 * config/ia64/t-ia64: Update for below.
1080 * config/ia64/ia64.c (bundle_state_table):
1081 Change type to hash_table. Update dependent calls and types.
1083 * config/mips/mips.c (mips_reorg_process_insns::htab):
1084 Change type to hash_table. Update dependent calls and types.
1086 * config/sol2.c (solaris_comdat_htab):
1087 Change type to hash_table. Update dependent calls and types.
1089 * config/t-sol2: Update for above.
1091 2013-05-29 Teresa Johnson <tejohnson@google.com>
1093 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
1094 functions are not yet marked as defined.
1096 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
1097 Pat Haugen <pthaugen@us.ibm.com>
1098 Peter Bergner <bergner@vnet.ibm.com>
1100 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
1104 (vrotl<mode>3): Likewise.
1105 (vashl<mode>3): Likewise.
1106 (vlshr<mode>3): Likewise.
1107 (vashr<mode>3): Likewise.
1109 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1110 support for power8 V2DI builtins.
1112 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
1113 power8 V2DI builtins.
1114 (vupkhsw): Likewise.
1115 (vupklsw): Likewise.
1116 (vaddudm): Likewise.
1121 (vpkudum): Likewise.
1122 (vpksdss): Likewise.
1123 (vpkudus): Likewise.
1124 (vpksdus): Likewise.
1129 (vsubudm): Likewise.
1130 (vcmpequd): Likewise.
1131 (vcmpgtsd): Likewise.
1132 (vcmpgtud): Likewise.
1133 (vcmpequd_p): Likewise.
1134 (vcmpgtsd_p): Likewise.
1135 (vcmpgtud_p): Likewise.
1136 (vupkhsw): Likewise.
1137 (vupklsw): Likewise.
1138 (vaddudm): Likewise.
1143 (vpksdss): Likewise.
1144 (vpksdus): Likewise.
1145 (vpkudum): Likewise.
1146 (vpkudus): Likewise.
1151 (vsubudm): Likewise.
1153 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
1154 support for power8 V2DI instructions.
1156 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
1157 power8 V2DI instructions. Combine pack and unpack insns to use an
1158 iterator for each mode. Check whether a particular mode supports
1159 Altivec instructions instead of just checking TARGET_ALTIVEC.
1160 (UNSPEC_VPKUWUM): Likewise.
1161 (UNSPEC_VPKSHSS): Likewise.
1162 (UNSPEC_VPKSWSS): Likewise.
1163 (UNSPEC_VPKUHUS): Likewise.
1164 (UNSPEC_VPKSHUS): Likewise.
1165 (UNSPEC_VPKUWUS): Likewise.
1166 (UNSPEC_VPKSWUS): Likewise.
1167 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
1168 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
1169 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
1170 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
1171 (UNSPEC_VUPKHSB): Likewise.
1172 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
1173 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
1174 (UNSPEC_VUPKHSH): Likewise.
1175 (UNSPEC_VUPKLSB): Likewise.
1176 (UNSPEC_VUPKLSH): Likewise.
1178 (VI_char): Likewise.
1179 (VI_scalar): Likewise.
1180 (VI_unit): Likewise.
1182 (VP_small): Likewise.
1183 (VP_small_lc): Likewise.
1184 (VU_char): Likewise.
1185 (add<mode>3): Likewise.
1186 (altivec_vaddcuw): Likewise.
1187 (altivec_vaddu<VI_char>s): Likewise.
1188 (altivec_vadds<VI_char>s): Likewise.
1189 (sub<mode>3): Likewise.
1190 (altivec_vsubcuw): Likewise.
1191 (altivec_vsubu<VI_char>s): Likewise.
1192 (altivec_vsubs<VI_char>s): Likewise.
1193 (altivec_vavgs<VI_char>): Likewise.
1194 (altivec_vcmpbfp): Likewise.
1195 (altivec_eq<mode>): Likewise.
1196 (altivec_gt<mode>): Likewise.
1197 (altivec_gtu<mode>): Likewise.
1198 (umax<mode>3): Likewise.
1199 (smax<mode>3): Likewise.
1200 (umin<mode>3): Likewise.
1201 (smin<mode>3): Likewise.
1202 (altivec_vpkuhum): Likewise.
1203 (altivec_vpkuwum): Likewise.
1204 (altivec_vpkshss): Likewise.
1205 (altivec_vpkswss): Likewise.
1206 (altivec_vpkuhus): Likewise.
1207 (altivec_vpkshus): Likewise.
1208 (altivec_vpkuwus): Likewise.
1209 (altivec_vpkswus): Likewise.
1210 (altivec_vpks<VI_char>ss): Likewise.
1211 (altivec_vpks<VI_char>us): Likewise.
1212 (altivec_vpku<VI_char>us): Likewise.
1213 (altivec_vpku<VI_char>um): Likewise.
1214 (altivec_vrl<VI_char>): Likewise.
1215 (altivec_vsl<VI_char>): Likewise.
1216 (altivec_vsr<VI_char>): Likewise.
1217 (altivec_vsra<VI_char>): Likewise.
1218 (altivec_vsldoi_<mode>): Likewise.
1219 (altivec_vupkhsb): Likewise.
1220 (altivec_vupkhs<VU_char>): Likewise.
1221 (altivec_vupkls<VU_char>): Likewise.
1222 (altivec_vupkhsh): Likewise.
1223 (altivec_vupklsb): Likewise.
1224 (altivec_vupklsh): Likewise.
1225 (altivec_vcmpequ<VI_char>_p): Likewise.
1226 (altivec_vcmpgts<VI_char>_p): Likewise.
1227 (altivec_vcmpgtu<VI_char>_p): Likewise.
1228 (abs<mode>2): Likewise.
1229 (vec_unpacks_hi_v16qi): Likewise.
1230 (vec_unpacks_hi_v8hi): Likewise.
1231 (vec_unpacks_lo_v16qi): Likewise.
1232 (vec_unpacks_hi_<VP_small_lc>): Likewise.
1233 (vec_unpacks_lo_v8hi): Likewise.
1234 (vec_unpacks_lo_<VP_small_lc>): Likewise.
1235 (vec_pack_trunc_v8h): Likewise.
1236 (vec_pack_trunc_v4si): Likewise.
1237 (vec_pack_trunc_<mode>): Likewise.
1239 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
1241 (vec_vmaxsd): Likewise.
1242 (vec_vmaxud): Likewise.
1243 (vec_vminsd): Likewise.
1244 (vec_vminud): Likewise.
1245 (vec_vpksdss): Likewise.
1246 (vec_vpksdus): Likewise.
1247 (vec_vpkudum): Likewise.
1248 (vec_vpkudus): Likewise.
1249 (vec_vrld): Likewise.
1250 (vec_vsld): Likewise.
1251 (vec_vsrad): Likewise.
1252 (vec_vsrd): Likewise.
1253 (vec_vsubudm): Likewise.
1254 (vec_vupkhsw): Likewise.
1255 (vec_vupklsw): Likewise.
1257 2013-05-29 Jan Hubicka <jh@suse.cz>
1259 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
1260 flags; reorder rest of fields in more consistent way.
1261 (varpool_node): Remove analyzed, finalized and alias.
1262 (cgraph_ndoe): Likewise.
1263 (symtab_alias_ultimate_target): New function.
1264 (cgraph_function_node): Move offline.
1265 (cgraph_reset_node): Declare.
1266 (cgraph_comdat_can_be_unshared_p): Remove.
1267 (varpool_remove_initializer): Declare.
1268 (varpool_first_defined_variable, varpool_next_defined_variable
1269 cgraph_first_defined_function, cgraph_next_defined_function): Update.
1270 (cgraph_function_with_gimple_body_p): Update.
1271 (varpool_all_refs_explicit_p): Update.
1272 (symtab_alias_target): New function.
1273 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
1274 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
1275 (cgraph_function_or_thunk_node): Simplify using
1276 symtab_alias_ultimate_target.
1277 (varpool_variable_node): Likewise.
1278 * cgraph.c (cgraph_create_function_alias): Update.
1279 (cgraph_add_thunk): Update.
1280 (cgraph_remove_node): Update.
1281 (dump_cgraph_node): Do not dump removed flags.
1282 (cgraph_function_body_availability): Update.
1283 (cgraph_propagate_frequency): Update.
1284 (verify_cgraph_node): Check sanity of local flag.
1285 (cgraph_function_node): Move here from cgraph.h; revamp for
1286 cgraph_function_or_thunk_node.
1287 * lto-symtab.c (lto_varpool_replace_node): Update.
1288 (lto_symtab_resolve_can_prevail_p): Update.
1289 (lto_symtab_merge_cgraph_nodes): Update.
1290 * ipa-cp.c (determine_versionability, initialize_node_lattices,
1291 propagate_constants_accross_call, devirtualization_time_bonus,
1292 ipcp_propagate_stage): Update.
1293 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
1294 * ipa-inline-transform.c (clone_inlined_nodes,
1295 preserve_function_body_p): Update.
1296 * ipa-reference.c (propagate): Update.
1297 (write_node_summary_p): Update.
1298 * toplev.c (wrapup_global_declaration_2): Update.
1299 * cgraphunit.c (cgraph_analyze_function): Rename to ...
1300 (analyze_function) ... this one.
1301 (cgraph_process_new_functions): Update.
1302 (cgraph_reset_node): Export.
1303 (cgraph_finalize_function): Update.
1304 (cgraph_add_new_function): Update.
1305 (process_function_and_variable_attributes): Update.
1306 (varpool_finalize_decl): Update.
1307 (symbol_finalized): Remove.
1308 (symbol_finalized_and_needed): Rename to ...
1309 (symbol_defined_and_needed): ... update.
1310 (cgraph_analyze_functions): Update.
1311 (handle_alias_pairs): Update.
1312 (mark_functions_to_output): Update.
1313 (assemble_thunk): Update.
1314 (output_in_order): Update.
1315 (output_weakrefs): Update.
1316 (finalize_compilation_unit): Update.
1317 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
1318 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
1319 input_node, input_varpool_node): Update.
1320 * dbxout.c (dbxout_expand_expr): Update.
1321 * cgraphclones.c (cgraph_clone_node): Update.
1322 (cgraph_copy_node_for_versioning): Update.
1323 (cgraph_materialize_clone): Update.
1324 (cgraph_materialize_all_clones): Update.
1325 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
1326 propagate_pure_const, propagate_nothrow): Update.
1327 * lto-streamer-out.c (lto_output, write_symbol): Update.
1328 * ipa-utils.c (ipa_reverse_postorder): Update.
1329 * ipa-inline.c (can_inline_edge_p): Update.
1330 (update_caller_keys, ipa_inline): Update.
1331 * dwarf2out.c (reference_to_unused,
1332 premark_types_used_by_global_vars_helper): Update.
1333 * tree-eh.c (tree_could_trap_p): Update.
1334 * ipa-split.c (consider_split, execute_split_functions): Update.
1335 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
1336 has_addr_references_p): Update; move ahead in file for better
1338 (process_references): Simplify.
1339 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
1341 (cgraph_comdat_can_be_unshared_p): Make static.
1342 (cgraph_externally_visible_p): Update.
1343 (varpool_externally_visible_p): Update.
1344 (function_and_variable_visibility): Update.
1345 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
1346 ipa_tm_mark_force_output_node): Update.
1347 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
1348 estimate_edge_devirt_benefit, inline_generate_summary,
1349 inline_write_summary): Update.
1350 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
1351 * ipa-prop.c (ipa_compute_jump_functions): Update.
1352 (ipa_print_node_params, ipa_prop_read_section,
1353 ipa_update_after_lto_read, read_replacements_section): Update.
1354 * varasm.c (mark_decl_referenced): Update.
1355 (assemble_alias, dump_tm_clone_pairs): Update.
1356 * tree-inline.c (copy_bb): Update.
1357 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
1359 * symtab.c (dump_symtab_base): Print new flags.
1360 (verify_symtab_base): Verify new flags.
1361 (symtab_alias_ultimate_target): New function.
1362 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
1363 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
1365 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
1367 * i386.c (ix86_get_function_versions_dispatcher,
1368 ix86_generate_version_dispatcher_body): Update.
1369 (fold_builtin_cpu): Use varpool_add_new_variable.
1370 * varpool.c (varpool_remove_initializer): Break out from ...
1371 (varpool_remove_node): ... this one.
1372 (dump_varpool_node, varpool_node_for_asm,
1373 cgraph_variable_initializer_availability, varpool_analyze_node,
1374 varpool_assemble_decl, varpool_remove_unreferenced_decls,
1375 varpool_finalize_named_section_flags, varpool_create_variable_alias):
1378 2013-05-29 Jan Hubicka <jh@suse.cz>
1380 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
1382 2013-05-29 Easwaran Raman <eraman@google.com>
1384 PR tree-optimization/57442
1385 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
1386 when control exits the main loop.
1388 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
1390 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
1392 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
1393 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
1394 * rx/t-rx: Add rx100 under multi library matches option for nofpu
1397 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1399 PR tree-optimization/57441
1400 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
1401 Don't limit size of incr_vec to number of candidates.
1403 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
1405 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
1406 and mips16 directories.
1407 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
1408 (MULTILIB_DIRNAMES): Ditto.
1409 (MULTILIB_EXCEPTIONS): Add new exceptions.
1410 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
1411 (MULTILIB_DIRNAMES): Ditto.
1412 (MULTILIB_EXCEPTIONS): Add new exceptions.
1414 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1415 Marcus Shawcroft <marcus.shawcroft@arm.com>
1417 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
1418 SYMBOL_TINY_ABSOLUTE.
1419 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
1420 SYMBOL_TINY_ABSOLUTE.
1421 (aarch64_expand_mov_immediate): Likewise.
1422 (aarch64_classify_symbol): Likewise.
1423 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
1424 Permit SYMBOL_TINY_ABSOLUTE.
1425 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
1427 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1428 Marcus Shawcroft <marcus.shawcroft@arm.com>
1430 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
1431 Refactor if/switch. Replace gcc_assert with if.
1433 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1435 * config/i386/i386.c (initial_ix86_tune_features): Enable
1436 FP Reassociation for AMD bdver1 and bdver2.
1438 2013-05-29 Martin Jambor <mjambor@suse.cz>
1440 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
1441 and IMAGPART_EXPR do not occur within other handled_components.
1443 2013-05-29 Richard Biener <rguenther@suse.de>
1445 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
1446 access on whether the use is in the BB we currently try to
1448 (vect_bb_vectorization_profitable_p): Pass the BB we currently
1449 vectorize to vect_bb_slp_scalar_cost.
1451 2013-05-29 Richard Biener <rguenther@suse.de>
1453 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
1454 computing scalar cost offsetted by stmts that are kept live
1456 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
1457 for computation of scalar cost.
1459 2013-05-28 Steve Ellcey <sellcey@mips.com>
1461 * config/mips/mips-cpus.def (mips32r2): Change processor type.
1463 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1465 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
1466 array notation built-in reduction functions.
1467 * doc/passes.texi (Passes): Added documentation about changes done
1469 * doc/invoke.texi (C Dialect Options): Added documentation about
1470 the -fcilkplus flag.
1471 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
1472 (BUILTINS_DEF): Depend on cilkplus.def.
1473 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
1474 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
1475 * cilkplus.def: New file.
1477 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
1479 PR rtl-optimization/57439
1480 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
1482 2013-05-28 Easwaran Raman <eraman@google.com>
1484 PR tree-optimization/57337
1485 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
1486 (find_insert_point): Correctly identify the insertion point
1487 when two statements with the same UID is compared.
1489 2013-05-28 Richard Biener <rguenther@suse.de>
1491 PR tree-optimization/56787
1492 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
1493 from the list of data references.
1494 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
1496 (vect_analyze_loop_operations): Likewise.
1497 (vect_transform_loop): Remove clobbers.
1499 2013-05-28 Martin Jambor <mjambor@suse.cz>
1501 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
1502 and REALPART_EXPRs have scalar type.
1504 2013-05-28 Richard Biener <rguenther@suse.de>
1506 PR tree-optimization/57411
1507 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
1509 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
1510 virtual operand propagation.
1512 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
1514 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
1515 destination register for bmasksi_vis.
1516 (vector_init_bshuffle): Likewise.
1517 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
1519 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
1521 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
1522 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
1523 mode if the instruction isn't available in the original mode.
1524 * config/sparc/sparc.opt (mfix-ut699): New option.
1525 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
1526 (divdf3): Turn into expander.
1527 (divdf3_nofix): New insn.
1528 (divdf3_fix): Likewise.
1529 (divsf3): Disable if -mfix-ut699.
1530 (sqrtdf2): Turn into expander.
1531 (sqrtdf2_nofix): New insn.
1532 (sqrtdf2_fix): Likewise.
1533 (sqrtsf2): Disable if -mfix-ut699.
1535 2013-05-27 Richard Biener <rguenther@suse.de>
1538 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
1539 block for the new loop.
1541 2013-05-27 Richard Biener <rguenther@suse.de>
1543 PR tree-optimization/57343
1544 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
1545 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
1546 (number_of_iterations_cond): Do not build the folded tree.
1548 2013-05-27 Richard Biener <rguenther@suse.de>
1552 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
1553 OEP_CONSTANT_ADDRESS_OF retained.
1555 PR tree-optimization/57417
1556 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
1558 (set_ssa_val_to): Compare addresses using
1559 get_addr_base_and_unit_offset.
1561 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
1563 PR rtl-optimization/56833
1564 * postreload.c (move2add_record_mode): New function.
1565 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
1566 (move2add_use_add2_insn): Use move2add_record_sym_value.
1567 (move2add_use_add3_insn): Likewise.
1568 (reload_cse_move2add): Use move2add_valid_value_p and
1569 move2add_record_mode. Invalidate call-clobbered and REG_INC
1570 affected regs by setting reg_mode to VOIDmode.
1571 (move2add_note_store): Don't pretend the inside of a SUBREG is
1572 the actual destination. Invalidate single/leading registers by
1573 setting reg_mode to VOIDmode.
1574 Use move2add_record_sym_value, move2add_valid_value_p and
1575 move2add_record_mode.
1577 2013-05-27 Richard Biener <rguenther@suse.de>
1579 PR tree-optimization/57396
1580 * tree-affine.c (double_int_constant_multiple_p): Properly
1581 return false for val == 0 and div != 0.
1583 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
1585 * config/mips/mips.h: Use #elif in preprocessor conditions.
1587 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
1590 * config/mips/constraints.md (kl): New constraint.
1591 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
1592 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
1593 constraint for operand 0. Split after CSE for MIPS16. Emit a move
1595 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
1597 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
1600 * config/mips/mips.c (mips_can_inline_p): New function.
1601 (TARGET_CAN_INLINE_P): Define.
1603 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
1605 * sched-int.h (ds_t, dw_t): Make unsigned int.
1606 Fix documentation that describes how all the ds_t bits are used.
1607 Reserve the last bit for delayed-branch scheduling.
1608 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
1609 (BITS_PER_DEP_WEAK): Fix definition and documentation.
1610 (gen_dep_weak_1): Remove prototype.
1611 * sched-deps.c (get_dep_weak_1): Make static.
1612 * target.def (speculate_insn, needs_block_p, gen_spec_check,
1613 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
1614 * doc/tm.texi: Regenerate.
1615 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
1617 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
1620 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
1622 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
1623 Sandra Loosemore <sandra@codesourcery.com>
1625 * config.gcc (powerpc-*): Allow native for with-cpu.
1627 2013-05-24 Jeff Law <law@redhat.com>
1629 PR tree-optimization/57124
1630 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
1631 conversion feeding a condition if the range has an overflow
1632 if -fstrict-overflow. Add warnings for when we do make the
1635 2013-05-24 Dehao Chen <dehao@google.com>
1637 * tree-cfg.c (locus_discrim_map): Fix the typo.
1638 (locus_discrim_hasher): Likewise.
1639 (locus_discrim_hasher::hash): Likewise.
1640 (locus_discrim_hasher::equal): Likewise.
1642 2013-05-24 Martin Jambor <mjambor@suse.cz>
1644 PR tree-optimization/57294
1645 * cgraph.h (ipa_record_stmt_references): Declare.
1646 * cgraphbuild.c (ipa_record_stmt_references): New function.
1647 (build_cgraph_edges): Use ipa_record_stmt_references.
1648 (rebuild_cgraph_edges): Likewise.
1649 (cgraph_rebuild_references): Likewise.
1650 * ipa-prop.c (ipa_modify_call_arguments): Discard references
1651 associated with the old statement and build references from the
1652 newly built statements.
1653 * ipa-ref.c (ipa_remove_stmt_references): New function.
1654 * ipa-ref.h (ipa_remove_stmt_references): Declare.
1656 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
1658 * lra-constraints.c (emit_spill_move): Use smaller mode for
1660 (check_and_process_move): Consider mem-reg moves for secondary
1662 (curr_insn_transform): Don't lose insns emitted before for
1663 secondary memory moves.
1664 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
1665 reg set up in the current insn.
1667 2013-05-24 Dehao Chen <dehao@google.com>
1669 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
1671 (locus_descrim_hasher::equal): Likewise.
1672 (build_gimple_cfg): New discriminator assignment algorithm.
1673 (make_edges): Likewise.
1674 (next_discriminator_for_locus): Likewise.
1675 (same_line_p): Likewise.
1676 (assign_discriminators): Likewise.
1677 (make_cond_expr_edges): Likewise.
1678 (make_gimple_switch_edges): Likewise.
1679 (make_goto_expr_edges): Likewise.
1680 (make_gimple_asm_edges): Likewise.
1682 2013-05-24 Ian Bolton <ian.bolton@arm.com>
1684 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
1685 X format specifier to only display bottom 16 bits.
1686 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
1687 immediate to match for operand 2, since it will be masked.
1689 2013-05-24 Richard Biener <rguenther@suse.de>
1691 PR tree-optimization/57287
1692 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
1693 all SSA names that occur in abnormal PHIs.
1695 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
1698 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
1699 that index is not negative.
1701 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
1703 PR rtl-optimization/55177
1704 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
1705 (simplify_byte_swapping_operation): New.
1706 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
1707 (simplify_relational_operation_1): Deal with BSWAP.
1709 2013-05-23 Richard Henderson <rth@redhat.com>
1712 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
1713 (ix86_reorg): Call it.
1715 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
1718 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
1719 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
1720 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
1722 2013-05-23 Christian Bruel <christian.bruel@st.com>
1725 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
1727 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1728 Marcus Shawcroft <marcus.shawcroft@arm.com>
1730 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
1731 * config/aarch64/constraints.md (Usa): Remove.
1732 * doc/md.texi (AArch64 Usa): Remove.
1734 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1735 Marcus Shawcroft <marcus.shawcroft@arm.com>
1737 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
1738 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
1739 * config/aarch64/predicates.md (aarch64_const_address): Remove.
1740 (aarch64_mov_operand): Use aarch64_mov_operand_p.
1742 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
1744 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
1745 instruction (AdvSIMD).
1746 * config/aarch64/aarch64-builtins.c
1747 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
1748 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
1750 2013-05-23 Martin Jambor <mjambor@suse.cz>
1753 * tree.h (contains_bitfld_component_ref_p): Declare.
1754 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
1755 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
1757 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
1758 not access a bit-field. Assert all final offsets are byte-aligned.
1760 2013-05-23 Richard Biener <rguenther@suse.de>
1762 PR tree-optimization/57380
1763 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
1764 least one invariant or re-used load.
1765 * passes.c (init_optimization_passes): Move pass_phiprop before
1768 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
1770 * config/aarch64/aarch64-simd.md
1771 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
1773 2013-05-23 Richard Biener <rguenther@suse.de>
1776 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
1777 OEP_CONSTANT_ADDRESS_OF retained.
1779 2013-05-23 Jakub Jelinek <jakub@redhat.com>
1782 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
1783 don't lower unit. Handle unit not being always BITS_PER_WORD.
1785 2013-05-23 Richard Biener <rguenther@suse.de>
1787 PR rtl-optimization/57341
1788 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
1789 instead of true_dependence.
1791 2013-05-22 David Malcolm <dmalcolm@redhat.com>
1793 * bb-reorder.c (branch_threshold): Make const.
1794 (exec_threshold): Ditto.
1796 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
1797 Pat Haugen <pthaugen@us.ibm.com>
1798 Peter Bergner <bergner@vnet.ibm.com>
1800 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
1801 documentation for the power8 crypto builtins.
1803 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
1805 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
1806 macros for defining power8 builtin functions.
1807 (BU_P8V_AV_2): Likewise.
1808 (BU_P8V_AV_P): Likewise.
1809 (BU_P8V_VSX_1): Likewise.
1810 (BU_P8V_OVERLOAD_1): Likewise.
1811 (BU_P8V_OVERLOAD_2): Likewise.
1812 (BU_CRYPTO_1): Likewise.
1813 (BU_CRYPTO_2): Likewise.
1814 (BU_CRYPTO_3): Likewise.
1815 (BU_CRYPTO_OVERLOAD_1): Likewise.
1816 (BU_CRYPTO_OVERLOAD_2): Likewise.
1817 (XSCVSPDP): Fix typo, point to the correct instruction.
1818 (VCIPHER): Add power8 crypto builtins.
1819 (VCIPHERLAST): Likewise.
1820 (VNCIPHER): Likewise.
1821 (VNCIPHERLAST): Likewise.
1822 (VPMSUMB): Likewise.
1823 (VPMSUMH): Likewise.
1824 (VPMSUMW): Likewise.
1825 (VPERMXOR_V2DI): Likewise.
1826 (VPERMXOR_V4SI: Likewise.
1827 (VPERMXOR_V8HI: Likewise.
1828 (VPERMXOR_V16QI: Likewise.
1829 (VSHASIGMAW): Likewise.
1830 (VSHASIGMAD): Likewise.
1832 (VPERMXOR): Likewise.
1833 (VSHASIGMA): Likewise.
1835 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
1836 __CRYPTO__ if the crypto instructions are available.
1837 (altivec_overloaded_builtins): Add support for overloaded power8
1840 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
1841 support for power8 crypto builtins.
1842 (builtin_function_type): Likewise.
1843 (altivec_init_builtins): Add support for builtins that take vector
1844 long long (V2DI) arguments.
1846 * config/rs6000/crypto.md: New file, define power8 crypto
1849 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
1850 Pat Haugen <pthaugen@us.ibm.com>
1851 Peter Bergner <bergner@vnet.ibm.com>
1853 * doc/invoke.texi (Option Summary): Add power8 options.
1854 (RS/6000 and PowerPC Options): Likewise.
1856 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
1857 constraints.md instead of rs6000.h. Reorder w* constraints. Add
1858 wm, wn, wr documentation.
1860 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
1861 registers if direct move instructions are enabled.
1862 (wn): New constraint for no registers.
1863 (wq): New constraint for quad word even GPR registers.
1864 (wr): New constraint if 64-bit instructions are enabled.
1865 (wv): New constraint if power8 vector instructions are enabled.
1866 (wQ): New constraint for quad word memory locations.
1868 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
1869 constraint for 0..15 for crypto instructions.
1870 (gpc_reg_operand): If VSX allow registers in VSX registers as well
1871 as GPR and floating point registers.
1872 (int_reg_operand): New predicate to match only GPR registers.
1873 (base_reg_operand): New predicate to match base registers.
1874 (quad_int_reg_operand): New predicate to match even GPR registers
1875 for quad memory operations.
1876 (vsx_reg_or_cint_operand): New predicate to allow vector logical
1877 operations in both GPR and VSX registers.
1878 (quad_memory_operand): New predicate for quad memory operations.
1879 (reg_or_indexed_operand): New predicate for direct move support.
1881 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
1882 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
1883 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
1884 (POWERPC_MASKS): Add power8 options.
1885 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
1888 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
1889 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
1891 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
1892 (-mpower8-fusion): New power8 options.
1893 (-mpower8-fusion-sign): Likewise.
1894 (-mpower8-vector): Likewise.
1895 (-mcrypto): Likewise.
1896 (-mdirect-move): Likewise.
1897 (-mquad-memory): Likewise.
1899 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
1901 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
1903 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
1904 (rs6000_debug_vector_unit): Add p8_vector.
1905 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
1906 definitions. Also print fusion state.
1907 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
1908 (rs6000_builtin_mask_calculate): Add power8 builtin support.
1909 (rs6000_option_override_internal): Add support for power8.
1910 (rs6000_common_init_builtins): Add debugging for skipped builtins
1912 (rs6000_adjust_cost): Add power8 support.
1913 (rs6000_issue_rate): Likewise.
1914 (insn_must_be_first_in_group): Likewise.
1915 (insn_must_be_last_in_group): Likewise.
1916 (force_new_group): Likewise.
1917 (rs6000_register_move_cost): Likewise.
1918 (rs6000_opt_masks): Likewise.
1920 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
1921 power8 capable assembler, default to power7 options.
1922 (TARGET_DIRECT_MOVE): Likewise.
1923 (TARGET_CRYPTO): Likewise.
1924 (TARGET_P8_VECTOR): Likewise.
1925 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
1926 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
1927 (VECTOR_MEM_P8_VECTOR_P): Likewise.
1928 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
1929 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
1930 (TARGET_XSCVDPSPN): Likewise.
1931 (TARGET_XSCVSPDPN): Likewsie.
1932 (TARGET_SYNC_HI_QI): Likewise.
1933 (TARGET_SYNC_TI): Likewise.
1934 (MASK_CRYPTO): Likewise.
1935 (MASK_DIRECT_MOVE): Likewise.
1936 (MASK_P8_FUSION): Likewise.
1937 (MASK_P8_VECTOR): Likewise.
1938 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
1939 temporary used by some of the direct move instructions to get two FP
1940 temporary registers does not force creation of a stack frame.
1941 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
1942 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
1943 that any VSX registers are tieable, even if they are also an
1944 Altivec vector mode.
1945 (r6000_reg_class_enum): Add wm, wr, wv constraints.
1946 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
1947 (RS6000_BTM_CRYPTO): Likewise.
1948 (RS6000_BTM_COMMON): Likewise.
1950 * config/rs6000/rs6000.md (cpu attribute): Add power8.
1951 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
1952 (enum rs6000_vector): Add power8 vector support.
1954 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1958 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
1959 (any_sibcall_could_use_r3): this and handle indirect calls.
1960 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
1962 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1964 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
1966 2013-05-22 Richard Biener <rguenther@suse.de>
1969 * profile.c (branch_prob): Do not split blocks that are
1970 abnormally receiving from ECF_RETURNS_TWICE functions.
1972 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1974 * recog.c (offsettable_address_addr_space_p): Fix calculation of
1975 address mode. Move pointer mode initialization to the same place.
1977 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1979 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
1980 while it has any effect.
1982 2013-05-21 Easwaran Raman <eraman@google.com>
1984 PR tree-optimization/57322
1985 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
1986 UID of the statement added to the BB to be 1.
1988 2013-05-21 Jakub Jelinek <jakub@redhat.com>
1990 PR tree-optimization/57331
1991 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
1992 of conversion from pointer type to integral type with integer.
1994 2013-05-21 Martin Jambor <mjambor@suse.cz>
1997 * ipa-prop.c (ipa_read_node_info): Process param_used and
1998 controlled_uses in the same order as when writing.
2000 2013-05-21 Magnus Granberg <baldrick@free.fr>
2003 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
2005 2013-05-21 Richard Biener <rguenther@suse.de>
2007 PR tree-optimization/57318
2008 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
2009 estimate stmts with side-effects as likely eliminated.
2011 2013-05-21 Richard Biener <rguenther@suse.de>
2013 PR tree-optimization/57330
2014 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
2015 preserve the call stmts fntype.
2017 2013-05-21 Richard Biener <rguenther@suse.de>
2019 PR tree-optimization/57303
2020 * tree-ssa-sink.c (statement_sink_location): Improve killing
2021 stmt detection and properly handle self-assignments.
2023 2013-05-21 Christian Bruel <christian.bruel@st.com>
2025 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
2026 spanning registers. LEAF_REG_REMAP is supported only for contiguous
2027 registers. Set register size out of the PARALLEL loop.
2029 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
2032 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
2033 (*fmasf4, *fmasf4_media): New insns.
2035 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
2037 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
2038 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
2039 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
2040 (mips_idiv_insns): Update the comments to say that the returned
2041 instruction counts are in units of BASE_INSN_LENGTH.
2042 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
2043 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
2044 using 2 rather than 4 as the length of indirect MIPS16 and
2045 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
2046 length of a NOP. Don't divide MIPS16 lengths by 2.
2047 (mips16_split_long_branches): Assume a branch is long if the
2048 length is greater than 4 rather than 8.
2049 * config/mips/mips.md (length): Give MIPS16 lengths directly,
2050 rather than multiplying them by 2. Multiply instruction counts
2051 by BASE_INSN_LENGTH rather than 4.
2052 (*jump_mips16, tls_get_tp_mips16_<mode>)
2053 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
2055 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
2057 * config/mips/mips.md (extended_mips16): Remove branch case.
2058 (length): Remove duplicated extended_mips16 test.
2060 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
2062 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
2064 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
2066 * recog.h (Recog_data): Rename to...
2067 (recog_data_d): ...this.
2068 (recog_data): Update accordingly.
2069 * recog.c (recog_data): Likewise.
2070 * reload.c (save_recog_data): Likewise.
2071 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
2072 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
2074 2013-05-17 Julian Brown <julian@codesourcery.com>
2076 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
2077 found in a REG_EQUAL note, invalidate it.
2079 2013-05-17 Easwaran Raman <eraman@google.com>
2081 * tree-ssa-reassoc.c (find_insert_point): New function.
2082 (insert_stmt_after): Likewise.
2083 (get_def_stmt): Likewise.
2084 (ensure_ops_are_available): Likewise.
2085 (not_dominated_by): Likewise.
2086 (rewrite_expr_tree): Do not move statements beyond what is
2087 necessary. Remove call to swap_ops_for_binary_stmt...
2088 (reassociate_bb): ... and move it here.
2089 (build_and_add_sum): Assign UIDs for new statements.
2090 (linearize_expr): Likewise.
2091 (do_reassoc): Renumber gimple statement UIDs.
2093 2013-05-17 Jan Hubicka <jh@suse.cz>
2095 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
2097 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
2098 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
2100 (output_weakrefs): Update.
2102 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
2103 Martin Jambor <mjambor@suse.cz>
2106 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
2107 value that corresponds to the given aggval is found in values vector.
2109 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
2111 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
2112 sse, sse2, sse3, ssse3 and sse4a flags to options.
2114 2013-05-17 David Malcolm <dmalcolm@redhat.com>
2116 * gengtype-state.c: (s_expr_writer): New class, to handle
2117 prettifying of output layout of s-expressions.
2118 (state_writer): New class, to write out gtype.state.
2119 (state_written_type_count): Move this variable into member data of
2121 (s_expr_writer::s_expr_writer): New code: constructor for new class
2122 (state_writer::state_writer(): ditto
2123 (s_expr_writer::write_new_line): New function
2124 (s_expr_writer::write_any_indent): ditto
2125 (s_expr_writer::begin_s_expr): ditto
2126 (s_expr_writer::end_s_expr): ditto
2127 (write_state_fileloc): convert to method of state_writer...
2128 (state_writer:: write_state_fileloc): ...and use methods of
2129 s_expr_writer to write indentation into the gtype.state output file
2130 to visually represent the hierarchical structure of the list
2132 (write_state_fields): ditto, renaming to...
2133 (state_writer::write_state_fields)
2134 (write_state_a_string): ditto, renaming to...
2135 (state_writer::write_state_a_string)
2136 (write_state_string_option): ditto, renaming to...
2137 (state_writer::write_state_string_option)
2138 (write_state_type_option): ditto, renaming to...
2139 (state_writer::write_state_type_option)
2140 (write_state_nested_option): ditto, renaming to...
2141 (state_writer::write_state_nested_option)
2142 (write_state_option): ditto, renaming to...
2143 (state_writer::write_state_option)
2144 (write_state_options): ditto, renaming to...
2145 (state_writer::write_state_options)
2146 (write_state_lang_bitmap): ditto, renaming to...
2147 (state_writer::write_state_lang_bitmap)
2148 (write_state_version): ditto, renaming to...
2149 (state_writer::write_state_version)
2150 (write_state_scalar_type): ditto, renaming to...
2151 (state_writer::write_state_scalar_type)
2152 (write_state_string_type): ditto, renaming to...
2153 (state_writer::write_state_string_type)
2154 (write_state_undefined_type): ditto, renaming to...
2155 (state_writer::write_state_undefined_type)
2156 (write_state_struct_union_type): ditto, renaming to...
2157 (state_writer::write_state_struct_union_type)
2158 (write_state_struct_type): ditto, renaming to...
2159 (state_writer::write_state_struct_type)
2160 (write_state_user_struct_type): ditto, renaming to...
2161 (state_writer::write_state_user_struct_type)
2162 (write_state_lang_struct_type): ditto, renaming to...
2163 (state_writer::write_state_lang_struct_type)
2164 (write_state_param_struct_type): ditto, renaming to...
2165 (state_writer::write_state_param_struct_type)
2166 (write_state_pointer_type): ditto, renaming to...
2167 (state_writer::write_state_pointer_type)
2168 (write_state_array_type): ditto, renaming to...
2169 (state_writer::write_state_array_type)
2170 (write_state_gc_used): ditto, renaming to...
2171 (state_writer::write_state_gc_used)
2172 (write_state_common_type_content): ditto, renaming to...
2173 (state_writer::write_state_common_type_content)
2174 (write_state_type): ditto, renaming to...
2175 (state_writer::write_state_type)
2176 (write_state_pair_list): ditto, renaming to...
2177 (state_writer::write_state_pair_list)
2178 (write_state_pair): ditto, renaming to...
2179 (state_writer::write_state_pair)
2180 (write_state_typedefs): ditto, renaming to...
2181 (state_writer::write_state_typedefs)
2182 (write_state_structures): ditto, renaming to...
2183 (state_writer::write_state_structures)
2184 (write_state_param_structs): ditto, renaming to...
2185 (state_writer::write_state_param_structs)
2186 (write_state_variables): ditto, renaming to...
2187 (state_writer::write_state_variables)
2188 (write_state_srcdir): ditto, renaming to...
2189 (state_writer::write_state_srcdir)
2190 (write_state_files_list): ditto, renaming to...
2191 (state_writer::write_state_files_list)
2192 (write_state_languages): ditto, renaming to...
2193 (state_writer::write_state_languages)
2194 (write_state): create a state_writer instance and use it when
2195 writing out the state file
2197 2013-05-17 Mike Stump <mikestump@comcast.net>
2199 PR rtl-optimization/57304
2200 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
2201 accessing DF_REF_REAL_LOC.
2203 2013-05-17 Jakub Jelinek <jakub@redhat.com>
2205 PR rtl-optimization/57281
2206 PR rtl-optimization/57300
2207 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
2208 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
2209 what the other splitter did if the registers are dead.
2211 2013-05-17 Richard Biener <rguenther@suse.de>
2213 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
2216 2013-05-17 Jakub Jelinek <jakub@redhat.com>
2218 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
2221 2013-05-17 Marek Polacek <polacek@redhat.com>
2223 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
2224 length when doing non-zero store of storing '\0' to '\0'.
2226 2013-05-17 Jakub Jelinek <jakub@redhat.com>
2228 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
2229 vect_external_def oprnd1 with loop_vinfo, try to emit
2230 optional cast, negation and and stmts on the loop preheader
2231 edge instead of into the pattern def seq.
2233 PR tree-optimization/57051
2234 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
2235 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
2237 2013-05-16 Nick Clifton <nickc@redhat.com>
2239 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
2240 (rl78_is_naked_func): New function.
2241 (rl78_expand_prologue): Skip prologue generation for naked functions.
2242 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
2243 * doc/extend.texi (naked): Add RL78 to the list of processors
2244 that supports this attribute.
2246 2013-05-16 Jeff Law <law@redhat.com>
2248 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
2250 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
2252 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
2253 cache parameters using detect_caches_amd also for CYRIX,
2254 NSC and TM2 signatures.
2256 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
2257 Dzianis Kahanovich <mahatma@eu.by>
2261 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2262 VIA/Centaur processors and determine their cache parameters
2263 using detect_caches_amd.
2265 2013-05-16 Teresa Johnson <tejohnson@google.com>
2267 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
2268 (rtl_verify_edges): New function.
2269 (rtl_verify_bb_insns): Ditto.
2270 (rtl_verify_bb_pointers): Ditto.
2271 (rtl_verify_bb_insn_chain): Ditto.
2272 (rtl_verify_fallthru): Ditto.
2273 (rtl_verify_bb_layout): Ditto.
2274 (rtl_verify_flow_info_1): Outline checks into new functions.
2275 (rtl_verify_flow_info): Ditto.
2277 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
2279 * cfghooks.c (copy_bbs): Add update_dominance argument.
2280 * cfghooks.h (copy_bbs): Update prototype.
2281 * tree-cfg.c (gimple_duplicate_sese_region):
2282 Add update_dominance argument.
2283 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
2284 * tree-ssa-loop-ch.c (copy_loop_headers): Update
2285 gimple_duplicate_sese_region call.
2286 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
2287 Update copy_bbs call.
2288 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
2289 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
2291 2013-05-16 Jakub Jelinek <jakub@redhat.com>
2293 * tree-vectorizer.h (NUM_PATTERNS): Increment.
2294 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
2295 vect_recog_rotate_pattern.
2296 (vect_recog_rotate_pattern): New function.
2298 2013-05-16 Jason Merrill <jason@redhat.com>
2300 * Makefile.in (LLINKER): New variable.
2301 (mostlyclean): Remove link mutex.
2302 * configure.ac: Handle --enable-link-mutex.
2303 * lock-and-run.sh: New script.
2305 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2308 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
2311 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2313 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
2315 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
2317 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
2318 * config/arm/arm.c (next_consecutive_mem): New function.
2319 (gen_movmem_ldrd_strd): Likewise.
2320 * config/arm/arm.md (movmemqi): Update condition and code.
2321 (unaligned_loaddi, unaligned_storedi): New patterns.
2323 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2325 * config.gcc: Obsolete *-*-solaris2.9*.
2326 * doc/install.texi (Specific, *-*-solaris2*): Document it.
2328 2013-05-16 Richard Biener <rguenther@suse.de>
2330 * passes.c (init_optimization_passes): Move pass_parallelize_loops
2331 earlier, after GRAPHITE transforms and IV canonicalization.
2333 2013-05-16 Jakub Jelinek <jakub@redhat.com>
2335 * omp-low.c (extract_omp_for_data): For collapsed loops,
2336 if at least one of the loops is known at compile time to
2337 iterate zero times, set count to 0.
2338 (expand_omp_regimplify_p): New function.
2339 (expand_omp_for_generic): For collapsed loops, if at least
2340 one of the loops isn't known to iterate at least once,
2341 add runtime check with setting count to 0.
2342 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
2343 For unsigned types if it isn't known at compile time that
2344 the loop will iterate at least once, add runtime check to bypass
2345 the whole loop if initial condition isn't true.
2347 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
2349 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
2351 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
2354 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
2355 transformations to avoid an infinite loop.
2357 2013-05-16 Marek Polacek <polacek@redhat.com>
2359 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
2361 2013-05-15 Leif Ekblad <leif@rdos.net>
2363 * config/i386/i386.c (ix86_decompose_address): Use
2364 DEFAULT_TLS_SEG_REG to access TLS segment register.
2365 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
2366 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
2367 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
2369 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
2372 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
2373 sibling calls to functions that would normally be lazily bound,
2374 unless $gp is call-clobbered.
2376 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
2378 * config/i386/i386.c (ix86_option_override_internal): Update
2379 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
2380 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
2381 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
2382 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
2384 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
2386 2013-05-15 Andreas Schwab <schwab@suse.de>
2388 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
2389 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
2392 2013-05-15 Teresa Johnson <tejohnson@google.com>
2394 * loop-unroll.c (report_unroll_peel): Check decision before
2395 emitting unroll/peel message.
2397 2013-05-15 Teresa Johnson <tejohnson@google.com>
2399 * function.h (has_bb_partition): New rtl_data flag.
2400 (bb_reorder_complete): Ditto.
2401 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
2402 instead of flag_reorder_blocks_and_partition.
2403 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
2404 with some enhancements.
2405 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
2406 * bb-reorder.c (connect_traces): Check for has_bb_partition
2407 instead of flag_reorder_blocks_and_partition.
2408 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
2409 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
2410 verify_hot_cold_block_grouping.
2411 (partition_hot_cold_basic_blocks): Set has_bb_partition.
2413 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2416 * config/arm/predicates.md (call_insn_operand): New predicate.
2417 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
2418 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
2419 if insn is not a tail call.
2420 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
2422 * config/arm/arm.h (enum reg_class): New caller save register class.
2423 (REG_CLASS_NAMES): Likewise.
2424 (REG_CLASS_CONTENTS): Likewise.
2425 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
2428 2013-05-15 Richard Biener <rguenther@suse.de>
2430 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
2431 of MSG_OPTIMIZED_LOCATIONS.
2432 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
2433 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
2435 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
2436 of MSG_OPTIMIZED_LOCATIONS.
2437 (execute_vect_slp): Likewise.
2438 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
2439 (vect_create_cond_for_alias_checks): Likewise.
2440 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
2441 (vect_recog_widen_mult_pattern): Likewise.
2442 (vect_recog_widen_sum_pattern): Likewise.
2443 (vect_recog_over_widening_pattern): Likewise.
2444 (vect_recog_widen_shift_pattern): Likewise.
2445 (vect_recog_vector_vector_shift_pattern): Likewise.
2446 (vect_recog_divmod_pattern): Likewise.
2447 (vect_recog_mixed_size_cond_pattern): Likewise.
2448 (vect_recog_bool_pattern): Likewise.
2449 (vect_pattern_recog_1): Likewise.
2451 2013-05-15 Martin Jambor <mjambor@suse.cz>
2453 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
2454 non-functions to builtin_unreachable.
2455 * ipa-inline-transform.c (inline_call): Do not assert estimates were
2456 correct when new direct edges were discovered.
2458 2013-05-15 Martin Jambor <mjambor@suse.cz>
2460 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
2461 header, print symbol order instead of node uid, print more information
2462 about indirect edge targets.
2463 (ipa_make_edge_direct_to_target): Print symbol order instead of node
2465 (ipa_make_edge_direct_to_target): Likewise.
2466 (remove_described_reference): Likewise.
2467 (propagate_controlled_uses): Likewise.
2468 (ipa_print_node_params): Also print symbol order.
2469 (ipcp_transform_function): Print symbol order instead of node uids.
2470 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
2471 (cgraph_get_create_real_symbol_node): Likewise.
2472 * ipa-cp.c (print_lattice): Likewise.
2473 (print_all_lattices): Likewise.
2474 (determine_versionability): Likewise.
2475 (initialize_node_lattices): Likewise.
2476 (estimate_local_effects): Likewise.
2477 (update_profiling_info): Likewise.
2478 (create_specialized_node): Likewise.
2479 (perhaps_add_new_callers): Likewise.
2480 (decide_about_value): Likewise.
2481 (decide_whether_version_node): Likewise.
2482 (identify_dead_nodes): Likewise.
2483 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
2484 (dump_inline_summary): Likewise.
2485 (estimate_node_size_and_time): Likewise.
2486 (inline_analyze_function): Likewise.
2487 * ipa-inline.c (report_inline_failed_reason): Likewise.
2488 (want_early_inline_function_p): Likewise.
2489 (edge_badness): Likewise.
2490 (update_edge_key): Likewise.
2491 (inline_small_functions): Likewise. Add dumping of order to two other
2493 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
2494 instead of node uids.
2495 (propagate_pure_const): Likewise.
2496 (propagate_pure_const): Likewise.
2497 * ipa-utils.c (dump_cgraph_node_set): Likewise.
2498 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
2499 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
2501 * tree-pretty-print.c (dump_function_header): Likewise.
2502 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
2503 Print symbol order instead of node uids.
2505 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2507 * config/s390/s390.c (s390_register_move_cost): Don't impose the
2508 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
2510 2013-05-15 Richard Biener <rguenther@suse.de>
2512 PR tree-optimization/57275
2513 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
2514 return value for fail to do runtime alias checks for gather loads.
2516 2013-05-15 Jan Hubicka <jh@suse.cz>
2520 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
2521 weakrefs are not external.
2522 (lto_symtab_merge_decls): Fix thinko when dealing with
2523 non-lto_symtab decls.
2524 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
2525 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
2526 * varpool.c (dump_varpool_node): Dump more flags.
2528 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2530 * config/i386/i386.c (processor_alias_table): Add instruction
2531 FSGSBASE for AMD bdver3 architecture.
2533 2013-05-14 Jakub Jelinek <jakub@redhat.com>
2535 * tree.c (warn_deprecated_use): Print file:line using locus color.
2536 * diagnostic.c (diagnostic_report_current_module): Print file:line
2537 and file:line:column using locus color.
2539 2013-05-14 Mike Stump <mikestump@comcast.net>
2541 * gdbinit.in: Add __null.
2543 2013-05-14 Mike Stump <mikestump@comcast.net>
2545 * recog.h: Rename struct recog_data to Recog_data.
2546 * recog.c: Likewise.
2547 * reload.c (can_reload_into): Likewise.
2548 * config/picochip/picochip.c: Likewise.
2550 2013-05-14 Mike Stump <mikestump@comcast.net>
2552 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
2554 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
2556 * resource.h (struct resources): Remove unch_memory member.
2557 (CLEAR_RESOURCE): Don't clear unch_memory.
2558 * resource.c (mark_referenced_resources): Don't set it.
2559 (mark_set_resources): Likewise.
2560 (mark_target_live_regs): Don't clear it.
2561 (init_resource_info): Likewise.
2562 * reorg.c (resource_conflicts_p): Don't compare it.
2563 (redundant_insn): Don't set it.
2565 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
2567 * emit-rtl.c (next_label): Remove unused function.
2568 (skip_consecutive_labels, link_cc0_insns): Move to ...
2569 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
2570 only place where these functions are used, and make them static.
2572 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
2574 * fold-const.c (fold_negate_expr): Handle vectors.
2575 (fold_truth_not_expr): Make it static.
2576 (fold_invert_truthvalue): New static function.
2577 (invert_truthvalue_loc): Handle vectors. Do not call
2578 fold_truth_not_expr directly.
2579 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
2580 <TRUTH_NOT_EXPR>: Do not cast to boolean.
2581 (fold_comparison): Handle vector constants.
2582 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
2583 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
2584 * tree.h (fold_truth_not_expr): Remove declaration.
2586 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
2588 * config/aarch64/aarch64-simd.md
2589 (aarch64_vcond_internal<mode>): Rename to...
2590 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
2591 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
2592 float modes. Clarify all iterator modes.
2593 (vcond<mode><mode>): Use new name for vcond expanders.
2594 (vcond<v_cmp_result><mode>): Likewise.
2595 (vcondu<mode><mode>: Likewise.
2596 * config/aarch64/iterators.md (VDQF_COND): New.
2598 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
2601 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
2602 variable for the shift amount. Check that we shift by non-negative
2605 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
2608 * config/arm/arm.h (EPILOGUE_USES): Only return true
2609 for LR_REGNUM after epilogue_completed.
2611 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
2613 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
2616 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2619 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
2620 and Solaris 11+/x86 with gld.
2621 * configure: Regenerate.
2623 2013-05-14 Jakub Jelinek <jakub@redhat.com>
2625 * expmed.c (expand_shift_1): Canonicalize rotates by
2626 constant bitsize / 2 to bitsize - 1.
2627 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
2628 case ROTATERT>: Likewise.
2631 2013-05-10 Jakub Jelinek <jakub@redhat.com>
2633 * config/i386/i386.md (rotateinv): New code attr.
2634 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
2635 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
2636 roll $31, %eax, etc.
2638 2013-05-14 Richard Biener <rguenther@suse.de>
2641 * tree-eh.c (sink_clobbers): Give up for successors with
2642 multiple predecessors and no virtual uses.
2644 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
2646 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
2647 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
2649 2013-05-14 Jakub Jelinek <jakub@redhat.com>
2652 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
2653 the case when both op0 and op1 have VOIDmode.
2655 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2657 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
2658 in multiply-accumulate mode.
2660 2013-05-13 Guozhi Wei <carrot@google.com>
2662 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
2664 2013-05-13 Kai Tietz <ktietz@redhat.com>
2667 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
2668 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
2669 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
2670 * config/i386/i386.c (ix86_option_override_internal): Likewise.
2671 (ix86_expand_prologue): Likewise.
2672 (ix86_expand_split_stack_prologue): Likewise.
2673 (legitimate_pic_address_disp_p): Likewise.
2674 (legitimize_pic_address): Likewise.
2675 (legitimize_tls_address): Likewise.
2676 (legitimize_pe_coff_symbol): Likewise.
2677 (output_pic_addr_const): Likewise.
2678 (construct_plt_address): Likewise.
2679 (ix86_expand_call): Likewise.
2680 (x86_output_mi_thunk): Likewise.
2681 (x86_function_profiler): Likewise.
2683 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
2685 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
2686 similar switch cases.
2687 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
2688 (aarch64_simd_mov_to_<mode>low): Delete.
2689 (aarch64_simd_mov_to_<mode>high): Delete.
2690 (move_lo_quad_<mode>): Add w<-r alternative.
2691 (aarch64_simd_move_hi_quad_<mode>): Likewise.
2692 (aarch64_simd_mov_from_*): Update type attribute.
2693 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
2696 2013-05-13 Jan Hubicka <jh@suse.cz>
2698 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
2699 * config/i386/i386.c (ix86_compute_frame_layout,
2700 ix86_expand_epilogue, emit_i387_cw_initialization,
2701 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
2702 ix86_local_alignment): Fix use of size/speed predicates.
2704 2013-05-13 Jakub Jelinek <jakub@redhat.com>
2706 PR tree-optimization/45216
2707 PR tree-optimization/57157
2708 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
2709 the (-Y) & (B - 1) variant if OP is |.
2710 * expmed.c (expand_shift_1): For rotations by const0_rtx just
2711 return shifted. Use (-op1) & (prec - 1) as other_amount
2712 instead of prec - op1.
2714 2013-05-13 Martin Jambor <mjambor@suse.cz>
2717 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
2718 (ipa_constant_data): New type.
2719 (ipa_jump_func): Use ipa_constant_data to hold information about
2720 constant jump functions.
2721 (ipa_get_jf_constant): Adjust to jump function type changes.
2722 (ipa_get_jf_constant_rdesc): New function.
2723 (ipa_param_descriptor): New field controlled_uses.
2724 (ipa_get_controlled_uses): New function.
2725 (ipa_set_controlled_uses): Likewise.
2726 * ipa-ref.h (ipa_find_reference): Declare.
2727 * ipa-prop.c (ipa_cst_ref_desc): New type.
2728 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
2730 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
2731 New parameter cs. Adjust all callers.
2732 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
2733 (remove_described_reference): New function.
2734 (jfunc_rdesc_usable): Likewise.
2735 (try_make_edge_direct_simple_call): Decrement controlled use count,
2736 attempt to remove reference if it hits zero.
2737 (combine_controlled_uses_counters): New function.
2738 (propagate_controlled_uses): Likewise.
2739 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
2740 (ipa_edge_duplication_hook): Duplicate reference descriptions.
2741 (ipa_print_node_params): Print described use counter.
2742 (ipa_write_jump_function): Adjust to jump function type changes.
2743 (ipa_read_jump_function): New parameter CS, pass it to
2744 ipa_set_jf_constant. Adjust caller.
2745 (ipa_write_node_info): Stream controlled use count
2746 (ipa_read_node_info): Likewise.
2747 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
2749 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
2750 count. Remove cloning-added reference if it reaches zero.
2751 * ipa-ref.c (ipa_find_reference): New function.
2753 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2755 * config/i386/i386.c (processor_target_table): Modified default
2756 alignment values for AMD BD and BT architectures.
2758 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
2760 * tree-vect-generic.c (uniform_vector_p): Move ...
2761 * tree.c (uniform_vector_p): ... here.
2762 * tree.h (uniform_vector_p): Declare it.
2763 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
2766 2013-05-13 Jakub Jelinek <jakub@redhat.com>
2768 PR tree-optimization/57230
2769 * tree-ssa-strlen.c (handle_char_store): Record length for
2770 array store from STRING_CST.
2772 PR tree-optimization/57230
2773 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
2776 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
2778 * config/epiphany/epiphany.c (epiphany_init): Check size of
2779 NUM_MODES_FOR_MODE_SWITCHING.
2780 (epiphany_expand_prologue):
2781 Remove CONFIG_REGNUM initial value handling code.
2782 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
2783 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
2784 (emit_set_fp_mode, epiphany_mode_after): Likewise.
2785 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
2786 Don't return 1 for FP_MODE_NONE.
2787 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
2788 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
2789 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
2790 * config/epiphany/epiphany.md (save_config): New pattern.
2792 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
2794 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
2796 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
2798 * config/i386/i386.md (memory): Handle sseishft1.
2799 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
2800 (*vec_extractv2di_1): Ditto.
2802 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
2804 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
2807 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
2809 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
2810 Add mthumb/march=armv7-a multilib.
2811 Add mthumb/march=armv7-r multilib.
2812 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
2814 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
2816 * config/v850/t-rtems: Add more multilibs.
2818 2013-05-10 Richard Biener <rguenther@suse.de>
2820 PR tree-optimization/57214
2821 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
2822 not propagate from SSA names that occur in abnormal PHI nodes.
2824 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
2826 * stor-layout.c (element_precision): New function.
2827 * machmode.h (element_precision): Declare it.
2828 * tree.c (build_minus_one_cst): New function.
2829 (element_precision): Likewise.
2830 * tree.h (build_minus_one_cst): Declare new function.
2831 (element_precision): Likewise.
2832 * fold-const.c (operand_equal_p): Use element_precision.
2833 (fold_binary_loc): Handle vector types.
2834 * convert.c (convert_to_integer): Use element_precision.
2835 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
2838 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
2840 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
2841 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
2842 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
2843 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
2844 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
2845 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
2846 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
2847 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
2848 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
2849 (Uuw8): New constraints.
2850 (Usb4): Move into alphabetical order.
2851 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
2852 (sd8_operand, ub8_operand, uw8_operand): New predicates.
2853 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
2854 previously unnamed patterns.
2855 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
2856 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
2857 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
2858 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
2859 of set_attr_alternative/if_then_else. Use extended_mips16 instead
2860 of specific lengths.
2862 2013-05-10 Jakub Jelinek <jakub@redhat.com>
2864 * config/i386/i386.md (rotateinv): New code attr.
2865 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
2866 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
2867 roll $31, %eax, etc.
2869 PR tree-optimization/45216
2870 PR tree-optimization/57157
2871 * tree-ssa-forwprop.c (simplify_rotate): New function.
2872 (ssa_forward_propagate_and_combine): Call it.
2874 2013-05-10 Richard Biener <rguenther@suse.de>
2876 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
2877 disable peeling when we version for aliasing.
2878 (vector_alignment_reachable_p): Honor explicit user alignment.
2879 (vect_supportable_dr_alignment): Likewise.
2880 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
2881 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
2882 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
2883 then peeling to arrange for the cost-model check to come first.
2885 2013-05-10 Alan Modra <amodra@gmail.com>
2887 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
2888 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
2889 * configure: Regenerate.
2891 2013-05-10 Alan Modra <amodra@gmail.com>
2894 * varasm.c (default_elf_select_section): Move !DECL_P check..
2895 (get_named_section): ..to here before calling get_section_name.
2897 (default_section_type_flags): Add DECL_P check.
2898 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
2899 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
2901 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
2903 * config/epiphany/epiphany.c (epiphany_expand_prologue):
2904 When using gen_stack_adjust_str with a register offset, add a
2905 REG_FRAME_RELATED_EXPR note.
2907 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
2909 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
2910 (*vec_extractv4si_zext_mem): Ditto.
2911 (*vec_extractv2di): Add 0->x and x->x alternatives.
2912 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
2913 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
2915 2013-05-09 Jason Merrill <jason@redhat.com>
2917 N3639 C++1y VLA support
2918 * gimplify.c (gimplify_vla_decl): Don't touch an existing
2921 * tree.c (build_constructor_va): New.
2922 * tree.h: Declare it.
2924 2013-05-09 Martin Jambor <mjambor@suse.cz>
2927 * gimple-fold.c (canonicalize_constructor_val): Call
2928 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
2930 2013-05-09 Jan Hubicka <jh@suse.cz>
2931 Richard Biener <rguenther@suse.de>
2934 * symtab.c (symtab_make_decl_local): Do not add private names.
2936 2013-05-09 Jan Hubicka <jh@suse.cz>
2939 * symtab.c (insert_to_assembler_name_hash): Handle clones.
2940 (unlink_from_assembler_name_hash): Likewise.
2941 (symtab_prevail_in_asm_name_hash, symtab_register_node,
2942 symtab_unregister_node, symtab_initialize_asm_name_hash,
2943 change_decl_assembler_name): Update.
2945 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
2947 * config/aarch64/aarch64.md: New movtf split.
2948 (*movtf_aarch64): Update.
2949 (aarch64_movdi_tilow): Handle TF modes and rename to
2950 aarch64_movdi_<mode>low.
2951 (aarch64_movdi_tihigh): Handle TF modes and rename to
2952 aarch64_movdi_<mode>high
2953 (aarch64_movtihigh_di): Handle TF modes and rename to
2954 aarch64_mov<mode>high_di
2955 (aarch64_movtilow_di): Handle TF modes and rename to
2956 aarch64_mov<mode>low_di
2957 (aarch64_movtilow_tilow): Remove spurious whitespace.
2958 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
2960 (aarch64_print_operand): Update.
2962 2013-05-09 Alan Modra <amodra@gmail.com>
2964 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
2966 * configure: Regenerate.
2968 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
2970 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
2971 splitter preparation statements.
2972 * config/i386/sse.md (*vec_extract* splitters): Ditto.
2973 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
2976 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2978 * gimple-ssa-strength-reduction.c (count_candidates): Change
2979 return value to int.
2980 (analyze_candidates_and_replace): Change type of length to int.
2982 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
2984 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
2985 (*vec_extract<mode>): Use VI12_128 mode iterator.
2986 (*vec_extract<mode>_mem): Ditto.
2987 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
2990 2013-05-08 Diego Novillo <dnovillo@google.com>
2995 2012-08-17 Diego Novillo <dnovillo@google.com>
2998 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
2999 * config.in: Regenerate.
3000 * configure: Regenerate.
3001 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
3003 2013-05-08 Jan Hubicka <jh@suse.cz>
3006 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
3007 * cgraph.h (symtab_node_base): Add unique_name.
3008 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
3009 input_overwrite_node, input_varpool_node): Stream unique_name.
3010 * cgraphclones.c (cgraph_create_virtual_clone,
3011 cgraph_function_versioning): Set unique_name.
3012 * ipa.c (function_and_variable_visibility): Set unique_name.
3014 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3016 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
3017 (alloc_cand_and_find_basis): Restrict conditional candidate
3018 processing to CAND_MULTs.
3020 2013-05-08 Jan Hubicka <jh@suse.cz>
3023 lto-symtab.c (lto_symtab_symbol_p): New function.
3024 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
3025 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
3026 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
3027 Skip static symbols.
3029 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
3031 PR tree-optimization/57200
3032 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
3033 Only call inform if the preceding warning_at returns true.
3035 2013-05-07 Han Shen <shenhan@google.com>
3037 * cfgexpand.c (record_or_union_type_has_array_p): New function.
3038 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
3039 * common.opt (fstack-protector-strong): New option.
3040 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
3041 * doc/invoke.texi (Optimization Options): Document
3042 "-fstack-protector-strong".
3043 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
3045 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
3047 * config/mips/mips.c (mips_machine_reorg2): Return 0.
3049 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
3051 * ira.c (update_equiv_regs): Add insn having equiv memory even if
3052 it is not lhs of the insn.
3053 (setup_reg_equiv): Remove insn having equiv memory which it is not
3055 * lra-constraints.c (process_address): Try to improve generation
3056 code for address base + disp.
3057 (lra_constraints): Make correct the code for checking insn setting
3058 up backward equivalence. Remove insn only if it is in the init
3060 * lra-eliminations.c (update_reg_eliminate): Change return value.
3061 (lra_eliminate): Use the result.
3063 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
3065 * config/i386/sse.md (ssescalarnummask): New mode attribute.
3066 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
3067 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
3068 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
3069 register target operands.
3070 (*vec_extractv8hi_sse2): New pattern.
3071 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
3072 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
3073 (*vec_extract<mode>_mem): New insn and split pattern.
3075 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
3077 * config/arm/arm.c (arm_asan_shadow_offset): New function.
3078 (TARGET_ASAN_SHADOW_OFFSET): Define.
3079 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
3080 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
3082 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3084 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
3085 (incr_vec_index): Return -1 if increment not found.
3086 (create_add_on_incoming_edge): Assert if increment not found.
3087 (record_increment): Limit number of increments recorded.
3088 (all_phi_incrs_profitable): Return false if an increment not found.
3089 (replace_profitable_candidates): Don't process increments that were
3091 (analyze_candidates_and_replace): Limit size of incr_vec.
3093 2013-05-07 Richard Biener <rguenther@suse.de>
3095 * calls.c (special_function_p): setjmp-like functions are leaf.
3096 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
3097 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
3099 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
3101 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
3102 (aarch64_simd_mov<mode>): New expander.
3103 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
3104 (aarch64_simd_mov_to_<mode>high): Likewise.
3105 (aarch64_simd_mov_from_<mode>low): Likewise.
3106 (aarch64_simd_mov_from_<mode>high): Likewise.
3107 (aarch64_dup_lane<mode>): Update.
3108 (aarch64_dup_lanedi): New instruction pattern.
3109 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
3110 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
3112 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3114 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
3115 (replace_mult_candidate): Remove unnecessary argument; remove
3116 unnecessary parameter from call to introduce_cast_before_cand.
3117 (replace_unconditional_candidate): Remove unnecessary parameter
3118 from call to replace_mult_candidate.
3119 (replace_conditional_candidate): Likewise.
3120 (insert_initializers): Use make_temp_ssa_name.
3121 (introduce_cast_before_cand): Remove unnecessary argument; use
3123 (replace_one_candidate): Remove unnecessary argument; remove
3124 unnecessary parameter from calls to introduce_cast_before_cand.
3125 (replace_profitable_candidates): Remove unnecessary parameters
3126 from calls to replace_one_candidate.
3128 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3130 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
3131 phi def as possibly hiding a basis for a CAND_ADD whose operands
3132 have been commuted in the analysis.
3133 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
3135 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3137 * config/aarch64/aarch64.md
3138 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
3139 shift value between 0-4.
3141 2013-05-07 Richard Biener <rguenther@suse.de>
3143 * double-int.h (rshift): New overload.
3144 * double-int.c (rshift): New function.
3145 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
3146 (create_reference_ops_from_ref): Remove.
3147 (vn_reference_insert): Use shared ops for constructing the
3148 reference and copy it.
3150 2013-05-07 Richard Biener <rguenther@suse.de>
3153 * tree-eh.c (sink_clobbers): Properly propagate
3154 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
3156 2013-05-07 Jakub Jelinek <jakub@redhat.com>
3158 PR tree-optimization/57149
3159 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
3160 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
3161 collect_phi_def_edges, execute_late_warn_uninitialized): Use
3162 uninit_undefined_value_p instead of ssa_undefined_value_p.
3165 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
3166 for modifier == EXPAND_INITIALIZER.
3168 2013-05-07 Anton Blanchard <anton@samba.org>
3170 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
3171 for powerpc64 little endian.
3172 * configure: Regenerate.
3174 2013-05-06 Graham Stott <grahams@btinternet.com>
3176 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
3177 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
3178 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
3179 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
3181 2013-05-06 Graham Stott <grahams@btinternet.com>
3183 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
3184 codes which allow non-lvalues.
3186 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
3188 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
3189 components are all 1s.
3190 (integer_minus_onep): New function.
3191 * tree.h (integer_minus_onep): Declare it.
3192 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
3193 integer_minus_onep instead of integer_all_onesp.
3195 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
3198 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
3199 variations of these patterns.
3201 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
3203 * config/i386/i386.md (isa): Add x64_sse4 member.
3204 (enabled): Handle x64_sse4.
3205 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
3206 instruction for 64bit SSE4_1 targets. Update insn attributes.
3207 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
3208 instruction for SSE4_1 targets. Update insn attributes.
3209 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
3210 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
3211 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
3213 (*vec_extractv4si): Rename from *sse4_1_pextrd.
3214 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
3215 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
3217 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
3220 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
3222 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
3224 * final.c (do_assembler_dialects): Don't handle curly braces and
3225 vertical bar escaped by % as dialect delimiters.
3226 (output_asm_insn): Print curly braces and vertical bar if escaped
3227 by % and ASSEMBLER_DIALECT defined.
3228 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
3229 * doc/tm.texi: Regenerated.
3231 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
3233 * config/mips/mips.c: Include tree-pass.h.
3234 (mips_reorg): Split in pre- and post-dbr_schedule parts.
3235 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
3236 (pass_mips_machine_reorg2): New machine specific pass.
3237 (insert_pass_mips_machine_reorg2): New pass plugin definition.
3238 (mips_option_override): Register the new pass.
3239 * rtl.h (cleanup_barriers): Remove prototype.
3240 (dbr_schedule): Likewise.
3241 * jump.c (cleanup_barriers): Make static.
3242 * reorg.c (dbr_schedule): Likewise.
3244 2013-05-06 Richard Biener <rguenther@suse.de>
3246 PR tree-optimization/57185
3247 * tree-parloops.c (add_field_for_reduction): Handle anonymous
3250 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
3253 * config/i386/i386.c (add_parameter_dependencies): Add dependence
3254 between "first_arg" and "insn", not "last" and "insn".
3256 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3258 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
3259 (find_candidates_in_block): Re-enable slsr_process_phi.
3260 (create_phi_basis): Fix double counting of candidate adjustment.
3262 2013-05-06 Richard Biener <rguenther@suse.de>
3265 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
3266 the edge is also fallthru, preserve it and just clear the
3268 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
3269 also complex, preserve that and just clear the fallthru flag.
3270 * tree-inline.c (update_ssa_across_abnormal_edges): Also
3271 update virtual operands.
3273 2013-05-06 Alan Modra <amodra@gmail.com>
3275 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
3276 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
3277 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
3278 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
3279 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
3280 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
3282 2013-05-06 Alan Modra <amodra@gmail.com>
3284 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
3285 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
3286 (DEFAULT_ASM_ENDIAN): Define.
3287 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
3288 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
3289 Update -K PIC clause from sysv4.h.
3290 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
3291 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
3293 2013-05-06 Alan Modra <amodra@gmail.com>
3295 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
3296 twice for little-endian.
3297 (ashrdi3_no_power, ashrdi3): Support little-endian.
3299 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
3302 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
3303 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
3305 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
3306 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
3307 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
3310 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
3311 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3313 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
3314 * config/pa/pa.opt: Make mbig-switch a no-op.
3315 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
3316 (CASE_VECTOR_MODE): Always return SImode.
3317 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
3318 for the !TARGET_BIG_SWITCH case.
3319 * config/pa/pa-linux.h: Likewise.
3320 * config/pa/pa-openbsd.h: Likewise.
3321 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
3322 * config/pa/pa.md (short_jump): Remove define_insn.
3323 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
3324 (casesi0): Remove define_insn.
3325 (type): Remove btable_branch.
3326 (pa_combine_type): Likewise.
3327 (in_nullified_branch_delay): Likewise.
3328 (in_call_delay): Likewise.
3329 (define_delay): Likewise.
3330 (define_insn_reservation "Z3"): Likewise.
3331 (define_insn_reservation "Z4"): Likewise.
3332 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
3333 (pa_adjust_insn_length): Remove adjustment for btable branches.
3334 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
3337 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
3339 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
3340 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
3341 Add m->r,x alternatives.
3342 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
3343 splitters using SWI48x mode iterator.
3344 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
3345 TARGET_64BIT. Add m->x alternative.
3346 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
3347 Add o->x alternative. Enable for TARGET_SSE.
3348 (sse_storeq): Remove expander.
3349 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
3350 with memory input operand.
3351 (*vec_extractv2di_1 splitter): New.
3352 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
3353 * config/i386/i386.md (ssevecmodelower): New mode attribute.
3355 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
3357 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
3358 (INT_LOWPART): Delete.
3359 (extract_MB): Adjust.
3360 (extract_ME): Adjust.
3361 (print_operand): Adjust.
3363 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
3365 * config/rs6000/predicates.md (reg_or_add_cint_operand,
3366 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
3367 (reg_or_logical_cint_operand, easy_fp_constant,
3368 logical_const_operand): Delete "CONST_DOUBLE" case.
3369 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
3370 "HOST_BITS_PER_WIDE_INT == 64" test.
3371 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
3372 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
3373 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
3374 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
3376 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
3377 CONST_DOUBLE DImode/VOIDmode case.
3378 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
3379 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
3380 CONST_DOUBLE VOIDmode case.
3381 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
3382 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
3383 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
3384 Delete CONST_DOUBLE case.
3385 (splitters for mov FMOVE64 const_double): Delete
3386 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
3387 "HOST_BITS_PER_WIDE_INT >= 64" test.
3388 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
3390 (mov DI const_double): Delete.
3392 2013-05-04 Jakub Jelinek <jakub@redhat.com>
3394 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
3395 on op shows all bits zero in mode of a lowpart subreg, return zero.
3397 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
3400 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
3401 to save TFmode registers and DImode to save TImode registers for
3402 caller save operations.
3403 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
3404 mark being partially clobbered since they only use the first
3407 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
3408 and TDmode only use the upper 64-bits of each VSX register.
3410 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3412 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
3413 (find_candidates_in_block): Disable slsr_process_phi.
3415 2013-05-03 Guozhi Wei <carrot@google.com>
3417 * coverage.c (coverage_obj_init): Move the construction of gcov
3419 (build_init_ctor): ... here.
3421 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3423 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
3424 (slsr_cand_d): Redefine def_phi.
3425 (stride_status, phi_adjust_status, count_phis_status): New enums.
3426 (find_phi_def): New.
3427 (find_basis_for_base_expr): New.
3428 (find_basis_for_candidate): Handle hidden bases.
3429 (alloc_cand_and_find_basis): Handle phi candidates.
3430 (slsr_process_phi): New.
3431 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
3432 (create_mul_imm_cand): Likewise.
3433 (create_add_ssa_cand): Exclude phi base candidates.
3434 (create_add_imm_cand): Likewise.
3435 (slsr_process_cast): Likewise.
3436 (slsr_process_copy): Likewise.
3437 (find_candidates_in_block): Handle phi candidates.
3438 (dump_candidate): Likewise.
3439 (unconditional_cands): Delete.
3440 (unconditional_cands_with_known_stride_p): Delete.
3441 (phi_dependent_cand_p): New.
3442 (cand_increment): Handle phi-dependent candidates.
3443 (replace_dependent): Delete.
3444 (replace_mult_candidate): New.
3445 (replace_unconditional_candidate): New.
3446 (incr_vec_index): Move to avoid forward reference.
3447 (create_add_on_incoming_edge): New.
3448 (create_phi_basis): New.
3449 (replace_dependents): Delete.
3450 (replace_conditional_candidate): New.
3451 (phi_add_costs): New.
3452 (replace_uncond_cands_and_profitable_phis): New.
3453 (record_increment): Handle phi adjustments.
3454 (record_phi_increments): New.
3455 (record_increments): Handle phi adjustments.
3456 (phi_incr_cost): New.
3457 (lowest_cost_path): Handle phis.
3458 (total_savings): Likewise.
3459 (analyze_increments): Likewise.
3460 (ncd_with_phi): New.
3461 (ncd_of_cand_and_phis): New.
3462 (nearest_common_dominator_for_cands): Handle phi increments.
3463 (all_phi_incrs_profitable): New.
3464 (replace_profitable_candidates): Handle phi-dependent candidates.
3465 (analyze_candidates_and_replace): Likewise.
3467 2013-05-03 Teresa Johnson <tejohnson@google.com>
3470 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
3471 do not exceed REG_BR_PROB_BASE.
3473 2013-05-03 Jeff Law <law@redhat.com>
3475 PR tree-optimization/57144
3476 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
3477 operand of the condition will bit into the new type when eliminating
3478 a cast feeding a condition.
3480 2013-05-03 Jakub Jelinek <jakub@redhat.com>
3482 PR rtl-optimization/57130
3483 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
3484 of COMPARE as in_code to the recursive call if needed.
3486 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
3488 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
3489 (enabled): Handle new members.
3490 * config/i386/sse.md (*vec_concatv2si): Merge from
3491 *vec_concatv2si_sse2 and vec_concatv2si_sse.
3492 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
3494 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
3496 PR tree-optimization/57027
3497 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
3498 for fnms opportunity, check we got the prerequisite kind
3499 of tree / gimple before using accessor functions.
3501 2013-05-03 Richard Biener <rguenther@suse.de>
3503 * double-int.h (lshift): New overload without precision
3505 (operator *=, operator +=, operator -=): Move ...
3506 * double-int.c (operator *=, operator +=, operator -=): ... here
3507 and implement more efficiently.
3508 (mul_double_with_sign): Remove.
3509 (lshift_double): Adjust to take unsinged shift argument, push
3510 dispatching code to callers.
3511 (mul_double_wide_with_sign): Add early out for callers that
3512 are not interested in high parts or overflow.
3513 (lshift): New function.
3514 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
3516 (lrotate, rrotate): Use logical shifts.
3517 * expr.c (get_inner_reference): Use lshift.
3518 * fixed-value.c (do_fixed_divide): Likewise.
3519 * tree-dfa.c (get_ref_base_and_extent): Likewise.
3520 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
3521 (indirect_refs_may_alias_p): Likewise.
3522 (stmt_kills_ref_p_1): Likewise.
3524 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
3526 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
3528 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
3530 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
3531 scalar form of FABD instruction.
3533 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
3535 * lra-constraints.c (process_alt_operands): Add checking alt
3536 number to choose the best alternative.
3538 2013-05-02 Richard Biener <rguenther@suse.de>
3540 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
3541 bitmap and its handling.
3542 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
3544 2013-05-02 Richard Biener <rguenther@suse.de>
3547 * tree-inline.c (copy_loops): Properly handle removed loops.
3548 (copy_cfg_body): Mark destination loops for fixup if source
3551 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
3554 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
3555 generating simple_return for naked functions.
3557 2013-05-02 Martin Jambor <mjambor@suse.cz>
3560 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
3561 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
3563 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
3564 ipa_agg_replacement_value structures.
3565 (known_aggs_to_agg_replacement_list): Likewise.
3566 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
3567 (read_agg_replacement_chain): Likewise.
3568 (ipcp_transform_function): Also check that by_ref flags match.
3570 2013-05-02 Richard Biener <rguenther@suse.de>
3572 * graphds.h (struct graph): Add obstack member.
3573 * graphds.c (new_graph): Initialize obstack and allocate
3575 (add_edge): Allocate edge from the obstack.
3576 (free_graph): Free the obstack instead of all edges and vertices.
3578 2013-05-02 Teresa Johnson <tejohnson@google.com>
3580 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
3582 * cfg.c (update_bb_profile_for_threading): Ditto.
3583 * tree-inline.c (copy_bb): Ditto.
3584 (copy_edges_for_bb): Ditto.
3585 (initialize_cfun): Ditto.
3586 (copy_cfg_body): Ditto.
3587 (expand_call_inline): Ditto.
3588 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
3589 (estimate_node_size_and_time): Ditto.
3590 (inline_merge_summary): Ditto.
3591 * cgraphclones.c (cgraph_clone_edge): Ditto.
3592 (cgraph_clone_node): Ditto.
3593 * sched-rgn.c (compute_dom_prob_ps): Ditto.
3594 (compute_trg_info): Ditto.
3596 2013-05-02 Ian Bolton <ian.bolton@arm.com>
3598 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
3599 S reg when fp attribute set.
3600 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
3602 2013-05-02 Ian Bolton <ian.bolton@arm.com>
3604 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
3606 (*and_one_cmplsi3_compare0_uxtw): Likewise.
3607 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
3608 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
3610 2013-05-02 Richard Biener <rguenther@suse.de>
3612 * tree-scalar-evolution.c (scev_info_hasher): Remove.
3613 (struct instantiate_cache_entry): New type.
3614 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
3615 (struct instantiate_cache_type): New type.
3616 (set_instantiated_value, get_instantiated_value): Remove.
3617 (get_instantiated_value_entry): New function.
3618 (instantiate_scev_name): Use the new cache and adjust.
3619 (instantiate_scev_poly): Adjust.
3620 (instantiate_scev_binary): Likewise.
3621 (instantiate_array_ref): Likewise.
3622 (instantiate_scev_convert): Likewise.
3623 (instantiate_scev_not): Likewise.
3624 (instantiate_scev_3): Likewise.
3625 (instantiate_scev_2): Likewise.
3626 (instantiate_scev_r): Likewise.
3627 (instantiate_scev): Likewise.
3628 (resolve_mixers): Likewise.
3630 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
3633 * lra-constraints.c (best_small_class_operands_num): Remove.
3634 (process_alt_operands): Remove small_class_operands_num. Take
3635 small classes operands into losers and only if the operand is not
3636 matched. Modify debugging output.
3637 (curr_insn_transform): Remove best_small_class_operands_num.
3640 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3642 * config/aarch64/aarch64-builtins.c
3643 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
3644 * config/aarch64/aarch64-simd-builtins.def
3645 (reduc_splus_): Add new modes.
3646 (reduc_uplus_): New.
3647 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
3648 (reduc_uplus_v4sf): Likewise.
3649 (reduc_splus_v4sf): Likewise.
3650 (aarch64_addv<mode>): Likewise.
3651 (reduc_uplus_<mode>): Likewise.
3652 (reduc_splus_<mode>): Likewise.
3653 (aarch64_addvv2di): Likewise.
3654 (reduc_uplus_v2di): Likewise.
3655 (reduc_splus_v2di): Likewise.
3656 (aarch64_addvv2si): Likewise.
3657 (reduc_uplus_v2si): Likewise.
3658 (reduc_splus_v2si): Likewise.
3659 (reduc_<sur>plus_<mode>): New.
3660 (reduc_<sur>plus_v2di): Likewise.
3661 (reduc_<sur>plus_v2si): Likewise.
3662 (reduc_<sur>plus_v4sf): Likewise.
3663 (aarch64_addpv4sf): Likewise.
3664 * config/aarch64/arm_neon.h
3665 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
3666 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
3667 add UNSPEC_SADDV, UNSPEC_UADDV.
3669 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
3671 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3673 * config/aarch64/arm_neon.h
3674 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
3676 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3678 * config/aarch64/aarch64-builtins
3679 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
3681 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3683 * config/aarch64/aarch64-simd-builtins.def
3685 (reduc_smin_): Likewise.
3686 (reduc_umax_): Likewise.
3687 (reduc_umin_): Likewise.
3688 (reduc_smax_nan_): Likewise.
3689 (reduc_smin_nan_): Likewise.
3692 (smax): Update for V2SF, V4SF and V2DF modes.
3695 (smin_nan): Likewise.
3696 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
3697 (<su><maxmin><mode>3): ...This, refactor.
3698 (s<maxmin><mode>3): New.
3699 (<maxmin_uns><mode>3): Likewise.
3700 (reduc_<maxmin_uns>_<mode>): Refactor.
3701 (reduc_<maxmin_uns>_v4sf): Likewise.
3702 (reduc_<maxmin_uns>_v2si): Likewise.
3703 (aarch64_<fmaxmin><mode>: Remove.
3704 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
3706 (vmin<q>_f<32,64>): Likewise.
3707 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
3709 (su): Add mappings for smax, smin, umax, umin.
3711 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
3712 (FMAXMIN): Rename as...
3713 (FMAXMIN_UNS): ...This.
3715 (fmaxminv): Likewise.
3716 (fmaxmin): Likewise.
3718 (maxmin_uns_op): Likewise.
3720 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3722 * config/aarch64/arm_neon.h
3723 (vac<ge, gt><sd>_f<32, 64>): Rename to...
3724 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
3725 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
3727 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3729 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
3730 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
3732 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3734 * config/aarch64/aarch64-simd.md
3735 (vcond<mode>_internal): Handle special cases for constant masks.
3736 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
3737 (vcondu<mode><mode>): Likewise.
3738 (vcond<v_cmp_result><mode>): New.
3740 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3742 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
3743 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
3744 * config/aarch64/aarch64-simd-builtins.def
3745 (cmeq): Update to BUILTIN_VALLDI.
3750 * config/aarch64/arm_neon.h
3751 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
3752 to builtins or C as appropriate.
3754 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3756 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
3758 (cmhi): Rename to...
3760 * config/aarch64/aarch64-simd.md
3761 (simd_mode): Add SF.
3762 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
3763 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
3764 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
3765 (cstore<mode>_neg): ...This.
3766 * config/aarch64/iterators.md
3768 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
3770 (UCOMPARISONS): Likewise.
3771 (optab): Add missing comparisons.
3779 (V_cmp_result): Add DF, SF modes.
3780 (v_cmp_result): Likewise.
3783 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
3785 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
3787 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
3788 define_insn to define_insn_and_split.
3789 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
3790 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
3791 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
3792 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
3793 (thumb2_negscc): Likewise.
3795 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
3797 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
3799 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
3801 * config/arm/thumb2.md: Remove trailing whitespaces.
3803 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3805 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
3806 Use gen_int_mode rather than GEN_INT.
3808 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
3810 * value-prof.c (stream_in_histogram_value): Remove the strayed
3813 2013-04-30 Richard Biener <rguenther@suse.de>
3816 * cfghooks.c (split_edge): Properly check for the loop latch edge.
3818 2013-04-30 Richard Biener <rguenther@suse.de>
3821 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
3823 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
3825 PR rtl-optimization/56957
3826 PR rtl-optimization/57105
3827 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
3828 variable. Use just INSN_UID for determining whether an insn
3829 should be only disconnected from the insn stream.
3830 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
3832 2013-04-30 Jakub Jelinek <jakub@redhat.com>
3834 PR tree-optimization/57104
3835 * tsan.c (instrument_expr): Don't instrument accesses to
3836 DECL_HARD_REGISTER VAR_DECLs.
3838 2013-04-30 Richard Biener <rguenther@suse.de>
3840 * function.h (loops_for_fn): New inline function.
3841 (set_loops_for_fn): Likewise.
3842 * cfgloop.h (place_new_loop): Add struct function parameter.
3843 (get_loop): Likewise.
3844 (get_loops): Likewise.
3845 (number_of_loops): Likewise.
3847 (fel_init): Likewise.
3848 * cfg.c (get_loop_copy): Adjust.
3849 * cfgloop.c (flow_loops_dump): Likewise.
3850 (record_loop_exits): Likewise.
3851 (verify_loop_structure): Likewise.
3852 * cfgloopanal.c (mark_irreducible_loops): Likewise.
3853 (estimate_reg_pressure_cost): Likewise.
3854 (mark_loop_exit_edges): Likewise.
3855 * cfgloopmanip.c (place_new_loop): Likewise.
3856 (add_loop): Likewise.
3857 (duplicate_loop): Likewise.
3858 * graph.c (draw_cfg_nodes): Likewise.
3859 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
3860 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
3861 (extract_affine_chrec): Likewise.
3862 (build_scop_iteration_domain): Likewise.
3863 * graphite.c (graphite_initialize): Likewise.
3864 * ira-build.c (create_loop_tree_nodes): Likewise.
3865 (more_one_region_p): Likewise.
3866 (rebuild_regno_allocno_maps): Likewise.
3867 (mark_loops_for_removal): Likewise.
3868 (mark_all_loops_for_removal): Likewise.
3869 (remove_unnecessary_regions): Likewise.
3870 (ira_build): Likewise.
3871 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
3872 * loop-init.c (fix_loop_structure): Likewise.
3873 (gate_rtl_move_loop_invariants): Likewise.
3874 (gate_rtl_unswitch): Likewise.
3875 (gate_rtl_unroll_and_peel_loops): Likewise.
3876 (rtl_doloop): Likewise.
3877 * lto-streamer-in.c (input_cfg): Likewise.
3878 * lto-streamer-out.c (output_cfg): Likewise.
3879 * modulo-sched.c (sms_schedule): Likewise.
3880 * predict.c (tree_estimate_probability): Likewise.
3881 (tree_estimate_probability_driver): Likewise.
3882 (estimate_loops): Likewise.
3883 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
3884 (move_sese_region_to_fn): Likewise.
3885 (debug_loop_num): Likewise.
3886 * tree-chrec.c (chrec_evaluate): Likewise.
3887 (hide_evolution_in_other_loops_than_loop): Likewise.
3888 (chrec_component_in_loop_num): Likewise.
3889 (reset_evolution_in_loop): Likewise.
3890 (evolution_function_is_invariant_rec_p): Likewise.
3891 * tree-if-conv.c (main_tree_if_conversion): Likewise.
3892 * tree-inline.c (copy_loops): Likewise.
3893 (copy_cfg_body): Likewise.
3894 (tree_function_versioning): Likewise.
3895 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
3896 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
3898 (add_to_evolution_1): Likewise.
3899 (scev_const_prop): Likewise.
3900 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
3901 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
3902 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
3903 (tree_ssa_lim_initialize): Likewise.
3904 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
3905 (verify_loop_closed_ssa): Likewise.
3906 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
3907 (tree_ssa_loop_im): Likewise.
3908 (tree_ssa_loop_unswitch): Likewise.
3909 (tree_vectorize): Likewise.
3910 (check_data_deps): Likewise.
3911 (tree_ssa_loop_ivcanon): Likewise.
3912 (tree_ssa_loop_bounds): Likewise.
3913 (tree_complete_unroll): Likewise.
3914 (tree_complete_unroll_inner): Likewise.
3915 (tree_parallelize_loops): Likewise.
3916 (tree_ssa_loop_prefetch): Likewise.
3917 (tree_ssa_loop_ivopts): Likewise.
3918 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
3919 * tree-vectorizer.c (vectorize_loops): Likewise.
3921 2013-04-29 Mike Frysinger <vapier@gentoo.org>
3923 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
3924 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
3925 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
3926 with EABI_LINK_SPEC.
3928 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
3931 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
3934 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
3937 * lra-constraints.c (process_alt_operands): Discourage a bit more
3938 using memory for pseudos. Print cost dump for alternatives.
3939 Modify cost values for conflicts with early clobbers.
3940 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
3942 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
3945 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
3947 2013-04-29 Ian Bolton <ian.bolton@arm.com>
3949 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
3951 (movdi_aarch64): Support LDR/STR from/to D register.
3953 2013-04-29 Ian Bolton <ian.bolton@arm.com>
3955 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
3956 or higher by default.
3958 2013-04-29 Richard Biener <rguenther@suse.de>
3961 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
3962 even if not adding abnormal edges for calls that can make
3965 2013-04-29 Richard Biener <rguenther@suse.de>
3968 * tree-cfg.c (move_stmt_op): Fix condition under which to update
3970 (move_stmt_r): Remove redundant checking.
3972 2013-04-29 Teresa Johnson <tejohnson@google.com>
3975 * basic-block.h (apply_scale): New function.
3976 (apply_probability): Use apply_scale.
3977 * gimple-streamer-in.c (input_bb): Ditto.
3978 * lto-streamer-in.c (input_cfg): Ditto.
3979 * lto-cgraph.c (merge_profile_summaries): Ditto.
3980 * tree-optimize.c (execute_fixup_cfg): Ditto.
3981 * tree-inline.c (copy_bb): Update comment to use apply_scale.
3982 (copy_edges_for_bb): Ditto.
3983 (copy_cfg_body): Ditto.
3985 2013-04-29 Tom de Vries <tom@codesourcery.com>
3987 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
3988 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
3989 (tail_merge_optimize): Handle current_loops == NULL.
3991 2013-04-26 Jeff Law <law@redhat.com>
3993 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
3994 (simplify_cond_using_ranges): Generalize code to simplify
3995 COND_EXPRs where one argument is a constant and the other
3996 is an SSA_NAME created by an integral type conversion.
3998 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4000 * config/arm/arm.md (store_minmaxsi): Use only when
4001 optimize_insn_for_size_p.
4003 2013-04-29 Christian Bruel <christian.bruel@st.com>
4006 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
4008 2013-04-29 Richard Biener <rguenther@suse.de>
4011 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
4012 loop tree make sure to schedule a fixup for the child as well.
4013 (expand_omp_for_generic): Properly add loops.
4014 (expand_omp_for_static_nochunk): Likewise.
4015 (expand_omp_for_static_chunk): Likewise.
4016 (expand_omp_for): For the degenerate case fixup loops.
4017 (expand_omp_sections): Fix default bb placement in loops.
4018 (expand_omp_atomic_pipeline): Properly add loops.
4020 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4022 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
4024 2013-04-29 Tom de Vries <tom@codesourcery.com>
4026 * tree-ssa-tail-merge.c: Update header comment.
4028 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4030 * config/aarch64/arm_neon.h
4031 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
4032 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
4033 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
4034 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
4035 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
4036 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
4037 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
4038 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
4040 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4042 * config/aarch64/aarch64-simd.md
4043 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
4044 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
4045 fix_trunc, fixuns_trunc.
4046 (ftrunc<VDQF:mode>2): New.
4047 * config/aarch64/iterators.md (optab): Add fix, fixuns.
4048 (fix_trunc_optab): New.
4050 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4052 * config/aarch64/aarch64-builtins.c
4053 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
4054 iceilf, lround, iroundf.
4056 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
4059 * config/i386/i386.h (enum ix86_tune_indices)
4060 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
4061 New, split from X86_TUNE_INTER_UNIT_MOVES.
4062 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
4063 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
4064 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
4065 (TARGET_INTER_UNIT_MOVES): Remove.
4066 * config/i386/i386.c (initial_ix86_tune_features): Update.
4067 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
4068 (ix86_expand_convert_uns_didf_sse): Use
4069 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
4070 (ix86_expand_vector_init_one_nonzero): Ditto.
4071 (ix86_expand_vector_init_interleave): Ditto.
4072 (inline_secondary_memory_needed): Return true for moves from SSE class
4073 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
4074 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
4075 * config/i386/constraints.md (Yi, Ym): Depend on
4076 TARGET_INTER_UNIT_MOVES_TO_VEC.
4077 (Yj, Yn): New constraints.
4078 * config/i386/i386.md (*movdi_internal): Change constraints of
4079 operand 1 from Yi to Yj and from Ym to Yn.
4080 (*movsi_internal): Ditto.
4081 (*movdf_internal): Ditto.
4082 (*movsf_internal): Ditto.
4083 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
4084 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
4085 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
4086 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
4087 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
4088 * config/i386/sse.md (movdi_to_sse): Ditto.
4089 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
4090 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
4091 TARGET_INTER_UNIT_MOVES.
4092 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
4093 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
4094 instead of TARGET_INTER_UNIT_MOVES.
4095 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
4096 operand 1 from Yi to Yj and from Ym to Yn.
4098 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4100 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
4101 (float_truncate_hi_): Likewise.
4102 (float_extend_lo_): Likewise.
4103 (float_truncate_lo_): Likewise.
4104 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
4105 (aarch64_float_extend_lo_v2df): Likewise.
4106 (vec_unpacks_hi_v4sf): Likewise.
4107 (aarch64_float_truncate_lo_v2sf): Likewise.
4108 (aarch64_float_truncate_hi_v4sf): Likewise.
4109 (vec_pack_trunc_v2df): Likewise.
4110 (vec_pack_trunc_df): Likewise.
4112 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4114 * config/aarch64/aarch64-builtins.c
4115 (aarch64_fold_builtin): Fold float conversions.
4116 * config/aarch64/aarch64-simd-builtins.def
4117 (floatv2si, floatv4si, floatv2di): New.
4118 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
4119 * config/aarch64/aarch64-simd.md
4120 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
4121 * config/aarch64/iterators.md (FLOATUORS): New.
4122 (optab): Add float, floatuns.
4123 (su_optab): Likewise.
4125 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4127 * config/aarch64/aarch64-builtins.c
4128 (aarch64_builtin_vectorized_function): Use new names for
4130 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
4131 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
4132 (fcvtzu): Split as...
4133 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
4134 (fcvtas): Split as...
4135 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
4136 (fcvtau): Split as...
4137 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
4138 (fcvtps): Split as...
4139 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
4140 (fcvtpu): Split as...
4141 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
4142 (fcvtms): Split as...
4143 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
4144 (fcvtmu): Split as...
4145 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
4146 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
4147 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
4148 (lfrintnusf, lfrintnudf): Likewise.
4149 * config/aarch64/aarch64-simd.md
4150 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
4152 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
4153 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
4154 (fcvt_pattern): Likewise.
4156 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4158 * config/aarch64/aarch64-simd.md
4159 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
4160 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
4162 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4164 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
4165 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
4166 (vrnd<a,m,n,p>_f32): Implement using builtins.
4167 (vrnd<i,x><q>_f<32, 64>): New.
4169 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4171 * config/aarch64/aarch64-builtins.c
4172 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
4173 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
4174 (frintz): Rename to...
4176 (frintp): Rename to...
4178 (frintm): Rename to...
4180 (frinti): Rename to...
4181 (nearbyint): ...this.
4182 (frintx): Rename to...
4184 (frinta): Rename to...
4186 * config/aarch64/aarch64-simd.md
4187 (aarch64_frint<frint_suffix><mode>): Delete.
4188 (<frint_pattern><mode>2): Convert to insn.
4189 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
4190 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
4191 (frint_pattern): Likewise.
4192 (frint_suffix): Likewise.
4194 2013-04-29 Richard Biener <rguenther@suse.de>
4196 PR tree-optimization/57081
4197 * loop-init.c: Include tree-flow.h.
4198 (loop_optimizer_finalize): Free number of iteration estimates.
4199 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
4201 2013-04-29 Jakub Jelinek <jakub@redhat.com>
4203 PR tree-optimization/57083
4204 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
4205 non-singleton shift count range, zero extend low_bound for uns case.
4207 * config/i386/predicates.md (general_vector_operand): New predicate.
4208 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
4209 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
4210 if they aren't nonimmediate operands. If their original values
4211 satisfy const_vector_equal_evenodd_p, don't shift them.
4212 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
4213 predicates. For the SSE4.1 case force operands[{1,2}] into registers
4214 if not nonimmediate_operand.
4215 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
4216 instead of register_operand.
4217 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
4219 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
4221 * stor-layout.c (finalize_size_functions): Allocate a structure and
4222 reset cfun before dumping the functions.
4224 2013-04-27 Jakub Jelinek <jakub@redhat.com>
4226 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
4229 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
4230 use xop_pmacsdqh if uns_p.
4231 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
4232 the immediate rotate count.
4234 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
4236 * rtl.h (struct rtx_def): Add comment for field jump.
4237 (LRA_SUBREG_P): New macro.
4238 * recog.c (register_operand): Check LRA_SUBREG_P.
4239 * lra.c (lra): Add note at the end of RTL code. Align non-empty
4241 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
4242 (lra_final_code_change): Skip subreg change for operators.
4243 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
4244 if there are no operand changes.
4245 * lra-constraints.c (curr_insn_set): New.
4246 (match_reload): Set LRA_SUBREG_P.
4247 (emit_spill_move): Ditto.
4248 (check_and_process_move): Use curr_insn_set. Process only single
4249 set insns. Don't initialize sec_mem_p and change_p.
4250 (simplify_operand_subreg): Use LRA_SUBREG_P.
4251 (reg_in_class_p): New function.
4252 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
4253 of #ifdef. Add code to remove cycling.
4254 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
4255 non-null disp. Reload inner instead of disp when base and index
4256 are null. Try to put lo_sum into register.
4257 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
4258 (check_and_process_move): Move code for move cost check to
4259 simple_move_p. Remove equiv_substitution.
4260 (simple_move_p): New function.
4261 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
4262 curr_insn_set. Call check_and_process_move only for single set
4263 insns. Use the new function. Move call of check_and_process_move
4264 after operand equiv substitution and address process.
4266 2013-04-26 Jakub Jelinek <jakub@redhat.com>
4269 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
4270 with nonlocal goto receivers or returns twice calls, ignore
4271 unininitialized values from abnormal edges to nl goto receiver
4272 or returns twice call.
4274 2013-04-26 Jakub Jelinek <jakub@redhat.com>
4276 PR tree-optimization/57051
4277 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
4278 and VEC_RSHIFT_EXPR if shift count is a multiple of element
4281 2013-04-26 Richard Biener <rguenther@suse.de>
4283 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
4284 (expand_omp_taskreg): Likewise. Mark loops for fixup.
4285 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
4286 (fixup_loop_arrays_after_move): New function.
4287 (move_sese_region_to_fn): Properly outline the loop tree parts
4290 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
4292 * config/i386/i386.md (type, unit): Fix long lines.
4294 2013-04-26 Richard Biener <rguenther@suse.de>
4296 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
4297 (lto-streamer-out.o): Likewise.
4298 * cfgloop.c (init_loops_structure): Export, add struct function
4299 argument and adjust.
4300 (flow_loops_find): Adjust.
4301 * cfgloop.h (enum loop_estimation): Add EST_LAST.
4302 (init_loops_structure): Declare.
4303 * lto-streamer-in.c: Include cfgloop.h.
4304 (input_cfg): Input the loop tree.
4305 * lto-streamer-out.c: Include cfgloop.h.
4306 (output_cfg): Output the loop tree.
4307 (output_struct_function_base): Do not drop PROP_loops.
4309 2013-03-26 Richard Biener <rguenther@suse.de>
4311 * tree-cfg.c (execute_build_cfg): Build the loop tree.
4312 (pass_build_cfg): Provide PROP_loops.
4313 (move_sese_region_to_fn): Remove loops that are outlined into fn
4315 * tree-inline.c: Include cfgloop.h.
4316 (initialize_cfun): Do not drop PROP_loops.
4317 (copy_loops): New function.
4318 (copy_cfg_body): Copy loop structure.
4319 (tree_function_versioning): Initialize destination loop tree.
4320 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
4321 (pass_parallelize_loops): Do IL verification.
4322 * loop-init.c (loop_optimizer_init): Fixup loops if required.
4323 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
4324 the CFG make sure we fixup loops as well.
4325 * tree-ssa-tail-merge.c: Include cfgloop.h.
4326 (replace_block_by): When merging loop latches mark loops for fixup.
4327 * lto-streamer-out.c (output_struct_function_base): Drop
4329 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
4330 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
4331 * ipa-split.c: Include cfgloop.h.
4332 (split_function): Add the new return block to the loop tree root.
4333 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
4334 whether we have removed the forwarder block.
4335 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
4336 * cfgloop.h (place_new_loop): Declare.
4337 * cfgloopmanip.c (place_new_loop): Export.
4338 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
4339 (tree-switch-conversion.o): Likewise.
4340 (tree-complex.o): Likewise.
4341 (tree-inline.o): Likewise.
4342 (tree-ssa-tailmerge.o): Likewise.
4343 (ipa-split.o): Likewise.
4344 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
4345 (tree-ssa-copy.o): Likewise.
4346 * tree-switch-conversion.c: Include cfgloop.h
4347 (process_switch): If we emit a bit-test cascade, schedule loops
4349 * tree-complex.c: Include cfgloop.h.
4350 (expand_complex_div_wide): Properly add new basic-blocks to loops.
4351 * asan.c: Include cfgloop.h.
4352 (create_cond_insert_point): Properly add new basic-blocks to
4353 loops, schedule loop fixup.
4354 * cfgloop.c (verify_loop_structure): Check that looks are not
4356 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
4358 (expand_omp_for_generic): Likewise.
4359 (expand_omp_sections): Likewise.
4360 (expand_omp_atomic_pipeline): Schedule loops for fixup.
4361 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
4362 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
4363 is initialized, not when loops are present.
4364 * tree-parloops.c (parallelize_loops): Remove checking here.
4365 * passes.c (init_optimization_passes): Schedule a copy-propagation
4366 pass before complete unrolling of inner loops.
4368 2013-04-26 Jakub Jelinek <jakub@redhat.com>
4370 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
4371 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
4372 (colorize_init): Add argument to _WIN32 version.
4373 * toplev.c: Include diagnostic-color.h.
4374 (process_options): Default to -fdiagnostics-color=auto if
4375 GCC_COLORS env var is in the environment.
4376 * common.opt (fdiagnostics-color=): Add Var and Init.
4377 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
4378 env var is in the environment, the default is auto rather than never.
4380 * diagnostic.h (file_name_as_prefix): Add context argument.
4381 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
4382 the string as locus.
4383 * langhooks.c (lhd_print_error_function): Adjust caller.
4385 2013-04-25 Lawrence Crowl <crowl@google.com>
4387 * var-tracking.c (shared_hash_def::htab):
4388 Change type to hash_table. Update dependent calls and types.
4390 2013-04-25 Lawrence Crowl <crowl@google.com>
4392 * Makefile.in: Update as needed below.
4394 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
4395 Move declaration to after the type's method definitons.
4397 * attribs.c (htab_t scoped_attributes::attribute_hash):
4398 Change type to hash_table. Update dependent calls and types.
4400 * bitmap.c (htab_t bitmap_desc_hash):
4401 Change type to hash_table. Update dependent calls and types.
4403 * cselib.c (htab_t cselib_hash_table):
4404 Change type to hash_table. Update dependent calls and types.
4406 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
4407 (hash_string_slot_node): Move implementation into lto-streamer.h
4408 struct string_slot_hasher.
4409 (eq_string_slot_node): Likewise.
4411 * data-streamer-out.c: Update output_block::string_hash_table
4412 dependent calls and types.
4414 * dwarf2cfi.c (htab_t trace_index):
4415 Change type to hash_table. Update dependent calls and types.
4417 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
4418 Change type to hash_table. Update dependent calls and types.
4419 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
4420 (htab_t optimize_external_refs::map): Likewise.
4421 (htab_t output_comp_unit::extern_map): Likewise.
4422 (htab_t output_comdat_type_unit::extern_map): Likewise.
4423 (htab_t output_macinfo::macinfo_htab): Likewise.
4424 (htab_t optimize_location_lists::htab): Likewise.
4425 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
4427 * except.c (htab_t ehspec_hash_type):
4428 Change type to hash_table. Update dependent calls and types.
4429 (assign_filter_values::ttypes): Likewise.
4430 (assign_filter_values::ehspec): Likewise.
4431 (sjlj_assign_call_site_values::ar_hash): Likewise.
4432 (convert_to_eh_region_ranges::ar_hash): Likewise.
4434 * gcse.c (htab_t pre_ldst_table):
4435 Change type to hash_table. Update dependent calls and types.
4437 * ggc-common.c (htab_t saving_htab):
4438 Change type to hash_table. Update dependent calls and types.
4439 (htab_t loc_hash): Likewise.
4440 (htab_t ptr_hash): Likewise.
4441 (call_count): Rename ggc_call_count.
4442 (call_alloc): Rename ggc_call_alloc.
4443 (loc_descriptor): Rename make_loc_descriptor.
4444 (add_statistics): Rename ggc_add_statistics.
4446 * ggc-common.c (saving_htab):
4447 Change type to hash_table. Update dependent calls and types.
4449 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
4450 (push_gimplify_context): Likewise.
4451 (pop_gimplify_context): Likewise.
4452 (struct gimple_temp_hash_elt): Added.
4453 (struct gimplify_hasher): Likewise.
4454 (struct gimplify_ctx.temp_htab):
4455 Change type to hash_table. Update dependent calls and types.
4457 * gimple-fold.c: Include gimplify-ctx.h.
4459 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
4460 Change type to hash_table. Update dependent calls and types.
4461 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
4462 avoid potential global name collision.
4464 * gimplify.c: Include gimplify-ctx.h.
4465 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
4466 (htab_t gimplify_ctx::temp_htab):
4467 Update dependent calls and types for new type hash_table.
4468 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
4469 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
4471 * gimplify-ctx.h: New.
4472 (struct gimple_temp_hash_elt): Move from gimplify.c.
4473 (class gimplify_hasher): New.
4474 (struct gimplify_ctx): Move from gimple.h.
4475 (htab_t gimplify_ctx::temp_htab):
4476 Change type to hash_table. Update dependent calls and types.
4478 * graphite-clast-to-gimple.c: Include graphite-htab.h.
4479 (htab_t ivs_params::newivs_index):
4480 Change type to hash_table. Update dependent calls and types.
4481 (htab_t ivs_params::params_index): Likewise.
4482 (htab_t print_generated_program::params_index): Likewise.
4483 (htab_t gloog::newivs_index): Likewise.
4484 (htab_t gloog::params_index): Likewise.
4486 * graphite.c: Include graphite-htab.h.
4487 4htab_t graphite_transform_loops::bb_pbb_mapping):
4488 Change type to hash_table. Update dependent calls and types.
4490 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
4491 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
4492 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
4494 * graphite-dependences.c: Include graphite-htab.h.
4495 (loop_is_parallel_p): Change hash table type of parameter.
4497 * graphite-htab.h: New.
4498 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
4499 (extern find_pbb_via_hash): Move from graphite-poly.h.
4500 (extern loop_is_parallel_p): Move from graphite-poly.h.
4501 (extern get_loop_body_pbbs): Move from graphite-poly.h.
4503 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
4504 (extern loop_is_parallel_p): Move to graphite-htab.h.
4505 (extern get_loop_body_pbbs): Move to graphite-htab.h.
4507 * haifa-sched.c (htab_t delay_htab):
4508 Change type to hash_table. Update dependent calls and types.
4509 (htab_t delay_htab_i2): Likewise.
4511 * ira-color.c (htab_t allocno_hard_regs_htab):
4512 Change type to hash_table. Update dependent calls and types.
4514 * ira-costs.c (htab_t cost_classes_htab):
4515 Change type to hash_table. Update dependent calls and types.
4517 * loop-invariant.c (htab_t merge_identical_invariants::eq):
4518 Change type to hash_table. Update dependent calls and types.
4520 * loop-iv.c (htab_t bivs):
4521 Change type to hash_table. Update dependent calls and types.
4523 * loop-unroll.c (htab_t opt_info::insns_to_split):
4524 Change type to hash_table. Update dependent calls and types.
4525 (htab_t opt_info::insns_with_var_to_expand): Likewise.
4527 * lto-streamer.h (struct string_slot): Move from data-streamer.h
4528 (struct string_slot_hasher): New.
4529 (htab_t output_block::string_hash_table):
4530 Change type to hash_table. Update dependent calls and types.
4532 * lto-streamer-in.c (freeing_string_slot_hasher): New.
4533 (htab_t file_name_hash_table):
4534 Change type to hash_table. Update dependent calls and types.
4536 * lto-streamer-out.c: Update output_block::string_hash_table dependent
4539 * lto-streamer.c (htab_t tree_htab):
4540 Change type to hash_table. Update dependent calls and types.
4542 * omp-low.c: Include gimplify-ctx.h.
4544 * passes.c (htab_t name_to_pass_map):
4545 Change type to hash_table. Update dependent calls and types.
4546 (pass_traverse): Rename to passes_pass_traverse.
4548 * plugin.c (htab_t event_tab):
4549 Change type to hash_table. Update dependent calls and types.
4551 * postreload-gcse.c (htab_t expr_table):
4552 Change type to hash_table. Update dependent calls and types.
4553 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
4555 * sese.c (debug_rename_map_1): Make extern.
4556 (htab_t copy_bb_and_scalar_dependences::rename_map):
4557 Change type to hash_table. Update dependent calls and types.
4559 * sese.h (extern debug_rename_map): Move to .c file.
4561 * store-motion.c (htab_t store_motion_mems_table):
4562 Change type to hash_table. Update dependent calls and types.
4564 * trans-mem.c (htab_t tm_new_mem_hash):
4565 Change type to hash_table. Update dependent calls and types.
4567 * tree-browser.c (htab_t TB_up_ht):
4568 Change type to hash_table. Update dependent calls and types.
4570 * tree-cfg.c (htab_t discriminator_per_locus):
4571 Change type to hash_table. Update dependent calls and types.
4573 * tree-complex.c: Include tree-hasher.h
4574 (htab_t complex_variable_components):
4575 Change type to hash_table. Update dependent calls and types.
4577 * tree-eh.c (htab_t finally_tree):
4578 Change type to hash_table. Update dependent calls and types.
4580 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
4581 struct int_tree_hasher.
4582 (extern int_tree_map_eq): Likewise.
4583 (uid_decl_map_hash): Removed.
4584 (extern decl_tree_map_eq): Likewise.
4586 * tree-hasher.h: New.
4587 (struct int_tree_hasher): New.
4588 (typedef int_tree_htab_type): New.
4590 * tree-inline.c: Include gimplify-ctx.h.
4592 * tree-mudflap.c: Include gimplify-ctx.h.
4594 * tree-parloops.c: Include tree-hasher.h.
4595 (htab_t eliminate_local_variables_stmt::decl_address):
4596 Change type to hash_table. Update dependent calls and types.
4597 (htab_t separate_decls_in_region::decl_copies): Likewise.
4599 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
4600 Change type to hash_table. Update dependent calls and types.
4602 * tree-sra.c (candidates):
4603 Change type to hash_table. Update dependent calls and types.
4605 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
4607 (int_tree_map_hash): Likewise.
4609 * tree-ssa-dom.c (htab_t avail_exprs):
4610 Change type to hash_table. Update dependent calls and types.
4612 * tree-ssa-live.c (var_map_base_init::tree_to_index):
4613 Change type to hash_table. Update dependent calls and types.
4615 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
4616 Change type to hash_table. Update dependent calls and types.
4618 * tree-ssa-phiopt.c (seen_ssa_names):
4619 Change type to hash_table. Update dependent calls and types.
4621 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
4622 Change type to hash_table. Update dependent calls and types.
4624 * tree-ssa-uncprop.c (equiv):
4625 Change type to hash_table. Update dependent calls and types.
4627 2013-04-25 Jakub Jelinek <jakub@redhat.com>
4629 PR rtl-optimization/57003
4630 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
4631 call note_stores with kill_clobbered_value callback again after
4632 killing regs_invalidated_by_call.
4634 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
4636 * config/aarch64/aarch64-simd.md
4637 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
4638 (aarch64_simd_bsl<mode>): Likewise.
4639 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
4641 2013-04-25 Marek Polacek <polacek@redhat.com>
4643 PR tree-optimization/57066
4644 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
4646 2013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
4648 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
4650 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
4652 * config/aarch64/aarch64-builtins.c
4653 (aarch64_fold_builtin): New.
4654 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
4655 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
4656 * config/aarch64/aarch64-simd-builtins.def (abs): New.
4657 * config/aarch64/arm_neon.h
4658 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
4660 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
4661 Tejas Belagod <tejas.belagod@arm.com>
4663 * config/aarch64/aarch64-builtins.c
4664 (aarch64_gimple_fold_builtin): New.
4665 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
4666 * config/aarch64/aarch64-simd-builtins.def (addv): New.
4667 * config/aarch64/aarch64-simd.md (addpv4sf): New.
4669 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
4671 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4673 * config/aarch64/aarch64.md
4674 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
4676 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4678 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
4679 (*ngcsi_uxtw): New pattern.
4681 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4682 Julian Brown <julian@codesourcery.com>
4684 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
4685 (TB_DREG): Add T_V4HF.
4686 (v4hf_UP): New macro.
4687 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
4688 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
4689 Handle initialisation of V4HF. Adjust initialisation of reinterpret
4691 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
4692 (arm_vector_mode_supported_p): Handle V4HF.
4693 (arm_mangle_map): Handle V4HFmode.
4694 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
4695 * config/arm/arm_neon_builtins.def: Add entries for
4696 vcvtv4hfv4sf, vcvtv4sfv4hf.
4697 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
4698 (neon_vcvtv4hfv4sf): Likewise.
4699 * config/arm/neon-gen.ml: Handle half-precision floating point
4701 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
4702 * config/arm/arm_neon.h: Regenerate.
4703 * config/arm/neon.ml (type elts): Add F16.
4704 (type vectype): Add T_float16x4, T_floatHF.
4705 (type vecmode): Add V4HF.
4706 (type features): Add Requires_FP_bit feature.
4707 (elt_width): Handle F16.
4708 (elt_class): Likewise.
4709 (elt_of_class_width): Likewise.
4710 (mode_of_elt): Refactor.
4711 (type_for_elt): Handle F16, fix error messages.
4712 (vectype_size): Handle T_float16x4.
4713 (vcvt_sh): New function.
4714 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
4715 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
4716 (string_of_mode): Handle V4HF.
4717 * doc/arm-neon-intrinsics.texi: Regenerate.
4719 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
4721 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
4722 format specifier in 'X' case.
4724 2013-04-25 Alan Modra <amodra@gmail.com>
4727 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
4728 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
4729 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
4730 Repeat for many other rotate/shift and mask patterns using subregs.
4731 Name lshiftrt insns.
4732 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
4733 on WORDS_BIG_ENDIAN.
4735 2013-04-25 Alan Modra <amodra@gmail.com>
4737 * config.gcc: Support little-endian powerpc-linux targets.
4738 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
4739 (LINK_OS_LINUX_SPEC): Define.
4740 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
4741 Preserve MASK_LITTLE_ENDIAN.
4742 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
4743 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
4744 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
4745 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
4746 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
4747 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
4748 Correct fp word order for little-endian. Don't shift toc entries
4749 smaller than a word for little-endian.
4750 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
4751 (bswapdi2 splits): Correct low-part subreg for little-endian.
4752 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
4753 low/high where such is correct only for be.
4754 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
4755 little-endian for -mcall-aixdesc.
4757 2013-04-25 Alan Modra <amodra@gmail.com>
4759 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
4760 replace_equiv_address_nv.
4762 2013-04-25 Alan Modra <amodra@gmail.com>
4764 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
4766 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4769 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4770 * rtl.h (struct rtx_def): ...
4772 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4774 PR rtl-optimizations/57046
4775 * lra-constraints (split_reg): Set up lra_risky_transformations_p
4776 for multi-reg splits.
4778 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
4780 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
4782 2013-04-24 Sterling Augustine <saugustine@google.com>
4784 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
4785 (comp_dir_string, debug_str_dwo_section): New.
4786 (DEBUG_STR_DWO_SECTION): Rename to ...
4787 (DEBUG_DWO_STR_SECTION): ... this.
4788 (DEBUG_NORM_STR_SECTION): Delete.
4789 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
4790 (DEBUG_STR_DWO_SECTION_FLAGS): New.
4791 (find_AT_string): Move most logic to ...
4792 (find_AT_string_in_table): ... here. New.
4793 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
4794 add_skeleton_AT_string. Delete logic.
4795 (output_skeleton_debug_sections): Remove call to
4796 add_top_level_skeleton_die_attrs.
4797 (add_comp_dir_attribute): Move logic to comp_dir_string.
4798 (dwarf2out_init): Initialize debug_str_dwo_section.
4799 (output_indirect_string): Call find_string_form.
4800 (output_indirect_strings): Rewrite.
4801 (prune_unused_types): Empty skeleton_debug_str_hash.
4802 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
4803 (dwarf2out_finish): Call output_indirect_strings.
4805 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4807 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
4809 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4811 * rtl.h (struct rtx_def): Add comment for field jump.
4812 (LRA_SUBREG_P): New macro.
4813 * recog.c (register_operand): Check LRA_SUBREG_P.
4814 * lra.c (lra): Add note at the end of RTL code. Align non-empty
4816 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
4817 (lra_final_code_change): Skip subreg change for operators.
4818 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
4819 if there are no operand changes.
4820 * lra-constraints.c (curr_insn_set): New.
4821 (match_reload): Set LRA_SUBREG_P.
4822 (emit_spill_move): Ditto.
4823 (check_and_process_move): Use curr_insn_set. Process only single
4824 set insns. Don't initialize sec_mem_p and change_p.
4825 (simplify_operand_subreg): Use LRA_SUBREG_P.
4826 (reg_in_class_p): New function.
4827 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
4828 of #ifdef. Add code to remove cycling.
4829 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
4830 non-null disp. Reload inner instead of disp when base and index
4831 are null. Try to put lo_sum into register.
4832 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
4833 (check_and_process_move): Move code for move cost check to
4834 simple_move_p. Remove equiv_substitution.
4835 (simple_move_p): New function.
4836 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
4837 curr_insn_set. Call check_and_process_move only for single set
4838 insns. Use the new function. Move call of check_and_process_move
4839 after operand equiv substitution and address process.
4841 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
4843 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
4844 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
4845 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
4847 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4849 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
4851 2013-04-24 Marek Polacek <polacek@redhat.com>
4853 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
4854 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
4855 (select_loops_exit_conditions): Likewise.
4856 (number_of_iterations_for_all_loops): Likewise.
4857 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
4858 (scev_analysis): Likewise.
4860 2013-04-02 Catherine Moore <clm@codesourcery.com>
4861 Chao-ying Fu <fu@mips.com>
4863 * config/mips/micromips.md (jraddiusp): New pattern.
4864 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
4865 instruction if possible.
4867 2013-04-24 Alan Modra <amodra@gmail.com>
4869 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
4871 2013-04-24 Julian Brown <julian@codesourcery.com>
4872 Chung-Lin Tang <cltang@codesourcery.com>
4874 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
4875 dependency behavior in enumeration type DIE generation. Add TODO note
4876 to comments about future DW_FORM_sdata/udata re-work of related code.
4878 2013-04-23 Lawrence Crowl <crowl@google.com>
4880 * Makefile.in: Update as needed below.
4882 * hash-table.h (class hash_table):
4883 Correct many methods with parameter types compare_type to the correct
4884 value_type. (Correct code was unlikely to notice the change.)
4885 (hash_table::elements_with_deleted) New.
4886 (class hashtable::iterator): New.
4887 (hashtable::begin()): New.
4888 (hashtable::end()): New.
4889 (FOR_EACH_HASH_TABLE_ELEMENT): New.
4891 * statistics.c (statistics_hashes):
4892 Change type to hash_table. Update dependent calls and types.
4894 * tree-into-ssa.c (var_infos):
4895 Change type to hash_table. Update dependent calls and types.
4897 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
4898 Change type to hash_table. Update dependent calls and types.
4900 * tree-ssa-loop-im.c (struct mem_ref.refs):
4901 Change type to hash_table. Update dependent calls and types.
4903 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
4904 Change type to hash_table. Update dependent calls and types.
4906 * tree-ssa-sccvn.c (vn_tables_s::nary):
4907 Change type to hash_table. Update dependent calls and types.
4908 (vn_tables_s::phis): Likewise.
4909 (vn_tables_s::references): Likewise.
4911 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
4912 (vn_reference_eq): Update parameter and return types.
4914 * tree-ssa-structalias.c (pointer_equiv_class_table):
4915 Change type to hash_table. Update dependent calls and types.
4916 (location_equiv_class_table): Likewise.
4918 * tree-vect-data-refs.c: Consequential changes for making
4919 peeling a hash_table.
4921 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
4922 (destroy_loop_vec_info): Dependent hash_table update.
4924 * tree-vectorizer.h (peeling_htab):
4925 Change type to hash_table. Update dependent calls and types.
4927 2013-04-23 Shiva Chen <shiva0217@gmail.com>
4929 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
4930 to check the register content is equal or not.
4931 * lra-constraints.c (match_reload): Use lra_assign_reg_val
4932 to assign register content record.
4933 * lra-eliminations.c (update_reg_eliminate): Use
4934 lra_update_reg_val_offset to update register content offset.
4935 * lra-int.h (struct lra_reg): Add offset member.
4936 (lra_reg_val_equal_p): New static inline function.
4937 (lra_update_reg_val_offset): New static inline function.
4938 (lra_assign_reg_val): New static inline function.
4939 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
4940 to assign register content record.
4941 (initialize_lra_reg_info_element): Initial offset to zero.
4943 2013-04-23 Catherine Moore <clm@codesourcery.com>
4945 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
4946 operands. Record compression.
4948 2013-04-23 Xinliang David Li <davidxl@google.com>
4950 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
4952 2013-04-23 Richard Biener <rguenther@suse.de>
4955 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
4956 parameter, only add abnormal goto edges from the copied body
4957 if the call could perform abnormal gotos.
4958 (copy_cfg_body): Adjust.
4960 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
4962 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
4964 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
4966 * coretypes.h (gimple_stmt_iterator): Add struct to make
4969 2013-04-23 Richard Biener <rguenther@suse.de>
4971 PR tree-optimization/57026
4972 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
4973 from SSA names occuring in abnormal PHI nodes.
4975 2013-04-22 Andi Kleen <ak@linux.intel.com>
4977 * lto/lto.c (print_lto_report_1): Fix LTO report names.
4979 2013-04-22 Andi Kleen <ak@linux.intel.com>
4981 * lto/lto.c (print_lto_report_1): Declare early.
4982 (read_cgraph_and_symbols): Call print_lto_report_1 early.
4984 2013-04-22 Andi Kleen <ak@linux.intel.com>
4986 * common.opt (-flto-report-wpa): Add.
4987 * doc/invoke.texi (-flto-report-wpa): Add.
4988 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
4991 2013-04-22 Xinliang David Li <davidxl@google.com>
4993 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
4994 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
4995 * Makefile.in: New dependency
4997 David Daney <ddaney.cavm@gmail.com>
4999 * configure.ac (gcc_cv_as_micromips_support): Use the
5000 --fatal-warnings option.
5001 * configure: Regenerate.
5003 2013-04-22 Marek Polacek <polacek@redhat.com>
5006 * tsan.c (instrument_expr): Don't instrument expression
5007 in case its size is zero.
5009 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
5013 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
5015 * config/alpha/alpha.c (TARGET_LRA_P): New define.
5017 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
5019 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
5020 (gimple_stmt_iterator): New typedef.
5021 * gimple.h (gimple_stmt_iterator): Rename to...
5022 (gimple_stmt_iterator_d): ... This.
5023 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
5024 trees be valid for GIMPLE and GENERIC.
5025 (TARGET_GIMPLE_FOLD_BUILTIN): New.
5026 * gimple-fold.c (gimple_fold_call): Call target hook
5027 gimple_fold_builtin.
5028 * hooks.c (hook_bool_gsiptr_false): New.
5029 * hooks.h (hook_bool_gsiptr_false): New.
5030 * target.def (fold_stmt): New.
5031 * doc/tm.texi: Regenerate.
5033 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
5036 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
5037 a set sp if no stack realignment.
5039 2013-04-22 Nick Clifton <nickc@redhat.com>
5041 * config.gcc (tilegx-linux): Extend extra_objs rather than
5043 (tilepro-linux): Likewise.
5045 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
5047 * config/aarch64/aarch64-builtins.c
5049 (CF0, CF1, CF2, CF3, CF4, CF10): New.
5050 (VAR<1-12>): Add MAP parameter.
5051 (BUILTIN_*): Likewise.
5052 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
5053 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
5054 (aarch64_ushl_n<mode>): Likewise.
5055 (aarch64_sshr_n<mode>): Likewise.
5056 (aarch64_ushr_n<mode>): Likewise.
5057 (aarch64_<maxmin><mode>): Likewise.
5058 (aarch64_sqrt<mode>): Likewise.
5059 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
5060 (vshr<q>_n_*): Likewise.
5062 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
5064 * config/aarch64/aarch64-builtins.c
5065 (aarch64_simd_builtin_type_mode): Handle SF types.
5067 (BUILTIN_GPF): Define.
5068 (aarch64_init_simd_builtins): Handle SF types.
5069 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
5072 * config/aarch64/aarch64-simd.md
5073 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
5074 (aarch64_frecpe<mode>): New.
5075 (aarch64_frecps<mode>): Likewise.
5076 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
5077 (v8type): Add frecp<esx>.
5078 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
5079 (aarch64_frecps<mode>): Likewise.
5080 * config/aarch64/iterators.md (FRECP): New.
5081 (frecp_suffix): Likewise.
5082 * config/aarch64/arm_neon.h
5083 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
5085 2013-04-22 Christian Bruel <christian.bruel@st.com>
5088 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
5089 (REG_CLASS_NAMES): Idem.
5090 (REG_CLASS_CONTENTS): Idem.
5091 (REGCLASS_HAS_FP_REG): Idem.
5092 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
5093 (sh_conditional_register_usage): Idem.
5095 2013-04-21 Jeff Law <law@redhat.com>
5097 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
5098 (ssa_forward_propagate_and_combine): Use it.
5100 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
5102 * lra.c: Update the flow chart diagram.
5104 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
5106 PR rtl-optimization/56847
5107 * lra-constraints.c (process_alt_operands): Discourage alternative
5108 with non-matche doffsettable memory constraint fro memory with
5111 2013-04-19 Richard Biener <rguenther@suse.de>
5113 PR tree-optimization/56982
5114 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
5116 * gimplify.c (gimplify_call_expr): Notice special calls.
5117 (gimplify_modify_expr): Likewise.
5118 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
5119 abnormal control flow receivers.
5120 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
5121 in the same way as cfun->has_nonlocal_labels.
5122 (gimple_purge_dead_abnormal_call_edges): Likewise.
5123 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
5124 receivers start a basic-block.
5126 2013-04-19 Richard Biener <rguenther@suse.de>
5128 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
5130 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
5131 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
5132 (SLP_TREE_LOAD_PERMUTATION): Add.
5133 (vect_transform_slp_perm_load): Adjust prototype.
5134 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
5135 (vect_free_slp_instance): Likewise.
5136 (vect_create_new_slp_node): Likewise.
5137 (vect_supported_slp_permutation_p): Remove.
5138 (vect_slp_rearrange_stmts): Adjust.
5139 (vect_supported_load_permutation_p): Likewise. Inline
5140 vect_supported_slp_permutation_p here.
5141 (vect_analyze_slp_instance): Compute load permutations per
5142 slp node instead of per instance.
5143 (vect_get_slp_defs): Adjust.
5144 (vect_transform_slp_perm_load): Likewise.
5145 (vect_schedule_slp_instance): Remove redundant code.
5146 (vect_schedule_slp): Remove hack for PR56270, add it ...
5147 * tree-vect-stmts.c (vectorizable_load): ... here, do not
5148 CSE loads for SLP. Adjust.
5150 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
5152 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
5153 spelling in two comments.
5155 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
5158 * config/arm/arm.c (load_multiple_sequence): Require SP
5159 as base register for loads if SP is in the register list.
5161 2013-04-19 Martin Jambor <mjambor@suse.cz>
5163 PR tree-optimization/56718
5164 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
5165 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
5166 and made public. Adjusted all callers.
5167 (ipa_intraprocedural_devirtualization): New function.
5168 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
5169 (ipa_intraprocedural_devirtualization): Likewise.
5170 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
5172 2013-04-19 Richard Biener <rguenther@suse.de>
5174 PR tree-optimization/57000
5175 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
5177 2013-04-19 Terry Guo <terry.guo@arm.com>
5179 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
5181 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
5182 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
5183 (cortex_m4_fmacs): Use new reservations.
5184 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
5186 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
5188 PR rtl-optimization/56999
5189 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
5191 (lra_coalesce): Remove split_origin_bitmap and related code.
5192 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
5193 ranges if necessary.
5195 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
5197 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
5199 (ix86_expand_call): Remove clobbered_registers array and use
5200 x86_64_ms_sysv_extra_clobbered_registers instead.
5201 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
5203 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
5205 * config/i386/i386.md (*call_rex64_ms_sysv): Use
5206 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
5207 (*call_value_rex64_ms_sysv): Ditto.
5209 2013-04-18 Cary Coutant <ccoutant@google.com>
5211 * dwarf2out.c (output_pubnames): Check die_perennial_p of
5212 parent instead of die_mark.
5214 2013-04-18 Diego Novillo <dnovillo@google.com>
5216 * gimple.c (create_gimple_tmp): New.
5217 (get_expr_type): New.
5218 (build_assign): New.
5219 (build_type_cast): New.
5220 * gimple.h (enum ssa_mode): Define.
5221 (gimple_seq_set_location): New.
5222 * asan.c (build_check_stmt): Change some gimple_build_* calls
5223 to use build_assign and build_type_cast.
5225 2013-04-18 Richard Biener <rguenther@suse.de>
5227 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
5228 handle negative step. Remove redundant checks.
5229 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
5230 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
5231 for negative step and grouped loads fail to vectorize.
5233 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
5235 * emit-rtl.c (reset_insn_used_flags): New function.
5236 (reset_all_used_flags): Use it.
5237 (verify_insn_sharing): New function.
5238 (verify_rtl_sharing): Fix verification for SEQUENCEs.
5240 2013-04-18 Jakub Jelinek <jakub@redhat.com>
5242 PR tree-optimization/56984
5243 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
5244 and (x >> M) >= N don't register any assertion if N << M is the
5247 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
5249 * lower-subreg.c (resolve_simple_move): If called self-recursive,
5250 do not delete_insn insns that have not yet been emitted, only
5251 unlink them with remove_insn.
5252 * df-scan.c (df_insn_delete): Revert r197492.
5254 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
5256 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
5257 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
5259 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
5261 * config/arm/arm.md (movsicc_insn): Convert define_insn into
5262 define_insn_and_split.
5263 (and_scc,ior_scc,negscc): Likewise.
5264 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
5266 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
5268 * config/arm/arm.c (use_return_insn): Return 0 for targets that
5269 can benefit from using a sequence of LDRD instructions in epilogue
5270 instead of a single LDM instruction.
5272 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
5275 * doc/extend.texi: Fix typo.
5277 2013-04-17 Richard Biener <rguenther@suse.de>
5279 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
5280 (vect_build_slp_tree): ... here.
5281 (vect_build_slp_tree_1): Compute which stmts of the SLP group
5282 match. Remove special-casing of mismatched complex loads.
5283 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
5284 re-try the match with swapped commutative operands.
5285 (vect_supported_load_permutation_p): Remove special-casing of
5286 mismatched complex loads.
5287 (vect_analyze_slp_instance): Adjust.
5289 2013-04-17 Richard Biener <rguenther@suse.de>
5291 PR rtl-optimization/56921
5292 * cfgloop.h (struct loop): Add simple_loop_desc member.
5293 (struct niter_desc): Mark with GTY(()).
5294 (simple_loop_desc): Do not use aux field but simple_loop_desc.
5295 * loop-iv.c (get_simple_loop_desc): Likewise.
5296 (free_simple_loop_desc): Likewise.
5299 2013-04-16 Richard Biener <rguenther@suse.de>
5301 PR rtl-optimization/56921
5302 * loop-init.c (pass_rtl_move_loop_invariants): Add
5303 TODO_do_not_ggc_collect to todo_flags_finish.
5304 (pass_rtl_unswitch): Same.
5305 (pass_rtl_unroll_and_peel_loops): Same.
5306 (pass_rtl_doloop): Same.
5308 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
5310 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
5311 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
5312 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
5314 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
5315 * tree-streamer.c (record_common_node): Adjust reference in comment.
5317 2013-04-17 Terry Guo <terry.guo@arm.com>
5319 * config/arm/cortex-m4.md: Add a new bypass.
5321 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5323 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
5325 (*subs_<optab><mode>_multp2): New pattern.
5326 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
5327 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
5329 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5331 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
5332 (*subs_mul_imm_<mode>): New pattern.
5334 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
5337 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
5338 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
5339 (vsx_movti_32bit): Change j->wa to O->wa.
5341 2013-04-16 Richard Biener <rguenther@suse.de>
5343 PR rtl-optimization/56921
5344 * loop-init.c (pass_rtl_move_loop_invariants): Add
5345 TODO_do_not_ggc_collect to todo_flags_finish.
5346 (pass_rtl_unswitch): Same.
5347 (pass_rtl_unroll_and_peel_loops): Same.
5348 (pass_rtl_doloop): Same.
5350 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
5352 * config/arm/arm.c (emit_multi_reg_push): New declaration
5353 for an existing function.
5354 (arm_emit_strd_push): New function.
5355 (arm_expand_prologue): Used here.
5356 (arm_emit_ldrd_pop): New function.
5357 (arm_expand_epilogue): Used here.
5358 (arm_get_frame_offsets): Update condition.
5359 (arm_emit_multi_reg_pop): Add a special case for load of a single
5360 register with writeback.
5362 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
5364 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
5367 2013-04-16 Richard Biener <rguenther@suse.de>
5369 PR tree-optimization/56756
5370 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
5371 (first_mem_ref_loc): New.
5372 (execute_sm): Place the load temporarily before a previous
5373 access instead of in the latch edge to ensure its SSA dependencies
5374 are defined at points dominating the load.
5376 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
5378 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
5379 correct fix by moving header and footer insn to the footer of
5380 the merged basic block. Clear BB_END of the merged-away block.
5383 * emit-rtl.c (make_note_raw): New function.
5384 (link_insn_into_chain): New static inline function.
5386 (add_insn_before, add_insn_after): Factor insn chain linking code...
5387 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
5388 using link_insn_into_chain.
5389 (note_outside_basic_block_p): New helper function for emit_note_after
5390 and emit_note_before.
5391 (emit_note_after): Use nobb variant of add_insn_after if the note
5392 should not be contained in a basic block.
5393 (emit_note_before): Use nobb variant of add_insn_before if the note
5394 should not be contained in a basic block.
5395 (emit_note_copy): Use make_note_raw.
5396 (emit_note): Likewise.
5397 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
5398 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
5399 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
5400 the moved barrier the tail of the basic block it follows.
5401 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
5403 2013-04-15 Jakub Jelinek <jakub@redhat.com>
5405 PR tree-optimization/56962
5406 * gimple-ssa-strength-reduction.c (record_increment): Only set
5407 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
5408 either rhs1 or rhs2 is equal to c->base_expr.
5410 2013-04-15 Richard Biener <rguenther@suse.de>
5412 PR tree-optimization/56933
5413 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
5415 (GROUP_READ_WRITE_DEPENDENCE): Remove.
5416 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
5417 * tree-vect-data-refs.c (vect_analyze_group_access): Move
5418 dependence check ...
5419 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
5421 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
5422 GROUP_READ_WRITE_DEPENDENCE.
5424 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5426 * emit-rtl.c (reset_all_used_flags): New function.
5427 (verify_rtl_sharing): Call reset_all_used_flags before and after
5428 performing the checks.
5430 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5432 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
5433 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
5434 * config/arm/constraints.md (De): New constraint.
5435 * config/arm/neon.md (anddi3_neon): Delete.
5436 (neon_vand<mode>): Expand to standard anddi3 pattern.
5437 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
5438 Move earlier in the file.
5439 (neon_inv_logic_op2): Likewise.
5440 (arm_anddi_operand_neon): New predicate.
5442 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5444 * configure.ac (gcc_cv_ld_as_needed): Set
5445 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
5446 Use -z ignore, -z record on *-*-solaris2*.
5447 (HAVE_LD_AS_NEEDED): Update comment.
5448 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
5449 * configure: Regenerate.
5450 * config.in: Regenerate.
5451 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
5452 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
5453 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
5454 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
5455 equivalents. Fix markup.
5456 * doc/tm.texi: Regenerate.
5458 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
5460 * config/i386/i386.opt: New option mstack-protector-guard=.
5461 * config/i386/i386-opts.h: Add enum stack_protector_guard.
5462 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
5463 TARGET_SSP_TLS_GUARD.
5464 * config/i386/i386.c (ix86_option_override_internal): Set
5465 ix86_stack_protector_guard.
5466 * config/i386/i386.md (stack_protect_set): Enable for
5467 TARGET_SSP_TLS_GUARD only.
5468 (stack_protect_set_<mode>): Ditto.
5469 (stack_protect_test): Ditto.
5470 (stack_protect_test_<mode>): Ditto.
5471 * doc/invoke.texi (i386 Option): Document.
5473 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
5476 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
5477 (S_MODES): Set H_MODE bit.
5478 (SF_MODES): Set only S_MODE and SF_MODE bits.
5479 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
5480 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
5481 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
5482 <MODE_FLOAT>: Likewise.
5484 2013-04-15 Joey Ye <joey.ye@arm.com>
5486 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
5488 2013-04-15 Joey Ye <joey.ye@arm.com>
5490 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
5492 (thumb_far_jump_used_p): Count instruction size and set
5495 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
5497 * reorg.c (fill_simple_delay_slots): Reindent block of code.
5498 * resource.c (mark_target_live_regs): Reformat conditional block.
5500 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
5502 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
5503 notes, they are emitted only just before final.
5504 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
5506 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
5508 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
5509 * cfgrtl.c (delete_insn): Call it here instead.
5510 * lra-spills.c (lra_final_code_change): Use delete_insn.
5511 * haifa-sched.c (sched_remove_insn): Likewise.
5512 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
5513 returning to the nop pool.
5514 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
5515 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
5517 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
5519 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
5520 * doc/tm.texi: Regenerated.
5522 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
5524 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
5527 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
5529 * df-core.c (df_find_def): Compare register numbers.
5530 (df_find_use): Likewise.
5532 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
5535 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
5536 lra_in_progress for return.
5538 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
5540 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
5541 define_insn into define_insn_and_split and emit movsicc patterns.
5543 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
5545 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
5547 2013-04-12 Richard Biener <rguenther@suse.de>
5549 * tree-pass.h (TODO_do_not_ggc_collect): New.
5550 * passes.c (execute_one_ipa_transform_pass): Honor
5551 TODO_do_not_ggc_collect.
5552 (execute_one_pass): Likewise.
5555 2013-04-10 Richard Biener <rguenther@suse.de>
5557 * passes.c (init_optimization_passes): Remove reload pass.
5558 * ira.c (do_reload): Merge into ...
5560 (rest_of_handle_reload): Remove.
5561 (pass_reload): Likewise.
5562 * config/i386/i386.c (ix86_option_override): Refer to ira instead
5563 of reload for vzeroupper pass placement.
5565 2013-04-12 Jakub Jelinek <jakub@redhat.com>
5567 PR tree-optimization/56918
5568 PR tree-optimization/56920
5569 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
5570 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
5571 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
5572 use wide_mul_with_sign method.
5574 2013-04-12 Richard Biener <rguenther@suse.de>
5576 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
5577 not be considered a gimple constant.
5579 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
5581 * fold-const.c (const_binop): Handle vector shifts by a scalar.
5582 (fold_binary_loc): Call const_binop also for mixed vector-scalar
5585 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
5586 Jakub Jelinek <jakub@redhat.com>
5588 * opts.c: Include diagnostic-color.h.
5589 (common_handle_option): Handle OPT_fdiagnostics_color_.
5590 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
5591 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
5592 (diagnostic-color.o): New.
5593 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
5594 (diagnostic_color_rule): New enum.
5595 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
5596 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
5597 the location string.
5598 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
5599 either NULL, or color kind.
5600 * diagnostic-color.c: New file.
5601 * diagnostic-color.h: New file.
5602 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
5604 * doc/invoke.texi (-fdiagnostics-color): Document.
5605 * pretty-print.h (pp_show_color): Define.
5606 (struct pretty_print_info): Add show_color field.
5607 * diagnostic.c: Include diagnostic-color.h.
5608 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
5609 macros. Colorize error:, warning: etc. strings and also the location
5611 (diagnostic_show_locus): Colorize the caret line.
5612 * pretty-print.c: Include diagnostic-color.h.
5613 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
5614 inside of %< %> quotes or quoted through q format modifier.
5616 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5618 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
5620 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5622 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
5624 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
5627 2013-04-11 Marek Polacek <polacek@redhat.com>
5629 PR tree-optimization/48184
5630 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
5632 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
5634 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
5635 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
5636 (skip_simple_arithmetic): Tidy up.
5637 * tree.h (skip_simple_constant_arithmetic): Declare.
5639 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5641 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
5643 2013-04-11 Richard Biener <rguenther@suse.de>
5645 * tree-vect-loop.c (get_initial_def_for_induction): Properly
5646 generate vector constants.
5648 2013-04-11 Richard Biener <rguenther@suse.de>
5650 PR tree-optimization/56878
5651 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
5652 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
5654 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5655 Prefer to align the DR with the most invariant base address.
5657 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5659 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
5662 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
5664 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
5665 floating-point vector comparisons against 0.
5667 2013-04-11 Jakub Jelinek <jakub@redhat.com>
5669 PR tree-optimization/56899
5670 * fold-const.c (extract_muldiv_1): Apply distributive law
5671 only if TYPE_OVERFLOW_WRAPS (ctype).
5673 2013-04-11 Bin Cheng <bin.cheng@arm.com>
5676 * ira-costs.c (scan_one_insn): Check whether the source rtx of
5677 loading has side effect.
5679 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
5681 * config/sparc/sparc.c: Include tree-pass.h.
5682 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
5683 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
5684 head of file. Change return type. Split off gate function.
5685 (sparc_gate_work_around_errata): New function.
5686 (pass_work_around_errata): New pass definition.
5687 (insert_pass_work_around_errata) New pass insert definition to
5688 insert pass_work_around_errata just after delayed-branch scheduling.
5689 (sparc_option_override): Insert the pass.
5690 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
5692 2013-04-10 David S. Miller <davem@davemloft.net>
5694 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
5695 or -mcpu=hypersparc.
5697 * target.def (cstore_mode): New hook.
5698 * target.h: Include insn-codes.h
5699 * targhooks.c: Likewise.
5700 (default_cstore_mode): New function.
5701 * targhooks.h: Declare it.
5702 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
5703 * doc/tm.texi: Rebuild.
5704 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
5705 target hook, rather than inspecting the insn_data.
5706 * config/sparc/sparc.c (sparc_cstore_mode): New function.
5707 (TARGET_CSTORE_MODE): Redefine.
5708 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
5710 * config/sparc/predicates.md (cstore_result_operand): New special
5712 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
5713 Use it for operand 0.
5714 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
5715 (*snesi_special): Likewise.
5716 (*snesi_zero): Likewise.
5717 (*seqsi_zero): Likewise.
5718 (*sltu_insn): Likewise.
5719 (*sgeu_insn): Likewise.
5720 (*seqdi_special): Make operand 0 and comparison operation be of
5722 (*snedi_special): Likewise.
5723 (*snedi_special_vis3): Likewise.
5724 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
5725 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
5726 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
5727 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
5728 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
5729 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
5730 (*sltu_extend_sp64): Likewise.
5731 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
5732 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
5733 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
5734 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
5735 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
5737 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
5739 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
5740 (aarch64_start_file): Use the new function.
5742 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5743 Jason Merrill <jason@redhat.com>
5745 * common.opt: Add -gdwarf.
5746 * opts.c (common_handle_option): Handle it.
5747 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
5749 2013-04-10 Richard Biener <rguenther@suse.de>
5751 * passes.c (execute_todo): Do not call ggc_collect conditional here.
5752 (execute_one_ipa_transform_pass): But unconditionally here.
5753 (execute_one_pass): And here.
5754 (init_optimization_passes): Remove reload pass.
5755 * tree-pass.h (TODO_ggc_collect): Remove.
5756 (pass_reload): Likewise.
5757 * ira.c (do_reload): Merge into ...
5759 (rest_of_handle_reload): Remove.
5760 (pass_reload): Likewise.
5761 * config/i386/i386.c (ix86_option_override): Refer to ira instead
5762 of reload for vzeroupper pass placement.
5763 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
5764 and todo_flags_finish of all passes.
5766 2013-04-10 Richard Biener <rguenther@suse.de>
5768 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
5769 first_const_oprnd field, rename first_def_type to first_op_type.
5770 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
5771 (vect_get_and_check_slp_defs): Always use the type of the
5772 operand. Allow mixed vect_external_def, vect_constant_def types.
5773 (vect_get_constant_vectors): Handle mixed vect_external_def,
5774 vect_constant_def types.
5776 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
5778 PR tree-optimization/55524
5779 * tree-ssa-math-opts.c
5780 (convert_mult_to_fma): Don't use an fms construct
5781 when we don't have an fms operation, but fnma, and it looks
5782 likely that we'll be able to use the latter.
5784 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
5786 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
5788 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
5789 inline fail caused by overwritable functions.
5791 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
5793 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
5794 unnecessary bits in the constant power of two case.
5796 2013-04-10 Richard Biener <rguenther@suse.de>
5798 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
5799 broken code swapping operands.
5800 (vect_build_slp_tree): Do not compute load permutations here.
5801 (vect_analyze_slp_instance): Compute load permutations here,
5802 after building the SLP tree.
5804 2013-04-09 Christian Bruel <christian.bruel@st.com>
5806 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
5807 of next/prev_real_insn.
5809 2013-04-09 Jan Hubicka <jh@suse.cz>
5811 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
5812 Drop aliased parameter.
5813 (function_and_variable_visibility): Do not handle alias pairs.
5814 * cgraph.c (varpool_externally_visible_p): Update prototype.
5815 * varpool.c (varpool_add_new_variable): Update.
5817 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5819 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
5821 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
5823 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
5825 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
5827 2013-04-09 Marek Polacek <polacek@redhat.com>
5829 PR tree-optimization/48762
5830 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
5832 2013-04-09 Richard Biener <rguenther@suse.de>
5834 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
5836 (vect_build_slp_tree): Likewise.
5837 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
5838 calculating the cost of a SLP instance.
5839 (vect_analyze_slp_instance): Use it from here, after building
5842 2013-04-09 Jakub Jelinek <jakub@redhat.com>
5845 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
5846 expand_omp_for_static_chunk): Use simple_p = true in
5847 force_gimple_operand_gsi calls when assigning to addressable decls.
5849 2013-04-09 Jeff Law <law@redhat.com>
5851 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
5852 when the boolean was created by converting a wider object which
5853 had a boolean range.
5855 2013-04-09 Richard Biener <rguenther@suse.de>
5857 * tree-vectorizer.h (slp_void_p): Remove.
5858 (slp_tree): Typedef before _slp_tree declaration.
5859 (struct _slp_tree): Use a vector of slp_tree as children.
5860 (vect_get_place_in_interleaving_chain): Remove.
5861 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
5863 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
5865 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
5866 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
5867 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
5868 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
5869 Use slp_node instead of slp_void_p and adjust.
5871 2013-04-09 Richard Biener <rguenther@suse.de>
5873 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
5874 work that is not necessary.
5876 2013-04-09 Jakub Jelinek <jakub@redhat.com>
5878 PR tree-optimization/56854
5879 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
5880 forward into clobber stmts if it would change MEM_REF lhs into
5883 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
5885 * tree.c (type_hash_lookup, type_hash_add): Make static.
5886 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
5888 2013-04-09 Richard Biener <rguenther@suse.de>
5890 * tree.h (unsave_expr_now): Remove.
5891 * tree-inline.c (mark_local_for_remap_r): Remove.
5892 (unsave_expr_1): Likewise.
5893 (unsave_r): Likewise.
5894 (unsave_expr_now): Likewise.
5895 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
5896 (propagate_tree_value): Likewise.
5898 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
5900 * doc/rtl.texi (sequence): Rewrite documentation to match the
5901 current use of SEQUENCE rtl objects.
5902 * rtl.def (SEQUENCE): Likewise.
5904 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
5905 Update documentation.
5906 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
5907 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
5909 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
5911 2013-04-08 Teresa Johnson <tejohnson@google.com>
5913 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
5914 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
5916 (estimate_edge_size_and_time): Add comment to suggest using rounding
5918 (estimate_node_size_and_time): Ditto.
5919 (remap_edge_change_prob): Use helper rounding divide methods.
5920 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
5921 (gimple_mod_pow2_value_transform): Ditto.
5922 (gimple_mod_subtract_transform): Ditto.
5923 (gimple_ic_transform): Ditto.
5924 (gimple_stringops_transform): Ditto.
5925 * stmt.c (conditional_probability): Ditto.
5926 (emit_case_dispatch_table): Ditto.
5927 * lto-cgraph.c (merge_profile_summaries): Ditto.
5928 * tree-optimize.c (execute_fixup_cfg): Ditto.
5929 * cfgcleanup.c (try_forward_edges): Ditto.
5930 * cfgloopmanip.c (scale_loop_profile): Ditto.
5932 (duplicate_loop_to_header_edge): Ditto.
5933 (lv_adjust_loop_entry_edge): Ditto.
5934 * tree-vect-loop.c (vect_transform_loop): Ditto.
5935 * profile.c (compute_branch_probabilities): Ditto.
5936 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
5937 * lto-streamer-in.c (input_cfg): Ditto.
5938 * gimple-streamer-in.c (input_bb): Ditto.
5939 * ipa-cp.c (update_profiling_info): Ditto.
5940 (update_specialized_profile): Ditto.
5941 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
5942 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
5944 * sched-rgn.c (compute_dom_prob_ps): Ditto.
5945 (compute_trg_info): Ditto.
5946 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
5947 (purge_dead_edges): Ditto.
5948 * loop-unswitch.c (unswitch_loop): Ditto.
5949 * cgraphclones.c (cgraph_clone_edge): Ditto.
5950 (cgraph_clone_node): Ditto.
5951 * tree-inline.c (copy_bb): Ditto.
5952 (copy_edges_for_bb): Ditto.
5953 (initialize_cfun): Ditto.
5954 (copy_cfg_body): Ditto.
5955 (expand_call_inline): Ditto.
5957 2013-04-08 Kai Tietz <ktietz@redhat.com>
5959 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
5960 TARGET_CYGWIN64 by TARGET_64BIT.
5962 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
5964 * config/epiphany/epiphany.md (GPR_1): New constant.
5965 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
5966 * config/epiphany/epiphany.c (gen_compare_reg):
5967 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
5968 is already in place.
5969 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
5970 Don't require being called during rtl expansion; If y operlaps r0,
5972 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
5973 (epiphany_expand_epilogue): Likewise.
5975 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
5976 Don't use CC_FPmode for ORDERED / UNORDERED.
5977 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
5979 * config/epiphany/constraints.md (CnL): New constraint.
5980 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
5981 * config/epiphany/predicates.md (add_operand): Allow 1024.
5983 * config/epiphany/epiphany.md (logical_op): New code iterator.
5984 (op_mnc): New code attribute.
5985 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
5986 (mov_f+1, mov_f+2): New peephole2 patterns.
5988 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
5989 (cstoresi4): Also allow re-use of zero result when doing a NE
5990 comparison to a non-zero operand.
5991 Use (clobber (scratch)) for first insn if the gpr output is not needed.
5993 * config/epiphany/epiphany.md (<insn_opname>v2si3):
5994 Use gen_addsi3_i / gen_subsi3_i.
5996 2013-04-08 Jakub Jelinek <jakub@redhat.com>
6000 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
6001 contain anything but clobbers, at most one __builtin_stack_restore,
6002 optionally debug stmts and final resx, and if it has at least one
6003 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
6004 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
6005 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
6006 which isn't defaut definition, remove them.
6007 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
6008 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
6009 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
6010 with MEM_REF LHS with SSA_NAME address.
6012 2013-04-08 Jeff Law <law@redhat.com>
6014 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
6016 2013-04-08 Richard Biener <rguenther@suse.de>
6018 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
6020 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
6021 determined vector type.
6022 (vect_analyze_data_refs): Likewise.
6023 (vect_get_new_vect_var): Adjust.
6024 (vect_create_destination_var): Preserve SSA name versions.
6025 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
6026 not dump anything here.
6028 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
6030 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
6031 Add member lr_slot_known.
6032 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
6034 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
6035 Remove code that sets lr_slot_offset according to what a previous
6036 version of epiphany_emit_save_restore used to do.
6037 (epiphany_emit_save_restore): When doing an lr save or restore,
6038 set/verify lr_slot_known and lr_slot_offset.
6040 2013-04-08 Xinyu Qi <xyqi@marvell.com>
6043 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
6046 2013-04-08 Richard Biener <rguenther@suse.de>
6048 * alias.c (find_base_term): Fix thinko in previous change.
6050 2013-04-08 Jakub Jelinek <jakub@redhat.com>
6052 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
6053 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
6054 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
6055 if possible to compute val.
6056 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
6057 For QImode integers don't require anything about precision. Use
6058 const_with_all_bytes_same to find out if the constant doesn't have
6059 repeated bytes in it.
6061 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6063 * config/s390/s390.c (s390_expand_insv): Only accept insertions
6066 2013-04-08 Marek Polacek <polacek@redhat.com>
6068 PR rtl-optimization/48182
6069 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
6072 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6075 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
6076 nuses, make sure we have a label.
6078 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6081 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
6082 (rs6000_emit_swdiv_low_precision): Remove.
6083 (rs6000_emit_swdiv): Rewrite to handle between one and four
6084 iterations of Newton-Raphson generally; modify required number of
6085 iterations for some cases.
6086 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
6088 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
6090 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
6091 set-but-unused variable.
6093 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
6094 basic blocks of released function bodies garbage-collectable.
6096 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
6097 (struct rtl_opt_pass): Add TODO_df_finish.
6099 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
6101 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
6103 * config/arm/constraints.md (q): New constraint.
6104 * config/arm/ldrdstrd.md: New file.
6105 * config/arm/arm.md (ldrdstrd.md) New include.
6106 (arm_movdi): Use "q" instead of "r" constraint
6107 for double-word memory access.
6108 (movdf_soft_insn): Likewise.
6109 * config/arm/vfp.md (movdi_vfp): Likewise.
6110 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
6111 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
6112 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
6113 (mem_ok_for_ldrd_strd): Likewise.
6114 (output_move_double): Update assertion.
6116 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
6118 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
6120 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
6122 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
6123 define_insn_and_split.
6124 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
6126 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
6128 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
6129 define_insn_and_split.
6130 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
6131 (shiftsi3_compare): New pattern.
6133 * config/arm/unspecs.md (UNSPEC_RRX): New.
6135 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
6137 * config/arm/arm.md (negdi_extendsidi): New pattern.
6138 (negdi_zero_extendsidi): Likewise.
6140 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
6142 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
6143 define_insn_and_split.
6144 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
6145 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
6147 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
6149 * config/arm/arm.md (arm_subdi3): Convert define_insn into
6150 define_insn_and_split.
6151 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
6152 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
6154 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
6156 * config/arm/arm.md (subsi3_carryin): New pattern.
6157 (subsi3_carryin_const): Likewise.
6158 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
6159 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
6161 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
6163 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
6165 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
6167 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
6168 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
6170 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6172 * config/arm/arm.c (arm_expand_builtin): Change fcode
6173 type to unsigned int.
6175 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6177 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
6179 2013-04-04 Ian Lance Taylor <iant@google.com>
6181 * doc/standards.texi (Standards): The Go frontend supports the Go 1
6184 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
6187 * df-scan.c (df_insn_delete): Disable failing assert.
6189 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6191 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
6192 New function prototype.
6193 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
6194 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
6195 (arm_builtin_vectorized_function): New function.
6197 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6199 * config/arm/arm_neon_builtins.def: New file.
6200 * config/arm/arm.c (neon_builtin_data): Move contents to
6201 arm_neon_builtins.def.
6202 (enum arm_builtins): Include neon builtin definitions.
6203 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
6204 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
6206 2013-04-04 Marek Polacek <polacek@redhat.com>
6208 PR tree-optimization/48186
6209 * predict.c (maybe_hot_frequency_p): Return false if
6210 HOT_BB_FREQUENCY_FRACTION is 0.
6211 (cgraph_maybe_hot_edge_p): Likewise.
6213 2013-04-04 Richard Biener <rguenther@suse.de>
6215 PR tree-optimization/56826
6216 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
6219 2013-04-04 Richard Biener <rguenther@suse.de>
6221 PR tree-optimization/56213
6222 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
6223 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
6225 2013-04-04 Richard Biener <rguenther@suse.de>
6227 PR tree-optimization/56837
6228 * tree-loop-distribution.c (classify_partition): For non-zero
6229 values require that the value has the same precision as its
6230 mode to be useful as memset value.
6232 2013-04-03 Nick Clifton <nickc@redhat.com>
6234 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
6235 (fmssf4): Use fmsf.s on E3V5 architectures.
6236 (fnmasf4): Use fnmaf.s on E3V5 architectures.
6237 (fnmssf4): Use fnmsf.s on E3V5 architectures.
6239 2013-04-03 Jeff Law <law@redhat.com>
6241 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
6242 (lra-eliminations.o): Likewise.
6244 2013-04-03 Teresa Johnson <tejohnson@google.com>
6246 * gcov-io.c (compute_working_sets): Moved most of body of old
6247 compute_working_sets here from profile.c.
6248 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
6249 (gcov_working_set_t): Moved typedef here from basic-block.h
6250 (compute_working_set): Declare.
6251 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
6252 (get_working_sets): Renamed from compute_working_set,
6253 replace most of body with call to new compute_working_sets.
6254 (get_exec_counts): Replace call to compute_working_sets
6255 to get_working_sets.
6256 * profile.h (get_working_sets): Renamed from compute_working_set.
6257 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
6258 to get_working_sets.
6259 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
6260 * gcov-dump.c (dump_working_sets): New function.
6262 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
6264 * hwint.c (sext_hwi, zext_hwi): New functions.
6265 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
6266 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
6267 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
6268 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
6269 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
6270 (sext_hwi, zext_hwi): New functions.
6272 2013-04-03 Jeff Law <law@redhat.com>
6274 PR tree-optimization/56799
6275 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
6276 back test for widening conversion erroneously dropped in prior change.
6278 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6281 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
6282 instead of next_real_insn.
6284 2013-04-03 Marek Polacek <polacek@redhat.com>
6287 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
6289 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6292 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
6294 (thumb1_output_casesi): Likewise.
6295 (thumb2_output_casesi): Likewise.
6297 2013-04-03 Richard Biener <rguenther@suse.de>
6299 PR tree-optimization/56817
6300 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
6302 (tree_unroll_loops_completely_1): ... new function to manually
6303 walk the loop tree, properly defering outer loops of unrolled
6304 loops to later iterations.
6306 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
6308 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
6309 (vectorizable_load): Likewise.
6310 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
6311 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
6313 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
6315 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
6318 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6320 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
6322 2013-04-03 Bin Cheng <bin.cheng@arm.com>
6324 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
6326 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
6328 PR tree-optimization/56790
6329 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
6332 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
6334 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
6336 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
6337 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
6340 2013-04-03 Jakub Jelinek <jakub@redhat.com>
6343 * tree.h (force_folding_builtin_constant_p): New decl.
6344 * builtins.c (force_folding_builtin_constant_p): New variable.
6345 (fold_builtin_constant_p): Fold immediately also if
6346 force_folding_builtin_constant_p.
6348 2013-04-03 Richard Biener <rguenther@suse.de>
6350 PR tree-optimization/56812
6351 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
6352 DRs of the same interleaving chain are independent.
6354 2013-04-02 Jason Merrill <jason@redhat.com>
6356 * gdbinit.in (pbb): Use debug fn.
6358 2013-04-02 Lawrence Crowl <crowl@google.com>
6360 * sese.h (struct ivtype_map_elt_s): Remove unused.
6361 (extern debug_ivtype_map): Remove unused.
6362 (extern eq_ivtype_map_elts): Remove unused.
6363 * sese.c (debug_ivtype_map): Removed unused.
6364 (debug_ivtype_map_1): Removed unused.
6365 (debug_ivtype_elt): Remove unused.
6366 (eq_ivtype_map_elts): Remove unused.
6369 2013-04-02 Kai Tietz <ktietz@redhat.com>
6372 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
6373 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
6374 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
6376 (legitimize_pe_coff_symbol): Likewise.
6377 (is_imported_p): New helper-function.
6378 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
6379 for Windows x64 targets.
6380 (ix86_expand_prologue): Optimize for pe-coff targets.
6381 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
6382 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
6383 medium/large code-model.
6384 (legitimize_pic_address): Likewise.
6385 (legitimize_tls_address): Likewise.
6386 (ix86_expand_call): Likewise.
6387 (x86_output_mi_thunk): Likewise.
6388 (get_dllimport_decl): Add new beimport argument.
6389 (construct_plt_address): Don't assert for x64 pe-coff targets.
6390 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
6392 (SYMBOL_FLAG_STUBVAR): New macro.
6393 (SYMBOL_REF_STUBVAR_P): Likewise.
6394 * config/i386/winnt.c (stub_list): New structure.
6395 (stub_head): New local variable.
6396 (i386_pe_record_stub): New function.
6397 (i386_pe_file_end): Emit refptr-stubs.
6399 2013-04-02 Jakub Jelinek <jakub@redhat.com>
6401 PR rtl-optimization/56745
6402 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
6403 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
6406 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
6407 and both of them are MEM_REFs, just compare first argument for
6408 equality and attempt to deal even with differing offsets.
6411 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
6412 of gimple_clobber_p to be MEM_REF.
6413 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
6414 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
6415 after gimplification.
6416 * asan.c (get_mem_ref_of_assignment): Don't instrument
6417 gimple_clobber_p stmts.
6418 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
6419 gimple_clobber_p stmt if they have MEM_REF lhs and
6420 are dead because of another gimple_clobber_p stmt.
6421 * tree-ssa-live.c (clear_unused_block_pointer): Treat
6422 gimple_clobber_p stmts like debug stmts.
6423 (remove_unused_locals): Remove clobbers with MEM_REF lhs
6424 that refer to unused VAR_DECLs or uninitialized values.
6425 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
6426 gimple_clobber_p stmts if they refer to removed parameters.
6427 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
6430 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
6432 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
6433 using SWI48 mode attribute.
6435 2013-04-02 Wei Mi <wmi@google.com>
6437 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
6438 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
6439 *<rotate_insn><mode>3_mask in i386.md.
6441 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
6443 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
6445 2013-04-02 Richard Biener <rguenther@suse.de>
6447 PR tree-optimization/56778
6448 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
6449 Runtime alias tests are not supported for gather loads.
6450 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
6451 stmts referenced from SSA operands before updating SSA form.
6453 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
6454 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6456 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
6457 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
6458 * config/arm/cortex-a53.md: New file.
6459 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
6460 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
6461 * config/arm/arm.c (arm_issue_rate): Likewise.
6462 * config/arm/arm-tune.md: Regenerate
6463 * config/arm/arm-tables.opt: Regenerate.
6464 * config/arm/arm-cores.def: Add cortex-a53.
6466 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
6468 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
6471 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
6473 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
6474 scalar load/store operations using B/H registers.
6475 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
6477 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
6479 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
6481 * config/aarch64/aarch64.c
6482 (aarch64_simd_scalar_immediate_valid_for_move): New.
6483 * config/aarch64/aarch64-protos.h
6484 (aarch64_simd_scalar_immediate_valid_for_move): New.
6485 * config/aarch64/constraints.md (Dh, Dq): New.
6486 * config/aarch64/iterators.md (hq): New.
6488 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
6490 * reorg.c (get_branch_condition): Deal with conditional returns.
6491 (fill_simple_delay_slots): Remove dead code dealing with jumps.
6493 2013-04-01 Wei Mi <wmi@google.com>
6495 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
6496 Truncate operand 2 using %b asm operand modifier.
6497 (*<shift_insn><mode>3_mask): Ditto.
6498 (*<rotate_insn><mode>3_mask): Ditto.
6500 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
6503 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
6505 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
6507 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
6509 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
6511 2013-03-30 Lawrence Crowl <crowl@google.com>
6513 * dse.c (clear_alias_sets): Remove never set.
6514 (disqualified_clear_alias_sets): Remove never set.
6515 (clear_alias_mode_pool): Remove never set.
6516 (dse_step0): Remove condition that is never true.
6517 (canon_address): Remove condition that is never true.
6518 (dse_step7): Remove condition that is never true.
6519 (rest_of_handle_dse): Remove condition that is never true.
6520 (rest_of_handle_dse::did_global): Remove never read from above.
6521 (dse_step2_spill): Remove never called from above.
6522 (dse_step5_spill): Remove never called from above.
6524 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
6526 * doc/md.texi (Standard Names) <casesi>: Update documentation for
6527 JUMP_TABLE_DATA changes.
6528 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
6529 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
6530 (Insns) <jump_table_data>: New entry.
6531 * doc/tm.texi: Regenerate.
6533 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
6535 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
6536 for table jump at the end of a basic block using tablejump_p.
6537 * targhooks.c (default_invalid_within_doloop): Likewise.
6538 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
6539 target hook implementation that is identical to the default hook.
6540 (rs6000_invalid_within_doloop): Remove.
6542 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
6543 unused variable from tablejump_p call.
6545 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
6546 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
6547 (INSN_DELETED_P): Likewise.
6548 (emit_jump_table_data): New prototype.
6549 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
6550 after 4th as unused.
6551 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
6552 * sched-vis.c (print_insn): Likewise.
6553 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
6554 insn for compatibility with back ends that use next_active_insn to
6555 identify jump table data.
6556 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
6557 (remove_insn): Likewise.
6558 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
6560 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
6561 (emit_jump_table_data): New function.
6563 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
6564 basic block, a JUMP_TABLE_DATA never is.
6565 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
6566 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
6567 off from code handling real insns.
6568 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
6569 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
6570 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
6571 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
6572 is not a NONDEBUG_INSN_P.
6573 * ira-costs.c (scan_one_insn): Likewise.
6574 * jump.c (mark_all_labels): Likewise.
6575 (mark_jump_label_1): Likewise.
6576 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
6577 * lra.c (get_insn_freq): Expect all insns reaching here to be in
6579 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
6580 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
6581 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
6582 JUMP_TABLE_DATA_P insns.
6583 (calculate_elim_costs_all_insns): Likewise.
6584 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
6585 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
6586 (delete_output_reload): Code style fixups.
6587 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
6588 insn flags on this non-insn.
6589 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
6590 as scheduling barriers, for pre-change compatibility.
6591 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
6592 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
6594 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
6595 redundant JUMP_TABLE_DATA_P test.
6596 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
6597 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
6598 (frv_for_each_packet): Likewise.
6599 * config/i386/i386.c (min_insn_size): Likewise.
6600 (ix86_avoid_jump_mispredicts): Likewise.
6601 * config/m32r/m32r.c (m32r_is_insn): Likewise.
6602 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
6603 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
6604 (mips16_insn_length): Robustify.
6605 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
6606 (mips16_split_long_branches): Likewise.
6607 * config/pa/pa.c (pa_combine_instructions): Likewise.
6608 * config/rs6000/rs6000.c (get_next_active_insn): Treat
6609 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
6610 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
6611 as contributing to pool range lengths.
6612 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
6613 Remove redundant JUMP_TABLE_DATA_P test.
6614 (sh_loop_align): Likewise.
6615 (split_branches): Likewise.
6616 (sh_insn_length_adjustment): Likewise.
6617 * config/spu/spu.c (get_branch_target): Likewise.
6619 2013-03-29 Jan Hubicka <jh@suse.cz>
6621 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
6622 gcov streaming; stream hot bb threshold to ltrans.
6623 * predict.c (get_hot_bb_threshold): Break out from ....
6624 (maybe_hot_count_p): ... here.
6625 (set_hot_bb_threshold): New function.
6626 * lto-section-in.c (lto_section_name): Add profile.
6627 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
6628 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
6630 (histogram_entry): New structure.
6631 (histogram, histogram_pool): New global vars.
6632 (histogram_hash): New structure.
6633 (histogram_hash::hash): New method.
6634 (histogram_hash::equal): Likewise.
6635 (account_time_size): New function.
6636 (cmp_counts): New function.
6637 (dump_histogram): New function.
6638 (ipa_profile_generate_summary): New function.
6639 (ipa_profile_write_summary): New function.
6640 (ipa_profile_read_summary): New function.
6641 (ipa_profile): Decide on threshold.
6642 (pass_ipa_profile): Add ipa_profile_write_summary and
6643 ipa_profile_read_summary.
6644 * Makefile.in (ipa.o): Update dependencies.
6645 * lto-streamer.h (LTO_section_ipa_profile): New section.
6647 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
6649 * tree.h (VAR_P): New.
6651 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
6654 * doc/invoke.texi ([-fwhole-program]): Fix typo.
6656 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
6658 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
6659 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
6660 (control_flow_insn_p): Likewise.
6661 * cfgrtl.c (duplicate_insn_chain): Likewise.
6662 * final.c (get_attr_length_1): Likewise.
6663 (shorten_branches): Likewise.
6664 (final_scan_insn): Likewise.
6665 * function.c (instantiate_virtual_regs): Likewise.
6666 * gcse.c (insert_insn_end_basic_block): Likewise.
6667 * ira-costs.c (scan_one_insn): Likewise.
6668 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
6669 * lra.c (check_rtl): Likewise.
6670 * reload1.c (elimination_costs_in_insn): Likewise.
6671 * reorg.c (follow_jumps): Likewise.
6673 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
6674 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
6675 (thumb_far_jump_used_p): Likewise.
6676 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
6677 (workaround_speculation): Likewise.
6678 (add_sched_insns_for_speculation): Likewise.
6679 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
6680 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
6681 (frv_for_each_packet): Likewise.
6682 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
6683 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
6684 (final_emit_insn_group_barriers): Likewise.
6685 * config/m32r/m32r.c (m32r_is_insn): Likewise.
6686 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
6687 (mips16_insn_length): Likewise.
6688 * config/pa/pa.c (pa_reorg): Likewise.
6689 (pa_combine_instructions): Likewise.
6690 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
6691 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
6692 (sh_reorg): Likewise.
6693 (split_branches): Likewise.
6694 * config/spu/spu.c (get_branch_target): Likewise.
6696 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
6699 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
6701 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
6702 Fix declaration name.
6704 2013-03-28 Lawrence Crowl <crowl@google.com>
6706 * graphds.h (struct graph.indicies): Remove unused.
6707 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
6708 (SCOP_ORIGINAL_PDDRS): Remove unused.
6709 * sese.h (extern insert_loop_close_phis): Removed unused.
6710 (extern insert_guard_phis): Removed unused.
6711 (extern ivtype_map_elt_info): Removed unused.
6712 (new_ivtype_map_elt): Removed unused.
6713 * sese.c (ivtype_map_elt_info): Removed unused.
6715 2013-03-28 Lawrence Crowl <crowl@google.com>
6717 * Makefile.in: Add several missing include dependences.
6719 (test-dump.o): New. This object is not added to any executable,
6720 but is present for ad-hoc testing.
6722 (debug (const bitmap_head_def &)): New.
6723 (debug (const bitmap_head_def *)): New.
6725 (extern debug (const bitmap_head_def &)): New.
6726 (extern debug (const bitmap_head_def *)): New.
6728 (debug (edge_def &)): New.
6729 (debug (edge_def *)): New.
6731 (debug (basic_block_def &)): New.
6732 (debug (basic_block_def *)): New.
6734 (dump_node (const_tree, int, FILE *)): Correct source file.
6736 (debug (die_struct &)): New.
6737 (debug (die_struct *)): New.
6739 (extern debug (die_struct &)): New.
6740 (extern debug (die_struct *)): New.
6741 * gimple-pretty-print.c
6742 (debug (gimple_statement_d &)): New.
6743 (debug (gimple_statement_d *)): New.
6744 * gimple-pretty-print.h
6745 (extern debug (gimple_statement_d &)): New.
6746 (extern debug (gimple_statement_d *)): New.
6748 (debug (ira_allocno_copy &)): New.
6749 (debug (ira_allocno_copy *)): New.
6750 (debug (ira_allocno &)): New.
6751 (debug (ira_allocno *)): New.
6753 (extern debug (ira_allocno_copy &)): New.
6754 (extern debug (ira_allocno_copy *)): New.
6755 (extern debug (ira_allocno &)): New.
6756 (extern debug (ira_allocno *)): New.
6758 (debug (live_range &)): New.
6759 (debug (live_range *)): New.
6761 (debug (lra_live_range &)): New.
6762 (debug (lra_live_range *)): New.
6764 (debug (lra_live_range &)): New.
6765 (debug (lra_live_range *)): New.
6767 (debug (omega_pb_d &)): New.
6768 (debug (omega_pb_d *)): New.
6770 (extern debug (omega_pb_d &)): New.
6771 (extern debug (omega_pb_d *)): New.
6773 (debug (const rtx_def &)): New.
6774 (debug (const rtx_def *)): New.
6776 (debug_tree (tree): Move within file.
6777 (debug_raw (const tree_node &)): New.
6778 (debug_raw (const tree_node *)): New.
6779 (dump_tree_via_hooks (const tree_node *, int)): New.
6780 (debug (const tree_node &)): New.
6781 (debug (const tree_node *)): New.
6782 (debug_verbose (const tree_node &)): New.
6783 (debug_verbose (const tree_node *)): New.
6784 (debug_head (const tree_node &)): New.
6785 (debug_head (const tree_node *)): New.
6786 (debug_body (const tree_node &)): New.
6787 (debug_body (const tree_node *)): New.
6788 (debug_vec_tree (tree): Move and reimplement in terms of dump.
6789 (debug (vec<tree, va_gc> &)): New.
6790 (debug (vec<tree, va_gc> *)): New.
6792 (extern debug (const rtx_def &)): New.
6793 (extern debug (const rtx_def *)): New.
6795 (debug_raw (simple_bitmap_def &)): New.
6796 (debug_raw (simple_bitmap_def *)): New.
6797 (debug (simple_bitmap_def &)): New.
6798 (debug (simple_bitmap_def *)): New.
6800 (extern debug (simple_bitmap_def &)): New.
6801 (extern debug (simple_bitmap_def *)): New.
6802 (extern debug_raw (simple_bitmap_def &)): New.
6803 (extern debug_raw (simple_bitmap_def *)): New.
6805 (debug (vinsn_def &)): New.
6806 (debug (vinsn_def *)): New.
6807 (debug_verbose (vinsn_def &)): New.
6808 (debug_verbose (vinsn_def *)): New.
6809 (debug (expr_def &)): New.
6810 (debug (expr_def *)): New.
6811 (debug_verbose (expr_def &)): New.
6812 (debug_verbose (expr_def *)): New.
6813 (debug (vec<rtx> &)): New.
6814 (debug (vec<rtx> *)): New.
6816 (extern debug (vinsn_def &)): New.
6817 (extern debug (vinsn_def *)): New.
6818 (extern debug_verbose (vinsn_def &)): New.
6819 (extern debug_verbose (vinsn_def *)): New.
6820 (extern debug (expr_def &)): New.
6821 (extern debug (expr_def *)): New.
6822 (extern debug_verbose (expr_def &)): New.
6823 (extern debug_verbose (expr_def *)): New.
6824 (extern debug (vec<rtx> &)): New.
6825 (extern debug (vec<rtx> *)): New.
6827 (_list_iter_cond_expr): Make inline instead of static.
6829 (debug (sreal &)): New.
6830 (debug (sreal *)): New.
6832 (extern debug (sreal &)): New.
6833 (extern debug (sreal *)): New.
6835 (extern debug_raw (const tree_node &)): New.
6836 (extern debug_raw (const tree_node *)): New.
6837 (extern debug (const tree_node &)): New.
6838 (extern debug (const tree_node *)): New.
6839 (extern debug_verbose (const tree_node &)): New.
6840 (extern debug_verbose (const tree_node *)): New.
6841 (extern debug_head (const tree_node &)): New.
6842 (extern debug_head (const tree_node *)): New.
6843 (extern debug_body (const tree_node &)): New.
6844 (extern debug_body (const tree_node *)): New.
6845 (extern debug (vec<tree, va_gc> &)): New.
6846 (extern debug (vec<tree, va_gc> *)): New.
6848 (debug (struct loop &)): New.
6849 (debug (struct loop *)): New.
6850 (debug_verbose (struct loop &)): New.
6851 (debug_verbose (struct loop *)): New.
6852 * tree-dump.c: Add header dependence.
6854 (extern debug (struct loop &)): New.
6855 (extern debug (struct loop *)): New.
6856 (extern debug_verbose (struct loop &)): New.
6857 (extern debug_verbose (struct loop *)): New.
6859 (debug (data_reference &)): New.
6860 (debug (data_reference *)): New.
6861 (debug (vec<data_reference_p> &)): New.
6862 (debug (vec<data_reference_p> *)): New.
6863 (debug (vec<ddr_p> &)): New.
6864 (debug (vec<ddr_p> *)): New.
6866 (extern debug (data_reference &)): New.
6867 (extern debug (data_reference *)): New.
6868 (extern debug (vec<data_reference_p> &)): New.
6869 (extern debug (vec<data_reference_p> *)): New.
6870 (extern debug (vec<ddr_p> &)): New.
6871 (extern debug (vec<ddr_p> *)): New.
6873 (debug (pt_solution &)): New.
6874 (debug (pt_solution *)): New.
6876 (extern debug (pt_solution &)): New.
6877 (extern debug (pt_solution *)): New.
6879 (debug (_var_map &)): New.
6880 (debug (_var_map *)): New.
6881 (debug (tree_live_info_d &)): New.
6882 (debug (tree_live_info_d *)): New.
6884 (extern debug (_var_map &)): New.
6885 (extern debug (_var_map *)): New.
6886 (extern debug (tree_live_info_d &)): New.
6887 (extern debug (tree_live_info_d *)): New.
6889 2013-03-28 Jan Hubicka <jh@suse.cz>
6891 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
6893 2013-03-28 Ian Bolton <ian.bolton@arm.com>
6895 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
6896 record only when desired or required.
6898 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
6900 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
6901 *vec_extractv2di_1_rex64. Use x64 isa attribute.
6903 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6905 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
6906 (*andsi3_compare0_uxtw): New pattern.
6907 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
6908 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
6910 2013-03-28 Jan Hubicka <jh@suse.cz>
6912 * data-streamer-in.c (streamer_read_gcov_count): New function.
6913 * gimple-streamer-out.c: Include value-prof.h.
6914 (output_gimple_stmt): Output histogram.
6915 (output_bb): Use streamer_write_gcov_count.
6916 * value-prof.c: Include data-streamer.h
6917 (dump_histogram_value): Add HIST_TYPE_MAX.
6918 (stream_out_histogram_value): New function.
6919 (stream_in_histogram_value): New function.
6920 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
6921 (stream_out_histogram_value, stream_in_histogram_value): Declare.
6922 * data-streamer-out.c (streamer_write_gcov_count): New function.
6923 (streamer_write_gcov_count_stream): New function.
6924 * lto-cgraph.c (lto_output_edge): Update counter streaming.
6925 (lto_output_node): Likewise.
6926 (input_node, input_edge): Likewise.
6927 * lto-streamer-out.c (output_cfg): Update streaming.
6928 * lto-streamer-in.c (input_cfg): Likewise.
6929 * data-streamer.h (streamer_write_gcov_count,
6930 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
6931 * gimple-streamer-in.c: Include value-prof.h
6932 (input_gimple_stmt): Input histograms.
6933 (input_bb): Update profile streaming.
6935 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
6937 * genmodes.c (emit_max_int): New function.
6938 (emit_insn_modes_h): Added call to emit_max_function.
6939 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
6941 * machmode.def: Fixed comment.
6943 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
6945 * combine.c (try_combine): Removed useless assert.
6946 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
6948 2013-03-28 Marek Polacek <polacek@redhat.com>
6949 Richard Biener <rguenther@suse.de>
6951 PR tree-optimization/56695
6952 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
6953 build signed result of a vector comparison.
6954 * tree-cfg.c (verify_gimple_comparison): Check that a result
6955 of a vector comparison has signed type.
6957 2013-03-28 Richard Biener <rguenther@suse.de>
6959 PR tree-optimization/37021
6960 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
6961 do not restrict gaps between groups.
6962 * tree-vect-stmts.c (vectorizable_load): Properly account for
6963 a gap between groups.
6965 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
6967 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
6968 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
6971 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
6973 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
6974 * doc/extend.texi (Named Address Spaces): Ditto.
6975 (Variable Attributes): Ditto.
6977 2013-03-27 Kai Tietz <ktietz@redhat.com>
6979 * config.build: Add support for cygwin x64 target.
6980 * config.gcc: Likewise.
6981 * config.host: Likewise.
6982 * configure.ac: Likewise
6983 * configure: Regenerated.
6985 2013-03-27 Kai Tietz <ktietz@redhat.com>
6987 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
6988 * config/i386/t-cygwin-w64: New file.
6989 * config/i386/cygwin-w64.h: New file.
6990 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
6991 and add support for x64-cygwin target.
6992 (CPP_SPEC): Likewise.
6993 (CXX_WRAP_SPEC_LIST): Undefine before define.
6994 (LIBGCJ_SONAME): Use 15 as version.
6996 2013-03-27 Richard Biener <rguenther@suse.de>
6998 PR tree-optimization/56716
6999 * tree-ssa-structalias.c (perform_var_substitution): Adjust
7000 dumping for ref nodes.
7002 2013-03-27 Martin Jambor <mjambor@suse.cz>
7004 PR tree-optimization/55334
7005 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
7006 restricted pointers to arrays.
7008 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
7010 * Makefile.in (.SUFFIXES): Add .cc.
7011 (.c.o): Apply same recipe for implicit rule .cc.o.
7013 2013-03-27 Richard Biener <rguenther@suse.de>
7015 PR tree-optimization/37021
7016 * tree-vect-data-refs.c (vect_check_strided_load): Allow
7017 REALPART/IMAGPART_EXPRs around the supported refs.
7018 * tree-ssa-structalias.c (find_func_aliases): Assume that
7019 floating-point values are not used to transfer pointers.
7021 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
7023 * target.def (TARGET_HAS_IFUNC_P): New target hook.
7024 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
7025 * doc/tm.texi: Regenerate.
7026 * targhooks.h (default_has_ifunc_p): New.
7027 * targhooks.c (default_has_ifunc_p): Ditto.
7028 * config/linux-protos.h: New file.
7029 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
7030 this hook for linux which disables support of indirect functions in
7032 * config/linux-android.c: New file.
7033 * config/t-linux-android.c: Ditto.
7034 * config.gcc: Added new object file linux-android.o.
7035 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
7036 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
7037 * varasm.c (do_assemble_alias): Likewise.
7038 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
7039 doesn't support indirect functions.
7040 * configure: Regenerate.
7042 2013-03-27 Bin Cheng <bin.cheng@arm.com>
7045 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
7046 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
7049 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7051 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
7053 2013-03-27 Terry Guo <terry.guo@arm.com>
7055 * config/arm/arm-cores.def: Added core cortex-r7.
7056 * config/arm/arm-tune.md: Regenerated.
7057 * config/arm/arm-tables.opt: Regenerated.
7058 * doc/invoke.texi: Added entry for core cortex-r7.
7060 2013-03-27 Walter Lee <walt@tilera.com>
7062 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
7063 double-decrement of next_scratch_regno.
7065 2013-03-27 Walter Lee <walt@tilera.com>
7067 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
7069 (insn_v1mulus): Ditto.
7070 (insn_v2muls): Ditto.
7072 2013-03-27 Walter Lee <walt@tilera.com>
7074 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
7075 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
7077 2013-03-27 Walter Lee <walt@tilera.com>
7079 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
7080 (*sibcall_value): Ditto.
7082 2013-03-27 Walter Lee <walt@tilera.com>
7084 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
7085 (insn_mnz_v8qi): ... this ...
7086 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
7088 (insn_v<n>mnz): Replaced by ...
7089 (insn_v1mnz): ... this ...
7090 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
7092 (insn_mz_<mode>): Replaced by ...
7093 (insn_mz_v8qi): ... this ...
7094 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
7096 (insn_v<n>mz): Replaced by ...
7097 (insn_v1mz): ... this ...
7098 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
7101 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
7103 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
7105 2013-03-26 Roland McGrath <mcgrathr@google.com>
7107 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
7108 than fprintf with a non-constant, non-format string.
7110 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
7112 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
7113 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
7114 operand 0 predicate.
7115 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
7116 attribute. Use general_x64nomem_operand as operand 1 predicate.
7117 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
7118 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
7119 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
7120 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
7121 (mov<mode>_insv_1): Remove expander. Merge insn with
7122 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
7123 Use general_x64nomem_operand as operand 1 predicate.
7124 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
7125 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
7126 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
7127 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
7128 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
7129 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
7130 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
7131 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
7132 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
7133 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
7134 (general_x64nomem_operand): Ditto.
7136 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
7138 * config/rtems.opt: Add -pthread option.
7140 2013-03-26 Richard Biener <rguenther@suse.de>
7142 * alias.c (find_base_term): Avoid redundant and not used recursion.
7143 (base_alias_check): Get the initial base term from the caller.
7144 (true_dependence_1): Compute and pass base terms to base_alias_check.
7145 (write_dependence_p): Likewise.
7146 (may_alias_p): Likewise.
7148 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
7150 * config/aarch64/aarch64.c (aarch64_classify_address): Support
7151 PC-relative load in SI modes and above only.
7153 2013-03-26 Xinyu Qi <xyqi@marvell.com>
7155 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
7156 * config/arm/iwmmxt.md (WCGR0): Update.
7157 (WCGR1, WCGR2, WCGR3): Likewise.
7159 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
7161 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
7162 Use x64 and nox64 isa attributes.
7164 2013-03-26 Richard Biener <rguenther@suse.de>
7166 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
7167 alignment computations and rely on get_object_alignment_1
7168 for the !TYPE_P case.
7169 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
7171 2013-03-26 Walter Lee <walt@tilera.com>
7173 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
7174 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
7176 2013-03-25 Jeff Law <law@redhat.com>
7178 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
7179 check for INTEGRAL_TYPE_P that was missing due to checking in
7180 wrong version of prior patch.
7182 2013-03-25 Walter Lee <walt@tilera.com>
7184 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
7185 TILEGX_INSN_SHUFFLEBYTES1.
7186 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
7188 (tilegx_builtins): Ditto.
7189 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
7191 2013-03-25 Walter Lee <walt@tilera.com>
7193 * config/tilegx/tilegx.md (floatsisf2): New pattern.
7194 (floatunssisf2): New pattern.
7195 (floatsidf2): New pattern.
7196 (floatunssidf2): New pattern.
7198 2013-03-25 Walter Lee <walt@tilera.com>
7200 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
7201 tests for constraint J, K, N, P.
7203 2013-03-25 Walter Lee <walt@tilera.com>
7205 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
7206 Use indirect/pcrel encoding.
7207 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
7210 2013-03-25 Steve Ellcey <sellcey@mips.com>
7212 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
7213 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
7214 * config/mips/mips.c (mips_option_override): Set IMADD default.
7215 * config/mips/mips.h (PTF_AVOID_IMADD): New.
7216 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
7217 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
7218 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
7219 * doc/invoke.texi (-mimadd/-mno-imadd): New.
7221 2013-03-25 Jeff Law <law@redhat.com>
7223 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
7224 slightly to avoid creating and folding useless trees. Simplify
7225 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
7227 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
7229 * config/i386/i386.md (*zero_extendsidi2): Merge with
7230 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
7231 * config/i386/predicates.md (x86_64_zext_operand): Rename from
7232 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
7233 targets. Clarify comment.
7235 2013-03-25 Martin Jambor <mjambor@suse.cz>
7237 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
7238 pass-through jump functions differently.
7239 (ipa_read_jump_function): Likewise. Also use setter functions to set
7242 2013-03-25 Martin Jambor <mjambor@suse.cz>
7244 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
7245 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
7247 (ipa_get_indirect_edge_target): New function.
7248 (devirtualization_time_bonus): New parameter known_aggs, pass it to
7249 ipa_get_indirect_edge_target. Update all callers.
7250 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
7251 ipa_get_indirect_edge_target_1 instead of calling
7252 ipa_get_indirect_edge_target.
7253 (create_specialized_node): Pass aggvlas to
7254 ipcp_discover_new_direct_edges.
7256 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7258 * config/arm/arm.md (f_sels, f_seld): New types.
7259 (*cmov<mode>): New pattern.
7260 * config/arm/predicates.md (arm_vsel_comparison_operator): New
7263 2013-03-25 Kai Tietz <ktietz@redhat.com>
7265 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
7266 POSIX-printf for mingw-hosted builds.
7268 2013-03-25 Richard Biener <rguenther@suse.de>
7271 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
7272 must-not-throw stmt location.
7274 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7276 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
7277 Emit load-acquire versions when acq is true.
7278 (arm_emit_store_exclusive): Add rel parameter.
7279 Emit store-release versions when rel is true.
7280 (arm_split_compare_and_swap): Use acquire-release instructions
7282 of barriers when appropriate.
7283 (arm_split_atomic_op): Likewise.
7284 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
7285 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
7286 (VUNSPEC_SLX): Likewise.
7287 (VUNSPEC_LDA): Likewise.
7288 (VUNSPEC_STL): Likewise.
7289 * config/arm/sync.md (atomic_load<mode>): New pattern.
7290 (atomic_store<mode>): Likewise.
7291 (arm_load_acquire_exclusive<mode>): Likewise.
7292 (arm_load_acquire_exclusivesi): Likewise.
7293 (arm_load_acquire_exclusivedi): Likewise.
7294 (arm_store_release_exclusive<mode>): Likewise.
7296 2013-03-25 Catherine Moore <clm@codesourcery.com>
7298 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
7299 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
7300 * config/mip/predicates.md (lwsp_swsp_operand,
7301 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
7302 sb16_operand, db4_operand, db7_operand, ib3_operand,
7303 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
7304 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
7305 andi16_operand): New predicates.
7306 * config/mips/mips.md (compression): New attribute.
7307 (enabled): New attribute.
7308 (length): Consider compression in computing length.
7309 (shift_compression): New code attribute.
7310 (*add<mode>3): New operands. Record compression.
7311 (sub<mode>3): Likewise.
7312 (one_cmpl<mode>2): Likewise.
7313 (*and<mode>3): Likewise.
7314 (*ior<mode>3): Likewise.
7315 (unnamed pattern for xor): Likewise.
7316 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
7317 (*<optab><mode>3): Likewise.
7318 (*mov<mode>_internal: Likewise.
7319 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
7320 (mips_unsigned_immediate_p): New.
7321 (umips_lwsp_swsp_address_p): New.
7322 (m16_based_address_p): New.
7323 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
7324 (mips_unsigned_immediate_p): New prototype.
7325 (lwsp_swsp_address_p): New prototype.
7326 (m16_based_address_p): New prototype.
7327 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
7328 (mips_signed_immediate_p): New function.
7329 (m16_based_address_p): New function.
7330 (lwsp_swsp_address_p): New function.
7331 (mips_print_operand_punctuation): Recognize short delay slot insns
7332 for microMIPS.add<mode>3"
7334 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7337 * config/arm/iterators.md (v_cmp_result): New mode attribute.
7338 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
7340 2013-03-25 Richard Biener <rguenther@suse.de>
7342 PR tree-optimization/56689
7343 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
7346 2013-03-25 Richard Biener <rguenther@suse.de>
7348 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
7350 (memory_references): Likewise.
7351 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
7352 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
7353 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
7354 (gather_mem_refs_in_loops): Fold into ...
7355 (analyze_memory_references): ... this. Move initialization
7356 to tree_ssa_lim_initialize.
7357 (fill_always_executed_in): Rename to ...
7358 (fill_always_executed_in_1): ... this.
7359 (fill_always_executed_in): Move contains_call computation to
7360 this new function from ...
7361 (tree_ssa_lim_initialize): ... here.
7362 (tree_ssa_lim): Call fill_always_executed_in.
7364 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
7366 * postreload.c (reload_combine): Fix code detecting returns.
7368 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
7370 * function.c (emit_use_return_register_into_block): On cc0 targets,
7371 do not emit the sequence between cc0 setter and user.
7373 2013-03-25 Kai Tietz <ktietz@redhat.com>
7375 * config/i386/predicates.md (local_symbolic_operand): Interpret
7376 dll-imported symbols as none-local.
7378 2013-03-25 Richard Biener <rguenther@suse.de>
7380 * tree-ssa-loop-im.c (struct depend): Remove.
7381 (struct lim_aux_data): Make depends a vec of gimples.
7382 (free_lim_aux_data): Adjust.
7383 (add_dependency): Likewise.
7384 (set_level): Likewise.
7386 2013-03-25 Richard Biener <rguenther@suse.de>
7389 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
7390 the pointer returned by calls with ECF_MALLOC set.
7392 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
7394 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
7396 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
7398 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
7399 using MMXMODE mode iterator.
7400 (*move<mode>_internal): Merge with *movv2sf_internal and
7401 *movv2sf_internal_rex64 using MMXMODE mode iterator.
7403 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
7405 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
7406 (record_last_mem_set_info): Likewise.
7408 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
7409 of XNEWVEC followed by memset.
7410 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
7412 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
7414 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
7415 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
7416 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
7417 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
7418 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
7419 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
7420 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
7421 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
7422 BARRIER_P instead of GET_CODE.
7424 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
7426 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
7427 inaccuracy in the probing code.
7429 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
7430 (ctrapdi4): Likewise.
7432 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
7434 * calls.c (expand_call): Add missing guard to code handling return
7435 of non-BLKmode structures in MSB.
7436 * function.c (expand_function_end): Likewise.
7438 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
7440 * combine.c (try_combine): Adjust comment. Do not add the set of
7441 insn #0 if the destination indirectly is set or dies in insn #2.
7442 Tidy up code to distribute a new note.
7444 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
7446 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
7447 also for alternatives 16 and 17.
7449 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
7451 * config/i386/sse.md (*mov<mode>_internal): Merge with
7452 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
7453 Emit insn template depending on type attribute. Use
7454 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
7455 movd instead of movq mnemonic for interunit moves. Rewrite mode
7456 attribute calculation. Remove unit attribute calculation.
7457 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
7458 Set prefix_data16 attribute for DImode ssemov types.
7459 Use Ym instead of y for SSE-MMX conversion alternatives.
7460 Reorder operand constraints.
7462 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
7464 * df.h (df_insn_delete): Adjust prototype.
7465 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
7466 and let it decide whether mark the basic block dirty.
7467 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
7468 * df-scan.c (df_insn_info_delete): New helper function, split
7469 off from df_insn_delete.
7470 (df_scan_free_bb_info): Use it.
7471 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
7473 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
7474 that the insn is actually an insn and it has a non-NULL basic block.
7475 Do not mark basic block dirty if only deleting a DEBUG_INSN.
7477 2013-03-22 Richard Biener <rguenther@suse.de>
7479 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
7481 (mem_ref_alloc): Do not allocate them.
7482 (refs_independent_p): Do not query or maintain a cache.
7484 2013-03-22 Richard Biener <rguenther@suse.de>
7486 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
7487 (gather_mem_refs_in_loops): Do not compute it.
7488 (analyze_memory_references): Do not allocate it.
7489 (tree_ssa_lim_finalize): Do not free it.
7490 (for_all_locs_in_loop): Do not query all_refs_in_loop.
7492 2013-03-22 Richard Biener <rguenther@suse.de>
7494 * is-a.h (as_a): Use gcc_checking_assert.
7496 2013-03-22 Ian Bolton <ian.bolton@arm.com>
7498 * config/aarch64/aarch64.c (aarch64_print_operand): New
7499 format specifier for printing a constant in hex.
7500 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
7501 format specifier for printing second operand.
7503 2013-03-22 Richard Biener <rguenther@suse.de>
7505 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
7507 (gather_mem_refs_in_loops): Perform store accumulation here.
7508 (create_vop_ref_mapping_loop): Remove.
7509 (create_vop_ref_mapping): Likewise.
7510 (analyze_memory_references): Initialize refs_stored_in_loop.
7511 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
7512 (record_indep_loop): Remove.
7513 (record_dep_loop): New function.
7514 (ref_indep_loop_p_1): Adjust to only walk over references
7515 in the loop, not its subloops.
7516 (ref_indep_loop_p): Rename to ...
7517 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
7518 maintaining a more fine-grained cache.
7519 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
7520 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
7522 2013-03-22 Richard Biener <rguenther@suse.de>
7524 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
7525 (struct mem_ref): Make accesses_in_loop a vec of a vec of
7526 aggregate mem_ref_loc.
7527 (free_mem_ref_locs): Inline into ...
7528 (memref_free): ... this and adjust.
7529 (mem_ref_alloc): Adjust.
7530 (mem_ref_locs_alloc): Remove.
7531 (record_mem_ref_loc): Adjust.
7532 (get_all_locs_in_loop): Rewrite into ...
7533 (for_all_locs_in_loop): ... this iterator.
7534 (rewrite_mem_ref_loc): New functor.
7535 (rewrite_mem_refs): Use for_all_locs_in_loop.
7536 (sm_set_flag_if_changed): New functor.
7537 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
7538 (ref_always_accessed): New functor.
7539 (ref_always_accessed_p): Use for_all_locs_in_loop.
7541 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
7543 * tree-pass.h (PROP_gimple_lvec): New.
7544 * passes.c (dump_properties): Handle PROP_gimple_lvec.
7545 (init_optimization_passes): Move pass_lower_vector.
7546 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
7548 (pass_lower_vector): Provide PROP_gimple_lvec.
7549 (pass_lower_vector_ssa): Likewise.
7550 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
7552 2013-03-21 Mark Wielaard <mjw@redhat.com>
7554 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
7556 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
7558 * config/i386/i386.md (*movdi_internal): Disparage slightly
7559 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
7560 conversion alternatives.
7562 2013-03-21 Jakub Jelinek <jakub@redhat.com>
7565 * diagnostic.def (DK_WERROR): New kind.
7566 * diagnostic.h (werrorcount): Define.
7567 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
7568 promoted to DK_ERROR, increment DK_WERROR counter instead of
7570 * toplev.c (toplev_main): Call print_ignored_options even if
7571 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
7572 even if just werrorcount is non-zero.
7575 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
7577 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
7578 (string_cst_pool_decl): New function.
7579 (optimize_one_addr_into_implicit_ptr): New function.
7580 (resolve_addr_in_expr): Optimize DWARF location expression
7581 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
7582 which doesn't live in memory, but has DW_AT_location or
7583 DW_AT_const_value, or refers to a string literal, into
7584 DW_OP_GNU_implicit_pointer.
7585 (optimize_location_into_implicit_ptr): New function.
7586 (resolve_addr): If removing DW_AT_location of a variable because
7587 it was DW_OP_addr of address of the variable, but the variable doesn't
7588 live in memory, try to emit const value attribute for the initializer.
7590 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
7592 * tree.h (VECTOR_TYPE_P): New macro.
7593 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
7595 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
7596 VEC_COND_EXPR cannot be lvalues.
7597 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
7599 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
7601 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
7602 Restrict the transformation to equal modes.
7604 2013-03-21 Richard Biener <rguenther@suse.de>
7606 PR tree-optimization/39326
7607 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
7608 (MEM_ANALYZABLE): Adjust.
7609 (record_mem_ref_loc): Move bitmap ops ...
7610 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
7611 unanalyzable refs, do not record locations for it.
7612 (analyze_memory_references): Allocate ref zero as shared
7614 (refs_independent_p): Do not test for unanalyzed mems here.
7615 (ref_indep_loop_p_1): Special-case disambiguation against
7617 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
7619 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
7621 * config/arm/arm-protos.h (tune_params): Add
7622 prefer_neon_for_64bits field.
7623 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
7624 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
7625 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
7626 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
7627 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
7628 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
7629 (arm_option_override): Handle -mneon-for-64bits new option.
7630 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
7631 (prefer_neon_for_64bits): Declare new variable.
7632 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
7633 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
7634 (arch_enabled): Handle new arch types. Remove support for onlya8
7636 (one_cmpldi2): Use new arch names.
7637 (zero_extend<mode>di2, extend<mode>di2): Ditto.
7638 * config/arm/arm.opt (mneon-for-64bits): Add option.
7639 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
7640 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
7641 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
7643 * doc/invoke.texi (-mneon-for-64bits): Document.
7645 2013-03-21 Richard Biener <rguenther@suse.de>
7647 PR tree-optimization/39326
7648 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
7649 (sort_bbs_in_loop_postorder_cmp): New function.
7650 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
7652 2013-03-21 Richard Biener <rguenther@suse.de>
7654 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
7655 (vect_insert_into_interleaving_chain): Likewise.
7656 (vect_drs_dependent_in_basic_block): Inline ...
7657 (vect_slp_analyze_data_ref_dependence): ... here. New function,
7659 (vect_analyze_data_ref_dependence): ... here. Simplify.
7660 (vect_check_interleaving): Simplify.
7661 (vect_analyze_data_ref_dependences): Likewise. Split out ...
7662 (vect_slp_analyze_data_ref_dependences): ... this new function.
7663 (dr_group_sort_cmp): New function.
7664 (vect_analyze_data_ref_accesses): Compute data-reference groups
7665 here instead of in vect_analyze_data_ref_dependence. Use
7666 a more efficient algorithm.
7667 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
7668 vect_slp_analyze_data_ref_dependences. Call
7669 vect_analyze_data_ref_accesses earlier.
7670 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
7671 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
7672 (vect_slp_analyze_data_ref_dependences): New prototype.
7674 2013-03-21 Richard Biener <rguenther@suse.de>
7676 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
7677 ref is stored in the loop.
7678 (find_refs_for_sm): Walk only over all stores.
7679 (store_motion_loop): Allocate from lim_bitmap_obstack.
7680 (store_motion): Likewise.
7682 2013-03-21 Richard Biener <rguenther@suse.de>
7684 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
7685 Update virtual SSA form.
7687 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7689 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
7690 * configure: Regenerate.
7691 * config.in: Regenerate.
7692 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
7693 if !HAVE_LD_EH_FRAME_CIEV3.
7695 2013-03-21 Richard Biener <rguenther@suse.de>
7697 * tree-cfg.c (verify_expr_no_block): New function.
7698 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
7699 nor DECL_VALUE_EXPR have locations with associated blocks.
7700 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
7701 (clear_unused_block_pointer): Remove code dealing with
7702 blocks in DECL_DEBUG_EXPR locations.
7704 2013-03-21 Richard Biener <rguenther@suse.de>
7706 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
7707 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
7708 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
7709 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
7710 instead of DECL_DEBUG_EXPR_IS_FROM.
7711 * gimplify.c (gimplify_modify_expr): Likewise.
7712 * tree-cfg.c (verify_expr_location_1): Likewise.
7713 * tree-complex.c (create_one_component_var): Likewise.
7714 * tree-sra.c (create_access_replacement): Likewise.
7715 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
7716 (clear_unused_block_pointer): Likewise.
7717 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
7718 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
7719 * var-tracking.c (var_debug_decl): Likewise.
7720 (track_expr_p): Likewise.
7721 * tree-inline.c (add_local_variables): Likewise. Set
7722 DECL_HAS_DEBUG_EXPR_P after copying it.
7723 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
7724 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
7726 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
7729 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
7730 * configure: Regenerate.
7731 * config.in: Regenerate.
7732 * config/i386/i386.md (*movdf_internal): Use
7733 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
7734 movd instead of movq mnemonic for interunit moves.
7735 (*movdi_internal): Ditto.
7737 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7739 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
7740 (abd<mode>_3): New pattern.
7741 (aba<mode>_3): New pattern.
7742 (fabd<mode>_3): New pattern.
7744 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7746 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
7747 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
7748 occurrence of REGISTER_PREFIX as its empty string.
7750 2013-03-20 Jeff Law <law@redhat.com>
7752 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
7753 addititional equivalences for equality comparisons between an SSA_NAME
7754 and a constant where the SSA_NAME was set from a widening conversion.
7756 2013-03-20 Walter Lee <walt@tilera.com>
7758 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
7760 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
7762 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
7763 depending on type attribute.
7764 (*movti_internal): Ditto.
7765 (*movtf_internal): Ditto.
7766 (*movxf_internal): Ditto.
7767 (*movdf_internal): Ditto.
7768 (*movsf_internal): Ditto.
7770 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
7772 * config/i386/i386.md (*movti_internal): Set prefix attribute to
7773 maybe_vex for sselog1 and ssemov types.
7774 (*movdi_internal): Reorder operand constraints.
7775 (*movsi_internal): Ditto. Set prefix attribute to
7776 maybe_vex for sselog1 and ssemov types.
7777 (*movtf_internal): Set prefix attribute to maybe_vex
7778 for sselog1 and ssemov types.
7779 (*movdf_internal): Ditto. Set prefix_data16 attribute for
7780 DImode ssemov types. Reorder operand constraints.
7781 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
7782 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
7783 attribute for SImode ssemov types. Reorder operand constraints.
7785 2013-03-20 Martin Jambor <mjambor@suse.cz>
7787 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
7788 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
7790 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
7792 * config/rs6000/predicates.md (indexed_address, update_address_mem
7793 update_indexed_address_mem): New predicates.
7794 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
7795 attribute for load/store instructions.
7796 * config/rs6000/dfp.md (movsd_store): Likewise.
7797 (movsd_load): Likewise.
7798 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
7799 (unnamed HI->DI extend define_insn): Likewise.
7800 (unnamed SI->DI extend define_insn): Likewise.
7801 (unnamed QI->SI extend define_insn): Likewise.
7802 (unnamed QI->HI extend define_insn): Likewise.
7803 (unnamed HI->SI extend define_insn): Likewise.
7804 (unnamed HI->SI extend define_insn): Likewise.
7805 (extendsfdf2_fpr): Likewise.
7806 (movsi_internal1): Likewise.
7807 (movsi_internal1_single): Likewise.
7808 (movhi_internal): Likewise.
7809 (movqi_internal): Likewise.
7810 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
7811 attribute for load/store instructions.
7812 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
7814 (mov<mode>_softfloat): Likewise.
7815 (mov<mode>_hardfloat32): Likewise.
7816 (mov<mode>_hardfloat64): Likewise.
7817 (mov<mode>_softfloat64): Likewise.
7818 (movdi_internal32): Likewise.
7819 (movdi_internal64): Likewise.
7820 (probe_stack_<mode>): Likewise.
7822 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
7824 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
7825 floating point, and decimal floating point to reload iterator.
7827 * config/rs6000/constraints.md (wl constraint): New constraints to
7828 return FLOAT_REGS if certain options are used to reduce the number
7829 of separate patterns that exist in the file.
7830 (wx constraint): Likewise.
7831 (wz constraint): Likewise.
7833 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
7834 -mdebug=reg, print wg, wl, wx, and wz constraints.
7835 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
7836 Initialize the reload functions for 64-bit binary/decimal floating
7838 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
7839 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
7840 create the buffer on the stack to overcome not having a 32-bit
7842 (rs6000_emit_move): Likewise.
7843 (rs6000_secondary_memory_needed_rtx): Likewise.
7844 (rs6000_alloc_sdmode_stack_slot): Likewise.
7845 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
7846 via xxlxor, just like DFmode 0.0.
7848 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
7849 define as 1 if we are running on a power7 or newer.
7850 (enum r6000_reg_class_enum): Add new constraints.
7852 * config/rs6000/dfp.md (movsd): Delete, combine with binary
7853 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
7854 with other moves by using conditional constraits (wg). Use LFIWZX
7855 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
7856 (movsd splitter): Likewise.
7857 (movsd_hardfloat): Likewise.
7858 (movsd_softfloat): Likewise.
7860 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
7861 binary and decimal floating point moves.
7862 (fmove_ok): New attributes to combine binary and decimal floating
7863 point moves, and to combine power6x (mfpgpr) moves along normal
7865 (real_value_to_target): Likewise.
7872 (movsf): Combine binary and decimal floating point moves. Combine
7873 power6x (mfpgpr) moves with other moves by using conditional
7874 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
7875 (mov<mode> for SFmode/SDmode); Likewise.
7876 (SFmode/SDmode splitters): Likewise.
7877 (movsf_hardfloat): Likewise.
7878 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
7879 (movsf_softfloat): Likewise.
7880 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
7882 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
7883 wx and wz constraints.
7885 * config/rs6000/constraints.md (wg constraint): New constraint to
7886 return FLOAT_REGS if -mmfpgpr (power6x) was used.
7888 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
7891 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
7892 -mdebug=reg, print wg, wl, wx, and wz constraints.
7893 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
7894 Initialize the reload functions for 64-bit binary/decimal floating
7896 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
7897 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
7898 create the buffer on the stack to overcome not having a 32-bit
7900 (rs6000_emit_move): Likewise.
7901 (rs6000_secondary_memory_needed_rtx): Likewise.
7902 (rs6000_alloc_sdmode_stack_slot): Likewise.
7903 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
7904 via xxlxor, just like DFmode 0.0.
7906 * config/rs6000/dfp.md (movdd): Delete, combine with binary
7907 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
7908 with other moves by using conditional constraits (wg). Use LFIWZX
7909 and STFIWX for loading SDmode on power7.
7910 (movdd splitters): Likewise.
7911 (movdd_hardfloat32): Likewise.
7912 (movdd_softfloat32): Likewise.
7913 (movdd_hardfloat64_mfpgpr): Likewise.
7914 (movdd_hardfloat64): Likewise.
7915 (movdd_softfloat64): Likewise.
7917 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
7918 64-bit binary and decimal floating point moves.
7919 (FMOVE64X): Likewise.
7920 (movdf): Combine 64-bit binary and decimal floating point moves.
7921 Combine power6x (mfpgpr) moves with other moves by using
7922 conditional constraits (wg).
7923 (mov<mode> for DFmode/DDmode): Likewise.
7924 (DFmode/DDmode splitters): Likewise.
7925 (movdf_hardfloat32): Likewise.
7926 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
7927 (movdf_softfloat32): Likewise.
7928 (movdf_hardfloat64_mfpgpr): Likewise.
7929 (movdf_hardfloat64): Likewise.
7930 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
7931 (movdf_softfloat64): Likewise.
7932 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
7933 (reload_<mode>_load): Move to later in the file so they aren't in
7934 the middle of the floating point move insns.
7935 (reload_<mode>_store): Likewise.
7937 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
7940 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
7941 constraint if -mdebug=reg.
7942 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
7943 Enable using dd reload support if needed.
7945 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
7946 binary and decimal floating point moves in rs6000.md.
7947 (movtd_internal): Likewise.
7949 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
7950 decimal floating point moves.
7952 (movtf_internal): Likewise.
7953 (mov<mode>_internal, TDmode/TFmode): Likewise.
7954 (movtf_softfloat): Likewise.
7955 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
7957 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
7958 movdi_internal64, using wg constraint for move direct operations.
7959 (movdi_internal64): Likewise.
7961 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
7962 MODES_TIEABLE_P for selected modes. Print the numerical value of
7963 the various virtual registers. Use GPR/FPR first/last values,
7964 instead of hard coding the register numbers. Print which modes
7965 have reload functions registered.
7966 (rs6000_option_override_internal): If -mdebug=reg, trace the options
7967 settings before/after setting cpu, target and subtarget settings.
7968 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
7969 and for secondary reload failures in rs6000_secondary_reload_inner.
7970 (rs6000_secondary_reload_fail): Likewise.
7971 (rs6000_secondary_reload_inner): Likewise.
7973 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
7974 macros for first/last GPR and FPR registers.
7975 (LAST_GPR_REGNO): Likewise.
7976 (FIRST_FPR_REGNO): Likewise.
7977 (LAST_FPR_REGNO): Likewise.
7979 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
7980 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
7981 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
7982 (vcond<mode><mode>): Likewise.
7983 (vcondu<mode><mode>): Likewise.
7984 (vector_gtu<mode>): Likewise.
7985 (vector_gte<mode>): Likewise.
7986 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
7987 to prevent the compiler from converting DImode operations to TImode.
7988 (ior<mode>3): Likewise.
7989 (and<mode>3): Likewise.
7990 (one_cmpl<mode>2): Likewise.
7991 (nor<mode>3): Likewise.
7992 (andc<mode>3): Likewise.
7994 * config/rs6000/constraints.md (wt constraint): New constraint
7995 that returns VSX_REGS if TImode is allowed in VSX registers.
7997 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
8000 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
8001 similar to TImode, but it is restricted to being in the GPRs.
8003 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
8004 TImode to occupy a single VSX register.
8006 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
8007 -mvsx-timode for power7/power8.
8008 (power7 cpu): Likewise.
8009 (power8 cpu): Likewise.
8011 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
8012 sure that TFmode/TDmode take up two registers if they are ever
8013 allowed in the upper VSX registers.
8014 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
8016 (rs6000_init_hard_regno_mode_ok): Likewise.
8017 (rs6000_debug_reg_global): Add debugging for PTImode and wt
8018 constraint. Print if LRA is turned on.
8019 (rs6000_option_override_internal): Give an error if -mvsx-timode
8020 and VSX is not enabled.
8021 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
8022 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
8023 to reg+offset addressing. Use PTImode when checking offset
8024 addresses for validity.
8025 (reg_offset_addressing_ok_p): Likewise.
8026 (rs6000_legitimate_offset_address_p): Likewise.
8027 (rs6000_legitimize_address): Likewise.
8028 (rs6000_legitimize_reload_address): Likewise.
8029 (rs6000_legitimate_address_p): Likewise.
8030 (rs6000_eliminate_indexed_memrefs): Likewise.
8031 (rs6000_emit_move): Likewise.
8032 (rs6000_secondary_reload): Likewise.
8033 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
8034 reloads to fpr registers to continue to use reg+offset addressing,
8035 but 64-bit reloads to altivec registers need reg+reg addressing.
8036 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
8037 it. Treat LO_SUM like a PLUS operation.
8038 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
8039 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
8040 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
8041 registers to share a register with a smaller sized type, since VSX
8042 puts scalars in the upper 64-bits.
8043 (print_operand): Add support for PTImode.
8044 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
8045 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
8046 registers, but don't have arithmetic support.
8047 (rs6000_memory_move_cost): Add test for VSX.
8048 (rs6000_opt_masks): Add -mvsx-timode.
8050 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
8053 (VSr): Use wt constraint for TImode.
8054 (VSv): Drop TImode support.
8055 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
8056 (vsx_movti_64bit): Likewise.
8057 (vsx_movti_32bit): Likewise.
8058 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
8059 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
8060 one '?' on the appropriate output constraint. Do not allow TImode
8061 logical operations on 32-bit systems.
8062 (vsx_ior<mode>3): Likewise.
8063 (vsx_xor<mode>3): Likewise.
8064 (vsx_one_cmpl<mode>2): Likewise.
8065 (vsx_nor<mode>3): Likewise.
8066 (vsx_andc<mode>3): Likewise.
8067 (vsx_concat_<mode>): Likewise.
8068 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
8070 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
8071 OPTION_MASK_VSX_TIMODE.
8072 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
8073 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
8075 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
8076 (TI2 iterator): New iterator for TImode, PTImode.
8077 (wd mode attribute): Add values for vector types.
8078 (movti_string): Replace TI move operations with operations for TImode
8079 and PTImode. Add support for TImode being allowed in VSX registers.
8080 (mov<mode>_string, TImode/PTImode): Likewise.
8081 (movti_ppc64): Likewise.
8082 (mov<mode>_ppc64, TImode/PTImode): Likewise.
8083 (TI mode splitters): Likewise.
8085 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
8088 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
8090 PR tree-optimization/56355
8091 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
8092 Also handle integers with undefined overflow.
8094 2013-03-20 Catherine Moore <clm@codesourcery.com>
8095 Maciej W. Rozycki <macro@codesourcery.com>
8096 Tom de Vries <tom@codesourcery.com>
8097 Nathan Sidwell <nathan@codesourcery.com>
8098 Iain Sandoe <iain@codesourcery.com>
8099 Nathan Froyd <froydnj@codesourcery.com>
8100 Chao-ying Fu <fu@mips.com>
8102 * doc/extend.texi: (micromips, nomicromips, nocompression):
8103 Document new function attributes.
8104 * doc/invoke.texi (minterlink-compressed, mmicromips,
8105 m14k, m14ke, m14kec): Document new options.
8106 (minterlink-mips16): Update documentation.
8107 * doc/md.texi (ZC, ZD): Document new constraints.
8108 * configure.ac (gcc_cv_as_micromips): Check if linker
8109 supports the .set micromips directive.
8110 * configure: Regenerate.
8111 * config.in: Regenerate.
8112 * config/mips/mips-tables.opt: Regenerate.
8113 * config/mips/micromips.md: New file.
8114 * constraints.md (ZC, ZD): New constraints.
8115 * config/mips/predicates.md (movep_src_register): New predicate.
8116 (movep_src_operand): New predicate.
8117 (non_volatile_mem_operand): New predicate.
8118 * config/mips/mips.md (multimem): New type.
8119 (length): Differentiate between 17-bit and 18-bit branch offsets.
8120 (MOVEP1, MOVEP2): New mode iterator.
8121 (mov_<load>l): Use ZC constraint.
8122 (mov_<load>r): Likewise.
8123 (mov_<store>l): Likewise.
8124 (mov_<store>r): Likewise.
8125 (*branch_equality<mode>_inverted): Add microMIPS support.
8126 (*branch_equality<mode>): Likewise.
8127 (*jump_absolute): Likewise.
8128 (indirect_jump_<mode>): Likewise.
8129 (tablejump_<mode>): Likewise.
8130 (<optab>_internal): Likewise.
8131 (sibcall_internal): Likewise.
8132 (sibcall_value_internal): Likewise.
8133 (prefetch): Use constraint ZD.
8134 * config/mips/mips.opt (minterlink-compressed): New option.
8135 (minterlink-mips16): Now an alias for minterlink-compressed.
8136 (mmicromips): New option.
8137 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
8138 (compare_and_swap_12): Likewise.
8139 (sync_add<mode>): Likewise.
8140 (sync_<optab>_12): Likewise.
8141 (sync_old_<optab>_12): Likewise.
8142 (sync_new_<optab>_12): Likewise.
8143 (sync_nand_12): Likewise.
8144 (sync_old_nand_12): Likewise.
8145 (sync_new_nand_12): Likewise.
8146 (sync_sub<mode>): Likewise.
8147 (sync_old_add<mode>): Likewise.
8148 (sync_old_sub<mode>): Likewise.
8149 (sync_new_add<mode>): Likewise.
8150 (sync_new_sub<mode>): Likewise.
8151 (sync_<optab><mode>): Likewise.
8152 (sync_old_<optab><mode>): Likewise.
8153 (sync_new_<optab><mode>): Likewise.
8154 (sync_nand<mode>): Likewise.
8155 (sync_old_nand<mode>): Likewise.
8156 (sync_new_nand<mode>): Likewise.
8157 (sync_lock_test_and_set<mode>): Likewise.
8158 (test_and_set_12): Likewise.
8159 (atomic_compare_and_swap<mode>): Likewise.
8160 (atomic_exchange<mode>_llsc): Likewise.
8161 (atomic_fetch_add<mode>_llsc): Likewise.
8162 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
8163 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
8164 (umips_save_restore_pattern_p): Likewise.
8165 (umips_load_store_pair_p): Likewise.
8166 (umips_output_load_store_pair): Likewise.
8167 (umips_movep_target_p): Likewise.
8168 (umips_12bit_offset_address_p): Likewise.
8169 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
8170 (mips_base_mips16): Rename this...
8171 (mips_base_compression_flags): ...to this. Update all uses.
8172 (mips_attribute_table): Add micromips, nomicromips and nocompression.
8173 (mips_mips16_decl_p): Delete.
8174 (mips_nomips16_decl_p): Delete.
8175 (mips_get_compress_on_flags): New function.
8176 (mips_get_compress_off_flags): New function.
8177 (mips_get_compress_mode): New function.
8178 (mips_get_compress_on_name): New function.
8179 (mips_get_compress_off_name): New function.
8180 (mips_insert_attributes): Support multiple compression types.
8181 (mips_merge_decl_attributes): Likewise.
8182 (umips_12bit_offset_address_p): New function.
8183 (mips_start_function_definition): Emit .set micromips directive.
8184 (mips_call_may_need_jalx_p): New function.
8185 (mips_function_ok_for_sibcall): Add microMIPS support.
8186 (mips_print_operand_punctuation): Support short delay slots and
8188 (umips_swm_mask, umips_swm_encoding): New.
8189 (umips_build_save_restore): New function.
8190 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
8191 (was_mips16_p): Remove.
8192 (old_compression_mode): New.
8193 (mips_set_compression_mode): New function.
8194 (mips_set_current_function): Add microMIPS support.
8195 (mips_option_override): Likewise.
8196 (umips_save_restore_pattern_p): New function.
8197 (umips_output_save_restore): New function.
8198 (umips_load_store_pair_p_1): New function.
8199 (umips_load_store_pair_p): New function.
8200 (umips_output_load_store_pair_1): New function.
8201 (umips_output_load_store_pair): New function.
8202 (umips_movep_target_p) New function.
8203 (mips_prepare_pch_save): Add microMIPS support.
8204 * config/mips/mips.h (TARGET_COMPRESSION): New.
8205 (TARGET_CPU_CPP_BUILTINS): Update macro
8206 to use new compression flags and to support microMIPS.
8207 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
8208 (MIPS_ARCH_FLOAT_SPEC): Likewise.
8209 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
8210 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
8211 (ASM_SPEC): Support mmicromips and mno-micromips.
8212 (M16STORE_REG_P): New macro.
8213 (MIPS_CALL): Support TARGET_MICROMIPS.
8214 (MICROMIPS_J): New macro.
8215 (mips_base_mips16): Rename this...
8216 (mips_base_compression_flags): ...to this.
8217 (UMIPS_12BIT_OFFSET_P): New macro.
8218 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
8219 (MULTILIB_DIRNAMES): Likewise.
8220 2013-03-20 Richard Biener <rguenther@suse.de>
8222 PR tree-optimization/56661
8223 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
8224 the result does not have to be distinct.
8226 2013-03-20 Richard Biener <rguenther@suse.de>
8228 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
8231 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8232 Steven Bosscher <steven@gcc.gnu.org>
8234 PR rtl-optimization/56605
8235 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
8237 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
8240 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
8241 that require movd instead of movq.
8243 2013-03-20 Richard Biener <rguenther@suse.de>
8245 * tree-ssa-structalias.c (struct variable_info): Add pointer
8246 to the first field of an aggregate with sub-vars. Make
8247 this and the pointer to the next subfield its ID.
8248 (vi_next): New function.
8249 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
8250 storedanything_id, integer_id): Increment by one.
8251 (new_var_info, get_call_vi, lookup_call_clobber_vi,
8252 get_call_clobber_vi): Adjust.
8253 (solution_set_expand): Simplify and speedup.
8254 (solution_set_add): Inline into ...
8255 (set_union_with_increment): ... this. Adjust accordingly.
8256 (do_sd_constraint): Likewise.
8257 (do_ds_constraint): Likewise.
8258 (do_complex_constraint): Simplify.
8259 (build_pred_graph): Adjust.
8260 (solve_graph): Likewise. Simplify and speedup.
8261 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
8262 get_constraint_for_component_ref, get_constraint_for_1,
8263 first_vi_for_offset, first_or_preceding_vi_for_offset,
8264 create_function_info_for, create_variable_info_for_1,
8265 create_variable_info_for, intra_create_variable_infos): Adjust.
8266 (init_base_vars): Push NULL for ID zero.
8267 (compute_points_to_sets): Adjust.
8269 2013-03-20 Richard Biener <rguenther@suse.de>
8271 * cfgloop.c (verify_loop_structure): Streamline and avoid
8272 ICEing on corrupt loop tree.
8273 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
8276 2013-03-20 Richard Biener <rguenther@suse.de>
8278 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
8279 check whether an SSA update is needed.
8281 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
8283 * config/mips/constraints.md (T): Rename to...
8287 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
8288 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
8290 2013-03-19 Ian Bolton <ian.bolton@arm.com>
8292 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
8293 (*subsi3_carryin_uxtw): Likewise.
8295 2013-03-19 Ian Bolton <ian.bolton@arm.com>
8297 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
8298 (*rorsi3_insn_uxtw): Likewise.
8300 2013-03-19 Ian Bolton <ian.bolton@arm.com>
8302 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
8303 (*extrsi5_insn_uxtw): Likewise.
8305 2013-03-19 Richard Biener <rguenther@suse.de>
8307 PR tree-optimization/56273
8308 * passes.c (init_optimization_passes): Move second VRP after DOM.
8310 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
8312 * config/i386/i386.md (*movti_internal): Merge from
8313 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
8314 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
8315 nox64 isa attributes.
8317 2013-03-18 Richard Biener <rguenther@suse.de>
8319 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
8321 (merge_node_constraints): Likewise.
8322 (build_succ_graph): Likewise.
8323 (valid_graph_edge): Inline into single caller.
8324 (unify_nodes): Likewise. Use bitmap_set_bit return value
8326 (scc_visit): Fix formatting and variable use.
8327 (do_sd_constraint): Use gcc_checking_assert.
8328 (do_ds_constraint): Likewise.
8329 (do_complex_constraint): Likewise.
8330 (condense_visit): Likewise. Cleanup.
8331 (dump_pred_graph): New function.
8332 (perform_var_substitution): Dump the pred-graph before
8333 variable substitution.
8334 (find_equivalent_node): Use gcc_checking_assert.
8335 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
8337 2013-03-18 Richard Biener <rguenther@suse.de>
8339 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
8340 Remove cond_expr_stmt_list argument and do not gimplify the
8342 (vect_loop_versioning): Adjust.
8343 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
8344 Cleanup to use less temporaries.
8345 (vect_create_data_ref_ptr): Cleanup.
8347 2013-03-18 Jakub Jelinek <jakub@redhat.com>
8349 PR tree-optimization/56635
8350 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
8351 require types_compatible_p types.
8353 2013-03-18 Nick Clifton <nickc@redhat.com>
8355 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
8358 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
8359 Add missing line to comment describing function.
8361 2013-03-18 Richard Biener <rguenther@suse.de>
8363 PR tree-optimization/56210
8364 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8365 Handle string / character search functions.
8366 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
8368 2013-03-18 Richard Biener <rguenther@suse.de>
8371 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
8372 and implement properly.
8373 * gimple.h (gimple_cond_single_var_p): Remove.
8375 2013-03-18 Richard Biener <rguenther@suse.de>
8377 * tree-data-ref.h (find_data_references_in_loop): Declare.
8378 * tree-data-ref.c (get_references_in_stmt): Use a stack
8379 vector pre-allocated in the callers.
8380 (find_data_references_in_stmt): Adjust.
8381 (graphite_find_data_references_in_stmt): Likewise.
8382 (create_rdg_vertices): Likewise.
8383 (find_data_references_in_loop): Export.
8384 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
8385 Compute dependences here...
8386 (vect_analyze_data_refs): ...not here. When we encounter
8387 a non-vectorizable data reference in basic-block vectorization
8388 truncate the data reference vector. Do not bother to
8389 fixup data-dependence information for gather loads.
8390 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
8391 of data references, as reported.
8393 2013-03-18 Richard Biener <rguenther@suse.de>
8395 PR tree-optimization/3713
8396 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
8397 has_constants and expr.
8398 (stmt_has_constants): Properly valueize SSA names when deciding
8399 whether the stmt has constants.
8401 2013-03-18 Richard Biener <rguenther@suse.de>
8403 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
8404 whole function when there is nothing to do.
8405 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
8406 * tree-vectorizer.c (vectorize_loops): Update virtual and
8407 loop-closed SSA once.
8408 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
8410 2013-03-18 Richard Biener <rguenther@suse.de>
8413 * domwalk.c (bb_postorder): New global static.
8414 (cmp_bb_postorder): New function.
8415 (walk_dominator_tree): Replace scheme imposing an order for
8416 visiting dominator sons by one sorting them at the time they
8417 are pushed on the stack.
8419 2013-03-18 Richard Biener <rguenther@suse.de>
8421 PR tree-optimization/39326
8422 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
8423 (struct mem_ref): Replace mem member with ao_ref typed member.
8424 (MEM_ANALYZABLE): Adjust.
8425 (memref_eq): Likewise.
8426 (mem_ref_alloc): Likewise.
8427 (gather_mem_refs_stmt): Likewise.
8428 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
8429 (execute_sm_if_changed_flag_set): Adjust.
8430 (execute_sm): Likewise.
8431 (ref_always_accessed_p): Likewise.
8432 (refs_independent_p): Likewise.
8433 (can_sm_ref_p): Likewise.
8435 2013-03-18 Jakub Jelinek <jakub@redhat.com>
8438 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
8439 return 1 even for !unsignedp.
8441 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
8443 * config/i386/i386.md (isa): Add x64 and nox64.
8444 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
8445 (*pushtf): Enable *roF alternative for x64 isa only.
8446 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
8447 mode attribute of integer alternatives to DImode for TARGET_64BIT.
8448 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
8449 (*movtf_internal): Merge from *movtf_internal_rex64 and
8450 *movtf_internal_sse. Use x64 and nox64 isa attributes.
8451 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
8452 nox64 isa attributes.
8453 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
8454 nox64 isa attributes.
8455 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
8457 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
8459 * config/alpha/alpha.c (TARGET_LRA_P): New define.
8461 2013-03-17 Jakub Jelinek <jakub@redhat.com>
8464 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
8465 class names. Remove trailing comma after "ALL_REGS".
8467 2013-03-16 Jan Hubicka <jh@suse.cz>
8469 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
8470 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
8471 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
8472 of cgraph_get_create_node.
8473 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
8475 2013-03-16 Jason Merrill <jason@redhat.com>
8478 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
8479 with DW_AT_default_value.
8481 2013-03-16 Jakub Jelinek <jakub@redhat.com>
8483 * BASE-VER: Set to 4.9.0.
8485 2013-03-14 Andi Kleen <ak@linux.intel.com>
8488 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
8489 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
8490 Document _x* TSX intrinsics.
8492 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
8493 David Holsgrove <david.holsgrove@xilinx.com>
8495 * configure.ac: Add MicroBlaze TLS support detection.
8496 * configure: Regenerate.
8497 * config/microblaze/microblaze-protos.h
8498 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
8499 symbol_mentioned_p, label_mentioned_p): Add prototypes.
8500 * config/microblaze/microblaze.c (microblaze_address_type): Add
8501 ADDRESS_TLS and tls_reloc address types.
8502 (microblaze_address_info): Add tls_reloc.
8503 (TARGET_HAVE_TLS): Define.
8504 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
8505 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
8506 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
8507 load_tls_operand, microblaze_call_tls_get_addr,
8508 microblaze_legitimize_tls_address): New functions.
8509 (microblaze_classify_unspec): Handle UNSPEC_TLS.
8510 (get_base_reg): Use microblaze_tls_symbol_p.
8511 (microblaze_classify_address): Handle TLS.
8512 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
8513 label_mentioned_p and microblaze_tls_referenced_p.
8514 (microblaze_legitimize_address): Handle TLS.
8515 (microblaze_address_insns): Handle ADDRESS_TLS.
8516 (pic_address_needs_scratch): Handle TLS.
8517 (print_operand_address): Handle TLS.
8518 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
8519 (microblaze_expand_move): Handle TLS.
8520 (microblaze_legitimate_constant_p): Check
8521 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8522 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
8523 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
8524 (PIC_OFFSET_TABLE_REGNUM): Set.
8525 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
8526 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
8527 (addsi3, movsi_internal2, movdf_internal): Update constraints
8528 * config/microblaze/predicates.md (arith_plus_operand): Define
8529 (move_operand): Redefine as move_src_operand,
8530 check microblaze_tls_referenced_p.
8532 2013-03-14 Ian Bolton <ian.bolton@arm.com>
8534 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
8535 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
8537 2013-03-14 Ian Bolton <ian.bolton@arm.com>
8539 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
8542 2013-03-14 Jakub Jelinek <jakub@redhat.com>
8544 PR tree-optimization/53265
8545 * common.opt (Waggressive-loop-optimizations): New option.
8546 * tree-ssa-loop-niter.c: Include tree-pass.h.
8547 (do_warn_aggressive_loop_optimizations): New function.
8548 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
8549 if number_of_latch_executions returned constant.
8550 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
8551 early. If number_of_latch_executions returned constant, set
8552 nb_iterations_upper_bound back to it.
8553 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
8555 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
8556 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
8558 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
8559 (MULTILIB_OSDIRNAMES): Set.
8560 * genmultilib: If defaultosdirname doesn't start with :: , set
8561 defaultosdirname2 instead, clear it and emit two . multilib_raw
8562 entries instead of just one.
8564 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
8566 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
8567 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
8568 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
8569 (SUBTARGET_OVERRIDE_OPTIONS): New.
8571 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
8574 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
8575 (musermode): Convert to Var(TARGET_USERMODE).
8576 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
8577 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
8578 * config/sh/sh.c (sh_option_override): Use
8579 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
8580 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
8582 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
8584 (udivsi3_i4_single, divsi3_i4_single): Use
8585 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
8587 2013-03-13 Dave Korn <dave.korn.cygwin@....>
8589 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
8592 2013-03-13 Richard Biener <rguenther@suse.de>
8594 PR tree-optimization/56608
8595 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
8596 calls when vectorizing basic-blocks.
8598 2013-03-13 Jakub Jelinek <jakub@redhat.com>
8601 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
8604 2013-03-12 Jakub Jelinek <jakub@redhat.com>
8606 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
8608 2013-03-11 Jan Hubicka <jh@suse.cz>
8611 * lto-streamer-out.c (output_symbol_p): Skip references from
8612 constructors of external variables.
8614 2013-03-11 Jan Hubicka <jh@suse.cz>
8617 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
8619 * emit-rtl.c (verify_rtx_sharing): Likewise.
8620 (copy_insn_1): Likewise.
8621 * rtl.c (copy_rtx): Likewise.
8623 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
8626 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
8627 output_operand_lossage message.
8629 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
8632 * arm.c (shift_op): Validate RTL pattern on the fly.
8633 (arm_print_operand, case 'S'): Don't use shift_operator to validate
8636 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8639 * config/pa/pa.md (call_value): Check for calls to powf and direct to
8640 new call patterns that clobber %fr12.
8641 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
8642 split and postreload patterns.
8643 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
8644 registers %fr12 and %fr12R as call used.
8646 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
8648 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
8649 (canon_address, record_store, replace_read, check_mem_read_rtx,
8650 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
8651 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
8652 rest_of_handle_dse): Likewise.
8654 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
8657 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
8659 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
8660 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
8661 (save_optabs_if_changed): Replace with...
8662 (init_tree_optimization_optabs): ...this.
8663 * optabs.c (save_optabs_if_changed): Rename to...
8664 (init_tree_optimization_optabs): ...this. Take the optimization node
8665 as argument. Do nothing if the base optabs are already correct.
8666 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
8667 to recompute optabs.
8668 * function.h (function): Remove optabs field.
8669 * function.c (invoke_set_current_function_hook): Call
8670 init_tree_optimization_optabs. Use the result to initialize
8673 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
8675 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
8676 if GTMA_HAS_NO_INSTRUMENTATION.
8677 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
8678 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
8679 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
8680 * gimple-pretty-print.c (dump_gimple_transaction): Handle
8681 GTMA_HAS_NO_INSTRUMENTATION.
8683 2013-03-08 Jakub Jelinek <jakub@redhat.com>
8685 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
8688 2013-03-08 Marek Polacek <polacek@redhat.com>
8689 Jakub Jelinek <jakub@redhat.com>
8691 PR tree-optimization/56478
8692 * predict.c (is_comparison_with_loop_invariant_p): Change the
8693 type of loop_step to tree.
8694 (predict_loops): Adjust.
8695 (predict_iv_comparison): Perform the computations on double_ints.
8697 2013-03-08 Richard Biener <rguenther@suse.de>
8699 PR tree-optimization/56570
8700 * tree-cfg.c (verify_expr_location_1): Verify locations for
8702 * tree-sra.c (create_access_replacement): Strip locations
8703 from DECL_DEBUG_EXPRs.
8705 2013-03-08 Richard Biener <rguenther@suse.de>
8707 * tree-inline.c (expand_call_inline): Do not associate
8708 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
8709 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
8711 2013-03-08 Richard Biener <rguenther@suse.de>
8713 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
8714 or block changes with -Og. Fix for location / block encoding
8715 changes and PHI arguments with locations.
8717 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
8719 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
8721 (struct output_info): Likewise.
8722 (register_overhead): Remove bad gcc_assert.
8723 (bitmap_find_bit): If there is only a single bitmap element, do not
8724 count a miss as a search.
8725 (print_statistics): Update for counter type changes.
8726 (dump_bitmap_statistics): Likewise. Print headers such that they
8727 are properly lined up with the printed counters.
8729 2013-03-07 Jakub Jelinek <jakub@redhat.com>
8731 PR tree-optimization/56559
8732 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
8733 check that it has only a single use.
8735 2013-03-07 Richard Biener <rguenther@suse.de>
8737 * doc/invoke.texi (fwhole-program): Discourage use in combination
8740 2013-03-06 Jakub Jelinek <jakub@redhat.com>
8742 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
8744 PR tree-optimization/56539
8745 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
8746 instead of GSI_CONTINUE_LINKING as last argument to
8747 force_gimple_operand_gsi. Adjust function comment.
8749 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
8753 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
8754 promoted mode, convert the result back to the original mode.
8756 2013-03-06 Richard Biener <rguenther@suse.de>
8759 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
8760 (insert_updated_phi_nodes_compare_uids): New function.
8761 (update_ssa): Sort symbols_to_rename after UID before
8762 traversing it to insert PHI nodes.
8764 2013-03-06 Richard Biener <rguenther@suse.de>
8767 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
8768 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
8771 2013-02-13 Richard Biener <rguenther@suse.de>
8774 * varasm.c (output_constant_def_1): Get the decl representing
8775 the constant as argument.
8776 (output_constant_def): Wrap output_constant_def_1.
8777 (make_decl_rtl): Use output_constant_def_1 with the decl
8778 representing the constant.
8779 (build_constant_desc): Optionally re-use a decl already
8780 representing the constant.
8781 (tree_output_constant_def): Adjust.
8783 2013-03-06 Joey Ye <joey.ye@arm.com>
8786 * gcc.c (convert_white_space): New function.
8787 (main): Handles white space in function name.
8789 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
8792 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
8793 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
8794 to SH_DIV_CALL_TABLE for TARGET_SH2.
8795 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
8797 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
8800 2013-03-05 Sterling Augustine <saugustine@google.com>
8801 Cary Coutant <ccoutant@google.com>
8804 * dwarf2out.c (resolve_addr): Don't call
8805 remove_loc_list_addr_table_entries a second time for the same
8808 2013-03-05 Jakub Jelinek <jakub@redhat.com>
8811 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
8812 (avoid_complex_debug_insns): New function.
8813 (expand_debug_locations): Call it.
8815 PR rtl-optimization/56484
8816 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
8817 lifetimes of hard registers on small register class machines.
8819 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
8821 * config/microblaze/microblaze-protos.h: Rename
8822 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
8823 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
8825 (microblaze_fast_interrupt_function_p): New function.
8826 (microblaze_is_interrupt_handler): Rename to
8827 microblaze_is_interrupt_variant and add fast_interrupt check.
8828 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
8829 (save_restore_insns): Likewise.
8830 (compute_frame_size): Likewise.
8831 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
8832 (microblaze_globalize_label): Likewise.
8833 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
8834 * config/microblaze/microblaze.md: Use wrapper
8835 microblaze_is_interrupt_variant.
8837 2013-03-05 Kai Tietz <ktietz@redhat.com>
8839 * sdbout.c (sdbout_one_type): Switch to current function's section
8840 supporting cold/hot.
8842 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
8844 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
8847 2013-03-05 Jakub Jelinek <jakub@redhat.com>
8850 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
8851 if VALGRIND_GET_VBITS is defined, temporarily make object
8852 memory all defined, and restore previous valgrind addressability
8853 and definability afterwards. Free this_object at the end.
8856 * lra.c (lra): Call lra_clear_live_ranges if live_p,
8857 right before calling lra_create_live_ranges, also call it
8858 when clearing live_p. Only call lra_clear_live_ranges
8859 at the end if live_p.
8862 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
8864 2013-03-05 Richard Biener <rguenther@suse.de>
8866 PR tree-optimization/56521
8867 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
8870 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
8873 * except.h (remove_unreachable_eh_regions): New prototype.
8874 * except.c (remove_eh_handler_splicer): New function, split out
8875 of remove_eh_handler.
8876 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
8877 warning about running it on many EH regions one at a time.
8878 (remove_unreachable_eh_regions_worker): New function, walk the
8879 EH tree in depth-first order and remove non-marked regions.
8880 (remove_unreachable_eh_regions): New function.
8881 * tree-eh.c (mark_reachable_handlers): New function, split out
8882 from remove_unreachable_handlers.
8883 (remove_unreachable_handlers): Use mark_reachable_handlers and
8884 remove_unreachable_eh_regions.
8885 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
8886 and remove_unreachable_eh_regions.
8888 2013-03-05 Richard Biener <rguenther@suse.de>
8891 * loop-init.c (fix_loop_structure): Remove loops in two stages,
8892 not freeing them until the end.
8894 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8896 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
8898 2013-03-05 Richard Biener <rguenther@suse.de>
8900 PR tree-optimization/56270
8901 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
8902 of loads after scheduling an SLP instance.
8904 2013-03-05 Jakub Jelinek <jakub@redhat.com>
8906 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
8908 (check_gcc_parallelize): Run guality.exp as a separate job from
8909 vect.exp with unsorted.exp and $(dg_target_exps) separately from
8910 struct-layout-1.exp with stackalign.exp.
8912 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
8915 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
8916 load_index sbitmap even if some bit in it isn't set.
8919 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
8920 (discover_iteration_bound_by_body_walk): Change queues to
8921 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
8922 spelling in comment. Call safe_push on queues[bound_index] directly.
8923 Release queues[queue_index] in every iteration unconditionally.
8924 Release bounds vector.
8927 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
8928 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
8929 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
8932 2013-03-05 Richard Biener <rguenther@suse.de>
8935 * tree-inline.c (remap_blocks_to_null): New function.
8936 (expand_call_inline): When expanding a call stmt without
8937 an associated block inline remap all callee blocks to NULL.
8939 2013-03-05 Jakub Jelinek <jakub@redhat.com>
8941 PR rtl-optimization/56494
8942 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
8943 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
8944 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
8947 * sel-sched-ir.c (free_sched_pools): Release
8948 succs_info_pool.stack[succs_info_pool.max_top] vectors too
8949 if succs_info_pool.max_top isn't -1.
8952 * opts.c (opts_obstack, opts_concat): Moved to...
8953 * opts-common.c (opts_obstack, opts_concat): ... here.
8955 2013-03-04 Jakub Jelinek <jakub@redhat.com>
8958 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
8960 2013-03-04 Martin Jambor <mjambor@suse.cz>
8962 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
8963 all appropriate places.
8965 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
8967 PR tree-optimization/56424
8968 * ipa-split.c (split_function): Do not set the RSO flag if result is
8969 not by reference and its type is a register type.
8971 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
8973 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
8974 (microblaze_legitimate_pic_operand): Likewise
8975 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
8976 new function microblaze_legitimate_pic_operand
8977 * config/microblaze/microblaze-protos.h
8978 (microblaze_legitimate_pic_operand): Declare.
8980 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8982 * config/microblaze/predicates.md (call_insn_simple_operand):
8983 New predicate for supported rtx code types.
8984 * config/microblaze/microblaze.md (call_internal1): Use
8985 call_insn_simple_operand predicate.
8987 2013-03-04 Jakub Jelinek <jakub@redhat.com>
8990 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
8991 partitions.ordered_remove.
8994 * tree-vect-stmts.c (vectorizable_conversion): Don't call
8995 vec_oprnds0.create (1) for modifier == NONE.
8998 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
8999 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
9000 vec_oprnds1 right before pushing anything to it for
9004 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
9005 set nbbs to 0 instead of having separate code path.
9006 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
9007 instead of false as last argument if returning NULL.
9009 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
9011 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
9012 the attribute is now called "target" instead of "option".
9013 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
9014 * doc/tm.texi.in (Target Attributes): Likewise document the correct
9015 attribute/pragma name for TARGET_OPTION_VALID_P and
9016 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
9017 * doc/tm.texi: Regenerated.
9019 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
9021 * config/microblaze/microblaze.c:
9022 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
9023 * config/microblaze/microblaze.h: Add -mxl-reorder to
9025 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
9026 instructions emitted if TARGET_REORDER.
9027 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
9028 or 0 for -m/-mno case, but initialises as 2 to detect default use case
9031 2013-03-01 Xinliang David Li <davidxl@google.com>
9033 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
9036 2013-03-01 Jakub Jelinek <jakub@redhat.com>
9039 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
9040 vector even when returning true. Fix up function comment formatting.
9043 * ira-build.c (ira_loop_nodes_count): New variable.
9044 (create_loop_tree_nodes): Initialize it.
9045 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
9048 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
9049 method on dr_chain and result_chain.
9050 * tree-vect-stmts.c (vectorizable_store): Only call
9051 result_chain.create if j == 0.
9054 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
9055 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
9056 before overwriting it.
9058 2013-03-01 Tobias Burnus <burnus@net-b.de>
9060 * doc/extended.texi (C Extensions): Change order in @menu
9062 (Other MIPS Built-in Functions): Move last MIPS entry before
9063 "picoChip Built-in Functions".
9064 (SH Built-in Functions): Move after RX Built-in Functions.
9065 * doc/gcc.texi (Introduction): Change order in @menu
9067 * doc/md.texi (Constraints): Ditto.
9068 * gty.texi (Type Information): Ditto.
9069 (User-provided marking routines for template types): Make
9071 * doc/invoke.texi (AArch64 Options): Move before
9072 "Adapteva Epiphany Options".
9074 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
9075 Jakub Jelinek <jakub@redhat.com>
9078 * asan.c (gate_asan): Lookup no_sanitize_address instead of
9079 no_address_safety_analysis attribute.
9080 * doc/extend.texi (no_address_safety_attribute): Rename to
9081 no_sanitize_address attribute, mention no_address_safety_analysis
9082 attribute as deprecated alias.
9084 2013-02-28 Jakub Jelinek <jakub@redhat.com>
9087 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
9088 type to vec<vec<tree> > *.
9089 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
9090 to be vec<tree> instead of vec<tree> *, set vec_defs
9091 to vNULL and call vec_defs.create (number_of_vects), adjust other
9093 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
9094 vectorizable_condition): Adjust vect_get_slp_defs callers.
9096 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
9098 * config/aarch64/aarch64.c
9099 (aarch64_float_const_representable): Remove unused variable.
9101 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
9103 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
9105 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
9107 * config/aarch64/aarch64-builtins.c
9108 (aarch64_init_simd_builtins): Make static.
9110 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
9112 * config/aarch64/aarch64.c
9113 (aarch64_simd_make_constant): Make static.
9115 2013-02-28 Martin Jambor <mjambor@suse.cz>
9117 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
9118 with no initialization to the RHS of debug statements.
9120 2013-02-28 Martin Jambor <mjambor@suse.cz>
9122 PR tree-optimization/56294
9123 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
9125 (get_access_replacement): Do not call create_access_replacement.
9126 Assert a replacement exists.
9127 (get_repl_default_def_ssa_name): Create the replacement declaration
9130 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9132 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
9135 2013-02-28 Marek Polacek <polacek@redhat.com>
9137 PR rtl-optimization/56466
9138 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
9139 if we're changing a loop.
9140 (peel_loops_completely): Likewise.
9142 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
9145 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
9147 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
9150 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
9151 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
9152 INTX_FTYPE_FX, FX_FTYPE_INTX.
9153 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
9155 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
9157 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
9158 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
9159 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
9160 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
9161 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
9162 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
9163 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
9164 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
9165 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
9166 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
9167 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
9168 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
9169 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
9170 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
9171 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
9172 (avrxmega6): Increase max flash segments from 5 to 6.
9173 * config/avr/t-multilib: Regenerate.
9174 * config/avr/avr-tables.opt: Regenerate.
9175 * doc/avr-mmcu.texi: Regenerate.
9177 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
9179 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
9180 (avr_device_to_arch): Rename to avr_device_to_ld.
9181 (avr_device_to_as): New prototype.
9182 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
9183 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
9184 * config/avr/driver-avr.c (avr_device_to_as): New.
9185 (avr_device_to_arch): Rename to avr_device_to_ld.
9187 2013-02-27 Jakub Jelinek <jakub@redhat.com>
9190 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
9191 method on dr_chain and result_chain.
9194 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
9195 pointer_set_destroy on not_executed_last_iteration.
9198 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
9201 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
9202 FOR_EACH_DEFINED_FUNCTION when freeing state.
9205 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
9207 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
9211 * ipa-cp.c (decide_whether_version_node): Call vec_free on
9212 known_aggs[i].items and release known_aggs vector.
9215 * ipa-reference.c (propagate): Free node_info even for alias nodes.
9217 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9219 * config/microblaze/microblaze.c (microblaze_emit_compare):
9220 Use xor for EQ/NE comparisions.
9221 * config/microblaze/microblaze.md (cstoresf4): Add constraints
9222 (cbranchsf4): Adjust operator to comparison_operator.
9224 2013-02-27 Jakub Jelinek <jakub@redhat.com>
9227 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
9229 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
9230 vec_safe_push, always update *slot.
9231 (redirect_edge_var_map_clear): Use vec_free.
9232 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
9233 (free_var_map_entry): Use vec_free.
9234 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
9235 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
9237 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
9240 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
9241 when the may_trap_p bit of the exprs being merged differs.
9242 Reorder tests for speculativeness in the logical and operator.
9244 2013-02-27 Jakub Jelinek <jakub@redhat.com>
9246 * incpath.c (add_standard_paths): Use reconcat instead of concat
9247 where appropriate and avoid leaking memory.
9249 * opts.h: Include obstack.h.
9250 (opts_concat): New prototype.
9251 (opts_obstack): New declaration.
9252 * opts.c (opts_concat): New function.
9253 (opts_obstack): New variable.
9254 (init_options_struct): Call gcc_init_obstack on opts_obstack.
9255 (finish_options): Use opts_concat instead of concat
9256 and XOBNEWVEC instead of XNEWVEC.
9257 * opts-common.c (generate_canonical_option, decode_cmdline_option,
9258 generate_option): Likewise.
9259 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
9260 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
9263 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
9264 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
9266 2013-02-26 Jakub Jelinek <jakub@redhat.com>
9269 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
9271 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
9273 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
9274 (arm_block_move_unaligned_straight): Likewise.
9275 (arm_adjust_block_mem): Likewise.
9277 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
9280 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
9281 temp, cond and label.
9282 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
9285 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
9286 * config/c6x/c6x.h (dbx_register_map): Update declaration.
9289 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
9290 of prologue/epilogue functions.
9293 * config/tilegx/tilegx.c (tilegx_expand_prologue):
9294 Remove unused variable cfa_offset.
9295 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
9298 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
9299 type promotion to unsigned.
9302 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
9303 for HOST_WIDE_INT of 32 bit / same size as int.
9304 (arm_block_move_unaligned_straight): Likewise.
9305 (arm_adjust_block_mem): Likewise.
9308 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
9311 2013-02-26 Marek Polacek <polacek@redhat.com>
9313 PR tree-optimization/56426
9314 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
9316 2013-02-26 Richard Biener <rguenther@suse.de>
9319 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
9320 unused variable loops.
9322 2013-02-26 Jakub Jelinek <jakub@redhat.com>
9324 PR tree-optimization/56448
9325 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
9326 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
9327 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
9328 later operands of the references, or even first operand for
9329 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
9331 PR tree-optimization/56443
9332 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
9333 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
9334 to type_for_mode langhook.
9336 2013-02-25 Matt Turner <mattst88@gmail.com>
9338 * doc/invoke.texi: Document r4700.
9340 2013-02-25 Richard Biener <rguenther@suse.de>
9342 PR tree-optimization/56175
9343 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
9345 (simplify_bitwise_binary): ... here. Also guard the conversion
9346 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
9348 2013-02-25 Catherine Moore <clm@codesourcery.com>
9351 2013-02-24 Catherine Moore <clm@codesourcery.com>
9352 Maciej W. Rozycki <macro@codesourcery.com>
9353 Tom de Vries <tom@codesourcery.com>
9354 Nathan Sidwell <nathan@codesourcery.com>
9355 Iain Sandoe <iain@codesourcery.com>
9356 Nathan Froyd <froydnj@codesourcery.com>
9357 Chao-ying Fu <fu@mips.com>
9359 * doc/extend.texi: (micromips, nomicromips, nocompression):
9360 Document new function attributes.
9361 * doc/invoke.texi (minterlink-compressed, mmicromips,
9362 m14k, m14ke, m14kec): Document new options.
9363 (minterlink-mips16): Update documentation.
9364 * doc/md.texi (ZC, ZD): Document new constraints.
9365 * configure.ac (gcc_cv_as_micromips): Check if linker
9366 supports the .set micromips directive.
9367 * configure: Regenerate.
9368 * config.in: Regenerate.
9369 * config/mips/mips-tables.opt: Regenerate.
9370 * config/mips/micromips.md: New file.
9371 * constraints.md (ZC, AD): New constraints.
9372 * config/mips/predicates.md (movep_src_register): New predicate.
9373 (movep_src_operand): New predicate.
9374 (non_volatile_mem_operand): New predicate.
9375 * config/mips/mips.md (multimem): New type.
9376 (length): Differentiate between 17-bit and 18-bit branch offsets.
9377 (MOVEP1, MOVEP2): New mode iterator.
9378 (mov_<load>l): Use ZC constraint.
9379 (mov_<load>r): Likewise.
9380 (mov_<store>l): Likewise.
9381 (mov_<store>r): Likewise.
9382 (*branch_equality<mode>_inverted): Add microMIPS support.
9383 (*branch_equality<mode>): Likewise.
9384 (*jump_absolute): Likewise.
9385 (indirect_jump_<mode>): Likewise.
9386 (tablejump_<mode>): Likewise.
9387 (<optab>_internal): Likewise.
9388 (sibcall_internal): Likewise.
9389 (sibcall_value_internal): Likewise.
9390 (prefetch): Use constraint ZD.
9391 * config/mips/mips.opt (minterlink-compressed): New option.
9392 (minterlink-mips16): Now an alias for minterlink-compressed.
9393 (mmicromips): New option.
9394 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
9395 (compare_and_swap_12): Likewise.
9396 (sync_add<mode>): Likewise.
9397 (sync_<optab>_12): Likewise.
9398 (sync_old_<optab>_12): Likewise.
9399 (sync_new_<optab>_12): Likewise.
9400 (sync_nand_12): Likewise.
9401 (sync_old_nand_12): Likewise.
9402 (sync_new_nand_12): Likewise.
9403 (sync_sub<mode>): Likewise.
9404 (sync_old_add<mode>): Likewise.
9405 (sync_old_sub<mode>): Likewise.
9406 (sync_new_add<mode>): Likewise.
9407 (sync_new_sub<mode>): Likewise.
9408 (sync_<optab><mode>): Likewise.
9409 (sync_old_<optab><mode>): Likewise.
9410 (sync_new_<optab><mode>): Likewise.
9411 (sync_nand<mode>): Likewise.
9412 (sync_old_nand<mode>): Likewise.
9413 (sync_new_nand<mode>): Likewise.
9414 (sync_lock_test_and_set<mode>): Likewise.
9415 (test_and_set_12): Likewise.
9416 (atomic_compare_and_swap<mode>): Likewise.
9417 (atomic_exchange<mode>_llsc): Likewise.
9418 (atomic_fetch_add<mode>_llsc): Likewise.
9419 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
9420 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
9421 (umips_save_restore_pattern_p): Likewise.
9422 (umips_load_store_pair_p): Likewise.
9423 (umips_output_load_store_pair): Likewise.
9424 (umips_movep_target_p): Likewise.
9425 (umips_12bit_offset_address_p): Likewise.
9426 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
9427 (mips_base_mips16): Rename this...
9428 (mips_base_compression_flags): ...to this. Update all uses.
9429 (mips_attribute_table): Add micromips, nomicromips and nocompression.
9430 (mips_mips16_decl_p): Delete.
9431 (mips_nomips16_decl_p): Delete.
9432 (mips_get_compress_on_flags): New function.
9433 (mips_get_compress_off_flags): New function.
9434 (mips_get_compress_mode): New function.
9435 (mips_get_compress_on_name): New function.
9436 (mips_get_compress_off_name): New function.
9437 (mips_insert_attributes): Support multiple compression types.
9438 (mips_merge_decl_attributes): Likewise.
9439 (umips_12bit_offset_address_p): New function.
9440 (mips_start_function_definition): Emit .set micromips directive.
9441 (mips_call_may_need_jalx_p): New function.
9442 (mips_function_ok_for_sibcall): Add microMIPS support.
9443 (mips_print_operand_punctuation): Support short delay slots and
9445 (umips_swm_mask, umips_swm_encoding): New.
9446 (umips_build_save_restore): New function.
9447 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
9448 (was_mips16_p): Remove.
9449 (old_compression_mode): New.
9450 (mips_set_compression_mode): New function.
9451 (mips_set_current_function): Add microMIPS support.
9452 (mips_option_override): Likewise.
9453 (umips_save_restore_pattern_p): New function.
9454 (umips_output_save_restore): New function.
9455 (umips_load_store_pair_p_1): New function.
9456 (umips_load_store_pair_p): New function.
9457 (umips_output_load_store_pair_1): New function.
9458 (umips_output_load_store_pair): New function.
9459 (umips_movep_target_p) New function.
9460 (mips_prepare_pch_save): Add microMIPS support.
9461 * config/mips/mips.h (TARGET_COMPRESSION): New.
9462 (TARGET_CPU_CPP_BUILTINS): Update macro
9463 to use new compression flags and to support microMIPS.
9464 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
9465 (MIPS_ARCH_FLOAT_SPEC): Likewise.
9466 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
9467 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
9468 (ASM_SPEC): Support mmicromips and mno-micromips.
9469 (M16STORE_REG_P): New macro.
9470 (MIPS_CALL): Support TARGET_MICROMIPS.
9471 (MICROMIPS_J): New macro.
9472 (mips_base_mips16): Rename this...
9473 (mips_base_compression_flags): ...to this.
9474 (UMIPS_12BIT_OFFSET_P): New macro.
9475 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
9476 (MULTILIB_DIRNAMES): Likewise.
9478 2013-02-25 Tom de Vries <tom@codesourcery.com>
9480 PR rtl-optimization/56131
9481 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
9482 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
9483 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
9485 2013-02-25 Tobias Burnus <burnus@net-b.de>
9487 * doc/invoke.texi (-fsanitize=): Move from optimization
9488 to debugging options.
9490 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
9492 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
9494 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
9495 Alexander Monakov <amonakov@ispras.ru>
9498 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
9499 flush pending lists also on non-jumps. Adjust comment.
9501 2013-02-24 Catherine Moore <clm@codesourcery.com>
9502 Maciej W. Rozycki <macro@codesourcery.com>
9503 Tom de Vries <tom@codesourcery.com>
9504 Nathan Sidwell <nathan@codesourcery.com>
9505 Iain Sandoe <iain@codesourcery.com>
9506 Nathan Froyd <froydnj@codesourcery.com>
9507 Chao-ying Fu <fu@mips.com>
9509 * doc/extend.texi: (micromips, nomicromips, nocompression):
9510 Document new function attributes.
9511 * doc/invoke.texi (minterlink-compressed, mmicromips,
9512 m14k, m14ke, m14kec): Document new options.
9513 (minterlink-mips16): Update documentation.
9514 * doc/md.texi (ZC, ZD): Document new constraints.
9515 * configure.ac (gcc_cv_as_micromips): Check if linker
9516 supports the .set micromips directive.
9517 * configure: Regenerate.
9518 * config.in: Regenerate.
9519 * config/mips/mips-tables.opt: Regenerate.
9520 * config/mips/micromips.md: New file.
9521 * constraints.md (ZC, AD): New constraints.
9522 * config/mips/predicates.md (movep_src_register): New predicate.
9523 (movep_src_operand): New predicate.
9524 (non_volatile_mem_operand): New predicate.
9525 * config/mips/mips.md (multimem): New type.
9526 (length): Differentiate between 17-bit and 18-bit branch offsets.
9527 (MOVEP1, MOVEP2): New mode iterator.
9528 (mov_<load>l): Use ZC constraint.
9529 (mov_<load>r): Likewise.
9530 (mov_<store>l): Likewise.
9531 (mov_<store>r): Likewise.
9532 (*branch_equality<mode>_inverted): Add microMIPS support.
9533 (*branch_equality<mode>): Likewise.
9534 (*jump_absolute): Likewise.
9535 (indirect_jump_<mode>): Likewise.
9536 (tablejump_<mode>): Likewise.
9537 (<optab>_internal): Likewise.
9538 (sibcall_internal): Likewise.
9539 (sibcall_value_internal): Likewise.
9540 (prefetch): Use constraint ZD.
9541 * config/mips/mips.opt (minterlink-compressed): New option.
9542 (minterlink-mips16): Now an alias for minterlink-compressed.
9543 (mmicromips): New option.
9544 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
9545 (compare_and_swap_12): Likewise.
9546 (sync_add<mode>): Likewise.
9547 (sync_<optab>_12): Likewise.
9548 (sync_old_<optab>_12): Likewise.
9549 (sync_new_<optab>_12): Likewise.
9550 (sync_nand_12): Likewise.
9551 (sync_old_nand_12): Likewise.
9552 (sync_new_nand_12): Likewise.
9553 (sync_sub<mode>): Likewise.
9554 (sync_old_add<mode>): Likewise.
9555 (sync_old_sub<mode>): Likewise.
9556 (sync_new_add<mode>): Likewise.
9557 (sync_new_sub<mode>): Likewise.
9558 (sync_<optab><mode>): Likewise.
9559 (sync_old_<optab><mode>): Likewise.
9560 (sync_new_<optab><mode>): Likewise.
9561 (sync_nand<mode>): Likewise.
9562 (sync_old_nand<mode>): Likewise.
9563 (sync_new_nand<mode>): Likewise.
9564 (sync_lock_test_and_set<mode>): Likewise.
9565 (test_and_set_12): Likewise.
9566 (atomic_compare_and_swap<mode>): Likewise.
9567 (atomic_exchange<mode>_llsc): Likewise.
9568 (atomic_fetch_add<mode>_llsc): Likewise.
9569 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
9570 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
9571 (umips_save_restore_pattern_p): Likewise.
9572 (umips_load_store_pair_p): Likewise.
9573 (umips_output_load_store_pair): Likewise.
9574 (umips_movep_target_p): Likewise.
9575 (umips_12bit_offset_address_p): Likewise.
9576 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
9577 (mips_base_mips16): Rename this...
9578 (mips_base_compression_flags): ...to this. Update all uses.
9579 (mips_attribute_table): Add micromips, nomicromips and nocompression.
9580 (mips_mips16_decl_p): Delete.
9581 (mips_nomips16_decl_p): Delete.
9582 (mips_get_compress_on_flags): New function.
9583 (mips_get_compress_off_flags): New function.
9584 (mips_get_compress_mode): New function.
9585 (mips_get_compress_on_name): New function.
9586 (mips_get_compress_off_name): New function.
9587 (mips_insert_attributes): Support multiple compression types.
9588 (mips_merge_decl_attributes): Likewise.
9589 (umips_12bit_offset_address_p): New function.
9590 (mips_start_function_definition): Emit .set micromips directive.
9591 (mips_call_may_need_jalx_p): New function.
9592 (mips_function_ok_for_sibcall): Add microMIPS support.
9593 (mips_print_operand_punctuation): Support short delay slots and
9595 (umips_swm_mask, umips_swm_encoding): New.
9596 (umips_build_save_restore): New function.
9597 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
9598 (was_mips16_p): Remove.
9599 (old_compression_mode): New.
9600 (mips_set_compression_mode): New function.
9601 (mips_set_current_function): Add microMIPS support.
9602 (mips_option_override): Likewise.
9603 (umips_save_restore_pattern_p): New function.
9604 (umips_output_save_restore): New function.
9605 (umips_load_store_pair_p_1): New function.
9606 (umips_load_store_pair_p): New function.
9607 (umips_output_load_store_pair_1): New function.
9608 (umips_output_load_store_pair): New function.
9609 (umips_movep_target_p) New function.
9610 (mips_prepare_pch_save): Add microMIPS support.
9611 * config/mips/mips.h (TARGET_COMPRESSION): New.
9612 (TARGET_CPU_CPP_BUILTINS): Update macro
9613 to use new compression flags and to support microMIPS.
9614 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
9615 (MIPS_ARCH_FLOAT_SPEC): Likewise.
9616 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
9617 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
9618 (ASM_SPEC): Support mmicromips and mno-micromips.
9619 (M16STORE_REG_P): New macro.
9620 (MIPS_CALL): Support TARGET_MICROMIPS.
9621 (MICROMIPS_J): New macro.
9622 (mips_base_mips16): Rename this...
9623 (mips_base_compression_flags): ...to this.
9624 (UMIPS_12BIT_OFFSET_P): New macro.
9625 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
9626 (MULTILIB_DIRNAMES): Likewise.
9628 2013-02-24 Jakub Jelinek <jakub@redhat.com>
9631 * target-globals.c (save_target_globals): For init_reg_sets and
9632 target_reinit remporarily set this_fn_optabs to this_target_optabs.
9634 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
9636 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
9637 * config/aarch64/t-aarch64
9638 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
9640 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
9643 * lra-constraints.c (process_alt_operands): Reload operand
9644 conflicting with earlier clobber only if no more other conflicting
9647 2013-02-22 Jakub Jelinek <jakub@redhat.com>
9650 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
9651 if not linking a shared library.
9653 2013-02-22 Seth LaForge <sethml@google.com>
9655 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
9657 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
9659 * config/arm/arm.md (split for extendsidi): Update condition.
9660 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
9661 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
9662 (qhs_zextenddi_cstr): Likewise.
9664 2013-02-21 Jakub Jelinek <jakub@redhat.com>
9667 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
9668 avoid signed wrapping.
9669 (expand_mult): Handle properly multiplication by
9670 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
9671 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
9672 in the compiler if coeff is HOST_WIDE_INT_MIN.
9673 (expand_divmod): Don't make ext_op1 static, change it's type to
9674 uhwi. Avoid undefined behavior in -INTVAL (op1).
9676 PR rtl-optimization/50339
9677 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
9679 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
9680 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
9681 into splitting_ashiftrt field.
9682 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
9684 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
9687 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
9690 * trans-mem.c (execute_tm_mark): Do not expand transactions that
9691 are sure to go irrevocable.
9693 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
9695 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
9696 scalars are valid operands.
9698 2013-02-21 Martin Jambor <mjambor@suse.cz>
9700 PR tree-optimization/56310
9701 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
9702 only matching indices and non-negative final offsets.
9703 (intersect_aggregates_with_edge): Pass src_idx to
9704 agg_replacements_to_vector. Pass src_idx insstead of index to
9705 intersect_with_agg_replacements.
9707 2013-02-21 Martin Jambor <mjambor@suse.cz>
9709 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
9710 instead of hard-wired defaults.
9712 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
9714 * doc/invoke.texi (MIPS Options): Update documentation of the
9715 floating-point multiply-accumulate instruction restrictions.
9717 2013-02-21 Kostya Serebryany <kcc@google.com>
9719 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
9720 asan_shadow_offset on x86_64 linux.
9722 2013-02-21 Richard Biener <rguenther@suse.de>
9724 PR tree-optimization/56415
9726 2013-02-11 Richard Biener <rguenther@suse.de>
9728 PR tree-optimization/56273
9729 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
9732 2013-02-21 Jakub Jelinek <jakub@redhat.com>
9735 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
9739 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
9740 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
9742 2013-02-20 Jan Hubicka <jh@suse.cz>
9744 PR tree-optimization/56265
9745 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
9746 when target is referenced for first time.
9748 2013-02-20 Richard Biener <rguenther@suse.de>
9750 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
9751 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
9752 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
9753 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
9754 not return anything.
9755 (rename_ssa_copies): Do not remove unused locals.
9756 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
9757 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
9758 * passes.c (execute_function_todo): Do not schedule unused locals
9759 removal if cleanup_tree_cfg did something.
9760 * tree-ssa-live.c (remove_unused_locals): Dump statistics
9761 about the number of removed locals.
9763 2013-02-20 Richard Biener <rguenther@suse.de>
9765 PR tree-optimization/56398
9766 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
9768 2013-02-20 Martin Jambor <mjambor@suse.cz>
9770 PR tree-optimization/55334
9771 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
9772 restricted pointers to arrays.
9774 2013-02-20 Richard Biener <rguenther@suse.de>
9775 Jakub Jelinek <jakub@redhat.com>
9777 PR tree-optimization/56396
9778 * tree-ssa-ccp.c (n_const_val): New static variable.
9779 (get_value): Return NULL for SSA names we don't have a lattice
9781 (ccp_initialize): Initialize n_const_val.
9782 * tree-ssa-copy.c (n_copy_of): New static variable.
9783 (init_copy_prop): Initialize n_copy_of.
9784 (get_value): Return NULL_TREE for SSA names we don't have a
9787 2013-02-20 Martin Jambor <mjambor@suse.cz>
9789 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
9791 2013-02-20 Richard Biener <rguenther@suse.de>
9793 * genpreds.c (write_lookup_constraint): Do not compare first
9794 letter of the constraint again.
9796 2013-02-20 Richard Biener <rguenther@suse.de>
9798 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
9800 (get_use_iv_cost): Terminate hashtable walk when coming across
9803 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
9805 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
9806 reassociation for avx2 targets.
9808 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9810 * config/microblaze/microblaze.c: microblaze_has_clz = 0
9811 Add version check for v8.10.a to enable microblaze_has_clz
9812 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
9813 version and TARGET_PATTERN_COMPARE check
9814 * config/microblaze/microblaze.md: New clzsi2 instruction
9816 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9818 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
9819 function before branching.
9821 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
9823 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
9825 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
9827 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
9830 * sel-sched.c: Include ira.h.
9831 (implicit_clobber_conflict_p): New function.
9832 (moveup_expr): Use it.
9833 * Makefile.in (sel-sched.o): Depend on ira.h.
9835 2013-02-19 Richard Biener <rguenther@suse.de>
9837 PR tree-optimization/56384
9838 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
9839 (vn_hash_type): Split out from ...
9840 (vn_hash_constant_with_type): ... here.
9841 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
9842 (vn_phi_eq): Compare types from vn_phi_s structure.
9843 (vn_phi_lookup): Populate vn_phi_s type.
9844 (vn_phi_insert): Likewise.
9846 2013-02-19 Jakub Jelinek <jakub@redhat.com>
9848 PR tree-optimization/56350
9849 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
9850 if haven't found reduction or nested cycle operand, rather than
9851 asserting we must find it.
9853 PR tree-optimization/56381
9854 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
9857 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
9858 Jakub Jelinek <jakub@redhat.com>
9861 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
9862 (swap_optab_enable): Same.
9863 (init_all_optabs): Use argument instead of global.
9864 * tree.h (struct tree_optimization_option): New field target_optabs.
9865 * expr.h (init_all_optabs): Add argument to prototype.
9866 (TREE_OPTIMIZATION_OPTABS): New.
9867 (save_optabs_if_changed): Protoize.
9868 * optabs.h: Declare this_fn_optabs.
9869 * optabs.c (save_optabs_if_changed): New.
9870 Declare this_fn_optabs.
9871 (init_optabs): Add argument to init_all_optabs() call.
9872 * function.c (invoke_set_current_function_hook): Handle per
9874 * function.h (struct function): New field optabs.
9875 * config/mips/mips.c (mips_set_mips16_mode): Handle when
9876 optimization_current_node has changed.
9877 * target-globals.h (save_target_globals_default_opts): Protoize.
9878 * target-globals.c (save_target_globals_default_opts): New.
9880 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9883 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
9884 registers %fr12 and %fr12R as call used.
9887 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
9888 and HImode, require all displacements to be an integer multiple of
9890 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
9891 only allow QImode and HImode when reload is in progress and strict is
9892 true. Likewise for symbolic addresses. Use base14_operand to check
9893 displacements in REG+BASE addresses.
9895 2013-02-18 Richard Biener <rguenther@suse.de>
9897 PR tree-optimization/56366
9898 * tree-vect-loop.c (get_initial_def_for_induction): Properly
9899 handle sign-conversion of outer-loop initial induction value.
9901 2013-02-18 Richard Biener <rguenther@suse.de>
9904 * cfghooks.c (merge_blocks): If we merge a latch into another
9905 block adjust references to it.
9906 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
9907 (verify_loop_structure): Verify that a recorded latch is in fact
9910 2013-02-18 Richard Biener <rguenther@suse.de>
9912 PR tree-optimization/56321
9913 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
9914 order SSA name release and virtual operand unlinking.
9916 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9918 * config/microblaze/microblaze.md (save_stack_block): Define.
9919 (restore_stack_block): Likewise.
9921 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9923 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
9924 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
9925 * config/microblaze/microblaze.c (microblaze_option_override):
9926 Bail out early for PIC modes when target does not support PIC.
9928 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9930 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
9931 Replace with a microblaze version.
9932 (microblaze_trampoline_init): Adapt for microblaze.
9933 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
9936 2013-02-16 Jakub Jelinek <jakub@redhat.com>
9937 Dodji Seketeli <dodji@redhat.com>
9940 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
9941 (instrument_mem_region_access): Do not forget to always put
9942 instrumentation of the of 'base' and 'base + len' in a "if (len !=
9943 0) statement, even for cases where either 'base' or 'base + len'
9944 are not instrumented -- because they have been previously
9945 instrumented. Simplify the logic by putting all the statements
9946 instrument 'base + len' inside a sequence, and then insert that
9947 sequence right before the current insertion point. Then, to
9948 instrument 'base + len', just get an iterator on that statement.
9949 And do not forget to update the pointer to iterator the function
9950 received as argument.
9952 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
9954 PR rtl-optimization/56348
9955 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
9957 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
9959 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
9960 (clean_graph_dump_file): Pass base to start_graph_dump.
9962 2013-02-14 Richard Henderson <rth@redhat.com>
9965 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
9967 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
9969 * collect2-aix.h: Define F_LOADONLY.
9971 2013-02-14 Richard Biener <rguenther@suse.de>
9974 * varasm.c (output_constant_def_1): Get the decl representing
9975 the constant as argument.
9976 (output_constant_def): Wrap output_constant_def_1.
9977 (make_decl_rtl): Use output_constant_def_1 with the decl
9978 representing the constant.
9979 (build_constant_desc): Optionally re-use a decl already
9980 representing the constant.
9981 (tree_output_constant_def): Adjust.
9983 2013-02-14 Dodji Seketeli <dodji@redhat.com>
9986 * asan.c (instrument_builtin_call): Really put the length of the
9987 second source argument into src1_len.
9989 2013-02-13 Jakub Jelinek <jakub@redhat.com>
9991 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
9992 argument. If it is false, don't create edge from then_bb to
9994 (insert_if_then_before_iter): Pass true to it.
9995 (build_check_stmt): Pass false to it.
9996 (transform_statements): Flush hash table only on extended basic
9997 block boundaries, rather than at the beginning of every bb.
9998 Don't flush hash table on nonfreeing_call_p calls.
9999 * tree-flow.h (nonfreeing_call_p): New prototype.
10000 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
10002 2013-02-13 David S. Miller <davem@davemloft.net>
10004 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
10006 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
10009 * ira.c (max_regno_before_ira): Move from ...
10011 (fix_reg_equiv_init): Use max_regno_before_ira instead of
10014 2013-02-13 Jakub Jelinek <jakub@redhat.com>
10016 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
10018 2013-02-13 Richard Biener <rguenther@suse.de>
10021 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
10022 globals in MEM_REFs.
10024 2013-02-13 Richard Biener <rguenther@suse.de>
10026 * loop-init.c (loop_optimizer_init): Clear loop state when
10027 re-initializing preserved loops.
10028 * loop-unswitch.c (unswitch_single_loop): Return whether
10029 we unswitched the loop. Do not verify loop state here.
10030 (unswitch_loops): When we unswitched a loop discover new loops.
10032 2013-02-13 Kostya Serebryany <kcc@google.com>
10034 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
10036 * sanitizer.def: Rename __asan_init to __asan_init_v1.
10038 2013-02-12 Dodji Seketeli <dodji@redhat.com>
10040 Avoid instrumenting duplicated memory access in the same basic block
10041 * Makefile.in (asan.o): Add new dependency on hash-table.h
10042 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
10043 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
10044 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
10045 (free_mem_ref_resources, has_mem_ref_been_instrumented)
10046 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
10047 (get_mem_ref_of_assignment): New functions.
10048 (get_mem_refs_of_builtin_call): Extract from
10049 instrument_builtin_call and tweak a little bit to make it fit with
10051 (instrument_builtin_call): Use the new
10052 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
10053 of is_gimple_builtin_call.
10054 (instrument_derefs, instrument_mem_region_access): Insert the
10055 instrumented memory reference into the hash table.
10056 (maybe_instrument_assignment): Renamed instrument_assignment into
10057 this, and change it to advance the iterator when instrumentation
10058 actually happened and return true in that case. This makes it
10059 homogeneous with maybe_instrument_assignment, and thus give a
10060 chance to callers to be more 'regular'.
10061 (transform_statements): Clear the memory reference hash table
10062 whenever we enter a new BB, when we cross a function call, or when
10063 we are done transforming statements. Use
10064 maybe_instrument_assignment instead of instrumentation. No more
10065 need to special case maybe_instrument_assignment and advance the
10066 iterator after calling it; it's now handled just like
10067 maybe_instrument_call. Update comment.
10069 2013-02-13 Richard Biener <rguenther@suse.de>
10071 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
10072 Fix loop discovery code.
10074 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
10076 PR inline-asm/56148
10077 * lra-constraints.c (process_alt_operands): Match early clobber
10078 operand with itself. Check conflicts with earlyclobber only if
10079 the operand is not reloaded. Prefer to reload conflicting operand
10080 if earlyclobber and matching operands are the same.
10082 2013-02-12 Richard Biener <rguenther@suse.de>
10085 * lto-streamer-out.c (write_symbol): Do not output symbols
10086 for hard register variables.
10088 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
10091 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
10092 (umulsidi3_insn, mulsidi3_insn): New insns.
10094 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
10096 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
10097 (struct tune_params): Add vec_costs field.
10098 * config/arm/arm.c (arm_builtin_vectorization_cost)
10099 (arm_add_stmt_cost): New functions.
10100 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
10101 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
10102 (arm_default_vec_cost): New struct of type cpu_vec_costs.
10103 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
10104 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
10105 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
10106 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
10108 2013-02-12 Richard Biener <rguenther@suse.de>
10111 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
10112 decls again if possible.
10114 2013-02-12 Richard Biener <rguenther@suse.de>
10116 PR middle-end/56288
10117 * tree-ssa.c (verify_ssa_name): Fix check, move
10118 SSA_NAME_IN_FREE_LIST check up.
10120 2013-02-12 Jakub Jelinek <jakub@redhat.com>
10121 Steven Bosscher <steven@gcc.gnu.org>
10123 PR rtl-optimization/56151
10124 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
10125 equal to op0 or op1, and last_insn pattern is CODE operation
10126 with MEM dest and one of the operands matches that MEM.
10128 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
10130 * doc/extend.texi: Document Function Multiversioning and "default"
10131 parameter string to target attribute.
10132 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
10133 target attribute parameter is "default".
10134 (ix86_compare_version_priority): Remove checks for target attribute.
10135 (ix86_mangle_function_version_assembler_name): Change error to sorry.
10136 Remove check for target attribute equal to NULL. Add assert.
10137 (ix86_generate_version_dispatcher_body): Change error to sorry.
10139 2013-02-11 Iain Sandoe <iain@codesourcery.com>
10140 Jack Howarth <howarth@bromo.med.uc.edu>
10141 Patrick Marlier <patrick.marlier@gmail.com>
10144 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
10145 define ENDFILE_SPEC as TM_DESTRUCTOR.
10146 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
10148 2013-02-11 Alexander Potapenko <glider@google.com>
10149 Jack Howarth <howarth@bromo.med.uc.edu>
10150 Jakub Jelinek <jakub@redhat.com>
10153 * config/darwin.c (cdtor_record): Rename ctor_record.
10154 (sort_cdtor_records): Rename sort_ctor_records.
10155 (finalize_dtors): New routine to sort destructors by
10156 priority before use in assemble_integer.
10157 (machopic_asm_out_destructor): Use finalize_dtors if needed.
10159 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
10161 PR rtl-optimization/56275
10162 * simplify-rtx.c (avoid_constant_pool_reference): Check that
10163 offset is non-negative and less than cmode size before
10164 calling simplify_subreg.
10166 2013-02-11 Richard Biener <rguenther@suse.de>
10168 PR tree-optimization/56264
10169 * cfgloop.h (fix_loop_structure): Adjust prototype.
10170 * loop-init.c (fix_loop_structure): Return the number of
10171 newly discovered loops.
10172 * tree-cfgcleanup.c (repair_loop_structures): When new loops
10173 are discovered, do a full loop-closed SSA rewrite.
10175 2013-02-11 Richard Biener <rguenther@suse.de>
10177 PR tree-optimization/56273
10178 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
10180 (check_array_ref): Fix missing newline in dumps.
10181 (search_for_addr_array): Likewise.
10183 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
10185 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
10187 2013-02-09 Jakub Jelinek <jakub@redhat.com>
10190 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
10192 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
10194 PR rtl-optimization/56246
10195 * lra-constraints.c (simplify_operand_subreg): Try to reuse
10197 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
10198 constraints are satisfied.
10200 2013-02-08 Jeff Law <law@redhat.com>
10203 * emit-rtl.c (reg_is_parm_p): New function.
10204 * regs.h (reg_is_parm_p): New prototype.
10205 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
10206 callee-clobbered registers.
10208 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
10211 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
10212 If there is no implicit builtin declaration, just return NULL.
10214 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
10216 * config/i386/sse.md (FMAMODEM): New mode iterator.
10217 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
10218 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
10220 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
10222 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
10223 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
10224 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
10226 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10228 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
10229 (microblaze*-*-elf): Likewise.
10230 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
10232 * config/microblaze/microblaze-c.c: Add builtin defines for
10233 _LITTLE_ENDIAN and _BIG_ENDIAN.
10234 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
10235 add to TARGET_DEFAULT flags.
10236 Expand ASM_SPEC and LINK_SPEC.
10237 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
10238 * config/microblaze/microblaze.md: Update extendsidi2 and
10239 movdi_internal instructions to use low-order / high-order reg
10241 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
10242 options and inversemask / mask of LITTLE_ENDIAN.
10243 * config/microblaze/t-microblaze: Expand multilib options to
10244 include mlittle-endian (le) and update exceptions patterns.
10246 2013-02-08 Jakub Jelinek <jakub@redhat.com>
10248 PR rtl-optimization/56195
10249 * lra-constraints.c (get_reload_reg): Don't reuse regs
10250 if they have smaller mode than requested, if they have
10251 wider mode than requested, try to return a SUBREG.
10253 PR tree-optimization/56250
10254 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
10255 if type is unsigned and code isn't MULT_EXPR.
10257 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
10259 PR tree-optimization/56064
10260 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
10261 bits according to mode.
10262 * fixed-value.h (fixed_from_double_int)
10263 (const_fixed_from_double_int): Adjust comments.
10265 2013-02-08 Richard Biener <rguenther@suse.de>
10268 * lto-streamer.h (struct data_in): Remove current_file, current_line
10269 and current_col members.
10270 * lto-streamer-out.c (lto_output_location): Stream changed bits
10271 en-block for efficiency.
10272 * lto-streamer-in.c (clear_line_info): Remove.
10273 (lto_input_location): Cache current file, line and column
10274 globally via local statics. Read changed bits en-block.
10275 (input_function): Do not call clear_line_info.
10276 (lto_read_body): Likewise.
10277 (lto_input_toplevel_asms): Likewise.
10279 2013-02-08 Michael Matz <matz@suse.de>
10281 PR tree-optimization/52448
10282 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
10283 (nt_call_phase): New static.
10284 (add_or_mark_expr): Only mark accesses with newer phase than any
10286 (nonfreeing_call_p): New.
10287 (nt_init_block): Update nt_call_phase, mark blocks as visited.
10288 (nt_fini_block): Keep blocks marked as visited.
10289 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
10291 2013-02-08 Richard Biener <rguenther@suse.de>
10293 * ira.c (ira): Free broken dominator information.
10295 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
10297 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
10299 2013-02-08 Marek Polacek <polacek@redhat.com>
10301 * cfgloop.c (verify_loop_structure): Add more checking of headers.
10303 2013-02-08 Richard Biener <rguenther@suse.de>
10305 PR middle-end/56181
10306 * cfgloop.h (flow_loops_find): Adjust.
10307 (bb_loop_header_p): Declare.
10308 * cfgloop.c (bb_loop_header_p): New function split out from ...
10309 (flow_loops_find): ... here. Adjust function signature,
10310 support incremental loop structure update.
10311 (verify_loop_structure): Cleanup. Verify a loop is a loop.
10312 * cfgloopmanip.c (fix_loop_structure): Move ...
10313 * loop-init.c (fix_loop_structure): ... here.
10314 (apply_loop_flags): Split out from ...
10315 (loop_optimizer_init): ... here.
10316 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
10317 in incremental mode, only remove dead loops here.
10319 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
10322 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
10323 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
10324 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
10325 (*round<mode>3.libgcc): New insns for fixed-modes.
10326 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
10327 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
10328 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
10329 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
10330 implementations. Define to __builtin_avr_absFX,
10331 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
10332 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
10333 __builtin_avr_countlsFX, respectively.
10334 * config/avr/avr-c.c (target.h): Include it.
10335 (enum avr_builtin_id): New enum.
10336 (avr_resolve_overloaded_builtin): New static function.
10337 (avr_register_target_pragmas): Use it to set
10338 targetm.resolve_overloaded_builtin.
10339 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
10340 tree nodes used by DEF_BUILTIN.
10341 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
10342 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
10343 <AVR_BUILTIN_xxBITS>: Same.
10345 2013-02-08 Richard Biener <rguenther@suse.de>
10347 * cfgloop.c (verify_loop_structure): Properly handle
10348 a loop exiting to another loop header.
10349 * ira-int.h (ira_loops): Remove.
10350 * ira.c (ira_loops): Remove.
10351 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
10352 (do_reload): Use loop_optimizer_finalize.
10353 * ira-build.c (create_loop_tree_nodes): Use get_loops and
10354 number_of_loops to access the loop tree.
10355 (more_one_region_p): Likewise.
10356 (finish_loop_tree_nodes): Likewise.
10357 (rebuild_regno_allocno_maps): Likewise.
10358 (mark_loops_for_removal): Likewise.
10359 (mark_all_loops_for_removal): Likewise.
10360 (remove_unnecessary_regions): Likewise.
10361 (ira_build): Likewise.
10362 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
10364 2013-02-08 Richard Biener <rguenther@suse.de>
10366 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
10367 * ipa-pure-const.c (analyze_function): Avoid calling
10368 mark_irreducible_loops twice.
10369 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
10371 2013-02-07 David S. Miller <davem@davemloft.net>
10373 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
10375 * var-tracking.c (vt_add_function_parameter): Test the presence of
10376 HAVE_window_save properly and do not remap argument registers when
10377 we have a leaf function.
10379 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
10382 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
10384 * config/i386/i386.c (ix86_print_operand): Ditto.
10386 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
10388 * lra-constraints.c (process_alt_operands): Fix recently added comment.
10390 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
10392 PR rtl-optimization/56225
10393 * lra-constraints.c (process_alt_operands): Check that reload hard
10394 reg can hold value for strict_low_part.
10396 2013-02-07 Jakub Jelinek <jakub@redhat.com>
10399 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
10400 dwarf2out_end_function.
10401 (in_first_function_p, maybe_at_text_label_p,
10402 first_loclabel_num_not_at_text_label): New variables.
10403 (dwarf2out_var_location): In the first function find out
10404 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
10405 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
10408 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
10410 PR rtl-optimization/56178
10411 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
10412 SUBREG of a register. Tidy up related block of code.
10413 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
10414 note if the source is a register or a SUBREG of a register.
10416 2013-02-07 Jakub Jelinek <jakub@redhat.com>
10419 * config/rs6000/rs6000.md (ptrm): New mode attr.
10420 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
10421 call_value_indirect_aix<pttrsize>,
10422 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
10425 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
10427 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
10428 if -bnortl. Convert to strcmp and strncmp.
10430 2013-02-07 Alan Modra <amodra@gmail.com>
10433 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
10434 addresses won't wrap when offsetting.
10435 (rs6000_secondary_reload): Provide secondary reloads needed for
10436 wrapping LO_SUM addresses.
10438 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
10440 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
10441 MACH, just __MACH__.
10443 2013-02-06 Richard Biener <rguenther@suse.de>
10445 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
10446 instead of calling fix_loop_structure.
10448 2013-02-06 Jakub Jelinek <jakub@redhat.com>
10450 PR middle-end/56217
10451 * omp-low.c (use_pointer_for_field): Return false if
10452 lower_send_shared_vars doesn't generate any copy-out code.
10454 2013-02-06 Tom de Vries <tom@codesourcery.com>
10456 PR rtl-optimization/56131
10457 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
10458 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
10459 of the label is NULL. Add comment.
10461 2013-02-05 Jakub Jelinek <jakub@redhat.com>
10463 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
10466 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
10467 (STATIC_LIBTSAN_LIBS): Likewise.
10468 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
10469 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
10470 is defined, don't add anything else beyond that.
10471 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
10472 (LINK_COMMAND_SPEC): Use them.
10474 PR tree-optimization/56205
10475 * tree-stdarg.c (check_all_va_list_escapes): Return true if
10476 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
10477 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
10479 2013-02-05 Richard Biener <rguenther@suse.de>
10481 PR tree-optimization/53342
10482 PR tree-optimization/53185
10483 * tree-vectorizer.h (vect_check_strided_load): Remove.
10484 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
10485 not disallow peeling for vectorized strided loads.
10486 (vect_check_strided_load): Make static and simplify.
10487 (vect_analyze_data_refs): Adjust.
10488 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
10489 correctly when vectorizing strided loads.
10491 2013-02-05 Richard Biener <rguenther@suse.de>
10493 * doc/install.texi: Refer to ISL, not PPL.
10495 2013-02-05 Jan Hubicka <jh@suse.cz>
10497 PR tree-optimization/55789
10498 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
10500 2013-02-05 Jan Hubicka <jh@suse.cz>
10502 PR tree-optimization/55789
10503 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
10504 the dead call anyway.
10506 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
10509 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
10511 2013-02-04 Alexander Potapenko <glider@google.com>
10512 Jack Howarth <howarth@bromo.med.uc.edu>
10513 Jakub Jelinek <jakub@redhat.com>
10516 * config/darwin.c (sort_ctor_records): Stabilized qsort
10517 on constructor priority by using original position.
10518 (finalize_ctors): New routine to sort constructors by
10519 priority before use in assemble_integer.
10520 (machopic_asm_out_constructor): Use finalize_ctors if needed.
10522 2013-02-04 Jakub Jelinek <jakub@redhat.com>
10525 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
10526 about visibility on artificial decls.
10527 * config/sol2.c (solaris_assemble_visibility): Likewise.
10529 2013-02-04 Kai Tietz <ktietz@redhat.com>
10532 * config/i386/i386.c (function_value_ms_64): Add additional valtype
10533 argument and improve checking of return-argument types for 16-byte
10535 (ix86_function_value_1): Add additional valtype argument on call
10536 of function_value_64.
10537 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
10538 handling infunction_value_64 function.
10540 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
10542 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
10544 2013-02-04 Richard Biener <rguenther@suse.de>
10546 PR tree-optimization/56188
10547 * tree-ssa-structalias.c (label_visit): Consider case with
10548 initially non-empty points-to set.
10549 (perform_var_substitution): Dump node mapping and clean up.
10551 2013-02-04 Richard Guenther <rguenther@suse.de>
10554 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
10555 node prevail as last resort.
10556 (lto_symtab_merge_decls): Remove guard on LTRANS here.
10557 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
10559 2013-02-04 Richard Biener <rguenther@suse.de>
10561 PR tree-optimization/56113
10562 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
10564 (equiv_class_lookup_or_add): ... this.
10565 (label_visit): Adjust and fix error in previous patch.
10566 (perform_var_substitution): Adjust.
10568 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
10570 * config/sh/divtab.c: Fix formatting and comments throughout the file.
10571 * config/sh/sh4-300.md: Likewise.
10572 * config/sh/sh4a.md: Likewise.
10573 * config/sh/constraints.md: Likewise.
10574 * config/sh/sh.md: Likewise.
10575 * config/sh/netbsd-elf.h: Likewise.
10576 * config/sh/predicates.md: Likewise.
10577 * config/sh/sh-protos.h: Likewise.
10578 * config/sh/ushmedia.h: Likewise.
10579 * config/sh/linux.h: Likewise.
10580 * config/sh/sh.c: Likewise.
10581 * config/sh/superh.h: Likewise.
10582 * config/sh/elf.h: Likewise.
10583 * config/sh/sh4.md: Likewise.
10584 * config/sh/sh.h: Likewise.
10586 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10588 * config/pa/constraints.md: Adjust unused letters. Change "T"
10589 constraint to match_test floating_point_store_memory_operand().
10590 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
10591 (base14_operand): New.
10592 (floating_point_store_memory_operand): New.
10593 (integer_store_memory_operand): Revise to use base14_operand and
10594 reg_plus_base_memory_operand.
10595 (move_dest_operand): Allow symbolic_memory_operands.
10596 (symbolic_memory_operand): Check for LO_SOM.
10597 (symbolic_operand): Change default case to break.
10598 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
10599 CONST_DOUBLE values to be reloaded by putting them into memory when
10600 the destination is a floating point register.
10601 (movdf): Remove code to handle CONST_DOUBLE.
10603 (reload_indf_r1): New.
10604 (reload_insf_r1): New.
10605 Consistently use "Q" and "T" constraints with integer and floating
10606 point move instructions, respectively.
10607 (movdi): Remove FAIL.
10608 Change predicate for source operand unamed DImode move from
10609 general_operand to move_src_operand.
10610 (umulsidi3): Change predicate for destination operand to
10612 Likewise for similar unamed patterns.
10613 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
10614 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
10615 (hppa_legitimize_address): Simplify mask calculation.
10616 (pa_emit_move_sequence): Revised handling of secondary reloads from
10617 REG+D addresses for floating point loads and stores. Directly handle
10618 loading CONST0_RTX (mode) to a floating point register.
10619 (pa_secondary_reload): Handle reloading DF and SFmode constant values
10620 to floating point registers. Don't restrict secondary reloads to
10621 floating point registers to integer modes. Revise some comments and
10623 (TARGET_LEGITIMATE_ADDRESS_P): Define.
10624 (pa_legitimate_address_p): New.
10625 (pa_legitimize_reload_address): New.
10626 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
10627 (STRICT_REG_OK_FOR_BASE_P): New.
10628 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
10629 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
10631 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
10632 Andrew Dixie <andrewd@gentrack.com>
10634 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
10637 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
10639 * expmed.c (extract_bit_field_1): Pass the full width of the
10640 structure to get_best_reg_extraction_insn.
10642 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
10645 * configure.ac (use_cxa_atexit): Add AIX.
10646 * configure: Regenerate.
10648 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
10650 2013-02-01 Jakub Jelinek <jakub@redhat.com>
10653 * final.c (need_profile_function): New variable.
10654 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
10655 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
10656 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
10657 notes, targetm.asm_out.function_prologue doesn't emit anything,
10658 HAVE_prologue and profiler should be emitted before prologue,
10659 set need_profile_function instead of emitting it.
10660 (final_scan_insn): If need_profile_function, emit
10661 profile_function on the first NOTE_INSN_BASIC_BLOCK or
10662 NOTE_INSN_FUNCTION_BEG note.
10664 2013-02-01 Richard Henderson <rth@redhat.com>
10666 * config/rs6000/rs6000.md (smulditi3): New.
10669 * config/alpha/alpha.md (umulditi3): New.
10671 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
10673 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
10674 (ASM_OUTPUT_ALIGNED_LOCAL): New.
10676 2013-02-01 Richard Biener <rguenther@suse.de>
10678 PR tree-optimization/56113
10679 * tree-ssa-structalias.c (label_visit): Reduce work for
10680 single-predecessor nodes.
10682 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
10684 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
10685 range isn't testing for zero.
10687 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
10689 PR middle-end/56113
10690 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
10692 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
10693 Nick Clifton <nickc@redhat.com>
10695 * config/v850/constraints.md (Q): Define as a memory constraint.
10696 * config/v850/predicates.md (label_ref_operand): New predicate.
10697 (e3v5_shift_operand): New predicate.
10698 (ior_operator): New predicate.
10699 * config/v850/t-v850: Add e3v5 multilib.
10700 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
10701 (v850_gen_movdi): Prototype.
10702 * config/v850/v850.c: Add support for e3v5 architecture.
10703 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
10705 (construct_save_jarl): Add e3v5 long JARL support.
10706 (v850_adjust_insn_length): New function. Adjust length of call
10707 insns when using e3v5 instructions.
10708 (v850_gen_movdi): New function: Generate instructions to move a
10710 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
10711 (CPP_SPEC): Define __v850e3v5__ as appropriate.
10712 (TARGET_USE_FPU): Enable for e3v5.
10713 (CONST_OK_FOR_W): New macro.
10714 (ADJUST_INSN_LENGTH): Define.
10715 * config/v850/v850.md (UNSPEC_LOOP): Define.
10716 (attr cpu): Add v850e3v5.
10717 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
10718 (movdi): New pattern.
10719 (movdi_internal): New pattern.
10720 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
10721 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
10722 (cstoresf4): Likewise.
10723 (cstoredf4): Likewise.
10724 (insv): New pattern.
10725 (rotlso3_a): New pattern.
10726 (rotlsi3_b): New pattern
10727 (rotlsi3_v850e3v5): New pattern.
10728 (doloop_begin): New pattern.
10729 (fix_loop_counter): New pattern.
10730 (doloop_end): New pattern.
10731 (branch_normal): Add e3v5 long branch support.
10732 (branch_invert): Likewise.
10733 (branch_z_normal): Likewise.
10734 (branch_z_invert): Likewise.
10735 (branch_nz_normal): Likewise.
10736 (branch_nz_invert): Likewise.
10737 (call_internal_short): Add e3v5 register-indirect JARL support.
10738 (call_internal_long): Likewise.
10739 (call_value_internal_short): Likewise.
10740 (call_value_internal_long): Likewise.
10741 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
10742 (mloop): New option.
10743 * config.gcc: Add support for configuring v840e3v5 target.
10744 * doc/invoke.texi: Document new v850 specific command line options.
10746 2013-01-31 Paul Koning <ni1d@arrl.net>
10750 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
10751 children if parent is a class.
10752 (prune_unused_types_prune): Don't add DW_AT_declaration.
10754 2013-01-31 Richard Biener <rguenther@suse.de>
10756 PR tree-optimization/56157
10757 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
10758 match up operand with SLP child.
10760 2013-01-31 Jason Merrill <jason@redhat.com>
10763 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
10764 parameters the first time.
10765 (gen_scheduled_generic_parms_dies): Check completeness here.
10767 2013-01-31 Richard Biener <rguenther@suse.de>
10769 PR middle-end/53073
10770 * common.opt (faggressive-loop-optimizations): New flag,
10771 enabled by default.
10772 * doc/invoke.texi (faggressive-loop-optimizations): Document.
10773 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
10774 infer_loop_bounds_from_undefined by it.
10776 2013-01-31 Richard Biener <rguenther@suse.de>
10778 PR tree-optimization/56150
10779 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
10780 visit virtual operands.
10781 (find_uses_to_rename_bb): Likewise.
10783 2013-01-31 Richard Biener <rguenther@suse.de>
10785 PR tree-optimization/56150
10786 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
10787 mixed store non-store stmts.
10789 2013-01-30 Jakub Jelinek <jakub@redhat.com>
10792 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
10793 LIBASAN_EARLY_SPEC is defined.
10794 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
10795 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
10797 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
10800 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
10801 invalid args instead of ICEing on it.
10802 (ix86_valid_target_attribute_tree): Return error_mark_node if
10803 ix86_valid_target_attribute_inner_p failed.
10804 (ix86_valid_target_attribute_p): Return false only if
10805 ix86_valid_target_attribute_tree returned error_mark_node. Allow
10806 target("default") attribute.
10807 (sorted_attr_string): Change argument from const char * to tree,
10808 merge in all target attribute arguments rather than just one.
10809 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
10810 instead of free. Avoid using strcat.
10811 (ix86_mangle_function_version_assembler_name): Mangle
10812 target("default") as if no target attribute is present. Adjust
10813 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
10814 instead of xmalloc and XDELETEVEC instead of free.
10815 (ix86_function_versions): Don't return true if one of the decls
10816 doesn't have target attribute. If they don't and one of the decls
10817 is DECL_FUNCTION_VERSIONED, report an error. Adjust
10818 sorted_attr_string caller. Use XDELETEVEC instead of free.
10819 (ix86_supports_function_versions): Remove.
10820 (make_name): Fix up formatting.
10821 (make_dispatcher_decl): Remove resolver_name and its initialization.
10822 Avoid leaking memory.
10823 (is_function_default_version): Return true if there is
10824 target("default") attribute rather than no target attribute at all.
10825 (make_resolver_func): Avoid leaking memory.
10826 (ix86_generate_version_dispatcher_body): Likewise.
10827 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
10828 * target.def (supports_function_versions): Remove.
10829 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
10830 * doc/tm.texi: Regenerated.
10832 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
10834 PR rtl-optimization/56144
10835 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
10836 for values with side effects.
10838 2013-01-30 Richard Biener <rguenther@suse.de>
10840 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
10841 (sparseset_pop): Likewise.
10842 * cfganal.c (compute_idf): Likewise. Increase work-stack size
10843 to be able to use quick_push in the worker loop.
10845 2013-01-30 Marek Polacek <polacek@redhat.com>
10847 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
10849 2013-01-30 Richard Biener <rguenther@suse.de>
10852 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
10854 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
10856 PR tree-optimization/56064
10857 * fixed-value.c (fixed_from_double_int): New function.
10858 * fixed-value.h (fixed_from_double_int): New prototype.
10859 (const_fixed_from_double_int): New static inline function.
10860 * fold-const.c (native_interpret_fixed): New static function.
10861 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
10862 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
10863 (native_encode_fixed): New static function.
10864 (native_encode_expr) <FIXED_CST>: Use it.
10865 (native_interpret_int): Move double_int worker code to...
10866 * double-int.c (double_int::from_buffer): ...this new static method.
10867 * double-int.h (double_int::from_buffer): Prototype it.
10869 2013-01-30 Richard Biener <rguenther@suse.de>
10871 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
10872 New pointer-map and obstack.
10873 (init_alias_vars): Allocate pointer-map and obstack.
10874 (delete_points_to_sets): Free them.
10875 (find_what_var_points_to): Cache result.
10876 (find_what_p_points_to): Adjust for changed interface of
10877 find_what_var_points_to.
10878 (compute_points_to_sets): Likewise.
10879 (ipa_pta_execute): Likewise.
10881 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10883 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
10884 * configure: Regenerate.
10885 * config.in: Regenerate.
10886 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
10887 #nobits/#progbits if supported.
10889 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
10892 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
10893 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
10894 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
10896 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10898 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
10899 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
10901 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10903 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
10904 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
10906 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10908 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
10910 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
10911 * config/arm/cortex-a7.md: New bypasses using
10912 arm_mac_accumulator_is_result.
10914 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10916 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
10917 (cortex_a7_neon_mla): Likewise.
10918 (cortex_a7_fpfmad): New reservation.
10919 (cortex_a7_fpmacs): Use ffmas and update required units.
10920 (cortex_a7_fpmuld): Update required units and latency.
10921 (cortex_a7_fpmacd): Likewise.
10922 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
10923 (cortex_a7_neon). Likewise.
10924 (bypass) Update participating units.
10926 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10928 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
10929 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
10931 * config/arm/vfp11.md (vfp_farith): Use ffmas.
10932 (vfp_fmul): Use ffmad.
10933 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
10934 (cortex_r4_fmacd): Use ffmad.
10935 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
10936 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
10937 (cortex_a9_fmacd): Use ffmad.
10938 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
10939 (cortex_a8_vfp_macd): Use ffmad.
10940 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
10941 (cortex_a5_fpmacd): Use ffmad.
10942 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
10943 (cortex_a15_vfp_macd): Use ffmad.
10944 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
10946 2013-01-29 Jason Merrill <jason@redhat.com>
10949 * varasm.c (default_assemble_visibility): Don't warn about
10950 visibility on artificial decls.
10952 2013-01-29 Richard Biener <rguenther@suse.de>
10954 PR tree-optimization/56113
10955 * tree-ssa-structalias.c (equiv_class_lookup): Also return
10957 (label_visit): Free duplicate bitmaps and record the leader instead.
10958 (perform_var_substitution): Adjust.
10960 2013-01-29 Richard Biener <rguenther@suse.de>
10962 PR tree-optimization/55270
10963 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
10964 the CFG, schedule loops for fixup.
10966 2013-01-29 Nick Clifton <nickc@redhat.com>
10968 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
10971 2013-01-28 Leif Ekblad <leif@rdos.net>
10973 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
10974 * config/i386/i386.h (TARGET_RDOS): New macro.
10975 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
10976 * config/i386/i386.c (ix86_option_override_internal): For 64bit
10977 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
10978 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
10979 DEFAULT_LARGE_SECTION_THRESHOLD.
10980 * config/i386/i386.md (R14_REG, R15_REG): New constants.
10981 * config/i386/rdos.h: New file.
10982 * config/i386/rdos64.h: New file.
10984 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
10987 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
10990 2013-01-28 Jakub Jelinek <jakub@redhat.com>
10992 PR rtl-optimization/56117
10993 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
10994 call cselib_lookup_from_insn on the MEM before calling
10995 add_insn_mem_dependence.
10997 2013-01-28 Richard Biener <rguenther@suse.de>
10999 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
11000 to a stmt that didn't have one.
11001 (copy_phis_for_bb): Likewise for PHI arguments.
11002 (copy_debug_stmt): Likewise for debug stmts.
11004 2013-01-28 Richard Biener <rguenther@suse.de>
11006 PR tree-optimization/56034
11007 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
11008 (partition_builtin_p): Adjust.
11009 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
11010 it is the last partition.
11011 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
11012 up the vertex for the definition.
11013 (classify_partition): Classify whether a partition is a
11014 PKIND_REDUCTION, thus has uses outside of the loop.
11015 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
11016 Merge all PKIND_REDUCTION partitions into the last partition.
11017 (tree_loop_distribution): Seed partitions from reductions as well.
11019 2013-01-28 Jakub Jelinek <jakub@redhat.com>
11021 PR tree-optimization/56125
11022 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
11023 pow(x,c) into sqrt(x) * powi(x, n/2) or
11024 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
11025 optimizing for size.
11026 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
11027 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
11030 PR tree-optimization/56094
11031 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
11032 to UNKNOWN_LOCATION while gimplifying expr.
11034 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
11037 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
11038 operand 0 in movabs insn template for -masm=intel asm alternative.
11039 (*movabs<mode>_2): Ditto for operand 1.
11041 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
11044 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
11047 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11049 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
11052 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11054 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
11055 Undef to avoid warning.
11057 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
11059 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
11060 * configure: Regenerate.
11062 2013-01-25 Jakub Jelinek <jakub@redhat.com>
11064 PR tree-optimization/56098
11065 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
11066 for stmts with volatile ops.
11067 (cond_store_replacement): Don't optimize if assign has volatile ops.
11068 (cond_if_else_store_replacement_1): Don't optimize if either
11069 then_assign or else_assign have volatile ops.
11070 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
11073 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
11075 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
11077 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
11079 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
11080 missing ':' in asm example.
11082 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
11084 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
11085 entries into lane and laneq entries.
11086 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
11087 Remove AdvSIMD scalar modes.
11088 (aarch64_sq<r>dmulh_laneq<mode>): New.
11089 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
11091 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
11092 builtin implementations to relfect changes in RTL in aarch64-simd.md.
11093 * config/aarch64/iterators.md (VCOND): New.
11096 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
11099 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
11100 Add NULL LIBNAME argument to existing definitions.
11101 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
11102 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
11103 * config/avr/avr.c (DEF_BUILTIN): Same.
11104 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
11105 (avr_expand_builtin): Expand to a vanilla call if a libgcc
11106 implementation is available (DECL_ASSEMBLER_NAME is set).
11107 (avr_fold_absfx): New static function.
11108 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
11109 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
11110 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
11111 AVR_BUILTIN_ABSLLK.
11112 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
11113 (abshk, absk, abslk, absllk): Provide as static inline functions.
11115 2013-01-25 Marek Polacek <polacek@redhat.com>
11117 PR tree-optimization/56035
11118 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
11120 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
11122 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
11123 (*movtf_internal_rex64): Add (!o,C) alternative
11124 (*movxf_internal_rex64): Ditto.
11125 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
11127 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
11129 * doc/invoke.texi: fix typo.
11130 * doc/objc.texi: fix typo.
11132 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
11134 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
11135 for the first two alternatives.
11137 2013-01-24 Diego Novillo <dnovillo@google.com>
11139 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
11140 (ggc-zone.o): Remove.
11141 * configure.ac: Remove option --with-gc.
11142 * configure: Re-generate.
11143 * doc/install.texi: Remove documentation for --with-gc.
11144 * gengtype.c (write_enum_defn): Remove. Update all users.
11145 (write_Types_process_field): Remove generation of gt_e_* argument.
11146 (output_type_enum): Remove. Update all users.
11147 (write_enum_defn): Remove. Update all users.
11148 (enum alloc_zone): Remove. Update all users.
11149 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
11150 * ggc-common.c (ggc_splay_alloc): Remove first argument.
11151 Update all callers.
11152 (struct ptr_data): Remove field TYPE. Update all users.
11153 (gt_pch_note_object): Remove argument TYPE. Update all users.
11154 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
11156 * ggc-none.c (ggc_alloc_typed_stat): Remove.
11157 (struct alloc_zone): Remove.
11158 (ggc_internal_alloc_zone_stat): Remove.
11159 (ggc_internal_cleared_alloc_zone_stat): Remove.
11160 * ggc-page.c (ggc_alloc_typed_stat): Remove.
11161 (ggc_pch_count_object): Remove last argument. Update all users.
11162 (ggc_pch_alloc_object): Remove last argument. Update all users.
11163 (struct alloc_zone): Remove.
11164 * ggc-zone.c: Remove.
11165 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
11166 (struct alloc_zone): Remove.
11167 (ggc_alloc_typed_stat): Remove.
11168 (ggc_alloc_typed): Remove.
11169 (ggc_splay_alloc): Remove first argument.
11170 (rtl_zone): Remove. Update all users.
11171 (tree_zone): Remove. Update all users.
11172 (tree_id_zone): Remove. Update all users.
11173 (ggc_internal_zone_alloc_stat): Remove. Update all users.
11174 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
11175 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
11176 * tree-ssanames.c: Remove references to zone allocator in comments.
11178 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
11180 * config/avr/avr.c (avr_out_fract): Make register numbers that
11181 might be outside of source operand signed.
11183 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
11185 * config/i386/constraints.md (Yf): New constraint.
11186 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
11187 of f constraint to conditionaly disable x87 register preferences.
11188 (*movdf_internal): Ditto.
11189 (*movsf_internal): Ditto.
11191 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
11193 PR inline-asm/55934
11194 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
11195 that have operands with impossible constraints.
11196 Add a FIXME for a speed-up opportunity.
11197 * lra-constraints.c (process_alt_operands): Verify that a class
11198 selected from constraints on asms is valid for the operand mode.
11199 (curr_insn_transform): Remove incorrect comment.
11201 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
11203 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
11204 TOC operand is a valid symbol ref in the constant pool.
11206 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11208 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
11210 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
11213 * config/avr/stdfix.h: New file.
11214 * t-avr (stdfix-gcc.h): New rule to build it.
11215 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
11217 2013-01-23 Kostya Serebryany <kcc@google.com>
11219 * config/darwin.h: remove dependency on
11220 CoreFoundation (asan on Mac OS).
11222 2013-01-23 Jakub Jelinek <jakub@redhat.com>
11225 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
11226 instead of cmpdi_operand for first comparison operand.
11227 Don't assert that comparison operands aren't both constants.
11229 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
11231 * doc/install.texi (Downloading the Source): Update references to
11232 downloading separate components.
11234 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
11236 * doc/extend.texi (__int128): Improve grammar.
11238 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
11241 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
11242 alternative to (o,r).
11243 (*movdi_internal_rex64): Remove (!o,n) alternative.
11244 (DImode immediate->memory splitter): Remove.
11245 (DImode immediate->memory peephole2): Remove.
11246 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
11247 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
11248 alternative to (!o,*r).
11249 (*movtf_internal_sse): New pattern.
11250 (*movxf_internal_rex64): New pattern.
11251 (*movxf_internal): Disable for TARGET_64BIT.
11252 (*movdf_internal_rex64): Remove (!o,F) alternative.
11254 2013-01-22 Jakub Jelinek <jakub@redhat.com>
11256 PR middle-end/56074
11257 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
11258 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
11259 * tree-vect-loop-manip.c (find_loop_location): Also ignore
11260 stmt locations where LOCATION_LOCUS of the stmt location is
11261 UNKNOWN_LOCATION or BUILTINS_LOCATION.
11264 * config/i386/i386.md (UNSPEC_STOS): New.
11265 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
11266 *strsetqi_1): Add UNSPEC_STOS.
11268 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
11271 * doc/invoke.texi: Remove left over -Wsynth example.
11273 2013-01-21 Jakub Jelinek <jakub@redhat.com>
11275 PR tree-optimization/56051
11276 * fold-const.c (fold_binary_loc): Don't fold
11277 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
11278 a narrowing conversion, or widening conversion from signed
11281 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
11283 PR rtl-optimization/56023
11284 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
11285 dependent on debug instruction.
11287 2013-01-21 Martin Jambor <mjambor@suse.cz>
11289 PR middle-end/56022
11290 * function.c (allocate_struct_function): Call
11291 invoke_set_current_function_hook earlier.
11293 2013-01-21 Jakub Jelinek <jakub@redhat.com>
11295 * reload1.c (init_reload): Only initialize reload_obstack
11296 during the first call.
11298 2013-01-21 Marek Polacek <polacek@redhat.com>
11300 * cfgloop.c (verify_loop_structure): Fix up grammar.
11302 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
11304 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
11305 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
11307 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11310 * config/arm/marvell-pj4.md: Update copyright year.
11311 Fix up use of alu to alu_reg and simple_alu_imm.
11313 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
11315 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
11317 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
11320 * lra-constraints.c (curr_insn_transform): Don't reuse original
11321 insn for secondary memory move when memory mode should be different.
11323 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11325 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
11326 atomic_storedi_1): New patterns.
11328 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11330 btver2 pipeline descriptions.
11331 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
11333 * config/i386/i386.md (btver2_decode): New type attributes.
11334 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
11336 * config/i386/btver2.md: New file describing btver2 pipelines.
11338 2013-01-19 Andrew Pinski <apinski@cavium.com>
11340 PR tree-optimization/52631
11341 * tree-ssa-sccvn (visit_use): Before looking up the original
11342 statement, try looking up the simplified expression.
11344 2013-01-19 Anthony Green <green@moxielogic.com>
11346 * config/moxie/moxie.c (moxie_expand_prologue): Set
11347 current_function_static_stack_size.
11349 2013-01-18 Jakub Jelinek <jakub@redhat.com>
11351 PR tree-optimization/56029
11352 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
11353 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
11355 2013-01-18 Sharad Singhai <singhai@google.com>
11357 PR tree-optimization/55995
11358 * dumpfile.c (dump_loc): Print location only if available.
11359 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
11361 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
11364 * lra-constraints.c (curr_insn_transform): Reuse original insn for
11365 secondary memory move.
11366 (inherit_reload_reg): Use rclass instead of cl for
11367 check_secondary_memory_needed_p.
11369 2013-01-18 Jakub Jelinek <jakub@redhat.com>
11371 PR middle-end/56015
11372 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
11373 the case where writing real complex part of target modifies op1.
11375 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
11377 * config/aarch64/aarch64-simd.md
11378 (aarch64_vcond_internal<mode>): Handle unordered cases.
11379 * config/aarch64/iterators.md (v_cmp_result): New.
11381 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
11382 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11384 * config/arm/marvell-pj4.md: New file.
11385 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
11386 * config/arm/arm.md (generic_sched): Add marvell_pj4.
11387 (generic_vfp): Likewise.
11388 * config/arm/arm-cores.def: Add marvell-pj4.
11389 * config/arm/arm-tune.md: Regenerate.
11390 * config/arm/arm-tables.opt: Regenerate.
11391 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
11392 * doc/invoke.texi: Document marvell-pj4.
11394 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
11396 * config/aarch64/arm_neon.h: Map scalar types to standard types.
11398 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
11403 * var-tracking.c (negative_power_of_two_p): New.
11404 (global_get_addr_cache, local_get_addr_cache): New.
11405 (get_addr_from_global_cache, get_addr_from_local_cache): New.
11406 (vt_canonicalize_addr): Rewrite using the above. Adjust the
11408 (vt_stack_offset_p): Remove.
11409 (vt_canon_true_dep): Always canonicalize loc's address.
11410 (clobber_overlapping_mems): Make sure we have a MEM.
11411 (local_get_addr_clear_given_value): New.
11412 (val_reset): Clear local cached entries.
11413 (compute_bb_dataflow): Create and release the local cache.
11414 Disable duplicate MEMs clobbering.
11415 (emit_notes_in_bb): Clobber MEMs likewise.
11416 (vt_emit_notes): Create and release the local cache.
11417 (vt_initialize, vt_finalize): Create and release the global
11418 cache, respectively.
11419 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
11421 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
11423 PR libmudflap/53359
11424 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
11425 not found in the symtab.
11427 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
11430 PR rtl-optimization/55547
11431 PR rtl-optimization/53827
11434 * alias.c (offset_overlap_p): New, factored out of...
11435 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
11436 the conservative special case for symbolic constants. Don't
11437 adjust zero sizes on alignment.
11439 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
11441 PR rtl-optimization/52573
11442 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
11443 REG_UNUSED for the same register.
11445 2013-01-17 Richard Biener <rguenther@suse.de>
11446 Marek Polacek <polacek@redhat.com>
11448 PR rtl-optimization/55833
11449 * loop-unswitch.c (unswitch_loops): Move loop verification...
11450 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
11451 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
11452 Set it to true when we're removing a loop from hierarchy tree in
11453 an irreducible region.
11454 (fix_bb_placements): Adjust caller.
11455 (fix_loop_placements): Likewise.
11457 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
11459 * config/avr/builtins.def (DEF_BUILTIN): Factor out
11460 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
11461 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
11462 Remove ID. Adjust comments.
11463 * config/avr/avr-c.c (avr_builtin_name): Remove.
11464 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
11465 * config/avr/avr.c (avr_tolower): New static function.
11466 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
11467 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
11468 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
11471 2013-01-17 Jan Hubicka <jh@suse.cz>
11473 PR tree-optimization/55273
11474 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
11476 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
11479 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
11480 store through atomic_store<mode>_1.
11481 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
11483 2013-01-17 Martin Jambor <mjambor@suse.cz>
11485 PR tree-optimizations/55264
11486 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
11487 for virtual methods.
11488 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
11489 virtual methods before inlining is over.
11490 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
11492 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
11495 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
11497 PR rtl-optimization/56005
11498 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
11499 pending reads for prefetch.
11501 2013-01-16 Ian Bolton <ian.bolton@arm.com>
11503 * config/aarch64/aarch64.md
11504 (*cstoresi_neg_uxtw): New pattern.
11505 (*cmovsi_insn_uxtw): New pattern.
11506 (*<optab>si3_uxtw): New pattern.
11507 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
11508 (*<optab>si3_insn_uxtw): New pattern.
11509 (*bswapsi2_uxtw): New pattern.
11511 2013-01-16 Richard Biener <rguenther@suse.de>
11513 * tree-inline.c (tree_function_versioning): Remove set but
11514 never used variable.
11516 2013-01-16 Richard Biener <rguenther@suse.de>
11518 PR tree-optimization/55964
11519 * tree-flow.h (rename_variables_in_loop): Remove.
11520 (rename_variables_in_bb): Likewise.
11521 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
11522 (copy_loop_before): Adjust and delete update-ssa status.
11523 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
11524 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
11525 (rename_variables_in_loop): Remove.
11526 (slpeel_update_phis_for_duplicate_loop): Likewise.
11527 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
11528 use available cfg machinery instead of duplicating it.
11529 Update PHI nodes and perform poor-mans SSA update here.
11530 (slpeel_tree_peel_loop_to_edge): Adjust.
11532 2013-01-16 Richard Biener <rguenther@suse.de>
11534 PR tree-optimization/54767
11535 PR tree-optimization/53465
11536 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
11537 (vrp_visit_phi_node): For PHI arguments coming via backedges
11538 drop all symbolical range information.
11539 (execute_vrp): Compute backedges.
11541 2013-01-16 Richard Biener <rguenther@suse.de>
11543 * doc/install.texi: Update CLooG and ISL requirements to
11546 2013-01-16 Christian Bruel <christian.bruel@st.com>
11549 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
11550 (broken_move): Handle UNSPECV_SP_SWITCH_B.
11551 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
11553 2013-01-16 DJ Delorie <dj@redhat.com>
11555 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
11556 (UNSPECV_SP_SWITCH_E): New.
11557 (sp_switch_1): Change to an unspec.
11558 (sp_switch_2): Change to an unspec. Don't use post-inc when we
11561 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
11563 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
11564 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
11565 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
11566 (expand_mem_thread_fence): Ditto.
11567 (expand_mem_signal_fence): Ditto.
11568 (expand_atomic_load): Ditto.
11569 (expand_atomic_store): Ditto.
11571 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
11573 PR rtl-optimization/55547
11574 PR rtl-optimization/53827
11577 * alias.c (memrefs_conflict_p): Set sizes to negative after
11580 2013-01-15 Jakub Jelinek <jakub@redhat.com>
11583 * function.c (thread_prologue_and_epilogue_insns): Always
11584 add crtl->drap_reg to set_up_by_prologue.set, even if
11585 stack_realign_drap is false.
11587 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11589 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
11590 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
11591 *call): Fix indention.
11593 2013-01-15 Tom de Vries <tom@codesourcery.com>
11596 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
11599 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
11601 PR rtl-optimization/55153
11602 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
11604 2013-01-15 Martin Jambor <mjambor@suse.cz>
11606 PR tree-optimization/55920
11607 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
11608 accesses as grp_to_be_debug_replaced.
11610 2013-01-15 Jakub Jelinek <jakub@redhat.com>
11612 PR tree-optimization/55920
11613 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
11614 there is non-useless type conversion needed from debug rhs to lhs,
11615 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
11617 2013-01-15 Joseph Myers <joseph@codesourcery.com>
11618 Mikael Pettersson <mikpe@it.uu.se>
11621 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
11623 (ASM_OUTPUT_CASE_LABEL): Remove.
11624 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
11625 * final.c (shorten_branches): Update alignment of labels before
11626 jump tables if CASE_VECTOR_SHORTEN_MODE.
11628 2013-01-15 Richard Biener <rguenther@suse.de>
11631 * system.h: Do not include gmp.h for building host tools.
11633 2013-01-15 Richard Biener <rguenther@suse.de>
11635 PR middle-end/55882
11636 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
11637 account for bitpos when computing alignment.
11639 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
11641 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
11642 (ix86_target_macros_internal): Likewise.
11644 * config/i386/i386.c (m_CORE2I7): Removed.
11645 (m_CORE_HASWELL): New macro.
11646 (m_CORE_ALL): Likewise.
11647 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
11648 (initial_ix86_arch_features): Likewise.
11649 (processor_target_table): Initializations for Core avx2.
11650 (cpu_names): New names "core-avx2".
11651 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
11652 PROCESSOR_CORE_HASWELL.
11653 (ix86_issue_rate): New case.
11654 (ia32_multipass_dfa_lookahead): Likewise.
11655 (ix86_sched_init_global): Likewise.
11657 * config/i386/i386.h (TARGET_HASWELL): New macro.
11658 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
11659 (processor_type): New PROCESSOR_HASWELL.
11661 2013-01-15 Jakub Jelinek <jakub@redhat.com>
11663 PR tree-optimization/55955
11664 * tree-vect-loop.c (vectorizable_reduction): Give up early on
11665 *SHIFT_EXPR and *ROTATE_EXPR codes.
11667 PR tree-optimization/48766
11668 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
11669 -ftrapv disable -fwrapv.
11671 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
11674 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
11675 etc. to 1 and not to __flash.
11676 Use LL suffix for __INT24_MAX__ with -mint8.
11677 Use ULL suffix for __UINT24_MAX__ with -mint8.
11679 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
11681 * config/avr/avr-arch.h
11682 (struct base_arch_s): Use typedef avr_arch_t instead.
11683 (struct arch_info_s): Use typedef avr_arch_info_t instead.
11684 (struct mcu_type_s): Use typedef avr_mcu_t instead.
11685 * config/avr/avr.c: Same.
11686 * config/avr/avr-devices.c: Same.
11687 * config/avr/driver-avr.c: Same.
11688 * config/avr/gen-avr-mmcu-texi.c: Same.
11689 * config/avr/avr-mcus.def: Adjust comment.
11691 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
11693 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
11694 * config/aarch64/iterators.md (VALLDI): New.
11696 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
11697 Andi Kleen <ak@linux.intel.com>
11700 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
11701 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
11704 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
11706 * config/avr/avr-stdint.h: Remove trailing blanks.
11707 * config/avr/avr-log.h: Same.
11708 * config/avr/avr-arch.h: Same.
11709 * config/avr/avr-devices.c: Same.
11710 * config/avr/avr-dimode.md: Same.
11711 * config/avr/predicates.md: Same.
11712 * config/avr/avr-c.c: Same. And fix typo.
11714 * config/avr/avr-protos.h: Same. And:
11715 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
11716 (init_cumulative_args): Rename to avr_init_cumulative_args.
11717 (expand_prologue): Rename to avr_expand_prologue.
11718 (expand_epilogue): Rename to avr_expand_epilogue.
11719 (adjust_insn_length): Rename to avr_adjust_insn_length.
11720 (notice_update_cc): Rename to avr_notice_update_cc.
11721 (final_prescan_insn): Rename to avr_final_prescan_insn.
11722 * config/avr/avr.c: Same.
11723 * config/avr/avr.h: Same.
11724 * config/avr/avr.md: Remove trailing blanks.
11725 (prologue): Use avr_expand_prologue.
11726 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
11728 2013-01-14 Richard Biener <rguenther@suse.de>
11730 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
11731 verify_location, collect_subblocks): New functions.
11732 (verify_gimple_in_cfg): Verify that locations only reference
11733 BLOCKs in the functions BLOCK tree.
11735 2013-01-14 Richard Biener <rguenther@suse.de>
11737 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
11739 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
11741 (insert_out_of_ssa_copy_on_edge): Likewise.
11742 (rewrite_close_phi_out_of_ssa): Likewise.
11743 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
11745 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
11746 propagated constants.
11747 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
11750 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
11752 * config/avr/avr-modes.def: Add GPL copyright notice.
11754 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
11756 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
11757 MEMMODEL_MASK to determine memory model.
11758 (atomic_store<mode>): Ditto from operands[2].
11759 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
11761 2013-01-13 Jakub Jelinek <jakub@redhat.com>
11764 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
11765 (fold_gimple_assign): Don't call unshare_expr here.
11766 (fold_ctor_reference): Call unshare_expr.
11768 2013-01-13 Terry Guo <terry.guo@arm.com>
11770 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
11771 * doc/fragments.texi: Document MULTILIB_REUSE.
11772 * gcc.c (multilib_reuse): New internal spec.
11773 (set_multilib_dir): Also search multilib from multilib_reuse.
11774 * genmultilib (tmpmultilib3): Refactor code.
11775 (tmpmultilib4): Ditto.
11776 (multilib_reuse): New multilib argument.
11778 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
11780 * Makefile.in: Update copyright.
11782 2013-01-12 Tom de Vries <tom@codesourcery.com>
11784 PR middle-end/55890
11785 * calls.c (expand_call): Check if arg_nr is valid.
11787 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
11789 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
11790 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
11791 documentation. Add missing '__' in front of
11792 __builtin_ia32_packssdw256.
11794 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11797 * config/s390/s390.c (s390_preferred_reload_class): Do not return
11798 NO_REGS for larl operands.
11799 (s390_reload_larl_operand): Use s390_load_address instead of
11802 2013-01-11 Richard Biener <rguenther@suse.de>
11804 * tree-cfg.c (verify_node_sharing_1): Split out from ...
11805 (verify_node_sharing): ... here.
11806 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
11808 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
11810 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
11811 Substitute TREECHECKING.
11812 * configure: Regenerate.
11813 * Makefile.in (TREECHECKING): New.
11815 2013-01-11 Richard Guenther <rguenther@suse.de>
11817 PR tree-optimization/44061
11818 * tree-vrp.c (extract_range_basic): Compute zero as
11819 value-range for __builtin_constant_p of function parameters.
11821 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
11823 Update copyright years.
11825 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
11827 PR rtl-optimization/55672
11828 * lra-eliminations.c (mark_not_eliminable): Permit addition with
11829 const to be eliminable.
11831 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
11833 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
11834 * configure: Regenerate.
11836 2013-01-10 Richard Biener <rguenther@suse.de>
11838 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
11840 2013-01-10 Richard Biener <rguenther@suse.de>
11843 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
11844 locations for virtual PHI arguments.
11845 (rewrite_update_phi_arguments): Likewise.
11847 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
11849 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
11852 2013-01-10 Jakub Jelinek <jakub@redhat.com>
11854 PR tree-optimization/55921
11855 * tree-complex.c (expand_complex_asm): New function.
11856 (expand_complex_operations_1): Call it for GIMPLE_ASM.
11858 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11861 * config/s390/s390.c (s390_symref_operand_p)
11862 (s390_loadrelative_operand_p): Merge the two functions.
11863 (s390_check_qrst_address, print_operand_address): Add parameters
11864 to s390_loadrelative_operand_p invokation.
11865 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
11866 (s390_reload_larl_operand, s390_secondary_reload): Use
11867 s390_loadrelative_operand_p instead of s390_symref_operand_p.
11868 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
11870 2013-01-09 Mike Stump <mikestump@comcast.net>
11872 * dse.c (record_store): Remove unnecessary assert.
11874 2013-01-09 Jan Hubicka <jh@suse.cz>
11876 PR tree-optimization/55569
11877 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
11878 * cfgloop.h (scale_loop_profile): Likewise.
11880 2013-01-09 Jan Hubicka <jh@suse.cz>
11883 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
11885 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
11887 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
11889 PR middle-end/55114
11890 * expr.h (maybe_emit_group_store): Declare.
11891 * expr.c (maybe_emit_group_store): New function.
11892 * builtins.c (expand_builtin_int_roundingfn): Call it.
11893 (expand_builtin_int_roundingfn_2): Likewise.
11895 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
11897 PR rtl-optimization/55829
11898 * lra-constraints.c (match_reload): Add code for absent output.
11899 (curr_insn_transform): Add code for reloads of matched inputs
11902 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
11904 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
11905 attribute of movddup insn to DF.
11906 (*vec_interleave_lowv2df): Ditto.
11907 (vec_dupv2df): Ditto.
11909 2013-01-09 Jan Hubicka <jh@suse.cz>
11911 PR tree-optimiation/55875
11912 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
11913 EVERY_ITERATION parameter.
11914 (number_of_iterations_exit): Check if exit is executed every iteration.
11915 (idx_infer_loop_bounds): Similarly here.
11916 (n_of_executions_at_most): Simplify
11917 to only test for cases where statement is dominated by the
11918 particular bound; handle correctly the "postdominance" test.
11919 (scev_probably_wraps_p): Use max loop iterations info
11920 as a global bound first.
11922 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
11923 Nick Clifton <nickc@redhat.com>
11925 * config/v850/v850.md (cbranchsf4): New pattern.
11926 (cstoresf4): New pattern.
11927 (cbranchdf4): New pattern.
11928 (cstoredf4): New pattern.
11929 (movsicc): Disallow floating point comparisons.
11930 (cmpsf_le_insn): Fix order of operators.
11931 (cmpsf_lt_insn): Likewise.
11932 (cmpsf_eq_insn): Likewise.
11933 (cmpdf_le_insn): Likewise.
11934 (cmpdf_lt_insn): Likewise.
11935 (cmpdf_eq_insn): Likewise.
11936 (cmpsf_ge_insn): Use LE comparison.
11937 (cmpdf_ge_insn): Likewise.
11938 (cmpsf_gt_insn): Use LT comparison.
11939 (cmpdf_gt_insn): Likewise.
11940 (cmpsf_ne_insn): Delete pattern.
11941 (cmpdf_ne_insn): Delete pattern.
11942 * config/v850/v850.c (v850_gen_float_compare): Use
11943 gen_cmpdf_eq_insn for NE comparison.
11944 (v850_float_z_comparison_operator)
11945 (v850_float_nz_comparison_operator): Move from here ...
11946 * config/v850/predicates.md: ... to here. Move GT and GE
11947 comparisons into v850_float_z_comparison_operator.
11948 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
11950 (v850_float_nz_comparison_operator): Likewise.
11952 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11954 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
11955 with calls to gen_insvsi/gen_insvdi.
11957 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11959 * config/i386/i386.c (initial_ix86_tune_features): Set up
11960 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
11962 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
11963 Jakub Jelinek <jakub@redhat.com>
11965 PR tree-optimization/48189
11966 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
11967 If nitercst is 0, don't predict the exit edge.
11969 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11971 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
11972 in asm_fprintf with reg_names.
11973 (aarch64_print_operand_address): Likewise.
11974 (aarch64_return_addr): Likewise.
11975 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
11977 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11979 * config/pa/pa.h (VAL_U6_BITS_P): Define.
11980 (INT_U6_BITS): Likewise.
11981 * config/pa/predicates.md (uint6_operand): New predicate.
11982 (shift5_operand, shift6_operand): Likewise.
11983 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
11985 (lshrdi3): Use shift6_operand.
11986 (shrpsi4, shrpdi4): New insn patterns.
11987 (extzv): Delete expander.
11988 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
11989 predicates in unamed zero extract patterns. Tighten common constraint.
11990 (extv): Delete expander.
11991 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
11992 predicates in unamed sign extract patterns. Tighten common constraint.
11993 (insv): Delete expander.
11994 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
11995 predicates in unamed insert patterns. Tighten common constraint.
11996 Change uint32_operand predicate to uint6_operand predicate in unamed
11997 DImode pattern to insert constant values of type 1...1xxxx.
11999 2013-01-04 Jan Hubicka <jh@suse.cz>
12001 PR tree-optimization/55823
12002 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
12005 2013-01-08 Jakub Jelinek <jakub@redhat.com>
12006 Uros Bizjak <ubizjak@gmail.com>
12008 PR rtl-optimization/55845
12009 * df-problems.c (can_move_insns_across): Stop scanning at
12010 volatile_insn_p source instruction or give up if
12011 across_from .. across_to range contains any volatile_insn_p
12014 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
12016 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
12017 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
12019 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
12020 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
12022 2013-01-08 Jakub Jelinek <jakub@redhat.com>
12025 * asan.c (asan_clear_shadow): New function.
12026 (asan_emit_stack_protection): Use it.
12028 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
12030 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
12031 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
12032 with tab instead of space.
12034 2013-01-08 Nick Clifton <nickc@redhat.com>
12036 * config/rl78/rl78.c (rl78_expand_prologue): Always select
12037 register bank 0 at the start of an interrupt handler.
12038 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
12041 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
12043 * config/aarch64/aarch64-simd.md
12044 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
12045 (aarch64_simd_bsl): Likewise.
12046 (aarch64_vcond_internal<mode>): Likewise.
12047 (vcond<mode><mode>): Likewise.
12048 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
12049 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
12051 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
12053 * config/aarch64/aarch64-builtins.c
12054 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
12056 2013-01-08 Martin Jambor <mjambor@suse.cz>
12059 * tree-sra.c (analyze_access_subtree): Return true also after
12060 potentially creating a debug-only replacement.
12062 2013-01-08 Jakub Jelinek <jakub@redhat.com>
12064 PR middle-end/55890
12065 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
12067 PR tree-optimization/54120
12068 * tree-vrp.c (range_fits_type_p): Don't allow
12069 src_precision < precision from signed vr to unsigned_p
12070 if vr->min or vr->max is negative.
12071 (simplify_float_conversion_using_ranges): Test can_float_p
12072 against CODE_FOR_nothing.
12074 2013-01-08 Jakub Jelinek <jakub@redhat.com>
12075 Richard Biener <rguenther@suse.de>
12077 PR middle-end/55851
12078 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
12079 types instead of just INTEGER_TYPE types.
12081 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
12083 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
12086 2013-01-07 Steve Ellcey <sellcey@mips.com>
12089 * config/mips/mips.opt: Change mad to mmad to match documentation.
12091 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
12094 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
12095 .progmemx.data now.
12097 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
12100 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
12101 (avr_addrspace_t): Add .section_name field.
12102 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
12104 (avr_addrspace): Same. Initialize .section_name. Remove last
12105 NULL entry. Put __memx into .progmemx.data.
12106 (progmem_section_prefix): Remove.
12107 (avr_asm_init_sections): No need to initialize progmem_section.
12108 (avr_asm_named_section): Use avr_addrspace[].section_name to get
12109 section name prefix.
12110 (avr_asm_select_section): Ditto. And use get_unnamed_section to
12111 retrieve the progmem section.
12112 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
12113 boundary to run over avr_addrspace[].
12114 (avr_register_target_pragmas): Ditto.
12116 2013-01-06 Jakub Jelinek <jakub@redhat.com>
12118 * varasm.c (output_constant_def_contents): For asan_protect_global
12119 protected strings, adjust DECL_ALIGN if needed, before testing for
12121 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
12122 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
12124 (output_object_block): For asan protected decls, emit asan padding
12125 after their contents.
12126 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
12127 (asan_finish_file): Test it here instead.
12129 2013-01-07 Nick Clifton <nickc@redhat.com>
12130 Matthias Klose <doko@debian.org>
12131 Doug Kwan <dougkwan@google.com>
12132 H.J. Lu <hongjiu.lu@intel.com>
12135 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
12137 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
12139 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
12141 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
12143 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
12145 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
12148 * doc/install.texi (Cross-Compiler-Specific Options): Document
12151 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
12153 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
12154 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
12155 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
12156 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
12157 vqmovun_high_s64): Fix source operand number and update copyright.
12159 2013-01-07 Richard Biener <rguenther@suse.de>
12161 PR middle-end/55890
12162 * gimple.h (gimple_call_builtin_p): New overload.
12163 * gimple.c (validate_call): New function.
12164 (gimple_call_builtin_p): Likewise.
12165 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
12166 Use gimple_call_builtin_p.
12167 (find_func_clobbers): Likewise.
12168 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
12169 (strlen_optimize_stmt): Likewise.
12171 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
12173 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
12174 (vld1q_dup_*): Likewise.
12175 (vld1_*): Likewise.
12176 (vld1q_*): Likewise.
12177 (vld1_lane_*): Likewise.
12178 (vld1q_lane_*): Likewise.
12180 2013-01-07 Richard Biener <rguenther@suse.de>
12182 * lto-streamer.h (LTO_minor_version): Bump to 2.
12184 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
12186 * config/aarch64/aarch64-protos.h
12187 (aarch64_const_double_zero_rtx_p): Rename to...
12188 (aarch64_float_const_zero_rtx_p): ...this.
12189 (aarch64_float_const_representable_p): New.
12190 (aarch64_output_simd_mov_immediate): Likewise.
12191 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
12192 move immediate case.
12193 * config/aarch64/aarch64.c
12194 (aarch64_const_double_zero_rtx_p): Rename to...
12195 (aarch64_float_const_zero_rtx_p): ...this.
12196 (aarch64_print_operand): Allow printing of new constants.
12197 (aarch64_valid_floating_const): New.
12198 (aarch64_legitimate_constant_p): Check for valid floating-point
12200 (aarch64_simd_valid_immediate): Likewise.
12201 (aarch64_vect_float_const_representable_p): New.
12202 (aarch64_float_const_representable_p): Likewise.
12203 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
12204 (aarch64_output_simd_mov_immediate): New.
12205 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
12206 (*movdf_aarch64): Likewise.
12207 * config/aarch64/constraints.md (Ufc): New.
12208 (Y): call aarch64_float_const_zero_rtx.
12209 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
12211 2013-01-07 Richard Biener <rguenther@suse.de>
12213 PR tree-optimization/55888
12214 PR tree-optimization/55862
12215 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
12216 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
12217 not if it is contained therein.
12219 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
12221 * config/avr/t-avr: Typo.
12223 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
12226 * config/avr/t-avr: Don't automatically rebuild
12227 $(srcdir)/config/avr/t-multilib
12228 $(srcdir)/config/avr/avr-tables.opt
12229 $(srcdir)/doc/avr-mmcu.texi
12230 (avr-mcus): New phony target to build them on request.
12231 (s-avr-mlib, s-avr-mmcu-texi): Remove.
12232 * avr/avr-mcus.def: Adjust comments.
12234 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
12236 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
12238 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
12240 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
12242 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
12244 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
12246 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
12248 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
12249 to generate profiling.
12250 * config/rs6000/aix64.h (LIB_SPEC): Same.
12252 2013-01-04 Andrew Pinski <apinski@cavium.com>
12254 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
12256 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
12258 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
12260 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
12262 (ix86_expand_move): Ditto.
12263 (ix86_zero_extend_to_Pmode): Ditto.
12264 (ix86_expand_call): Ditto.
12265 (ix86_expand_special_args_builtin): Ditto.
12266 (ix86_expand_builtin): Ditto.
12268 2013-01-04 Richard Biener <rguenther@suse.de>
12270 PR tree-optimization/55862
12271 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
12272 translating them through PHI nodes.
12274 2013-01-04 Martin Jambor <mjambor@suse.cz>
12276 PR tree-optimization/55755
12277 * tree-sra.c (sra_modify_assign): Do not check that an access has no
12278 children when trying to avoid producing a VIEW_CONVERT_EXPR.
12280 2013-01-04 Marek Polacek <polacek@redhat.com>
12282 PR middle-end/55859
12283 * opts.c (default_options_optimization): Clarify error message.
12285 2013-01-04 Richard Biener <rguenther@suse.de>
12287 PR middle-end/55863
12288 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
12291 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12294 * config/pa/pa.md (movsi): Revert previous change.
12295 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
12298 2013-01-03 Richard Henderson <rth@redhat.com>
12300 * config/i386/i386.c (ix86_expand_move): Always assign to op1
12301 after eliminating TLS symbols.
12303 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
12306 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
12307 * graphite-poly.c (debug_gmp_value): Likewise.
12309 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
12312 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
12313 selected code model, define __code_mode_small__, __code_model_medium__,
12314 __code_model_large__, __code_model_32__ or __code_model_kernel__.
12315 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
12316 xchg temporary register with %k. Declare temporary register as
12318 [__x86_64__]: For medium and large code models, preserve %rbx register.
12320 2013-01-03 Richard Biener <rguenther@suse.de>
12322 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
12323 (dump_subscript): Adjust.
12324 (finalize_ddr_dependent): Do not dump redundant info.
12325 (analyze_siv_subscript): Adjust.
12326 (subscript_dependence_tester): Likewise.
12327 (compute_affine_dependence): Likewise.
12329 2013-01-03 Richard Biener <rguenther@suse.de>
12332 2013-01-03 Richard Biener <rguenther@suse.de>
12334 PR tree-optimization/55857
12335 * tree-vect-stmts.c (vectorizable_load): Do not setup
12336 re-alignment for invariant loads.
12338 2013-01-02 Richard Biener <rguenther@suse.de>
12340 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
12341 invariant load do not generate a vector load from the scalar location.
12343 2013-01-03 Richard Biener <rguenther@suse.de>
12345 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
12346 for not vectorizing.
12347 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
12348 not build INDIRECT_REFs, call get_name once only.
12349 (vect_create_data_ref_ptr): Likewise. Dump base object kind
12350 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
12352 2013-01-03 Richard Biener <rguenther@suse.de>
12354 PR tree-optimization/55857
12355 * tree-vect-stmts.c (vectorizable_load): Do not setup
12356 re-alignment for invariant loads.
12358 2013-01-03 Richard Biener <rguenther@suse.de>
12361 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
12362 prefer a built-in decl.
12364 2013-01-03 Jakub Jelinek <jakub@redhat.com>
12366 * gcc.c (process_command): Update copyright notice dates.
12367 * gcov.c (print_version): Likewise.
12368 * gcov-dump.c (print_version): Likewise.
12370 PR rtl-optimization/55838
12371 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
12372 iv0.step, iv1.step and step.
12374 2013-01-03 Jakub Jelinek <jakub@redhat.com>
12375 Marc Glisse <marc.glisse@inria.fr>
12377 PR tree-optimization/55832
12378 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
12379 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
12380 integer_{one,zero}_node.
12382 2013-01-03 Jakub Jelinek <jakub@redhat.com>
12385 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
12386 * var-tracking.c (reverse_op): Don't add reverse ops to
12387 VALUEs that have already
12388 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
12390 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
12392 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
12394 2013-01-02 Teresa Johnson <tejohnson@google.com>
12396 * dumpfile.c (dump_loc): Print filename with location.
12397 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
12398 new location_t parameter to emit complete unroll message with
12399 new dump framework.
12400 (canonicalize_loop_induction_variables): Compute loops location
12401 and pass to try_unroll_loop_completely.
12402 * loop-unroll.c (report_unroll_peel): New function.
12403 (peel_loops_completely): Use new dump format with location
12404 for main dumpfile message, and invoke report_unroll_peel on success.
12405 (decide_unrolling_and_peeling): Ditto.
12406 (decide_peel_once_rolling): Remove old dumpfile message subsumed
12407 by report_unroll_peel.
12408 (decide_peel_completely): Ditto.
12409 (decide_unroll_constant_iterations): Ditto.
12410 (decide_unroll_runtime_iterations): Ditto.
12411 (decide_peel_simple): Ditto.
12412 (decide_unroll_stupid): Ditto.
12413 * cfgloop.c (get_loop_location): New function.
12414 * cfgloop.h (get_loop_location): Declare.
12416 2013-01-02 Sriraman Tallam <tmsriram@google.com>
12418 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
12421 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12423 PR middle-end/55198
12424 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
12425 BLKmode objects when EXPAND_MEMORY is specified.
12427 2013-01-02 Sriraman Tallam <tmsriram@google.com>
12429 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
12431 (fold_builtin_cpu): Do not share cpu model decls across statements.
12433 2013-01-02 Jason Merrill <jason@redhat.com>
12436 * tree.c (build_array_type_1): Revert earlier change.
12438 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
12440 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
12442 * config/aarch64/aarch64-tune.md: Re-generate.
12444 2013-01-02 Richard Biener <rguenther@suse.de>
12446 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
12447 invariant load do not generate a vector load from the scalar location.
12449 2013-01-02 Richard Biener <rguenther@suse.de>
12452 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
12453 * configure: Regenerate.
12455 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
12457 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
12458 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
12459 (expand_builtin_int_roundingfn_2): Keep the original target around
12460 for the fallback case.
12462 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
12464 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
12465 to be clear for sign changes.
12467 2013-01-01 Jan Hubicka <jh@suse.cz>
12469 * ipa-inline-analysis.c: Fix formatting.
12471 2013-01-01 Jakub Jelinek <jakub@redhat.com>
12473 PR tree-optimization/55831
12474 * tree-vect-loop.c (get_initial_def_for_induction): Use
12475 gsi_after_labels instead of gsi_start_bb.
12477 Copyright (C) 2013 Free Software Foundation, Inc.
12479 Copying and distribution of this file, with or without modification,
12480 are permitted in any medium without royalty provided the copyright
12481 notice and this notice are preserved.