1 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2 Pat Haugen <pthaugen@us.ibm.com>
3 Peter Bergner <bergner@vnet.ibm.com>
5 * config/rs6000/vector.md (GPR move splitter): Do not split moves
6 of vectors in GPRS if they are direct moves or quad word load or
9 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
11 (direct_move_p): Likewise.
12 (quad_load_store_p): Likewise.
14 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
15 classes into bins based on the physical register type.
16 (reg_class_to_reg_type): Likewise.
17 (IS_STD_REG_TYPE): Likewise.
18 (IS_FP_VECT_REG_TYPE): Likewise.
19 (reload_fpr_gpr): Arrays to determine what insn to use if we can
20 use direct move instructions.
21 (reload_gpr_vsx): Likewise.
22 (reload_vsx_gpr): Likewise.
23 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
24 information that is a simplification of register classes. Also
25 precalculate direct move reload helpers.
26 (direct_move_p): New function to return true if the operation can
27 be done as a direct move instruciton.
28 (quad_load_store_p): New function to return true if the operation
29 is a quad memory operation.
30 (rs6000_legitimize_address): If quad memory, only allow register
31 indirect for TImode addresses.
32 (rs6000_legitimate_address_p): Likewise.
33 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
34 (rs6000_reload_register_type): Likewise.
35 (register_to_reg_type): Return register type.
36 (rs6000_secondary_reload_simple_move): New helper function for
37 secondary reload and secondary memory needed to identify anything
38 that is a simple move, and does not need reloading.
39 (rs6000_secondary_reload_direct_move): New helper function for
40 secondary reload to identify cases that can be done with several
41 instructions via the direct move instructions.
42 (rs6000_secondary_reload_move): New helper function for secondary
43 reload to identify moves between register types that can be done.
44 (rs6000_secondary_reload): Add support for quad memory operations
46 (rs6000_secondary_memory_needed): Likewise.
47 (rs6000_debug_secondary_memory_needed): Change argument names.
48 (rs6000_output_move_128bit): New function to return the move to
49 use for 128-bit moves, including knowing about the various
50 limitations of quad memory operations.
52 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
53 memory operations. call rs6000_output_move_128bit for the actual
54 instruciton(s) to generate.
55 (vsx_movti_64bit): Likewise.
57 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
58 (UNSPEC_P8V_MTVSRWZ): Likewise.
59 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
60 (UNSPEC_P8V_MTVSRD): Likewise.
61 (UNSPEC_P8V_XXPERMDI): Likewise.
62 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
63 (UNSPEC_FUSION_GPR): Likewise.
64 (FMOVE128_GPR): New iterator for direct move.
65 (f32_lv): New mode attribute for load/store of SFmode/SDmode
69 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
70 loads and direct move instructions.
71 (zero_extendsidi2_lfiwzx): Likewise.
72 (extendsidi2_lfiwax): Likewise.
73 (extendsidi2_nocell): Likewise.
74 (floatsi<mode>2_lfiwax): Likewise.
76 (floatunssi<mode>2_lfiwzx): Likewise.
78 (fix_trunc<mode>_stfiwx): Likewise.
79 (fixuns_trunc<mode>_stfiwx): Likewise.
80 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
81 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
82 (parity<mode>2_cmpb): Set length/type attr.
83 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
84 for 'mr.' to fast_compare.
85 (bpermd_<mode>): Change type attr to popcnt.
86 (p8_fmrgow_<mode>): New insns for power8 direct move support.
87 (p8_mtvsrwz_1): Likewise.
88 (p8_mtvsrwz_2): Likewise.
89 (reload_fpr_from_gpr<mode>): Likewise.
90 (p8_mtvsrd_1): Likewise.
91 (p8_mtvsrd_2): Likewise.
92 (p8_xxpermdi_<mode>): Likewise.
93 (reload_vsx_from_gpr<mode>): Likewise.
94 (reload_vsx_from_gprsf): Likewise.
95 (p8_mfvsrd_3_<mode>): LIkewise.
96 (reload_gpr_from_vsx<mode>): Likewise.
97 (reload_gpr_from_vsxsf): Likewise.
98 (p8_mfvsrd_4_disf): Likewise.
99 (multi-word GPR splits): Do not split direct moves or quad memory
102 2013-06-10 David Malcolm <dmalcolm@redhat.com>
104 * tree-into-ssa.c (interesting_blocks): Make static.
106 2013-06-10 Jakub Jelinek <jakub@redhat.com>
109 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
110 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
111 Use DATA_ABI_ALIGNMENT for that case instead if defined.
112 (get_variable_align): New function.
113 (get_variable_section, emit_bss, emit_common,
114 assemble_variable_contents, place_block_symbol): Use
115 get_variable_align instead of DECL_ALIGN.
116 (assemble_noswitch_variable): Add align argument, use it
117 instead of DECL_ALIGN.
118 (assemble_variable): Adjust caller. Use get_variable_align
119 instead of DECL_ALIGN.
120 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
122 (DATA_ABI_ALIGNMENT): Define.
123 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
124 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
125 opt is false, only return the psABI mandated alignment increase.
126 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
127 (DATA_ABI_ALIGNMENT): ... this.
128 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
129 (DATA_ABI_ALIGNMENT): ... this.
130 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
131 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
132 (DATA_ABI_ALIGNMENT): ... this.
133 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
134 * doc/tm.texi: Regenerated.
136 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
138 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
139 cmp_code to construct REG_EQUAL note.
141 2013-06-09 Jakub Jelinek <jakub@redhat.com>
144 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
145 that operands[2] doesn't overlap with operands[0].
147 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
148 Jan Hubicka <jh@suse.cz>
150 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
151 hack to mark symbols as used.
153 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
155 PR rtl-optimization/57559
156 * lra-constraints.c (process_alt_operands): Don't discourage
157 memory with known offset for offsetable memory constraint.
158 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
160 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
162 * varasm.c (struct oc_local_state): Reorder fields.
163 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
164 and adjust accordingly.
165 (output_constructor): Reorder initialization code and adjust call to
166 output_constructor_bitfield.
168 2013-06-07 Jan Hubicka <jh@suse.cz>
170 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
172 2013-06-07 David Malcolm <dmalcolm@redhat.com>
174 * tree-object-size.c (unknown): Make const.
176 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
178 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
179 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
180 for last alternative in the cpu_facility attribute.
182 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
185 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
186 (xordi3): Change operand 2 constraint to arm_xordi_operand.
187 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
188 * config/arm/constraints.md (Dg): New constraint.
189 * config/arm/neon.md (xordi3_neon): Remove.
190 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
191 * config/arm/predicates.md (arm_xordi_operand): New predicate.
193 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
195 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
196 Clean up alternatives.
198 2013-06-07 Alan Modra <amodra@gmail.com>
200 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
203 2013-06-07 Alan Modra <amodra@gmail.com>
205 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
207 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
209 * config/arm/constraints.md (Df): New constraint.
210 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
211 Correct length attribute for last two alternatives.
213 2013-06-07 Alan Modra <amodra@gmail.com>
215 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
216 override user -mfp-in-toc.
217 (offsettable_ok_by_alignment): Consider just the current access
218 rather than the whole object, unless BLKmode. Handle
219 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
220 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
222 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
223 override user -mfp-in-toc or -msum-in-toc. Default to
224 -mno-fp-in-toc for -mcmodel=medium.
226 2013-06-06 DJ Delorie <dj@redhat.com>
228 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
229 TARGET_VALID_POINTER_MODE.
231 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
232 Pat Haugen <pthaugen@us.ibm.com>
233 Peter Bergner <bergner@vnet.ibm.com>
235 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
236 Document new power8 builtins.
238 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
239 condition code register, to allow 128-bit logical operations to be
240 done in the VSX or GPR registers.
241 (nor<mode>3): Use the canonical form for nor.
242 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
243 vclz*, and vpopcnt* vector instructions.
244 (nand<mode>3): Likewise.
245 (orc<mode>3): Likewise.
246 (clz<mode>2): LIkewise.
247 (popcount<mode>2): Likewise.
249 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
250 that only the GPRs are recognized.
252 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
253 support for new power8 builtins.
255 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
257 (xscvdpspn): Likewise.
264 (vpopcntb): Likewise.
265 (vpopcnth): Likewise.
266 (vpopcntw): Likewise.
267 (vpopcntd): Likewise.
272 (eqv_v16qi3): Likewise.
273 (eqv_v8hi3): Likewise.
274 (eqv_v4si3): Likewise.
275 (eqv_v2di3): Likewise.
276 (eqv_v4sf3): Likewise.
277 (eqv_v2df3): Likewise.
279 (nand_v16qi3): Likewise.
280 (nand_v8hi3): Likewise.
281 (nand_v4si3): Likewise.
282 (nand_v2di3): Likewise.
283 (nand_v4sf3): Likewise.
284 (nand_v2df3): Likewise.
286 (orc_v16qi3): Likewise.
287 (orc_v8hi3): Likewise.
288 (orc_v4si3): Likewise.
289 (orc_v2di3): Likewise.
290 (orc_v4sf3): Likewise.
291 (orc_v2df3): Likewise.
293 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
294 allow power8 quad mode in 64-bit.
295 (rs6000_builtin_vectorized_function): Add support to vectorize
296 ISA 2.07 count leading zeros, population count builtins.
297 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
298 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
299 (builtin_function_type): Add vgbbd builtin function which takes an
301 (altivec_expand_vec_perm_const): Add support for new power8 merge
304 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
305 that does not include TImdoe for use with 32-bit.
306 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
308 (UNSPEC_VSX_CVDPSPN): Likewise.
309 (vsx_xscvdpspn): Likewise.
310 (vsx_xscvspdpn): Likewise.
311 (vsx_xscvdpspn_scalar): Likewise.
312 (vsx_xscvspdpn_directmove): Likewise.
313 (vsx_and<mode>3): Split logical operations into 32-bit and
314 64-bit. Add support to do logical operations on TImode as well as
315 VSX vector types. Allow logical operations to be done in either
316 VSX registers or in general purpose registers in 64-bit mode. Add
317 splitters if GPRs were used. For AND, add clobber of CCmode to
318 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
320 (vsx_and<mode>3_32bit): Likewise.
321 (vsx_and<mode>3_64bit): Likewise.
322 (vsx_ior<mode>3): Likewise.
323 (vsx_ior<mode>3_32bit): Likewise.
324 (vsx_ior<mode>3_64bit): Likewise.
325 (vsx_xor<mode>3): Likewise.
326 (vsx_xor<mode>3_32bit): Likewise.
327 (vsx_xor<mode>3_64bit): Likewise.
328 (vsx_one_cmpl<mode>2): Likewise.
329 (vsx_one_cmpl<mode>2_32bit): Likewise.
330 (vsx_one_cmpl<mode>2_64bit): Likewise.
331 (vsx_nor<mode>3): Likewise.
332 (vsx_nor<mode>3_32bit): Likewise.
333 (vsx_nor<mode>3_64bit): Likewise.
334 (vsx_andc<mode>3): Likewise.
335 (vsx_andc<mode>3_32bit): Likewise.
336 (vsx_andc<mode>3_64bit): Likewise.
337 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
338 and xxlorc instructions.
339 (vsx_eqv<mode>3_64bit): Likewise.
340 (vsx_nand<mode>3_32bit): Likewise.
341 (vsx_nand<mode>3_64bit): Likewise.
342 (vsx_orc<mode>3_32bit): Likewise.
343 (vsx_orc<mode>3_64bit): Likewise.
345 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
347 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
349 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
350 (p8_vmrgow): Likewise.
351 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
352 GPRs to be split under VSX.
353 (p8v_clz<mode>2): Add power8 count leading zero support.
354 (p8v_popcount<mode>2): Add power8 population count support.
355 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
358 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
361 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
363 (vec_nand): Likewise.
364 (vec_vclz): Likewise.
365 (vec_vclzb): Likewise.
366 (vec_vclzd): Likewise.
367 (vec_vclzh): Likewise.
368 (vec_vclzw): Likewise.
369 (vec_vgbbd): Likewise.
370 (vec_vmrgew): Likewise.
371 (vec_vmrgow): Likewise.
372 (vec_vpopcnt): Likewise.
373 (vec_vpopcntb): Likewise.
374 (vec_vpopcntd): Likewise.
375 (vec_vpopcnth): Likewise.
376 (vec_vpopcntw): Likewise.
378 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
380 PR rtl-optimization/57468
381 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
384 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
386 PR rtl-optimization/57459
387 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
388 type when setting live regs.
390 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
392 * config/s390/s390.opt (mlra): New option.
393 * config/s390/s390.c (s390_decompose_address): Check displacement
394 for all registers for LRA.
395 (s390_secondary_reload): Don't used secondary reloads for LRA.
396 (s390_lra_p): New function.
397 (TARGET_LRA_P): Define.
398 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
399 of attribute cpu_facility to zarch for the last alternative.
400 (*cmpmem_short): Ditto.
402 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
404 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
405 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
406 (arm_expand_prologue): Likewise.
408 2013-06-06 Teresa Johnson <tejohnson@google.com>
411 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
412 as this is now done by redirect_edge_and_branch_force.
413 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
414 barriers, and fix interaction with splitting.
415 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
416 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
417 reflect changes made in the routine.
418 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
419 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
420 since this is called in cfglayout mode, and replace partition fixup
421 with assert as that is now done by force_nonfallthru_and_redirect.
422 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
423 already be marked with region crossing note.
424 (insert_section_boundary_note): Make non-static, gate on flag
425 has_bb_partition, rewrite to also check for multiple partitions.
426 (rest_of_handle_reorder_blocks): Remove call to
427 insert_section_boundary_note, now done later during free_cfg.
428 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
429 * bb-reorder.h (insert_section_boundary_note): Declare.
430 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
431 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
432 invoke insert_section_boundary_note.
433 (try_redirect_by_replacing_jump): Remove unnecessary
434 check for region crossing note.
435 (fixup_partition_crossing): New function.
436 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
437 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
438 in non-cfglayout mode.
439 (force_nonfallthru_and_redirect): Fixup partition boundaries,
440 remove old code that tried to do this. Emit barrier correctly
441 when we are in cfglayout mode.
442 (last_bb_in_partition): New function.
443 (rtl_split_edge): Correctly fixup partition boundaries.
444 (commit_one_edge_insertion): Remove old code that tried to
445 fixup region crossing edge since this is now handled in
446 split_block, and set up insertion point correctly since
447 block may now end in a jump.
448 (verify_hot_cold_block_grouping): Guard against checking when not in
450 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
452 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
453 rtl_verify_flow_info, so not called in cfglayout mode.
454 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
455 (fixup_reorder_chain): Remove old code that attempted to fixup region
456 crossing note as this is now handled in force_nonfallthru_and_redirect.
457 (duplicate_insn_chain): Don't duplicate switch section notes.
458 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
460 * basic-block.h (emit_barrier_after_bb): Declare.
462 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
464 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
465 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
466 arm_usatsihi): Adjust alternatives for arm_restrict_it.
468 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
470 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
472 * config/arm/ldmstm.md: Regenerate.
474 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
476 * config/arm/sync.md (atomic_loaddi_1):
477 Disable predication for arm_restrict_it.
478 (arm_load_exclusive<mode>): Likewise.
479 (arm_load_exclusivesi): Likewise.
480 (arm_load_exclusivedi): Likewise.
481 (arm_load_acquire_exclusive<mode>): Likewise.
482 (arm_load_acquire_exclusivesi): Likewise.
483 (arm_load_acquire_exclusivedi): Likewise.
484 (arm_store_exclusive<mode>): Likewise.
485 (arm_store_exclusive<mode>): Likewise.
486 (arm_store_release_exclusivedi): Likewise.
487 (arm_store_release_exclusive<mode>): Likewise.
489 2013-06-06 Richard Biener <rguenther@suse.de>
491 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
493 (lto_tag_is_tree_code_p): Adjust.
494 (lto_tag_is_gimple_code_p): Likewise.
495 (lto_gimple_code_to_tag): Likewise.
496 (lto_tag_to_gimple_code): Likewise.
497 (lto_tree_code_to_tag): Likewise.
498 (lto_tag_to_tree_code): Likewise.
499 * data-streamer.h (streamer_write_hwi_in_range): Use
500 uhwi streaming to stream the normalized range.
501 (streamer_read_hwi_in_range): Likewise.
503 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
505 * config/arm/arm.md (enabled_for_depr_it): New attribute.
506 (predicable_short_it): Likewise.
507 (predicated): Likewise.
508 (enabled): Handle above.
509 (define_cond_exec): Set predicated attribute to yes.
511 2013-06-05 Mike Stump <mikestump@comcast.net>
513 * gdbinit.in (__FUNCTION__): Add.
515 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
517 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
518 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
520 2013-06-05 Jan Hubicka <jh@suse.cz>
522 * varasm.c (mark_decl_referenced): Revert the removal until targets
525 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
527 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
528 instead of mark_decl_referenced.
530 2013-06-05 Jan Hubicka <jh@suse.cz>
532 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
533 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
534 and symtab_used_from_object_file_p.
535 (cgraph_make_node_local_1): Clear forced_by_abi.
536 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
537 * cgraph.h (symtab_node_base): Add forced_by_abi.
538 (decide_is_variable_needed): Remove.
539 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
540 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
541 (decide_is_symbol_needed): ... this one; handle symbols in general;
542 always analyze virtuals; honnor forced_by_abi.
543 (cgraph_finalize_function): Update.
544 (varpool_finalize_decl): Update.
545 (symbol_defined_and_needed): Remove.
546 (analyze_functions): Update.
547 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
548 output_refs, input_overwrite_node): Handle forced_by_abi.
549 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
550 (address_taken_from_non_vtable_p): ... this one.
551 (comdat_can_be_unshared_p_1): New function.
552 (cgraph_comdat_can_be_unshared_p): Rename to ...
553 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
554 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
555 (function_and_variable_visibility): Clear forced_by_abi as needed.
556 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
557 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
558 * symtab.c (dump_symtab_base): Dump forced_by_abi.
559 * varpool.c (decide_is_variable_needed): Remove.
561 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
563 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
564 (arm_option_override): Override arm_restrict_it where appropriate.
565 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
566 * config/arm/arm.opt (mrestrict-it): New command-line option.
567 * doc/invoke.texi: Document -mrestrict-it.
569 2013-06-05 David Malcolm <dmalcolm@redhat.com>
571 * tsan.c (tsan_atomic_table): Make const.
573 2013-06-05 Richard Biener <rguenther@suse.de>
575 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
576 index associated with the tree we are supposed to replace.
577 * tree-streamer-out.c (pack_ts_base_value_fields): Output
578 TREE_ASM_WRITTEN as zero for everything but SSA names.
580 2013-06-05 David Malcolm <dmalcolm@redhat.com>
582 * tree-ssa-structalias.c (call_stmt_vars): Make static.
584 2013-06-04 Jan Hubicka <jh@suse.cz>
586 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
587 (input_node, input_varpool_node): Handle correctly external same
589 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
590 nodes at ltrans stage.
592 2013-06-04 Jan Hubicka <jh@suse.cz>
594 * ipa-inline.c (update_caller_keys): Fix availability test.
595 (update_callee_keys): Likewise.
596 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
597 to follow ELF standard.
599 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
601 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
602 (mips64r5900el-*-elf*): New configurations.
603 * config/mips/mips-cpus.def (r5900): New processor.
604 * config/mips/mips-tables.opt: Regenerate.
605 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
606 (mips_issue_rate): Handle PROCESSOR_R5900.
607 (mips_reorg_process_insns): Force reorder mode for the R5900.
608 * config/mips/mips.h (TARGET_MIPS5900): Define.
609 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
611 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
613 * config/mips/mips.md (processor): Add r5900.
614 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
616 2013-06-04 Ian Bolton <ian.bolton@arm.com>
618 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
619 into function to generate MOVI instruction.
620 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
621 (aarch64_preferred_simd_mode): Turn into wrapper.
622 (aarch64_output_scalar_simd_mov_immediate): New function.
623 * config/aarch64/aarch64-protos.h: Add prototype for above.
625 2013-06-04 Ian Bolton <ian.bolton@arm.com>
627 * config/aarch64/aarch64.c (simd_immediate_info): Remove
629 (sizetochar): Return signed char.
630 (aarch64_simd_valid_immediate): Remove elchar and other
631 unnecessary variables.
632 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
633 Calculate element_char as required.
634 * config/aarch64/aarch64-protos.h: Update and move prototype
635 for aarch64_output_simd_mov_immediate.
636 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
639 2013-06-04 Ian Bolton <ian.bolton@arm.com>
641 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
642 information completed by aarch64_simd_valid_immediate.
643 (aarch64_legitimate_constant_p): Update arguments.
644 (aarch64_simd_valid_immediate): Work with struct rather than many
646 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
647 (aarch64_simd_make_constant): Update arguments.
648 (aarch64_output_simd_mov_immediate): Work with struct rather than
649 many pointers. Output immediate directly rather than as operand.
650 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
652 * config/aarch64/constraints.md (Dn): Update arguments.
654 2013-06-04 Ian Bolton <ian.bolton@arm.com>
656 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
658 (aarch64_simd_immediate_valid_for_move): Remove.
659 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
660 (aarch64_simd_make_constant): Update call.
661 (aarch64_output_simd_mov_immediate): Update call.
662 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
664 * config/aarch64/constraints.md (Dn): Update call.
666 2013-06-04 Ian Bolton <ian.bolton@arm.com>
668 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
669 return type to bool for prototype.
670 (aarch64_legitimate_constant_p): Check for true instead of not -1.
671 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
672 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
674 2013-06-04 Catherine Moore <clm@codesourcery.com>
676 * config/mips/mips.opt (meva): New.
677 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
678 (ASM_SPEC): Handle -meva.
679 * doc/invoke.texi (meva): Document.
681 2013-06-04 Alan Modra <amodra@gmail.com>
683 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
686 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
688 * rtl.def: Add extra fourth optional field to define_cond_exec.
689 * gensupport.c (process_one_cond_exec): Process attributes from
691 * doc/md.texi: Document fourth field in define_cond_exec.
693 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
695 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
696 out the processing order as in store_bit_field_1.
698 2013-06-04 Jan Hubicka <jh@suse.cz>
701 * cgraphunit.c (cgraph_process_same_body_aliases): Create
702 non-VAR_DECL node if it does not exist yet.
704 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
706 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
707 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
708 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
709 target_cpu_default setting.
711 2013-06-03 Teresa Johnson <tejohnson@google.com>
713 * dumpfile.c (opt_info_switch_p): Change -fopt-info
714 default to -fopt-info=optimized instead of all.
715 * doc/invoke.texi: Ditto.
716 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
717 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
718 (execute_vect_slp): Emit BB vectorization success under
719 MSG_OPTIMIZED_LOCATIONS.
720 * tree-vect-slp.c (vect_slp_transform_bb): Change
721 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
722 * tree-vect-loop.c (vect_transform_loop): Ditto.
724 2013-06-03 Jason Merrill <jason@redhat.com>
727 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
728 Use TARGET_EXPR for C++.
730 2013-06-03 Jakub Jelinek <jakub@redhat.com>
732 PR rtl-optimization/57268
733 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
734 if DEBUG_INSN_P (insn).
737 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
739 PR rtl-optimization/57268
740 * sched-deps.c (sched_analyze_2): Flush dependence lists if
741 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
743 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
745 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
746 (ix86_avoid_lea_for_addr): Likewise.
747 (exact_dependency_1): Likewise.
748 (ix86_adjust_cost): Likewise.
749 (swap_top_of_ready_list): Fix formatting and !reload_completed check
751 (do_reorder_for_imul): Fix typo, formatting and
752 !reload_completed check removed.
753 (ix86_sched_reorder): Fix typo and formatting.
754 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
757 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
759 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
761 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
763 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
764 <STRING_CST>: Likewise.
765 <VECTOR_CST>: Likewise.
767 2013-06-01 Janus Weil <janus@gcc.gnu.org>
768 Mikael Morin <mikael@gcc.gnu.org>
770 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
771 * config.in: Regenerated.
772 * configure: Regenerated.
774 2013-06-01 Jan Hubicka <jh@suse.cz>
777 * cgraphunit.c (compile): When weakref is not supported,
778 set up transparent aliases before final output pass.
779 * varasm.c (assemble_alias): Do not try to do it here.
781 2013-06-01 Jan Hubicka <jh@suse.cz>
784 * passes.c (for_per_function): Skip unanalyzed functions.
786 2013-06-01 Jan Hubicka <jh@suse.cz>
788 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
789 (lto_symtab_merge_symbols_1): ... this one.
790 (lto_symtab_merge_cgraph_nodes): Rename to ...
791 (lto_symtab_merge_symbols): ... this one; simplify.
792 * cgraph.c (same_body_aliases_done): Rename to ...
793 (cpp_implicit_aliases_done): ... this one.
794 (cgraph_create_function_alias): Update.
795 (cgraph_same_body_alias): Update.
796 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
797 (verify_edge_corresponds_to_fndecl): Simplify.
798 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
799 (cgraph_node): Remove same_body_alias.
800 (varpool_node): Remove alias_of and extra_name_alias.
801 (same_body_aliases_done): Rename to ..
802 (cpp_implicit_aliases_done): ... this one.
803 (symtab_alias_ultimate_target): Add default parameter.
804 (symtab_resolve_alias): New function.
805 (fixup_same_cpp_alias_visibility): Declare.
806 (cgraph_function_node): Add default parameter.
807 (cgraph_node_asm_name): Likewise.
808 (cgraph_function_or_thunk_node): Add default parameter; do
809 not ICE when it is NULL.
810 (varpool_variable_node): Likewise.
811 * tree-emutls.c (create_emultls_var): Update.
812 (ipa_lower_emutls): Update.
813 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
814 (cgraph_reset_node): Reset alias info.
815 (cgraph_finalize_function): Update.
816 (fixup_same_cpp_alias_visibility): Move to symtab.c.
817 (analyze_function): Simplify.
818 (cgraph_process_same_body_aliases): Simplify.
819 (analyze_functions): Fixup same body aliases.
820 (handle_alias_pairs): Simplify.
821 (assemble_thunk): Update.
822 (assemble_thunks_and_aliases): Update.
823 (output_weakrefs): Rewrite.
824 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
825 (lto_output_varpool_node): Likewise.
826 (compute_ltrans_boundary): Remve assert.
827 (get_alias_symbol): New functoin.
828 (input_node): Rewrite alias handling.
829 (input_varpool_node): Likewise.
830 * ipa-pure-const.c (propagate_pure_const): Fix formating.
831 * ipa.c (process_references): Handle weakrefs correctly.
832 (symtab_remove_unreachable_nodes): Likewise.
833 * trans-mem.c (get_cg_data): Update.
834 (ipa_tm_create_version_alias): Update.
835 (ipa_tm_execute): Update.
836 * symtab.c (dump_symtab_base): Dump aliases.
837 (verify_symtab_base): Verify aliases.
838 (symtab_node_availability): New function.
839 (symtab_alias_ultimate_target): Simplify.
840 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
841 handle all the fixup cases.
842 (symtab_resolve_alias): New function.
843 * passes.c (ipa_write_summaries): Handle weakrefs.
844 * varpool.c (varpool_analyze_node): Simplify.
845 (assemble_aliases): Update.
846 (varpool_create_variable_alias): Simplify.
847 (varpool_extra_name_alias): Simplify.
848 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
849 (lto_symtab_merge_symbols): ... this one.
851 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
854 PR rtl-optimization/57268
855 * sched-deps.c (sched_analyze_2): Flush dependence lists if
856 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
858 2013-06-01 Tobias Burnus <burnus@net-b.de>
861 2013-05-31 Tobias Burnus <burnus@net-b.de>
864 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
867 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
869 PR rtl-optimization/57268
870 * sched-deps.c (sched_analyze_2): Flush dependence lists if
871 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
873 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
875 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
876 unordered comparison operators when -fno-trapping-math is in effect
878 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
879 and implement unordered comparison operators properly on the e500.
881 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
883 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
884 for constant scalar integers.
885 (simplify_relational_operation_1): Likewise.
887 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
889 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
890 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
893 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
894 Igor Zamyatin <igor.zamyatin@intel.com>
896 Silvermont (SLM) architecture performance tuning.
897 * config/i386/i386.h (enum ix86_tune_indices): Add
898 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
899 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
901 * config/i386/i386.c (initial_ix86_tune_features)
902 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
903 (ix86_lea_outperforms): Handle Silvermont tuning.
904 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
906 (ix86_use_lea_for_mov): Likewise.
907 (ix86_avoid_lea_for_addr): Likewise.
908 (ix86_lea_for_add_ok): Likewise.
909 (exact_dependency_1): New function.
910 (exact_store_load_dependency): Likewise.
911 (ix86_adjust_cost): Handle Silvermont tuning.
912 (do_reoder_for_imul): Likewise.
913 (swap_top_of_ready_list): New function.
914 (ix86_sched_reorder): Changed to handle Silvermont tuning.
916 * config/i386/i386.md (peepholes that split memory operand in fp
919 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
921 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
922 Remove un-necessary braces.
924 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
926 * config/aarch64/aarch64.c (aarch64_classify_symbol):
927 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
929 2013-05-31 Tobias Burnus <burnus@net-b.de>
932 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
934 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
937 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
938 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
939 * config/arm/neon.md (iordi3_neon): Remove.
940 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
941 * config/arm/predicates.md (imm_for_neon_logic_operand):
942 Move to earlier in the file.
943 (neon_logic_op2): Likewise.
944 (arm_iordi_operand_neon): New predicate.
946 2013-05-31 Richard Biener <rguenther@suse.de>
948 PR tree-optimization/57478
949 PR tree-optimization/57453
950 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
953 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
955 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
956 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
958 2013-05-30 Tobias Burnus <burnus@net-b.de>
959 Thomas Koenig <tkoenig@gcc.gnu.org>
962 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
963 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
965 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
967 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
969 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
971 * target.def (register_usage_leveling_p): New hook.
972 * targhooks.c (default_register_usage_leveling_p): New.
973 * targhooks.h (default_register_usage_leveling_p): New prototype.
974 * lra-assigns.c (register_usage_leveling_p): Use the hook.
975 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
976 * doc/tm.texi: Update.
977 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
979 2013-05-30 Ian Bolton <ian.bolton@arm.com>
981 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
982 (*insv_reg<mode>): New define_insn.
984 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
986 PR rtl-optimization/57439
987 * postreload.c (move2add_valid_value_p): Check that we have
988 a zero subreg_regno_offset when accessing the register in
991 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
992 Igor Zamyatin <igor.zamyatin@intel.com>
994 Silvermont (SLM) architecture pipeline model, tuning and
996 * config.gcc: Add slm config options and target.
998 * config/i386/slm.md: New.
1000 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
1002 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
1004 (ix86_target_macros_internal): Likewise.
1006 * gcc/config/i386/i386.c (slm_cost): New cost.
1007 (m_SLM): New macro flag.
1008 (initial_ix86_tune_features): Set m_SLM.
1009 (x86_accumulate_outgoing_args): Likewise.
1010 (x86_arch_always_fancy_math_387): Likewise.
1011 (processor_target_table): Add slm cost.
1012 (cpu_names): Add slm cpu name.
1013 (x86_option_override_internal): Set SLM ISA.
1014 (ix86_issue_rate): New case PROCESSOR_SLM.
1015 (ia32_multipass_dfa_lookahead): Likewise.
1016 (fold_builtin_cpu): Add slm.
1018 * config/i386/i386.h (TARGET_SLM): New target macro.
1019 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
1020 (processor_type): Add PROCESSOR_SLM.
1022 * config/i386/i386.md (cpu): Add new value "slm".
1023 (slm.md): Include slm.md.
1025 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
1026 Zhenqiang Chen <zhenqiang.chen@linaro.org>
1028 * config/arm/arm-protos.h: Add and update function protos.
1029 * config/arm/arm.c (use_simple_return_p): New added.
1030 (thumb2_expand_return): Check simple_return flag.
1031 * config/arm/arm.md: Add simple_return and conditional simple_return.
1032 * config/arm/iterators.md: Add iterator for return and simple_return.
1034 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
1036 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
1037 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
1038 (arm_emit_vfp_multi_reg_pop): Likewise.
1039 (thumb2_emit_ldrd_pop): Likewise.
1040 (arm_expand_epilogue): Add misc REG_CFA notes.
1041 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
1043 2013-05-29 Lawrence Crowl <crowl@google.com>
1045 * config/arm/t-arm: Update for below.
1047 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
1048 Change type to hash_table. Update dependent calls and types.
1050 * config/i386/t-cygming: Update for below.
1052 * config/i386/t-interix: Update for below.
1054 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
1055 Change type to hash_table. Update dependent calls and types.
1056 (i386_find_on_wrapper_list::wrappers): Likewise.
1058 * config/ia64/t-ia64: Update for below.
1060 * config/ia64/ia64.c (bundle_state_table):
1061 Change type to hash_table. Update dependent calls and types.
1063 * config/mips/mips.c (mips_reorg_process_insns::htab):
1064 Change type to hash_table. Update dependent calls and types.
1066 * config/sol2.c (solaris_comdat_htab):
1067 Change type to hash_table. Update dependent calls and types.
1069 * config/t-sol2: Update for above.
1071 2013-05-29 Teresa Johnson <tejohnson@google.com>
1073 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
1074 functions are not yet marked as defined.
1076 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
1077 Pat Haugen <pthaugen@us.ibm.com>
1078 Peter Bergner <bergner@vnet.ibm.com>
1080 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
1084 (vrotl<mode>3): Likewise.
1085 (vashl<mode>3): Likewise.
1086 (vlshr<mode>3): Likewise.
1087 (vashr<mode>3): Likewise.
1089 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1090 support for power8 V2DI builtins.
1092 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
1093 power8 V2DI builtins.
1094 (vupkhsw): Likewise.
1095 (vupklsw): Likewise.
1096 (vaddudm): Likewise.
1101 (vpkudum): Likewise.
1102 (vpksdss): Likewise.
1103 (vpkudus): Likewise.
1104 (vpksdus): Likewise.
1109 (vsubudm): Likewise.
1110 (vcmpequd): Likewise.
1111 (vcmpgtsd): Likewise.
1112 (vcmpgtud): Likewise.
1113 (vcmpequd_p): Likewise.
1114 (vcmpgtsd_p): Likewise.
1115 (vcmpgtud_p): Likewise.
1116 (vupkhsw): Likewise.
1117 (vupklsw): Likewise.
1118 (vaddudm): Likewise.
1123 (vpksdss): Likewise.
1124 (vpksdus): Likewise.
1125 (vpkudum): Likewise.
1126 (vpkudus): Likewise.
1131 (vsubudm): Likewise.
1133 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
1134 support for power8 V2DI instructions.
1136 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
1137 power8 V2DI instructions. Combine pack and unpack insns to use an
1138 iterator for each mode. Check whether a particular mode supports
1139 Altivec instructions instead of just checking TARGET_ALTIVEC.
1140 (UNSPEC_VPKUWUM): Likewise.
1141 (UNSPEC_VPKSHSS): Likewise.
1142 (UNSPEC_VPKSWSS): Likewise.
1143 (UNSPEC_VPKUHUS): Likewise.
1144 (UNSPEC_VPKSHUS): Likewise.
1145 (UNSPEC_VPKUWUS): Likewise.
1146 (UNSPEC_VPKSWUS): Likewise.
1147 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
1148 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
1149 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
1150 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
1151 (UNSPEC_VUPKHSB): Likewise.
1152 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
1153 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
1154 (UNSPEC_VUPKHSH): Likewise.
1155 (UNSPEC_VUPKLSB): Likewise.
1156 (UNSPEC_VUPKLSH): Likewise.
1158 (VI_char): Likewise.
1159 (VI_scalar): Likewise.
1160 (VI_unit): Likewise.
1162 (VP_small): Likewise.
1163 (VP_small_lc): Likewise.
1164 (VU_char): Likewise.
1165 (add<mode>3): Likewise.
1166 (altivec_vaddcuw): Likewise.
1167 (altivec_vaddu<VI_char>s): Likewise.
1168 (altivec_vadds<VI_char>s): Likewise.
1169 (sub<mode>3): Likewise.
1170 (altivec_vsubcuw): Likewise.
1171 (altivec_vsubu<VI_char>s): Likewise.
1172 (altivec_vsubs<VI_char>s): Likewise.
1173 (altivec_vavgs<VI_char>): Likewise.
1174 (altivec_vcmpbfp): Likewise.
1175 (altivec_eq<mode>): Likewise.
1176 (altivec_gt<mode>): Likewise.
1177 (altivec_gtu<mode>): Likewise.
1178 (umax<mode>3): Likewise.
1179 (smax<mode>3): Likewise.
1180 (umin<mode>3): Likewise.
1181 (smin<mode>3): Likewise.
1182 (altivec_vpkuhum): Likewise.
1183 (altivec_vpkuwum): Likewise.
1184 (altivec_vpkshss): Likewise.
1185 (altivec_vpkswss): Likewise.
1186 (altivec_vpkuhus): Likewise.
1187 (altivec_vpkshus): Likewise.
1188 (altivec_vpkuwus): Likewise.
1189 (altivec_vpkswus): Likewise.
1190 (altivec_vpks<VI_char>ss): Likewise.
1191 (altivec_vpks<VI_char>us): Likewise.
1192 (altivec_vpku<VI_char>us): Likewise.
1193 (altivec_vpku<VI_char>um): Likewise.
1194 (altivec_vrl<VI_char>): Likewise.
1195 (altivec_vsl<VI_char>): Likewise.
1196 (altivec_vsr<VI_char>): Likewise.
1197 (altivec_vsra<VI_char>): Likewise.
1198 (altivec_vsldoi_<mode>): Likewise.
1199 (altivec_vupkhsb): Likewise.
1200 (altivec_vupkhs<VU_char>): Likewise.
1201 (altivec_vupkls<VU_char>): Likewise.
1202 (altivec_vupkhsh): Likewise.
1203 (altivec_vupklsb): Likewise.
1204 (altivec_vupklsh): Likewise.
1205 (altivec_vcmpequ<VI_char>_p): Likewise.
1206 (altivec_vcmpgts<VI_char>_p): Likewise.
1207 (altivec_vcmpgtu<VI_char>_p): Likewise.
1208 (abs<mode>2): Likewise.
1209 (vec_unpacks_hi_v16qi): Likewise.
1210 (vec_unpacks_hi_v8hi): Likewise.
1211 (vec_unpacks_lo_v16qi): Likewise.
1212 (vec_unpacks_hi_<VP_small_lc>): Likewise.
1213 (vec_unpacks_lo_v8hi): Likewise.
1214 (vec_unpacks_lo_<VP_small_lc>): Likewise.
1215 (vec_pack_trunc_v8h): Likewise.
1216 (vec_pack_trunc_v4si): Likewise.
1217 (vec_pack_trunc_<mode>): Likewise.
1219 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
1221 (vec_vmaxsd): Likewise.
1222 (vec_vmaxud): Likewise.
1223 (vec_vminsd): Likewise.
1224 (vec_vminud): Likewise.
1225 (vec_vpksdss): Likewise.
1226 (vec_vpksdus): Likewise.
1227 (vec_vpkudum): Likewise.
1228 (vec_vpkudus): Likewise.
1229 (vec_vrld): Likewise.
1230 (vec_vsld): Likewise.
1231 (vec_vsrad): Likewise.
1232 (vec_vsrd): Likewise.
1233 (vec_vsubudm): Likewise.
1234 (vec_vupkhsw): Likewise.
1235 (vec_vupklsw): Likewise.
1237 2013-05-29 Jan Hubicka <jh@suse.cz>
1239 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
1240 flags; reorder rest of fields in more consistent way.
1241 (varpool_node): Remove analyzed, finalized and alias.
1242 (cgraph_ndoe): Likewise.
1243 (symtab_alias_ultimate_target): New function.
1244 (cgraph_function_node): Move offline.
1245 (cgraph_reset_node): Declare.
1246 (cgraph_comdat_can_be_unshared_p): Remove.
1247 (varpool_remove_initializer): Declare.
1248 (varpool_first_defined_variable, varpool_next_defined_variable
1249 cgraph_first_defined_function, cgraph_next_defined_function): Update.
1250 (cgraph_function_with_gimple_body_p): Update.
1251 (varpool_all_refs_explicit_p): Update.
1252 (symtab_alias_target): New function.
1253 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
1254 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
1255 (cgraph_function_or_thunk_node): Simplify using
1256 symtab_alias_ultimate_target.
1257 (varpool_variable_node): Likewise.
1258 * cgraph.c (cgraph_create_function_alias): Update.
1259 (cgraph_add_thunk): Update.
1260 (cgraph_remove_node): Update.
1261 (dump_cgraph_node): Do not dump removed flags.
1262 (cgraph_function_body_availability): Update.
1263 (cgraph_propagate_frequency): Update.
1264 (verify_cgraph_node): Check sanity of local flag.
1265 (cgraph_function_node): Move here from cgraph.h; revamp for
1266 cgraph_function_or_thunk_node.
1267 * lto-symtab.c (lto_varpool_replace_node): Update.
1268 (lto_symtab_resolve_can_prevail_p): Update.
1269 (lto_symtab_merge_cgraph_nodes): Update.
1270 * ipa-cp.c (determine_versionability, initialize_node_lattices,
1271 propagate_constants_accross_call, devirtualization_time_bonus,
1272 ipcp_propagate_stage): Update.
1273 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
1274 * ipa-inline-transform.c (clone_inlined_nodes,
1275 preserve_function_body_p): Update.
1276 * ipa-reference.c (propagate): Update.
1277 (write_node_summary_p): Update.
1278 * toplev.c (wrapup_global_declaration_2): Update.
1279 * cgraphunit.c (cgraph_analyze_function): Rename to ...
1280 (analyze_function) ... this one.
1281 (cgraph_process_new_functions): Update.
1282 (cgraph_reset_node): Export.
1283 (cgraph_finalize_function): Update.
1284 (cgraph_add_new_function): Update.
1285 (process_function_and_variable_attributes): Update.
1286 (varpool_finalize_decl): Update.
1287 (symbol_finalized): Remove.
1288 (symbol_finalized_and_needed): Rename to ...
1289 (symbol_defined_and_needed): ... update.
1290 (cgraph_analyze_functions): Update.
1291 (handle_alias_pairs): Update.
1292 (mark_functions_to_output): Update.
1293 (assemble_thunk): Update.
1294 (output_in_order): Update.
1295 (output_weakrefs): Update.
1296 (finalize_compilation_unit): Update.
1297 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
1298 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
1299 input_node, input_varpool_node): Update.
1300 * dbxout.c (dbxout_expand_expr): Update.
1301 * cgraphclones.c (cgraph_clone_node): Update.
1302 (cgraph_copy_node_for_versioning): Update.
1303 (cgraph_materialize_clone): Update.
1304 (cgraph_materialize_all_clones): Update.
1305 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
1306 propagate_pure_const, propagate_nothrow): Update.
1307 * lto-streamer-out.c (lto_output, write_symbol): Update.
1308 * ipa-utils.c (ipa_reverse_postorder): Update.
1309 * ipa-inline.c (can_inline_edge_p): Update.
1310 (update_caller_keys, ipa_inline): Update.
1311 * dwarf2out.c (reference_to_unused,
1312 premark_types_used_by_global_vars_helper): Update.
1313 * tree-eh.c (tree_could_trap_p): Update.
1314 * ipa-split.c (consider_split, execute_split_functions): Update.
1315 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
1316 has_addr_references_p): Update; move ahead in file for better
1318 (process_references): Simplify.
1319 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
1321 (cgraph_comdat_can_be_unshared_p): Make static.
1322 (cgraph_externally_visible_p): Update.
1323 (varpool_externally_visible_p): Update.
1324 (function_and_variable_visibility): Update.
1325 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
1326 ipa_tm_mark_force_output_node): Update.
1327 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
1328 estimate_edge_devirt_benefit, inline_generate_summary,
1329 inline_write_summary): Update.
1330 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
1331 * ipa-prop.c (ipa_compute_jump_functions): Update.
1332 (ipa_print_node_params, ipa_prop_read_section,
1333 ipa_update_after_lto_read, read_replacements_section): Update.
1334 * varasm.c (mark_decl_referenced): Update.
1335 (assemble_alias, dump_tm_clone_pairs): Update.
1336 * tree-inline.c (copy_bb): Update.
1337 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
1339 * symtab.c (dump_symtab_base): Print new flags.
1340 (verify_symtab_base): Verify new flags.
1341 (symtab_alias_ultimate_target): New function.
1342 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
1343 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
1345 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
1347 * i386.c (ix86_get_function_versions_dispatcher,
1348 ix86_generate_version_dispatcher_body): Update.
1349 (fold_builtin_cpu): Use varpool_add_new_variable.
1350 * varpool.c (varpool_remove_initializer): Break out from ...
1351 (varpool_remove_node): ... this one.
1352 (dump_varpool_node, varpool_node_for_asm,
1353 cgraph_variable_initializer_availability, varpool_analyze_node,
1354 varpool_assemble_decl, varpool_remove_unreferenced_decls,
1355 varpool_finalize_named_section_flags, varpool_create_variable_alias):
1358 2013-05-29 Jan Hubicka <jh@suse.cz>
1360 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
1362 2013-05-29 Easwaran Raman <eraman@google.com>
1364 PR tree-optimization/57442
1365 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
1366 when control exits the main loop.
1368 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
1370 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
1372 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
1373 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
1374 * rx/t-rx: Add rx100 under multi library matches option for nofpu
1377 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1379 PR tree-optimization/57441
1380 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
1381 Don't limit size of incr_vec to number of candidates.
1383 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
1385 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
1386 and mips16 directories.
1387 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
1388 (MULTILIB_DIRNAMES): Ditto.
1389 (MULTILIB_EXCEPTIONS): Add new exceptions.
1390 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
1391 (MULTILIB_DIRNAMES): Ditto.
1392 (MULTILIB_EXCEPTIONS): Add new exceptions.
1394 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1395 Marcus Shawcroft <marcus.shawcroft@arm.com>
1397 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
1398 SYMBOL_TINY_ABSOLUTE.
1399 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
1400 SYMBOL_TINY_ABSOLUTE.
1401 (aarch64_expand_mov_immediate): Likewise.
1402 (aarch64_classify_symbol): Likewise.
1403 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
1404 Permit SYMBOL_TINY_ABSOLUTE.
1405 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
1407 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1408 Marcus Shawcroft <marcus.shawcroft@arm.com>
1410 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
1411 Refactor if/switch. Replace gcc_assert with if.
1413 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1415 * config/i386/i386.c (initial_ix86_tune_features): Enable
1416 FP Reassociation for AMD bdver1 and bdver2.
1418 2013-05-29 Martin Jambor <mjambor@suse.cz>
1420 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
1421 and IMAGPART_EXPR do not occur within other handled_components.
1423 2013-05-29 Richard Biener <rguenther@suse.de>
1425 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
1426 access on whether the use is in the BB we currently try to
1428 (vect_bb_vectorization_profitable_p): Pass the BB we currently
1429 vectorize to vect_bb_slp_scalar_cost.
1431 2013-05-29 Richard Biener <rguenther@suse.de>
1433 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
1434 computing scalar cost offsetted by stmts that are kept live
1436 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
1437 for computation of scalar cost.
1439 2013-05-28 Steve Ellcey <sellcey@mips.com>
1441 * config/mips/mips-cpus.def (mips32r2): Change processor type.
1443 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1445 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
1446 array notation built-in reduction functions.
1447 * doc/passes.texi (Passes): Added documentation about changes done
1449 * doc/invoke.texi (C Dialect Options): Added documentation about
1450 the -fcilkplus flag.
1451 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
1452 (BUILTINS_DEF): Depend on cilkplus.def.
1453 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
1454 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
1455 * cilkplus.def: New file.
1457 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
1459 PR rtl-optimization/57439
1460 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
1462 2013-05-28 Easwaran Raman <eraman@google.com>
1464 PR tree-optimization/57337
1465 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
1466 (find_insert_point): Correctly identify the insertion point
1467 when two statements with the same UID is compared.
1469 2013-05-28 Richard Biener <rguenther@suse.de>
1471 PR tree-optimization/56787
1472 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
1473 from the list of data references.
1474 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
1476 (vect_analyze_loop_operations): Likewise.
1477 (vect_transform_loop): Remove clobbers.
1479 2013-05-28 Martin Jambor <mjambor@suse.cz>
1481 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
1482 and REALPART_EXPRs have scalar type.
1484 2013-05-28 Richard Biener <rguenther@suse.de>
1486 PR tree-optimization/57411
1487 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
1489 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
1490 virtual operand propagation.
1492 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
1494 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
1495 destination register for bmasksi_vis.
1496 (vector_init_bshuffle): Likewise.
1497 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
1499 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
1501 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
1502 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
1503 mode if the instruction isn't available in the original mode.
1504 * config/sparc/sparc.opt (mfix-ut699): New option.
1505 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
1506 (divdf3): Turn into expander.
1507 (divdf3_nofix): New insn.
1508 (divdf3_fix): Likewise.
1509 (divsf3): Disable if -mfix-ut699.
1510 (sqrtdf2): Turn into expander.
1511 (sqrtdf2_nofix): New insn.
1512 (sqrtdf2_fix): Likewise.
1513 (sqrtsf2): Disable if -mfix-ut699.
1515 2013-05-27 Richard Biener <rguenther@suse.de>
1518 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
1519 block for the new loop.
1521 2013-05-27 Richard Biener <rguenther@suse.de>
1523 PR tree-optimization/57343
1524 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
1525 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
1526 (number_of_iterations_cond): Do not build the folded tree.
1528 2013-05-27 Richard Biener <rguenther@suse.de>
1532 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
1533 OEP_CONSTANT_ADDRESS_OF retained.
1535 PR tree-optimization/57417
1536 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
1538 (set_ssa_val_to): Compare addresses using
1539 get_addr_base_and_unit_offset.
1541 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
1543 PR rtl-optimization/56833
1544 * postreload.c (move2add_record_mode): New function.
1545 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
1546 (move2add_use_add2_insn): Use move2add_record_sym_value.
1547 (move2add_use_add3_insn): Likewise.
1548 (reload_cse_move2add): Use move2add_valid_value_p and
1549 move2add_record_mode. Invalidate call-clobbered and REG_INC
1550 affected regs by setting reg_mode to VOIDmode.
1551 (move2add_note_store): Don't pretend the inside of a SUBREG is
1552 the actual destination. Invalidate single/leading registers by
1553 setting reg_mode to VOIDmode.
1554 Use move2add_record_sym_value, move2add_valid_value_p and
1555 move2add_record_mode.
1557 2013-05-27 Richard Biener <rguenther@suse.de>
1559 PR tree-optimization/57396
1560 * tree-affine.c (double_int_constant_multiple_p): Properly
1561 return false for val == 0 and div != 0.
1563 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
1565 * config/mips/mips.h: Use #elif in preprocessor conditions.
1567 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
1570 * config/mips/constraints.md (kl): New constraint.
1571 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
1572 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
1573 constraint for operand 0. Split after CSE for MIPS16. Emit a move
1575 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
1577 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
1580 * config/mips/mips.c (mips_can_inline_p): New function.
1581 (TARGET_CAN_INLINE_P): Define.
1583 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
1585 * sched-int.h (ds_t, dw_t): Make unsigned int.
1586 Fix documentation that describes how all the ds_t bits are used.
1587 Reserve the last bit for delayed-branch scheduling.
1588 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
1589 (BITS_PER_DEP_WEAK): Fix definition and documentation.
1590 (gen_dep_weak_1): Remove prototype.
1591 * sched-deps.c (get_dep_weak_1): Make static.
1592 * target.def (speculate_insn, needs_block_p, gen_spec_check,
1593 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
1594 * doc/tm.texi: Regenerate.
1595 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
1597 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
1600 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
1602 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
1603 Sandra Loosemore <sandra@codesourcery.com>
1605 * config.gcc (powerpc-*): Allow native for with-cpu.
1607 2013-05-24 Jeff Law <law@redhat.com>
1609 PR tree-optimization/57124
1610 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
1611 conversion feeding a condition if the range has an overflow
1612 if -fstrict-overflow. Add warnings for when we do make the
1615 2013-05-24 Dehao Chen <dehao@google.com>
1617 * tree-cfg.c (locus_discrim_map): Fix the typo.
1618 (locus_discrim_hasher): Likewise.
1619 (locus_discrim_hasher::hash): Likewise.
1620 (locus_discrim_hasher::equal): Likewise.
1622 2013-05-24 Martin Jambor <mjambor@suse.cz>
1624 PR tree-optimization/57294
1625 * cgraph.h (ipa_record_stmt_references): Declare.
1626 * cgraphbuild.c (ipa_record_stmt_references): New function.
1627 (build_cgraph_edges): Use ipa_record_stmt_references.
1628 (rebuild_cgraph_edges): Likewise.
1629 (cgraph_rebuild_references): Likewise.
1630 * ipa-prop.c (ipa_modify_call_arguments): Discard references
1631 associated with the old statement and build references from the
1632 newly built statements.
1633 * ipa-ref.c (ipa_remove_stmt_references): New function.
1634 * ipa-ref.h (ipa_remove_stmt_references): Declare.
1636 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
1638 * lra-constraints.c (emit_spill_move): Use smaller mode for
1640 (check_and_process_move): Consider mem-reg moves for secondary
1642 (curr_insn_transform): Don't lose insns emitted before for
1643 secondary memory moves.
1644 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
1645 reg set up in the current insn.
1647 2013-05-24 Dehao Chen <dehao@google.com>
1649 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
1651 (locus_descrim_hasher::equal): Likewise.
1652 (build_gimple_cfg): New discriminator assignment algorithm.
1653 (make_edges): Likewise.
1654 (next_discriminator_for_locus): Likewise.
1655 (same_line_p): Likewise.
1656 (assign_discriminators): Likewise.
1657 (make_cond_expr_edges): Likewise.
1658 (make_gimple_switch_edges): Likewise.
1659 (make_goto_expr_edges): Likewise.
1660 (make_gimple_asm_edges): Likewise.
1662 2013-05-24 Ian Bolton <ian.bolton@arm.com>
1664 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
1665 X format specifier to only display bottom 16 bits.
1666 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
1667 immediate to match for operand 2, since it will be masked.
1669 2013-05-24 Richard Biener <rguenther@suse.de>
1671 PR tree-optimization/57287
1672 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
1673 all SSA names that occur in abnormal PHIs.
1675 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
1678 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
1679 that index is not negative.
1681 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
1683 PR rtl-optimization/55177
1684 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
1685 (simplify_byte_swapping_operation): New.
1686 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
1687 (simplify_relational_operation_1): Deal with BSWAP.
1689 2013-05-23 Richard Henderson <rth@redhat.com>
1692 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
1693 (ix86_reorg): Call it.
1695 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
1698 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
1699 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
1700 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
1702 2013-05-23 Christian Bruel <christian.bruel@st.com>
1705 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
1707 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1708 Marcus Shawcroft <marcus.shawcroft@arm.com>
1710 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
1711 * config/aarch64/constraints.md (Usa): Remove.
1712 * doc/md.texi (AArch64 Usa): Remove.
1714 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1715 Marcus Shawcroft <marcus.shawcroft@arm.com>
1717 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
1718 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
1719 * config/aarch64/predicates.md (aarch64_const_address): Remove.
1720 (aarch64_mov_operand): Use aarch64_mov_operand_p.
1722 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
1724 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
1725 instruction (AdvSIMD).
1726 * config/aarch64/aarch64-builtins.c
1727 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
1728 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
1730 2013-05-23 Martin Jambor <mjambor@suse.cz>
1733 * tree.h (contains_bitfld_component_ref_p): Declare.
1734 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
1735 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
1737 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
1738 not access a bit-field. Assert all final offsets are byte-aligned.
1740 2013-05-23 Richard Biener <rguenther@suse.de>
1742 PR tree-optimization/57380
1743 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
1744 least one invariant or re-used load.
1745 * passes.c (init_optimization_passes): Move pass_phiprop before
1748 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
1750 * config/aarch64/aarch64-simd.md
1751 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
1753 2013-05-23 Richard Biener <rguenther@suse.de>
1756 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
1757 OEP_CONSTANT_ADDRESS_OF retained.
1759 2013-05-23 Jakub Jelinek <jakub@redhat.com>
1762 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
1763 don't lower unit. Handle unit not being always BITS_PER_WORD.
1765 2013-05-23 Richard Biener <rguenther@suse.de>
1767 PR rtl-optimization/57341
1768 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
1769 instead of true_dependence.
1771 2013-05-22 David Malcolm <dmalcolm@redhat.com>
1773 * bb-reorder.c (branch_threshold): Make const.
1774 (exec_threshold): Ditto.
1776 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
1777 Pat Haugen <pthaugen@us.ibm.com>
1778 Peter Bergner <bergner@vnet.ibm.com>
1780 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
1781 documentation for the power8 crypto builtins.
1783 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
1785 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
1786 macros for defining power8 builtin functions.
1787 (BU_P8V_AV_2): Likewise.
1788 (BU_P8V_AV_P): Likewise.
1789 (BU_P8V_VSX_1): Likewise.
1790 (BU_P8V_OVERLOAD_1): Likewise.
1791 (BU_P8V_OVERLOAD_2): Likewise.
1792 (BU_CRYPTO_1): Likewise.
1793 (BU_CRYPTO_2): Likewise.
1794 (BU_CRYPTO_3): Likewise.
1795 (BU_CRYPTO_OVERLOAD_1): Likewise.
1796 (BU_CRYPTO_OVERLOAD_2): Likewise.
1797 (XSCVSPDP): Fix typo, point to the correct instruction.
1798 (VCIPHER): Add power8 crypto builtins.
1799 (VCIPHERLAST): Likewise.
1800 (VNCIPHER): Likewise.
1801 (VNCIPHERLAST): Likewise.
1802 (VPMSUMB): Likewise.
1803 (VPMSUMH): Likewise.
1804 (VPMSUMW): Likewise.
1805 (VPERMXOR_V2DI): Likewise.
1806 (VPERMXOR_V4SI: Likewise.
1807 (VPERMXOR_V8HI: Likewise.
1808 (VPERMXOR_V16QI: Likewise.
1809 (VSHASIGMAW): Likewise.
1810 (VSHASIGMAD): Likewise.
1812 (VPERMXOR): Likewise.
1813 (VSHASIGMA): Likewise.
1815 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
1816 __CRYPTO__ if the crypto instructions are available.
1817 (altivec_overloaded_builtins): Add support for overloaded power8
1820 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
1821 support for power8 crypto builtins.
1822 (builtin_function_type): Likewise.
1823 (altivec_init_builtins): Add support for builtins that take vector
1824 long long (V2DI) arguments.
1826 * config/rs6000/crypto.md: New file, define power8 crypto
1829 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
1830 Pat Haugen <pthaugen@us.ibm.com>
1831 Peter Bergner <bergner@vnet.ibm.com>
1833 * doc/invoke.texi (Option Summary): Add power8 options.
1834 (RS/6000 and PowerPC Options): Likewise.
1836 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
1837 constraints.md instead of rs6000.h. Reorder w* constraints. Add
1838 wm, wn, wr documentation.
1840 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
1841 registers if direct move instructions are enabled.
1842 (wn): New constraint for no registers.
1843 (wq): New constraint for quad word even GPR registers.
1844 (wr): New constraint if 64-bit instructions are enabled.
1845 (wv): New constraint if power8 vector instructions are enabled.
1846 (wQ): New constraint for quad word memory locations.
1848 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
1849 constraint for 0..15 for crypto instructions.
1850 (gpc_reg_operand): If VSX allow registers in VSX registers as well
1851 as GPR and floating point registers.
1852 (int_reg_operand): New predicate to match only GPR registers.
1853 (base_reg_operand): New predicate to match base registers.
1854 (quad_int_reg_operand): New predicate to match even GPR registers
1855 for quad memory operations.
1856 (vsx_reg_or_cint_operand): New predicate to allow vector logical
1857 operations in both GPR and VSX registers.
1858 (quad_memory_operand): New predicate for quad memory operations.
1859 (reg_or_indexed_operand): New predicate for direct move support.
1861 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
1862 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
1863 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
1864 (POWERPC_MASKS): Add power8 options.
1865 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
1868 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
1869 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
1871 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
1872 (-mpower8-fusion): New power8 options.
1873 (-mpower8-fusion-sign): Likewise.
1874 (-mpower8-vector): Likewise.
1875 (-mcrypto): Likewise.
1876 (-mdirect-move): Likewise.
1877 (-mquad-memory): Likewise.
1879 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
1881 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
1883 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
1884 (rs6000_debug_vector_unit): Add p8_vector.
1885 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
1886 definitions. Also print fusion state.
1887 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
1888 (rs6000_builtin_mask_calculate): Add power8 builtin support.
1889 (rs6000_option_override_internal): Add support for power8.
1890 (rs6000_common_init_builtins): Add debugging for skipped builtins
1892 (rs6000_adjust_cost): Add power8 support.
1893 (rs6000_issue_rate): Likewise.
1894 (insn_must_be_first_in_group): Likewise.
1895 (insn_must_be_last_in_group): Likewise.
1896 (force_new_group): Likewise.
1897 (rs6000_register_move_cost): Likewise.
1898 (rs6000_opt_masks): Likewise.
1900 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
1901 power8 capable assembler, default to power7 options.
1902 (TARGET_DIRECT_MOVE): Likewise.
1903 (TARGET_CRYPTO): Likewise.
1904 (TARGET_P8_VECTOR): Likewise.
1905 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
1906 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
1907 (VECTOR_MEM_P8_VECTOR_P): Likewise.
1908 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
1909 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
1910 (TARGET_XSCVDPSPN): Likewise.
1911 (TARGET_XSCVSPDPN): Likewsie.
1912 (TARGET_SYNC_HI_QI): Likewise.
1913 (TARGET_SYNC_TI): Likewise.
1914 (MASK_CRYPTO): Likewise.
1915 (MASK_DIRECT_MOVE): Likewise.
1916 (MASK_P8_FUSION): Likewise.
1917 (MASK_P8_VECTOR): Likewise.
1918 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
1919 temporary used by some of the direct move instructions to get two FP
1920 temporary registers does not force creation of a stack frame.
1921 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
1922 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
1923 that any VSX registers are tieable, even if they are also an
1924 Altivec vector mode.
1925 (r6000_reg_class_enum): Add wm, wr, wv constraints.
1926 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
1927 (RS6000_BTM_CRYPTO): Likewise.
1928 (RS6000_BTM_COMMON): Likewise.
1930 * config/rs6000/rs6000.md (cpu attribute): Add power8.
1931 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
1932 (enum rs6000_vector): Add power8 vector support.
1934 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1938 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
1939 (any_sibcall_could_use_r3): this and handle indirect calls.
1940 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
1942 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1944 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
1946 2013-05-22 Richard Biener <rguenther@suse.de>
1949 * profile.c (branch_prob): Do not split blocks that are
1950 abnormally receiving from ECF_RETURNS_TWICE functions.
1952 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1954 * recog.c (offsettable_address_addr_space_p): Fix calculation of
1955 address mode. Move pointer mode initialization to the same place.
1957 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1959 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
1960 while it has any effect.
1962 2013-05-21 Easwaran Raman <eraman@google.com>
1964 PR tree-optimization/57322
1965 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
1966 UID of the statement added to the BB to be 1.
1968 2013-05-21 Jakub Jelinek <jakub@redhat.com>
1970 PR tree-optimization/57331
1971 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
1972 of conversion from pointer type to integral type with integer.
1974 2013-05-21 Martin Jambor <mjambor@suse.cz>
1977 * ipa-prop.c (ipa_read_node_info): Process param_used and
1978 controlled_uses in the same order as when writing.
1980 2013-05-21 Magnus Granberg <baldrick@free.fr>
1983 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
1985 2013-05-21 Richard Biener <rguenther@suse.de>
1987 PR tree-optimization/57318
1988 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
1989 estimate stmts with side-effects as likely eliminated.
1991 2013-05-21 Richard Biener <rguenther@suse.de>
1993 PR tree-optimization/57330
1994 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
1995 preserve the call stmts fntype.
1997 2013-05-21 Richard Biener <rguenther@suse.de>
1999 PR tree-optimization/57303
2000 * tree-ssa-sink.c (statement_sink_location): Improve killing
2001 stmt detection and properly handle self-assignments.
2003 2013-05-21 Christian Bruel <christian.bruel@st.com>
2005 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
2006 spanning registers. LEAF_REG_REMAP is supported only for contiguous
2007 registers. Set register size out of the PARALLEL loop.
2009 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
2012 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
2013 (*fmasf4, *fmasf4_media): New insns.
2015 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
2017 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
2018 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
2019 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
2020 (mips_idiv_insns): Update the comments to say that the returned
2021 instruction counts are in units of BASE_INSN_LENGTH.
2022 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
2023 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
2024 using 2 rather than 4 as the length of indirect MIPS16 and
2025 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
2026 length of a NOP. Don't divide MIPS16 lengths by 2.
2027 (mips16_split_long_branches): Assume a branch is long if the
2028 length is greater than 4 rather than 8.
2029 * config/mips/mips.md (length): Give MIPS16 lengths directly,
2030 rather than multiplying them by 2. Multiply instruction counts
2031 by BASE_INSN_LENGTH rather than 4.
2032 (*jump_mips16, tls_get_tp_mips16_<mode>)
2033 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
2035 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
2037 * config/mips/mips.md (extended_mips16): Remove branch case.
2038 (length): Remove duplicated extended_mips16 test.
2040 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
2042 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
2044 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
2046 * recog.h (Recog_data): Rename to...
2047 (recog_data_d): ...this.
2048 (recog_data): Update accordingly.
2049 * recog.c (recog_data): Likewise.
2050 * reload.c (save_recog_data): Likewise.
2051 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
2052 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
2054 2013-05-17 Julian Brown <julian@codesourcery.com>
2056 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
2057 found in a REG_EQUAL note, invalidate it.
2059 2013-05-17 Easwaran Raman <eraman@google.com>
2061 * tree-ssa-reassoc.c (find_insert_point): New function.
2062 (insert_stmt_after): Likewise.
2063 (get_def_stmt): Likewise.
2064 (ensure_ops_are_available): Likewise.
2065 (not_dominated_by): Likewise.
2066 (rewrite_expr_tree): Do not move statements beyond what is
2067 necessary. Remove call to swap_ops_for_binary_stmt...
2068 (reassociate_bb): ... and move it here.
2069 (build_and_add_sum): Assign UIDs for new statements.
2070 (linearize_expr): Likewise.
2071 (do_reassoc): Renumber gimple statement UIDs.
2073 2013-05-17 Jan Hubicka <jh@suse.cz>
2075 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
2077 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
2078 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
2080 (output_weakrefs): Update.
2082 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
2083 Martin Jambor <mjambor@suse.cz>
2086 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
2087 value that corresponds to the given aggval is found in values vector.
2089 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
2091 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
2092 sse, sse2, sse3, ssse3 and sse4a flags to options.
2094 2013-05-17 David Malcolm <dmalcolm@redhat.com>
2096 * gengtype-state.c: (s_expr_writer): New class, to handle
2097 prettifying of output layout of s-expressions.
2098 (state_writer): New class, to write out gtype.state.
2099 (state_written_type_count): Move this variable into member data of
2101 (s_expr_writer::s_expr_writer): New code: constructor for new class
2102 (state_writer::state_writer(): ditto
2103 (s_expr_writer::write_new_line): New function
2104 (s_expr_writer::write_any_indent): ditto
2105 (s_expr_writer::begin_s_expr): ditto
2106 (s_expr_writer::end_s_expr): ditto
2107 (write_state_fileloc): convert to method of state_writer...
2108 (state_writer:: write_state_fileloc): ...and use methods of
2109 s_expr_writer to write indentation into the gtype.state output file
2110 to visually represent the hierarchical structure of the list
2112 (write_state_fields): ditto, renaming to...
2113 (state_writer::write_state_fields)
2114 (write_state_a_string): ditto, renaming to...
2115 (state_writer::write_state_a_string)
2116 (write_state_string_option): ditto, renaming to...
2117 (state_writer::write_state_string_option)
2118 (write_state_type_option): ditto, renaming to...
2119 (state_writer::write_state_type_option)
2120 (write_state_nested_option): ditto, renaming to...
2121 (state_writer::write_state_nested_option)
2122 (write_state_option): ditto, renaming to...
2123 (state_writer::write_state_option)
2124 (write_state_options): ditto, renaming to...
2125 (state_writer::write_state_options)
2126 (write_state_lang_bitmap): ditto, renaming to...
2127 (state_writer::write_state_lang_bitmap)
2128 (write_state_version): ditto, renaming to...
2129 (state_writer::write_state_version)
2130 (write_state_scalar_type): ditto, renaming to...
2131 (state_writer::write_state_scalar_type)
2132 (write_state_string_type): ditto, renaming to...
2133 (state_writer::write_state_string_type)
2134 (write_state_undefined_type): ditto, renaming to...
2135 (state_writer::write_state_undefined_type)
2136 (write_state_struct_union_type): ditto, renaming to...
2137 (state_writer::write_state_struct_union_type)
2138 (write_state_struct_type): ditto, renaming to...
2139 (state_writer::write_state_struct_type)
2140 (write_state_user_struct_type): ditto, renaming to...
2141 (state_writer::write_state_user_struct_type)
2142 (write_state_lang_struct_type): ditto, renaming to...
2143 (state_writer::write_state_lang_struct_type)
2144 (write_state_param_struct_type): ditto, renaming to...
2145 (state_writer::write_state_param_struct_type)
2146 (write_state_pointer_type): ditto, renaming to...
2147 (state_writer::write_state_pointer_type)
2148 (write_state_array_type): ditto, renaming to...
2149 (state_writer::write_state_array_type)
2150 (write_state_gc_used): ditto, renaming to...
2151 (state_writer::write_state_gc_used)
2152 (write_state_common_type_content): ditto, renaming to...
2153 (state_writer::write_state_common_type_content)
2154 (write_state_type): ditto, renaming to...
2155 (state_writer::write_state_type)
2156 (write_state_pair_list): ditto, renaming to...
2157 (state_writer::write_state_pair_list)
2158 (write_state_pair): ditto, renaming to...
2159 (state_writer::write_state_pair)
2160 (write_state_typedefs): ditto, renaming to...
2161 (state_writer::write_state_typedefs)
2162 (write_state_structures): ditto, renaming to...
2163 (state_writer::write_state_structures)
2164 (write_state_param_structs): ditto, renaming to...
2165 (state_writer::write_state_param_structs)
2166 (write_state_variables): ditto, renaming to...
2167 (state_writer::write_state_variables)
2168 (write_state_srcdir): ditto, renaming to...
2169 (state_writer::write_state_srcdir)
2170 (write_state_files_list): ditto, renaming to...
2171 (state_writer::write_state_files_list)
2172 (write_state_languages): ditto, renaming to...
2173 (state_writer::write_state_languages)
2174 (write_state): create a state_writer instance and use it when
2175 writing out the state file
2177 2013-05-17 Mike Stump <mikestump@comcast.net>
2179 PR rtl-optimization/57304
2180 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
2181 accessing DF_REF_REAL_LOC.
2183 2013-05-17 Jakub Jelinek <jakub@redhat.com>
2185 PR rtl-optimization/57281
2186 PR rtl-optimization/57300
2187 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
2188 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
2189 what the other splitter did if the registers are dead.
2191 2013-05-17 Richard Biener <rguenther@suse.de>
2193 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
2196 2013-05-17 Jakub Jelinek <jakub@redhat.com>
2198 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
2201 2013-05-17 Marek Polacek <polacek@redhat.com>
2203 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
2204 length when doing non-zero store of storing '\0' to '\0'.
2206 2013-05-17 Jakub Jelinek <jakub@redhat.com>
2208 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
2209 vect_external_def oprnd1 with loop_vinfo, try to emit
2210 optional cast, negation and and stmts on the loop preheader
2211 edge instead of into the pattern def seq.
2213 PR tree-optimization/57051
2214 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
2215 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
2217 2013-05-16 Nick Clifton <nickc@redhat.com>
2219 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
2220 (rl78_is_naked_func): New function.
2221 (rl78_expand_prologue): Skip prologue generation for naked functions.
2222 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
2223 * doc/extend.texi (naked): Add RL78 to the list of processors
2224 that supports this attribute.
2226 2013-05-16 Jeff Law <law@redhat.com>
2228 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
2230 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
2232 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
2233 cache parameters using detect_caches_amd also for CYRIX,
2234 NSC and TM2 signatures.
2236 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
2237 Dzianis Kahanovich <mahatma@eu.by>
2241 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2242 VIA/Centaur processors and determine their cache parameters
2243 using detect_caches_amd.
2245 2013-05-16 Teresa Johnson <tejohnson@google.com>
2247 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
2248 (rtl_verify_edges): New function.
2249 (rtl_verify_bb_insns): Ditto.
2250 (rtl_verify_bb_pointers): Ditto.
2251 (rtl_verify_bb_insn_chain): Ditto.
2252 (rtl_verify_fallthru): Ditto.
2253 (rtl_verify_bb_layout): Ditto.
2254 (rtl_verify_flow_info_1): Outline checks into new functions.
2255 (rtl_verify_flow_info): Ditto.
2257 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
2259 * cfghooks.c (copy_bbs): Add update_dominance argument.
2260 * cfghooks.h (copy_bbs): Update prototype.
2261 * tree-cfg.c (gimple_duplicate_sese_region):
2262 Add update_dominance argument.
2263 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
2264 * tree-ssa-loop-ch.c (copy_loop_headers): Update
2265 gimple_duplicate_sese_region call.
2266 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
2267 Update copy_bbs call.
2268 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
2269 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
2271 2013-05-16 Jakub Jelinek <jakub@redhat.com>
2273 * tree-vectorizer.h (NUM_PATTERNS): Increment.
2274 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
2275 vect_recog_rotate_pattern.
2276 (vect_recog_rotate_pattern): New function.
2278 2013-05-16 Jason Merrill <jason@redhat.com>
2280 * Makefile.in (LLINKER): New variable.
2281 (mostlyclean): Remove link mutex.
2282 * configure.ac: Handle --enable-link-mutex.
2283 * lock-and-run.sh: New script.
2285 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2288 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
2291 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2293 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
2295 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
2297 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
2298 * config/arm/arm.c (next_consecutive_mem): New function.
2299 (gen_movmem_ldrd_strd): Likewise.
2300 * config/arm/arm.md (movmemqi): Update condition and code.
2301 (unaligned_loaddi, unaligned_storedi): New patterns.
2303 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2305 * config.gcc: Obsolete *-*-solaris2.9*.
2306 * doc/install.texi (Specific, *-*-solaris2*): Document it.
2308 2013-05-16 Richard Biener <rguenther@suse.de>
2310 * passes.c (init_optimization_passes): Move pass_parallelize_loops
2311 earlier, after GRAPHITE transforms and IV canonicalization.
2313 2013-05-16 Jakub Jelinek <jakub@redhat.com>
2315 * omp-low.c (extract_omp_for_data): For collapsed loops,
2316 if at least one of the loops is known at compile time to
2317 iterate zero times, set count to 0.
2318 (expand_omp_regimplify_p): New function.
2319 (expand_omp_for_generic): For collapsed loops, if at least
2320 one of the loops isn't known to iterate at least once,
2321 add runtime check with setting count to 0.
2322 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
2323 For unsigned types if it isn't known at compile time that
2324 the loop will iterate at least once, add runtime check to bypass
2325 the whole loop if initial condition isn't true.
2327 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
2329 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
2331 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
2334 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
2335 transformations to avoid an infinite loop.
2337 2013-05-16 Marek Polacek <polacek@redhat.com>
2339 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
2341 2013-05-15 Leif Ekblad <leif@rdos.net>
2343 * config/i386/i386.c (ix86_decompose_address): Use
2344 DEFAULT_TLS_SEG_REG to access TLS segment register.
2345 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
2346 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
2347 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
2349 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
2352 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
2353 sibling calls to functions that would normally be lazily bound,
2354 unless $gp is call-clobbered.
2356 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
2358 * config/i386/i386.c (ix86_option_override_internal): Update
2359 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
2360 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
2361 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
2362 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
2364 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
2366 2013-05-15 Andreas Schwab <schwab@suse.de>
2368 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
2369 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
2372 2013-05-15 Teresa Johnson <tejohnson@google.com>
2374 * loop-unroll.c (report_unroll_peel): Check decision before
2375 emitting unroll/peel message.
2377 2013-05-15 Teresa Johnson <tejohnson@google.com>
2379 * function.h (has_bb_partition): New rtl_data flag.
2380 (bb_reorder_complete): Ditto.
2381 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
2382 instead of flag_reorder_blocks_and_partition.
2383 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
2384 with some enhancements.
2385 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
2386 * bb-reorder.c (connect_traces): Check for has_bb_partition
2387 instead of flag_reorder_blocks_and_partition.
2388 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
2389 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
2390 verify_hot_cold_block_grouping.
2391 (partition_hot_cold_basic_blocks): Set has_bb_partition.
2393 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2396 * config/arm/predicates.md (call_insn_operand): New predicate.
2397 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
2398 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
2399 if insn is not a tail call.
2400 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
2402 * config/arm/arm.h (enum reg_class): New caller save register class.
2403 (REG_CLASS_NAMES): Likewise.
2404 (REG_CLASS_CONTENTS): Likewise.
2405 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
2408 2013-05-15 Richard Biener <rguenther@suse.de>
2410 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
2411 of MSG_OPTIMIZED_LOCATIONS.
2412 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
2413 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
2415 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
2416 of MSG_OPTIMIZED_LOCATIONS.
2417 (execute_vect_slp): Likewise.
2418 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
2419 (vect_create_cond_for_alias_checks): Likewise.
2420 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
2421 (vect_recog_widen_mult_pattern): Likewise.
2422 (vect_recog_widen_sum_pattern): Likewise.
2423 (vect_recog_over_widening_pattern): Likewise.
2424 (vect_recog_widen_shift_pattern): Likewise.
2425 (vect_recog_vector_vector_shift_pattern): Likewise.
2426 (vect_recog_divmod_pattern): Likewise.
2427 (vect_recog_mixed_size_cond_pattern): Likewise.
2428 (vect_recog_bool_pattern): Likewise.
2429 (vect_pattern_recog_1): Likewise.
2431 2013-05-15 Martin Jambor <mjambor@suse.cz>
2433 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
2434 non-functions to builtin_unreachable.
2435 * ipa-inline-transform.c (inline_call): Do not assert estimates were
2436 correct when new direct edges were discovered.
2438 2013-05-15 Martin Jambor <mjambor@suse.cz>
2440 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
2441 header, print symbol order instead of node uid, print more information
2442 about indirect edge targets.
2443 (ipa_make_edge_direct_to_target): Print symbol order instead of node
2445 (ipa_make_edge_direct_to_target): Likewise.
2446 (remove_described_reference): Likewise.
2447 (propagate_controlled_uses): Likewise.
2448 (ipa_print_node_params): Also print symbol order.
2449 (ipcp_transform_function): Print symbol order instead of node uids.
2450 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
2451 (cgraph_get_create_real_symbol_node): Likewise.
2452 * ipa-cp.c (print_lattice): Likewise.
2453 (print_all_lattices): Likewise.
2454 (determine_versionability): Likewise.
2455 (initialize_node_lattices): Likewise.
2456 (estimate_local_effects): Likewise.
2457 (update_profiling_info): Likewise.
2458 (create_specialized_node): Likewise.
2459 (perhaps_add_new_callers): Likewise.
2460 (decide_about_value): Likewise.
2461 (decide_whether_version_node): Likewise.
2462 (identify_dead_nodes): Likewise.
2463 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
2464 (dump_inline_summary): Likewise.
2465 (estimate_node_size_and_time): Likewise.
2466 (inline_analyze_function): Likewise.
2467 * ipa-inline.c (report_inline_failed_reason): Likewise.
2468 (want_early_inline_function_p): Likewise.
2469 (edge_badness): Likewise.
2470 (update_edge_key): Likewise.
2471 (inline_small_functions): Likewise. Add dumping of order to two other
2473 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
2474 instead of node uids.
2475 (propagate_pure_const): Likewise.
2476 (propagate_pure_const): Likewise.
2477 * ipa-utils.c (dump_cgraph_node_set): Likewise.
2478 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
2479 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
2481 * tree-pretty-print.c (dump_function_header): Likewise.
2482 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
2483 Print symbol order instead of node uids.
2485 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2487 * config/s390/s390.c (s390_register_move_cost): Don't impose the
2488 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
2490 2013-05-15 Richard Biener <rguenther@suse.de>
2492 PR tree-optimization/57275
2493 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
2494 return value for fail to do runtime alias checks for gather loads.
2496 2013-05-15 Jan Hubicka <jh@suse.cz>
2500 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
2501 weakrefs are not external.
2502 (lto_symtab_merge_decls): Fix thinko when dealing with
2503 non-lto_symtab decls.
2504 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
2505 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
2506 * varpool.c (dump_varpool_node): Dump more flags.
2508 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2510 * config/i386/i386.c (processor_alias_table): Add instruction
2511 FSGSBASE for AMD bdver3 architecture.
2513 2013-05-14 Jakub Jelinek <jakub@redhat.com>
2515 * tree.c (warn_deprecated_use): Print file:line using locus color.
2516 * diagnostic.c (diagnostic_report_current_module): Print file:line
2517 and file:line:column using locus color.
2519 2013-05-14 Mike Stump <mikestump@comcast.net>
2521 * gdbinit.in: Add __null.
2523 2013-05-14 Mike Stump <mikestump@comcast.net>
2525 * recog.h: Rename struct recog_data to Recog_data.
2526 * recog.c: Likewise.
2527 * reload.c (can_reload_into): Likewise.
2528 * config/picochip/picochip.c: Likewise.
2530 2013-05-14 Mike Stump <mikestump@comcast.net>
2532 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
2534 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
2536 * resource.h (struct resources): Remove unch_memory member.
2537 (CLEAR_RESOURCE): Don't clear unch_memory.
2538 * resource.c (mark_referenced_resources): Don't set it.
2539 (mark_set_resources): Likewise.
2540 (mark_target_live_regs): Don't clear it.
2541 (init_resource_info): Likewise.
2542 * reorg.c (resource_conflicts_p): Don't compare it.
2543 (redundant_insn): Don't set it.
2545 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
2547 * emit-rtl.c (next_label): Remove unused function.
2548 (skip_consecutive_labels, link_cc0_insns): Move to ...
2549 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
2550 only place where these functions are used, and make them static.
2552 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
2554 * fold-const.c (fold_negate_expr): Handle vectors.
2555 (fold_truth_not_expr): Make it static.
2556 (fold_invert_truthvalue): New static function.
2557 (invert_truthvalue_loc): Handle vectors. Do not call
2558 fold_truth_not_expr directly.
2559 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
2560 <TRUTH_NOT_EXPR>: Do not cast to boolean.
2561 (fold_comparison): Handle vector constants.
2562 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
2563 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
2564 * tree.h (fold_truth_not_expr): Remove declaration.
2566 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
2568 * config/aarch64/aarch64-simd.md
2569 (aarch64_vcond_internal<mode>): Rename to...
2570 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
2571 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
2572 float modes. Clarify all iterator modes.
2573 (vcond<mode><mode>): Use new name for vcond expanders.
2574 (vcond<v_cmp_result><mode>): Likewise.
2575 (vcondu<mode><mode>: Likewise.
2576 * config/aarch64/iterators.md (VDQF_COND): New.
2578 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
2581 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
2582 variable for the shift amount. Check that we shift by non-negative
2585 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
2588 * config/arm/arm.h (EPILOGUE_USES): Only return true
2589 for LR_REGNUM after epilogue_completed.
2591 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
2593 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
2596 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2599 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
2600 and Solaris 11+/x86 with gld.
2601 * configure: Regenerate.
2603 2013-05-14 Jakub Jelinek <jakub@redhat.com>
2605 * expmed.c (expand_shift_1): Canonicalize rotates by
2606 constant bitsize / 2 to bitsize - 1.
2607 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
2608 case ROTATERT>: Likewise.
2611 2013-05-10 Jakub Jelinek <jakub@redhat.com>
2613 * config/i386/i386.md (rotateinv): New code attr.
2614 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
2615 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
2616 roll $31, %eax, etc.
2618 2013-05-14 Richard Biener <rguenther@suse.de>
2621 * tree-eh.c (sink_clobbers): Give up for successors with
2622 multiple predecessors and no virtual uses.
2624 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
2626 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
2627 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
2629 2013-05-14 Jakub Jelinek <jakub@redhat.com>
2632 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
2633 the case when both op0 and op1 have VOIDmode.
2635 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2637 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
2638 in multiply-accumulate mode.
2640 2013-05-13 Guozhi Wei <carrot@google.com>
2642 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
2644 2013-05-13 Kai Tietz <ktietz@redhat.com>
2647 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
2648 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
2649 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
2650 * config/i386/i386.c (ix86_option_override_internal): Likewise.
2651 (ix86_expand_prologue): Likewise.
2652 (ix86_expand_split_stack_prologue): Likewise.
2653 (legitimate_pic_address_disp_p): Likewise.
2654 (legitimize_pic_address): Likewise.
2655 (legitimize_tls_address): Likewise.
2656 (legitimize_pe_coff_symbol): Likewise.
2657 (output_pic_addr_const): Likewise.
2658 (construct_plt_address): Likewise.
2659 (ix86_expand_call): Likewise.
2660 (x86_output_mi_thunk): Likewise.
2661 (x86_function_profiler): Likewise.
2663 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
2665 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
2666 similar switch cases.
2667 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
2668 (aarch64_simd_mov_to_<mode>low): Delete.
2669 (aarch64_simd_mov_to_<mode>high): Delete.
2670 (move_lo_quad_<mode>): Add w<-r alternative.
2671 (aarch64_simd_move_hi_quad_<mode>): Likewise.
2672 (aarch64_simd_mov_from_*): Update type attribute.
2673 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
2676 2013-05-13 Jan Hubicka <jh@suse.cz>
2678 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
2679 * config/i386/i386.c (ix86_compute_frame_layout,
2680 ix86_expand_epilogue, emit_i387_cw_initialization,
2681 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
2682 ix86_local_alignment): Fix use of size/speed predicates.
2684 2013-05-13 Jakub Jelinek <jakub@redhat.com>
2686 PR tree-optimization/45216
2687 PR tree-optimization/57157
2688 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
2689 the (-Y) & (B - 1) variant if OP is |.
2690 * expmed.c (expand_shift_1): For rotations by const0_rtx just
2691 return shifted. Use (-op1) & (prec - 1) as other_amount
2692 instead of prec - op1.
2694 2013-05-13 Martin Jambor <mjambor@suse.cz>
2697 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
2698 (ipa_constant_data): New type.
2699 (ipa_jump_func): Use ipa_constant_data to hold information about
2700 constant jump functions.
2701 (ipa_get_jf_constant): Adjust to jump function type changes.
2702 (ipa_get_jf_constant_rdesc): New function.
2703 (ipa_param_descriptor): New field controlled_uses.
2704 (ipa_get_controlled_uses): New function.
2705 (ipa_set_controlled_uses): Likewise.
2706 * ipa-ref.h (ipa_find_reference): Declare.
2707 * ipa-prop.c (ipa_cst_ref_desc): New type.
2708 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
2710 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
2711 New parameter cs. Adjust all callers.
2712 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
2713 (remove_described_reference): New function.
2714 (jfunc_rdesc_usable): Likewise.
2715 (try_make_edge_direct_simple_call): Decrement controlled use count,
2716 attempt to remove reference if it hits zero.
2717 (combine_controlled_uses_counters): New function.
2718 (propagate_controlled_uses): Likewise.
2719 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
2720 (ipa_edge_duplication_hook): Duplicate reference descriptions.
2721 (ipa_print_node_params): Print described use counter.
2722 (ipa_write_jump_function): Adjust to jump function type changes.
2723 (ipa_read_jump_function): New parameter CS, pass it to
2724 ipa_set_jf_constant. Adjust caller.
2725 (ipa_write_node_info): Stream controlled use count
2726 (ipa_read_node_info): Likewise.
2727 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
2729 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
2730 count. Remove cloning-added reference if it reaches zero.
2731 * ipa-ref.c (ipa_find_reference): New function.
2733 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2735 * config/i386/i386.c (processor_target_table): Modified default
2736 alignment values for AMD BD and BT architectures.
2738 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
2740 * tree-vect-generic.c (uniform_vector_p): Move ...
2741 * tree.c (uniform_vector_p): ... here.
2742 * tree.h (uniform_vector_p): Declare it.
2743 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
2746 2013-05-13 Jakub Jelinek <jakub@redhat.com>
2748 PR tree-optimization/57230
2749 * tree-ssa-strlen.c (handle_char_store): Record length for
2750 array store from STRING_CST.
2752 PR tree-optimization/57230
2753 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
2756 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
2758 * config/epiphany/epiphany.c (epiphany_init): Check size of
2759 NUM_MODES_FOR_MODE_SWITCHING.
2760 (epiphany_expand_prologue):
2761 Remove CONFIG_REGNUM initial value handling code.
2762 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
2763 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
2764 (emit_set_fp_mode, epiphany_mode_after): Likewise.
2765 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
2766 Don't return 1 for FP_MODE_NONE.
2767 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
2768 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
2769 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
2770 * config/epiphany/epiphany.md (save_config): New pattern.
2772 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
2774 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
2776 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
2778 * config/i386/i386.md (memory): Handle sseishft1.
2779 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
2780 (*vec_extractv2di_1): Ditto.
2782 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
2784 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
2787 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
2789 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
2790 Add mthumb/march=armv7-a multilib.
2791 Add mthumb/march=armv7-r multilib.
2792 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
2794 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
2796 * config/v850/t-rtems: Add more multilibs.
2798 2013-05-10 Richard Biener <rguenther@suse.de>
2800 PR tree-optimization/57214
2801 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
2802 not propagate from SSA names that occur in abnormal PHI nodes.
2804 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
2806 * stor-layout.c (element_precision): New function.
2807 * machmode.h (element_precision): Declare it.
2808 * tree.c (build_minus_one_cst): New function.
2809 (element_precision): Likewise.
2810 * tree.h (build_minus_one_cst): Declare new function.
2811 (element_precision): Likewise.
2812 * fold-const.c (operand_equal_p): Use element_precision.
2813 (fold_binary_loc): Handle vector types.
2814 * convert.c (convert_to_integer): Use element_precision.
2815 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
2818 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
2820 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
2821 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
2822 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
2823 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
2824 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
2825 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
2826 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
2827 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
2828 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
2829 (Uuw8): New constraints.
2830 (Usb4): Move into alphabetical order.
2831 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
2832 (sd8_operand, ub8_operand, uw8_operand): New predicates.
2833 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
2834 previously unnamed patterns.
2835 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
2836 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
2837 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
2838 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
2839 of set_attr_alternative/if_then_else. Use extended_mips16 instead
2840 of specific lengths.
2842 2013-05-10 Jakub Jelinek <jakub@redhat.com>
2844 * config/i386/i386.md (rotateinv): New code attr.
2845 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
2846 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
2847 roll $31, %eax, etc.
2849 PR tree-optimization/45216
2850 PR tree-optimization/57157
2851 * tree-ssa-forwprop.c (simplify_rotate): New function.
2852 (ssa_forward_propagate_and_combine): Call it.
2854 2013-05-10 Richard Biener <rguenther@suse.de>
2856 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
2857 disable peeling when we version for aliasing.
2858 (vector_alignment_reachable_p): Honor explicit user alignment.
2859 (vect_supportable_dr_alignment): Likewise.
2860 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
2861 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
2862 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
2863 then peeling to arrange for the cost-model check to come first.
2865 2013-05-10 Alan Modra <amodra@gmail.com>
2867 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
2868 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
2869 * configure: Regenerate.
2871 2013-05-10 Alan Modra <amodra@gmail.com>
2874 * varasm.c (default_elf_select_section): Move !DECL_P check..
2875 (get_named_section): ..to here before calling get_section_name.
2877 (default_section_type_flags): Add DECL_P check.
2878 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
2879 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
2881 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
2883 * config/epiphany/epiphany.c (epiphany_expand_prologue):
2884 When using gen_stack_adjust_str with a register offset, add a
2885 REG_FRAME_RELATED_EXPR note.
2887 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
2889 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
2890 (*vec_extractv4si_zext_mem): Ditto.
2891 (*vec_extractv2di): Add 0->x and x->x alternatives.
2892 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
2893 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
2895 2013-05-09 Jason Merrill <jason@redhat.com>
2897 N3639 C++1y VLA support
2898 * gimplify.c (gimplify_vla_decl): Don't touch an existing
2901 * tree.c (build_constructor_va): New.
2902 * tree.h: Declare it.
2904 2013-05-09 Martin Jambor <mjambor@suse.cz>
2907 * gimple-fold.c (canonicalize_constructor_val): Call
2908 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
2910 2013-05-09 Jan Hubicka <jh@suse.cz>
2911 Richard Biener <rguenther@suse.de>
2914 * symtab.c (symtab_make_decl_local): Do not add private names.
2916 2013-05-09 Jan Hubicka <jh@suse.cz>
2919 * symtab.c (insert_to_assembler_name_hash): Handle clones.
2920 (unlink_from_assembler_name_hash): Likewise.
2921 (symtab_prevail_in_asm_name_hash, symtab_register_node,
2922 symtab_unregister_node, symtab_initialize_asm_name_hash,
2923 change_decl_assembler_name): Update.
2925 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
2927 * config/aarch64/aarch64.md: New movtf split.
2928 (*movtf_aarch64): Update.
2929 (aarch64_movdi_tilow): Handle TF modes and rename to
2930 aarch64_movdi_<mode>low.
2931 (aarch64_movdi_tihigh): Handle TF modes and rename to
2932 aarch64_movdi_<mode>high
2933 (aarch64_movtihigh_di): Handle TF modes and rename to
2934 aarch64_mov<mode>high_di
2935 (aarch64_movtilow_di): Handle TF modes and rename to
2936 aarch64_mov<mode>low_di
2937 (aarch64_movtilow_tilow): Remove spurious whitespace.
2938 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
2940 (aarch64_print_operand): Update.
2942 2013-05-09 Alan Modra <amodra@gmail.com>
2944 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
2946 * configure: Regenerate.
2948 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
2950 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
2951 splitter preparation statements.
2952 * config/i386/sse.md (*vec_extract* splitters): Ditto.
2953 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
2956 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2958 * gimple-ssa-strength-reduction.c (count_candidates): Change
2959 return value to int.
2960 (analyze_candidates_and_replace): Change type of length to int.
2962 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
2964 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
2965 (*vec_extract<mode>): Use VI12_128 mode iterator.
2966 (*vec_extract<mode>_mem): Ditto.
2967 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
2970 2013-05-08 Diego Novillo <dnovillo@google.com>
2975 2012-08-17 Diego Novillo <dnovillo@google.com>
2978 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
2979 * config.in: Regenerate.
2980 * configure: Regenerate.
2981 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
2983 2013-05-08 Jan Hubicka <jh@suse.cz>
2986 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
2987 * cgraph.h (symtab_node_base): Add unique_name.
2988 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
2989 input_overwrite_node, input_varpool_node): Stream unique_name.
2990 * cgraphclones.c (cgraph_create_virtual_clone,
2991 cgraph_function_versioning): Set unique_name.
2992 * ipa.c (function_and_variable_visibility): Set unique_name.
2994 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2996 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
2997 (alloc_cand_and_find_basis): Restrict conditional candidate
2998 processing to CAND_MULTs.
3000 2013-05-08 Jan Hubicka <jh@suse.cz>
3003 lto-symtab.c (lto_symtab_symbol_p): New function.
3004 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
3005 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
3006 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
3007 Skip static symbols.
3009 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
3011 PR tree-optimization/57200
3012 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
3013 Only call inform if the preceding warning_at returns true.
3015 2013-05-07 Han Shen <shenhan@google.com>
3017 * cfgexpand.c (record_or_union_type_has_array_p): New function.
3018 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
3019 * common.opt (fstack-protector-strong): New option.
3020 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
3021 * doc/invoke.texi (Optimization Options): Document
3022 "-fstack-protector-strong".
3023 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
3025 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
3027 * config/mips/mips.c (mips_machine_reorg2): Return 0.
3029 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
3031 * ira.c (update_equiv_regs): Add insn having equiv memory even if
3032 it is not lhs of the insn.
3033 (setup_reg_equiv): Remove insn having equiv memory which it is not
3035 * lra-constraints.c (process_address): Try to improve generation
3036 code for address base + disp.
3037 (lra_constraints): Make correct the code for checking insn setting
3038 up backward equivalence. Remove insn only if it is in the init
3040 * lra-eliminations.c (update_reg_eliminate): Change return value.
3041 (lra_eliminate): Use the result.
3043 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
3045 * config/i386/sse.md (ssescalarnummask): New mode attribute.
3046 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
3047 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
3048 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
3049 register target operands.
3050 (*vec_extractv8hi_sse2): New pattern.
3051 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
3052 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
3053 (*vec_extract<mode>_mem): New insn and split pattern.
3055 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
3057 * config/arm/arm.c (arm_asan_shadow_offset): New function.
3058 (TARGET_ASAN_SHADOW_OFFSET): Define.
3059 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
3060 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
3062 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3064 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
3065 (incr_vec_index): Return -1 if increment not found.
3066 (create_add_on_incoming_edge): Assert if increment not found.
3067 (record_increment): Limit number of increments recorded.
3068 (all_phi_incrs_profitable): Return false if an increment not found.
3069 (replace_profitable_candidates): Don't process increments that were
3071 (analyze_candidates_and_replace): Limit size of incr_vec.
3073 2013-05-07 Richard Biener <rguenther@suse.de>
3075 * calls.c (special_function_p): setjmp-like functions are leaf.
3076 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
3077 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
3079 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
3081 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
3082 (aarch64_simd_mov<mode>): New expander.
3083 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
3084 (aarch64_simd_mov_to_<mode>high): Likewise.
3085 (aarch64_simd_mov_from_<mode>low): Likewise.
3086 (aarch64_simd_mov_from_<mode>high): Likewise.
3087 (aarch64_dup_lane<mode>): Update.
3088 (aarch64_dup_lanedi): New instruction pattern.
3089 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
3090 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
3092 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3094 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
3095 (replace_mult_candidate): Remove unnecessary argument; remove
3096 unnecessary parameter from call to introduce_cast_before_cand.
3097 (replace_unconditional_candidate): Remove unnecessary parameter
3098 from call to replace_mult_candidate.
3099 (replace_conditional_candidate): Likewise.
3100 (insert_initializers): Use make_temp_ssa_name.
3101 (introduce_cast_before_cand): Remove unnecessary argument; use
3103 (replace_one_candidate): Remove unnecessary argument; remove
3104 unnecessary parameter from calls to introduce_cast_before_cand.
3105 (replace_profitable_candidates): Remove unnecessary parameters
3106 from calls to replace_one_candidate.
3108 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3110 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
3111 phi def as possibly hiding a basis for a CAND_ADD whose operands
3112 have been commuted in the analysis.
3113 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
3115 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3117 * config/aarch64/aarch64.md
3118 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
3119 shift value between 0-4.
3121 2013-05-07 Richard Biener <rguenther@suse.de>
3123 * double-int.h (rshift): New overload.
3124 * double-int.c (rshift): New function.
3125 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
3126 (create_reference_ops_from_ref): Remove.
3127 (vn_reference_insert): Use shared ops for constructing the
3128 reference and copy it.
3130 2013-05-07 Richard Biener <rguenther@suse.de>
3133 * tree-eh.c (sink_clobbers): Properly propagate
3134 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
3136 2013-05-07 Jakub Jelinek <jakub@redhat.com>
3138 PR tree-optimization/57149
3139 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
3140 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
3141 collect_phi_def_edges, execute_late_warn_uninitialized): Use
3142 uninit_undefined_value_p instead of ssa_undefined_value_p.
3145 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
3146 for modifier == EXPAND_INITIALIZER.
3148 2013-05-07 Anton Blanchard <anton@samba.org>
3150 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
3151 for powerpc64 little endian.
3152 * configure: Regenerate.
3154 2013-05-06 Graham Stott <grahams@btinternet.com>
3156 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
3157 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
3158 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
3159 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
3161 2013-05-06 Graham Stott <grahams@btinternet.com>
3163 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
3164 codes which allow non-lvalues.
3166 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
3168 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
3169 components are all 1s.
3170 (integer_minus_onep): New function.
3171 * tree.h (integer_minus_onep): Declare it.
3172 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
3173 integer_minus_onep instead of integer_all_onesp.
3175 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
3178 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
3179 variations of these patterns.
3181 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
3183 * config/i386/i386.md (isa): Add x64_sse4 member.
3184 (enabled): Handle x64_sse4.
3185 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
3186 instruction for 64bit SSE4_1 targets. Update insn attributes.
3187 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
3188 instruction for SSE4_1 targets. Update insn attributes.
3189 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
3190 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
3191 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
3193 (*vec_extractv4si): Rename from *sse4_1_pextrd.
3194 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
3195 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
3197 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
3200 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
3202 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
3204 * final.c (do_assembler_dialects): Don't handle curly braces and
3205 vertical bar escaped by % as dialect delimiters.
3206 (output_asm_insn): Print curly braces and vertical bar if escaped
3207 by % and ASSEMBLER_DIALECT defined.
3208 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
3209 * doc/tm.texi: Regenerated.
3211 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
3213 * config/mips/mips.c: Include tree-pass.h.
3214 (mips_reorg): Split in pre- and post-dbr_schedule parts.
3215 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
3216 (pass_mips_machine_reorg2): New machine specific pass.
3217 (insert_pass_mips_machine_reorg2): New pass plugin definition.
3218 (mips_option_override): Register the new pass.
3219 * rtl.h (cleanup_barriers): Remove prototype.
3220 (dbr_schedule): Likewise.
3221 * jump.c (cleanup_barriers): Make static.
3222 * reorg.c (dbr_schedule): Likewise.
3224 2013-05-06 Richard Biener <rguenther@suse.de>
3226 PR tree-optimization/57185
3227 * tree-parloops.c (add_field_for_reduction): Handle anonymous
3230 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
3233 * config/i386/i386.c (add_parameter_dependencies): Add dependence
3234 between "first_arg" and "insn", not "last" and "insn".
3236 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3238 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
3239 (find_candidates_in_block): Re-enable slsr_process_phi.
3240 (create_phi_basis): Fix double counting of candidate adjustment.
3242 2013-05-06 Richard Biener <rguenther@suse.de>
3245 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
3246 the edge is also fallthru, preserve it and just clear the
3248 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
3249 also complex, preserve that and just clear the fallthru flag.
3250 * tree-inline.c (update_ssa_across_abnormal_edges): Also
3251 update virtual operands.
3253 2013-05-06 Alan Modra <amodra@gmail.com>
3255 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
3256 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
3257 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
3258 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
3259 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
3260 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
3262 2013-05-06 Alan Modra <amodra@gmail.com>
3264 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
3265 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
3266 (DEFAULT_ASM_ENDIAN): Define.
3267 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
3268 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
3269 Update -K PIC clause from sysv4.h.
3270 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
3271 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
3273 2013-05-06 Alan Modra <amodra@gmail.com>
3275 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
3276 twice for little-endian.
3277 (ashrdi3_no_power, ashrdi3): Support little-endian.
3279 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
3282 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
3283 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
3285 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
3286 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
3287 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
3290 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
3291 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3293 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
3294 * config/pa/pa.opt: Make mbig-switch a no-op.
3295 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
3296 (CASE_VECTOR_MODE): Always return SImode.
3297 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
3298 for the !TARGET_BIG_SWITCH case.
3299 * config/pa/pa-linux.h: Likewise.
3300 * config/pa/pa-openbsd.h: Likewise.
3301 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
3302 * config/pa/pa.md (short_jump): Remove define_insn.
3303 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
3304 (casesi0): Remove define_insn.
3305 (type): Remove btable_branch.
3306 (pa_combine_type): Likewise.
3307 (in_nullified_branch_delay): Likewise.
3308 (in_call_delay): Likewise.
3309 (define_delay): Likewise.
3310 (define_insn_reservation "Z3"): Likewise.
3311 (define_insn_reservation "Z4"): Likewise.
3312 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
3313 (pa_adjust_insn_length): Remove adjustment for btable branches.
3314 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
3317 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
3319 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
3320 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
3321 Add m->r,x alternatives.
3322 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
3323 splitters using SWI48x mode iterator.
3324 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
3325 TARGET_64BIT. Add m->x alternative.
3326 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
3327 Add o->x alternative. Enable for TARGET_SSE.
3328 (sse_storeq): Remove expander.
3329 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
3330 with memory input operand.
3331 (*vec_extractv2di_1 splitter): New.
3332 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
3333 * config/i386/i386.md (ssevecmodelower): New mode attribute.
3335 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
3337 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
3338 (INT_LOWPART): Delete.
3339 (extract_MB): Adjust.
3340 (extract_ME): Adjust.
3341 (print_operand): Adjust.
3343 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
3345 * config/rs6000/predicates.md (reg_or_add_cint_operand,
3346 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
3347 (reg_or_logical_cint_operand, easy_fp_constant,
3348 logical_const_operand): Delete "CONST_DOUBLE" case.
3349 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
3350 "HOST_BITS_PER_WIDE_INT == 64" test.
3351 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
3352 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
3353 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
3354 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
3356 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
3357 CONST_DOUBLE DImode/VOIDmode case.
3358 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
3359 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
3360 CONST_DOUBLE VOIDmode case.
3361 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
3362 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
3363 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
3364 Delete CONST_DOUBLE case.
3365 (splitters for mov FMOVE64 const_double): Delete
3366 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
3367 "HOST_BITS_PER_WIDE_INT >= 64" test.
3368 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
3370 (mov DI const_double): Delete.
3372 2013-05-04 Jakub Jelinek <jakub@redhat.com>
3374 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
3375 on op shows all bits zero in mode of a lowpart subreg, return zero.
3377 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
3380 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
3381 to save TFmode registers and DImode to save TImode registers for
3382 caller save operations.
3383 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
3384 mark being partially clobbered since they only use the first
3387 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
3388 and TDmode only use the upper 64-bits of each VSX register.
3390 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3392 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
3393 (find_candidates_in_block): Disable slsr_process_phi.
3395 2013-05-03 Guozhi Wei <carrot@google.com>
3397 * coverage.c (coverage_obj_init): Move the construction of gcov
3399 (build_init_ctor): ... here.
3401 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3403 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
3404 (slsr_cand_d): Redefine def_phi.
3405 (stride_status, phi_adjust_status, count_phis_status): New enums.
3406 (find_phi_def): New.
3407 (find_basis_for_base_expr): New.
3408 (find_basis_for_candidate): Handle hidden bases.
3409 (alloc_cand_and_find_basis): Handle phi candidates.
3410 (slsr_process_phi): New.
3411 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
3412 (create_mul_imm_cand): Likewise.
3413 (create_add_ssa_cand): Exclude phi base candidates.
3414 (create_add_imm_cand): Likewise.
3415 (slsr_process_cast): Likewise.
3416 (slsr_process_copy): Likewise.
3417 (find_candidates_in_block): Handle phi candidates.
3418 (dump_candidate): Likewise.
3419 (unconditional_cands): Delete.
3420 (unconditional_cands_with_known_stride_p): Delete.
3421 (phi_dependent_cand_p): New.
3422 (cand_increment): Handle phi-dependent candidates.
3423 (replace_dependent): Delete.
3424 (replace_mult_candidate): New.
3425 (replace_unconditional_candidate): New.
3426 (incr_vec_index): Move to avoid forward reference.
3427 (create_add_on_incoming_edge): New.
3428 (create_phi_basis): New.
3429 (replace_dependents): Delete.
3430 (replace_conditional_candidate): New.
3431 (phi_add_costs): New.
3432 (replace_uncond_cands_and_profitable_phis): New.
3433 (record_increment): Handle phi adjustments.
3434 (record_phi_increments): New.
3435 (record_increments): Handle phi adjustments.
3436 (phi_incr_cost): New.
3437 (lowest_cost_path): Handle phis.
3438 (total_savings): Likewise.
3439 (analyze_increments): Likewise.
3440 (ncd_with_phi): New.
3441 (ncd_of_cand_and_phis): New.
3442 (nearest_common_dominator_for_cands): Handle phi increments.
3443 (all_phi_incrs_profitable): New.
3444 (replace_profitable_candidates): Handle phi-dependent candidates.
3445 (analyze_candidates_and_replace): Likewise.
3447 2013-05-03 Teresa Johnson <tejohnson@google.com>
3450 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
3451 do not exceed REG_BR_PROB_BASE.
3453 2013-05-03 Jeff Law <law@redhat.com>
3455 PR tree-optimization/57144
3456 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
3457 operand of the condition will bit into the new type when eliminating
3458 a cast feeding a condition.
3460 2013-05-03 Jakub Jelinek <jakub@redhat.com>
3462 PR rtl-optimization/57130
3463 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
3464 of COMPARE as in_code to the recursive call if needed.
3466 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
3468 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
3469 (enabled): Handle new members.
3470 * config/i386/sse.md (*vec_concatv2si): Merge from
3471 *vec_concatv2si_sse2 and vec_concatv2si_sse.
3472 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
3474 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
3476 PR tree-optimization/57027
3477 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
3478 for fnms opportunity, check we got the prerequisite kind
3479 of tree / gimple before using accessor functions.
3481 2013-05-03 Richard Biener <rguenther@suse.de>
3483 * double-int.h (lshift): New overload without precision
3485 (operator *=, operator +=, operator -=): Move ...
3486 * double-int.c (operator *=, operator +=, operator -=): ... here
3487 and implement more efficiently.
3488 (mul_double_with_sign): Remove.
3489 (lshift_double): Adjust to take unsinged shift argument, push
3490 dispatching code to callers.
3491 (mul_double_wide_with_sign): Add early out for callers that
3492 are not interested in high parts or overflow.
3493 (lshift): New function.
3494 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
3496 (lrotate, rrotate): Use logical shifts.
3497 * expr.c (get_inner_reference): Use lshift.
3498 * fixed-value.c (do_fixed_divide): Likewise.
3499 * tree-dfa.c (get_ref_base_and_extent): Likewise.
3500 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
3501 (indirect_refs_may_alias_p): Likewise.
3502 (stmt_kills_ref_p_1): Likewise.
3504 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
3506 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
3508 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
3510 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
3511 scalar form of FABD instruction.
3513 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
3515 * lra-constraints.c (process_alt_operands): Add checking alt
3516 number to choose the best alternative.
3518 2013-05-02 Richard Biener <rguenther@suse.de>
3520 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
3521 bitmap and its handling.
3522 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
3524 2013-05-02 Richard Biener <rguenther@suse.de>
3527 * tree-inline.c (copy_loops): Properly handle removed loops.
3528 (copy_cfg_body): Mark destination loops for fixup if source
3531 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
3534 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
3535 generating simple_return for naked functions.
3537 2013-05-02 Martin Jambor <mjambor@suse.cz>
3540 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
3541 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
3543 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
3544 ipa_agg_replacement_value structures.
3545 (known_aggs_to_agg_replacement_list): Likewise.
3546 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
3547 (read_agg_replacement_chain): Likewise.
3548 (ipcp_transform_function): Also check that by_ref flags match.
3550 2013-05-02 Richard Biener <rguenther@suse.de>
3552 * graphds.h (struct graph): Add obstack member.
3553 * graphds.c (new_graph): Initialize obstack and allocate
3555 (add_edge): Allocate edge from the obstack.
3556 (free_graph): Free the obstack instead of all edges and vertices.
3558 2013-05-02 Teresa Johnson <tejohnson@google.com>
3560 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
3562 * cfg.c (update_bb_profile_for_threading): Ditto.
3563 * tree-inline.c (copy_bb): Ditto.
3564 (copy_edges_for_bb): Ditto.
3565 (initialize_cfun): Ditto.
3566 (copy_cfg_body): Ditto.
3567 (expand_call_inline): Ditto.
3568 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
3569 (estimate_node_size_and_time): Ditto.
3570 (inline_merge_summary): Ditto.
3571 * cgraphclones.c (cgraph_clone_edge): Ditto.
3572 (cgraph_clone_node): Ditto.
3573 * sched-rgn.c (compute_dom_prob_ps): Ditto.
3574 (compute_trg_info): Ditto.
3576 2013-05-02 Ian Bolton <ian.bolton@arm.com>
3578 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
3579 S reg when fp attribute set.
3580 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
3582 2013-05-02 Ian Bolton <ian.bolton@arm.com>
3584 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
3586 (*and_one_cmplsi3_compare0_uxtw): Likewise.
3587 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
3588 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
3590 2013-05-02 Richard Biener <rguenther@suse.de>
3592 * tree-scalar-evolution.c (scev_info_hasher): Remove.
3593 (struct instantiate_cache_entry): New type.
3594 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
3595 (struct instantiate_cache_type): New type.
3596 (set_instantiated_value, get_instantiated_value): Remove.
3597 (get_instantiated_value_entry): New function.
3598 (instantiate_scev_name): Use the new cache and adjust.
3599 (instantiate_scev_poly): Adjust.
3600 (instantiate_scev_binary): Likewise.
3601 (instantiate_array_ref): Likewise.
3602 (instantiate_scev_convert): Likewise.
3603 (instantiate_scev_not): Likewise.
3604 (instantiate_scev_3): Likewise.
3605 (instantiate_scev_2): Likewise.
3606 (instantiate_scev_r): Likewise.
3607 (instantiate_scev): Likewise.
3608 (resolve_mixers): Likewise.
3610 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
3613 * lra-constraints.c (best_small_class_operands_num): Remove.
3614 (process_alt_operands): Remove small_class_operands_num. Take
3615 small classes operands into losers and only if the operand is not
3616 matched. Modify debugging output.
3617 (curr_insn_transform): Remove best_small_class_operands_num.
3620 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3622 * config/aarch64/aarch64-builtins.c
3623 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
3624 * config/aarch64/aarch64-simd-builtins.def
3625 (reduc_splus_): Add new modes.
3626 (reduc_uplus_): New.
3627 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
3628 (reduc_uplus_v4sf): Likewise.
3629 (reduc_splus_v4sf): Likewise.
3630 (aarch64_addv<mode>): Likewise.
3631 (reduc_uplus_<mode>): Likewise.
3632 (reduc_splus_<mode>): Likewise.
3633 (aarch64_addvv2di): Likewise.
3634 (reduc_uplus_v2di): Likewise.
3635 (reduc_splus_v2di): Likewise.
3636 (aarch64_addvv2si): Likewise.
3637 (reduc_uplus_v2si): Likewise.
3638 (reduc_splus_v2si): Likewise.
3639 (reduc_<sur>plus_<mode>): New.
3640 (reduc_<sur>plus_v2di): Likewise.
3641 (reduc_<sur>plus_v2si): Likewise.
3642 (reduc_<sur>plus_v4sf): Likewise.
3643 (aarch64_addpv4sf): Likewise.
3644 * config/aarch64/arm_neon.h
3645 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
3646 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
3647 add UNSPEC_SADDV, UNSPEC_UADDV.
3649 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
3651 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3653 * config/aarch64/arm_neon.h
3654 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
3656 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3658 * config/aarch64/aarch64-builtins
3659 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
3661 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3663 * config/aarch64/aarch64-simd-builtins.def
3665 (reduc_smin_): Likewise.
3666 (reduc_umax_): Likewise.
3667 (reduc_umin_): Likewise.
3668 (reduc_smax_nan_): Likewise.
3669 (reduc_smin_nan_): Likewise.
3672 (smax): Update for V2SF, V4SF and V2DF modes.
3675 (smin_nan): Likewise.
3676 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
3677 (<su><maxmin><mode>3): ...This, refactor.
3678 (s<maxmin><mode>3): New.
3679 (<maxmin_uns><mode>3): Likewise.
3680 (reduc_<maxmin_uns>_<mode>): Refactor.
3681 (reduc_<maxmin_uns>_v4sf): Likewise.
3682 (reduc_<maxmin_uns>_v2si): Likewise.
3683 (aarch64_<fmaxmin><mode>: Remove.
3684 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
3686 (vmin<q>_f<32,64>): Likewise.
3687 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
3689 (su): Add mappings for smax, smin, umax, umin.
3691 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
3692 (FMAXMIN): Rename as...
3693 (FMAXMIN_UNS): ...This.
3695 (fmaxminv): Likewise.
3696 (fmaxmin): Likewise.
3698 (maxmin_uns_op): Likewise.
3700 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3702 * config/aarch64/arm_neon.h
3703 (vac<ge, gt><sd>_f<32, 64>): Rename to...
3704 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
3705 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
3707 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3709 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
3710 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
3712 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3714 * config/aarch64/aarch64-simd.md
3715 (vcond<mode>_internal): Handle special cases for constant masks.
3716 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
3717 (vcondu<mode><mode>): Likewise.
3718 (vcond<v_cmp_result><mode>): New.
3720 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3722 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
3723 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
3724 * config/aarch64/aarch64-simd-builtins.def
3725 (cmeq): Update to BUILTIN_VALLDI.
3730 * config/aarch64/arm_neon.h
3731 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
3732 to builtins or C as appropriate.
3734 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3736 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
3738 (cmhi): Rename to...
3740 * config/aarch64/aarch64-simd.md
3741 (simd_mode): Add SF.
3742 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
3743 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
3744 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
3745 (cstore<mode>_neg): ...This.
3746 * config/aarch64/iterators.md
3748 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
3750 (UCOMPARISONS): Likewise.
3751 (optab): Add missing comparisons.
3759 (V_cmp_result): Add DF, SF modes.
3760 (v_cmp_result): Likewise.
3763 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
3765 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
3767 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
3768 define_insn to define_insn_and_split.
3769 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
3770 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
3771 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
3772 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
3773 (thumb2_negscc): Likewise.
3775 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
3777 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
3779 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
3781 * config/arm/thumb2.md: Remove trailing whitespaces.
3783 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3785 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
3786 Use gen_int_mode rather than GEN_INT.
3788 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
3790 * value-prof.c (stream_in_histogram_value): Remove the strayed
3793 2013-04-30 Richard Biener <rguenther@suse.de>
3796 * cfghooks.c (split_edge): Properly check for the loop latch edge.
3798 2013-04-30 Richard Biener <rguenther@suse.de>
3801 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
3803 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
3805 PR rtl-optimization/56957
3806 PR rtl-optimization/57105
3807 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
3808 variable. Use just INSN_UID for determining whether an insn
3809 should be only disconnected from the insn stream.
3810 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
3812 2013-04-30 Jakub Jelinek <jakub@redhat.com>
3814 PR tree-optimization/57104
3815 * tsan.c (instrument_expr): Don't instrument accesses to
3816 DECL_HARD_REGISTER VAR_DECLs.
3818 2013-04-30 Richard Biener <rguenther@suse.de>
3820 * function.h (loops_for_fn): New inline function.
3821 (set_loops_for_fn): Likewise.
3822 * cfgloop.h (place_new_loop): Add struct function parameter.
3823 (get_loop): Likewise.
3824 (get_loops): Likewise.
3825 (number_of_loops): Likewise.
3827 (fel_init): Likewise.
3828 * cfg.c (get_loop_copy): Adjust.
3829 * cfgloop.c (flow_loops_dump): Likewise.
3830 (record_loop_exits): Likewise.
3831 (verify_loop_structure): Likewise.
3832 * cfgloopanal.c (mark_irreducible_loops): Likewise.
3833 (estimate_reg_pressure_cost): Likewise.
3834 (mark_loop_exit_edges): Likewise.
3835 * cfgloopmanip.c (place_new_loop): Likewise.
3836 (add_loop): Likewise.
3837 (duplicate_loop): Likewise.
3838 * graph.c (draw_cfg_nodes): Likewise.
3839 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
3840 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
3841 (extract_affine_chrec): Likewise.
3842 (build_scop_iteration_domain): Likewise.
3843 * graphite.c (graphite_initialize): Likewise.
3844 * ira-build.c (create_loop_tree_nodes): Likewise.
3845 (more_one_region_p): Likewise.
3846 (rebuild_regno_allocno_maps): Likewise.
3847 (mark_loops_for_removal): Likewise.
3848 (mark_all_loops_for_removal): Likewise.
3849 (remove_unnecessary_regions): Likewise.
3850 (ira_build): Likewise.
3851 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
3852 * loop-init.c (fix_loop_structure): Likewise.
3853 (gate_rtl_move_loop_invariants): Likewise.
3854 (gate_rtl_unswitch): Likewise.
3855 (gate_rtl_unroll_and_peel_loops): Likewise.
3856 (rtl_doloop): Likewise.
3857 * lto-streamer-in.c (input_cfg): Likewise.
3858 * lto-streamer-out.c (output_cfg): Likewise.
3859 * modulo-sched.c (sms_schedule): Likewise.
3860 * predict.c (tree_estimate_probability): Likewise.
3861 (tree_estimate_probability_driver): Likewise.
3862 (estimate_loops): Likewise.
3863 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
3864 (move_sese_region_to_fn): Likewise.
3865 (debug_loop_num): Likewise.
3866 * tree-chrec.c (chrec_evaluate): Likewise.
3867 (hide_evolution_in_other_loops_than_loop): Likewise.
3868 (chrec_component_in_loop_num): Likewise.
3869 (reset_evolution_in_loop): Likewise.
3870 (evolution_function_is_invariant_rec_p): Likewise.
3871 * tree-if-conv.c (main_tree_if_conversion): Likewise.
3872 * tree-inline.c (copy_loops): Likewise.
3873 (copy_cfg_body): Likewise.
3874 (tree_function_versioning): Likewise.
3875 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
3876 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
3878 (add_to_evolution_1): Likewise.
3879 (scev_const_prop): Likewise.
3880 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
3881 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
3882 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
3883 (tree_ssa_lim_initialize): Likewise.
3884 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
3885 (verify_loop_closed_ssa): Likewise.
3886 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
3887 (tree_ssa_loop_im): Likewise.
3888 (tree_ssa_loop_unswitch): Likewise.
3889 (tree_vectorize): Likewise.
3890 (check_data_deps): Likewise.
3891 (tree_ssa_loop_ivcanon): Likewise.
3892 (tree_ssa_loop_bounds): Likewise.
3893 (tree_complete_unroll): Likewise.
3894 (tree_complete_unroll_inner): Likewise.
3895 (tree_parallelize_loops): Likewise.
3896 (tree_ssa_loop_prefetch): Likewise.
3897 (tree_ssa_loop_ivopts): Likewise.
3898 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
3899 * tree-vectorizer.c (vectorize_loops): Likewise.
3901 2013-04-29 Mike Frysinger <vapier@gentoo.org>
3903 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
3904 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
3905 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
3906 with EABI_LINK_SPEC.
3908 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
3911 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
3914 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
3917 * lra-constraints.c (process_alt_operands): Discourage a bit more
3918 using memory for pseudos. Print cost dump for alternatives.
3919 Modify cost values for conflicts with early clobbers.
3920 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
3922 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
3925 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
3927 2013-04-29 Ian Bolton <ian.bolton@arm.com>
3929 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
3931 (movdi_aarch64): Support LDR/STR from/to D register.
3933 2013-04-29 Ian Bolton <ian.bolton@arm.com>
3935 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
3936 or higher by default.
3938 2013-04-29 Richard Biener <rguenther@suse.de>
3941 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
3942 even if not adding abnormal edges for calls that can make
3945 2013-04-29 Richard Biener <rguenther@suse.de>
3948 * tree-cfg.c (move_stmt_op): Fix condition under which to update
3950 (move_stmt_r): Remove redundant checking.
3952 2013-04-29 Teresa Johnson <tejohnson@google.com>
3955 * basic-block.h (apply_scale): New function.
3956 (apply_probability): Use apply_scale.
3957 * gimple-streamer-in.c (input_bb): Ditto.
3958 * lto-streamer-in.c (input_cfg): Ditto.
3959 * lto-cgraph.c (merge_profile_summaries): Ditto.
3960 * tree-optimize.c (execute_fixup_cfg): Ditto.
3961 * tree-inline.c (copy_bb): Update comment to use apply_scale.
3962 (copy_edges_for_bb): Ditto.
3963 (copy_cfg_body): Ditto.
3965 2013-04-29 Tom de Vries <tom@codesourcery.com>
3967 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
3968 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
3969 (tail_merge_optimize): Handle current_loops == NULL.
3971 2013-04-26 Jeff Law <law@redhat.com>
3973 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
3974 (simplify_cond_using_ranges): Generalize code to simplify
3975 COND_EXPRs where one argument is a constant and the other
3976 is an SSA_NAME created by an integral type conversion.
3978 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3980 * config/arm/arm.md (store_minmaxsi): Use only when
3981 optimize_insn_for_size_p.
3983 2013-04-29 Christian Bruel <christian.bruel@st.com>
3986 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
3988 2013-04-29 Richard Biener <rguenther@suse.de>
3991 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
3992 loop tree make sure to schedule a fixup for the child as well.
3993 (expand_omp_for_generic): Properly add loops.
3994 (expand_omp_for_static_nochunk): Likewise.
3995 (expand_omp_for_static_chunk): Likewise.
3996 (expand_omp_for): For the degenerate case fixup loops.
3997 (expand_omp_sections): Fix default bb placement in loops.
3998 (expand_omp_atomic_pipeline): Properly add loops.
4000 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4002 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
4004 2013-04-29 Tom de Vries <tom@codesourcery.com>
4006 * tree-ssa-tail-merge.c: Update header comment.
4008 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4010 * config/aarch64/arm_neon.h
4011 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
4012 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
4013 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
4014 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
4015 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
4016 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
4017 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
4018 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
4020 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4022 * config/aarch64/aarch64-simd.md
4023 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
4024 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
4025 fix_trunc, fixuns_trunc.
4026 (ftrunc<VDQF:mode>2): New.
4027 * config/aarch64/iterators.md (optab): Add fix, fixuns.
4028 (fix_trunc_optab): New.
4030 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4032 * config/aarch64/aarch64-builtins.c
4033 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
4034 iceilf, lround, iroundf.
4036 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
4039 * config/i386/i386.h (enum ix86_tune_indices)
4040 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
4041 New, split from X86_TUNE_INTER_UNIT_MOVES.
4042 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
4043 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
4044 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
4045 (TARGET_INTER_UNIT_MOVES): Remove.
4046 * config/i386/i386.c (initial_ix86_tune_features): Update.
4047 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
4048 (ix86_expand_convert_uns_didf_sse): Use
4049 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
4050 (ix86_expand_vector_init_one_nonzero): Ditto.
4051 (ix86_expand_vector_init_interleave): Ditto.
4052 (inline_secondary_memory_needed): Return true for moves from SSE class
4053 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
4054 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
4055 * config/i386/constraints.md (Yi, Ym): Depend on
4056 TARGET_INTER_UNIT_MOVES_TO_VEC.
4057 (Yj, Yn): New constraints.
4058 * config/i386/i386.md (*movdi_internal): Change constraints of
4059 operand 1 from Yi to Yj and from Ym to Yn.
4060 (*movsi_internal): Ditto.
4061 (*movdf_internal): Ditto.
4062 (*movsf_internal): Ditto.
4063 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
4064 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
4065 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
4066 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
4067 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
4068 * config/i386/sse.md (movdi_to_sse): Ditto.
4069 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
4070 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
4071 TARGET_INTER_UNIT_MOVES.
4072 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
4073 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
4074 instead of TARGET_INTER_UNIT_MOVES.
4075 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
4076 operand 1 from Yi to Yj and from Ym to Yn.
4078 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4080 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
4081 (float_truncate_hi_): Likewise.
4082 (float_extend_lo_): Likewise.
4083 (float_truncate_lo_): Likewise.
4084 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
4085 (aarch64_float_extend_lo_v2df): Likewise.
4086 (vec_unpacks_hi_v4sf): Likewise.
4087 (aarch64_float_truncate_lo_v2sf): Likewise.
4088 (aarch64_float_truncate_hi_v4sf): Likewise.
4089 (vec_pack_trunc_v2df): Likewise.
4090 (vec_pack_trunc_df): Likewise.
4092 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4094 * config/aarch64/aarch64-builtins.c
4095 (aarch64_fold_builtin): Fold float conversions.
4096 * config/aarch64/aarch64-simd-builtins.def
4097 (floatv2si, floatv4si, floatv2di): New.
4098 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
4099 * config/aarch64/aarch64-simd.md
4100 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
4101 * config/aarch64/iterators.md (FLOATUORS): New.
4102 (optab): Add float, floatuns.
4103 (su_optab): Likewise.
4105 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4107 * config/aarch64/aarch64-builtins.c
4108 (aarch64_builtin_vectorized_function): Use new names for
4110 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
4111 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
4112 (fcvtzu): Split as...
4113 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
4114 (fcvtas): Split as...
4115 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
4116 (fcvtau): Split as...
4117 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
4118 (fcvtps): Split as...
4119 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
4120 (fcvtpu): Split as...
4121 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
4122 (fcvtms): Split as...
4123 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
4124 (fcvtmu): Split as...
4125 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
4126 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
4127 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
4128 (lfrintnusf, lfrintnudf): Likewise.
4129 * config/aarch64/aarch64-simd.md
4130 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
4132 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
4133 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
4134 (fcvt_pattern): Likewise.
4136 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4138 * config/aarch64/aarch64-simd.md
4139 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
4140 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
4142 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4144 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
4145 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
4146 (vrnd<a,m,n,p>_f32): Implement using builtins.
4147 (vrnd<i,x><q>_f<32, 64>): New.
4149 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4151 * config/aarch64/aarch64-builtins.c
4152 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
4153 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
4154 (frintz): Rename to...
4156 (frintp): Rename to...
4158 (frintm): Rename to...
4160 (frinti): Rename to...
4161 (nearbyint): ...this.
4162 (frintx): Rename to...
4164 (frinta): Rename to...
4166 * config/aarch64/aarch64-simd.md
4167 (aarch64_frint<frint_suffix><mode>): Delete.
4168 (<frint_pattern><mode>2): Convert to insn.
4169 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
4170 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
4171 (frint_pattern): Likewise.
4172 (frint_suffix): Likewise.
4174 2013-04-29 Richard Biener <rguenther@suse.de>
4176 PR tree-optimization/57081
4177 * loop-init.c: Include tree-flow.h.
4178 (loop_optimizer_finalize): Free number of iteration estimates.
4179 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
4181 2013-04-29 Jakub Jelinek <jakub@redhat.com>
4183 PR tree-optimization/57083
4184 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
4185 non-singleton shift count range, zero extend low_bound for uns case.
4187 * config/i386/predicates.md (general_vector_operand): New predicate.
4188 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
4189 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
4190 if they aren't nonimmediate operands. If their original values
4191 satisfy const_vector_equal_evenodd_p, don't shift them.
4192 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
4193 predicates. For the SSE4.1 case force operands[{1,2}] into registers
4194 if not nonimmediate_operand.
4195 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
4196 instead of register_operand.
4197 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
4199 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
4201 * stor-layout.c (finalize_size_functions): Allocate a structure and
4202 reset cfun before dumping the functions.
4204 2013-04-27 Jakub Jelinek <jakub@redhat.com>
4206 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
4209 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
4210 use xop_pmacsdqh if uns_p.
4211 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
4212 the immediate rotate count.
4214 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
4216 * rtl.h (struct rtx_def): Add comment for field jump.
4217 (LRA_SUBREG_P): New macro.
4218 * recog.c (register_operand): Check LRA_SUBREG_P.
4219 * lra.c (lra): Add note at the end of RTL code. Align non-empty
4221 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
4222 (lra_final_code_change): Skip subreg change for operators.
4223 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
4224 if there are no operand changes.
4225 * lra-constraints.c (curr_insn_set): New.
4226 (match_reload): Set LRA_SUBREG_P.
4227 (emit_spill_move): Ditto.
4228 (check_and_process_move): Use curr_insn_set. Process only single
4229 set insns. Don't initialize sec_mem_p and change_p.
4230 (simplify_operand_subreg): Use LRA_SUBREG_P.
4231 (reg_in_class_p): New function.
4232 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
4233 of #ifdef. Add code to remove cycling.
4234 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
4235 non-null disp. Reload inner instead of disp when base and index
4236 are null. Try to put lo_sum into register.
4237 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
4238 (check_and_process_move): Move code for move cost check to
4239 simple_move_p. Remove equiv_substitution.
4240 (simple_move_p): New function.
4241 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
4242 curr_insn_set. Call check_and_process_move only for single set
4243 insns. Use the new function. Move call of check_and_process_move
4244 after operand equiv substitution and address process.
4246 2013-04-26 Jakub Jelinek <jakub@redhat.com>
4249 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
4250 with nonlocal goto receivers or returns twice calls, ignore
4251 unininitialized values from abnormal edges to nl goto receiver
4252 or returns twice call.
4254 2013-04-26 Jakub Jelinek <jakub@redhat.com>
4256 PR tree-optimization/57051
4257 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
4258 and VEC_RSHIFT_EXPR if shift count is a multiple of element
4261 2013-04-26 Richard Biener <rguenther@suse.de>
4263 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
4264 (expand_omp_taskreg): Likewise. Mark loops for fixup.
4265 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
4266 (fixup_loop_arrays_after_move): New function.
4267 (move_sese_region_to_fn): Properly outline the loop tree parts
4270 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
4272 * config/i386/i386.md (type, unit): Fix long lines.
4274 2013-04-26 Richard Biener <rguenther@suse.de>
4276 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
4277 (lto-streamer-out.o): Likewise.
4278 * cfgloop.c (init_loops_structure): Export, add struct function
4279 argument and adjust.
4280 (flow_loops_find): Adjust.
4281 * cfgloop.h (enum loop_estimation): Add EST_LAST.
4282 (init_loops_structure): Declare.
4283 * lto-streamer-in.c: Include cfgloop.h.
4284 (input_cfg): Input the loop tree.
4285 * lto-streamer-out.c: Include cfgloop.h.
4286 (output_cfg): Output the loop tree.
4287 (output_struct_function_base): Do not drop PROP_loops.
4289 2013-03-26 Richard Biener <rguenther@suse.de>
4291 * tree-cfg.c (execute_build_cfg): Build the loop tree.
4292 (pass_build_cfg): Provide PROP_loops.
4293 (move_sese_region_to_fn): Remove loops that are outlined into fn
4295 * tree-inline.c: Include cfgloop.h.
4296 (initialize_cfun): Do not drop PROP_loops.
4297 (copy_loops): New function.
4298 (copy_cfg_body): Copy loop structure.
4299 (tree_function_versioning): Initialize destination loop tree.
4300 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
4301 (pass_parallelize_loops): Do IL verification.
4302 * loop-init.c (loop_optimizer_init): Fixup loops if required.
4303 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
4304 the CFG make sure we fixup loops as well.
4305 * tree-ssa-tail-merge.c: Include cfgloop.h.
4306 (replace_block_by): When merging loop latches mark loops for fixup.
4307 * lto-streamer-out.c (output_struct_function_base): Drop
4309 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
4310 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
4311 * ipa-split.c: Include cfgloop.h.
4312 (split_function): Add the new return block to the loop tree root.
4313 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
4314 whether we have removed the forwarder block.
4315 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
4316 * cfgloop.h (place_new_loop): Declare.
4317 * cfgloopmanip.c (place_new_loop): Export.
4318 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
4319 (tree-switch-conversion.o): Likewise.
4320 (tree-complex.o): Likewise.
4321 (tree-inline.o): Likewise.
4322 (tree-ssa-tailmerge.o): Likewise.
4323 (ipa-split.o): Likewise.
4324 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
4325 (tree-ssa-copy.o): Likewise.
4326 * tree-switch-conversion.c: Include cfgloop.h
4327 (process_switch): If we emit a bit-test cascade, schedule loops
4329 * tree-complex.c: Include cfgloop.h.
4330 (expand_complex_div_wide): Properly add new basic-blocks to loops.
4331 * asan.c: Include cfgloop.h.
4332 (create_cond_insert_point): Properly add new basic-blocks to
4333 loops, schedule loop fixup.
4334 * cfgloop.c (verify_loop_structure): Check that looks are not
4336 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
4338 (expand_omp_for_generic): Likewise.
4339 (expand_omp_sections): Likewise.
4340 (expand_omp_atomic_pipeline): Schedule loops for fixup.
4341 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
4342 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
4343 is initialized, not when loops are present.
4344 * tree-parloops.c (parallelize_loops): Remove checking here.
4345 * passes.c (init_optimization_passes): Schedule a copy-propagation
4346 pass before complete unrolling of inner loops.
4348 2013-04-26 Jakub Jelinek <jakub@redhat.com>
4350 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
4351 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
4352 (colorize_init): Add argument to _WIN32 version.
4353 * toplev.c: Include diagnostic-color.h.
4354 (process_options): Default to -fdiagnostics-color=auto if
4355 GCC_COLORS env var is in the environment.
4356 * common.opt (fdiagnostics-color=): Add Var and Init.
4357 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
4358 env var is in the environment, the default is auto rather than never.
4360 * diagnostic.h (file_name_as_prefix): Add context argument.
4361 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
4362 the string as locus.
4363 * langhooks.c (lhd_print_error_function): Adjust caller.
4365 2013-04-25 Lawrence Crowl <crowl@google.com>
4367 * var-tracking.c (shared_hash_def::htab):
4368 Change type to hash_table. Update dependent calls and types.
4370 2013-04-25 Lawrence Crowl <crowl@google.com>
4372 * Makefile.in: Update as needed below.
4374 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
4375 Move declaration to after the type's method definitons.
4377 * attribs.c (htab_t scoped_attributes::attribute_hash):
4378 Change type to hash_table. Update dependent calls and types.
4380 * bitmap.c (htab_t bitmap_desc_hash):
4381 Change type to hash_table. Update dependent calls and types.
4383 * cselib.c (htab_t cselib_hash_table):
4384 Change type to hash_table. Update dependent calls and types.
4386 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
4387 (hash_string_slot_node): Move implementation into lto-streamer.h
4388 struct string_slot_hasher.
4389 (eq_string_slot_node): Likewise.
4391 * data-streamer-out.c: Update output_block::string_hash_table
4392 dependent calls and types.
4394 * dwarf2cfi.c (htab_t trace_index):
4395 Change type to hash_table. Update dependent calls and types.
4397 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
4398 Change type to hash_table. Update dependent calls and types.
4399 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
4400 (htab_t optimize_external_refs::map): Likewise.
4401 (htab_t output_comp_unit::extern_map): Likewise.
4402 (htab_t output_comdat_type_unit::extern_map): Likewise.
4403 (htab_t output_macinfo::macinfo_htab): Likewise.
4404 (htab_t optimize_location_lists::htab): Likewise.
4405 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
4407 * except.c (htab_t ehspec_hash_type):
4408 Change type to hash_table. Update dependent calls and types.
4409 (assign_filter_values::ttypes): Likewise.
4410 (assign_filter_values::ehspec): Likewise.
4411 (sjlj_assign_call_site_values::ar_hash): Likewise.
4412 (convert_to_eh_region_ranges::ar_hash): Likewise.
4414 * gcse.c (htab_t pre_ldst_table):
4415 Change type to hash_table. Update dependent calls and types.
4417 * ggc-common.c (htab_t saving_htab):
4418 Change type to hash_table. Update dependent calls and types.
4419 (htab_t loc_hash): Likewise.
4420 (htab_t ptr_hash): Likewise.
4421 (call_count): Rename ggc_call_count.
4422 (call_alloc): Rename ggc_call_alloc.
4423 (loc_descriptor): Rename make_loc_descriptor.
4424 (add_statistics): Rename ggc_add_statistics.
4426 * ggc-common.c (saving_htab):
4427 Change type to hash_table. Update dependent calls and types.
4429 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
4430 (push_gimplify_context): Likewise.
4431 (pop_gimplify_context): Likewise.
4432 (struct gimple_temp_hash_elt): Added.
4433 (struct gimplify_hasher): Likewise.
4434 (struct gimplify_ctx.temp_htab):
4435 Change type to hash_table. Update dependent calls and types.
4437 * gimple-fold.c: Include gimplify-ctx.h.
4439 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
4440 Change type to hash_table. Update dependent calls and types.
4441 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
4442 avoid potential global name collision.
4444 * gimplify.c: Include gimplify-ctx.h.
4445 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
4446 (htab_t gimplify_ctx::temp_htab):
4447 Update dependent calls and types for new type hash_table.
4448 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
4449 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
4451 * gimplify-ctx.h: New.
4452 (struct gimple_temp_hash_elt): Move from gimplify.c.
4453 (class gimplify_hasher): New.
4454 (struct gimplify_ctx): Move from gimple.h.
4455 (htab_t gimplify_ctx::temp_htab):
4456 Change type to hash_table. Update dependent calls and types.
4458 * graphite-clast-to-gimple.c: Include graphite-htab.h.
4459 (htab_t ivs_params::newivs_index):
4460 Change type to hash_table. Update dependent calls and types.
4461 (htab_t ivs_params::params_index): Likewise.
4462 (htab_t print_generated_program::params_index): Likewise.
4463 (htab_t gloog::newivs_index): Likewise.
4464 (htab_t gloog::params_index): Likewise.
4466 * graphite.c: Include graphite-htab.h.
4467 4htab_t graphite_transform_loops::bb_pbb_mapping):
4468 Change type to hash_table. Update dependent calls and types.
4470 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
4471 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
4472 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
4474 * graphite-dependences.c: Include graphite-htab.h.
4475 (loop_is_parallel_p): Change hash table type of parameter.
4477 * graphite-htab.h: New.
4478 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
4479 (extern find_pbb_via_hash): Move from graphite-poly.h.
4480 (extern loop_is_parallel_p): Move from graphite-poly.h.
4481 (extern get_loop_body_pbbs): Move from graphite-poly.h.
4483 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
4484 (extern loop_is_parallel_p): Move to graphite-htab.h.
4485 (extern get_loop_body_pbbs): Move to graphite-htab.h.
4487 * haifa-sched.c (htab_t delay_htab):
4488 Change type to hash_table. Update dependent calls and types.
4489 (htab_t delay_htab_i2): Likewise.
4491 * ira-color.c (htab_t allocno_hard_regs_htab):
4492 Change type to hash_table. Update dependent calls and types.
4494 * ira-costs.c (htab_t cost_classes_htab):
4495 Change type to hash_table. Update dependent calls and types.
4497 * loop-invariant.c (htab_t merge_identical_invariants::eq):
4498 Change type to hash_table. Update dependent calls and types.
4500 * loop-iv.c (htab_t bivs):
4501 Change type to hash_table. Update dependent calls and types.
4503 * loop-unroll.c (htab_t opt_info::insns_to_split):
4504 Change type to hash_table. Update dependent calls and types.
4505 (htab_t opt_info::insns_with_var_to_expand): Likewise.
4507 * lto-streamer.h (struct string_slot): Move from data-streamer.h
4508 (struct string_slot_hasher): New.
4509 (htab_t output_block::string_hash_table):
4510 Change type to hash_table. Update dependent calls and types.
4512 * lto-streamer-in.c (freeing_string_slot_hasher): New.
4513 (htab_t file_name_hash_table):
4514 Change type to hash_table. Update dependent calls and types.
4516 * lto-streamer-out.c: Update output_block::string_hash_table dependent
4519 * lto-streamer.c (htab_t tree_htab):
4520 Change type to hash_table. Update dependent calls and types.
4522 * omp-low.c: Include gimplify-ctx.h.
4524 * passes.c (htab_t name_to_pass_map):
4525 Change type to hash_table. Update dependent calls and types.
4526 (pass_traverse): Rename to passes_pass_traverse.
4528 * plugin.c (htab_t event_tab):
4529 Change type to hash_table. Update dependent calls and types.
4531 * postreload-gcse.c (htab_t expr_table):
4532 Change type to hash_table. Update dependent calls and types.
4533 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
4535 * sese.c (debug_rename_map_1): Make extern.
4536 (htab_t copy_bb_and_scalar_dependences::rename_map):
4537 Change type to hash_table. Update dependent calls and types.
4539 * sese.h (extern debug_rename_map): Move to .c file.
4541 * store-motion.c (htab_t store_motion_mems_table):
4542 Change type to hash_table. Update dependent calls and types.
4544 * trans-mem.c (htab_t tm_new_mem_hash):
4545 Change type to hash_table. Update dependent calls and types.
4547 * tree-browser.c (htab_t TB_up_ht):
4548 Change type to hash_table. Update dependent calls and types.
4550 * tree-cfg.c (htab_t discriminator_per_locus):
4551 Change type to hash_table. Update dependent calls and types.
4553 * tree-complex.c: Include tree-hasher.h
4554 (htab_t complex_variable_components):
4555 Change type to hash_table. Update dependent calls and types.
4557 * tree-eh.c (htab_t finally_tree):
4558 Change type to hash_table. Update dependent calls and types.
4560 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
4561 struct int_tree_hasher.
4562 (extern int_tree_map_eq): Likewise.
4563 (uid_decl_map_hash): Removed.
4564 (extern decl_tree_map_eq): Likewise.
4566 * tree-hasher.h: New.
4567 (struct int_tree_hasher): New.
4568 (typedef int_tree_htab_type): New.
4570 * tree-inline.c: Include gimplify-ctx.h.
4572 * tree-mudflap.c: Include gimplify-ctx.h.
4574 * tree-parloops.c: Include tree-hasher.h.
4575 (htab_t eliminate_local_variables_stmt::decl_address):
4576 Change type to hash_table. Update dependent calls and types.
4577 (htab_t separate_decls_in_region::decl_copies): Likewise.
4579 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
4580 Change type to hash_table. Update dependent calls and types.
4582 * tree-sra.c (candidates):
4583 Change type to hash_table. Update dependent calls and types.
4585 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
4587 (int_tree_map_hash): Likewise.
4589 * tree-ssa-dom.c (htab_t avail_exprs):
4590 Change type to hash_table. Update dependent calls and types.
4592 * tree-ssa-live.c (var_map_base_init::tree_to_index):
4593 Change type to hash_table. Update dependent calls and types.
4595 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
4596 Change type to hash_table. Update dependent calls and types.
4598 * tree-ssa-phiopt.c (seen_ssa_names):
4599 Change type to hash_table. Update dependent calls and types.
4601 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
4602 Change type to hash_table. Update dependent calls and types.
4604 * tree-ssa-uncprop.c (equiv):
4605 Change type to hash_table. Update dependent calls and types.
4607 2013-04-25 Jakub Jelinek <jakub@redhat.com>
4609 PR rtl-optimization/57003
4610 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
4611 call note_stores with kill_clobbered_value callback again after
4612 killing regs_invalidated_by_call.
4614 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
4616 * config/aarch64/aarch64-simd.md
4617 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
4618 (aarch64_simd_bsl<mode>): Likewise.
4619 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
4621 2013-04-25 Marek Polacek <polacek@redhat.com>
4623 PR tree-optimization/57066
4624 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
4626 2013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
4628 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
4630 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
4632 * config/aarch64/aarch64-builtins.c
4633 (aarch64_fold_builtin): New.
4634 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
4635 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
4636 * config/aarch64/aarch64-simd-builtins.def (abs): New.
4637 * config/aarch64/arm_neon.h
4638 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
4640 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
4641 Tejas Belagod <tejas.belagod@arm.com>
4643 * config/aarch64/aarch64-builtins.c
4644 (aarch64_gimple_fold_builtin): New.
4645 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
4646 * config/aarch64/aarch64-simd-builtins.def (addv): New.
4647 * config/aarch64/aarch64-simd.md (addpv4sf): New.
4649 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
4651 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4653 * config/aarch64/aarch64.md
4654 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
4656 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4658 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
4659 (*ngcsi_uxtw): New pattern.
4661 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4662 Julian Brown <julian@codesourcery.com>
4664 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
4665 (TB_DREG): Add T_V4HF.
4666 (v4hf_UP): New macro.
4667 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
4668 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
4669 Handle initialisation of V4HF. Adjust initialisation of reinterpret
4671 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
4672 (arm_vector_mode_supported_p): Handle V4HF.
4673 (arm_mangle_map): Handle V4HFmode.
4674 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
4675 * config/arm/arm_neon_builtins.def: Add entries for
4676 vcvtv4hfv4sf, vcvtv4sfv4hf.
4677 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
4678 (neon_vcvtv4hfv4sf): Likewise.
4679 * config/arm/neon-gen.ml: Handle half-precision floating point
4681 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
4682 * config/arm/arm_neon.h: Regenerate.
4683 * config/arm/neon.ml (type elts): Add F16.
4684 (type vectype): Add T_float16x4, T_floatHF.
4685 (type vecmode): Add V4HF.
4686 (type features): Add Requires_FP_bit feature.
4687 (elt_width): Handle F16.
4688 (elt_class): Likewise.
4689 (elt_of_class_width): Likewise.
4690 (mode_of_elt): Refactor.
4691 (type_for_elt): Handle F16, fix error messages.
4692 (vectype_size): Handle T_float16x4.
4693 (vcvt_sh): New function.
4694 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
4695 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
4696 (string_of_mode): Handle V4HF.
4697 * doc/arm-neon-intrinsics.texi: Regenerate.
4699 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
4701 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
4702 format specifier in 'X' case.
4704 2013-04-25 Alan Modra <amodra@gmail.com>
4707 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
4708 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
4709 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
4710 Repeat for many other rotate/shift and mask patterns using subregs.
4711 Name lshiftrt insns.
4712 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
4713 on WORDS_BIG_ENDIAN.
4715 2013-04-25 Alan Modra <amodra@gmail.com>
4717 * config.gcc: Support little-endian powerpc-linux targets.
4718 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
4719 (LINK_OS_LINUX_SPEC): Define.
4720 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
4721 Preserve MASK_LITTLE_ENDIAN.
4722 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
4723 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
4724 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
4725 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
4726 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
4727 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
4728 Correct fp word order for little-endian. Don't shift toc entries
4729 smaller than a word for little-endian.
4730 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
4731 (bswapdi2 splits): Correct low-part subreg for little-endian.
4732 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
4733 low/high where such is correct only for be.
4734 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
4735 little-endian for -mcall-aixdesc.
4737 2013-04-25 Alan Modra <amodra@gmail.com>
4739 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
4740 replace_equiv_address_nv.
4742 2013-04-25 Alan Modra <amodra@gmail.com>
4744 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
4746 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4749 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4750 * rtl.h (struct rtx_def): ...
4752 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4754 PR rtl-optimizations/57046
4755 * lra-constraints (split_reg): Set up lra_risky_transformations_p
4756 for multi-reg splits.
4758 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
4760 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
4762 2013-04-24 Sterling Augustine <saugustine@google.com>
4764 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
4765 (comp_dir_string, debug_str_dwo_section): New.
4766 (DEBUG_STR_DWO_SECTION): Rename to ...
4767 (DEBUG_DWO_STR_SECTION): ... this.
4768 (DEBUG_NORM_STR_SECTION): Delete.
4769 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
4770 (DEBUG_STR_DWO_SECTION_FLAGS): New.
4771 (find_AT_string): Move most logic to ...
4772 (find_AT_string_in_table): ... here. New.
4773 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
4774 add_skeleton_AT_string. Delete logic.
4775 (output_skeleton_debug_sections): Remove call to
4776 add_top_level_skeleton_die_attrs.
4777 (add_comp_dir_attribute): Move logic to comp_dir_string.
4778 (dwarf2out_init): Initialize debug_str_dwo_section.
4779 (output_indirect_string): Call find_string_form.
4780 (output_indirect_strings): Rewrite.
4781 (prune_unused_types): Empty skeleton_debug_str_hash.
4782 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
4783 (dwarf2out_finish): Call output_indirect_strings.
4785 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4787 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
4789 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4791 * rtl.h (struct rtx_def): Add comment for field jump.
4792 (LRA_SUBREG_P): New macro.
4793 * recog.c (register_operand): Check LRA_SUBREG_P.
4794 * lra.c (lra): Add note at the end of RTL code. Align non-empty
4796 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
4797 (lra_final_code_change): Skip subreg change for operators.
4798 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
4799 if there are no operand changes.
4800 * lra-constraints.c (curr_insn_set): New.
4801 (match_reload): Set LRA_SUBREG_P.
4802 (emit_spill_move): Ditto.
4803 (check_and_process_move): Use curr_insn_set. Process only single
4804 set insns. Don't initialize sec_mem_p and change_p.
4805 (simplify_operand_subreg): Use LRA_SUBREG_P.
4806 (reg_in_class_p): New function.
4807 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
4808 of #ifdef. Add code to remove cycling.
4809 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
4810 non-null disp. Reload inner instead of disp when base and index
4811 are null. Try to put lo_sum into register.
4812 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
4813 (check_and_process_move): Move code for move cost check to
4814 simple_move_p. Remove equiv_substitution.
4815 (simple_move_p): New function.
4816 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
4817 curr_insn_set. Call check_and_process_move only for single set
4818 insns. Use the new function. Move call of check_and_process_move
4819 after operand equiv substitution and address process.
4821 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
4823 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
4824 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
4825 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
4827 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4829 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
4831 2013-04-24 Marek Polacek <polacek@redhat.com>
4833 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
4834 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
4835 (select_loops_exit_conditions): Likewise.
4836 (number_of_iterations_for_all_loops): Likewise.
4837 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
4838 (scev_analysis): Likewise.
4840 2013-04-02 Catherine Moore <clm@codesourcery.com>
4841 Chao-ying Fu <fu@mips.com>
4843 * config/mips/micromips.md (jraddiusp): New pattern.
4844 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
4845 instruction if possible.
4847 2013-04-24 Alan Modra <amodra@gmail.com>
4849 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
4851 2013-04-24 Julian Brown <julian@codesourcery.com>
4852 Chung-Lin Tang <cltang@codesourcery.com>
4854 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
4855 dependency behavior in enumeration type DIE generation. Add TODO note
4856 to comments about future DW_FORM_sdata/udata re-work of related code.
4858 2013-04-23 Lawrence Crowl <crowl@google.com>
4860 * Makefile.in: Update as needed below.
4862 * hash-table.h (class hash_table):
4863 Correct many methods with parameter types compare_type to the correct
4864 value_type. (Correct code was unlikely to notice the change.)
4865 (hash_table::elements_with_deleted) New.
4866 (class hashtable::iterator): New.
4867 (hashtable::begin()): New.
4868 (hashtable::end()): New.
4869 (FOR_EACH_HASH_TABLE_ELEMENT): New.
4871 * statistics.c (statistics_hashes):
4872 Change type to hash_table. Update dependent calls and types.
4874 * tree-into-ssa.c (var_infos):
4875 Change type to hash_table. Update dependent calls and types.
4877 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
4878 Change type to hash_table. Update dependent calls and types.
4880 * tree-ssa-loop-im.c (struct mem_ref.refs):
4881 Change type to hash_table. Update dependent calls and types.
4883 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
4884 Change type to hash_table. Update dependent calls and types.
4886 * tree-ssa-sccvn.c (vn_tables_s::nary):
4887 Change type to hash_table. Update dependent calls and types.
4888 (vn_tables_s::phis): Likewise.
4889 (vn_tables_s::references): Likewise.
4891 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
4892 (vn_reference_eq): Update parameter and return types.
4894 * tree-ssa-structalias.c (pointer_equiv_class_table):
4895 Change type to hash_table. Update dependent calls and types.
4896 (location_equiv_class_table): Likewise.
4898 * tree-vect-data-refs.c: Consequential changes for making
4899 peeling a hash_table.
4901 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
4902 (destroy_loop_vec_info): Dependent hash_table update.
4904 * tree-vectorizer.h (peeling_htab):
4905 Change type to hash_table. Update dependent calls and types.
4907 2013-04-23 Shiva Chen <shiva0217@gmail.com>
4909 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
4910 to check the register content is equal or not.
4911 * lra-constraints.c (match_reload): Use lra_assign_reg_val
4912 to assign register content record.
4913 * lra-eliminations.c (update_reg_eliminate): Use
4914 lra_update_reg_val_offset to update register content offset.
4915 * lra-int.h (struct lra_reg): Add offset member.
4916 (lra_reg_val_equal_p): New static inline function.
4917 (lra_update_reg_val_offset): New static inline function.
4918 (lra_assign_reg_val): New static inline function.
4919 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
4920 to assign register content record.
4921 (initialize_lra_reg_info_element): Initial offset to zero.
4923 2013-04-23 Catherine Moore <clm@codesourcery.com>
4925 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
4926 operands. Record compression.
4928 2013-04-23 Xinliang David Li <davidxl@google.com>
4930 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
4932 2013-04-23 Richard Biener <rguenther@suse.de>
4935 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
4936 parameter, only add abnormal goto edges from the copied body
4937 if the call could perform abnormal gotos.
4938 (copy_cfg_body): Adjust.
4940 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
4942 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
4944 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
4946 * coretypes.h (gimple_stmt_iterator): Add struct to make
4949 2013-04-23 Richard Biener <rguenther@suse.de>
4951 PR tree-optimization/57026
4952 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
4953 from SSA names occuring in abnormal PHI nodes.
4955 2013-04-22 Andi Kleen <ak@linux.intel.com>
4957 * lto/lto.c (print_lto_report_1): Fix LTO report names.
4959 2013-04-22 Andi Kleen <ak@linux.intel.com>
4961 * lto/lto.c (print_lto_report_1): Declare early.
4962 (read_cgraph_and_symbols): Call print_lto_report_1 early.
4964 2013-04-22 Andi Kleen <ak@linux.intel.com>
4966 * common.opt (-flto-report-wpa): Add.
4967 * doc/invoke.texi (-flto-report-wpa): Add.
4968 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
4971 2013-04-22 Xinliang David Li <davidxl@google.com>
4973 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
4974 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
4975 * Makefile.in: New dependency
4977 David Daney <ddaney.cavm@gmail.com>
4979 * configure.ac (gcc_cv_as_micromips_support): Use the
4980 --fatal-warnings option.
4981 * configure: Regenerate.
4983 2013-04-22 Marek Polacek <polacek@redhat.com>
4986 * tsan.c (instrument_expr): Don't instrument expression
4987 in case its size is zero.
4989 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
4993 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
4995 * config/alpha/alpha.c (TARGET_LRA_P): New define.
4997 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4999 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
5000 (gimple_stmt_iterator): New typedef.
5001 * gimple.h (gimple_stmt_iterator): Rename to...
5002 (gimple_stmt_iterator_d): ... This.
5003 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
5004 trees be valid for GIMPLE and GENERIC.
5005 (TARGET_GIMPLE_FOLD_BUILTIN): New.
5006 * gimple-fold.c (gimple_fold_call): Call target hook
5007 gimple_fold_builtin.
5008 * hooks.c (hook_bool_gsiptr_false): New.
5009 * hooks.h (hook_bool_gsiptr_false): New.
5010 * target.def (fold_stmt): New.
5011 * doc/tm.texi: Regenerate.
5013 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
5016 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
5017 a set sp if no stack realignment.
5019 2013-04-22 Nick Clifton <nickc@redhat.com>
5021 * config.gcc (tilegx-linux): Extend extra_objs rather than
5023 (tilepro-linux): Likewise.
5025 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
5027 * config/aarch64/aarch64-builtins.c
5029 (CF0, CF1, CF2, CF3, CF4, CF10): New.
5030 (VAR<1-12>): Add MAP parameter.
5031 (BUILTIN_*): Likewise.
5032 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
5033 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
5034 (aarch64_ushl_n<mode>): Likewise.
5035 (aarch64_sshr_n<mode>): Likewise.
5036 (aarch64_ushr_n<mode>): Likewise.
5037 (aarch64_<maxmin><mode>): Likewise.
5038 (aarch64_sqrt<mode>): Likewise.
5039 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
5040 (vshr<q>_n_*): Likewise.
5042 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
5044 * config/aarch64/aarch64-builtins.c
5045 (aarch64_simd_builtin_type_mode): Handle SF types.
5047 (BUILTIN_GPF): Define.
5048 (aarch64_init_simd_builtins): Handle SF types.
5049 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
5052 * config/aarch64/aarch64-simd.md
5053 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
5054 (aarch64_frecpe<mode>): New.
5055 (aarch64_frecps<mode>): Likewise.
5056 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
5057 (v8type): Add frecp<esx>.
5058 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
5059 (aarch64_frecps<mode>): Likewise.
5060 * config/aarch64/iterators.md (FRECP): New.
5061 (frecp_suffix): Likewise.
5062 * config/aarch64/arm_neon.h
5063 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
5065 2013-04-22 Christian Bruel <christian.bruel@st.com>
5068 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
5069 (REG_CLASS_NAMES): Idem.
5070 (REG_CLASS_CONTENTS): Idem.
5071 (REGCLASS_HAS_FP_REG): Idem.
5072 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
5073 (sh_conditional_register_usage): Idem.
5075 2013-04-21 Jeff Law <law@redhat.com>
5077 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
5078 (ssa_forward_propagate_and_combine): Use it.
5080 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
5082 * lra.c: Update the flow chart diagram.
5084 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
5086 PR rtl-optimization/56847
5087 * lra-constraints.c (process_alt_operands): Discourage alternative
5088 with non-matche doffsettable memory constraint fro memory with
5091 2013-04-19 Richard Biener <rguenther@suse.de>
5093 PR tree-optimization/56982
5094 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
5096 * gimplify.c (gimplify_call_expr): Notice special calls.
5097 (gimplify_modify_expr): Likewise.
5098 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
5099 abnormal control flow receivers.
5100 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
5101 in the same way as cfun->has_nonlocal_labels.
5102 (gimple_purge_dead_abnormal_call_edges): Likewise.
5103 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
5104 receivers start a basic-block.
5106 2013-04-19 Richard Biener <rguenther@suse.de>
5108 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
5110 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
5111 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
5112 (SLP_TREE_LOAD_PERMUTATION): Add.
5113 (vect_transform_slp_perm_load): Adjust prototype.
5114 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
5115 (vect_free_slp_instance): Likewise.
5116 (vect_create_new_slp_node): Likewise.
5117 (vect_supported_slp_permutation_p): Remove.
5118 (vect_slp_rearrange_stmts): Adjust.
5119 (vect_supported_load_permutation_p): Likewise. Inline
5120 vect_supported_slp_permutation_p here.
5121 (vect_analyze_slp_instance): Compute load permutations per
5122 slp node instead of per instance.
5123 (vect_get_slp_defs): Adjust.
5124 (vect_transform_slp_perm_load): Likewise.
5125 (vect_schedule_slp_instance): Remove redundant code.
5126 (vect_schedule_slp): Remove hack for PR56270, add it ...
5127 * tree-vect-stmts.c (vectorizable_load): ... here, do not
5128 CSE loads for SLP. Adjust.
5130 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
5132 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
5133 spelling in two comments.
5135 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
5138 * config/arm/arm.c (load_multiple_sequence): Require SP
5139 as base register for loads if SP is in the register list.
5141 2013-04-19 Martin Jambor <mjambor@suse.cz>
5143 PR tree-optimization/56718
5144 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
5145 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
5146 and made public. Adjusted all callers.
5147 (ipa_intraprocedural_devirtualization): New function.
5148 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
5149 (ipa_intraprocedural_devirtualization): Likewise.
5150 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
5152 2013-04-19 Richard Biener <rguenther@suse.de>
5154 PR tree-optimization/57000
5155 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
5157 2013-04-19 Terry Guo <terry.guo@arm.com>
5159 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
5161 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
5162 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
5163 (cortex_m4_fmacs): Use new reservations.
5164 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
5166 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
5168 PR rtl-optimization/56999
5169 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
5171 (lra_coalesce): Remove split_origin_bitmap and related code.
5172 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
5173 ranges if necessary.
5175 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
5177 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
5179 (ix86_expand_call): Remove clobbered_registers array and use
5180 x86_64_ms_sysv_extra_clobbered_registers instead.
5181 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
5183 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
5185 * config/i386/i386.md (*call_rex64_ms_sysv): Use
5186 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
5187 (*call_value_rex64_ms_sysv): Ditto.
5189 2013-04-18 Cary Coutant <ccoutant@google.com>
5191 * dwarf2out.c (output_pubnames): Check die_perennial_p of
5192 parent instead of die_mark.
5194 2013-04-18 Diego Novillo <dnovillo@google.com>
5196 * gimple.c (create_gimple_tmp): New.
5197 (get_expr_type): New.
5198 (build_assign): New.
5199 (build_type_cast): New.
5200 * gimple.h (enum ssa_mode): Define.
5201 (gimple_seq_set_location): New.
5202 * asan.c (build_check_stmt): Change some gimple_build_* calls
5203 to use build_assign and build_type_cast.
5205 2013-04-18 Richard Biener <rguenther@suse.de>
5207 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
5208 handle negative step. Remove redundant checks.
5209 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
5210 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
5211 for negative step and grouped loads fail to vectorize.
5213 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
5215 * emit-rtl.c (reset_insn_used_flags): New function.
5216 (reset_all_used_flags): Use it.
5217 (verify_insn_sharing): New function.
5218 (verify_rtl_sharing): Fix verification for SEQUENCEs.
5220 2013-04-18 Jakub Jelinek <jakub@redhat.com>
5222 PR tree-optimization/56984
5223 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
5224 and (x >> M) >= N don't register any assertion if N << M is the
5227 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
5229 * lower-subreg.c (resolve_simple_move): If called self-recursive,
5230 do not delete_insn insns that have not yet been emitted, only
5231 unlink them with remove_insn.
5232 * df-scan.c (df_insn_delete): Revert r197492.
5234 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
5236 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
5237 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
5239 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
5241 * config/arm/arm.md (movsicc_insn): Convert define_insn into
5242 define_insn_and_split.
5243 (and_scc,ior_scc,negscc): Likewise.
5244 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
5246 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
5248 * config/arm/arm.c (use_return_insn): Return 0 for targets that
5249 can benefit from using a sequence of LDRD instructions in epilogue
5250 instead of a single LDM instruction.
5252 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
5255 * doc/extend.texi: Fix typo.
5257 2013-04-17 Richard Biener <rguenther@suse.de>
5259 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
5260 (vect_build_slp_tree): ... here.
5261 (vect_build_slp_tree_1): Compute which stmts of the SLP group
5262 match. Remove special-casing of mismatched complex loads.
5263 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
5264 re-try the match with swapped commutative operands.
5265 (vect_supported_load_permutation_p): Remove special-casing of
5266 mismatched complex loads.
5267 (vect_analyze_slp_instance): Adjust.
5269 2013-04-17 Richard Biener <rguenther@suse.de>
5271 PR rtl-optimization/56921
5272 * cfgloop.h (struct loop): Add simple_loop_desc member.
5273 (struct niter_desc): Mark with GTY(()).
5274 (simple_loop_desc): Do not use aux field but simple_loop_desc.
5275 * loop-iv.c (get_simple_loop_desc): Likewise.
5276 (free_simple_loop_desc): Likewise.
5279 2013-04-16 Richard Biener <rguenther@suse.de>
5281 PR rtl-optimization/56921
5282 * loop-init.c (pass_rtl_move_loop_invariants): Add
5283 TODO_do_not_ggc_collect to todo_flags_finish.
5284 (pass_rtl_unswitch): Same.
5285 (pass_rtl_unroll_and_peel_loops): Same.
5286 (pass_rtl_doloop): Same.
5288 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
5290 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
5291 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
5292 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
5294 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
5295 * tree-streamer.c (record_common_node): Adjust reference in comment.
5297 2013-04-17 Terry Guo <terry.guo@arm.com>
5299 * config/arm/cortex-m4.md: Add a new bypass.
5301 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5303 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
5305 (*subs_<optab><mode>_multp2): New pattern.
5306 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
5307 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
5309 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5311 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
5312 (*subs_mul_imm_<mode>): New pattern.
5314 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
5317 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
5318 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
5319 (vsx_movti_32bit): Change j->wa to O->wa.
5321 2013-04-16 Richard Biener <rguenther@suse.de>
5323 PR rtl-optimization/56921
5324 * loop-init.c (pass_rtl_move_loop_invariants): Add
5325 TODO_do_not_ggc_collect to todo_flags_finish.
5326 (pass_rtl_unswitch): Same.
5327 (pass_rtl_unroll_and_peel_loops): Same.
5328 (pass_rtl_doloop): Same.
5330 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
5332 * config/arm/arm.c (emit_multi_reg_push): New declaration
5333 for an existing function.
5334 (arm_emit_strd_push): New function.
5335 (arm_expand_prologue): Used here.
5336 (arm_emit_ldrd_pop): New function.
5337 (arm_expand_epilogue): Used here.
5338 (arm_get_frame_offsets): Update condition.
5339 (arm_emit_multi_reg_pop): Add a special case for load of a single
5340 register with writeback.
5342 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
5344 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
5347 2013-04-16 Richard Biener <rguenther@suse.de>
5349 PR tree-optimization/56756
5350 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
5351 (first_mem_ref_loc): New.
5352 (execute_sm): Place the load temporarily before a previous
5353 access instead of in the latch edge to ensure its SSA dependencies
5354 are defined at points dominating the load.
5356 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
5358 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
5359 correct fix by moving header and footer insn to the footer of
5360 the merged basic block. Clear BB_END of the merged-away block.
5363 * emit-rtl.c (make_note_raw): New function.
5364 (link_insn_into_chain): New static inline function.
5366 (add_insn_before, add_insn_after): Factor insn chain linking code...
5367 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
5368 using link_insn_into_chain.
5369 (note_outside_basic_block_p): New helper function for emit_note_after
5370 and emit_note_before.
5371 (emit_note_after): Use nobb variant of add_insn_after if the note
5372 should not be contained in a basic block.
5373 (emit_note_before): Use nobb variant of add_insn_before if the note
5374 should not be contained in a basic block.
5375 (emit_note_copy): Use make_note_raw.
5376 (emit_note): Likewise.
5377 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
5378 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
5379 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
5380 the moved barrier the tail of the basic block it follows.
5381 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
5383 2013-04-15 Jakub Jelinek <jakub@redhat.com>
5385 PR tree-optimization/56962
5386 * gimple-ssa-strength-reduction.c (record_increment): Only set
5387 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
5388 either rhs1 or rhs2 is equal to c->base_expr.
5390 2013-04-15 Richard Biener <rguenther@suse.de>
5392 PR tree-optimization/56933
5393 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
5395 (GROUP_READ_WRITE_DEPENDENCE): Remove.
5396 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
5397 * tree-vect-data-refs.c (vect_analyze_group_access): Move
5398 dependence check ...
5399 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
5401 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
5402 GROUP_READ_WRITE_DEPENDENCE.
5404 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5406 * emit-rtl.c (reset_all_used_flags): New function.
5407 (verify_rtl_sharing): Call reset_all_used_flags before and after
5408 performing the checks.
5410 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5412 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
5413 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
5414 * config/arm/constraints.md (De): New constraint.
5415 * config/arm/neon.md (anddi3_neon): Delete.
5416 (neon_vand<mode>): Expand to standard anddi3 pattern.
5417 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
5418 Move earlier in the file.
5419 (neon_inv_logic_op2): Likewise.
5420 (arm_anddi_operand_neon): New predicate.
5422 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5424 * configure.ac (gcc_cv_ld_as_needed): Set
5425 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
5426 Use -z ignore, -z record on *-*-solaris2*.
5427 (HAVE_LD_AS_NEEDED): Update comment.
5428 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
5429 * configure: Regenerate.
5430 * config.in: Regenerate.
5431 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
5432 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
5433 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
5434 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
5435 equivalents. Fix markup.
5436 * doc/tm.texi: Regenerate.
5438 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
5440 * config/i386/i386.opt: New option mstack-protector-guard=.
5441 * config/i386/i386-opts.h: Add enum stack_protector_guard.
5442 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
5443 TARGET_SSP_TLS_GUARD.
5444 * config/i386/i386.c (ix86_option_override_internal): Set
5445 ix86_stack_protector_guard.
5446 * config/i386/i386.md (stack_protect_set): Enable for
5447 TARGET_SSP_TLS_GUARD only.
5448 (stack_protect_set_<mode>): Ditto.
5449 (stack_protect_test): Ditto.
5450 (stack_protect_test_<mode>): Ditto.
5451 * doc/invoke.texi (i386 Option): Document.
5453 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
5456 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
5457 (S_MODES): Set H_MODE bit.
5458 (SF_MODES): Set only S_MODE and SF_MODE bits.
5459 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
5460 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
5461 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
5462 <MODE_FLOAT>: Likewise.
5464 2013-04-15 Joey Ye <joey.ye@arm.com>
5466 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
5468 2013-04-15 Joey Ye <joey.ye@arm.com>
5470 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
5472 (thumb_far_jump_used_p): Count instruction size and set
5475 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
5477 * reorg.c (fill_simple_delay_slots): Reindent block of code.
5478 * resource.c (mark_target_live_regs): Reformat conditional block.
5480 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
5482 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
5483 notes, they are emitted only just before final.
5484 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
5486 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
5488 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
5489 * cfgrtl.c (delete_insn): Call it here instead.
5490 * lra-spills.c (lra_final_code_change): Use delete_insn.
5491 * haifa-sched.c (sched_remove_insn): Likewise.
5492 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
5493 returning to the nop pool.
5494 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
5495 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
5497 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
5499 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
5500 * doc/tm.texi: Regenerated.
5502 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
5504 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
5507 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
5509 * df-core.c (df_find_def): Compare register numbers.
5510 (df_find_use): Likewise.
5512 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
5515 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
5516 lra_in_progress for return.
5518 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
5520 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
5521 define_insn into define_insn_and_split and emit movsicc patterns.
5523 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
5525 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
5527 2013-04-12 Richard Biener <rguenther@suse.de>
5529 * tree-pass.h (TODO_do_not_ggc_collect): New.
5530 * passes.c (execute_one_ipa_transform_pass): Honor
5531 TODO_do_not_ggc_collect.
5532 (execute_one_pass): Likewise.
5535 2013-04-10 Richard Biener <rguenther@suse.de>
5537 * passes.c (init_optimization_passes): Remove reload pass.
5538 * ira.c (do_reload): Merge into ...
5540 (rest_of_handle_reload): Remove.
5541 (pass_reload): Likewise.
5542 * config/i386/i386.c (ix86_option_override): Refer to ira instead
5543 of reload for vzeroupper pass placement.
5545 2013-04-12 Jakub Jelinek <jakub@redhat.com>
5547 PR tree-optimization/56918
5548 PR tree-optimization/56920
5549 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
5550 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
5551 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
5552 use wide_mul_with_sign method.
5554 2013-04-12 Richard Biener <rguenther@suse.de>
5556 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
5557 not be considered a gimple constant.
5559 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
5561 * fold-const.c (const_binop): Handle vector shifts by a scalar.
5562 (fold_binary_loc): Call const_binop also for mixed vector-scalar
5565 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
5566 Jakub Jelinek <jakub@redhat.com>
5568 * opts.c: Include diagnostic-color.h.
5569 (common_handle_option): Handle OPT_fdiagnostics_color_.
5570 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
5571 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
5572 (diagnostic-color.o): New.
5573 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
5574 (diagnostic_color_rule): New enum.
5575 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
5576 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
5577 the location string.
5578 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
5579 either NULL, or color kind.
5580 * diagnostic-color.c: New file.
5581 * diagnostic-color.h: New file.
5582 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
5584 * doc/invoke.texi (-fdiagnostics-color): Document.
5585 * pretty-print.h (pp_show_color): Define.
5586 (struct pretty_print_info): Add show_color field.
5587 * diagnostic.c: Include diagnostic-color.h.
5588 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
5589 macros. Colorize error:, warning: etc. strings and also the location
5591 (diagnostic_show_locus): Colorize the caret line.
5592 * pretty-print.c: Include diagnostic-color.h.
5593 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
5594 inside of %< %> quotes or quoted through q format modifier.
5596 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5598 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
5600 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5602 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
5604 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
5607 2013-04-11 Marek Polacek <polacek@redhat.com>
5609 PR tree-optimization/48184
5610 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
5612 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
5614 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
5615 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
5616 (skip_simple_arithmetic): Tidy up.
5617 * tree.h (skip_simple_constant_arithmetic): Declare.
5619 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5621 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
5623 2013-04-11 Richard Biener <rguenther@suse.de>
5625 * tree-vect-loop.c (get_initial_def_for_induction): Properly
5626 generate vector constants.
5628 2013-04-11 Richard Biener <rguenther@suse.de>
5630 PR tree-optimization/56878
5631 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
5632 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
5634 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5635 Prefer to align the DR with the most invariant base address.
5637 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5639 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
5642 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
5644 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
5645 floating-point vector comparisons against 0.
5647 2013-04-11 Jakub Jelinek <jakub@redhat.com>
5649 PR tree-optimization/56899
5650 * fold-const.c (extract_muldiv_1): Apply distributive law
5651 only if TYPE_OVERFLOW_WRAPS (ctype).
5653 2013-04-11 Bin Cheng <bin.cheng@arm.com>
5656 * ira-costs.c (scan_one_insn): Check whether the source rtx of
5657 loading has side effect.
5659 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
5661 * config/sparc/sparc.c: Include tree-pass.h.
5662 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
5663 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
5664 head of file. Change return type. Split off gate function.
5665 (sparc_gate_work_around_errata): New function.
5666 (pass_work_around_errata): New pass definition.
5667 (insert_pass_work_around_errata) New pass insert definition to
5668 insert pass_work_around_errata just after delayed-branch scheduling.
5669 (sparc_option_override): Insert the pass.
5670 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
5672 2013-04-10 David S. Miller <davem@davemloft.net>
5674 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
5675 or -mcpu=hypersparc.
5677 * target.def (cstore_mode): New hook.
5678 * target.h: Include insn-codes.h
5679 * targhooks.c: Likewise.
5680 (default_cstore_mode): New function.
5681 * targhooks.h: Declare it.
5682 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
5683 * doc/tm.texi: Rebuild.
5684 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
5685 target hook, rather than inspecting the insn_data.
5686 * config/sparc/sparc.c (sparc_cstore_mode): New function.
5687 (TARGET_CSTORE_MODE): Redefine.
5688 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
5690 * config/sparc/predicates.md (cstore_result_operand): New special
5692 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
5693 Use it for operand 0.
5694 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
5695 (*snesi_special): Likewise.
5696 (*snesi_zero): Likewise.
5697 (*seqsi_zero): Likewise.
5698 (*sltu_insn): Likewise.
5699 (*sgeu_insn): Likewise.
5700 (*seqdi_special): Make operand 0 and comparison operation be of
5702 (*snedi_special): Likewise.
5703 (*snedi_special_vis3): Likewise.
5704 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
5705 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
5706 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
5707 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
5708 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
5709 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
5710 (*sltu_extend_sp64): Likewise.
5711 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
5712 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
5713 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
5714 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
5715 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
5717 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
5719 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
5720 (aarch64_start_file): Use the new function.
5722 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5723 Jason Merrill <jason@redhat.com>
5725 * common.opt: Add -gdwarf.
5726 * opts.c (common_handle_option): Handle it.
5727 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
5729 2013-04-10 Richard Biener <rguenther@suse.de>
5731 * passes.c (execute_todo): Do not call ggc_collect conditional here.
5732 (execute_one_ipa_transform_pass): But unconditionally here.
5733 (execute_one_pass): And here.
5734 (init_optimization_passes): Remove reload pass.
5735 * tree-pass.h (TODO_ggc_collect): Remove.
5736 (pass_reload): Likewise.
5737 * ira.c (do_reload): Merge into ...
5739 (rest_of_handle_reload): Remove.
5740 (pass_reload): Likewise.
5741 * config/i386/i386.c (ix86_option_override): Refer to ira instead
5742 of reload for vzeroupper pass placement.
5743 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
5744 and todo_flags_finish of all passes.
5746 2013-04-10 Richard Biener <rguenther@suse.de>
5748 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
5749 first_const_oprnd field, rename first_def_type to first_op_type.
5750 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
5751 (vect_get_and_check_slp_defs): Always use the type of the
5752 operand. Allow mixed vect_external_def, vect_constant_def types.
5753 (vect_get_constant_vectors): Handle mixed vect_external_def,
5754 vect_constant_def types.
5756 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
5758 PR tree-optimization/55524
5759 * tree-ssa-math-opts.c
5760 (convert_mult_to_fma): Don't use an fms construct
5761 when we don't have an fms operation, but fnma, and it looks
5762 likely that we'll be able to use the latter.
5764 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
5766 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
5768 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
5769 inline fail caused by overwritable functions.
5771 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
5773 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
5774 unnecessary bits in the constant power of two case.
5776 2013-04-10 Richard Biener <rguenther@suse.de>
5778 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
5779 broken code swapping operands.
5780 (vect_build_slp_tree): Do not compute load permutations here.
5781 (vect_analyze_slp_instance): Compute load permutations here,
5782 after building the SLP tree.
5784 2013-04-09 Christian Bruel <christian.bruel@st.com>
5786 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
5787 of next/prev_real_insn.
5789 2013-04-09 Jan Hubicka <jh@suse.cz>
5791 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
5792 Drop aliased parameter.
5793 (function_and_variable_visibility): Do not handle alias pairs.
5794 * cgraph.c (varpool_externally_visible_p): Update prototype.
5795 * varpool.c (varpool_add_new_variable): Update.
5797 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5799 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
5801 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
5803 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
5805 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
5807 2013-04-09 Marek Polacek <polacek@redhat.com>
5809 PR tree-optimization/48762
5810 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
5812 2013-04-09 Richard Biener <rguenther@suse.de>
5814 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
5816 (vect_build_slp_tree): Likewise.
5817 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
5818 calculating the cost of a SLP instance.
5819 (vect_analyze_slp_instance): Use it from here, after building
5822 2013-04-09 Jakub Jelinek <jakub@redhat.com>
5825 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
5826 expand_omp_for_static_chunk): Use simple_p = true in
5827 force_gimple_operand_gsi calls when assigning to addressable decls.
5829 2013-04-09 Jeff Law <law@redhat.com>
5831 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
5832 when the boolean was created by converting a wider object which
5833 had a boolean range.
5835 2013-04-09 Richard Biener <rguenther@suse.de>
5837 * tree-vectorizer.h (slp_void_p): Remove.
5838 (slp_tree): Typedef before _slp_tree declaration.
5839 (struct _slp_tree): Use a vector of slp_tree as children.
5840 (vect_get_place_in_interleaving_chain): Remove.
5841 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
5843 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
5845 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
5846 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
5847 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
5848 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
5849 Use slp_node instead of slp_void_p and adjust.
5851 2013-04-09 Richard Biener <rguenther@suse.de>
5853 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
5854 work that is not necessary.
5856 2013-04-09 Jakub Jelinek <jakub@redhat.com>
5858 PR tree-optimization/56854
5859 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
5860 forward into clobber stmts if it would change MEM_REF lhs into
5863 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
5865 * tree.c (type_hash_lookup, type_hash_add): Make static.
5866 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
5868 2013-04-09 Richard Biener <rguenther@suse.de>
5870 * tree.h (unsave_expr_now): Remove.
5871 * tree-inline.c (mark_local_for_remap_r): Remove.
5872 (unsave_expr_1): Likewise.
5873 (unsave_r): Likewise.
5874 (unsave_expr_now): Likewise.
5875 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
5876 (propagate_tree_value): Likewise.
5878 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
5880 * doc/rtl.texi (sequence): Rewrite documentation to match the
5881 current use of SEQUENCE rtl objects.
5882 * rtl.def (SEQUENCE): Likewise.
5884 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
5885 Update documentation.
5886 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
5887 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
5889 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
5891 2013-04-08 Teresa Johnson <tejohnson@google.com>
5893 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
5894 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
5896 (estimate_edge_size_and_time): Add comment to suggest using rounding
5898 (estimate_node_size_and_time): Ditto.
5899 (remap_edge_change_prob): Use helper rounding divide methods.
5900 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
5901 (gimple_mod_pow2_value_transform): Ditto.
5902 (gimple_mod_subtract_transform): Ditto.
5903 (gimple_ic_transform): Ditto.
5904 (gimple_stringops_transform): Ditto.
5905 * stmt.c (conditional_probability): Ditto.
5906 (emit_case_dispatch_table): Ditto.
5907 * lto-cgraph.c (merge_profile_summaries): Ditto.
5908 * tree-optimize.c (execute_fixup_cfg): Ditto.
5909 * cfgcleanup.c (try_forward_edges): Ditto.
5910 * cfgloopmanip.c (scale_loop_profile): Ditto.
5912 (duplicate_loop_to_header_edge): Ditto.
5913 (lv_adjust_loop_entry_edge): Ditto.
5914 * tree-vect-loop.c (vect_transform_loop): Ditto.
5915 * profile.c (compute_branch_probabilities): Ditto.
5916 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
5917 * lto-streamer-in.c (input_cfg): Ditto.
5918 * gimple-streamer-in.c (input_bb): Ditto.
5919 * ipa-cp.c (update_profiling_info): Ditto.
5920 (update_specialized_profile): Ditto.
5921 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
5922 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
5924 * sched-rgn.c (compute_dom_prob_ps): Ditto.
5925 (compute_trg_info): Ditto.
5926 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
5927 (purge_dead_edges): Ditto.
5928 * loop-unswitch.c (unswitch_loop): Ditto.
5929 * cgraphclones.c (cgraph_clone_edge): Ditto.
5930 (cgraph_clone_node): Ditto.
5931 * tree-inline.c (copy_bb): Ditto.
5932 (copy_edges_for_bb): Ditto.
5933 (initialize_cfun): Ditto.
5934 (copy_cfg_body): Ditto.
5935 (expand_call_inline): Ditto.
5937 2013-04-08 Kai Tietz <ktietz@redhat.com>
5939 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
5940 TARGET_CYGWIN64 by TARGET_64BIT.
5942 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
5944 * config/epiphany/epiphany.md (GPR_1): New constant.
5945 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
5946 * config/epiphany/epiphany.c (gen_compare_reg):
5947 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
5948 is already in place.
5949 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
5950 Don't require being called during rtl expansion; If y operlaps r0,
5952 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
5953 (epiphany_expand_epilogue): Likewise.
5955 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
5956 Don't use CC_FPmode for ORDERED / UNORDERED.
5957 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
5959 * config/epiphany/constraints.md (CnL): New constraint.
5960 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
5961 * config/epiphany/predicates.md (add_operand): Allow 1024.
5963 * config/epiphany/epiphany.md (logical_op): New code iterator.
5964 (op_mnc): New code attribute.
5965 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
5966 (mov_f+1, mov_f+2): New peephole2 patterns.
5968 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
5969 (cstoresi4): Also allow re-use of zero result when doing a NE
5970 comparison to a non-zero operand.
5971 Use (clobber (scratch)) for first insn if the gpr output is not needed.
5973 * config/epiphany/epiphany.md (<insn_opname>v2si3):
5974 Use gen_addsi3_i / gen_subsi3_i.
5976 2013-04-08 Jakub Jelinek <jakub@redhat.com>
5980 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
5981 contain anything but clobbers, at most one __builtin_stack_restore,
5982 optionally debug stmts and final resx, and if it has at least one
5983 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
5984 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
5985 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
5986 which isn't defaut definition, remove them.
5987 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
5988 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
5989 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
5990 with MEM_REF LHS with SSA_NAME address.
5992 2013-04-08 Jeff Law <law@redhat.com>
5994 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
5996 2013-04-08 Richard Biener <rguenther@suse.de>
5998 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
6000 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
6001 determined vector type.
6002 (vect_analyze_data_refs): Likewise.
6003 (vect_get_new_vect_var): Adjust.
6004 (vect_create_destination_var): Preserve SSA name versions.
6005 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
6006 not dump anything here.
6008 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
6010 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
6011 Add member lr_slot_known.
6012 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
6014 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
6015 Remove code that sets lr_slot_offset according to what a previous
6016 version of epiphany_emit_save_restore used to do.
6017 (epiphany_emit_save_restore): When doing an lr save or restore,
6018 set/verify lr_slot_known and lr_slot_offset.
6020 2013-04-08 Xinyu Qi <xyqi@marvell.com>
6023 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
6026 2013-04-08 Richard Biener <rguenther@suse.de>
6028 * alias.c (find_base_term): Fix thinko in previous change.
6030 2013-04-08 Jakub Jelinek <jakub@redhat.com>
6032 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
6033 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
6034 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
6035 if possible to compute val.
6036 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
6037 For QImode integers don't require anything about precision. Use
6038 const_with_all_bytes_same to find out if the constant doesn't have
6039 repeated bytes in it.
6041 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6043 * config/s390/s390.c (s390_expand_insv): Only accept insertions
6046 2013-04-08 Marek Polacek <polacek@redhat.com>
6048 PR rtl-optimization/48182
6049 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
6052 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6055 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
6056 nuses, make sure we have a label.
6058 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6061 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
6062 (rs6000_emit_swdiv_low_precision): Remove.
6063 (rs6000_emit_swdiv): Rewrite to handle between one and four
6064 iterations of Newton-Raphson generally; modify required number of
6065 iterations for some cases.
6066 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
6068 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
6070 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
6071 set-but-unused variable.
6073 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
6074 basic blocks of released function bodies garbage-collectable.
6076 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
6077 (struct rtl_opt_pass): Add TODO_df_finish.
6079 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
6081 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
6083 * config/arm/constraints.md (q): New constraint.
6084 * config/arm/ldrdstrd.md: New file.
6085 * config/arm/arm.md (ldrdstrd.md) New include.
6086 (arm_movdi): Use "q" instead of "r" constraint
6087 for double-word memory access.
6088 (movdf_soft_insn): Likewise.
6089 * config/arm/vfp.md (movdi_vfp): Likewise.
6090 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
6091 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
6092 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
6093 (mem_ok_for_ldrd_strd): Likewise.
6094 (output_move_double): Update assertion.
6096 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
6098 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
6100 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
6102 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
6103 define_insn_and_split.
6104 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
6106 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
6108 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
6109 define_insn_and_split.
6110 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
6111 (shiftsi3_compare): New pattern.
6113 * config/arm/unspecs.md (UNSPEC_RRX): New.
6115 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
6117 * config/arm/arm.md (negdi_extendsidi): New pattern.
6118 (negdi_zero_extendsidi): Likewise.
6120 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
6122 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
6123 define_insn_and_split.
6124 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
6125 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
6127 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
6129 * config/arm/arm.md (arm_subdi3): Convert define_insn into
6130 define_insn_and_split.
6131 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
6132 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
6134 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
6136 * config/arm/arm.md (subsi3_carryin): New pattern.
6137 (subsi3_carryin_const): Likewise.
6138 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
6139 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
6141 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
6143 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
6145 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
6147 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
6148 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
6150 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6152 * config/arm/arm.c (arm_expand_builtin): Change fcode
6153 type to unsigned int.
6155 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6157 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
6159 2013-04-04 Ian Lance Taylor <iant@google.com>
6161 * doc/standards.texi (Standards): The Go frontend supports the Go 1
6164 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
6167 * df-scan.c (df_insn_delete): Disable failing assert.
6169 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6171 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
6172 New function prototype.
6173 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
6174 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
6175 (arm_builtin_vectorized_function): New function.
6177 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6179 * config/arm/arm_neon_builtins.def: New file.
6180 * config/arm/arm.c (neon_builtin_data): Move contents to
6181 arm_neon_builtins.def.
6182 (enum arm_builtins): Include neon builtin definitions.
6183 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
6184 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
6186 2013-04-04 Marek Polacek <polacek@redhat.com>
6188 PR tree-optimization/48186
6189 * predict.c (maybe_hot_frequency_p): Return false if
6190 HOT_BB_FREQUENCY_FRACTION is 0.
6191 (cgraph_maybe_hot_edge_p): Likewise.
6193 2013-04-04 Richard Biener <rguenther@suse.de>
6195 PR tree-optimization/56826
6196 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
6199 2013-04-04 Richard Biener <rguenther@suse.de>
6201 PR tree-optimization/56213
6202 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
6203 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
6205 2013-04-04 Richard Biener <rguenther@suse.de>
6207 PR tree-optimization/56837
6208 * tree-loop-distribution.c (classify_partition): For non-zero
6209 values require that the value has the same precision as its
6210 mode to be useful as memset value.
6212 2013-04-03 Nick Clifton <nickc@redhat.com>
6214 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
6215 (fmssf4): Use fmsf.s on E3V5 architectures.
6216 (fnmasf4): Use fnmaf.s on E3V5 architectures.
6217 (fnmssf4): Use fnmsf.s on E3V5 architectures.
6219 2013-04-03 Jeff Law <law@redhat.com>
6221 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
6222 (lra-eliminations.o): Likewise.
6224 2013-04-03 Teresa Johnson <tejohnson@google.com>
6226 * gcov-io.c (compute_working_sets): Moved most of body of old
6227 compute_working_sets here from profile.c.
6228 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
6229 (gcov_working_set_t): Moved typedef here from basic-block.h
6230 (compute_working_set): Declare.
6231 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
6232 (get_working_sets): Renamed from compute_working_set,
6233 replace most of body with call to new compute_working_sets.
6234 (get_exec_counts): Replace call to compute_working_sets
6235 to get_working_sets.
6236 * profile.h (get_working_sets): Renamed from compute_working_set.
6237 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
6238 to get_working_sets.
6239 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
6240 * gcov-dump.c (dump_working_sets): New function.
6242 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
6244 * hwint.c (sext_hwi, zext_hwi): New functions.
6245 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
6246 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
6247 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
6248 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
6249 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
6250 (sext_hwi, zext_hwi): New functions.
6252 2013-04-03 Jeff Law <law@redhat.com>
6254 PR tree-optimization/56799
6255 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
6256 back test for widening conversion erroneously dropped in prior change.
6258 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6261 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
6262 instead of next_real_insn.
6264 2013-04-03 Marek Polacek <polacek@redhat.com>
6267 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
6269 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6272 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
6274 (thumb1_output_casesi): Likewise.
6275 (thumb2_output_casesi): Likewise.
6277 2013-04-03 Richard Biener <rguenther@suse.de>
6279 PR tree-optimization/56817
6280 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
6282 (tree_unroll_loops_completely_1): ... new function to manually
6283 walk the loop tree, properly defering outer loops of unrolled
6284 loops to later iterations.
6286 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
6288 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
6289 (vectorizable_load): Likewise.
6290 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
6291 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
6293 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
6295 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
6298 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6300 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
6302 2013-04-03 Bin Cheng <bin.cheng@arm.com>
6304 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
6306 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
6308 PR tree-optimization/56790
6309 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
6312 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
6314 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
6316 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
6317 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
6320 2013-04-03 Jakub Jelinek <jakub@redhat.com>
6323 * tree.h (force_folding_builtin_constant_p): New decl.
6324 * builtins.c (force_folding_builtin_constant_p): New variable.
6325 (fold_builtin_constant_p): Fold immediately also if
6326 force_folding_builtin_constant_p.
6328 2013-04-03 Richard Biener <rguenther@suse.de>
6330 PR tree-optimization/56812
6331 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
6332 DRs of the same interleaving chain are independent.
6334 2013-04-02 Jason Merrill <jason@redhat.com>
6336 * gdbinit.in (pbb): Use debug fn.
6338 2013-04-02 Lawrence Crowl <crowl@google.com>
6340 * sese.h (struct ivtype_map_elt_s): Remove unused.
6341 (extern debug_ivtype_map): Remove unused.
6342 (extern eq_ivtype_map_elts): Remove unused.
6343 * sese.c (debug_ivtype_map): Removed unused.
6344 (debug_ivtype_map_1): Removed unused.
6345 (debug_ivtype_elt): Remove unused.
6346 (eq_ivtype_map_elts): Remove unused.
6349 2013-04-02 Kai Tietz <ktietz@redhat.com>
6352 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
6353 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
6354 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
6356 (legitimize_pe_coff_symbol): Likewise.
6357 (is_imported_p): New helper-function.
6358 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
6359 for Windows x64 targets.
6360 (ix86_expand_prologue): Optimize for pe-coff targets.
6361 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
6362 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
6363 medium/large code-model.
6364 (legitimize_pic_address): Likewise.
6365 (legitimize_tls_address): Likewise.
6366 (ix86_expand_call): Likewise.
6367 (x86_output_mi_thunk): Likewise.
6368 (get_dllimport_decl): Add new beimport argument.
6369 (construct_plt_address): Don't assert for x64 pe-coff targets.
6370 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
6372 (SYMBOL_FLAG_STUBVAR): New macro.
6373 (SYMBOL_REF_STUBVAR_P): Likewise.
6374 * config/i386/winnt.c (stub_list): New structure.
6375 (stub_head): New local variable.
6376 (i386_pe_record_stub): New function.
6377 (i386_pe_file_end): Emit refptr-stubs.
6379 2013-04-02 Jakub Jelinek <jakub@redhat.com>
6381 PR rtl-optimization/56745
6382 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
6383 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
6386 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
6387 and both of them are MEM_REFs, just compare first argument for
6388 equality and attempt to deal even with differing offsets.
6391 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
6392 of gimple_clobber_p to be MEM_REF.
6393 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
6394 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
6395 after gimplification.
6396 * asan.c (get_mem_ref_of_assignment): Don't instrument
6397 gimple_clobber_p stmts.
6398 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
6399 gimple_clobber_p stmt if they have MEM_REF lhs and
6400 are dead because of another gimple_clobber_p stmt.
6401 * tree-ssa-live.c (clear_unused_block_pointer): Treat
6402 gimple_clobber_p stmts like debug stmts.
6403 (remove_unused_locals): Remove clobbers with MEM_REF lhs
6404 that refer to unused VAR_DECLs or uninitialized values.
6405 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
6406 gimple_clobber_p stmts if they refer to removed parameters.
6407 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
6410 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
6412 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
6413 using SWI48 mode attribute.
6415 2013-04-02 Wei Mi <wmi@google.com>
6417 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
6418 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
6419 *<rotate_insn><mode>3_mask in i386.md.
6421 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
6423 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
6425 2013-04-02 Richard Biener <rguenther@suse.de>
6427 PR tree-optimization/56778
6428 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
6429 Runtime alias tests are not supported for gather loads.
6430 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
6431 stmts referenced from SSA operands before updating SSA form.
6433 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
6434 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6436 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
6437 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
6438 * config/arm/cortex-a53.md: New file.
6439 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
6440 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
6441 * config/arm/arm.c (arm_issue_rate): Likewise.
6442 * config/arm/arm-tune.md: Regenerate
6443 * config/arm/arm-tables.opt: Regenerate.
6444 * config/arm/arm-cores.def: Add cortex-a53.
6446 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
6448 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
6451 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
6453 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
6454 scalar load/store operations using B/H registers.
6455 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
6457 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
6459 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
6461 * config/aarch64/aarch64.c
6462 (aarch64_simd_scalar_immediate_valid_for_move): New.
6463 * config/aarch64/aarch64-protos.h
6464 (aarch64_simd_scalar_immediate_valid_for_move): New.
6465 * config/aarch64/constraints.md (Dh, Dq): New.
6466 * config/aarch64/iterators.md (hq): New.
6468 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
6470 * reorg.c (get_branch_condition): Deal with conditional returns.
6471 (fill_simple_delay_slots): Remove dead code dealing with jumps.
6473 2013-04-01 Wei Mi <wmi@google.com>
6475 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
6476 Truncate operand 2 using %b asm operand modifier.
6477 (*<shift_insn><mode>3_mask): Ditto.
6478 (*<rotate_insn><mode>3_mask): Ditto.
6480 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
6483 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
6485 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
6487 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
6489 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
6491 2013-03-30 Lawrence Crowl <crowl@google.com>
6493 * dse.c (clear_alias_sets): Remove never set.
6494 (disqualified_clear_alias_sets): Remove never set.
6495 (clear_alias_mode_pool): Remove never set.
6496 (dse_step0): Remove condition that is never true.
6497 (canon_address): Remove condition that is never true.
6498 (dse_step7): Remove condition that is never true.
6499 (rest_of_handle_dse): Remove condition that is never true.
6500 (rest_of_handle_dse::did_global): Remove never read from above.
6501 (dse_step2_spill): Remove never called from above.
6502 (dse_step5_spill): Remove never called from above.
6504 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
6506 * doc/md.texi (Standard Names) <casesi>: Update documentation for
6507 JUMP_TABLE_DATA changes.
6508 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
6509 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
6510 (Insns) <jump_table_data>: New entry.
6511 * doc/tm.texi: Regenerate.
6513 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
6515 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
6516 for table jump at the end of a basic block using tablejump_p.
6517 * targhooks.c (default_invalid_within_doloop): Likewise.
6518 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
6519 target hook implementation that is identical to the default hook.
6520 (rs6000_invalid_within_doloop): Remove.
6522 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
6523 unused variable from tablejump_p call.
6525 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
6526 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
6527 (INSN_DELETED_P): Likewise.
6528 (emit_jump_table_data): New prototype.
6529 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
6530 after 4th as unused.
6531 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
6532 * sched-vis.c (print_insn): Likewise.
6533 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
6534 insn for compatibility with back ends that use next_active_insn to
6535 identify jump table data.
6536 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
6537 (remove_insn): Likewise.
6538 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
6540 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
6541 (emit_jump_table_data): New function.
6543 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
6544 basic block, a JUMP_TABLE_DATA never is.
6545 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
6546 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
6547 off from code handling real insns.
6548 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
6549 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
6550 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
6551 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
6552 is not a NONDEBUG_INSN_P.
6553 * ira-costs.c (scan_one_insn): Likewise.
6554 * jump.c (mark_all_labels): Likewise.
6555 (mark_jump_label_1): Likewise.
6556 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
6557 * lra.c (get_insn_freq): Expect all insns reaching here to be in
6559 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
6560 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
6561 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
6562 JUMP_TABLE_DATA_P insns.
6563 (calculate_elim_costs_all_insns): Likewise.
6564 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
6565 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
6566 (delete_output_reload): Code style fixups.
6567 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
6568 insn flags on this non-insn.
6569 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
6570 as scheduling barriers, for pre-change compatibility.
6571 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
6572 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
6574 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
6575 redundant JUMP_TABLE_DATA_P test.
6576 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
6577 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
6578 (frv_for_each_packet): Likewise.
6579 * config/i386/i386.c (min_insn_size): Likewise.
6580 (ix86_avoid_jump_mispredicts): Likewise.
6581 * config/m32r/m32r.c (m32r_is_insn): Likewise.
6582 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
6583 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
6584 (mips16_insn_length): Robustify.
6585 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
6586 (mips16_split_long_branches): Likewise.
6587 * config/pa/pa.c (pa_combine_instructions): Likewise.
6588 * config/rs6000/rs6000.c (get_next_active_insn): Treat
6589 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
6590 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
6591 as contributing to pool range lengths.
6592 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
6593 Remove redundant JUMP_TABLE_DATA_P test.
6594 (sh_loop_align): Likewise.
6595 (split_branches): Likewise.
6596 (sh_insn_length_adjustment): Likewise.
6597 * config/spu/spu.c (get_branch_target): Likewise.
6599 2013-03-29 Jan Hubicka <jh@suse.cz>
6601 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
6602 gcov streaming; stream hot bb threshold to ltrans.
6603 * predict.c (get_hot_bb_threshold): Break out from ....
6604 (maybe_hot_count_p): ... here.
6605 (set_hot_bb_threshold): New function.
6606 * lto-section-in.c (lto_section_name): Add profile.
6607 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
6608 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
6610 (histogram_entry): New structure.
6611 (histogram, histogram_pool): New global vars.
6612 (histogram_hash): New structure.
6613 (histogram_hash::hash): New method.
6614 (histogram_hash::equal): Likewise.
6615 (account_time_size): New function.
6616 (cmp_counts): New function.
6617 (dump_histogram): New function.
6618 (ipa_profile_generate_summary): New function.
6619 (ipa_profile_write_summary): New function.
6620 (ipa_profile_read_summary): New function.
6621 (ipa_profile): Decide on threshold.
6622 (pass_ipa_profile): Add ipa_profile_write_summary and
6623 ipa_profile_read_summary.
6624 * Makefile.in (ipa.o): Update dependencies.
6625 * lto-streamer.h (LTO_section_ipa_profile): New section.
6627 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
6629 * tree.h (VAR_P): New.
6631 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
6634 * doc/invoke.texi ([-fwhole-program]): Fix typo.
6636 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
6638 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
6639 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
6640 (control_flow_insn_p): Likewise.
6641 * cfgrtl.c (duplicate_insn_chain): Likewise.
6642 * final.c (get_attr_length_1): Likewise.
6643 (shorten_branches): Likewise.
6644 (final_scan_insn): Likewise.
6645 * function.c (instantiate_virtual_regs): Likewise.
6646 * gcse.c (insert_insn_end_basic_block): Likewise.
6647 * ira-costs.c (scan_one_insn): Likewise.
6648 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
6649 * lra.c (check_rtl): Likewise.
6650 * reload1.c (elimination_costs_in_insn): Likewise.
6651 * reorg.c (follow_jumps): Likewise.
6653 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
6654 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
6655 (thumb_far_jump_used_p): Likewise.
6656 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
6657 (workaround_speculation): Likewise.
6658 (add_sched_insns_for_speculation): Likewise.
6659 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
6660 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
6661 (frv_for_each_packet): Likewise.
6662 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
6663 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
6664 (final_emit_insn_group_barriers): Likewise.
6665 * config/m32r/m32r.c (m32r_is_insn): Likewise.
6666 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
6667 (mips16_insn_length): Likewise.
6668 * config/pa/pa.c (pa_reorg): Likewise.
6669 (pa_combine_instructions): Likewise.
6670 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
6671 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
6672 (sh_reorg): Likewise.
6673 (split_branches): Likewise.
6674 * config/spu/spu.c (get_branch_target): Likewise.
6676 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
6679 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
6681 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
6682 Fix declaration name.
6684 2013-03-28 Lawrence Crowl <crowl@google.com>
6686 * graphds.h (struct graph.indicies): Remove unused.
6687 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
6688 (SCOP_ORIGINAL_PDDRS): Remove unused.
6689 * sese.h (extern insert_loop_close_phis): Removed unused.
6690 (extern insert_guard_phis): Removed unused.
6691 (extern ivtype_map_elt_info): Removed unused.
6692 (new_ivtype_map_elt): Removed unused.
6693 * sese.c (ivtype_map_elt_info): Removed unused.
6695 2013-03-28 Lawrence Crowl <crowl@google.com>
6697 * Makefile.in: Add several missing include dependences.
6699 (test-dump.o): New. This object is not added to any executable,
6700 but is present for ad-hoc testing.
6702 (debug (const bitmap_head_def &)): New.
6703 (debug (const bitmap_head_def *)): New.
6705 (extern debug (const bitmap_head_def &)): New.
6706 (extern debug (const bitmap_head_def *)): New.
6708 (debug (edge_def &)): New.
6709 (debug (edge_def *)): New.
6711 (debug (basic_block_def &)): New.
6712 (debug (basic_block_def *)): New.
6714 (dump_node (const_tree, int, FILE *)): Correct source file.
6716 (debug (die_struct &)): New.
6717 (debug (die_struct *)): New.
6719 (extern debug (die_struct &)): New.
6720 (extern debug (die_struct *)): New.
6721 * gimple-pretty-print.c
6722 (debug (gimple_statement_d &)): New.
6723 (debug (gimple_statement_d *)): New.
6724 * gimple-pretty-print.h
6725 (extern debug (gimple_statement_d &)): New.
6726 (extern debug (gimple_statement_d *)): New.
6728 (debug (ira_allocno_copy &)): New.
6729 (debug (ira_allocno_copy *)): New.
6730 (debug (ira_allocno &)): New.
6731 (debug (ira_allocno *)): New.
6733 (extern debug (ira_allocno_copy &)): New.
6734 (extern debug (ira_allocno_copy *)): New.
6735 (extern debug (ira_allocno &)): New.
6736 (extern debug (ira_allocno *)): New.
6738 (debug (live_range &)): New.
6739 (debug (live_range *)): New.
6741 (debug (lra_live_range &)): New.
6742 (debug (lra_live_range *)): New.
6744 (debug (lra_live_range &)): New.
6745 (debug (lra_live_range *)): New.
6747 (debug (omega_pb_d &)): New.
6748 (debug (omega_pb_d *)): New.
6750 (extern debug (omega_pb_d &)): New.
6751 (extern debug (omega_pb_d *)): New.
6753 (debug (const rtx_def &)): New.
6754 (debug (const rtx_def *)): New.
6756 (debug_tree (tree): Move within file.
6757 (debug_raw (const tree_node &)): New.
6758 (debug_raw (const tree_node *)): New.
6759 (dump_tree_via_hooks (const tree_node *, int)): New.
6760 (debug (const tree_node &)): New.
6761 (debug (const tree_node *)): New.
6762 (debug_verbose (const tree_node &)): New.
6763 (debug_verbose (const tree_node *)): New.
6764 (debug_head (const tree_node &)): New.
6765 (debug_head (const tree_node *)): New.
6766 (debug_body (const tree_node &)): New.
6767 (debug_body (const tree_node *)): New.
6768 (debug_vec_tree (tree): Move and reimplement in terms of dump.
6769 (debug (vec<tree, va_gc> &)): New.
6770 (debug (vec<tree, va_gc> *)): New.
6772 (extern debug (const rtx_def &)): New.
6773 (extern debug (const rtx_def *)): New.
6775 (debug_raw (simple_bitmap_def &)): New.
6776 (debug_raw (simple_bitmap_def *)): New.
6777 (debug (simple_bitmap_def &)): New.
6778 (debug (simple_bitmap_def *)): New.
6780 (extern debug (simple_bitmap_def &)): New.
6781 (extern debug (simple_bitmap_def *)): New.
6782 (extern debug_raw (simple_bitmap_def &)): New.
6783 (extern debug_raw (simple_bitmap_def *)): New.
6785 (debug (vinsn_def &)): New.
6786 (debug (vinsn_def *)): New.
6787 (debug_verbose (vinsn_def &)): New.
6788 (debug_verbose (vinsn_def *)): New.
6789 (debug (expr_def &)): New.
6790 (debug (expr_def *)): New.
6791 (debug_verbose (expr_def &)): New.
6792 (debug_verbose (expr_def *)): New.
6793 (debug (vec<rtx> &)): New.
6794 (debug (vec<rtx> *)): New.
6796 (extern debug (vinsn_def &)): New.
6797 (extern debug (vinsn_def *)): New.
6798 (extern debug_verbose (vinsn_def &)): New.
6799 (extern debug_verbose (vinsn_def *)): New.
6800 (extern debug (expr_def &)): New.
6801 (extern debug (expr_def *)): New.
6802 (extern debug_verbose (expr_def &)): New.
6803 (extern debug_verbose (expr_def *)): New.
6804 (extern debug (vec<rtx> &)): New.
6805 (extern debug (vec<rtx> *)): New.
6807 (_list_iter_cond_expr): Make inline instead of static.
6809 (debug (sreal &)): New.
6810 (debug (sreal *)): New.
6812 (extern debug (sreal &)): New.
6813 (extern debug (sreal *)): New.
6815 (extern debug_raw (const tree_node &)): New.
6816 (extern debug_raw (const tree_node *)): New.
6817 (extern debug (const tree_node &)): New.
6818 (extern debug (const tree_node *)): New.
6819 (extern debug_verbose (const tree_node &)): New.
6820 (extern debug_verbose (const tree_node *)): New.
6821 (extern debug_head (const tree_node &)): New.
6822 (extern debug_head (const tree_node *)): New.
6823 (extern debug_body (const tree_node &)): New.
6824 (extern debug_body (const tree_node *)): New.
6825 (extern debug (vec<tree, va_gc> &)): New.
6826 (extern debug (vec<tree, va_gc> *)): New.
6828 (debug (struct loop &)): New.
6829 (debug (struct loop *)): New.
6830 (debug_verbose (struct loop &)): New.
6831 (debug_verbose (struct loop *)): New.
6832 * tree-dump.c: Add header dependence.
6834 (extern debug (struct loop &)): New.
6835 (extern debug (struct loop *)): New.
6836 (extern debug_verbose (struct loop &)): New.
6837 (extern debug_verbose (struct loop *)): New.
6839 (debug (data_reference &)): New.
6840 (debug (data_reference *)): New.
6841 (debug (vec<data_reference_p> &)): New.
6842 (debug (vec<data_reference_p> *)): New.
6843 (debug (vec<ddr_p> &)): New.
6844 (debug (vec<ddr_p> *)): New.
6846 (extern debug (data_reference &)): New.
6847 (extern debug (data_reference *)): New.
6848 (extern debug (vec<data_reference_p> &)): New.
6849 (extern debug (vec<data_reference_p> *)): New.
6850 (extern debug (vec<ddr_p> &)): New.
6851 (extern debug (vec<ddr_p> *)): New.
6853 (debug (pt_solution &)): New.
6854 (debug (pt_solution *)): New.
6856 (extern debug (pt_solution &)): New.
6857 (extern debug (pt_solution *)): New.
6859 (debug (_var_map &)): New.
6860 (debug (_var_map *)): New.
6861 (debug (tree_live_info_d &)): New.
6862 (debug (tree_live_info_d *)): New.
6864 (extern debug (_var_map &)): New.
6865 (extern debug (_var_map *)): New.
6866 (extern debug (tree_live_info_d &)): New.
6867 (extern debug (tree_live_info_d *)): New.
6869 2013-03-28 Jan Hubicka <jh@suse.cz>
6871 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
6873 2013-03-28 Ian Bolton <ian.bolton@arm.com>
6875 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
6876 record only when desired or required.
6878 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
6880 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
6881 *vec_extractv2di_1_rex64. Use x64 isa attribute.
6883 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6885 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
6886 (*andsi3_compare0_uxtw): New pattern.
6887 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
6888 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
6890 2013-03-28 Jan Hubicka <jh@suse.cz>
6892 * data-streamer-in.c (streamer_read_gcov_count): New function.
6893 * gimple-streamer-out.c: Include value-prof.h.
6894 (output_gimple_stmt): Output histogram.
6895 (output_bb): Use streamer_write_gcov_count.
6896 * value-prof.c: Include data-streamer.h
6897 (dump_histogram_value): Add HIST_TYPE_MAX.
6898 (stream_out_histogram_value): New function.
6899 (stream_in_histogram_value): New function.
6900 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
6901 (stream_out_histogram_value, stream_in_histogram_value): Declare.
6902 * data-streamer-out.c (streamer_write_gcov_count): New function.
6903 (streamer_write_gcov_count_stream): New function.
6904 * lto-cgraph.c (lto_output_edge): Update counter streaming.
6905 (lto_output_node): Likewise.
6906 (input_node, input_edge): Likewise.
6907 * lto-streamer-out.c (output_cfg): Update streaming.
6908 * lto-streamer-in.c (input_cfg): Likewise.
6909 * data-streamer.h (streamer_write_gcov_count,
6910 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
6911 * gimple-streamer-in.c: Include value-prof.h
6912 (input_gimple_stmt): Input histograms.
6913 (input_bb): Update profile streaming.
6915 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
6917 * genmodes.c (emit_max_int): New function.
6918 (emit_insn_modes_h): Added call to emit_max_function.
6919 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
6921 * machmode.def: Fixed comment.
6923 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
6925 * combine.c (try_combine): Removed useless assert.
6926 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
6928 2013-03-28 Marek Polacek <polacek@redhat.com>
6929 Richard Biener <rguenther@suse.de>
6931 PR tree-optimization/56695
6932 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
6933 build signed result of a vector comparison.
6934 * tree-cfg.c (verify_gimple_comparison): Check that a result
6935 of a vector comparison has signed type.
6937 2013-03-28 Richard Biener <rguenther@suse.de>
6939 PR tree-optimization/37021
6940 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
6941 do not restrict gaps between groups.
6942 * tree-vect-stmts.c (vectorizable_load): Properly account for
6943 a gap between groups.
6945 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
6947 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
6948 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
6951 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
6953 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
6954 * doc/extend.texi (Named Address Spaces): Ditto.
6955 (Variable Attributes): Ditto.
6957 2013-03-27 Kai Tietz <ktietz@redhat.com>
6959 * config.build: Add support for cygwin x64 target.
6960 * config.gcc: Likewise.
6961 * config.host: Likewise.
6962 * configure.ac: Likewise
6963 * configure: Regenerated.
6965 2013-03-27 Kai Tietz <ktietz@redhat.com>
6967 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
6968 * config/i386/t-cygwin-w64: New file.
6969 * config/i386/cygwin-w64.h: New file.
6970 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
6971 and add support for x64-cygwin target.
6972 (CPP_SPEC): Likewise.
6973 (CXX_WRAP_SPEC_LIST): Undefine before define.
6974 (LIBGCJ_SONAME): Use 15 as version.
6976 2013-03-27 Richard Biener <rguenther@suse.de>
6978 PR tree-optimization/56716
6979 * tree-ssa-structalias.c (perform_var_substitution): Adjust
6980 dumping for ref nodes.
6982 2013-03-27 Martin Jambor <mjambor@suse.cz>
6984 PR tree-optimization/55334
6985 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
6986 restricted pointers to arrays.
6988 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
6990 * Makefile.in (.SUFFIXES): Add .cc.
6991 (.c.o): Apply same recipe for implicit rule .cc.o.
6993 2013-03-27 Richard Biener <rguenther@suse.de>
6995 PR tree-optimization/37021
6996 * tree-vect-data-refs.c (vect_check_strided_load): Allow
6997 REALPART/IMAGPART_EXPRs around the supported refs.
6998 * tree-ssa-structalias.c (find_func_aliases): Assume that
6999 floating-point values are not used to transfer pointers.
7001 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
7003 * target.def (TARGET_HAS_IFUNC_P): New target hook.
7004 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
7005 * doc/tm.texi: Regenerate.
7006 * targhooks.h (default_has_ifunc_p): New.
7007 * targhooks.c (default_has_ifunc_p): Ditto.
7008 * config/linux-protos.h: New file.
7009 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
7010 this hook for linux which disables support of indirect functions in
7012 * config/linux-android.c: New file.
7013 * config/t-linux-android.c: Ditto.
7014 * config.gcc: Added new object file linux-android.o.
7015 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
7016 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
7017 * varasm.c (do_assemble_alias): Likewise.
7018 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
7019 doesn't support indirect functions.
7020 * configure: Regenerate.
7022 2013-03-27 Bin Cheng <bin.cheng@arm.com>
7025 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
7026 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
7029 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7031 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
7033 2013-03-27 Terry Guo <terry.guo@arm.com>
7035 * config/arm/arm-cores.def: Added core cortex-r7.
7036 * config/arm/arm-tune.md: Regenerated.
7037 * config/arm/arm-tables.opt: Regenerated.
7038 * doc/invoke.texi: Added entry for core cortex-r7.
7040 2013-03-27 Walter Lee <walt@tilera.com>
7042 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
7043 double-decrement of next_scratch_regno.
7045 2013-03-27 Walter Lee <walt@tilera.com>
7047 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
7049 (insn_v1mulus): Ditto.
7050 (insn_v2muls): Ditto.
7052 2013-03-27 Walter Lee <walt@tilera.com>
7054 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
7055 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
7057 2013-03-27 Walter Lee <walt@tilera.com>
7059 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
7060 (*sibcall_value): Ditto.
7062 2013-03-27 Walter Lee <walt@tilera.com>
7064 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
7065 (insn_mnz_v8qi): ... this ...
7066 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
7068 (insn_v<n>mnz): Replaced by ...
7069 (insn_v1mnz): ... this ...
7070 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
7072 (insn_mz_<mode>): Replaced by ...
7073 (insn_mz_v8qi): ... this ...
7074 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
7076 (insn_v<n>mz): Replaced by ...
7077 (insn_v1mz): ... this ...
7078 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
7081 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
7083 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
7085 2013-03-26 Roland McGrath <mcgrathr@google.com>
7087 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
7088 than fprintf with a non-constant, non-format string.
7090 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
7092 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
7093 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
7094 operand 0 predicate.
7095 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
7096 attribute. Use general_x64nomem_operand as operand 1 predicate.
7097 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
7098 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
7099 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
7100 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
7101 (mov<mode>_insv_1): Remove expander. Merge insn with
7102 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
7103 Use general_x64nomem_operand as operand 1 predicate.
7104 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
7105 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
7106 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
7107 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
7108 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
7109 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
7110 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
7111 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
7112 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
7113 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
7114 (general_x64nomem_operand): Ditto.
7116 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
7118 * config/rtems.opt: Add -pthread option.
7120 2013-03-26 Richard Biener <rguenther@suse.de>
7122 * alias.c (find_base_term): Avoid redundant and not used recursion.
7123 (base_alias_check): Get the initial base term from the caller.
7124 (true_dependence_1): Compute and pass base terms to base_alias_check.
7125 (write_dependence_p): Likewise.
7126 (may_alias_p): Likewise.
7128 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
7130 * config/aarch64/aarch64.c (aarch64_classify_address): Support
7131 PC-relative load in SI modes and above only.
7133 2013-03-26 Xinyu Qi <xyqi@marvell.com>
7135 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
7136 * config/arm/iwmmxt.md (WCGR0): Update.
7137 (WCGR1, WCGR2, WCGR3): Likewise.
7139 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
7141 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
7142 Use x64 and nox64 isa attributes.
7144 2013-03-26 Richard Biener <rguenther@suse.de>
7146 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
7147 alignment computations and rely on get_object_alignment_1
7148 for the !TYPE_P case.
7149 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
7151 2013-03-26 Walter Lee <walt@tilera.com>
7153 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
7154 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
7156 2013-03-25 Jeff Law <law@redhat.com>
7158 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
7159 check for INTEGRAL_TYPE_P that was missing due to checking in
7160 wrong version of prior patch.
7162 2013-03-25 Walter Lee <walt@tilera.com>
7164 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
7165 TILEGX_INSN_SHUFFLEBYTES1.
7166 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
7168 (tilegx_builtins): Ditto.
7169 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
7171 2013-03-25 Walter Lee <walt@tilera.com>
7173 * config/tilegx/tilegx.md (floatsisf2): New pattern.
7174 (floatunssisf2): New pattern.
7175 (floatsidf2): New pattern.
7176 (floatunssidf2): New pattern.
7178 2013-03-25 Walter Lee <walt@tilera.com>
7180 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
7181 tests for constraint J, K, N, P.
7183 2013-03-25 Walter Lee <walt@tilera.com>
7185 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
7186 Use indirect/pcrel encoding.
7187 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
7190 2013-03-25 Steve Ellcey <sellcey@mips.com>
7192 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
7193 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
7194 * config/mips/mips.c (mips_option_override): Set IMADD default.
7195 * config/mips/mips.h (PTF_AVOID_IMADD): New.
7196 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
7197 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
7198 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
7199 * doc/invoke.texi (-mimadd/-mno-imadd): New.
7201 2013-03-25 Jeff Law <law@redhat.com>
7203 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
7204 slightly to avoid creating and folding useless trees. Simplify
7205 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
7207 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
7209 * config/i386/i386.md (*zero_extendsidi2): Merge with
7210 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
7211 * config/i386/predicates.md (x86_64_zext_operand): Rename from
7212 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
7213 targets. Clarify comment.
7215 2013-03-25 Martin Jambor <mjambor@suse.cz>
7217 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
7218 pass-through jump functions differently.
7219 (ipa_read_jump_function): Likewise. Also use setter functions to set
7222 2013-03-25 Martin Jambor <mjambor@suse.cz>
7224 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
7225 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
7227 (ipa_get_indirect_edge_target): New function.
7228 (devirtualization_time_bonus): New parameter known_aggs, pass it to
7229 ipa_get_indirect_edge_target. Update all callers.
7230 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
7231 ipa_get_indirect_edge_target_1 instead of calling
7232 ipa_get_indirect_edge_target.
7233 (create_specialized_node): Pass aggvlas to
7234 ipcp_discover_new_direct_edges.
7236 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7238 * config/arm/arm.md (f_sels, f_seld): New types.
7239 (*cmov<mode>): New pattern.
7240 * config/arm/predicates.md (arm_vsel_comparison_operator): New
7243 2013-03-25 Kai Tietz <ktietz@redhat.com>
7245 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
7246 POSIX-printf for mingw-hosted builds.
7248 2013-03-25 Richard Biener <rguenther@suse.de>
7251 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
7252 must-not-throw stmt location.
7254 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7256 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
7257 Emit load-acquire versions when acq is true.
7258 (arm_emit_store_exclusive): Add rel parameter.
7259 Emit store-release versions when rel is true.
7260 (arm_split_compare_and_swap): Use acquire-release instructions
7262 of barriers when appropriate.
7263 (arm_split_atomic_op): Likewise.
7264 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
7265 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
7266 (VUNSPEC_SLX): Likewise.
7267 (VUNSPEC_LDA): Likewise.
7268 (VUNSPEC_STL): Likewise.
7269 * config/arm/sync.md (atomic_load<mode>): New pattern.
7270 (atomic_store<mode>): Likewise.
7271 (arm_load_acquire_exclusive<mode>): Likewise.
7272 (arm_load_acquire_exclusivesi): Likewise.
7273 (arm_load_acquire_exclusivedi): Likewise.
7274 (arm_store_release_exclusive<mode>): Likewise.
7276 2013-03-25 Catherine Moore <clm@codesourcery.com>
7278 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
7279 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
7280 * config/mip/predicates.md (lwsp_swsp_operand,
7281 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
7282 sb16_operand, db4_operand, db7_operand, ib3_operand,
7283 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
7284 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
7285 andi16_operand): New predicates.
7286 * config/mips/mips.md (compression): New attribute.
7287 (enabled): New attribute.
7288 (length): Consider compression in computing length.
7289 (shift_compression): New code attribute.
7290 (*add<mode>3): New operands. Record compression.
7291 (sub<mode>3): Likewise.
7292 (one_cmpl<mode>2): Likewise.
7293 (*and<mode>3): Likewise.
7294 (*ior<mode>3): Likewise.
7295 (unnamed pattern for xor): Likewise.
7296 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
7297 (*<optab><mode>3): Likewise.
7298 (*mov<mode>_internal: Likewise.
7299 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
7300 (mips_unsigned_immediate_p): New.
7301 (umips_lwsp_swsp_address_p): New.
7302 (m16_based_address_p): New.
7303 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
7304 (mips_unsigned_immediate_p): New prototype.
7305 (lwsp_swsp_address_p): New prototype.
7306 (m16_based_address_p): New prototype.
7307 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
7308 (mips_signed_immediate_p): New function.
7309 (m16_based_address_p): New function.
7310 (lwsp_swsp_address_p): New function.
7311 (mips_print_operand_punctuation): Recognize short delay slot insns
7312 for microMIPS.add<mode>3"
7314 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7317 * config/arm/iterators.md (v_cmp_result): New mode attribute.
7318 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
7320 2013-03-25 Richard Biener <rguenther@suse.de>
7322 PR tree-optimization/56689
7323 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
7326 2013-03-25 Richard Biener <rguenther@suse.de>
7328 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
7330 (memory_references): Likewise.
7331 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
7332 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
7333 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
7334 (gather_mem_refs_in_loops): Fold into ...
7335 (analyze_memory_references): ... this. Move initialization
7336 to tree_ssa_lim_initialize.
7337 (fill_always_executed_in): Rename to ...
7338 (fill_always_executed_in_1): ... this.
7339 (fill_always_executed_in): Move contains_call computation to
7340 this new function from ...
7341 (tree_ssa_lim_initialize): ... here.
7342 (tree_ssa_lim): Call fill_always_executed_in.
7344 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
7346 * postreload.c (reload_combine): Fix code detecting returns.
7348 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
7350 * function.c (emit_use_return_register_into_block): On cc0 targets,
7351 do not emit the sequence between cc0 setter and user.
7353 2013-03-25 Kai Tietz <ktietz@redhat.com>
7355 * config/i386/predicates.md (local_symbolic_operand): Interpret
7356 dll-imported symbols as none-local.
7358 2013-03-25 Richard Biener <rguenther@suse.de>
7360 * tree-ssa-loop-im.c (struct depend): Remove.
7361 (struct lim_aux_data): Make depends a vec of gimples.
7362 (free_lim_aux_data): Adjust.
7363 (add_dependency): Likewise.
7364 (set_level): Likewise.
7366 2013-03-25 Richard Biener <rguenther@suse.de>
7369 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
7370 the pointer returned by calls with ECF_MALLOC set.
7372 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
7374 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
7376 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
7378 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
7379 using MMXMODE mode iterator.
7380 (*move<mode>_internal): Merge with *movv2sf_internal and
7381 *movv2sf_internal_rex64 using MMXMODE mode iterator.
7383 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
7385 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
7386 (record_last_mem_set_info): Likewise.
7388 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
7389 of XNEWVEC followed by memset.
7390 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
7392 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
7394 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
7395 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
7396 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
7397 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
7398 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
7399 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
7400 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
7401 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
7402 BARRIER_P instead of GET_CODE.
7404 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
7406 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
7407 inaccuracy in the probing code.
7409 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
7410 (ctrapdi4): Likewise.
7412 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
7414 * calls.c (expand_call): Add missing guard to code handling return
7415 of non-BLKmode structures in MSB.
7416 * function.c (expand_function_end): Likewise.
7418 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
7420 * combine.c (try_combine): Adjust comment. Do not add the set of
7421 insn #0 if the destination indirectly is set or dies in insn #2.
7422 Tidy up code to distribute a new note.
7424 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
7426 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
7427 also for alternatives 16 and 17.
7429 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
7431 * config/i386/sse.md (*mov<mode>_internal): Merge with
7432 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
7433 Emit insn template depending on type attribute. Use
7434 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
7435 movd instead of movq mnemonic for interunit moves. Rewrite mode
7436 attribute calculation. Remove unit attribute calculation.
7437 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
7438 Set prefix_data16 attribute for DImode ssemov types.
7439 Use Ym instead of y for SSE-MMX conversion alternatives.
7440 Reorder operand constraints.
7442 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
7444 * df.h (df_insn_delete): Adjust prototype.
7445 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
7446 and let it decide whether mark the basic block dirty.
7447 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
7448 * df-scan.c (df_insn_info_delete): New helper function, split
7449 off from df_insn_delete.
7450 (df_scan_free_bb_info): Use it.
7451 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
7453 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
7454 that the insn is actually an insn and it has a non-NULL basic block.
7455 Do not mark basic block dirty if only deleting a DEBUG_INSN.
7457 2013-03-22 Richard Biener <rguenther@suse.de>
7459 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
7461 (mem_ref_alloc): Do not allocate them.
7462 (refs_independent_p): Do not query or maintain a cache.
7464 2013-03-22 Richard Biener <rguenther@suse.de>
7466 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
7467 (gather_mem_refs_in_loops): Do not compute it.
7468 (analyze_memory_references): Do not allocate it.
7469 (tree_ssa_lim_finalize): Do not free it.
7470 (for_all_locs_in_loop): Do not query all_refs_in_loop.
7472 2013-03-22 Richard Biener <rguenther@suse.de>
7474 * is-a.h (as_a): Use gcc_checking_assert.
7476 2013-03-22 Ian Bolton <ian.bolton@arm.com>
7478 * config/aarch64/aarch64.c (aarch64_print_operand): New
7479 format specifier for printing a constant in hex.
7480 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
7481 format specifier for printing second operand.
7483 2013-03-22 Richard Biener <rguenther@suse.de>
7485 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
7487 (gather_mem_refs_in_loops): Perform store accumulation here.
7488 (create_vop_ref_mapping_loop): Remove.
7489 (create_vop_ref_mapping): Likewise.
7490 (analyze_memory_references): Initialize refs_stored_in_loop.
7491 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
7492 (record_indep_loop): Remove.
7493 (record_dep_loop): New function.
7494 (ref_indep_loop_p_1): Adjust to only walk over references
7495 in the loop, not its subloops.
7496 (ref_indep_loop_p): Rename to ...
7497 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
7498 maintaining a more fine-grained cache.
7499 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
7500 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
7502 2013-03-22 Richard Biener <rguenther@suse.de>
7504 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
7505 (struct mem_ref): Make accesses_in_loop a vec of a vec of
7506 aggregate mem_ref_loc.
7507 (free_mem_ref_locs): Inline into ...
7508 (memref_free): ... this and adjust.
7509 (mem_ref_alloc): Adjust.
7510 (mem_ref_locs_alloc): Remove.
7511 (record_mem_ref_loc): Adjust.
7512 (get_all_locs_in_loop): Rewrite into ...
7513 (for_all_locs_in_loop): ... this iterator.
7514 (rewrite_mem_ref_loc): New functor.
7515 (rewrite_mem_refs): Use for_all_locs_in_loop.
7516 (sm_set_flag_if_changed): New functor.
7517 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
7518 (ref_always_accessed): New functor.
7519 (ref_always_accessed_p): Use for_all_locs_in_loop.
7521 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
7523 * tree-pass.h (PROP_gimple_lvec): New.
7524 * passes.c (dump_properties): Handle PROP_gimple_lvec.
7525 (init_optimization_passes): Move pass_lower_vector.
7526 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
7528 (pass_lower_vector): Provide PROP_gimple_lvec.
7529 (pass_lower_vector_ssa): Likewise.
7530 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
7532 2013-03-21 Mark Wielaard <mjw@redhat.com>
7534 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
7536 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
7538 * config/i386/i386.md (*movdi_internal): Disparage slightly
7539 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
7540 conversion alternatives.
7542 2013-03-21 Jakub Jelinek <jakub@redhat.com>
7545 * diagnostic.def (DK_WERROR): New kind.
7546 * diagnostic.h (werrorcount): Define.
7547 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
7548 promoted to DK_ERROR, increment DK_WERROR counter instead of
7550 * toplev.c (toplev_main): Call print_ignored_options even if
7551 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
7552 even if just werrorcount is non-zero.
7555 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
7557 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
7558 (string_cst_pool_decl): New function.
7559 (optimize_one_addr_into_implicit_ptr): New function.
7560 (resolve_addr_in_expr): Optimize DWARF location expression
7561 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
7562 which doesn't live in memory, but has DW_AT_location or
7563 DW_AT_const_value, or refers to a string literal, into
7564 DW_OP_GNU_implicit_pointer.
7565 (optimize_location_into_implicit_ptr): New function.
7566 (resolve_addr): If removing DW_AT_location of a variable because
7567 it was DW_OP_addr of address of the variable, but the variable doesn't
7568 live in memory, try to emit const value attribute for the initializer.
7570 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
7572 * tree.h (VECTOR_TYPE_P): New macro.
7573 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
7575 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
7576 VEC_COND_EXPR cannot be lvalues.
7577 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
7579 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
7581 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
7582 Restrict the transformation to equal modes.
7584 2013-03-21 Richard Biener <rguenther@suse.de>
7586 PR tree-optimization/39326
7587 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
7588 (MEM_ANALYZABLE): Adjust.
7589 (record_mem_ref_loc): Move bitmap ops ...
7590 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
7591 unanalyzable refs, do not record locations for it.
7592 (analyze_memory_references): Allocate ref zero as shared
7594 (refs_independent_p): Do not test for unanalyzed mems here.
7595 (ref_indep_loop_p_1): Special-case disambiguation against
7597 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
7599 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
7601 * config/arm/arm-protos.h (tune_params): Add
7602 prefer_neon_for_64bits field.
7603 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
7604 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
7605 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
7606 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
7607 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
7608 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
7609 (arm_option_override): Handle -mneon-for-64bits new option.
7610 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
7611 (prefer_neon_for_64bits): Declare new variable.
7612 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
7613 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
7614 (arch_enabled): Handle new arch types. Remove support for onlya8
7616 (one_cmpldi2): Use new arch names.
7617 (zero_extend<mode>di2, extend<mode>di2): Ditto.
7618 * config/arm/arm.opt (mneon-for-64bits): Add option.
7619 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
7620 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
7621 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
7623 * doc/invoke.texi (-mneon-for-64bits): Document.
7625 2013-03-21 Richard Biener <rguenther@suse.de>
7627 PR tree-optimization/39326
7628 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
7629 (sort_bbs_in_loop_postorder_cmp): New function.
7630 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
7632 2013-03-21 Richard Biener <rguenther@suse.de>
7634 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
7635 (vect_insert_into_interleaving_chain): Likewise.
7636 (vect_drs_dependent_in_basic_block): Inline ...
7637 (vect_slp_analyze_data_ref_dependence): ... here. New function,
7639 (vect_analyze_data_ref_dependence): ... here. Simplify.
7640 (vect_check_interleaving): Simplify.
7641 (vect_analyze_data_ref_dependences): Likewise. Split out ...
7642 (vect_slp_analyze_data_ref_dependences): ... this new function.
7643 (dr_group_sort_cmp): New function.
7644 (vect_analyze_data_ref_accesses): Compute data-reference groups
7645 here instead of in vect_analyze_data_ref_dependence. Use
7646 a more efficient algorithm.
7647 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
7648 vect_slp_analyze_data_ref_dependences. Call
7649 vect_analyze_data_ref_accesses earlier.
7650 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
7651 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
7652 (vect_slp_analyze_data_ref_dependences): New prototype.
7654 2013-03-21 Richard Biener <rguenther@suse.de>
7656 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
7657 ref is stored in the loop.
7658 (find_refs_for_sm): Walk only over all stores.
7659 (store_motion_loop): Allocate from lim_bitmap_obstack.
7660 (store_motion): Likewise.
7662 2013-03-21 Richard Biener <rguenther@suse.de>
7664 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
7665 Update virtual SSA form.
7667 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7669 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
7670 * configure: Regenerate.
7671 * config.in: Regenerate.
7672 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
7673 if !HAVE_LD_EH_FRAME_CIEV3.
7675 2013-03-21 Richard Biener <rguenther@suse.de>
7677 * tree-cfg.c (verify_expr_no_block): New function.
7678 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
7679 nor DECL_VALUE_EXPR have locations with associated blocks.
7680 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
7681 (clear_unused_block_pointer): Remove code dealing with
7682 blocks in DECL_DEBUG_EXPR locations.
7684 2013-03-21 Richard Biener <rguenther@suse.de>
7686 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
7687 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
7688 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
7689 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
7690 instead of DECL_DEBUG_EXPR_IS_FROM.
7691 * gimplify.c (gimplify_modify_expr): Likewise.
7692 * tree-cfg.c (verify_expr_location_1): Likewise.
7693 * tree-complex.c (create_one_component_var): Likewise.
7694 * tree-sra.c (create_access_replacement): Likewise.
7695 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
7696 (clear_unused_block_pointer): Likewise.
7697 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
7698 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
7699 * var-tracking.c (var_debug_decl): Likewise.
7700 (track_expr_p): Likewise.
7701 * tree-inline.c (add_local_variables): Likewise. Set
7702 DECL_HAS_DEBUG_EXPR_P after copying it.
7703 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
7704 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
7706 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
7709 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
7710 * configure: Regenerate.
7711 * config.in: Regenerate.
7712 * config/i386/i386.md (*movdf_internal): Use
7713 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
7714 movd instead of movq mnemonic for interunit moves.
7715 (*movdi_internal): Ditto.
7717 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7719 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
7720 (abd<mode>_3): New pattern.
7721 (aba<mode>_3): New pattern.
7722 (fabd<mode>_3): New pattern.
7724 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7726 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
7727 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
7728 occurrence of REGISTER_PREFIX as its empty string.
7730 2013-03-20 Jeff Law <law@redhat.com>
7732 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
7733 addititional equivalences for equality comparisons between an SSA_NAME
7734 and a constant where the SSA_NAME was set from a widening conversion.
7736 2013-03-20 Walter Lee <walt@tilera.com>
7738 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
7740 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
7742 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
7743 depending on type attribute.
7744 (*movti_internal): Ditto.
7745 (*movtf_internal): Ditto.
7746 (*movxf_internal): Ditto.
7747 (*movdf_internal): Ditto.
7748 (*movsf_internal): Ditto.
7750 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
7752 * config/i386/i386.md (*movti_internal): Set prefix attribute to
7753 maybe_vex for sselog1 and ssemov types.
7754 (*movdi_internal): Reorder operand constraints.
7755 (*movsi_internal): Ditto. Set prefix attribute to
7756 maybe_vex for sselog1 and ssemov types.
7757 (*movtf_internal): Set prefix attribute to maybe_vex
7758 for sselog1 and ssemov types.
7759 (*movdf_internal): Ditto. Set prefix_data16 attribute for
7760 DImode ssemov types. Reorder operand constraints.
7761 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
7762 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
7763 attribute for SImode ssemov types. Reorder operand constraints.
7765 2013-03-20 Martin Jambor <mjambor@suse.cz>
7767 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
7768 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
7770 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
7772 * config/rs6000/predicates.md (indexed_address, update_address_mem
7773 update_indexed_address_mem): New predicates.
7774 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
7775 attribute for load/store instructions.
7776 * config/rs6000/dfp.md (movsd_store): Likewise.
7777 (movsd_load): Likewise.
7778 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
7779 (unnamed HI->DI extend define_insn): Likewise.
7780 (unnamed SI->DI extend define_insn): Likewise.
7781 (unnamed QI->SI extend define_insn): Likewise.
7782 (unnamed QI->HI extend define_insn): Likewise.
7783 (unnamed HI->SI extend define_insn): Likewise.
7784 (unnamed HI->SI extend define_insn): Likewise.
7785 (extendsfdf2_fpr): Likewise.
7786 (movsi_internal1): Likewise.
7787 (movsi_internal1_single): Likewise.
7788 (movhi_internal): Likewise.
7789 (movqi_internal): Likewise.
7790 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
7791 attribute for load/store instructions.
7792 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
7794 (mov<mode>_softfloat): Likewise.
7795 (mov<mode>_hardfloat32): Likewise.
7796 (mov<mode>_hardfloat64): Likewise.
7797 (mov<mode>_softfloat64): Likewise.
7798 (movdi_internal32): Likewise.
7799 (movdi_internal64): Likewise.
7800 (probe_stack_<mode>): Likewise.
7802 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
7804 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
7805 floating point, and decimal floating point to reload iterator.
7807 * config/rs6000/constraints.md (wl constraint): New constraints to
7808 return FLOAT_REGS if certain options are used to reduce the number
7809 of separate patterns that exist in the file.
7810 (wx constraint): Likewise.
7811 (wz constraint): Likewise.
7813 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
7814 -mdebug=reg, print wg, wl, wx, and wz constraints.
7815 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
7816 Initialize the reload functions for 64-bit binary/decimal floating
7818 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
7819 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
7820 create the buffer on the stack to overcome not having a 32-bit
7822 (rs6000_emit_move): Likewise.
7823 (rs6000_secondary_memory_needed_rtx): Likewise.
7824 (rs6000_alloc_sdmode_stack_slot): Likewise.
7825 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
7826 via xxlxor, just like DFmode 0.0.
7828 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
7829 define as 1 if we are running on a power7 or newer.
7830 (enum r6000_reg_class_enum): Add new constraints.
7832 * config/rs6000/dfp.md (movsd): Delete, combine with binary
7833 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
7834 with other moves by using conditional constraits (wg). Use LFIWZX
7835 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
7836 (movsd splitter): Likewise.
7837 (movsd_hardfloat): Likewise.
7838 (movsd_softfloat): Likewise.
7840 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
7841 binary and decimal floating point moves.
7842 (fmove_ok): New attributes to combine binary and decimal floating
7843 point moves, and to combine power6x (mfpgpr) moves along normal
7845 (real_value_to_target): Likewise.
7852 (movsf): Combine binary and decimal floating point moves. Combine
7853 power6x (mfpgpr) moves with other moves by using conditional
7854 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
7855 (mov<mode> for SFmode/SDmode); Likewise.
7856 (SFmode/SDmode splitters): Likewise.
7857 (movsf_hardfloat): Likewise.
7858 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
7859 (movsf_softfloat): Likewise.
7860 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
7862 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
7863 wx and wz constraints.
7865 * config/rs6000/constraints.md (wg constraint): New constraint to
7866 return FLOAT_REGS if -mmfpgpr (power6x) was used.
7868 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
7871 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
7872 -mdebug=reg, print wg, wl, wx, and wz constraints.
7873 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
7874 Initialize the reload functions for 64-bit binary/decimal floating
7876 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
7877 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
7878 create the buffer on the stack to overcome not having a 32-bit
7880 (rs6000_emit_move): Likewise.
7881 (rs6000_secondary_memory_needed_rtx): Likewise.
7882 (rs6000_alloc_sdmode_stack_slot): Likewise.
7883 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
7884 via xxlxor, just like DFmode 0.0.
7886 * config/rs6000/dfp.md (movdd): Delete, combine with binary
7887 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
7888 with other moves by using conditional constraits (wg). Use LFIWZX
7889 and STFIWX for loading SDmode on power7.
7890 (movdd splitters): Likewise.
7891 (movdd_hardfloat32): Likewise.
7892 (movdd_softfloat32): Likewise.
7893 (movdd_hardfloat64_mfpgpr): Likewise.
7894 (movdd_hardfloat64): Likewise.
7895 (movdd_softfloat64): Likewise.
7897 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
7898 64-bit binary and decimal floating point moves.
7899 (FMOVE64X): Likewise.
7900 (movdf): Combine 64-bit binary and decimal floating point moves.
7901 Combine power6x (mfpgpr) moves with other moves by using
7902 conditional constraits (wg).
7903 (mov<mode> for DFmode/DDmode): Likewise.
7904 (DFmode/DDmode splitters): Likewise.
7905 (movdf_hardfloat32): Likewise.
7906 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
7907 (movdf_softfloat32): Likewise.
7908 (movdf_hardfloat64_mfpgpr): Likewise.
7909 (movdf_hardfloat64): Likewise.
7910 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
7911 (movdf_softfloat64): Likewise.
7912 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
7913 (reload_<mode>_load): Move to later in the file so they aren't in
7914 the middle of the floating point move insns.
7915 (reload_<mode>_store): Likewise.
7917 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
7920 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
7921 constraint if -mdebug=reg.
7922 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
7923 Enable using dd reload support if needed.
7925 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
7926 binary and decimal floating point moves in rs6000.md.
7927 (movtd_internal): Likewise.
7929 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
7930 decimal floating point moves.
7932 (movtf_internal): Likewise.
7933 (mov<mode>_internal, TDmode/TFmode): Likewise.
7934 (movtf_softfloat): Likewise.
7935 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
7937 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
7938 movdi_internal64, using wg constraint for move direct operations.
7939 (movdi_internal64): Likewise.
7941 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
7942 MODES_TIEABLE_P for selected modes. Print the numerical value of
7943 the various virtual registers. Use GPR/FPR first/last values,
7944 instead of hard coding the register numbers. Print which modes
7945 have reload functions registered.
7946 (rs6000_option_override_internal): If -mdebug=reg, trace the options
7947 settings before/after setting cpu, target and subtarget settings.
7948 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
7949 and for secondary reload failures in rs6000_secondary_reload_inner.
7950 (rs6000_secondary_reload_fail): Likewise.
7951 (rs6000_secondary_reload_inner): Likewise.
7953 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
7954 macros for first/last GPR and FPR registers.
7955 (LAST_GPR_REGNO): Likewise.
7956 (FIRST_FPR_REGNO): Likewise.
7957 (LAST_FPR_REGNO): Likewise.
7959 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
7960 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
7961 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
7962 (vcond<mode><mode>): Likewise.
7963 (vcondu<mode><mode>): Likewise.
7964 (vector_gtu<mode>): Likewise.
7965 (vector_gte<mode>): Likewise.
7966 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
7967 to prevent the compiler from converting DImode operations to TImode.
7968 (ior<mode>3): Likewise.
7969 (and<mode>3): Likewise.
7970 (one_cmpl<mode>2): Likewise.
7971 (nor<mode>3): Likewise.
7972 (andc<mode>3): Likewise.
7974 * config/rs6000/constraints.md (wt constraint): New constraint
7975 that returns VSX_REGS if TImode is allowed in VSX registers.
7977 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
7980 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
7981 similar to TImode, but it is restricted to being in the GPRs.
7983 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
7984 TImode to occupy a single VSX register.
7986 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
7987 -mvsx-timode for power7/power8.
7988 (power7 cpu): Likewise.
7989 (power8 cpu): Likewise.
7991 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
7992 sure that TFmode/TDmode take up two registers if they are ever
7993 allowed in the upper VSX registers.
7994 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
7996 (rs6000_init_hard_regno_mode_ok): Likewise.
7997 (rs6000_debug_reg_global): Add debugging for PTImode and wt
7998 constraint. Print if LRA is turned on.
7999 (rs6000_option_override_internal): Give an error if -mvsx-timode
8000 and VSX is not enabled.
8001 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
8002 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
8003 to reg+offset addressing. Use PTImode when checking offset
8004 addresses for validity.
8005 (reg_offset_addressing_ok_p): Likewise.
8006 (rs6000_legitimate_offset_address_p): Likewise.
8007 (rs6000_legitimize_address): Likewise.
8008 (rs6000_legitimize_reload_address): Likewise.
8009 (rs6000_legitimate_address_p): Likewise.
8010 (rs6000_eliminate_indexed_memrefs): Likewise.
8011 (rs6000_emit_move): Likewise.
8012 (rs6000_secondary_reload): Likewise.
8013 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
8014 reloads to fpr registers to continue to use reg+offset addressing,
8015 but 64-bit reloads to altivec registers need reg+reg addressing.
8016 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
8017 it. Treat LO_SUM like a PLUS operation.
8018 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
8019 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
8020 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
8021 registers to share a register with a smaller sized type, since VSX
8022 puts scalars in the upper 64-bits.
8023 (print_operand): Add support for PTImode.
8024 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
8025 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
8026 registers, but don't have arithmetic support.
8027 (rs6000_memory_move_cost): Add test for VSX.
8028 (rs6000_opt_masks): Add -mvsx-timode.
8030 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
8033 (VSr): Use wt constraint for TImode.
8034 (VSv): Drop TImode support.
8035 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
8036 (vsx_movti_64bit): Likewise.
8037 (vsx_movti_32bit): Likewise.
8038 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
8039 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
8040 one '?' on the appropriate output constraint. Do not allow TImode
8041 logical operations on 32-bit systems.
8042 (vsx_ior<mode>3): Likewise.
8043 (vsx_xor<mode>3): Likewise.
8044 (vsx_one_cmpl<mode>2): Likewise.
8045 (vsx_nor<mode>3): Likewise.
8046 (vsx_andc<mode>3): Likewise.
8047 (vsx_concat_<mode>): Likewise.
8048 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
8050 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
8051 OPTION_MASK_VSX_TIMODE.
8052 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
8053 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
8055 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
8056 (TI2 iterator): New iterator for TImode, PTImode.
8057 (wd mode attribute): Add values for vector types.
8058 (movti_string): Replace TI move operations with operations for TImode
8059 and PTImode. Add support for TImode being allowed in VSX registers.
8060 (mov<mode>_string, TImode/PTImode): Likewise.
8061 (movti_ppc64): Likewise.
8062 (mov<mode>_ppc64, TImode/PTImode): Likewise.
8063 (TI mode splitters): Likewise.
8065 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
8068 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
8070 PR tree-optimization/56355
8071 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
8072 Also handle integers with undefined overflow.
8074 2013-03-20 Catherine Moore <clm@codesourcery.com>
8075 Maciej W. Rozycki <macro@codesourcery.com>
8076 Tom de Vries <tom@codesourcery.com>
8077 Nathan Sidwell <nathan@codesourcery.com>
8078 Iain Sandoe <iain@codesourcery.com>
8079 Nathan Froyd <froydnj@codesourcery.com>
8080 Chao-ying Fu <fu@mips.com>
8082 * doc/extend.texi: (micromips, nomicromips, nocompression):
8083 Document new function attributes.
8084 * doc/invoke.texi (minterlink-compressed, mmicromips,
8085 m14k, m14ke, m14kec): Document new options.
8086 (minterlink-mips16): Update documentation.
8087 * doc/md.texi (ZC, ZD): Document new constraints.
8088 * configure.ac (gcc_cv_as_micromips): Check if linker
8089 supports the .set micromips directive.
8090 * configure: Regenerate.
8091 * config.in: Regenerate.
8092 * config/mips/mips-tables.opt: Regenerate.
8093 * config/mips/micromips.md: New file.
8094 * constraints.md (ZC, ZD): New constraints.
8095 * config/mips/predicates.md (movep_src_register): New predicate.
8096 (movep_src_operand): New predicate.
8097 (non_volatile_mem_operand): New predicate.
8098 * config/mips/mips.md (multimem): New type.
8099 (length): Differentiate between 17-bit and 18-bit branch offsets.
8100 (MOVEP1, MOVEP2): New mode iterator.
8101 (mov_<load>l): Use ZC constraint.
8102 (mov_<load>r): Likewise.
8103 (mov_<store>l): Likewise.
8104 (mov_<store>r): Likewise.
8105 (*branch_equality<mode>_inverted): Add microMIPS support.
8106 (*branch_equality<mode>): Likewise.
8107 (*jump_absolute): Likewise.
8108 (indirect_jump_<mode>): Likewise.
8109 (tablejump_<mode>): Likewise.
8110 (<optab>_internal): Likewise.
8111 (sibcall_internal): Likewise.
8112 (sibcall_value_internal): Likewise.
8113 (prefetch): Use constraint ZD.
8114 * config/mips/mips.opt (minterlink-compressed): New option.
8115 (minterlink-mips16): Now an alias for minterlink-compressed.
8116 (mmicromips): New option.
8117 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
8118 (compare_and_swap_12): Likewise.
8119 (sync_add<mode>): Likewise.
8120 (sync_<optab>_12): Likewise.
8121 (sync_old_<optab>_12): Likewise.
8122 (sync_new_<optab>_12): Likewise.
8123 (sync_nand_12): Likewise.
8124 (sync_old_nand_12): Likewise.
8125 (sync_new_nand_12): Likewise.
8126 (sync_sub<mode>): Likewise.
8127 (sync_old_add<mode>): Likewise.
8128 (sync_old_sub<mode>): Likewise.
8129 (sync_new_add<mode>): Likewise.
8130 (sync_new_sub<mode>): Likewise.
8131 (sync_<optab><mode>): Likewise.
8132 (sync_old_<optab><mode>): Likewise.
8133 (sync_new_<optab><mode>): Likewise.
8134 (sync_nand<mode>): Likewise.
8135 (sync_old_nand<mode>): Likewise.
8136 (sync_new_nand<mode>): Likewise.
8137 (sync_lock_test_and_set<mode>): Likewise.
8138 (test_and_set_12): Likewise.
8139 (atomic_compare_and_swap<mode>): Likewise.
8140 (atomic_exchange<mode>_llsc): Likewise.
8141 (atomic_fetch_add<mode>_llsc): Likewise.
8142 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
8143 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
8144 (umips_save_restore_pattern_p): Likewise.
8145 (umips_load_store_pair_p): Likewise.
8146 (umips_output_load_store_pair): Likewise.
8147 (umips_movep_target_p): Likewise.
8148 (umips_12bit_offset_address_p): Likewise.
8149 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
8150 (mips_base_mips16): Rename this...
8151 (mips_base_compression_flags): ...to this. Update all uses.
8152 (mips_attribute_table): Add micromips, nomicromips and nocompression.
8153 (mips_mips16_decl_p): Delete.
8154 (mips_nomips16_decl_p): Delete.
8155 (mips_get_compress_on_flags): New function.
8156 (mips_get_compress_off_flags): New function.
8157 (mips_get_compress_mode): New function.
8158 (mips_get_compress_on_name): New function.
8159 (mips_get_compress_off_name): New function.
8160 (mips_insert_attributes): Support multiple compression types.
8161 (mips_merge_decl_attributes): Likewise.
8162 (umips_12bit_offset_address_p): New function.
8163 (mips_start_function_definition): Emit .set micromips directive.
8164 (mips_call_may_need_jalx_p): New function.
8165 (mips_function_ok_for_sibcall): Add microMIPS support.
8166 (mips_print_operand_punctuation): Support short delay slots and
8168 (umips_swm_mask, umips_swm_encoding): New.
8169 (umips_build_save_restore): New function.
8170 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
8171 (was_mips16_p): Remove.
8172 (old_compression_mode): New.
8173 (mips_set_compression_mode): New function.
8174 (mips_set_current_function): Add microMIPS support.
8175 (mips_option_override): Likewise.
8176 (umips_save_restore_pattern_p): New function.
8177 (umips_output_save_restore): New function.
8178 (umips_load_store_pair_p_1): New function.
8179 (umips_load_store_pair_p): New function.
8180 (umips_output_load_store_pair_1): New function.
8181 (umips_output_load_store_pair): New function.
8182 (umips_movep_target_p) New function.
8183 (mips_prepare_pch_save): Add microMIPS support.
8184 * config/mips/mips.h (TARGET_COMPRESSION): New.
8185 (TARGET_CPU_CPP_BUILTINS): Update macro
8186 to use new compression flags and to support microMIPS.
8187 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
8188 (MIPS_ARCH_FLOAT_SPEC): Likewise.
8189 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
8190 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
8191 (ASM_SPEC): Support mmicromips and mno-micromips.
8192 (M16STORE_REG_P): New macro.
8193 (MIPS_CALL): Support TARGET_MICROMIPS.
8194 (MICROMIPS_J): New macro.
8195 (mips_base_mips16): Rename this...
8196 (mips_base_compression_flags): ...to this.
8197 (UMIPS_12BIT_OFFSET_P): New macro.
8198 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
8199 (MULTILIB_DIRNAMES): Likewise.
8200 2013-03-20 Richard Biener <rguenther@suse.de>
8202 PR tree-optimization/56661
8203 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
8204 the result does not have to be distinct.
8206 2013-03-20 Richard Biener <rguenther@suse.de>
8208 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
8211 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8212 Steven Bosscher <steven@gcc.gnu.org>
8214 PR rtl-optimization/56605
8215 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
8217 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
8220 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
8221 that require movd instead of movq.
8223 2013-03-20 Richard Biener <rguenther@suse.de>
8225 * tree-ssa-structalias.c (struct variable_info): Add pointer
8226 to the first field of an aggregate with sub-vars. Make
8227 this and the pointer to the next subfield its ID.
8228 (vi_next): New function.
8229 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
8230 storedanything_id, integer_id): Increment by one.
8231 (new_var_info, get_call_vi, lookup_call_clobber_vi,
8232 get_call_clobber_vi): Adjust.
8233 (solution_set_expand): Simplify and speedup.
8234 (solution_set_add): Inline into ...
8235 (set_union_with_increment): ... this. Adjust accordingly.
8236 (do_sd_constraint): Likewise.
8237 (do_ds_constraint): Likewise.
8238 (do_complex_constraint): Simplify.
8239 (build_pred_graph): Adjust.
8240 (solve_graph): Likewise. Simplify and speedup.
8241 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
8242 get_constraint_for_component_ref, get_constraint_for_1,
8243 first_vi_for_offset, first_or_preceding_vi_for_offset,
8244 create_function_info_for, create_variable_info_for_1,
8245 create_variable_info_for, intra_create_variable_infos): Adjust.
8246 (init_base_vars): Push NULL for ID zero.
8247 (compute_points_to_sets): Adjust.
8249 2013-03-20 Richard Biener <rguenther@suse.de>
8251 * cfgloop.c (verify_loop_structure): Streamline and avoid
8252 ICEing on corrupt loop tree.
8253 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
8256 2013-03-20 Richard Biener <rguenther@suse.de>
8258 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
8259 check whether an SSA update is needed.
8261 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
8263 * config/mips/constraints.md (T): Rename to...
8267 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
8268 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
8270 2013-03-19 Ian Bolton <ian.bolton@arm.com>
8272 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
8273 (*subsi3_carryin_uxtw): Likewise.
8275 2013-03-19 Ian Bolton <ian.bolton@arm.com>
8277 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
8278 (*rorsi3_insn_uxtw): Likewise.
8280 2013-03-19 Ian Bolton <ian.bolton@arm.com>
8282 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
8283 (*extrsi5_insn_uxtw): Likewise.
8285 2013-03-19 Richard Biener <rguenther@suse.de>
8287 PR tree-optimization/56273
8288 * passes.c (init_optimization_passes): Move second VRP after DOM.
8290 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
8292 * config/i386/i386.md (*movti_internal): Merge from
8293 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
8294 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
8295 nox64 isa attributes.
8297 2013-03-18 Richard Biener <rguenther@suse.de>
8299 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
8301 (merge_node_constraints): Likewise.
8302 (build_succ_graph): Likewise.
8303 (valid_graph_edge): Inline into single caller.
8304 (unify_nodes): Likewise. Use bitmap_set_bit return value
8306 (scc_visit): Fix formatting and variable use.
8307 (do_sd_constraint): Use gcc_checking_assert.
8308 (do_ds_constraint): Likewise.
8309 (do_complex_constraint): Likewise.
8310 (condense_visit): Likewise. Cleanup.
8311 (dump_pred_graph): New function.
8312 (perform_var_substitution): Dump the pred-graph before
8313 variable substitution.
8314 (find_equivalent_node): Use gcc_checking_assert.
8315 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
8317 2013-03-18 Richard Biener <rguenther@suse.de>
8319 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
8320 Remove cond_expr_stmt_list argument and do not gimplify the
8322 (vect_loop_versioning): Adjust.
8323 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
8324 Cleanup to use less temporaries.
8325 (vect_create_data_ref_ptr): Cleanup.
8327 2013-03-18 Jakub Jelinek <jakub@redhat.com>
8329 PR tree-optimization/56635
8330 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
8331 require types_compatible_p types.
8333 2013-03-18 Nick Clifton <nickc@redhat.com>
8335 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
8338 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
8339 Add missing line to comment describing function.
8341 2013-03-18 Richard Biener <rguenther@suse.de>
8343 PR tree-optimization/56210
8344 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8345 Handle string / character search functions.
8346 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
8348 2013-03-18 Richard Biener <rguenther@suse.de>
8351 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
8352 and implement properly.
8353 * gimple.h (gimple_cond_single_var_p): Remove.
8355 2013-03-18 Richard Biener <rguenther@suse.de>
8357 * tree-data-ref.h (find_data_references_in_loop): Declare.
8358 * tree-data-ref.c (get_references_in_stmt): Use a stack
8359 vector pre-allocated in the callers.
8360 (find_data_references_in_stmt): Adjust.
8361 (graphite_find_data_references_in_stmt): Likewise.
8362 (create_rdg_vertices): Likewise.
8363 (find_data_references_in_loop): Export.
8364 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
8365 Compute dependences here...
8366 (vect_analyze_data_refs): ...not here. When we encounter
8367 a non-vectorizable data reference in basic-block vectorization
8368 truncate the data reference vector. Do not bother to
8369 fixup data-dependence information for gather loads.
8370 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
8371 of data references, as reported.
8373 2013-03-18 Richard Biener <rguenther@suse.de>
8375 PR tree-optimization/3713
8376 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
8377 has_constants and expr.
8378 (stmt_has_constants): Properly valueize SSA names when deciding
8379 whether the stmt has constants.
8381 2013-03-18 Richard Biener <rguenther@suse.de>
8383 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
8384 whole function when there is nothing to do.
8385 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
8386 * tree-vectorizer.c (vectorize_loops): Update virtual and
8387 loop-closed SSA once.
8388 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
8390 2013-03-18 Richard Biener <rguenther@suse.de>
8393 * domwalk.c (bb_postorder): New global static.
8394 (cmp_bb_postorder): New function.
8395 (walk_dominator_tree): Replace scheme imposing an order for
8396 visiting dominator sons by one sorting them at the time they
8397 are pushed on the stack.
8399 2013-03-18 Richard Biener <rguenther@suse.de>
8401 PR tree-optimization/39326
8402 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
8403 (struct mem_ref): Replace mem member with ao_ref typed member.
8404 (MEM_ANALYZABLE): Adjust.
8405 (memref_eq): Likewise.
8406 (mem_ref_alloc): Likewise.
8407 (gather_mem_refs_stmt): Likewise.
8408 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
8409 (execute_sm_if_changed_flag_set): Adjust.
8410 (execute_sm): Likewise.
8411 (ref_always_accessed_p): Likewise.
8412 (refs_independent_p): Likewise.
8413 (can_sm_ref_p): Likewise.
8415 2013-03-18 Jakub Jelinek <jakub@redhat.com>
8418 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
8419 return 1 even for !unsignedp.
8421 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
8423 * config/i386/i386.md (isa): Add x64 and nox64.
8424 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
8425 (*pushtf): Enable *roF alternative for x64 isa only.
8426 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
8427 mode attribute of integer alternatives to DImode for TARGET_64BIT.
8428 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
8429 (*movtf_internal): Merge from *movtf_internal_rex64 and
8430 *movtf_internal_sse. Use x64 and nox64 isa attributes.
8431 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
8432 nox64 isa attributes.
8433 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
8434 nox64 isa attributes.
8435 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
8437 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
8439 * config/alpha/alpha.c (TARGET_LRA_P): New define.
8441 2013-03-17 Jakub Jelinek <jakub@redhat.com>
8444 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
8445 class names. Remove trailing comma after "ALL_REGS".
8447 2013-03-16 Jan Hubicka <jh@suse.cz>
8449 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
8450 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
8451 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
8452 of cgraph_get_create_node.
8453 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
8455 2013-03-16 Jason Merrill <jason@redhat.com>
8458 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
8459 with DW_AT_default_value.
8461 2013-03-16 Jakub Jelinek <jakub@redhat.com>
8463 * BASE-VER: Set to 4.9.0.
8465 2013-03-14 Andi Kleen <ak@linux.intel.com>
8468 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
8469 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
8470 Document _x* TSX intrinsics.
8472 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
8473 David Holsgrove <david.holsgrove@xilinx.com>
8475 * configure.ac: Add MicroBlaze TLS support detection.
8476 * configure: Regenerate.
8477 * config/microblaze/microblaze-protos.h
8478 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
8479 symbol_mentioned_p, label_mentioned_p): Add prototypes.
8480 * config/microblaze/microblaze.c (microblaze_address_type): Add
8481 ADDRESS_TLS and tls_reloc address types.
8482 (microblaze_address_info): Add tls_reloc.
8483 (TARGET_HAVE_TLS): Define.
8484 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
8485 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
8486 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
8487 load_tls_operand, microblaze_call_tls_get_addr,
8488 microblaze_legitimize_tls_address): New functions.
8489 (microblaze_classify_unspec): Handle UNSPEC_TLS.
8490 (get_base_reg): Use microblaze_tls_symbol_p.
8491 (microblaze_classify_address): Handle TLS.
8492 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
8493 label_mentioned_p and microblaze_tls_referenced_p.
8494 (microblaze_legitimize_address): Handle TLS.
8495 (microblaze_address_insns): Handle ADDRESS_TLS.
8496 (pic_address_needs_scratch): Handle TLS.
8497 (print_operand_address): Handle TLS.
8498 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
8499 (microblaze_expand_move): Handle TLS.
8500 (microblaze_legitimate_constant_p): Check
8501 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8502 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
8503 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
8504 (PIC_OFFSET_TABLE_REGNUM): Set.
8505 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
8506 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
8507 (addsi3, movsi_internal2, movdf_internal): Update constraints
8508 * config/microblaze/predicates.md (arith_plus_operand): Define
8509 (move_operand): Redefine as move_src_operand,
8510 check microblaze_tls_referenced_p.
8512 2013-03-14 Ian Bolton <ian.bolton@arm.com>
8514 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
8515 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
8517 2013-03-14 Ian Bolton <ian.bolton@arm.com>
8519 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
8522 2013-03-14 Jakub Jelinek <jakub@redhat.com>
8524 PR tree-optimization/53265
8525 * common.opt (Waggressive-loop-optimizations): New option.
8526 * tree-ssa-loop-niter.c: Include tree-pass.h.
8527 (do_warn_aggressive_loop_optimizations): New function.
8528 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
8529 if number_of_latch_executions returned constant.
8530 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
8531 early. If number_of_latch_executions returned constant, set
8532 nb_iterations_upper_bound back to it.
8533 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
8535 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
8536 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
8538 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
8539 (MULTILIB_OSDIRNAMES): Set.
8540 * genmultilib: If defaultosdirname doesn't start with :: , set
8541 defaultosdirname2 instead, clear it and emit two . multilib_raw
8542 entries instead of just one.
8544 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
8546 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
8547 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
8548 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
8549 (SUBTARGET_OVERRIDE_OPTIONS): New.
8551 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
8554 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
8555 (musermode): Convert to Var(TARGET_USERMODE).
8556 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
8557 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
8558 * config/sh/sh.c (sh_option_override): Use
8559 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
8560 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
8562 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
8564 (udivsi3_i4_single, divsi3_i4_single): Use
8565 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
8567 2013-03-13 Dave Korn <dave.korn.cygwin@....>
8569 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
8572 2013-03-13 Richard Biener <rguenther@suse.de>
8574 PR tree-optimization/56608
8575 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
8576 calls when vectorizing basic-blocks.
8578 2013-03-13 Jakub Jelinek <jakub@redhat.com>
8581 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
8584 2013-03-12 Jakub Jelinek <jakub@redhat.com>
8586 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
8588 2013-03-11 Jan Hubicka <jh@suse.cz>
8591 * lto-streamer-out.c (output_symbol_p): Skip references from
8592 constructors of external variables.
8594 2013-03-11 Jan Hubicka <jh@suse.cz>
8597 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
8599 * emit-rtl.c (verify_rtx_sharing): Likewise.
8600 (copy_insn_1): Likewise.
8601 * rtl.c (copy_rtx): Likewise.
8603 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
8606 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
8607 output_operand_lossage message.
8609 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
8612 * arm.c (shift_op): Validate RTL pattern on the fly.
8613 (arm_print_operand, case 'S'): Don't use shift_operator to validate
8616 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8619 * config/pa/pa.md (call_value): Check for calls to powf and direct to
8620 new call patterns that clobber %fr12.
8621 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
8622 split and postreload patterns.
8623 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
8624 registers %fr12 and %fr12R as call used.
8626 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
8628 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
8629 (canon_address, record_store, replace_read, check_mem_read_rtx,
8630 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
8631 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
8632 rest_of_handle_dse): Likewise.
8634 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
8637 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
8639 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
8640 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
8641 (save_optabs_if_changed): Replace with...
8642 (init_tree_optimization_optabs): ...this.
8643 * optabs.c (save_optabs_if_changed): Rename to...
8644 (init_tree_optimization_optabs): ...this. Take the optimization node
8645 as argument. Do nothing if the base optabs are already correct.
8646 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
8647 to recompute optabs.
8648 * function.h (function): Remove optabs field.
8649 * function.c (invoke_set_current_function_hook): Call
8650 init_tree_optimization_optabs. Use the result to initialize
8653 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
8655 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
8656 if GTMA_HAS_NO_INSTRUMENTATION.
8657 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
8658 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
8659 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
8660 * gimple-pretty-print.c (dump_gimple_transaction): Handle
8661 GTMA_HAS_NO_INSTRUMENTATION.
8663 2013-03-08 Jakub Jelinek <jakub@redhat.com>
8665 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
8668 2013-03-08 Marek Polacek <polacek@redhat.com>
8669 Jakub Jelinek <jakub@redhat.com>
8671 PR tree-optimization/56478
8672 * predict.c (is_comparison_with_loop_invariant_p): Change the
8673 type of loop_step to tree.
8674 (predict_loops): Adjust.
8675 (predict_iv_comparison): Perform the computations on double_ints.
8677 2013-03-08 Richard Biener <rguenther@suse.de>
8679 PR tree-optimization/56570
8680 * tree-cfg.c (verify_expr_location_1): Verify locations for
8682 * tree-sra.c (create_access_replacement): Strip locations
8683 from DECL_DEBUG_EXPRs.
8685 2013-03-08 Richard Biener <rguenther@suse.de>
8687 * tree-inline.c (expand_call_inline): Do not associate
8688 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
8689 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
8691 2013-03-08 Richard Biener <rguenther@suse.de>
8693 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
8694 or block changes with -Og. Fix for location / block encoding
8695 changes and PHI arguments with locations.
8697 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
8699 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
8701 (struct output_info): Likewise.
8702 (register_overhead): Remove bad gcc_assert.
8703 (bitmap_find_bit): If there is only a single bitmap element, do not
8704 count a miss as a search.
8705 (print_statistics): Update for counter type changes.
8706 (dump_bitmap_statistics): Likewise. Print headers such that they
8707 are properly lined up with the printed counters.
8709 2013-03-07 Jakub Jelinek <jakub@redhat.com>
8711 PR tree-optimization/56559
8712 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
8713 check that it has only a single use.
8715 2013-03-07 Richard Biener <rguenther@suse.de>
8717 * doc/invoke.texi (fwhole-program): Discourage use in combination
8720 2013-03-06 Jakub Jelinek <jakub@redhat.com>
8722 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
8724 PR tree-optimization/56539
8725 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
8726 instead of GSI_CONTINUE_LINKING as last argument to
8727 force_gimple_operand_gsi. Adjust function comment.
8729 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
8733 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
8734 promoted mode, convert the result back to the original mode.
8736 2013-03-06 Richard Biener <rguenther@suse.de>
8739 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
8740 (insert_updated_phi_nodes_compare_uids): New function.
8741 (update_ssa): Sort symbols_to_rename after UID before
8742 traversing it to insert PHI nodes.
8744 2013-03-06 Richard Biener <rguenther@suse.de>
8747 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
8748 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
8751 2013-02-13 Richard Biener <rguenther@suse.de>
8754 * varasm.c (output_constant_def_1): Get the decl representing
8755 the constant as argument.
8756 (output_constant_def): Wrap output_constant_def_1.
8757 (make_decl_rtl): Use output_constant_def_1 with the decl
8758 representing the constant.
8759 (build_constant_desc): Optionally re-use a decl already
8760 representing the constant.
8761 (tree_output_constant_def): Adjust.
8763 2013-03-06 Joey Ye <joey.ye@arm.com>
8766 * gcc.c (convert_white_space): New function.
8767 (main): Handles white space in function name.
8769 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
8772 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
8773 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
8774 to SH_DIV_CALL_TABLE for TARGET_SH2.
8775 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
8777 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
8780 2013-03-05 Sterling Augustine <saugustine@google.com>
8781 Cary Coutant <ccoutant@google.com>
8784 * dwarf2out.c (resolve_addr): Don't call
8785 remove_loc_list_addr_table_entries a second time for the same
8788 2013-03-05 Jakub Jelinek <jakub@redhat.com>
8791 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
8792 (avoid_complex_debug_insns): New function.
8793 (expand_debug_locations): Call it.
8795 PR rtl-optimization/56484
8796 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
8797 lifetimes of hard registers on small register class machines.
8799 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
8801 * config/microblaze/microblaze-protos.h: Rename
8802 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
8803 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
8805 (microblaze_fast_interrupt_function_p): New function.
8806 (microblaze_is_interrupt_handler): Rename to
8807 microblaze_is_interrupt_variant and add fast_interrupt check.
8808 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
8809 (save_restore_insns): Likewise.
8810 (compute_frame_size): Likewise.
8811 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
8812 (microblaze_globalize_label): Likewise.
8813 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
8814 * config/microblaze/microblaze.md: Use wrapper
8815 microblaze_is_interrupt_variant.
8817 2013-03-05 Kai Tietz <ktietz@redhat.com>
8819 * sdbout.c (sdbout_one_type): Switch to current function's section
8820 supporting cold/hot.
8822 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
8824 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
8827 2013-03-05 Jakub Jelinek <jakub@redhat.com>
8830 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
8831 if VALGRIND_GET_VBITS is defined, temporarily make object
8832 memory all defined, and restore previous valgrind addressability
8833 and definability afterwards. Free this_object at the end.
8836 * lra.c (lra): Call lra_clear_live_ranges if live_p,
8837 right before calling lra_create_live_ranges, also call it
8838 when clearing live_p. Only call lra_clear_live_ranges
8839 at the end if live_p.
8842 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
8844 2013-03-05 Richard Biener <rguenther@suse.de>
8846 PR tree-optimization/56521
8847 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
8850 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
8853 * except.h (remove_unreachable_eh_regions): New prototype.
8854 * except.c (remove_eh_handler_splicer): New function, split out
8855 of remove_eh_handler.
8856 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
8857 warning about running it on many EH regions one at a time.
8858 (remove_unreachable_eh_regions_worker): New function, walk the
8859 EH tree in depth-first order and remove non-marked regions.
8860 (remove_unreachable_eh_regions): New function.
8861 * tree-eh.c (mark_reachable_handlers): New function, split out
8862 from remove_unreachable_handlers.
8863 (remove_unreachable_handlers): Use mark_reachable_handlers and
8864 remove_unreachable_eh_regions.
8865 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
8866 and remove_unreachable_eh_regions.
8868 2013-03-05 Richard Biener <rguenther@suse.de>
8871 * loop-init.c (fix_loop_structure): Remove loops in two stages,
8872 not freeing them until the end.
8874 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8876 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
8878 2013-03-05 Richard Biener <rguenther@suse.de>
8880 PR tree-optimization/56270
8881 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
8882 of loads after scheduling an SLP instance.
8884 2013-03-05 Jakub Jelinek <jakub@redhat.com>
8886 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
8888 (check_gcc_parallelize): Run guality.exp as a separate job from
8889 vect.exp with unsorted.exp and $(dg_target_exps) separately from
8890 struct-layout-1.exp with stackalign.exp.
8892 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
8895 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
8896 load_index sbitmap even if some bit in it isn't set.
8899 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
8900 (discover_iteration_bound_by_body_walk): Change queues to
8901 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
8902 spelling in comment. Call safe_push on queues[bound_index] directly.
8903 Release queues[queue_index] in every iteration unconditionally.
8904 Release bounds vector.
8907 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
8908 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
8909 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
8912 2013-03-05 Richard Biener <rguenther@suse.de>
8915 * tree-inline.c (remap_blocks_to_null): New function.
8916 (expand_call_inline): When expanding a call stmt without
8917 an associated block inline remap all callee blocks to NULL.
8919 2013-03-05 Jakub Jelinek <jakub@redhat.com>
8921 PR rtl-optimization/56494
8922 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
8923 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
8924 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
8927 * sel-sched-ir.c (free_sched_pools): Release
8928 succs_info_pool.stack[succs_info_pool.max_top] vectors too
8929 if succs_info_pool.max_top isn't -1.
8932 * opts.c (opts_obstack, opts_concat): Moved to...
8933 * opts-common.c (opts_obstack, opts_concat): ... here.
8935 2013-03-04 Jakub Jelinek <jakub@redhat.com>
8938 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
8940 2013-03-04 Martin Jambor <mjambor@suse.cz>
8942 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
8943 all appropriate places.
8945 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
8947 PR tree-optimization/56424
8948 * ipa-split.c (split_function): Do not set the RSO flag if result is
8949 not by reference and its type is a register type.
8951 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
8953 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
8954 (microblaze_legitimate_pic_operand): Likewise
8955 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
8956 new function microblaze_legitimate_pic_operand
8957 * config/microblaze/microblaze-protos.h
8958 (microblaze_legitimate_pic_operand): Declare.
8960 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8962 * config/microblaze/predicates.md (call_insn_simple_operand):
8963 New predicate for supported rtx code types.
8964 * config/microblaze/microblaze.md (call_internal1): Use
8965 call_insn_simple_operand predicate.
8967 2013-03-04 Jakub Jelinek <jakub@redhat.com>
8970 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
8971 partitions.ordered_remove.
8974 * tree-vect-stmts.c (vectorizable_conversion): Don't call
8975 vec_oprnds0.create (1) for modifier == NONE.
8978 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
8979 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
8980 vec_oprnds1 right before pushing anything to it for
8984 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
8985 set nbbs to 0 instead of having separate code path.
8986 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
8987 instead of false as last argument if returning NULL.
8989 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
8991 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
8992 the attribute is now called "target" instead of "option".
8993 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
8994 * doc/tm.texi.in (Target Attributes): Likewise document the correct
8995 attribute/pragma name for TARGET_OPTION_VALID_P and
8996 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
8997 * doc/tm.texi: Regenerated.
8999 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
9001 * config/microblaze/microblaze.c:
9002 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
9003 * config/microblaze/microblaze.h: Add -mxl-reorder to
9005 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
9006 instructions emitted if TARGET_REORDER.
9007 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
9008 or 0 for -m/-mno case, but initialises as 2 to detect default use case
9011 2013-03-01 Xinliang David Li <davidxl@google.com>
9013 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
9016 2013-03-01 Jakub Jelinek <jakub@redhat.com>
9019 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
9020 vector even when returning true. Fix up function comment formatting.
9023 * ira-build.c (ira_loop_nodes_count): New variable.
9024 (create_loop_tree_nodes): Initialize it.
9025 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
9028 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
9029 method on dr_chain and result_chain.
9030 * tree-vect-stmts.c (vectorizable_store): Only call
9031 result_chain.create if j == 0.
9034 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
9035 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
9036 before overwriting it.
9038 2013-03-01 Tobias Burnus <burnus@net-b.de>
9040 * doc/extended.texi (C Extensions): Change order in @menu
9042 (Other MIPS Built-in Functions): Move last MIPS entry before
9043 "picoChip Built-in Functions".
9044 (SH Built-in Functions): Move after RX Built-in Functions.
9045 * doc/gcc.texi (Introduction): Change order in @menu
9047 * doc/md.texi (Constraints): Ditto.
9048 * gty.texi (Type Information): Ditto.
9049 (User-provided marking routines for template types): Make
9051 * doc/invoke.texi (AArch64 Options): Move before
9052 "Adapteva Epiphany Options".
9054 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
9055 Jakub Jelinek <jakub@redhat.com>
9058 * asan.c (gate_asan): Lookup no_sanitize_address instead of
9059 no_address_safety_analysis attribute.
9060 * doc/extend.texi (no_address_safety_attribute): Rename to
9061 no_sanitize_address attribute, mention no_address_safety_analysis
9062 attribute as deprecated alias.
9064 2013-02-28 Jakub Jelinek <jakub@redhat.com>
9067 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
9068 type to vec<vec<tree> > *.
9069 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
9070 to be vec<tree> instead of vec<tree> *, set vec_defs
9071 to vNULL and call vec_defs.create (number_of_vects), adjust other
9073 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
9074 vectorizable_condition): Adjust vect_get_slp_defs callers.
9076 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
9078 * config/aarch64/aarch64.c
9079 (aarch64_float_const_representable): Remove unused variable.
9081 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
9083 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
9085 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
9087 * config/aarch64/aarch64-builtins.c
9088 (aarch64_init_simd_builtins): Make static.
9090 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
9092 * config/aarch64/aarch64.c
9093 (aarch64_simd_make_constant): Make static.
9095 2013-02-28 Martin Jambor <mjambor@suse.cz>
9097 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
9098 with no initialization to the RHS of debug statements.
9100 2013-02-28 Martin Jambor <mjambor@suse.cz>
9102 PR tree-optimization/56294
9103 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
9105 (get_access_replacement): Do not call create_access_replacement.
9106 Assert a replacement exists.
9107 (get_repl_default_def_ssa_name): Create the replacement declaration
9110 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9112 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
9115 2013-02-28 Marek Polacek <polacek@redhat.com>
9117 PR rtl-optimization/56466
9118 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
9119 if we're changing a loop.
9120 (peel_loops_completely): Likewise.
9122 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
9125 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
9127 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
9130 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
9131 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
9132 INTX_FTYPE_FX, FX_FTYPE_INTX.
9133 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
9135 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
9137 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
9138 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
9139 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
9140 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
9141 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
9142 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
9143 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
9144 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
9145 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
9146 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
9147 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
9148 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
9149 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
9150 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
9151 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
9152 (avrxmega6): Increase max flash segments from 5 to 6.
9153 * config/avr/t-multilib: Regenerate.
9154 * config/avr/avr-tables.opt: Regenerate.
9155 * doc/avr-mmcu.texi: Regenerate.
9157 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
9159 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
9160 (avr_device_to_arch): Rename to avr_device_to_ld.
9161 (avr_device_to_as): New prototype.
9162 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
9163 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
9164 * config/avr/driver-avr.c (avr_device_to_as): New.
9165 (avr_device_to_arch): Rename to avr_device_to_ld.
9167 2013-02-27 Jakub Jelinek <jakub@redhat.com>
9170 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
9171 method on dr_chain and result_chain.
9174 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
9175 pointer_set_destroy on not_executed_last_iteration.
9178 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
9181 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
9182 FOR_EACH_DEFINED_FUNCTION when freeing state.
9185 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
9187 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
9191 * ipa-cp.c (decide_whether_version_node): Call vec_free on
9192 known_aggs[i].items and release known_aggs vector.
9195 * ipa-reference.c (propagate): Free node_info even for alias nodes.
9197 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9199 * config/microblaze/microblaze.c (microblaze_emit_compare):
9200 Use xor for EQ/NE comparisions.
9201 * config/microblaze/microblaze.md (cstoresf4): Add constraints
9202 (cbranchsf4): Adjust operator to comparison_operator.
9204 2013-02-27 Jakub Jelinek <jakub@redhat.com>
9207 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
9209 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
9210 vec_safe_push, always update *slot.
9211 (redirect_edge_var_map_clear): Use vec_free.
9212 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
9213 (free_var_map_entry): Use vec_free.
9214 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
9215 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
9217 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
9220 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
9221 when the may_trap_p bit of the exprs being merged differs.
9222 Reorder tests for speculativeness in the logical and operator.
9224 2013-02-27 Jakub Jelinek <jakub@redhat.com>
9226 * incpath.c (add_standard_paths): Use reconcat instead of concat
9227 where appropriate and avoid leaking memory.
9229 * opts.h: Include obstack.h.
9230 (opts_concat): New prototype.
9231 (opts_obstack): New declaration.
9232 * opts.c (opts_concat): New function.
9233 (opts_obstack): New variable.
9234 (init_options_struct): Call gcc_init_obstack on opts_obstack.
9235 (finish_options): Use opts_concat instead of concat
9236 and XOBNEWVEC instead of XNEWVEC.
9237 * opts-common.c (generate_canonical_option, decode_cmdline_option,
9238 generate_option): Likewise.
9239 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
9240 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
9243 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
9244 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
9246 2013-02-26 Jakub Jelinek <jakub@redhat.com>
9249 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
9251 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
9253 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
9254 (arm_block_move_unaligned_straight): Likewise.
9255 (arm_adjust_block_mem): Likewise.
9257 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
9260 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
9261 temp, cond and label.
9262 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
9265 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
9266 * config/c6x/c6x.h (dbx_register_map): Update declaration.
9269 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
9270 of prologue/epilogue functions.
9273 * config/tilegx/tilegx.c (tilegx_expand_prologue):
9274 Remove unused variable cfa_offset.
9275 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
9278 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
9279 type promotion to unsigned.
9282 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
9283 for HOST_WIDE_INT of 32 bit / same size as int.
9284 (arm_block_move_unaligned_straight): Likewise.
9285 (arm_adjust_block_mem): Likewise.
9288 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
9291 2013-02-26 Marek Polacek <polacek@redhat.com>
9293 PR tree-optimization/56426
9294 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
9296 2013-02-26 Richard Biener <rguenther@suse.de>
9299 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
9300 unused variable loops.
9302 2013-02-26 Jakub Jelinek <jakub@redhat.com>
9304 PR tree-optimization/56448
9305 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
9306 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
9307 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
9308 later operands of the references, or even first operand for
9309 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
9311 PR tree-optimization/56443
9312 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
9313 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
9314 to type_for_mode langhook.
9316 2013-02-25 Matt Turner <mattst88@gmail.com>
9318 * doc/invoke.texi: Document r4700.
9320 2013-02-25 Richard Biener <rguenther@suse.de>
9322 PR tree-optimization/56175
9323 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
9325 (simplify_bitwise_binary): ... here. Also guard the conversion
9326 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
9328 2013-02-25 Catherine Moore <clm@codesourcery.com>
9331 2013-02-24 Catherine Moore <clm@codesourcery.com>
9332 Maciej W. Rozycki <macro@codesourcery.com>
9333 Tom de Vries <tom@codesourcery.com>
9334 Nathan Sidwell <nathan@codesourcery.com>
9335 Iain Sandoe <iain@codesourcery.com>
9336 Nathan Froyd <froydnj@codesourcery.com>
9337 Chao-ying Fu <fu@mips.com>
9339 * doc/extend.texi: (micromips, nomicromips, nocompression):
9340 Document new function attributes.
9341 * doc/invoke.texi (minterlink-compressed, mmicromips,
9342 m14k, m14ke, m14kec): Document new options.
9343 (minterlink-mips16): Update documentation.
9344 * doc/md.texi (ZC, ZD): Document new constraints.
9345 * configure.ac (gcc_cv_as_micromips): Check if linker
9346 supports the .set micromips directive.
9347 * configure: Regenerate.
9348 * config.in: Regenerate.
9349 * config/mips/mips-tables.opt: Regenerate.
9350 * config/mips/micromips.md: New file.
9351 * constraints.md (ZC, AD): New constraints.
9352 * config/mips/predicates.md (movep_src_register): New predicate.
9353 (movep_src_operand): New predicate.
9354 (non_volatile_mem_operand): New predicate.
9355 * config/mips/mips.md (multimem): New type.
9356 (length): Differentiate between 17-bit and 18-bit branch offsets.
9357 (MOVEP1, MOVEP2): New mode iterator.
9358 (mov_<load>l): Use ZC constraint.
9359 (mov_<load>r): Likewise.
9360 (mov_<store>l): Likewise.
9361 (mov_<store>r): Likewise.
9362 (*branch_equality<mode>_inverted): Add microMIPS support.
9363 (*branch_equality<mode>): Likewise.
9364 (*jump_absolute): Likewise.
9365 (indirect_jump_<mode>): Likewise.
9366 (tablejump_<mode>): Likewise.
9367 (<optab>_internal): Likewise.
9368 (sibcall_internal): Likewise.
9369 (sibcall_value_internal): Likewise.
9370 (prefetch): Use constraint ZD.
9371 * config/mips/mips.opt (minterlink-compressed): New option.
9372 (minterlink-mips16): Now an alias for minterlink-compressed.
9373 (mmicromips): New option.
9374 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
9375 (compare_and_swap_12): Likewise.
9376 (sync_add<mode>): Likewise.
9377 (sync_<optab>_12): Likewise.
9378 (sync_old_<optab>_12): Likewise.
9379 (sync_new_<optab>_12): Likewise.
9380 (sync_nand_12): Likewise.
9381 (sync_old_nand_12): Likewise.
9382 (sync_new_nand_12): Likewise.
9383 (sync_sub<mode>): Likewise.
9384 (sync_old_add<mode>): Likewise.
9385 (sync_old_sub<mode>): Likewise.
9386 (sync_new_add<mode>): Likewise.
9387 (sync_new_sub<mode>): Likewise.
9388 (sync_<optab><mode>): Likewise.
9389 (sync_old_<optab><mode>): Likewise.
9390 (sync_new_<optab><mode>): Likewise.
9391 (sync_nand<mode>): Likewise.
9392 (sync_old_nand<mode>): Likewise.
9393 (sync_new_nand<mode>): Likewise.
9394 (sync_lock_test_and_set<mode>): Likewise.
9395 (test_and_set_12): Likewise.
9396 (atomic_compare_and_swap<mode>): Likewise.
9397 (atomic_exchange<mode>_llsc): Likewise.
9398 (atomic_fetch_add<mode>_llsc): Likewise.
9399 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
9400 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
9401 (umips_save_restore_pattern_p): Likewise.
9402 (umips_load_store_pair_p): Likewise.
9403 (umips_output_load_store_pair): Likewise.
9404 (umips_movep_target_p): Likewise.
9405 (umips_12bit_offset_address_p): Likewise.
9406 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
9407 (mips_base_mips16): Rename this...
9408 (mips_base_compression_flags): ...to this. Update all uses.
9409 (mips_attribute_table): Add micromips, nomicromips and nocompression.
9410 (mips_mips16_decl_p): Delete.
9411 (mips_nomips16_decl_p): Delete.
9412 (mips_get_compress_on_flags): New function.
9413 (mips_get_compress_off_flags): New function.
9414 (mips_get_compress_mode): New function.
9415 (mips_get_compress_on_name): New function.
9416 (mips_get_compress_off_name): New function.
9417 (mips_insert_attributes): Support multiple compression types.
9418 (mips_merge_decl_attributes): Likewise.
9419 (umips_12bit_offset_address_p): New function.
9420 (mips_start_function_definition): Emit .set micromips directive.
9421 (mips_call_may_need_jalx_p): New function.
9422 (mips_function_ok_for_sibcall): Add microMIPS support.
9423 (mips_print_operand_punctuation): Support short delay slots and
9425 (umips_swm_mask, umips_swm_encoding): New.
9426 (umips_build_save_restore): New function.
9427 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
9428 (was_mips16_p): Remove.
9429 (old_compression_mode): New.
9430 (mips_set_compression_mode): New function.
9431 (mips_set_current_function): Add microMIPS support.
9432 (mips_option_override): Likewise.
9433 (umips_save_restore_pattern_p): New function.
9434 (umips_output_save_restore): New function.
9435 (umips_load_store_pair_p_1): New function.
9436 (umips_load_store_pair_p): New function.
9437 (umips_output_load_store_pair_1): New function.
9438 (umips_output_load_store_pair): New function.
9439 (umips_movep_target_p) New function.
9440 (mips_prepare_pch_save): Add microMIPS support.
9441 * config/mips/mips.h (TARGET_COMPRESSION): New.
9442 (TARGET_CPU_CPP_BUILTINS): Update macro
9443 to use new compression flags and to support microMIPS.
9444 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
9445 (MIPS_ARCH_FLOAT_SPEC): Likewise.
9446 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
9447 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
9448 (ASM_SPEC): Support mmicromips and mno-micromips.
9449 (M16STORE_REG_P): New macro.
9450 (MIPS_CALL): Support TARGET_MICROMIPS.
9451 (MICROMIPS_J): New macro.
9452 (mips_base_mips16): Rename this...
9453 (mips_base_compression_flags): ...to this.
9454 (UMIPS_12BIT_OFFSET_P): New macro.
9455 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
9456 (MULTILIB_DIRNAMES): Likewise.
9458 2013-02-25 Tom de Vries <tom@codesourcery.com>
9460 PR rtl-optimization/56131
9461 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
9462 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
9463 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
9465 2013-02-25 Tobias Burnus <burnus@net-b.de>
9467 * doc/invoke.texi (-fsanitize=): Move from optimization
9468 to debugging options.
9470 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
9472 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
9474 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
9475 Alexander Monakov <amonakov@ispras.ru>
9478 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
9479 flush pending lists also on non-jumps. Adjust comment.
9481 2013-02-24 Catherine Moore <clm@codesourcery.com>
9482 Maciej W. Rozycki <macro@codesourcery.com>
9483 Tom de Vries <tom@codesourcery.com>
9484 Nathan Sidwell <nathan@codesourcery.com>
9485 Iain Sandoe <iain@codesourcery.com>
9486 Nathan Froyd <froydnj@codesourcery.com>
9487 Chao-ying Fu <fu@mips.com>
9489 * doc/extend.texi: (micromips, nomicromips, nocompression):
9490 Document new function attributes.
9491 * doc/invoke.texi (minterlink-compressed, mmicromips,
9492 m14k, m14ke, m14kec): Document new options.
9493 (minterlink-mips16): Update documentation.
9494 * doc/md.texi (ZC, ZD): Document new constraints.
9495 * configure.ac (gcc_cv_as_micromips): Check if linker
9496 supports the .set micromips directive.
9497 * configure: Regenerate.
9498 * config.in: Regenerate.
9499 * config/mips/mips-tables.opt: Regenerate.
9500 * config/mips/micromips.md: New file.
9501 * constraints.md (ZC, AD): New constraints.
9502 * config/mips/predicates.md (movep_src_register): New predicate.
9503 (movep_src_operand): New predicate.
9504 (non_volatile_mem_operand): New predicate.
9505 * config/mips/mips.md (multimem): New type.
9506 (length): Differentiate between 17-bit and 18-bit branch offsets.
9507 (MOVEP1, MOVEP2): New mode iterator.
9508 (mov_<load>l): Use ZC constraint.
9509 (mov_<load>r): Likewise.
9510 (mov_<store>l): Likewise.
9511 (mov_<store>r): Likewise.
9512 (*branch_equality<mode>_inverted): Add microMIPS support.
9513 (*branch_equality<mode>): Likewise.
9514 (*jump_absolute): Likewise.
9515 (indirect_jump_<mode>): Likewise.
9516 (tablejump_<mode>): Likewise.
9517 (<optab>_internal): Likewise.
9518 (sibcall_internal): Likewise.
9519 (sibcall_value_internal): Likewise.
9520 (prefetch): Use constraint ZD.
9521 * config/mips/mips.opt (minterlink-compressed): New option.
9522 (minterlink-mips16): Now an alias for minterlink-compressed.
9523 (mmicromips): New option.
9524 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
9525 (compare_and_swap_12): Likewise.
9526 (sync_add<mode>): Likewise.
9527 (sync_<optab>_12): Likewise.
9528 (sync_old_<optab>_12): Likewise.
9529 (sync_new_<optab>_12): Likewise.
9530 (sync_nand_12): Likewise.
9531 (sync_old_nand_12): Likewise.
9532 (sync_new_nand_12): Likewise.
9533 (sync_sub<mode>): Likewise.
9534 (sync_old_add<mode>): Likewise.
9535 (sync_old_sub<mode>): Likewise.
9536 (sync_new_add<mode>): Likewise.
9537 (sync_new_sub<mode>): Likewise.
9538 (sync_<optab><mode>): Likewise.
9539 (sync_old_<optab><mode>): Likewise.
9540 (sync_new_<optab><mode>): Likewise.
9541 (sync_nand<mode>): Likewise.
9542 (sync_old_nand<mode>): Likewise.
9543 (sync_new_nand<mode>): Likewise.
9544 (sync_lock_test_and_set<mode>): Likewise.
9545 (test_and_set_12): Likewise.
9546 (atomic_compare_and_swap<mode>): Likewise.
9547 (atomic_exchange<mode>_llsc): Likewise.
9548 (atomic_fetch_add<mode>_llsc): Likewise.
9549 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
9550 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
9551 (umips_save_restore_pattern_p): Likewise.
9552 (umips_load_store_pair_p): Likewise.
9553 (umips_output_load_store_pair): Likewise.
9554 (umips_movep_target_p): Likewise.
9555 (umips_12bit_offset_address_p): Likewise.
9556 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
9557 (mips_base_mips16): Rename this...
9558 (mips_base_compression_flags): ...to this. Update all uses.
9559 (mips_attribute_table): Add micromips, nomicromips and nocompression.
9560 (mips_mips16_decl_p): Delete.
9561 (mips_nomips16_decl_p): Delete.
9562 (mips_get_compress_on_flags): New function.
9563 (mips_get_compress_off_flags): New function.
9564 (mips_get_compress_mode): New function.
9565 (mips_get_compress_on_name): New function.
9566 (mips_get_compress_off_name): New function.
9567 (mips_insert_attributes): Support multiple compression types.
9568 (mips_merge_decl_attributes): Likewise.
9569 (umips_12bit_offset_address_p): New function.
9570 (mips_start_function_definition): Emit .set micromips directive.
9571 (mips_call_may_need_jalx_p): New function.
9572 (mips_function_ok_for_sibcall): Add microMIPS support.
9573 (mips_print_operand_punctuation): Support short delay slots and
9575 (umips_swm_mask, umips_swm_encoding): New.
9576 (umips_build_save_restore): New function.
9577 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
9578 (was_mips16_p): Remove.
9579 (old_compression_mode): New.
9580 (mips_set_compression_mode): New function.
9581 (mips_set_current_function): Add microMIPS support.
9582 (mips_option_override): Likewise.
9583 (umips_save_restore_pattern_p): New function.
9584 (umips_output_save_restore): New function.
9585 (umips_load_store_pair_p_1): New function.
9586 (umips_load_store_pair_p): New function.
9587 (umips_output_load_store_pair_1): New function.
9588 (umips_output_load_store_pair): New function.
9589 (umips_movep_target_p) New function.
9590 (mips_prepare_pch_save): Add microMIPS support.
9591 * config/mips/mips.h (TARGET_COMPRESSION): New.
9592 (TARGET_CPU_CPP_BUILTINS): Update macro
9593 to use new compression flags and to support microMIPS.
9594 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
9595 (MIPS_ARCH_FLOAT_SPEC): Likewise.
9596 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
9597 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
9598 (ASM_SPEC): Support mmicromips and mno-micromips.
9599 (M16STORE_REG_P): New macro.
9600 (MIPS_CALL): Support TARGET_MICROMIPS.
9601 (MICROMIPS_J): New macro.
9602 (mips_base_mips16): Rename this...
9603 (mips_base_compression_flags): ...to this.
9604 (UMIPS_12BIT_OFFSET_P): New macro.
9605 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
9606 (MULTILIB_DIRNAMES): Likewise.
9608 2013-02-24 Jakub Jelinek <jakub@redhat.com>
9611 * target-globals.c (save_target_globals): For init_reg_sets and
9612 target_reinit remporarily set this_fn_optabs to this_target_optabs.
9614 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
9616 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
9617 * config/aarch64/t-aarch64
9618 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
9620 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
9623 * lra-constraints.c (process_alt_operands): Reload operand
9624 conflicting with earlier clobber only if no more other conflicting
9627 2013-02-22 Jakub Jelinek <jakub@redhat.com>
9630 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
9631 if not linking a shared library.
9633 2013-02-22 Seth LaForge <sethml@google.com>
9635 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
9637 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
9639 * config/arm/arm.md (split for extendsidi): Update condition.
9640 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
9641 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
9642 (qhs_zextenddi_cstr): Likewise.
9644 2013-02-21 Jakub Jelinek <jakub@redhat.com>
9647 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
9648 avoid signed wrapping.
9649 (expand_mult): Handle properly multiplication by
9650 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
9651 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
9652 in the compiler if coeff is HOST_WIDE_INT_MIN.
9653 (expand_divmod): Don't make ext_op1 static, change it's type to
9654 uhwi. Avoid undefined behavior in -INTVAL (op1).
9656 PR rtl-optimization/50339
9657 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
9659 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
9660 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
9661 into splitting_ashiftrt field.
9662 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
9664 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
9667 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
9670 * trans-mem.c (execute_tm_mark): Do not expand transactions that
9671 are sure to go irrevocable.
9673 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
9675 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
9676 scalars are valid operands.
9678 2013-02-21 Martin Jambor <mjambor@suse.cz>
9680 PR tree-optimization/56310
9681 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
9682 only matching indices and non-negative final offsets.
9683 (intersect_aggregates_with_edge): Pass src_idx to
9684 agg_replacements_to_vector. Pass src_idx insstead of index to
9685 intersect_with_agg_replacements.
9687 2013-02-21 Martin Jambor <mjambor@suse.cz>
9689 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
9690 instead of hard-wired defaults.
9692 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
9694 * doc/invoke.texi (MIPS Options): Update documentation of the
9695 floating-point multiply-accumulate instruction restrictions.
9697 2013-02-21 Kostya Serebryany <kcc@google.com>
9699 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
9700 asan_shadow_offset on x86_64 linux.
9702 2013-02-21 Richard Biener <rguenther@suse.de>
9704 PR tree-optimization/56415
9706 2013-02-11 Richard Biener <rguenther@suse.de>
9708 PR tree-optimization/56273
9709 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
9712 2013-02-21 Jakub Jelinek <jakub@redhat.com>
9715 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
9719 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
9720 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
9722 2013-02-20 Jan Hubicka <jh@suse.cz>
9724 PR tree-optimization/56265
9725 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
9726 when target is referenced for first time.
9728 2013-02-20 Richard Biener <rguenther@suse.de>
9730 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
9731 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
9732 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
9733 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
9734 not return anything.
9735 (rename_ssa_copies): Do not remove unused locals.
9736 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
9737 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
9738 * passes.c (execute_function_todo): Do not schedule unused locals
9739 removal if cleanup_tree_cfg did something.
9740 * tree-ssa-live.c (remove_unused_locals): Dump statistics
9741 about the number of removed locals.
9743 2013-02-20 Richard Biener <rguenther@suse.de>
9745 PR tree-optimization/56398
9746 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
9748 2013-02-20 Martin Jambor <mjambor@suse.cz>
9750 PR tree-optimization/55334
9751 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
9752 restricted pointers to arrays.
9754 2013-02-20 Richard Biener <rguenther@suse.de>
9755 Jakub Jelinek <jakub@redhat.com>
9757 PR tree-optimization/56396
9758 * tree-ssa-ccp.c (n_const_val): New static variable.
9759 (get_value): Return NULL for SSA names we don't have a lattice
9761 (ccp_initialize): Initialize n_const_val.
9762 * tree-ssa-copy.c (n_copy_of): New static variable.
9763 (init_copy_prop): Initialize n_copy_of.
9764 (get_value): Return NULL_TREE for SSA names we don't have a
9767 2013-02-20 Martin Jambor <mjambor@suse.cz>
9769 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
9771 2013-02-20 Richard Biener <rguenther@suse.de>
9773 * genpreds.c (write_lookup_constraint): Do not compare first
9774 letter of the constraint again.
9776 2013-02-20 Richard Biener <rguenther@suse.de>
9778 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
9780 (get_use_iv_cost): Terminate hashtable walk when coming across
9783 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
9785 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
9786 reassociation for avx2 targets.
9788 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9790 * config/microblaze/microblaze.c: microblaze_has_clz = 0
9791 Add version check for v8.10.a to enable microblaze_has_clz
9792 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
9793 version and TARGET_PATTERN_COMPARE check
9794 * config/microblaze/microblaze.md: New clzsi2 instruction
9796 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9798 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
9799 function before branching.
9801 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
9803 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
9805 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
9807 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
9810 * sel-sched.c: Include ira.h.
9811 (implicit_clobber_conflict_p): New function.
9812 (moveup_expr): Use it.
9813 * Makefile.in (sel-sched.o): Depend on ira.h.
9815 2013-02-19 Richard Biener <rguenther@suse.de>
9817 PR tree-optimization/56384
9818 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
9819 (vn_hash_type): Split out from ...
9820 (vn_hash_constant_with_type): ... here.
9821 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
9822 (vn_phi_eq): Compare types from vn_phi_s structure.
9823 (vn_phi_lookup): Populate vn_phi_s type.
9824 (vn_phi_insert): Likewise.
9826 2013-02-19 Jakub Jelinek <jakub@redhat.com>
9828 PR tree-optimization/56350
9829 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
9830 if haven't found reduction or nested cycle operand, rather than
9831 asserting we must find it.
9833 PR tree-optimization/56381
9834 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
9837 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
9838 Jakub Jelinek <jakub@redhat.com>
9841 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
9842 (swap_optab_enable): Same.
9843 (init_all_optabs): Use argument instead of global.
9844 * tree.h (struct tree_optimization_option): New field target_optabs.
9845 * expr.h (init_all_optabs): Add argument to prototype.
9846 (TREE_OPTIMIZATION_OPTABS): New.
9847 (save_optabs_if_changed): Protoize.
9848 * optabs.h: Declare this_fn_optabs.
9849 * optabs.c (save_optabs_if_changed): New.
9850 Declare this_fn_optabs.
9851 (init_optabs): Add argument to init_all_optabs() call.
9852 * function.c (invoke_set_current_function_hook): Handle per
9854 * function.h (struct function): New field optabs.
9855 * config/mips/mips.c (mips_set_mips16_mode): Handle when
9856 optimization_current_node has changed.
9857 * target-globals.h (save_target_globals_default_opts): Protoize.
9858 * target-globals.c (save_target_globals_default_opts): New.
9860 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9863 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
9864 registers %fr12 and %fr12R as call used.
9867 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
9868 and HImode, require all displacements to be an integer multiple of
9870 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
9871 only allow QImode and HImode when reload is in progress and strict is
9872 true. Likewise for symbolic addresses. Use base14_operand to check
9873 displacements in REG+BASE addresses.
9875 2013-02-18 Richard Biener <rguenther@suse.de>
9877 PR tree-optimization/56366
9878 * tree-vect-loop.c (get_initial_def_for_induction): Properly
9879 handle sign-conversion of outer-loop initial induction value.
9881 2013-02-18 Richard Biener <rguenther@suse.de>
9884 * cfghooks.c (merge_blocks): If we merge a latch into another
9885 block adjust references to it.
9886 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
9887 (verify_loop_structure): Verify that a recorded latch is in fact
9890 2013-02-18 Richard Biener <rguenther@suse.de>
9892 PR tree-optimization/56321
9893 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
9894 order SSA name release and virtual operand unlinking.
9896 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9898 * config/microblaze/microblaze.md (save_stack_block): Define.
9899 (restore_stack_block): Likewise.
9901 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9903 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
9904 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
9905 * config/microblaze/microblaze.c (microblaze_option_override):
9906 Bail out early for PIC modes when target does not support PIC.
9908 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9910 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
9911 Replace with a microblaze version.
9912 (microblaze_trampoline_init): Adapt for microblaze.
9913 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
9916 2013-02-16 Jakub Jelinek <jakub@redhat.com>
9917 Dodji Seketeli <dodji@redhat.com>
9920 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
9921 (instrument_mem_region_access): Do not forget to always put
9922 instrumentation of the of 'base' and 'base + len' in a "if (len !=
9923 0) statement, even for cases where either 'base' or 'base + len'
9924 are not instrumented -- because they have been previously
9925 instrumented. Simplify the logic by putting all the statements
9926 instrument 'base + len' inside a sequence, and then insert that
9927 sequence right before the current insertion point. Then, to
9928 instrument 'base + len', just get an iterator on that statement.
9929 And do not forget to update the pointer to iterator the function
9930 received as argument.
9932 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
9934 PR rtl-optimization/56348
9935 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
9937 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
9939 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
9940 (clean_graph_dump_file): Pass base to start_graph_dump.
9942 2013-02-14 Richard Henderson <rth@redhat.com>
9945 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
9947 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
9949 * collect2-aix.h: Define F_LOADONLY.
9951 2013-02-14 Richard Biener <rguenther@suse.de>
9954 * varasm.c (output_constant_def_1): Get the decl representing
9955 the constant as argument.
9956 (output_constant_def): Wrap output_constant_def_1.
9957 (make_decl_rtl): Use output_constant_def_1 with the decl
9958 representing the constant.
9959 (build_constant_desc): Optionally re-use a decl already
9960 representing the constant.
9961 (tree_output_constant_def): Adjust.
9963 2013-02-14 Dodji Seketeli <dodji@redhat.com>
9966 * asan.c (instrument_builtin_call): Really put the length of the
9967 second source argument into src1_len.
9969 2013-02-13 Jakub Jelinek <jakub@redhat.com>
9971 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
9972 argument. If it is false, don't create edge from then_bb to
9974 (insert_if_then_before_iter): Pass true to it.
9975 (build_check_stmt): Pass false to it.
9976 (transform_statements): Flush hash table only on extended basic
9977 block boundaries, rather than at the beginning of every bb.
9978 Don't flush hash table on nonfreeing_call_p calls.
9979 * tree-flow.h (nonfreeing_call_p): New prototype.
9980 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
9982 2013-02-13 David S. Miller <davem@davemloft.net>
9984 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
9986 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
9989 * ira.c (max_regno_before_ira): Move from ...
9991 (fix_reg_equiv_init): Use max_regno_before_ira instead of
9994 2013-02-13 Jakub Jelinek <jakub@redhat.com>
9996 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
9998 2013-02-13 Richard Biener <rguenther@suse.de>
10001 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
10002 globals in MEM_REFs.
10004 2013-02-13 Richard Biener <rguenther@suse.de>
10006 * loop-init.c (loop_optimizer_init): Clear loop state when
10007 re-initializing preserved loops.
10008 * loop-unswitch.c (unswitch_single_loop): Return whether
10009 we unswitched the loop. Do not verify loop state here.
10010 (unswitch_loops): When we unswitched a loop discover new loops.
10012 2013-02-13 Kostya Serebryany <kcc@google.com>
10014 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
10016 * sanitizer.def: Rename __asan_init to __asan_init_v1.
10018 2013-02-12 Dodji Seketeli <dodji@redhat.com>
10020 Avoid instrumenting duplicated memory access in the same basic block
10021 * Makefile.in (asan.o): Add new dependency on hash-table.h
10022 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
10023 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
10024 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
10025 (free_mem_ref_resources, has_mem_ref_been_instrumented)
10026 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
10027 (get_mem_ref_of_assignment): New functions.
10028 (get_mem_refs_of_builtin_call): Extract from
10029 instrument_builtin_call and tweak a little bit to make it fit with
10031 (instrument_builtin_call): Use the new
10032 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
10033 of is_gimple_builtin_call.
10034 (instrument_derefs, instrument_mem_region_access): Insert the
10035 instrumented memory reference into the hash table.
10036 (maybe_instrument_assignment): Renamed instrument_assignment into
10037 this, and change it to advance the iterator when instrumentation
10038 actually happened and return true in that case. This makes it
10039 homogeneous with maybe_instrument_assignment, and thus give a
10040 chance to callers to be more 'regular'.
10041 (transform_statements): Clear the memory reference hash table
10042 whenever we enter a new BB, when we cross a function call, or when
10043 we are done transforming statements. Use
10044 maybe_instrument_assignment instead of instrumentation. No more
10045 need to special case maybe_instrument_assignment and advance the
10046 iterator after calling it; it's now handled just like
10047 maybe_instrument_call. Update comment.
10049 2013-02-13 Richard Biener <rguenther@suse.de>
10051 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
10052 Fix loop discovery code.
10054 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
10056 PR inline-asm/56148
10057 * lra-constraints.c (process_alt_operands): Match early clobber
10058 operand with itself. Check conflicts with earlyclobber only if
10059 the operand is not reloaded. Prefer to reload conflicting operand
10060 if earlyclobber and matching operands are the same.
10062 2013-02-12 Richard Biener <rguenther@suse.de>
10065 * lto-streamer-out.c (write_symbol): Do not output symbols
10066 for hard register variables.
10068 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
10071 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
10072 (umulsidi3_insn, mulsidi3_insn): New insns.
10074 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
10076 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
10077 (struct tune_params): Add vec_costs field.
10078 * config/arm/arm.c (arm_builtin_vectorization_cost)
10079 (arm_add_stmt_cost): New functions.
10080 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
10081 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
10082 (arm_default_vec_cost): New struct of type cpu_vec_costs.
10083 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
10084 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
10085 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
10086 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
10088 2013-02-12 Richard Biener <rguenther@suse.de>
10091 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
10092 decls again if possible.
10094 2013-02-12 Richard Biener <rguenther@suse.de>
10096 PR middle-end/56288
10097 * tree-ssa.c (verify_ssa_name): Fix check, move
10098 SSA_NAME_IN_FREE_LIST check up.
10100 2013-02-12 Jakub Jelinek <jakub@redhat.com>
10101 Steven Bosscher <steven@gcc.gnu.org>
10103 PR rtl-optimization/56151
10104 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
10105 equal to op0 or op1, and last_insn pattern is CODE operation
10106 with MEM dest and one of the operands matches that MEM.
10108 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
10110 * doc/extend.texi: Document Function Multiversioning and "default"
10111 parameter string to target attribute.
10112 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
10113 target attribute parameter is "default".
10114 (ix86_compare_version_priority): Remove checks for target attribute.
10115 (ix86_mangle_function_version_assembler_name): Change error to sorry.
10116 Remove check for target attribute equal to NULL. Add assert.
10117 (ix86_generate_version_dispatcher_body): Change error to sorry.
10119 2013-02-11 Iain Sandoe <iain@codesourcery.com>
10120 Jack Howarth <howarth@bromo.med.uc.edu>
10121 Patrick Marlier <patrick.marlier@gmail.com>
10124 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
10125 define ENDFILE_SPEC as TM_DESTRUCTOR.
10126 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
10128 2013-02-11 Alexander Potapenko <glider@google.com>
10129 Jack Howarth <howarth@bromo.med.uc.edu>
10130 Jakub Jelinek <jakub@redhat.com>
10133 * config/darwin.c (cdtor_record): Rename ctor_record.
10134 (sort_cdtor_records): Rename sort_ctor_records.
10135 (finalize_dtors): New routine to sort destructors by
10136 priority before use in assemble_integer.
10137 (machopic_asm_out_destructor): Use finalize_dtors if needed.
10139 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
10141 PR rtl-optimization/56275
10142 * simplify-rtx.c (avoid_constant_pool_reference): Check that
10143 offset is non-negative and less than cmode size before
10144 calling simplify_subreg.
10146 2013-02-11 Richard Biener <rguenther@suse.de>
10148 PR tree-optimization/56264
10149 * cfgloop.h (fix_loop_structure): Adjust prototype.
10150 * loop-init.c (fix_loop_structure): Return the number of
10151 newly discovered loops.
10152 * tree-cfgcleanup.c (repair_loop_structures): When new loops
10153 are discovered, do a full loop-closed SSA rewrite.
10155 2013-02-11 Richard Biener <rguenther@suse.de>
10157 PR tree-optimization/56273
10158 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
10160 (check_array_ref): Fix missing newline in dumps.
10161 (search_for_addr_array): Likewise.
10163 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
10165 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
10167 2013-02-09 Jakub Jelinek <jakub@redhat.com>
10170 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
10172 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
10174 PR rtl-optimization/56246
10175 * lra-constraints.c (simplify_operand_subreg): Try to reuse
10177 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
10178 constraints are satisfied.
10180 2013-02-08 Jeff Law <law@redhat.com>
10183 * emit-rtl.c (reg_is_parm_p): New function.
10184 * regs.h (reg_is_parm_p): New prototype.
10185 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
10186 callee-clobbered registers.
10188 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
10191 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
10192 If there is no implicit builtin declaration, just return NULL.
10194 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
10196 * config/i386/sse.md (FMAMODEM): New mode iterator.
10197 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
10198 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
10200 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
10202 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
10203 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
10204 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
10206 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10208 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
10209 (microblaze*-*-elf): Likewise.
10210 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
10212 * config/microblaze/microblaze-c.c: Add builtin defines for
10213 _LITTLE_ENDIAN and _BIG_ENDIAN.
10214 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
10215 add to TARGET_DEFAULT flags.
10216 Expand ASM_SPEC and LINK_SPEC.
10217 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
10218 * config/microblaze/microblaze.md: Update extendsidi2 and
10219 movdi_internal instructions to use low-order / high-order reg
10221 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
10222 options and inversemask / mask of LITTLE_ENDIAN.
10223 * config/microblaze/t-microblaze: Expand multilib options to
10224 include mlittle-endian (le) and update exceptions patterns.
10226 2013-02-08 Jakub Jelinek <jakub@redhat.com>
10228 PR rtl-optimization/56195
10229 * lra-constraints.c (get_reload_reg): Don't reuse regs
10230 if they have smaller mode than requested, if they have
10231 wider mode than requested, try to return a SUBREG.
10233 PR tree-optimization/56250
10234 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
10235 if type is unsigned and code isn't MULT_EXPR.
10237 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
10239 PR tree-optimization/56064
10240 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
10241 bits according to mode.
10242 * fixed-value.h (fixed_from_double_int)
10243 (const_fixed_from_double_int): Adjust comments.
10245 2013-02-08 Richard Biener <rguenther@suse.de>
10248 * lto-streamer.h (struct data_in): Remove current_file, current_line
10249 and current_col members.
10250 * lto-streamer-out.c (lto_output_location): Stream changed bits
10251 en-block for efficiency.
10252 * lto-streamer-in.c (clear_line_info): Remove.
10253 (lto_input_location): Cache current file, line and column
10254 globally via local statics. Read changed bits en-block.
10255 (input_function): Do not call clear_line_info.
10256 (lto_read_body): Likewise.
10257 (lto_input_toplevel_asms): Likewise.
10259 2013-02-08 Michael Matz <matz@suse.de>
10261 PR tree-optimization/52448
10262 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
10263 (nt_call_phase): New static.
10264 (add_or_mark_expr): Only mark accesses with newer phase than any
10266 (nonfreeing_call_p): New.
10267 (nt_init_block): Update nt_call_phase, mark blocks as visited.
10268 (nt_fini_block): Keep blocks marked as visited.
10269 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
10271 2013-02-08 Richard Biener <rguenther@suse.de>
10273 * ira.c (ira): Free broken dominator information.
10275 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
10277 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
10279 2013-02-08 Marek Polacek <polacek@redhat.com>
10281 * cfgloop.c (verify_loop_structure): Add more checking of headers.
10283 2013-02-08 Richard Biener <rguenther@suse.de>
10285 PR middle-end/56181
10286 * cfgloop.h (flow_loops_find): Adjust.
10287 (bb_loop_header_p): Declare.
10288 * cfgloop.c (bb_loop_header_p): New function split out from ...
10289 (flow_loops_find): ... here. Adjust function signature,
10290 support incremental loop structure update.
10291 (verify_loop_structure): Cleanup. Verify a loop is a loop.
10292 * cfgloopmanip.c (fix_loop_structure): Move ...
10293 * loop-init.c (fix_loop_structure): ... here.
10294 (apply_loop_flags): Split out from ...
10295 (loop_optimizer_init): ... here.
10296 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
10297 in incremental mode, only remove dead loops here.
10299 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
10302 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
10303 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
10304 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
10305 (*round<mode>3.libgcc): New insns for fixed-modes.
10306 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
10307 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
10308 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
10309 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
10310 implementations. Define to __builtin_avr_absFX,
10311 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
10312 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
10313 __builtin_avr_countlsFX, respectively.
10314 * config/avr/avr-c.c (target.h): Include it.
10315 (enum avr_builtin_id): New enum.
10316 (avr_resolve_overloaded_builtin): New static function.
10317 (avr_register_target_pragmas): Use it to set
10318 targetm.resolve_overloaded_builtin.
10319 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
10320 tree nodes used by DEF_BUILTIN.
10321 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
10322 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
10323 <AVR_BUILTIN_xxBITS>: Same.
10325 2013-02-08 Richard Biener <rguenther@suse.de>
10327 * cfgloop.c (verify_loop_structure): Properly handle
10328 a loop exiting to another loop header.
10329 * ira-int.h (ira_loops): Remove.
10330 * ira.c (ira_loops): Remove.
10331 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
10332 (do_reload): Use loop_optimizer_finalize.
10333 * ira-build.c (create_loop_tree_nodes): Use get_loops and
10334 number_of_loops to access the loop tree.
10335 (more_one_region_p): Likewise.
10336 (finish_loop_tree_nodes): Likewise.
10337 (rebuild_regno_allocno_maps): Likewise.
10338 (mark_loops_for_removal): Likewise.
10339 (mark_all_loops_for_removal): Likewise.
10340 (remove_unnecessary_regions): Likewise.
10341 (ira_build): Likewise.
10342 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
10344 2013-02-08 Richard Biener <rguenther@suse.de>
10346 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
10347 * ipa-pure-const.c (analyze_function): Avoid calling
10348 mark_irreducible_loops twice.
10349 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
10351 2013-02-07 David S. Miller <davem@davemloft.net>
10353 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
10355 * var-tracking.c (vt_add_function_parameter): Test the presence of
10356 HAVE_window_save properly and do not remap argument registers when
10357 we have a leaf function.
10359 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
10362 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
10364 * config/i386/i386.c (ix86_print_operand): Ditto.
10366 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
10368 * lra-constraints.c (process_alt_operands): Fix recently added comment.
10370 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
10372 PR rtl-optimization/56225
10373 * lra-constraints.c (process_alt_operands): Check that reload hard
10374 reg can hold value for strict_low_part.
10376 2013-02-07 Jakub Jelinek <jakub@redhat.com>
10379 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
10380 dwarf2out_end_function.
10381 (in_first_function_p, maybe_at_text_label_p,
10382 first_loclabel_num_not_at_text_label): New variables.
10383 (dwarf2out_var_location): In the first function find out
10384 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
10385 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
10388 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
10390 PR rtl-optimization/56178
10391 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
10392 SUBREG of a register. Tidy up related block of code.
10393 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
10394 note if the source is a register or a SUBREG of a register.
10396 2013-02-07 Jakub Jelinek <jakub@redhat.com>
10399 * config/rs6000/rs6000.md (ptrm): New mode attr.
10400 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
10401 call_value_indirect_aix<pttrsize>,
10402 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
10405 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
10407 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
10408 if -bnortl. Convert to strcmp and strncmp.
10410 2013-02-07 Alan Modra <amodra@gmail.com>
10413 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
10414 addresses won't wrap when offsetting.
10415 (rs6000_secondary_reload): Provide secondary reloads needed for
10416 wrapping LO_SUM addresses.
10418 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
10420 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
10421 MACH, just __MACH__.
10423 2013-02-06 Richard Biener <rguenther@suse.de>
10425 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
10426 instead of calling fix_loop_structure.
10428 2013-02-06 Jakub Jelinek <jakub@redhat.com>
10430 PR middle-end/56217
10431 * omp-low.c (use_pointer_for_field): Return false if
10432 lower_send_shared_vars doesn't generate any copy-out code.
10434 2013-02-06 Tom de Vries <tom@codesourcery.com>
10436 PR rtl-optimization/56131
10437 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
10438 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
10439 of the label is NULL. Add comment.
10441 2013-02-05 Jakub Jelinek <jakub@redhat.com>
10443 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
10446 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
10447 (STATIC_LIBTSAN_LIBS): Likewise.
10448 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
10449 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
10450 is defined, don't add anything else beyond that.
10451 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
10452 (LINK_COMMAND_SPEC): Use them.
10454 PR tree-optimization/56205
10455 * tree-stdarg.c (check_all_va_list_escapes): Return true if
10456 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
10457 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
10459 2013-02-05 Richard Biener <rguenther@suse.de>
10461 PR tree-optimization/53342
10462 PR tree-optimization/53185
10463 * tree-vectorizer.h (vect_check_strided_load): Remove.
10464 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
10465 not disallow peeling for vectorized strided loads.
10466 (vect_check_strided_load): Make static and simplify.
10467 (vect_analyze_data_refs): Adjust.
10468 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
10469 correctly when vectorizing strided loads.
10471 2013-02-05 Richard Biener <rguenther@suse.de>
10473 * doc/install.texi: Refer to ISL, not PPL.
10475 2013-02-05 Jan Hubicka <jh@suse.cz>
10477 PR tree-optimization/55789
10478 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
10480 2013-02-05 Jan Hubicka <jh@suse.cz>
10482 PR tree-optimization/55789
10483 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
10484 the dead call anyway.
10486 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
10489 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
10491 2013-02-04 Alexander Potapenko <glider@google.com>
10492 Jack Howarth <howarth@bromo.med.uc.edu>
10493 Jakub Jelinek <jakub@redhat.com>
10496 * config/darwin.c (sort_ctor_records): Stabilized qsort
10497 on constructor priority by using original position.
10498 (finalize_ctors): New routine to sort constructors by
10499 priority before use in assemble_integer.
10500 (machopic_asm_out_constructor): Use finalize_ctors if needed.
10502 2013-02-04 Jakub Jelinek <jakub@redhat.com>
10505 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
10506 about visibility on artificial decls.
10507 * config/sol2.c (solaris_assemble_visibility): Likewise.
10509 2013-02-04 Kai Tietz <ktietz@redhat.com>
10512 * config/i386/i386.c (function_value_ms_64): Add additional valtype
10513 argument and improve checking of return-argument types for 16-byte
10515 (ix86_function_value_1): Add additional valtype argument on call
10516 of function_value_64.
10517 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
10518 handling infunction_value_64 function.
10520 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
10522 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
10524 2013-02-04 Richard Biener <rguenther@suse.de>
10526 PR tree-optimization/56188
10527 * tree-ssa-structalias.c (label_visit): Consider case with
10528 initially non-empty points-to set.
10529 (perform_var_substitution): Dump node mapping and clean up.
10531 2013-02-04 Richard Guenther <rguenther@suse.de>
10534 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
10535 node prevail as last resort.
10536 (lto_symtab_merge_decls): Remove guard on LTRANS here.
10537 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
10539 2013-02-04 Richard Biener <rguenther@suse.de>
10541 PR tree-optimization/56113
10542 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
10544 (equiv_class_lookup_or_add): ... this.
10545 (label_visit): Adjust and fix error in previous patch.
10546 (perform_var_substitution): Adjust.
10548 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
10550 * config/sh/divtab.c: Fix formatting and comments throughout the file.
10551 * config/sh/sh4-300.md: Likewise.
10552 * config/sh/sh4a.md: Likewise.
10553 * config/sh/constraints.md: Likewise.
10554 * config/sh/sh.md: Likewise.
10555 * config/sh/netbsd-elf.h: Likewise.
10556 * config/sh/predicates.md: Likewise.
10557 * config/sh/sh-protos.h: Likewise.
10558 * config/sh/ushmedia.h: Likewise.
10559 * config/sh/linux.h: Likewise.
10560 * config/sh/sh.c: Likewise.
10561 * config/sh/superh.h: Likewise.
10562 * config/sh/elf.h: Likewise.
10563 * config/sh/sh4.md: Likewise.
10564 * config/sh/sh.h: Likewise.
10566 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10568 * config/pa/constraints.md: Adjust unused letters. Change "T"
10569 constraint to match_test floating_point_store_memory_operand().
10570 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
10571 (base14_operand): New.
10572 (floating_point_store_memory_operand): New.
10573 (integer_store_memory_operand): Revise to use base14_operand and
10574 reg_plus_base_memory_operand.
10575 (move_dest_operand): Allow symbolic_memory_operands.
10576 (symbolic_memory_operand): Check for LO_SOM.
10577 (symbolic_operand): Change default case to break.
10578 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
10579 CONST_DOUBLE values to be reloaded by putting them into memory when
10580 the destination is a floating point register.
10581 (movdf): Remove code to handle CONST_DOUBLE.
10583 (reload_indf_r1): New.
10584 (reload_insf_r1): New.
10585 Consistently use "Q" and "T" constraints with integer and floating
10586 point move instructions, respectively.
10587 (movdi): Remove FAIL.
10588 Change predicate for source operand unamed DImode move from
10589 general_operand to move_src_operand.
10590 (umulsidi3): Change predicate for destination operand to
10592 Likewise for similar unamed patterns.
10593 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
10594 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
10595 (hppa_legitimize_address): Simplify mask calculation.
10596 (pa_emit_move_sequence): Revised handling of secondary reloads from
10597 REG+D addresses for floating point loads and stores. Directly handle
10598 loading CONST0_RTX (mode) to a floating point register.
10599 (pa_secondary_reload): Handle reloading DF and SFmode constant values
10600 to floating point registers. Don't restrict secondary reloads to
10601 floating point registers to integer modes. Revise some comments and
10603 (TARGET_LEGITIMATE_ADDRESS_P): Define.
10604 (pa_legitimate_address_p): New.
10605 (pa_legitimize_reload_address): New.
10606 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
10607 (STRICT_REG_OK_FOR_BASE_P): New.
10608 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
10609 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
10611 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
10612 Andrew Dixie <andrewd@gentrack.com>
10614 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
10617 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
10619 * expmed.c (extract_bit_field_1): Pass the full width of the
10620 structure to get_best_reg_extraction_insn.
10622 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
10625 * configure.ac (use_cxa_atexit): Add AIX.
10626 * configure: Regenerate.
10628 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
10630 2013-02-01 Jakub Jelinek <jakub@redhat.com>
10633 * final.c (need_profile_function): New variable.
10634 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
10635 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
10636 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
10637 notes, targetm.asm_out.function_prologue doesn't emit anything,
10638 HAVE_prologue and profiler should be emitted before prologue,
10639 set need_profile_function instead of emitting it.
10640 (final_scan_insn): If need_profile_function, emit
10641 profile_function on the first NOTE_INSN_BASIC_BLOCK or
10642 NOTE_INSN_FUNCTION_BEG note.
10644 2013-02-01 Richard Henderson <rth@redhat.com>
10646 * config/rs6000/rs6000.md (smulditi3): New.
10649 * config/alpha/alpha.md (umulditi3): New.
10651 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
10653 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
10654 (ASM_OUTPUT_ALIGNED_LOCAL): New.
10656 2013-02-01 Richard Biener <rguenther@suse.de>
10658 PR tree-optimization/56113
10659 * tree-ssa-structalias.c (label_visit): Reduce work for
10660 single-predecessor nodes.
10662 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
10664 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
10665 range isn't testing for zero.
10667 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
10669 PR middle-end/56113
10670 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
10672 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
10673 Nick Clifton <nickc@redhat.com>
10675 * config/v850/constraints.md (Q): Define as a memory constraint.
10676 * config/v850/predicates.md (label_ref_operand): New predicate.
10677 (e3v5_shift_operand): New predicate.
10678 (ior_operator): New predicate.
10679 * config/v850/t-v850: Add e3v5 multilib.
10680 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
10681 (v850_gen_movdi): Prototype.
10682 * config/v850/v850.c: Add support for e3v5 architecture.
10683 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
10685 (construct_save_jarl): Add e3v5 long JARL support.
10686 (v850_adjust_insn_length): New function. Adjust length of call
10687 insns when using e3v5 instructions.
10688 (v850_gen_movdi): New function: Generate instructions to move a
10690 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
10691 (CPP_SPEC): Define __v850e3v5__ as appropriate.
10692 (TARGET_USE_FPU): Enable for e3v5.
10693 (CONST_OK_FOR_W): New macro.
10694 (ADJUST_INSN_LENGTH): Define.
10695 * config/v850/v850.md (UNSPEC_LOOP): Define.
10696 (attr cpu): Add v850e3v5.
10697 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
10698 (movdi): New pattern.
10699 (movdi_internal): New pattern.
10700 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
10701 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
10702 (cstoresf4): Likewise.
10703 (cstoredf4): Likewise.
10704 (insv): New pattern.
10705 (rotlso3_a): New pattern.
10706 (rotlsi3_b): New pattern
10707 (rotlsi3_v850e3v5): New pattern.
10708 (doloop_begin): New pattern.
10709 (fix_loop_counter): New pattern.
10710 (doloop_end): New pattern.
10711 (branch_normal): Add e3v5 long branch support.
10712 (branch_invert): Likewise.
10713 (branch_z_normal): Likewise.
10714 (branch_z_invert): Likewise.
10715 (branch_nz_normal): Likewise.
10716 (branch_nz_invert): Likewise.
10717 (call_internal_short): Add e3v5 register-indirect JARL support.
10718 (call_internal_long): Likewise.
10719 (call_value_internal_short): Likewise.
10720 (call_value_internal_long): Likewise.
10721 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
10722 (mloop): New option.
10723 * config.gcc: Add support for configuring v840e3v5 target.
10724 * doc/invoke.texi: Document new v850 specific command line options.
10726 2013-01-31 Paul Koning <ni1d@arrl.net>
10730 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
10731 children if parent is a class.
10732 (prune_unused_types_prune): Don't add DW_AT_declaration.
10734 2013-01-31 Richard Biener <rguenther@suse.de>
10736 PR tree-optimization/56157
10737 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
10738 match up operand with SLP child.
10740 2013-01-31 Jason Merrill <jason@redhat.com>
10743 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
10744 parameters the first time.
10745 (gen_scheduled_generic_parms_dies): Check completeness here.
10747 2013-01-31 Richard Biener <rguenther@suse.de>
10749 PR middle-end/53073
10750 * common.opt (faggressive-loop-optimizations): New flag,
10751 enabled by default.
10752 * doc/invoke.texi (faggressive-loop-optimizations): Document.
10753 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
10754 infer_loop_bounds_from_undefined by it.
10756 2013-01-31 Richard Biener <rguenther@suse.de>
10758 PR tree-optimization/56150
10759 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
10760 visit virtual operands.
10761 (find_uses_to_rename_bb): Likewise.
10763 2013-01-31 Richard Biener <rguenther@suse.de>
10765 PR tree-optimization/56150
10766 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
10767 mixed store non-store stmts.
10769 2013-01-30 Jakub Jelinek <jakub@redhat.com>
10772 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
10773 LIBASAN_EARLY_SPEC is defined.
10774 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
10775 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
10777 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
10780 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
10781 invalid args instead of ICEing on it.
10782 (ix86_valid_target_attribute_tree): Return error_mark_node if
10783 ix86_valid_target_attribute_inner_p failed.
10784 (ix86_valid_target_attribute_p): Return false only if
10785 ix86_valid_target_attribute_tree returned error_mark_node. Allow
10786 target("default") attribute.
10787 (sorted_attr_string): Change argument from const char * to tree,
10788 merge in all target attribute arguments rather than just one.
10789 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
10790 instead of free. Avoid using strcat.
10791 (ix86_mangle_function_version_assembler_name): Mangle
10792 target("default") as if no target attribute is present. Adjust
10793 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
10794 instead of xmalloc and XDELETEVEC instead of free.
10795 (ix86_function_versions): Don't return true if one of the decls
10796 doesn't have target attribute. If they don't and one of the decls
10797 is DECL_FUNCTION_VERSIONED, report an error. Adjust
10798 sorted_attr_string caller. Use XDELETEVEC instead of free.
10799 (ix86_supports_function_versions): Remove.
10800 (make_name): Fix up formatting.
10801 (make_dispatcher_decl): Remove resolver_name and its initialization.
10802 Avoid leaking memory.
10803 (is_function_default_version): Return true if there is
10804 target("default") attribute rather than no target attribute at all.
10805 (make_resolver_func): Avoid leaking memory.
10806 (ix86_generate_version_dispatcher_body): Likewise.
10807 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
10808 * target.def (supports_function_versions): Remove.
10809 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
10810 * doc/tm.texi: Regenerated.
10812 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
10814 PR rtl-optimization/56144
10815 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
10816 for values with side effects.
10818 2013-01-30 Richard Biener <rguenther@suse.de>
10820 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
10821 (sparseset_pop): Likewise.
10822 * cfganal.c (compute_idf): Likewise. Increase work-stack size
10823 to be able to use quick_push in the worker loop.
10825 2013-01-30 Marek Polacek <polacek@redhat.com>
10827 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
10829 2013-01-30 Richard Biener <rguenther@suse.de>
10832 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
10834 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
10836 PR tree-optimization/56064
10837 * fixed-value.c (fixed_from_double_int): New function.
10838 * fixed-value.h (fixed_from_double_int): New prototype.
10839 (const_fixed_from_double_int): New static inline function.
10840 * fold-const.c (native_interpret_fixed): New static function.
10841 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
10842 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
10843 (native_encode_fixed): New static function.
10844 (native_encode_expr) <FIXED_CST>: Use it.
10845 (native_interpret_int): Move double_int worker code to...
10846 * double-int.c (double_int::from_buffer): ...this new static method.
10847 * double-int.h (double_int::from_buffer): Prototype it.
10849 2013-01-30 Richard Biener <rguenther@suse.de>
10851 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
10852 New pointer-map and obstack.
10853 (init_alias_vars): Allocate pointer-map and obstack.
10854 (delete_points_to_sets): Free them.
10855 (find_what_var_points_to): Cache result.
10856 (find_what_p_points_to): Adjust for changed interface of
10857 find_what_var_points_to.
10858 (compute_points_to_sets): Likewise.
10859 (ipa_pta_execute): Likewise.
10861 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10863 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
10864 * configure: Regenerate.
10865 * config.in: Regenerate.
10866 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
10867 #nobits/#progbits if supported.
10869 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
10872 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
10873 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
10874 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
10876 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10878 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
10879 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
10881 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10883 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
10884 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
10886 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10888 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
10890 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
10891 * config/arm/cortex-a7.md: New bypasses using
10892 arm_mac_accumulator_is_result.
10894 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10896 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
10897 (cortex_a7_neon_mla): Likewise.
10898 (cortex_a7_fpfmad): New reservation.
10899 (cortex_a7_fpmacs): Use ffmas and update required units.
10900 (cortex_a7_fpmuld): Update required units and latency.
10901 (cortex_a7_fpmacd): Likewise.
10902 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
10903 (cortex_a7_neon). Likewise.
10904 (bypass) Update participating units.
10906 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10908 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
10909 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
10911 * config/arm/vfp11.md (vfp_farith): Use ffmas.
10912 (vfp_fmul): Use ffmad.
10913 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
10914 (cortex_r4_fmacd): Use ffmad.
10915 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
10916 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
10917 (cortex_a9_fmacd): Use ffmad.
10918 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
10919 (cortex_a8_vfp_macd): Use ffmad.
10920 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
10921 (cortex_a5_fpmacd): Use ffmad.
10922 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
10923 (cortex_a15_vfp_macd): Use ffmad.
10924 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
10926 2013-01-29 Jason Merrill <jason@redhat.com>
10929 * varasm.c (default_assemble_visibility): Don't warn about
10930 visibility on artificial decls.
10932 2013-01-29 Richard Biener <rguenther@suse.de>
10934 PR tree-optimization/56113
10935 * tree-ssa-structalias.c (equiv_class_lookup): Also return
10937 (label_visit): Free duplicate bitmaps and record the leader instead.
10938 (perform_var_substitution): Adjust.
10940 2013-01-29 Richard Biener <rguenther@suse.de>
10942 PR tree-optimization/55270
10943 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
10944 the CFG, schedule loops for fixup.
10946 2013-01-29 Nick Clifton <nickc@redhat.com>
10948 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
10951 2013-01-28 Leif Ekblad <leif@rdos.net>
10953 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
10954 * config/i386/i386.h (TARGET_RDOS): New macro.
10955 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
10956 * config/i386/i386.c (ix86_option_override_internal): For 64bit
10957 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
10958 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
10959 DEFAULT_LARGE_SECTION_THRESHOLD.
10960 * config/i386/i386.md (R14_REG, R15_REG): New constants.
10961 * config/i386/rdos.h: New file.
10962 * config/i386/rdos64.h: New file.
10964 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
10967 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
10970 2013-01-28 Jakub Jelinek <jakub@redhat.com>
10972 PR rtl-optimization/56117
10973 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
10974 call cselib_lookup_from_insn on the MEM before calling
10975 add_insn_mem_dependence.
10977 2013-01-28 Richard Biener <rguenther@suse.de>
10979 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
10980 to a stmt that didn't have one.
10981 (copy_phis_for_bb): Likewise for PHI arguments.
10982 (copy_debug_stmt): Likewise for debug stmts.
10984 2013-01-28 Richard Biener <rguenther@suse.de>
10986 PR tree-optimization/56034
10987 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
10988 (partition_builtin_p): Adjust.
10989 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
10990 it is the last partition.
10991 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
10992 up the vertex for the definition.
10993 (classify_partition): Classify whether a partition is a
10994 PKIND_REDUCTION, thus has uses outside of the loop.
10995 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
10996 Merge all PKIND_REDUCTION partitions into the last partition.
10997 (tree_loop_distribution): Seed partitions from reductions as well.
10999 2013-01-28 Jakub Jelinek <jakub@redhat.com>
11001 PR tree-optimization/56125
11002 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
11003 pow(x,c) into sqrt(x) * powi(x, n/2) or
11004 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
11005 optimizing for size.
11006 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
11007 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
11010 PR tree-optimization/56094
11011 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
11012 to UNKNOWN_LOCATION while gimplifying expr.
11014 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
11017 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
11018 operand 0 in movabs insn template for -masm=intel asm alternative.
11019 (*movabs<mode>_2): Ditto for operand 1.
11021 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
11024 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
11027 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11029 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
11032 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11034 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
11035 Undef to avoid warning.
11037 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
11039 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
11040 * configure: Regenerate.
11042 2013-01-25 Jakub Jelinek <jakub@redhat.com>
11044 PR tree-optimization/56098
11045 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
11046 for stmts with volatile ops.
11047 (cond_store_replacement): Don't optimize if assign has volatile ops.
11048 (cond_if_else_store_replacement_1): Don't optimize if either
11049 then_assign or else_assign have volatile ops.
11050 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
11053 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
11055 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
11057 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
11059 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
11060 missing ':' in asm example.
11062 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
11064 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
11065 entries into lane and laneq entries.
11066 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
11067 Remove AdvSIMD scalar modes.
11068 (aarch64_sq<r>dmulh_laneq<mode>): New.
11069 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
11071 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
11072 builtin implementations to relfect changes in RTL in aarch64-simd.md.
11073 * config/aarch64/iterators.md (VCOND): New.
11076 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
11079 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
11080 Add NULL LIBNAME argument to existing definitions.
11081 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
11082 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
11083 * config/avr/avr.c (DEF_BUILTIN): Same.
11084 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
11085 (avr_expand_builtin): Expand to a vanilla call if a libgcc
11086 implementation is available (DECL_ASSEMBLER_NAME is set).
11087 (avr_fold_absfx): New static function.
11088 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
11089 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
11090 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
11091 AVR_BUILTIN_ABSLLK.
11092 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
11093 (abshk, absk, abslk, absllk): Provide as static inline functions.
11095 2013-01-25 Marek Polacek <polacek@redhat.com>
11097 PR tree-optimization/56035
11098 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
11100 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
11102 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
11103 (*movtf_internal_rex64): Add (!o,C) alternative
11104 (*movxf_internal_rex64): Ditto.
11105 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
11107 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
11109 * doc/invoke.texi: fix typo.
11110 * doc/objc.texi: fix typo.
11112 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
11114 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
11115 for the first two alternatives.
11117 2013-01-24 Diego Novillo <dnovillo@google.com>
11119 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
11120 (ggc-zone.o): Remove.
11121 * configure.ac: Remove option --with-gc.
11122 * configure: Re-generate.
11123 * doc/install.texi: Remove documentation for --with-gc.
11124 * gengtype.c (write_enum_defn): Remove. Update all users.
11125 (write_Types_process_field): Remove generation of gt_e_* argument.
11126 (output_type_enum): Remove. Update all users.
11127 (write_enum_defn): Remove. Update all users.
11128 (enum alloc_zone): Remove. Update all users.
11129 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
11130 * ggc-common.c (ggc_splay_alloc): Remove first argument.
11131 Update all callers.
11132 (struct ptr_data): Remove field TYPE. Update all users.
11133 (gt_pch_note_object): Remove argument TYPE. Update all users.
11134 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
11136 * ggc-none.c (ggc_alloc_typed_stat): Remove.
11137 (struct alloc_zone): Remove.
11138 (ggc_internal_alloc_zone_stat): Remove.
11139 (ggc_internal_cleared_alloc_zone_stat): Remove.
11140 * ggc-page.c (ggc_alloc_typed_stat): Remove.
11141 (ggc_pch_count_object): Remove last argument. Update all users.
11142 (ggc_pch_alloc_object): Remove last argument. Update all users.
11143 (struct alloc_zone): Remove.
11144 * ggc-zone.c: Remove.
11145 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
11146 (struct alloc_zone): Remove.
11147 (ggc_alloc_typed_stat): Remove.
11148 (ggc_alloc_typed): Remove.
11149 (ggc_splay_alloc): Remove first argument.
11150 (rtl_zone): Remove. Update all users.
11151 (tree_zone): Remove. Update all users.
11152 (tree_id_zone): Remove. Update all users.
11153 (ggc_internal_zone_alloc_stat): Remove. Update all users.
11154 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
11155 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
11156 * tree-ssanames.c: Remove references to zone allocator in comments.
11158 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
11160 * config/avr/avr.c (avr_out_fract): Make register numbers that
11161 might be outside of source operand signed.
11163 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
11165 * config/i386/constraints.md (Yf): New constraint.
11166 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
11167 of f constraint to conditionaly disable x87 register preferences.
11168 (*movdf_internal): Ditto.
11169 (*movsf_internal): Ditto.
11171 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
11173 PR inline-asm/55934
11174 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
11175 that have operands with impossible constraints.
11176 Add a FIXME for a speed-up opportunity.
11177 * lra-constraints.c (process_alt_operands): Verify that a class
11178 selected from constraints on asms is valid for the operand mode.
11179 (curr_insn_transform): Remove incorrect comment.
11181 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
11183 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
11184 TOC operand is a valid symbol ref in the constant pool.
11186 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11188 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
11190 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
11193 * config/avr/stdfix.h: New file.
11194 * t-avr (stdfix-gcc.h): New rule to build it.
11195 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
11197 2013-01-23 Kostya Serebryany <kcc@google.com>
11199 * config/darwin.h: remove dependency on
11200 CoreFoundation (asan on Mac OS).
11202 2013-01-23 Jakub Jelinek <jakub@redhat.com>
11205 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
11206 instead of cmpdi_operand for first comparison operand.
11207 Don't assert that comparison operands aren't both constants.
11209 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
11211 * doc/install.texi (Downloading the Source): Update references to
11212 downloading separate components.
11214 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
11216 * doc/extend.texi (__int128): Improve grammar.
11218 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
11221 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
11222 alternative to (o,r).
11223 (*movdi_internal_rex64): Remove (!o,n) alternative.
11224 (DImode immediate->memory splitter): Remove.
11225 (DImode immediate->memory peephole2): Remove.
11226 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
11227 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
11228 alternative to (!o,*r).
11229 (*movtf_internal_sse): New pattern.
11230 (*movxf_internal_rex64): New pattern.
11231 (*movxf_internal): Disable for TARGET_64BIT.
11232 (*movdf_internal_rex64): Remove (!o,F) alternative.
11234 2013-01-22 Jakub Jelinek <jakub@redhat.com>
11236 PR middle-end/56074
11237 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
11238 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
11239 * tree-vect-loop-manip.c (find_loop_location): Also ignore
11240 stmt locations where LOCATION_LOCUS of the stmt location is
11241 UNKNOWN_LOCATION or BUILTINS_LOCATION.
11244 * config/i386/i386.md (UNSPEC_STOS): New.
11245 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
11246 *strsetqi_1): Add UNSPEC_STOS.
11248 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
11251 * doc/invoke.texi: Remove left over -Wsynth example.
11253 2013-01-21 Jakub Jelinek <jakub@redhat.com>
11255 PR tree-optimization/56051
11256 * fold-const.c (fold_binary_loc): Don't fold
11257 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
11258 a narrowing conversion, or widening conversion from signed
11261 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
11263 PR rtl-optimization/56023
11264 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
11265 dependent on debug instruction.
11267 2013-01-21 Martin Jambor <mjambor@suse.cz>
11269 PR middle-end/56022
11270 * function.c (allocate_struct_function): Call
11271 invoke_set_current_function_hook earlier.
11273 2013-01-21 Jakub Jelinek <jakub@redhat.com>
11275 * reload1.c (init_reload): Only initialize reload_obstack
11276 during the first call.
11278 2013-01-21 Marek Polacek <polacek@redhat.com>
11280 * cfgloop.c (verify_loop_structure): Fix up grammar.
11282 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
11284 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
11285 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
11287 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11290 * config/arm/marvell-pj4.md: Update copyright year.
11291 Fix up use of alu to alu_reg and simple_alu_imm.
11293 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
11295 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
11297 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
11300 * lra-constraints.c (curr_insn_transform): Don't reuse original
11301 insn for secondary memory move when memory mode should be different.
11303 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11305 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
11306 atomic_storedi_1): New patterns.
11308 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11310 btver2 pipeline descriptions.
11311 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
11313 * config/i386/i386.md (btver2_decode): New type attributes.
11314 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
11316 * config/i386/btver2.md: New file describing btver2 pipelines.
11318 2013-01-19 Andrew Pinski <apinski@cavium.com>
11320 PR tree-optimization/52631
11321 * tree-ssa-sccvn (visit_use): Before looking up the original
11322 statement, try looking up the simplified expression.
11324 2013-01-19 Anthony Green <green@moxielogic.com>
11326 * config/moxie/moxie.c (moxie_expand_prologue): Set
11327 current_function_static_stack_size.
11329 2013-01-18 Jakub Jelinek <jakub@redhat.com>
11331 PR tree-optimization/56029
11332 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
11333 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
11335 2013-01-18 Sharad Singhai <singhai@google.com>
11337 PR tree-optimization/55995
11338 * dumpfile.c (dump_loc): Print location only if available.
11339 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
11341 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
11344 * lra-constraints.c (curr_insn_transform): Reuse original insn for
11345 secondary memory move.
11346 (inherit_reload_reg): Use rclass instead of cl for
11347 check_secondary_memory_needed_p.
11349 2013-01-18 Jakub Jelinek <jakub@redhat.com>
11351 PR middle-end/56015
11352 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
11353 the case where writing real complex part of target modifies op1.
11355 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
11357 * config/aarch64/aarch64-simd.md
11358 (aarch64_vcond_internal<mode>): Handle unordered cases.
11359 * config/aarch64/iterators.md (v_cmp_result): New.
11361 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
11362 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11364 * config/arm/marvell-pj4.md: New file.
11365 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
11366 * config/arm/arm.md (generic_sched): Add marvell_pj4.
11367 (generic_vfp): Likewise.
11368 * config/arm/arm-cores.def: Add marvell-pj4.
11369 * config/arm/arm-tune.md: Regenerate.
11370 * config/arm/arm-tables.opt: Regenerate.
11371 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
11372 * doc/invoke.texi: Document marvell-pj4.
11374 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
11376 * config/aarch64/arm_neon.h: Map scalar types to standard types.
11378 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
11383 * var-tracking.c (negative_power_of_two_p): New.
11384 (global_get_addr_cache, local_get_addr_cache): New.
11385 (get_addr_from_global_cache, get_addr_from_local_cache): New.
11386 (vt_canonicalize_addr): Rewrite using the above. Adjust the
11388 (vt_stack_offset_p): Remove.
11389 (vt_canon_true_dep): Always canonicalize loc's address.
11390 (clobber_overlapping_mems): Make sure we have a MEM.
11391 (local_get_addr_clear_given_value): New.
11392 (val_reset): Clear local cached entries.
11393 (compute_bb_dataflow): Create and release the local cache.
11394 Disable duplicate MEMs clobbering.
11395 (emit_notes_in_bb): Clobber MEMs likewise.
11396 (vt_emit_notes): Create and release the local cache.
11397 (vt_initialize, vt_finalize): Create and release the global
11398 cache, respectively.
11399 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
11401 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
11403 PR libmudflap/53359
11404 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
11405 not found in the symtab.
11407 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
11410 PR rtl-optimization/55547
11411 PR rtl-optimization/53827
11414 * alias.c (offset_overlap_p): New, factored out of...
11415 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
11416 the conservative special case for symbolic constants. Don't
11417 adjust zero sizes on alignment.
11419 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
11421 PR rtl-optimization/52573
11422 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
11423 REG_UNUSED for the same register.
11425 2013-01-17 Richard Biener <rguenther@suse.de>
11426 Marek Polacek <polacek@redhat.com>
11428 PR rtl-optimization/55833
11429 * loop-unswitch.c (unswitch_loops): Move loop verification...
11430 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
11431 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
11432 Set it to true when we're removing a loop from hierarchy tree in
11433 an irreducible region.
11434 (fix_bb_placements): Adjust caller.
11435 (fix_loop_placements): Likewise.
11437 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
11439 * config/avr/builtins.def (DEF_BUILTIN): Factor out
11440 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
11441 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
11442 Remove ID. Adjust comments.
11443 * config/avr/avr-c.c (avr_builtin_name): Remove.
11444 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
11445 * config/avr/avr.c (avr_tolower): New static function.
11446 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
11447 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
11448 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
11451 2013-01-17 Jan Hubicka <jh@suse.cz>
11453 PR tree-optimization/55273
11454 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
11456 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
11459 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
11460 store through atomic_store<mode>_1.
11461 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
11463 2013-01-17 Martin Jambor <mjambor@suse.cz>
11465 PR tree-optimizations/55264
11466 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
11467 for virtual methods.
11468 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
11469 virtual methods before inlining is over.
11470 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
11472 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
11475 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
11477 PR rtl-optimization/56005
11478 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
11479 pending reads for prefetch.
11481 2013-01-16 Ian Bolton <ian.bolton@arm.com>
11483 * config/aarch64/aarch64.md
11484 (*cstoresi_neg_uxtw): New pattern.
11485 (*cmovsi_insn_uxtw): New pattern.
11486 (*<optab>si3_uxtw): New pattern.
11487 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
11488 (*<optab>si3_insn_uxtw): New pattern.
11489 (*bswapsi2_uxtw): New pattern.
11491 2013-01-16 Richard Biener <rguenther@suse.de>
11493 * tree-inline.c (tree_function_versioning): Remove set but
11494 never used variable.
11496 2013-01-16 Richard Biener <rguenther@suse.de>
11498 PR tree-optimization/55964
11499 * tree-flow.h (rename_variables_in_loop): Remove.
11500 (rename_variables_in_bb): Likewise.
11501 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
11502 (copy_loop_before): Adjust and delete update-ssa status.
11503 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
11504 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
11505 (rename_variables_in_loop): Remove.
11506 (slpeel_update_phis_for_duplicate_loop): Likewise.
11507 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
11508 use available cfg machinery instead of duplicating it.
11509 Update PHI nodes and perform poor-mans SSA update here.
11510 (slpeel_tree_peel_loop_to_edge): Adjust.
11512 2013-01-16 Richard Biener <rguenther@suse.de>
11514 PR tree-optimization/54767
11515 PR tree-optimization/53465
11516 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
11517 (vrp_visit_phi_node): For PHI arguments coming via backedges
11518 drop all symbolical range information.
11519 (execute_vrp): Compute backedges.
11521 2013-01-16 Richard Biener <rguenther@suse.de>
11523 * doc/install.texi: Update CLooG and ISL requirements to
11526 2013-01-16 Christian Bruel <christian.bruel@st.com>
11529 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
11530 (broken_move): Handle UNSPECV_SP_SWITCH_B.
11531 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
11533 2013-01-16 DJ Delorie <dj@redhat.com>
11535 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
11536 (UNSPECV_SP_SWITCH_E): New.
11537 (sp_switch_1): Change to an unspec.
11538 (sp_switch_2): Change to an unspec. Don't use post-inc when we
11541 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
11543 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
11544 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
11545 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
11546 (expand_mem_thread_fence): Ditto.
11547 (expand_mem_signal_fence): Ditto.
11548 (expand_atomic_load): Ditto.
11549 (expand_atomic_store): Ditto.
11551 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
11553 PR rtl-optimization/55547
11554 PR rtl-optimization/53827
11557 * alias.c (memrefs_conflict_p): Set sizes to negative after
11560 2013-01-15 Jakub Jelinek <jakub@redhat.com>
11563 * function.c (thread_prologue_and_epilogue_insns): Always
11564 add crtl->drap_reg to set_up_by_prologue.set, even if
11565 stack_realign_drap is false.
11567 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11569 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
11570 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
11571 *call): Fix indention.
11573 2013-01-15 Tom de Vries <tom@codesourcery.com>
11576 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
11579 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
11581 PR rtl-optimization/55153
11582 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
11584 2013-01-15 Martin Jambor <mjambor@suse.cz>
11586 PR tree-optimization/55920
11587 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
11588 accesses as grp_to_be_debug_replaced.
11590 2013-01-15 Jakub Jelinek <jakub@redhat.com>
11592 PR tree-optimization/55920
11593 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
11594 there is non-useless type conversion needed from debug rhs to lhs,
11595 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
11597 2013-01-15 Joseph Myers <joseph@codesourcery.com>
11598 Mikael Pettersson <mikpe@it.uu.se>
11601 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
11603 (ASM_OUTPUT_CASE_LABEL): Remove.
11604 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
11605 * final.c (shorten_branches): Update alignment of labels before
11606 jump tables if CASE_VECTOR_SHORTEN_MODE.
11608 2013-01-15 Richard Biener <rguenther@suse.de>
11611 * system.h: Do not include gmp.h for building host tools.
11613 2013-01-15 Richard Biener <rguenther@suse.de>
11615 PR middle-end/55882
11616 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
11617 account for bitpos when computing alignment.
11619 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
11621 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
11622 (ix86_target_macros_internal): Likewise.
11624 * config/i386/i386.c (m_CORE2I7): Removed.
11625 (m_CORE_HASWELL): New macro.
11626 (m_CORE_ALL): Likewise.
11627 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
11628 (initial_ix86_arch_features): Likewise.
11629 (processor_target_table): Initializations for Core avx2.
11630 (cpu_names): New names "core-avx2".
11631 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
11632 PROCESSOR_CORE_HASWELL.
11633 (ix86_issue_rate): New case.
11634 (ia32_multipass_dfa_lookahead): Likewise.
11635 (ix86_sched_init_global): Likewise.
11637 * config/i386/i386.h (TARGET_HASWELL): New macro.
11638 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
11639 (processor_type): New PROCESSOR_HASWELL.
11641 2013-01-15 Jakub Jelinek <jakub@redhat.com>
11643 PR tree-optimization/55955
11644 * tree-vect-loop.c (vectorizable_reduction): Give up early on
11645 *SHIFT_EXPR and *ROTATE_EXPR codes.
11647 PR tree-optimization/48766
11648 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
11649 -ftrapv disable -fwrapv.
11651 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
11654 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
11655 etc. to 1 and not to __flash.
11656 Use LL suffix for __INT24_MAX__ with -mint8.
11657 Use ULL suffix for __UINT24_MAX__ with -mint8.
11659 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
11661 * config/avr/avr-arch.h
11662 (struct base_arch_s): Use typedef avr_arch_t instead.
11663 (struct arch_info_s): Use typedef avr_arch_info_t instead.
11664 (struct mcu_type_s): Use typedef avr_mcu_t instead.
11665 * config/avr/avr.c: Same.
11666 * config/avr/avr-devices.c: Same.
11667 * config/avr/driver-avr.c: Same.
11668 * config/avr/gen-avr-mmcu-texi.c: Same.
11669 * config/avr/avr-mcus.def: Adjust comment.
11671 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
11673 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
11674 * config/aarch64/iterators.md (VALLDI): New.
11676 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
11677 Andi Kleen <ak@linux.intel.com>
11680 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
11681 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
11684 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
11686 * config/avr/avr-stdint.h: Remove trailing blanks.
11687 * config/avr/avr-log.h: Same.
11688 * config/avr/avr-arch.h: Same.
11689 * config/avr/avr-devices.c: Same.
11690 * config/avr/avr-dimode.md: Same.
11691 * config/avr/predicates.md: Same.
11692 * config/avr/avr-c.c: Same. And fix typo.
11694 * config/avr/avr-protos.h: Same. And:
11695 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
11696 (init_cumulative_args): Rename to avr_init_cumulative_args.
11697 (expand_prologue): Rename to avr_expand_prologue.
11698 (expand_epilogue): Rename to avr_expand_epilogue.
11699 (adjust_insn_length): Rename to avr_adjust_insn_length.
11700 (notice_update_cc): Rename to avr_notice_update_cc.
11701 (final_prescan_insn): Rename to avr_final_prescan_insn.
11702 * config/avr/avr.c: Same.
11703 * config/avr/avr.h: Same.
11704 * config/avr/avr.md: Remove trailing blanks.
11705 (prologue): Use avr_expand_prologue.
11706 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
11708 2013-01-14 Richard Biener <rguenther@suse.de>
11710 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
11711 verify_location, collect_subblocks): New functions.
11712 (verify_gimple_in_cfg): Verify that locations only reference
11713 BLOCKs in the functions BLOCK tree.
11715 2013-01-14 Richard Biener <rguenther@suse.de>
11717 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
11719 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
11721 (insert_out_of_ssa_copy_on_edge): Likewise.
11722 (rewrite_close_phi_out_of_ssa): Likewise.
11723 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
11725 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
11726 propagated constants.
11727 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
11730 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
11732 * config/avr/avr-modes.def: Add GPL copyright notice.
11734 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
11736 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
11737 MEMMODEL_MASK to determine memory model.
11738 (atomic_store<mode>): Ditto from operands[2].
11739 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
11741 2013-01-13 Jakub Jelinek <jakub@redhat.com>
11744 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
11745 (fold_gimple_assign): Don't call unshare_expr here.
11746 (fold_ctor_reference): Call unshare_expr.
11748 2013-01-13 Terry Guo <terry.guo@arm.com>
11750 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
11751 * doc/fragments.texi: Document MULTILIB_REUSE.
11752 * gcc.c (multilib_reuse): New internal spec.
11753 (set_multilib_dir): Also search multilib from multilib_reuse.
11754 * genmultilib (tmpmultilib3): Refactor code.
11755 (tmpmultilib4): Ditto.
11756 (multilib_reuse): New multilib argument.
11758 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
11760 * Makefile.in: Update copyright.
11762 2013-01-12 Tom de Vries <tom@codesourcery.com>
11764 PR middle-end/55890
11765 * calls.c (expand_call): Check if arg_nr is valid.
11767 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
11769 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
11770 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
11771 documentation. Add missing '__' in front of
11772 __builtin_ia32_packssdw256.
11774 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11777 * config/s390/s390.c (s390_preferred_reload_class): Do not return
11778 NO_REGS for larl operands.
11779 (s390_reload_larl_operand): Use s390_load_address instead of
11782 2013-01-11 Richard Biener <rguenther@suse.de>
11784 * tree-cfg.c (verify_node_sharing_1): Split out from ...
11785 (verify_node_sharing): ... here.
11786 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
11788 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
11790 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
11791 Substitute TREECHECKING.
11792 * configure: Regenerate.
11793 * Makefile.in (TREECHECKING): New.
11795 2013-01-11 Richard Guenther <rguenther@suse.de>
11797 PR tree-optimization/44061
11798 * tree-vrp.c (extract_range_basic): Compute zero as
11799 value-range for __builtin_constant_p of function parameters.
11801 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
11803 Update copyright years.
11805 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
11807 PR rtl-optimization/55672
11808 * lra-eliminations.c (mark_not_eliminable): Permit addition with
11809 const to be eliminable.
11811 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
11813 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
11814 * configure: Regenerate.
11816 2013-01-10 Richard Biener <rguenther@suse.de>
11818 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
11820 2013-01-10 Richard Biener <rguenther@suse.de>
11823 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
11824 locations for virtual PHI arguments.
11825 (rewrite_update_phi_arguments): Likewise.
11827 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
11829 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
11832 2013-01-10 Jakub Jelinek <jakub@redhat.com>
11834 PR tree-optimization/55921
11835 * tree-complex.c (expand_complex_asm): New function.
11836 (expand_complex_operations_1): Call it for GIMPLE_ASM.
11838 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11841 * config/s390/s390.c (s390_symref_operand_p)
11842 (s390_loadrelative_operand_p): Merge the two functions.
11843 (s390_check_qrst_address, print_operand_address): Add parameters
11844 to s390_loadrelative_operand_p invokation.
11845 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
11846 (s390_reload_larl_operand, s390_secondary_reload): Use
11847 s390_loadrelative_operand_p instead of s390_symref_operand_p.
11848 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
11850 2013-01-09 Mike Stump <mikestump@comcast.net>
11852 * dse.c (record_store): Remove unnecessary assert.
11854 2013-01-09 Jan Hubicka <jh@suse.cz>
11856 PR tree-optimization/55569
11857 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
11858 * cfgloop.h (scale_loop_profile): Likewise.
11860 2013-01-09 Jan Hubicka <jh@suse.cz>
11863 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
11865 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
11867 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
11869 PR middle-end/55114
11870 * expr.h (maybe_emit_group_store): Declare.
11871 * expr.c (maybe_emit_group_store): New function.
11872 * builtins.c (expand_builtin_int_roundingfn): Call it.
11873 (expand_builtin_int_roundingfn_2): Likewise.
11875 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
11877 PR rtl-optimization/55829
11878 * lra-constraints.c (match_reload): Add code for absent output.
11879 (curr_insn_transform): Add code for reloads of matched inputs
11882 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
11884 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
11885 attribute of movddup insn to DF.
11886 (*vec_interleave_lowv2df): Ditto.
11887 (vec_dupv2df): Ditto.
11889 2013-01-09 Jan Hubicka <jh@suse.cz>
11891 PR tree-optimiation/55875
11892 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
11893 EVERY_ITERATION parameter.
11894 (number_of_iterations_exit): Check if exit is executed every iteration.
11895 (idx_infer_loop_bounds): Similarly here.
11896 (n_of_executions_at_most): Simplify
11897 to only test for cases where statement is dominated by the
11898 particular bound; handle correctly the "postdominance" test.
11899 (scev_probably_wraps_p): Use max loop iterations info
11900 as a global bound first.
11902 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
11903 Nick Clifton <nickc@redhat.com>
11905 * config/v850/v850.md (cbranchsf4): New pattern.
11906 (cstoresf4): New pattern.
11907 (cbranchdf4): New pattern.
11908 (cstoredf4): New pattern.
11909 (movsicc): Disallow floating point comparisons.
11910 (cmpsf_le_insn): Fix order of operators.
11911 (cmpsf_lt_insn): Likewise.
11912 (cmpsf_eq_insn): Likewise.
11913 (cmpdf_le_insn): Likewise.
11914 (cmpdf_lt_insn): Likewise.
11915 (cmpdf_eq_insn): Likewise.
11916 (cmpsf_ge_insn): Use LE comparison.
11917 (cmpdf_ge_insn): Likewise.
11918 (cmpsf_gt_insn): Use LT comparison.
11919 (cmpdf_gt_insn): Likewise.
11920 (cmpsf_ne_insn): Delete pattern.
11921 (cmpdf_ne_insn): Delete pattern.
11922 * config/v850/v850.c (v850_gen_float_compare): Use
11923 gen_cmpdf_eq_insn for NE comparison.
11924 (v850_float_z_comparison_operator)
11925 (v850_float_nz_comparison_operator): Move from here ...
11926 * config/v850/predicates.md: ... to here. Move GT and GE
11927 comparisons into v850_float_z_comparison_operator.
11928 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
11930 (v850_float_nz_comparison_operator): Likewise.
11932 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11934 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
11935 with calls to gen_insvsi/gen_insvdi.
11937 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11939 * config/i386/i386.c (initial_ix86_tune_features): Set up
11940 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
11942 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
11943 Jakub Jelinek <jakub@redhat.com>
11945 PR tree-optimization/48189
11946 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
11947 If nitercst is 0, don't predict the exit edge.
11949 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11951 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
11952 in asm_fprintf with reg_names.
11953 (aarch64_print_operand_address): Likewise.
11954 (aarch64_return_addr): Likewise.
11955 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
11957 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11959 * config/pa/pa.h (VAL_U6_BITS_P): Define.
11960 (INT_U6_BITS): Likewise.
11961 * config/pa/predicates.md (uint6_operand): New predicate.
11962 (shift5_operand, shift6_operand): Likewise.
11963 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
11965 (lshrdi3): Use shift6_operand.
11966 (shrpsi4, shrpdi4): New insn patterns.
11967 (extzv): Delete expander.
11968 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
11969 predicates in unamed zero extract patterns. Tighten common constraint.
11970 (extv): Delete expander.
11971 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
11972 predicates in unamed sign extract patterns. Tighten common constraint.
11973 (insv): Delete expander.
11974 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
11975 predicates in unamed insert patterns. Tighten common constraint.
11976 Change uint32_operand predicate to uint6_operand predicate in unamed
11977 DImode pattern to insert constant values of type 1...1xxxx.
11979 2013-01-04 Jan Hubicka <jh@suse.cz>
11981 PR tree-optimization/55823
11982 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
11985 2013-01-08 Jakub Jelinek <jakub@redhat.com>
11986 Uros Bizjak <ubizjak@gmail.com>
11988 PR rtl-optimization/55845
11989 * df-problems.c (can_move_insns_across): Stop scanning at
11990 volatile_insn_p source instruction or give up if
11991 across_from .. across_to range contains any volatile_insn_p
11994 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
11996 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
11997 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
11999 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
12000 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
12002 2013-01-08 Jakub Jelinek <jakub@redhat.com>
12005 * asan.c (asan_clear_shadow): New function.
12006 (asan_emit_stack_protection): Use it.
12008 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
12010 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
12011 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
12012 with tab instead of space.
12014 2013-01-08 Nick Clifton <nickc@redhat.com>
12016 * config/rl78/rl78.c (rl78_expand_prologue): Always select
12017 register bank 0 at the start of an interrupt handler.
12018 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
12021 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
12023 * config/aarch64/aarch64-simd.md
12024 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
12025 (aarch64_simd_bsl): Likewise.
12026 (aarch64_vcond_internal<mode>): Likewise.
12027 (vcond<mode><mode>): Likewise.
12028 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
12029 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
12031 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
12033 * config/aarch64/aarch64-builtins.c
12034 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
12036 2013-01-08 Martin Jambor <mjambor@suse.cz>
12039 * tree-sra.c (analyze_access_subtree): Return true also after
12040 potentially creating a debug-only replacement.
12042 2013-01-08 Jakub Jelinek <jakub@redhat.com>
12044 PR middle-end/55890
12045 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
12047 PR tree-optimization/54120
12048 * tree-vrp.c (range_fits_type_p): Don't allow
12049 src_precision < precision from signed vr to unsigned_p
12050 if vr->min or vr->max is negative.
12051 (simplify_float_conversion_using_ranges): Test can_float_p
12052 against CODE_FOR_nothing.
12054 2013-01-08 Jakub Jelinek <jakub@redhat.com>
12055 Richard Biener <rguenther@suse.de>
12057 PR middle-end/55851
12058 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
12059 types instead of just INTEGER_TYPE types.
12061 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
12063 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
12066 2013-01-07 Steve Ellcey <sellcey@mips.com>
12069 * config/mips/mips.opt: Change mad to mmad to match documentation.
12071 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
12074 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
12075 .progmemx.data now.
12077 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
12080 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
12081 (avr_addrspace_t): Add .section_name field.
12082 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
12084 (avr_addrspace): Same. Initialize .section_name. Remove last
12085 NULL entry. Put __memx into .progmemx.data.
12086 (progmem_section_prefix): Remove.
12087 (avr_asm_init_sections): No need to initialize progmem_section.
12088 (avr_asm_named_section): Use avr_addrspace[].section_name to get
12089 section name prefix.
12090 (avr_asm_select_section): Ditto. And use get_unnamed_section to
12091 retrieve the progmem section.
12092 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
12093 boundary to run over avr_addrspace[].
12094 (avr_register_target_pragmas): Ditto.
12096 2013-01-06 Jakub Jelinek <jakub@redhat.com>
12098 * varasm.c (output_constant_def_contents): For asan_protect_global
12099 protected strings, adjust DECL_ALIGN if needed, before testing for
12101 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
12102 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
12104 (output_object_block): For asan protected decls, emit asan padding
12105 after their contents.
12106 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
12107 (asan_finish_file): Test it here instead.
12109 2013-01-07 Nick Clifton <nickc@redhat.com>
12110 Matthias Klose <doko@debian.org>
12111 Doug Kwan <dougkwan@google.com>
12112 H.J. Lu <hongjiu.lu@intel.com>
12115 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
12117 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
12119 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
12121 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
12123 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
12125 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
12128 * doc/install.texi (Cross-Compiler-Specific Options): Document
12131 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
12133 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
12134 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
12135 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
12136 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
12137 vqmovun_high_s64): Fix source operand number and update copyright.
12139 2013-01-07 Richard Biener <rguenther@suse.de>
12141 PR middle-end/55890
12142 * gimple.h (gimple_call_builtin_p): New overload.
12143 * gimple.c (validate_call): New function.
12144 (gimple_call_builtin_p): Likewise.
12145 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
12146 Use gimple_call_builtin_p.
12147 (find_func_clobbers): Likewise.
12148 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
12149 (strlen_optimize_stmt): Likewise.
12151 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
12153 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
12154 (vld1q_dup_*): Likewise.
12155 (vld1_*): Likewise.
12156 (vld1q_*): Likewise.
12157 (vld1_lane_*): Likewise.
12158 (vld1q_lane_*): Likewise.
12160 2013-01-07 Richard Biener <rguenther@suse.de>
12162 * lto-streamer.h (LTO_minor_version): Bump to 2.
12164 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
12166 * config/aarch64/aarch64-protos.h
12167 (aarch64_const_double_zero_rtx_p): Rename to...
12168 (aarch64_float_const_zero_rtx_p): ...this.
12169 (aarch64_float_const_representable_p): New.
12170 (aarch64_output_simd_mov_immediate): Likewise.
12171 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
12172 move immediate case.
12173 * config/aarch64/aarch64.c
12174 (aarch64_const_double_zero_rtx_p): Rename to...
12175 (aarch64_float_const_zero_rtx_p): ...this.
12176 (aarch64_print_operand): Allow printing of new constants.
12177 (aarch64_valid_floating_const): New.
12178 (aarch64_legitimate_constant_p): Check for valid floating-point
12180 (aarch64_simd_valid_immediate): Likewise.
12181 (aarch64_vect_float_const_representable_p): New.
12182 (aarch64_float_const_representable_p): Likewise.
12183 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
12184 (aarch64_output_simd_mov_immediate): New.
12185 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
12186 (*movdf_aarch64): Likewise.
12187 * config/aarch64/constraints.md (Ufc): New.
12188 (Y): call aarch64_float_const_zero_rtx.
12189 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
12191 2013-01-07 Richard Biener <rguenther@suse.de>
12193 PR tree-optimization/55888
12194 PR tree-optimization/55862
12195 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
12196 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
12197 not if it is contained therein.
12199 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
12201 * config/avr/t-avr: Typo.
12203 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
12206 * config/avr/t-avr: Don't automatically rebuild
12207 $(srcdir)/config/avr/t-multilib
12208 $(srcdir)/config/avr/avr-tables.opt
12209 $(srcdir)/doc/avr-mmcu.texi
12210 (avr-mcus): New phony target to build them on request.
12211 (s-avr-mlib, s-avr-mmcu-texi): Remove.
12212 * avr/avr-mcus.def: Adjust comments.
12214 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
12216 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
12218 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
12220 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
12222 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
12224 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
12226 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
12228 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
12229 to generate profiling.
12230 * config/rs6000/aix64.h (LIB_SPEC): Same.
12232 2013-01-04 Andrew Pinski <apinski@cavium.com>
12234 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
12236 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
12238 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
12240 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
12242 (ix86_expand_move): Ditto.
12243 (ix86_zero_extend_to_Pmode): Ditto.
12244 (ix86_expand_call): Ditto.
12245 (ix86_expand_special_args_builtin): Ditto.
12246 (ix86_expand_builtin): Ditto.
12248 2013-01-04 Richard Biener <rguenther@suse.de>
12250 PR tree-optimization/55862
12251 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
12252 translating them through PHI nodes.
12254 2013-01-04 Martin Jambor <mjambor@suse.cz>
12256 PR tree-optimization/55755
12257 * tree-sra.c (sra_modify_assign): Do not check that an access has no
12258 children when trying to avoid producing a VIEW_CONVERT_EXPR.
12260 2013-01-04 Marek Polacek <polacek@redhat.com>
12262 PR middle-end/55859
12263 * opts.c (default_options_optimization): Clarify error message.
12265 2013-01-04 Richard Biener <rguenther@suse.de>
12267 PR middle-end/55863
12268 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
12271 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12274 * config/pa/pa.md (movsi): Revert previous change.
12275 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
12278 2013-01-03 Richard Henderson <rth@redhat.com>
12280 * config/i386/i386.c (ix86_expand_move): Always assign to op1
12281 after eliminating TLS symbols.
12283 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
12286 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
12287 * graphite-poly.c (debug_gmp_value): Likewise.
12289 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
12292 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
12293 selected code model, define __code_mode_small__, __code_model_medium__,
12294 __code_model_large__, __code_model_32__ or __code_model_kernel__.
12295 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
12296 xchg temporary register with %k. Declare temporary register as
12298 [__x86_64__]: For medium and large code models, preserve %rbx register.
12300 2013-01-03 Richard Biener <rguenther@suse.de>
12302 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
12303 (dump_subscript): Adjust.
12304 (finalize_ddr_dependent): Do not dump redundant info.
12305 (analyze_siv_subscript): Adjust.
12306 (subscript_dependence_tester): Likewise.
12307 (compute_affine_dependence): Likewise.
12309 2013-01-03 Richard Biener <rguenther@suse.de>
12312 2013-01-03 Richard Biener <rguenther@suse.de>
12314 PR tree-optimization/55857
12315 * tree-vect-stmts.c (vectorizable_load): Do not setup
12316 re-alignment for invariant loads.
12318 2013-01-02 Richard Biener <rguenther@suse.de>
12320 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
12321 invariant load do not generate a vector load from the scalar location.
12323 2013-01-03 Richard Biener <rguenther@suse.de>
12325 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
12326 for not vectorizing.
12327 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
12328 not build INDIRECT_REFs, call get_name once only.
12329 (vect_create_data_ref_ptr): Likewise. Dump base object kind
12330 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
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-03 Richard Biener <rguenther@suse.de>
12341 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
12342 prefer a built-in decl.
12344 2013-01-03 Jakub Jelinek <jakub@redhat.com>
12346 * gcc.c (process_command): Update copyright notice dates.
12347 * gcov.c (print_version): Likewise.
12348 * gcov-dump.c (print_version): Likewise.
12350 PR rtl-optimization/55838
12351 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
12352 iv0.step, iv1.step and step.
12354 2013-01-03 Jakub Jelinek <jakub@redhat.com>
12355 Marc Glisse <marc.glisse@inria.fr>
12357 PR tree-optimization/55832
12358 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
12359 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
12360 integer_{one,zero}_node.
12362 2013-01-03 Jakub Jelinek <jakub@redhat.com>
12365 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
12366 * var-tracking.c (reverse_op): Don't add reverse ops to
12367 VALUEs that have already
12368 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
12370 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
12372 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
12374 2013-01-02 Teresa Johnson <tejohnson@google.com>
12376 * dumpfile.c (dump_loc): Print filename with location.
12377 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
12378 new location_t parameter to emit complete unroll message with
12379 new dump framework.
12380 (canonicalize_loop_induction_variables): Compute loops location
12381 and pass to try_unroll_loop_completely.
12382 * loop-unroll.c (report_unroll_peel): New function.
12383 (peel_loops_completely): Use new dump format with location
12384 for main dumpfile message, and invoke report_unroll_peel on success.
12385 (decide_unrolling_and_peeling): Ditto.
12386 (decide_peel_once_rolling): Remove old dumpfile message subsumed
12387 by report_unroll_peel.
12388 (decide_peel_completely): Ditto.
12389 (decide_unroll_constant_iterations): Ditto.
12390 (decide_unroll_runtime_iterations): Ditto.
12391 (decide_peel_simple): Ditto.
12392 (decide_unroll_stupid): Ditto.
12393 * cfgloop.c (get_loop_location): New function.
12394 * cfgloop.h (get_loop_location): Declare.
12396 2013-01-02 Sriraman Tallam <tmsriram@google.com>
12398 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
12401 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12403 PR middle-end/55198
12404 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
12405 BLKmode objects when EXPAND_MEMORY is specified.
12407 2013-01-02 Sriraman Tallam <tmsriram@google.com>
12409 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
12411 (fold_builtin_cpu): Do not share cpu model decls across statements.
12413 2013-01-02 Jason Merrill <jason@redhat.com>
12416 * tree.c (build_array_type_1): Revert earlier change.
12418 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
12420 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
12422 * config/aarch64/aarch64-tune.md: Re-generate.
12424 2013-01-02 Richard Biener <rguenther@suse.de>
12426 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
12427 invariant load do not generate a vector load from the scalar location.
12429 2013-01-02 Richard Biener <rguenther@suse.de>
12432 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
12433 * configure: Regenerate.
12435 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
12437 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
12438 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
12439 (expand_builtin_int_roundingfn_2): Keep the original target around
12440 for the fallback case.
12442 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
12444 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
12445 to be clear for sign changes.
12447 2013-01-01 Jan Hubicka <jh@suse.cz>
12449 * ipa-inline-analysis.c: Fix formatting.
12451 2013-01-01 Jakub Jelinek <jakub@redhat.com>
12453 PR tree-optimization/55831
12454 * tree-vect-loop.c (get_initial_def_for_induction): Use
12455 gsi_after_labels instead of gsi_start_bb.
12457 Copyright (C) 2013 Free Software Foundation, Inc.
12459 Copying and distribution of this file, with or without modification,
12460 are permitted in any medium without royalty provided the copyright
12461 notice and this notice are preserved.