1 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
2 Jan Hubicka <jh@suse.cz>
4 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
5 hack to mark symbols as used.
7 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
9 PR rtl-optimization/57559
10 * lra-constraints.c (process_alt_operands): Don't discourage
11 memory with known offset for offsetable memory constraint.
12 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
14 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
16 * varasm.c (struct oc_local_state): Reorder fields.
17 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
18 and adjust accordingly.
19 (output_constructor): Reorder initialization code and adjust call to
20 output_constructor_bitfield.
22 2013-06-07 Sriraman Tallam <tmsriram@google.com>
25 * cp/call.c (build_over_call): Check if current_function_decl is
28 2013-06-07 Jan Hubicka <jh@suse.cz>
30 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
32 2013-06-07 David Malcolm <dmalcolm@redhat.com>
34 * tree-object-size.c (unknown): Make const.
36 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
39 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
40 for last alternative in the cpu_facility attribute.
42 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
45 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
46 (xordi3): Change operand 2 constraint to arm_xordi_operand.
47 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
48 * config/arm/constraints.md (Dg): New constraint.
49 * config/arm/neon.md (xordi3_neon): Remove.
50 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
51 * config/arm/predicates.md (arm_xordi_operand): New predicate.
53 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
55 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
56 Clean up alternatives.
58 2013-06-07 Alan Modra <amodra@gmail.com>
60 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
63 2013-06-07 Alan Modra <amodra@gmail.com>
65 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
67 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
69 * config/arm/constraints.md (Df): New constraint.
70 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
71 Correct length attribute for last two alternatives.
73 2013-06-07 Alan Modra <amodra@gmail.com>
75 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
76 override user -mfp-in-toc.
77 (offsettable_ok_by_alignment): Consider just the current access
78 rather than the whole object, unless BLKmode. Handle
79 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
80 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
82 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
83 override user -mfp-in-toc or -msum-in-toc. Default to
84 -mno-fp-in-toc for -mcmodel=medium.
86 2013-06-06 DJ Delorie <dj@redhat.com>
88 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
89 TARGET_VALID_POINTER_MODE.
91 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
92 Pat Haugen <pthaugen@us.ibm.com>
93 Peter Bergner <bergner@vnet.ibm.com>
95 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
96 Document new power8 builtins.
98 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
99 condition code register, to allow 128-bit logical operations to be
100 done in the VSX or GPR registers.
101 (nor<mode>3): Use the canonical form for nor.
102 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
103 vclz*, and vpopcnt* vector instructions.
104 (nand<mode>3): Likewise.
105 (orc<mode>3): Likewise.
106 (clz<mode>2): LIkewise.
107 (popcount<mode>2): Likewise.
109 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
110 that only the GPRs are recognized.
112 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
113 support for new power8 builtins.
115 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
117 (xscvdpspn): Likewise.
124 (vpopcntb): Likewise.
125 (vpopcnth): Likewise.
126 (vpopcntw): Likewise.
127 (vpopcntd): Likewise.
132 (eqv_v16qi3): Likewise.
133 (eqv_v8hi3): Likewise.
134 (eqv_v4si3): Likewise.
135 (eqv_v2di3): Likewise.
136 (eqv_v4sf3): Likewise.
137 (eqv_v2df3): Likewise.
139 (nand_v16qi3): Likewise.
140 (nand_v8hi3): Likewise.
141 (nand_v4si3): Likewise.
142 (nand_v2di3): Likewise.
143 (nand_v4sf3): Likewise.
144 (nand_v2df3): Likewise.
146 (orc_v16qi3): Likewise.
147 (orc_v8hi3): Likewise.
148 (orc_v4si3): Likewise.
149 (orc_v2di3): Likewise.
150 (orc_v4sf3): Likewise.
151 (orc_v2df3): Likewise.
153 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
154 allow power8 quad mode in 64-bit.
155 (rs6000_builtin_vectorized_function): Add support to vectorize
156 ISA 2.07 count leading zeros, population count builtins.
157 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
158 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
159 (builtin_function_type): Add vgbbd builtin function which takes an
161 (altivec_expand_vec_perm_const): Add support for new power8 merge
164 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
165 that does not include TImdoe for use with 32-bit.
166 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
168 (UNSPEC_VSX_CVDPSPN): Likewise.
169 (vsx_xscvdpspn): Likewise.
170 (vsx_xscvspdpn): Likewise.
171 (vsx_xscvdpspn_scalar): Likewise.
172 (vsx_xscvspdpn_directmove): Likewise.
173 (vsx_and<mode>3): Split logical operations into 32-bit and
174 64-bit. Add support to do logical operations on TImode as well as
175 VSX vector types. Allow logical operations to be done in either
176 VSX registers or in general purpose registers in 64-bit mode. Add
177 splitters if GPRs were used. For AND, add clobber of CCmode to
178 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
180 (vsx_and<mode>3_32bit): Likewise.
181 (vsx_and<mode>3_64bit): Likewise.
182 (vsx_ior<mode>3): Likewise.
183 (vsx_ior<mode>3_32bit): Likewise.
184 (vsx_ior<mode>3_64bit): Likewise.
185 (vsx_xor<mode>3): Likewise.
186 (vsx_xor<mode>3_32bit): Likewise.
187 (vsx_xor<mode>3_64bit): Likewise.
188 (vsx_one_cmpl<mode>2): Likewise.
189 (vsx_one_cmpl<mode>2_32bit): Likewise.
190 (vsx_one_cmpl<mode>2_64bit): Likewise.
191 (vsx_nor<mode>3): Likewise.
192 (vsx_nor<mode>3_32bit): Likewise.
193 (vsx_nor<mode>3_64bit): Likewise.
194 (vsx_andc<mode>3): Likewise.
195 (vsx_andc<mode>3_32bit): Likewise.
196 (vsx_andc<mode>3_64bit): Likewise.
197 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
198 and xxlorc instructions.
199 (vsx_eqv<mode>3_64bit): Likewise.
200 (vsx_nand<mode>3_32bit): Likewise.
201 (vsx_nand<mode>3_64bit): Likewise.
202 (vsx_orc<mode>3_32bit): Likewise.
203 (vsx_orc<mode>3_64bit): Likewise.
205 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
207 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
209 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
210 (p8_vmrgow): Likewise.
211 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
212 GPRs to be split under VSX.
213 (p8v_clz<mode>2): Add power8 count leading zero support.
214 (p8v_popcount<mode>2): Add power8 population count support.
215 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
218 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
221 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
223 (vec_nand): Likewise.
224 (vec_vclz): Likewise.
225 (vec_vclzb): Likewise.
226 (vec_vclzd): Likewise.
227 (vec_vclzh): Likewise.
228 (vec_vclzw): Likewise.
229 (vec_vgbbd): Likewise.
230 (vec_vmrgew): Likewise.
231 (vec_vmrgow): Likewise.
232 (vec_vpopcnt): Likewise.
233 (vec_vpopcntb): Likewise.
234 (vec_vpopcntd): Likewise.
235 (vec_vpopcnth): Likewise.
236 (vec_vpopcntw): Likewise.
238 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
240 PR rtl-optimization/57468
241 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
244 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
246 PR rtl-optimization/57459
247 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
248 type when setting live regs.
250 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
252 * config/s390/s390.opt (mlra): New option.
253 * config/s390/s390.c (s390_decompose_address): Check displacement
254 for all registers for LRA.
255 (s390_secondary_reload): Don't used secondary reloads for LRA.
256 (s390_lra_p): New function.
257 (TARGET_LRA_P): Define.
258 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
259 of attribute cpu_facility to zarch for the last alternative.
260 (*cmpmem_short): Ditto.
262 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
264 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
265 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
266 (arm_expand_prologue): Likewise.
268 2013-06-06 Teresa Johnson <tejohnson@google.com>
271 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
272 as this is now done by redirect_edge_and_branch_force.
273 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
274 barriers, and fix interaction with splitting.
275 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
276 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
277 reflect changes made in the routine.
278 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
279 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
280 since this is called in cfglayout mode, and replace partition fixup
281 with assert as that is now done by force_nonfallthru_and_redirect.
282 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
283 already be marked with region crossing note.
284 (insert_section_boundary_note): Make non-static, gate on flag
285 has_bb_partition, rewrite to also check for multiple partitions.
286 (rest_of_handle_reorder_blocks): Remove call to
287 insert_section_boundary_note, now done later during free_cfg.
288 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
289 * bb-reorder.h (insert_section_boundary_note): Declare.
290 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
291 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
292 invoke insert_section_boundary_note.
293 (try_redirect_by_replacing_jump): Remove unnecessary
294 check for region crossing note.
295 (fixup_partition_crossing): New function.
296 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
297 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
298 in non-cfglayout mode.
299 (force_nonfallthru_and_redirect): Fixup partition boundaries,
300 remove old code that tried to do this. Emit barrier correctly
301 when we are in cfglayout mode.
302 (last_bb_in_partition): New function.
303 (rtl_split_edge): Correctly fixup partition boundaries.
304 (commit_one_edge_insertion): Remove old code that tried to
305 fixup region crossing edge since this is now handled in
306 split_block, and set up insertion point correctly since
307 block may now end in a jump.
308 (verify_hot_cold_block_grouping): Guard against checking when not in
310 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
312 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
313 rtl_verify_flow_info, so not called in cfglayout mode.
314 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
315 (fixup_reorder_chain): Remove old code that attempted to fixup region
316 crossing note as this is now handled in force_nonfallthru_and_redirect.
317 (duplicate_insn_chain): Don't duplicate switch section notes.
318 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
320 * basic-block.h (emit_barrier_after_bb): Declare.
322 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
324 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
325 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
326 arm_usatsihi): Adjust alternatives for arm_restrict_it.
328 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
330 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
332 * config/arm/ldmstm.md: Regenerate.
334 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
336 * config/arm/sync.md (atomic_loaddi_1):
337 Disable predication for arm_restrict_it.
338 (arm_load_exclusive<mode>): Likewise.
339 (arm_load_exclusivesi): Likewise.
340 (arm_load_exclusivedi): Likewise.
341 (arm_load_acquire_exclusive<mode>): Likewise.
342 (arm_load_acquire_exclusivesi): Likewise.
343 (arm_load_acquire_exclusivedi): Likewise.
344 (arm_store_exclusive<mode>): Likewise.
345 (arm_store_exclusive<mode>): Likewise.
346 (arm_store_release_exclusivedi): Likewise.
347 (arm_store_release_exclusive<mode>): Likewise.
349 2013-06-06 Richard Biener <rguenther@suse.de>
351 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
353 (lto_tag_is_tree_code_p): Adjust.
354 (lto_tag_is_gimple_code_p): Likewise.
355 (lto_gimple_code_to_tag): Likewise.
356 (lto_tag_to_gimple_code): Likewise.
357 (lto_tree_code_to_tag): Likewise.
358 (lto_tag_to_tree_code): Likewise.
359 * data-streamer.h (streamer_write_hwi_in_range): Use
360 uhwi streaming to stream the normalized range.
361 (streamer_read_hwi_in_range): Likewise.
363 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
365 * config/arm/arm.md (enabled_for_depr_it): New attribute.
366 (predicable_short_it): Likewise.
367 (predicated): Likewise.
368 (enabled): Handle above.
369 (define_cond_exec): Set predicated attribute to yes.
371 2013-06-05 Mike Stump <mikestump@comcast.net>
373 * gdbinit.in (__FUNCTION__): Add.
375 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
377 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
378 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
380 2013-06-05 Jan Hubicka <jh@suse.cz>
382 * varasm.c (mark_decl_referenced): Revert the removal until targets
385 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
387 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
388 instead of mark_decl_referenced.
390 2013-06-05 Jan Hubicka <jh@suse.cz>
392 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
393 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
394 and symtab_used_from_object_file_p.
395 (cgraph_make_node_local_1): Clear forced_by_abi.
396 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
397 * cgraph.h (symtab_node_base): Add forced_by_abi.
398 (decide_is_variable_needed): Remove.
399 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
400 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
401 (decide_is_symbol_needed): ... this one; handle symbols in general;
402 always analyze virtuals; honnor forced_by_abi.
403 (cgraph_finalize_function): Update.
404 (varpool_finalize_decl): Update.
405 (symbol_defined_and_needed): Remove.
406 (analyze_functions): Update.
407 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
408 output_refs, input_overwrite_node): Handle forced_by_abi.
409 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
410 (address_taken_from_non_vtable_p): ... this one.
411 (comdat_can_be_unshared_p_1): New function.
412 (cgraph_comdat_can_be_unshared_p): Rename to ...
413 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
414 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
415 (function_and_variable_visibility): Clear forced_by_abi as needed.
416 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
417 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
418 * symtab.c (dump_symtab_base): Dump forced_by_abi.
419 * varpool.c (decide_is_variable_needed): Remove.
421 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
423 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
424 (arm_option_override): Override arm_restrict_it where appropriate.
425 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
426 * config/arm/arm.opt (mrestrict-it): New command-line option.
427 * doc/invoke.texi: Document -mrestrict-it.
429 2013-06-05 David Malcolm <dmalcolm@redhat.com>
431 * tsan.c (tsan_atomic_table): Make const.
433 2013-06-05 Richard Biener <rguenther@suse.de>
435 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
436 index associated with the tree we are supposed to replace.
437 * tree-streamer-out.c (pack_ts_base_value_fields): Output
438 TREE_ASM_WRITTEN as zero for everything but SSA names.
440 2013-06-05 David Malcolm <dmalcolm@redhat.com>
442 * tree-ssa-structalias.c (call_stmt_vars): Make static.
444 2013-06-04 Jan Hubicka <jh@suse.cz>
446 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
447 (input_node, input_varpool_node): Handle correctly external same
449 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
450 nodes at ltrans stage.
452 2013-06-04 Jan Hubicka <jh@suse.cz>
454 * ipa-inline.c (update_caller_keys): Fix availability test.
455 (update_callee_keys): Likewise.
456 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
457 to follow ELF standard.
459 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
461 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
462 (mips64r5900el-*-elf*): New configurations.
463 * config/mips/mips-cpus.def (r5900): New processor.
464 * config/mips/mips-tables.opt: Regenerate.
465 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
466 (mips_issue_rate): Handle PROCESSOR_R5900.
467 (mips_reorg_process_insns): Force reorder mode for the R5900.
468 * config/mips/mips.h (TARGET_MIPS5900): Define.
469 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
471 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
473 * config/mips/mips.md (processor): Add r5900.
474 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
476 2013-06-04 Ian Bolton <ian.bolton@arm.com>
478 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
479 into function to generate MOVI instruction.
480 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
481 (aarch64_preferred_simd_mode): Turn into wrapper.
482 (aarch64_output_scalar_simd_mov_immediate): New function.
483 * config/aarch64/aarch64-protos.h: Add prototype for above.
485 2013-06-04 Ian Bolton <ian.bolton@arm.com>
487 * config/aarch64/aarch64.c (simd_immediate_info): Remove
489 (sizetochar): Return signed char.
490 (aarch64_simd_valid_immediate): Remove elchar and other
491 unnecessary variables.
492 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
493 Calculate element_char as required.
494 * config/aarch64/aarch64-protos.h: Update and move prototype
495 for aarch64_output_simd_mov_immediate.
496 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
499 2013-06-04 Ian Bolton <ian.bolton@arm.com>
501 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
502 information completed by aarch64_simd_valid_immediate.
503 (aarch64_legitimate_constant_p): Update arguments.
504 (aarch64_simd_valid_immediate): Work with struct rather than many
506 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
507 (aarch64_simd_make_constant): Update arguments.
508 (aarch64_output_simd_mov_immediate): Work with struct rather than
509 many pointers. Output immediate directly rather than as operand.
510 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
512 * config/aarch64/constraints.md (Dn): Update arguments.
514 2013-06-04 Ian Bolton <ian.bolton@arm.com>
516 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
518 (aarch64_simd_immediate_valid_for_move): Remove.
519 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
520 (aarch64_simd_make_constant): Update call.
521 (aarch64_output_simd_mov_immediate): Update call.
522 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
524 * config/aarch64/constraints.md (Dn): Update call.
526 2013-06-04 Ian Bolton <ian.bolton@arm.com>
528 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
529 return type to bool for prototype.
530 (aarch64_legitimate_constant_p): Check for true instead of not -1.
531 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
532 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
534 2013-06-04 Catherine Moore <clm@codesourcery.com>
536 * config/mips/mips.opt (meva): New.
537 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
538 (ASM_SPEC): Handle -meva.
539 * doc/invoke.texi (meva): Document.
541 2013-06-04 Alan Modra <amodra@gmail.com>
543 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
546 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
548 * rtl.def: Add extra fourth optional field to define_cond_exec.
549 * gensupport.c (process_one_cond_exec): Process attributes from
551 * doc/md.texi: Document fourth field in define_cond_exec.
553 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
555 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
556 out the processing order as in store_bit_field_1.
558 2013-06-04 Jan Hubicka <jh@suse.cz>
561 * cgraphunit.c (cgraph_process_same_body_aliases): Create
562 non-VAR_DECL node if it does not exist yet.
564 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
566 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
567 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
568 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
569 target_cpu_default setting.
571 2013-06-03 Teresa Johnson <tejohnson@google.com>
573 * dumpfile.c (opt_info_switch_p): Change -fopt-info
574 default to -fopt-info=optimized instead of all.
575 * doc/invoke.texi: Ditto.
576 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
577 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
578 (execute_vect_slp): Emit BB vectorization success under
579 MSG_OPTIMIZED_LOCATIONS.
580 * tree-vect-slp.c (vect_slp_transform_bb): Change
581 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
582 * tree-vect-loop.c (vect_transform_loop): Ditto.
584 2013-06-03 Jason Merrill <jason@redhat.com>
587 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
588 Use TARGET_EXPR for C++.
590 2013-06-03 Jakub Jelinek <jakub@redhat.com>
592 PR rtl-optimization/57268
593 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
594 if DEBUG_INSN_P (insn).
597 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
599 PR rtl-optimization/57268
600 * sched-deps.c (sched_analyze_2): Flush dependence lists if
601 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
603 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
605 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
606 (ix86_avoid_lea_for_addr): Likewise.
607 (exact_dependency_1): Likewise.
608 (ix86_adjust_cost): Likewise.
609 (swap_top_of_ready_list): Fix formatting and !reload_completed check
611 (do_reorder_for_imul): Fix typo, formatting and
612 !reload_completed check removed.
613 (ix86_sched_reorder): Fix typo and formatting.
614 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
617 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
619 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
621 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
623 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
624 <STRING_CST>: Likewise.
625 <VECTOR_CST>: Likewise.
627 2013-06-01 Janus Weil <janus@gcc.gnu.org>
628 Mikael Morin <mikael@gcc.gnu.org>
630 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
631 * config.in: Regenerated.
632 * configure: Regenerated.
634 2013-06-01 Jan Hubicka <jh@suse.cz>
637 * cgraphunit.c (compile): When weakref is not supported,
638 set up transparent aliases before final output pass.
639 * varasm.c (assemble_alias): Do not try to do it here.
641 2013-06-01 Jan Hubicka <jh@suse.cz>
644 * passes.c (for_per_function): Skip unanalyzed functions.
646 2013-06-01 Jan Hubicka <jh@suse.cz>
648 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
649 (lto_symtab_merge_symbols_1): ... this one.
650 (lto_symtab_merge_cgraph_nodes): Rename to ...
651 (lto_symtab_merge_symbols): ... this one; simplify.
652 * cgraph.c (same_body_aliases_done): Rename to ...
653 (cpp_implicit_aliases_done): ... this one.
654 (cgraph_create_function_alias): Update.
655 (cgraph_same_body_alias): Update.
656 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
657 (verify_edge_corresponds_to_fndecl): Simplify.
658 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
659 (cgraph_node): Remove same_body_alias.
660 (varpool_node): Remove alias_of and extra_name_alias.
661 (same_body_aliases_done): Rename to ..
662 (cpp_implicit_aliases_done): ... this one.
663 (symtab_alias_ultimate_target): Add default parameter.
664 (symtab_resolve_alias): New function.
665 (fixup_same_cpp_alias_visibility): Declare.
666 (cgraph_function_node): Add default parameter.
667 (cgraph_node_asm_name): Likewise.
668 (cgraph_function_or_thunk_node): Add default parameter; do
669 not ICE when it is NULL.
670 (varpool_variable_node): Likewise.
671 * tree-emutls.c (create_emultls_var): Update.
672 (ipa_lower_emutls): Update.
673 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
674 (cgraph_reset_node): Reset alias info.
675 (cgraph_finalize_function): Update.
676 (fixup_same_cpp_alias_visibility): Move to symtab.c.
677 (analyze_function): Simplify.
678 (cgraph_process_same_body_aliases): Simplify.
679 (analyze_functions): Fixup same body aliases.
680 (handle_alias_pairs): Simplify.
681 (assemble_thunk): Update.
682 (assemble_thunks_and_aliases): Update.
683 (output_weakrefs): Rewrite.
684 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
685 (lto_output_varpool_node): Likewise.
686 (compute_ltrans_boundary): Remve assert.
687 (get_alias_symbol): New functoin.
688 (input_node): Rewrite alias handling.
689 (input_varpool_node): Likewise.
690 * ipa-pure-const.c (propagate_pure_const): Fix formating.
691 * ipa.c (process_references): Handle weakrefs correctly.
692 (symtab_remove_unreachable_nodes): Likewise.
693 * trans-mem.c (get_cg_data): Update.
694 (ipa_tm_create_version_alias): Update.
695 (ipa_tm_execute): Update.
696 * symtab.c (dump_symtab_base): Dump aliases.
697 (verify_symtab_base): Verify aliases.
698 (symtab_node_availability): New function.
699 (symtab_alias_ultimate_target): Simplify.
700 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
701 handle all the fixup cases.
702 (symtab_resolve_alias): New function.
703 * passes.c (ipa_write_summaries): Handle weakrefs.
704 * varpool.c (varpool_analyze_node): Simplify.
705 (assemble_aliases): Update.
706 (varpool_create_variable_alias): Simplify.
707 (varpool_extra_name_alias): Simplify.
708 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
709 (lto_symtab_merge_symbols): ... this one.
711 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
714 PR rtl-optimization/57268
715 * sched-deps.c (sched_analyze_2): Flush dependence lists if
716 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
718 2013-06-01 Tobias Burnus <burnus@net-b.de>
721 2013-05-31 Tobias Burnus <burnus@net-b.de>
724 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
727 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
729 PR rtl-optimization/57268
730 * sched-deps.c (sched_analyze_2): Flush dependence lists if
731 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
733 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
735 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
736 unordered comparison operators when -fno-trapping-math is in effect
738 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
739 and implement unordered comparison operators properly on the e500.
741 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
743 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
744 for constant scalar integers.
745 (simplify_relational_operation_1): Likewise.
747 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
749 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
750 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
753 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
754 Igor Zamyatin <igor.zamyatin@intel.com>
756 Silvermont (SLM) architecture performance tuning.
757 * config/i386/i386.h (enum ix86_tune_indices): Add
758 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
759 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
761 * config/i386/i386.c (initial_ix86_tune_features)
762 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
763 (ix86_lea_outperforms): Handle Silvermont tuning.
764 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
766 (ix86_use_lea_for_mov): Likewise.
767 (ix86_avoid_lea_for_addr): Likewise.
768 (ix86_lea_for_add_ok): Likewise.
769 (exact_dependency_1): New function.
770 (exact_store_load_dependency): Likewise.
771 (ix86_adjust_cost): Handle Silvermont tuning.
772 (do_reoder_for_imul): Likewise.
773 (swap_top_of_ready_list): New function.
774 (ix86_sched_reorder): Changed to handle Silvermont tuning.
776 * config/i386/i386.md (peepholes that split memory operand in fp
779 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
781 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
782 Remove un-necessary braces.
784 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
786 * config/aarch64/aarch64.c (aarch64_classify_symbol):
787 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
789 2013-05-31 Tobias Burnus <burnus@net-b.de>
792 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
794 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
797 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
798 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
799 * config/arm/neon.md (iordi3_neon): Remove.
800 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
801 * config/arm/predicates.md (imm_for_neon_logic_operand):
802 Move to earlier in the file.
803 (neon_logic_op2): Likewise.
804 (arm_iordi_operand_neon): New predicate.
806 2013-05-31 Richard Biener <rguenther@suse.de>
808 PR tree-optimization/57478
809 PR tree-optimization/57453
810 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
813 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
815 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
816 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
818 2013-05-30 Tobias Burnus <burnus@net-b.de>
819 Thomas Koenig <tkoenig@gcc.gnu.org>
822 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
823 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
825 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
827 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
829 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
831 * target.def (register_usage_leveling_p): New hook.
832 * targhooks.c (default_register_usage_leveling_p): New.
833 * targhooks.h (default_register_usage_leveling_p): New prototype.
834 * lra-assigns.c (register_usage_leveling_p): Use the hook.
835 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
836 * doc/tm.texi: Update.
837 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
839 2013-05-30 Ian Bolton <ian.bolton@arm.com>
841 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
842 (*insv_reg<mode>): New define_insn.
844 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
846 PR rtl-optimization/57439
847 * postreload.c (move2add_valid_value_p): Check that we have
848 a zero subreg_regno_offset when accessing the register in
851 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
852 Igor Zamyatin <igor.zamyatin@intel.com>
854 Silvermont (SLM) architecture pipeline model, tuning and
856 * config.gcc: Add slm config options and target.
858 * config/i386/slm.md: New.
860 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
862 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
864 (ix86_target_macros_internal): Likewise.
866 * gcc/config/i386/i386.c (slm_cost): New cost.
867 (m_SLM): New macro flag.
868 (initial_ix86_tune_features): Set m_SLM.
869 (x86_accumulate_outgoing_args): Likewise.
870 (x86_arch_always_fancy_math_387): Likewise.
871 (processor_target_table): Add slm cost.
872 (cpu_names): Add slm cpu name.
873 (x86_option_override_internal): Set SLM ISA.
874 (ix86_issue_rate): New case PROCESSOR_SLM.
875 (ia32_multipass_dfa_lookahead): Likewise.
876 (fold_builtin_cpu): Add slm.
878 * config/i386/i386.h (TARGET_SLM): New target macro.
879 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
880 (processor_type): Add PROCESSOR_SLM.
882 * config/i386/i386.md (cpu): Add new value "slm".
883 (slm.md): Include slm.md.
885 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
886 Zhenqiang Chen <zhenqiang.chen@linaro.org>
888 * config/arm/arm-protos.h: Add and update function protos.
889 * config/arm/arm.c (use_simple_return_p): New added.
890 (thumb2_expand_return): Check simple_return flag.
891 * config/arm/arm.md: Add simple_return and conditional simple_return.
892 * config/arm/iterators.md: Add iterator for return and simple_return.
894 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
896 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
897 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
898 (arm_emit_vfp_multi_reg_pop): Likewise.
899 (thumb2_emit_ldrd_pop): Likewise.
900 (arm_expand_epilogue): Add misc REG_CFA notes.
901 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
903 2013-05-29 Lawrence Crowl <crowl@google.com>
905 * config/arm/t-arm: Update for below.
907 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
908 Change type to hash_table. Update dependent calls and types.
910 * config/i386/t-cygming: Update for below.
912 * config/i386/t-interix: Update for below.
914 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
915 Change type to hash_table. Update dependent calls and types.
916 (i386_find_on_wrapper_list::wrappers): Likewise.
918 * config/ia64/t-ia64: Update for below.
920 * config/ia64/ia64.c (bundle_state_table):
921 Change type to hash_table. Update dependent calls and types.
923 * config/mips/mips.c (mips_reorg_process_insns::htab):
924 Change type to hash_table. Update dependent calls and types.
926 * config/sol2.c (solaris_comdat_htab):
927 Change type to hash_table. Update dependent calls and types.
929 * config/t-sol2: Update for above.
931 2013-05-29 Teresa Johnson <tejohnson@google.com>
933 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
934 functions are not yet marked as defined.
936 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
937 Pat Haugen <pthaugen@us.ibm.com>
938 Peter Bergner <bergner@vnet.ibm.com>
940 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
944 (vrotl<mode>3): Likewise.
945 (vashl<mode>3): Likewise.
946 (vlshr<mode>3): Likewise.
947 (vashr<mode>3): Likewise.
949 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
950 support for power8 V2DI builtins.
952 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
953 power8 V2DI builtins.
970 (vcmpequd): Likewise.
971 (vcmpgtsd): Likewise.
972 (vcmpgtud): Likewise.
973 (vcmpequd_p): Likewise.
974 (vcmpgtsd_p): Likewise.
975 (vcmpgtud_p): Likewise.
993 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
994 support for power8 V2DI instructions.
996 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
997 power8 V2DI instructions. Combine pack and unpack insns to use an
998 iterator for each mode. Check whether a particular mode supports
999 Altivec instructions instead of just checking TARGET_ALTIVEC.
1000 (UNSPEC_VPKUWUM): Likewise.
1001 (UNSPEC_VPKSHSS): Likewise.
1002 (UNSPEC_VPKSWSS): Likewise.
1003 (UNSPEC_VPKUHUS): Likewise.
1004 (UNSPEC_VPKSHUS): Likewise.
1005 (UNSPEC_VPKUWUS): Likewise.
1006 (UNSPEC_VPKSWUS): Likewise.
1007 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
1008 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
1009 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
1010 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
1011 (UNSPEC_VUPKHSB): Likewise.
1012 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
1013 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
1014 (UNSPEC_VUPKHSH): Likewise.
1015 (UNSPEC_VUPKLSB): Likewise.
1016 (UNSPEC_VUPKLSH): Likewise.
1018 (VI_char): Likewise.
1019 (VI_scalar): Likewise.
1020 (VI_unit): Likewise.
1022 (VP_small): Likewise.
1023 (VP_small_lc): Likewise.
1024 (VU_char): Likewise.
1025 (add<mode>3): Likewise.
1026 (altivec_vaddcuw): Likewise.
1027 (altivec_vaddu<VI_char>s): Likewise.
1028 (altivec_vadds<VI_char>s): Likewise.
1029 (sub<mode>3): Likewise.
1030 (altivec_vsubcuw): Likewise.
1031 (altivec_vsubu<VI_char>s): Likewise.
1032 (altivec_vsubs<VI_char>s): Likewise.
1033 (altivec_vavgs<VI_char>): Likewise.
1034 (altivec_vcmpbfp): Likewise.
1035 (altivec_eq<mode>): Likewise.
1036 (altivec_gt<mode>): Likewise.
1037 (altivec_gtu<mode>): Likewise.
1038 (umax<mode>3): Likewise.
1039 (smax<mode>3): Likewise.
1040 (umin<mode>3): Likewise.
1041 (smin<mode>3): Likewise.
1042 (altivec_vpkuhum): Likewise.
1043 (altivec_vpkuwum): Likewise.
1044 (altivec_vpkshss): Likewise.
1045 (altivec_vpkswss): Likewise.
1046 (altivec_vpkuhus): Likewise.
1047 (altivec_vpkshus): Likewise.
1048 (altivec_vpkuwus): Likewise.
1049 (altivec_vpkswus): Likewise.
1050 (altivec_vpks<VI_char>ss): Likewise.
1051 (altivec_vpks<VI_char>us): Likewise.
1052 (altivec_vpku<VI_char>us): Likewise.
1053 (altivec_vpku<VI_char>um): Likewise.
1054 (altivec_vrl<VI_char>): Likewise.
1055 (altivec_vsl<VI_char>): Likewise.
1056 (altivec_vsr<VI_char>): Likewise.
1057 (altivec_vsra<VI_char>): Likewise.
1058 (altivec_vsldoi_<mode>): Likewise.
1059 (altivec_vupkhsb): Likewise.
1060 (altivec_vupkhs<VU_char>): Likewise.
1061 (altivec_vupkls<VU_char>): Likewise.
1062 (altivec_vupkhsh): Likewise.
1063 (altivec_vupklsb): Likewise.
1064 (altivec_vupklsh): Likewise.
1065 (altivec_vcmpequ<VI_char>_p): Likewise.
1066 (altivec_vcmpgts<VI_char>_p): Likewise.
1067 (altivec_vcmpgtu<VI_char>_p): Likewise.
1068 (abs<mode>2): Likewise.
1069 (vec_unpacks_hi_v16qi): Likewise.
1070 (vec_unpacks_hi_v8hi): Likewise.
1071 (vec_unpacks_lo_v16qi): Likewise.
1072 (vec_unpacks_hi_<VP_small_lc>): Likewise.
1073 (vec_unpacks_lo_v8hi): Likewise.
1074 (vec_unpacks_lo_<VP_small_lc>): Likewise.
1075 (vec_pack_trunc_v8h): Likewise.
1076 (vec_pack_trunc_v4si): Likewise.
1077 (vec_pack_trunc_<mode>): Likewise.
1079 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
1081 (vec_vmaxsd): Likewise.
1082 (vec_vmaxud): Likewise.
1083 (vec_vminsd): Likewise.
1084 (vec_vminud): Likewise.
1085 (vec_vpksdss): Likewise.
1086 (vec_vpksdus): Likewise.
1087 (vec_vpkudum): Likewise.
1088 (vec_vpkudus): Likewise.
1089 (vec_vrld): Likewise.
1090 (vec_vsld): Likewise.
1091 (vec_vsrad): Likewise.
1092 (vec_vsrd): Likewise.
1093 (vec_vsubudm): Likewise.
1094 (vec_vupkhsw): Likewise.
1095 (vec_vupklsw): Likewise.
1097 2013-05-29 Jan Hubicka <jh@suse.cz>
1099 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
1100 flags; reorder rest of fields in more consistent way.
1101 (varpool_node): Remove analyzed, finalized and alias.
1102 (cgraph_ndoe): Likewise.
1103 (symtab_alias_ultimate_target): New function.
1104 (cgraph_function_node): Move offline.
1105 (cgraph_reset_node): Declare.
1106 (cgraph_comdat_can_be_unshared_p): Remove.
1107 (varpool_remove_initializer): Declare.
1108 (varpool_first_defined_variable, varpool_next_defined_variable
1109 cgraph_first_defined_function, cgraph_next_defined_function): Update.
1110 (cgraph_function_with_gimple_body_p): Update.
1111 (varpool_all_refs_explicit_p): Update.
1112 (symtab_alias_target): New function.
1113 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
1114 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
1115 (cgraph_function_or_thunk_node): Simplify using
1116 symtab_alias_ultimate_target.
1117 (varpool_variable_node): Likewise.
1118 * cgraph.c (cgraph_create_function_alias): Update.
1119 (cgraph_add_thunk): Update.
1120 (cgraph_remove_node): Update.
1121 (dump_cgraph_node): Do not dump removed flags.
1122 (cgraph_function_body_availability): Update.
1123 (cgraph_propagate_frequency): Update.
1124 (verify_cgraph_node): Check sanity of local flag.
1125 (cgraph_function_node): Move here from cgraph.h; revamp for
1126 cgraph_function_or_thunk_node.
1127 * lto-symtab.c (lto_varpool_replace_node): Update.
1128 (lto_symtab_resolve_can_prevail_p): Update.
1129 (lto_symtab_merge_cgraph_nodes): Update.
1130 * ipa-cp.c (determine_versionability, initialize_node_lattices,
1131 propagate_constants_accross_call, devirtualization_time_bonus,
1132 ipcp_propagate_stage): Update.
1133 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
1134 * ipa-inline-transform.c (clone_inlined_nodes,
1135 preserve_function_body_p): Update.
1136 * ipa-reference.c (propagate): Update.
1137 (write_node_summary_p): Update.
1138 * toplev.c (wrapup_global_declaration_2): Update.
1139 * cgraphunit.c (cgraph_analyze_function): Rename to ...
1140 (analyze_function) ... this one.
1141 (cgraph_process_new_functions): Update.
1142 (cgraph_reset_node): Export.
1143 (cgraph_finalize_function): Update.
1144 (cgraph_add_new_function): Update.
1145 (process_function_and_variable_attributes): Update.
1146 (varpool_finalize_decl): Update.
1147 (symbol_finalized): Remove.
1148 (symbol_finalized_and_needed): Rename to ...
1149 (symbol_defined_and_needed): ... update.
1150 (cgraph_analyze_functions): Update.
1151 (handle_alias_pairs): Update.
1152 (mark_functions_to_output): Update.
1153 (assemble_thunk): Update.
1154 (output_in_order): Update.
1155 (output_weakrefs): Update.
1156 (finalize_compilation_unit): Update.
1157 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
1158 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
1159 input_node, input_varpool_node): Update.
1160 * dbxout.c (dbxout_expand_expr): Update.
1161 * cgraphclones.c (cgraph_clone_node): Update.
1162 (cgraph_copy_node_for_versioning): Update.
1163 (cgraph_materialize_clone): Update.
1164 (cgraph_materialize_all_clones): Update.
1165 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
1166 propagate_pure_const, propagate_nothrow): Update.
1167 * lto-streamer-out.c (lto_output, write_symbol): Update.
1168 * ipa-utils.c (ipa_reverse_postorder): Update.
1169 * ipa-inline.c (can_inline_edge_p): Update.
1170 (update_caller_keys, ipa_inline): Update.
1171 * dwarf2out.c (reference_to_unused,
1172 premark_types_used_by_global_vars_helper): Update.
1173 * tree-eh.c (tree_could_trap_p): Update.
1174 * ipa-split.c (consider_split, execute_split_functions): Update.
1175 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
1176 has_addr_references_p): Update; move ahead in file for better
1178 (process_references): Simplify.
1179 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
1181 (cgraph_comdat_can_be_unshared_p): Make static.
1182 (cgraph_externally_visible_p): Update.
1183 (varpool_externally_visible_p): Update.
1184 (function_and_variable_visibility): Update.
1185 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
1186 ipa_tm_mark_force_output_node): Update.
1187 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
1188 estimate_edge_devirt_benefit, inline_generate_summary,
1189 inline_write_summary): Update.
1190 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
1191 * ipa-prop.c (ipa_compute_jump_functions): Update.
1192 (ipa_print_node_params, ipa_prop_read_section,
1193 ipa_update_after_lto_read, read_replacements_section): Update.
1194 * varasm.c (mark_decl_referenced): Update.
1195 (assemble_alias, dump_tm_clone_pairs): Update.
1196 * tree-inline.c (copy_bb): Update.
1197 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
1199 * symtab.c (dump_symtab_base): Print new flags.
1200 (verify_symtab_base): Verify new flags.
1201 (symtab_alias_ultimate_target): New function.
1202 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
1203 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
1205 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
1207 * i386.c (ix86_get_function_versions_dispatcher,
1208 ix86_generate_version_dispatcher_body): Update.
1209 (fold_builtin_cpu): Use varpool_add_new_variable.
1210 * varpool.c (varpool_remove_initializer): Break out from ...
1211 (varpool_remove_node): ... this one.
1212 (dump_varpool_node, varpool_node_for_asm,
1213 cgraph_variable_initializer_availability, varpool_analyze_node,
1214 varpool_assemble_decl, varpool_remove_unreferenced_decls,
1215 varpool_finalize_named_section_flags, varpool_create_variable_alias):
1218 2013-05-29 Jan Hubicka <jh@suse.cz>
1220 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
1222 2013-05-29 Easwaran Raman <eraman@google.com>
1224 PR tree-optimization/57442
1225 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
1226 when control exits the main loop.
1228 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
1230 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
1232 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
1233 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
1234 * rx/t-rx: Add rx100 under multi library matches option for nofpu
1237 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1239 PR tree-optimization/57441
1240 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
1241 Don't limit size of incr_vec to number of candidates.
1243 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
1245 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
1246 and mips16 directories.
1247 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
1248 (MULTILIB_DIRNAMES): Ditto.
1249 (MULTILIB_EXCEPTIONS): Add new exceptions.
1250 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
1251 (MULTILIB_DIRNAMES): Ditto.
1252 (MULTILIB_EXCEPTIONS): Add new exceptions.
1254 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1255 Marcus Shawcroft <marcus.shawcroft@arm.com>
1257 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
1258 SYMBOL_TINY_ABSOLUTE.
1259 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
1260 SYMBOL_TINY_ABSOLUTE.
1261 (aarch64_expand_mov_immediate): Likewise.
1262 (aarch64_classify_symbol): Likewise.
1263 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
1264 Permit SYMBOL_TINY_ABSOLUTE.
1265 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
1267 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1268 Marcus Shawcroft <marcus.shawcroft@arm.com>
1270 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
1271 Refactor if/switch. Replace gcc_assert with if.
1273 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1275 * config/i386/i386.c (initial_ix86_tune_features): Enable
1276 FP Reassociation for AMD bdver1 and bdver2.
1278 2013-05-29 Martin Jambor <mjambor@suse.cz>
1280 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
1281 and IMAGPART_EXPR do not occur within other handled_components.
1283 2013-05-29 Richard Biener <rguenther@suse.de>
1285 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
1286 access on whether the use is in the BB we currently try to
1288 (vect_bb_vectorization_profitable_p): Pass the BB we currently
1289 vectorize to vect_bb_slp_scalar_cost.
1291 2013-05-29 Richard Biener <rguenther@suse.de>
1293 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
1294 computing scalar cost offsetted by stmts that are kept live
1296 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
1297 for computation of scalar cost.
1299 2013-05-28 Steve Ellcey <sellcey@mips.com>
1301 * config/mips/mips-cpus.def (mips32r2): Change processor type.
1303 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1305 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
1306 array notation built-in reduction functions.
1307 * doc/passes.texi (Passes): Added documentation about changes done
1309 * doc/invoke.texi (C Dialect Options): Added documentation about
1310 the -fcilkplus flag.
1311 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
1312 (BUILTINS_DEF): Depend on cilkplus.def.
1313 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
1314 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
1315 * cilkplus.def: New file.
1317 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
1319 PR rtl-optimization/57439
1320 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
1322 2013-05-28 Easwaran Raman <eraman@google.com>
1324 PR tree-optimization/57337
1325 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
1326 (find_insert_point): Correctly identify the insertion point
1327 when two statements with the same UID is compared.
1329 2013-05-28 Richard Biener <rguenther@suse.de>
1331 PR tree-optimization/56787
1332 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
1333 from the list of data references.
1334 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
1336 (vect_analyze_loop_operations): Likewise.
1337 (vect_transform_loop): Remove clobbers.
1339 2013-05-28 Martin Jambor <mjambor@suse.cz>
1341 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
1342 and REALPART_EXPRs have scalar type.
1344 2013-05-28 Richard Biener <rguenther@suse.de>
1346 PR tree-optimization/57411
1347 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
1349 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
1350 virtual operand propagation.
1352 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
1354 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
1355 destination register for bmasksi_vis.
1356 (vector_init_bshuffle): Likewise.
1357 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
1359 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
1361 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
1362 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
1363 mode if the instruction isn't available in the original mode.
1364 * config/sparc/sparc.opt (mfix-ut699): New option.
1365 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
1366 (divdf3): Turn into expander.
1367 (divdf3_nofix): New insn.
1368 (divdf3_fix): Likewise.
1369 (divsf3): Disable if -mfix-ut699.
1370 (sqrtdf2): Turn into expander.
1371 (sqrtdf2_nofix): New insn.
1372 (sqrtdf2_fix): Likewise.
1373 (sqrtsf2): Disable if -mfix-ut699.
1375 2013-05-27 Richard Biener <rguenther@suse.de>
1378 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
1379 block for the new loop.
1381 2013-05-27 Richard Biener <rguenther@suse.de>
1383 PR tree-optimization/57343
1384 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
1385 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
1386 (number_of_iterations_cond): Do not build the folded tree.
1388 2013-05-27 Richard Biener <rguenther@suse.de>
1392 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
1393 OEP_CONSTANT_ADDRESS_OF retained.
1395 PR tree-optimization/57417
1396 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
1398 (set_ssa_val_to): Compare addresses using
1399 get_addr_base_and_unit_offset.
1401 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
1403 PR rtl-optimization/56833
1404 * postreload.c (move2add_record_mode): New function.
1405 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
1406 (move2add_use_add2_insn): Use move2add_record_sym_value.
1407 (move2add_use_add3_insn): Likewise.
1408 (reload_cse_move2add): Use move2add_valid_value_p and
1409 move2add_record_mode. Invalidate call-clobbered and REG_INC
1410 affected regs by setting reg_mode to VOIDmode.
1411 (move2add_note_store): Don't pretend the inside of a SUBREG is
1412 the actual destination. Invalidate single/leading registers by
1413 setting reg_mode to VOIDmode.
1414 Use move2add_record_sym_value, move2add_valid_value_p and
1415 move2add_record_mode.
1417 2013-05-27 Richard Biener <rguenther@suse.de>
1419 PR tree-optimization/57396
1420 * tree-affine.c (double_int_constant_multiple_p): Properly
1421 return false for val == 0 and div != 0.
1423 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
1425 * config/mips/mips.h: Use #elif in preprocessor conditions.
1427 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
1430 * config/mips/constraints.md (kl): New constraint.
1431 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
1432 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
1433 constraint for operand 0. Split after CSE for MIPS16. Emit a move
1435 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
1437 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
1440 * config/mips/mips.c (mips_can_inline_p): New function.
1441 (TARGET_CAN_INLINE_P): Define.
1443 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
1445 * sched-int.h (ds_t, dw_t): Make unsigned int.
1446 Fix documentation that describes how all the ds_t bits are used.
1447 Reserve the last bit for delayed-branch scheduling.
1448 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
1449 (BITS_PER_DEP_WEAK): Fix definition and documentation.
1450 (gen_dep_weak_1): Remove prototype.
1451 * sched-deps.c (get_dep_weak_1): Make static.
1452 * target.def (speculate_insn, needs_block_p, gen_spec_check,
1453 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
1454 * doc/tm.texi: Regenerate.
1455 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
1457 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
1460 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
1462 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
1463 Sandra Loosemore <sandra@codesourcery.com>
1465 * config.gcc (powerpc-*): Allow native for with-cpu.
1467 2013-05-24 Jeff Law <law@redhat.com>
1469 PR tree-optimization/57124
1470 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
1471 conversion feeding a condition if the range has an overflow
1472 if -fstrict-overflow. Add warnings for when we do make the
1475 2013-05-24 Dehao Chen <dehao@google.com>
1477 * tree-cfg.c (locus_discrim_map): Fix the typo.
1478 (locus_discrim_hasher): Likewise.
1479 (locus_discrim_hasher::hash): Likewise.
1480 (locus_discrim_hasher::equal): Likewise.
1482 2013-05-24 Martin Jambor <mjambor@suse.cz>
1484 PR tree-optimization/57294
1485 * cgraph.h (ipa_record_stmt_references): Declare.
1486 * cgraphbuild.c (ipa_record_stmt_references): New function.
1487 (build_cgraph_edges): Use ipa_record_stmt_references.
1488 (rebuild_cgraph_edges): Likewise.
1489 (cgraph_rebuild_references): Likewise.
1490 * ipa-prop.c (ipa_modify_call_arguments): Discard references
1491 associated with the old statement and build references from the
1492 newly built statements.
1493 * ipa-ref.c (ipa_remove_stmt_references): New function.
1494 * ipa-ref.h (ipa_remove_stmt_references): Declare.
1496 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
1498 * lra-constraints.c (emit_spill_move): Use smaller mode for
1500 (check_and_process_move): Consider mem-reg moves for secondary
1502 (curr_insn_transform): Don't lose insns emitted before for
1503 secondary memory moves.
1504 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
1505 reg set up in the current insn.
1507 2013-05-24 Dehao Chen <dehao@google.com>
1509 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
1511 (locus_descrim_hasher::equal): Likewise.
1512 (build_gimple_cfg): New discriminator assignment algorithm.
1513 (make_edges): Likewise.
1514 (next_discriminator_for_locus): Likewise.
1515 (same_line_p): Likewise.
1516 (assign_discriminators): Likewise.
1517 (make_cond_expr_edges): Likewise.
1518 (make_gimple_switch_edges): Likewise.
1519 (make_goto_expr_edges): Likewise.
1520 (make_gimple_asm_edges): Likewise.
1522 2013-05-24 Ian Bolton <ian.bolton@arm.com>
1524 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
1525 X format specifier to only display bottom 16 bits.
1526 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
1527 immediate to match for operand 2, since it will be masked.
1529 2013-05-24 Richard Biener <rguenther@suse.de>
1531 PR tree-optimization/57287
1532 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
1533 all SSA names that occur in abnormal PHIs.
1535 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
1538 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
1539 that index is not negative.
1541 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
1543 PR rtl-optimization/55177
1544 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
1545 (simplify_byte_swapping_operation): New.
1546 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
1547 (simplify_relational_operation_1): Deal with BSWAP.
1549 2013-05-23 Richard Henderson <rth@redhat.com>
1552 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
1553 (ix86_reorg): Call it.
1555 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
1558 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
1559 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
1560 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
1562 2013-05-23 Christian Bruel <christian.bruel@st.com>
1565 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
1567 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1568 Marcus Shawcroft <marcus.shawcroft@arm.com>
1570 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
1571 * config/aarch64/constraints.md (Usa): Remove.
1572 * doc/md.texi (AArch64 Usa): Remove.
1574 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1575 Marcus Shawcroft <marcus.shawcroft@arm.com>
1577 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
1578 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
1579 * config/aarch64/predicates.md (aarch64_const_address): Remove.
1580 (aarch64_mov_operand): Use aarch64_mov_operand_p.
1582 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
1584 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
1585 instruction (AdvSIMD).
1586 * config/aarch64/aarch64-builtins.c
1587 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
1588 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
1590 2013-05-23 Martin Jambor <mjambor@suse.cz>
1593 * tree.h (contains_bitfld_component_ref_p): Declare.
1594 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
1595 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
1597 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
1598 not access a bit-field. Assert all final offsets are byte-aligned.
1600 2013-05-23 Richard Biener <rguenther@suse.de>
1602 PR tree-optimization/57380
1603 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
1604 least one invariant or re-used load.
1605 * passes.c (init_optimization_passes): Move pass_phiprop before
1608 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
1610 * config/aarch64/aarch64-simd.md
1611 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
1613 2013-05-23 Richard Biener <rguenther@suse.de>
1616 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
1617 OEP_CONSTANT_ADDRESS_OF retained.
1619 2013-05-23 Jakub Jelinek <jakub@redhat.com>
1622 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
1623 don't lower unit. Handle unit not being always BITS_PER_WORD.
1625 2013-05-23 Richard Biener <rguenther@suse.de>
1627 PR rtl-optimization/57341
1628 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
1629 instead of true_dependence.
1631 2013-05-22 David Malcolm <dmalcolm@redhat.com>
1633 * bb-reorder.c (branch_threshold): Make const.
1634 (exec_threshold): Ditto.
1636 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
1637 Pat Haugen <pthaugen@us.ibm.com>
1638 Peter Bergner <bergner@vnet.ibm.com>
1640 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
1641 documentation for the power8 crypto builtins.
1643 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
1645 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
1646 macros for defining power8 builtin functions.
1647 (BU_P8V_AV_2): Likewise.
1648 (BU_P8V_AV_P): Likewise.
1649 (BU_P8V_VSX_1): Likewise.
1650 (BU_P8V_OVERLOAD_1): Likewise.
1651 (BU_P8V_OVERLOAD_2): Likewise.
1652 (BU_CRYPTO_1): Likewise.
1653 (BU_CRYPTO_2): Likewise.
1654 (BU_CRYPTO_3): Likewise.
1655 (BU_CRYPTO_OVERLOAD_1): Likewise.
1656 (BU_CRYPTO_OVERLOAD_2): Likewise.
1657 (XSCVSPDP): Fix typo, point to the correct instruction.
1658 (VCIPHER): Add power8 crypto builtins.
1659 (VCIPHERLAST): Likewise.
1660 (VNCIPHER): Likewise.
1661 (VNCIPHERLAST): Likewise.
1662 (VPMSUMB): Likewise.
1663 (VPMSUMH): Likewise.
1664 (VPMSUMW): Likewise.
1665 (VPERMXOR_V2DI): Likewise.
1666 (VPERMXOR_V4SI: Likewise.
1667 (VPERMXOR_V8HI: Likewise.
1668 (VPERMXOR_V16QI: Likewise.
1669 (VSHASIGMAW): Likewise.
1670 (VSHASIGMAD): Likewise.
1672 (VPERMXOR): Likewise.
1673 (VSHASIGMA): Likewise.
1675 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
1676 __CRYPTO__ if the crypto instructions are available.
1677 (altivec_overloaded_builtins): Add support for overloaded power8
1680 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
1681 support for power8 crypto builtins.
1682 (builtin_function_type): Likewise.
1683 (altivec_init_builtins): Add support for builtins that take vector
1684 long long (V2DI) arguments.
1686 * config/rs6000/crypto.md: New file, define power8 crypto
1689 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
1690 Pat Haugen <pthaugen@us.ibm.com>
1691 Peter Bergner <bergner@vnet.ibm.com>
1693 * doc/invoke.texi (Option Summary): Add power8 options.
1694 (RS/6000 and PowerPC Options): Likewise.
1696 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
1697 constraints.md instead of rs6000.h. Reorder w* constraints. Add
1698 wm, wn, wr documentation.
1700 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
1701 registers if direct move instructions are enabled.
1702 (wn): New constraint for no registers.
1703 (wq): New constraint for quad word even GPR registers.
1704 (wr): New constraint if 64-bit instructions are enabled.
1705 (wv): New constraint if power8 vector instructions are enabled.
1706 (wQ): New constraint for quad word memory locations.
1708 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
1709 constraint for 0..15 for crypto instructions.
1710 (gpc_reg_operand): If VSX allow registers in VSX registers as well
1711 as GPR and floating point registers.
1712 (int_reg_operand): New predicate to match only GPR registers.
1713 (base_reg_operand): New predicate to match base registers.
1714 (quad_int_reg_operand): New predicate to match even GPR registers
1715 for quad memory operations.
1716 (vsx_reg_or_cint_operand): New predicate to allow vector logical
1717 operations in both GPR and VSX registers.
1718 (quad_memory_operand): New predicate for quad memory operations.
1719 (reg_or_indexed_operand): New predicate for direct move support.
1721 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
1722 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
1723 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
1724 (POWERPC_MASKS): Add power8 options.
1725 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
1728 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
1729 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
1731 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
1732 (-mpower8-fusion): New power8 options.
1733 (-mpower8-fusion-sign): Likewise.
1734 (-mpower8-vector): Likewise.
1735 (-mcrypto): Likewise.
1736 (-mdirect-move): Likewise.
1737 (-mquad-memory): Likewise.
1739 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
1741 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
1743 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
1744 (rs6000_debug_vector_unit): Add p8_vector.
1745 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
1746 definitions. Also print fusion state.
1747 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
1748 (rs6000_builtin_mask_calculate): Add power8 builtin support.
1749 (rs6000_option_override_internal): Add support for power8.
1750 (rs6000_common_init_builtins): Add debugging for skipped builtins
1752 (rs6000_adjust_cost): Add power8 support.
1753 (rs6000_issue_rate): Likewise.
1754 (insn_must_be_first_in_group): Likewise.
1755 (insn_must_be_last_in_group): Likewise.
1756 (force_new_group): Likewise.
1757 (rs6000_register_move_cost): Likewise.
1758 (rs6000_opt_masks): Likewise.
1760 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
1761 power8 capable assembler, default to power7 options.
1762 (TARGET_DIRECT_MOVE): Likewise.
1763 (TARGET_CRYPTO): Likewise.
1764 (TARGET_P8_VECTOR): Likewise.
1765 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
1766 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
1767 (VECTOR_MEM_P8_VECTOR_P): Likewise.
1768 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
1769 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
1770 (TARGET_XSCVDPSPN): Likewise.
1771 (TARGET_XSCVSPDPN): Likewsie.
1772 (TARGET_SYNC_HI_QI): Likewise.
1773 (TARGET_SYNC_TI): Likewise.
1774 (MASK_CRYPTO): Likewise.
1775 (MASK_DIRECT_MOVE): Likewise.
1776 (MASK_P8_FUSION): Likewise.
1777 (MASK_P8_VECTOR): Likewise.
1778 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
1779 temporary used by some of the direct move instructions to get two FP
1780 temporary registers does not force creation of a stack frame.
1781 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
1782 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
1783 that any VSX registers are tieable, even if they are also an
1784 Altivec vector mode.
1785 (r6000_reg_class_enum): Add wm, wr, wv constraints.
1786 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
1787 (RS6000_BTM_CRYPTO): Likewise.
1788 (RS6000_BTM_COMMON): Likewise.
1790 * config/rs6000/rs6000.md (cpu attribute): Add power8.
1791 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
1792 (enum rs6000_vector): Add power8 vector support.
1794 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1798 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
1799 (any_sibcall_could_use_r3): this and handle indirect calls.
1800 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
1802 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1804 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
1806 2013-05-22 Richard Biener <rguenther@suse.de>
1809 * profile.c (branch_prob): Do not split blocks that are
1810 abnormally receiving from ECF_RETURNS_TWICE functions.
1812 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1814 * recog.c (offsettable_address_addr_space_p): Fix calculation of
1815 address mode. Move pointer mode initialization to the same place.
1817 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1819 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
1820 while it has any effect.
1822 2013-05-21 Easwaran Raman <eraman@google.com>
1824 PR tree-optimization/57322
1825 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
1826 UID of the statement added to the BB to be 1.
1828 2013-05-21 Jakub Jelinek <jakub@redhat.com>
1830 PR tree-optimization/57331
1831 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
1832 of conversion from pointer type to integral type with integer.
1834 2013-05-21 Martin Jambor <mjambor@suse.cz>
1837 * ipa-prop.c (ipa_read_node_info): Process param_used and
1838 controlled_uses in the same order as when writing.
1840 2013-05-21 Magnus Granberg <baldrick@free.fr>
1843 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
1845 2013-05-21 Richard Biener <rguenther@suse.de>
1847 PR tree-optimization/57318
1848 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
1849 estimate stmts with side-effects as likely eliminated.
1851 2013-05-21 Richard Biener <rguenther@suse.de>
1853 PR tree-optimization/57330
1854 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
1855 preserve the call stmts fntype.
1857 2013-05-21 Richard Biener <rguenther@suse.de>
1859 PR tree-optimization/57303
1860 * tree-ssa-sink.c (statement_sink_location): Improve killing
1861 stmt detection and properly handle self-assignments.
1863 2013-05-21 Christian Bruel <christian.bruel@st.com>
1865 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
1866 spanning registers. LEAF_REG_REMAP is supported only for contiguous
1867 registers. Set register size out of the PARALLEL loop.
1869 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
1872 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
1873 (*fmasf4, *fmasf4_media): New insns.
1875 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1877 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
1878 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
1879 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
1880 (mips_idiv_insns): Update the comments to say that the returned
1881 instruction counts are in units of BASE_INSN_LENGTH.
1882 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
1883 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
1884 using 2 rather than 4 as the length of indirect MIPS16 and
1885 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
1886 length of a NOP. Don't divide MIPS16 lengths by 2.
1887 (mips16_split_long_branches): Assume a branch is long if the
1888 length is greater than 4 rather than 8.
1889 * config/mips/mips.md (length): Give MIPS16 lengths directly,
1890 rather than multiplying them by 2. Multiply instruction counts
1891 by BASE_INSN_LENGTH rather than 4.
1892 (*jump_mips16, tls_get_tp_mips16_<mode>)
1893 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
1895 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1897 * config/mips/mips.md (extended_mips16): Remove branch case.
1898 (length): Remove duplicated extended_mips16 test.
1900 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1902 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
1904 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
1906 * recog.h (Recog_data): Rename to...
1907 (recog_data_d): ...this.
1908 (recog_data): Update accordingly.
1909 * recog.c (recog_data): Likewise.
1910 * reload.c (save_recog_data): Likewise.
1911 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
1912 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
1914 2013-05-17 Julian Brown <julian@codesourcery.com>
1916 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
1917 found in a REG_EQUAL note, invalidate it.
1919 2013-05-17 Easwaran Raman <eraman@google.com>
1921 * tree-ssa-reassoc.c (find_insert_point): New function.
1922 (insert_stmt_after): Likewise.
1923 (get_def_stmt): Likewise.
1924 (ensure_ops_are_available): Likewise.
1925 (not_dominated_by): Likewise.
1926 (rewrite_expr_tree): Do not move statements beyond what is
1927 necessary. Remove call to swap_ops_for_binary_stmt...
1928 (reassociate_bb): ... and move it here.
1929 (build_and_add_sum): Assign UIDs for new statements.
1930 (linearize_expr): Likewise.
1931 (do_reassoc): Renumber gimple statement UIDs.
1933 2013-05-17 Jan Hubicka <jh@suse.cz>
1935 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
1937 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
1938 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
1940 (output_weakrefs): Update.
1942 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
1943 Martin Jambor <mjambor@suse.cz>
1946 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
1947 value that corresponds to the given aggval is found in values vector.
1949 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
1951 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
1952 sse, sse2, sse3, ssse3 and sse4a flags to options.
1954 2013-05-17 David Malcolm <dmalcolm@redhat.com>
1956 * gengtype-state.c: (s_expr_writer): New class, to handle
1957 prettifying of output layout of s-expressions.
1958 (state_writer): New class, to write out gtype.state.
1959 (state_written_type_count): Move this variable into member data of
1961 (s_expr_writer::s_expr_writer): New code: constructor for new class
1962 (state_writer::state_writer(): ditto
1963 (s_expr_writer::write_new_line): New function
1964 (s_expr_writer::write_any_indent): ditto
1965 (s_expr_writer::begin_s_expr): ditto
1966 (s_expr_writer::end_s_expr): ditto
1967 (write_state_fileloc): convert to method of state_writer...
1968 (state_writer:: write_state_fileloc): ...and use methods of
1969 s_expr_writer to write indentation into the gtype.state output file
1970 to visually represent the hierarchical structure of the list
1972 (write_state_fields): ditto, renaming to...
1973 (state_writer::write_state_fields)
1974 (write_state_a_string): ditto, renaming to...
1975 (state_writer::write_state_a_string)
1976 (write_state_string_option): ditto, renaming to...
1977 (state_writer::write_state_string_option)
1978 (write_state_type_option): ditto, renaming to...
1979 (state_writer::write_state_type_option)
1980 (write_state_nested_option): ditto, renaming to...
1981 (state_writer::write_state_nested_option)
1982 (write_state_option): ditto, renaming to...
1983 (state_writer::write_state_option)
1984 (write_state_options): ditto, renaming to...
1985 (state_writer::write_state_options)
1986 (write_state_lang_bitmap): ditto, renaming to...
1987 (state_writer::write_state_lang_bitmap)
1988 (write_state_version): ditto, renaming to...
1989 (state_writer::write_state_version)
1990 (write_state_scalar_type): ditto, renaming to...
1991 (state_writer::write_state_scalar_type)
1992 (write_state_string_type): ditto, renaming to...
1993 (state_writer::write_state_string_type)
1994 (write_state_undefined_type): ditto, renaming to...
1995 (state_writer::write_state_undefined_type)
1996 (write_state_struct_union_type): ditto, renaming to...
1997 (state_writer::write_state_struct_union_type)
1998 (write_state_struct_type): ditto, renaming to...
1999 (state_writer::write_state_struct_type)
2000 (write_state_user_struct_type): ditto, renaming to...
2001 (state_writer::write_state_user_struct_type)
2002 (write_state_lang_struct_type): ditto, renaming to...
2003 (state_writer::write_state_lang_struct_type)
2004 (write_state_param_struct_type): ditto, renaming to...
2005 (state_writer::write_state_param_struct_type)
2006 (write_state_pointer_type): ditto, renaming to...
2007 (state_writer::write_state_pointer_type)
2008 (write_state_array_type): ditto, renaming to...
2009 (state_writer::write_state_array_type)
2010 (write_state_gc_used): ditto, renaming to...
2011 (state_writer::write_state_gc_used)
2012 (write_state_common_type_content): ditto, renaming to...
2013 (state_writer::write_state_common_type_content)
2014 (write_state_type): ditto, renaming to...
2015 (state_writer::write_state_type)
2016 (write_state_pair_list): ditto, renaming to...
2017 (state_writer::write_state_pair_list)
2018 (write_state_pair): ditto, renaming to...
2019 (state_writer::write_state_pair)
2020 (write_state_typedefs): ditto, renaming to...
2021 (state_writer::write_state_typedefs)
2022 (write_state_structures): ditto, renaming to...
2023 (state_writer::write_state_structures)
2024 (write_state_param_structs): ditto, renaming to...
2025 (state_writer::write_state_param_structs)
2026 (write_state_variables): ditto, renaming to...
2027 (state_writer::write_state_variables)
2028 (write_state_srcdir): ditto, renaming to...
2029 (state_writer::write_state_srcdir)
2030 (write_state_files_list): ditto, renaming to...
2031 (state_writer::write_state_files_list)
2032 (write_state_languages): ditto, renaming to...
2033 (state_writer::write_state_languages)
2034 (write_state): create a state_writer instance and use it when
2035 writing out the state file
2037 2013-05-17 Mike Stump <mikestump@comcast.net>
2039 PR rtl-optimization/57304
2040 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
2041 accessing DF_REF_REAL_LOC.
2043 2013-05-17 Jakub Jelinek <jakub@redhat.com>
2045 PR rtl-optimization/57281
2046 PR rtl-optimization/57300
2047 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
2048 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
2049 what the other splitter did if the registers are dead.
2051 2013-05-17 Richard Biener <rguenther@suse.de>
2053 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
2056 2013-05-17 Jakub Jelinek <jakub@redhat.com>
2058 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
2061 2013-05-17 Marek Polacek <polacek@redhat.com>
2063 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
2064 length when doing non-zero store of storing '\0' to '\0'.
2066 2013-05-17 Jakub Jelinek <jakub@redhat.com>
2068 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
2069 vect_external_def oprnd1 with loop_vinfo, try to emit
2070 optional cast, negation and and stmts on the loop preheader
2071 edge instead of into the pattern def seq.
2073 PR tree-optimization/57051
2074 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
2075 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
2077 2013-05-16 Nick Clifton <nickc@redhat.com>
2079 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
2080 (rl78_is_naked_func): New function.
2081 (rl78_expand_prologue): Skip prologue generation for naked functions.
2082 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
2083 * doc/extend.texi (naked): Add RL78 to the list of processors
2084 that supports this attribute.
2086 2013-05-16 Jeff Law <law@redhat.com>
2088 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
2090 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
2092 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
2093 cache parameters using detect_caches_amd also for CYRIX,
2094 NSC and TM2 signatures.
2096 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
2097 Dzianis Kahanovich <mahatma@eu.by>
2101 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2102 VIA/Centaur processors and determine their cache parameters
2103 using detect_caches_amd.
2105 2013-05-16 Teresa Johnson <tejohnson@google.com>
2107 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
2108 (rtl_verify_edges): New function.
2109 (rtl_verify_bb_insns): Ditto.
2110 (rtl_verify_bb_pointers): Ditto.
2111 (rtl_verify_bb_insn_chain): Ditto.
2112 (rtl_verify_fallthru): Ditto.
2113 (rtl_verify_bb_layout): Ditto.
2114 (rtl_verify_flow_info_1): Outline checks into new functions.
2115 (rtl_verify_flow_info): Ditto.
2117 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
2119 * cfghooks.c (copy_bbs): Add update_dominance argument.
2120 * cfghooks.h (copy_bbs): Update prototype.
2121 * tree-cfg.c (gimple_duplicate_sese_region):
2122 Add update_dominance argument.
2123 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
2124 * tree-ssa-loop-ch.c (copy_loop_headers): Update
2125 gimple_duplicate_sese_region call.
2126 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
2127 Update copy_bbs call.
2128 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
2129 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
2131 2013-05-16 Jakub Jelinek <jakub@redhat.com>
2133 * tree-vectorizer.h (NUM_PATTERNS): Increment.
2134 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
2135 vect_recog_rotate_pattern.
2136 (vect_recog_rotate_pattern): New function.
2138 2013-05-16 Jason Merrill <jason@redhat.com>
2140 * Makefile.in (LLINKER): New variable.
2141 (mostlyclean): Remove link mutex.
2142 * configure.ac: Handle --enable-link-mutex.
2143 * lock-and-run.sh: New script.
2145 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2148 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
2151 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2153 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
2155 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
2157 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
2158 * config/arm/arm.c (next_consecutive_mem): New function.
2159 (gen_movmem_ldrd_strd): Likewise.
2160 * config/arm/arm.md (movmemqi): Update condition and code.
2161 (unaligned_loaddi, unaligned_storedi): New patterns.
2163 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2165 * config.gcc: Obsolete *-*-solaris2.9*.
2166 * doc/install.texi (Specific, *-*-solaris2*): Document it.
2168 2013-05-16 Richard Biener <rguenther@suse.de>
2170 * passes.c (init_optimization_passes): Move pass_parallelize_loops
2171 earlier, after GRAPHITE transforms and IV canonicalization.
2173 2013-05-16 Jakub Jelinek <jakub@redhat.com>
2175 * omp-low.c (extract_omp_for_data): For collapsed loops,
2176 if at least one of the loops is known at compile time to
2177 iterate zero times, set count to 0.
2178 (expand_omp_regimplify_p): New function.
2179 (expand_omp_for_generic): For collapsed loops, if at least
2180 one of the loops isn't known to iterate at least once,
2181 add runtime check with setting count to 0.
2182 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
2183 For unsigned types if it isn't known at compile time that
2184 the loop will iterate at least once, add runtime check to bypass
2185 the whole loop if initial condition isn't true.
2187 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
2189 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
2191 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
2194 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
2195 transformations to avoid an infinite loop.
2197 2013-05-16 Marek Polacek <polacek@redhat.com>
2199 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
2201 2013-05-15 Leif Ekblad <leif@rdos.net>
2203 * config/i386/i386.c (ix86_decompose_address): Use
2204 DEFAULT_TLS_SEG_REG to access TLS segment register.
2205 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
2206 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
2207 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
2209 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
2212 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
2213 sibling calls to functions that would normally be lazily bound,
2214 unless $gp is call-clobbered.
2216 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
2218 * config/i386/i386.c (ix86_option_override_internal): Update
2219 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
2220 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
2221 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
2222 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
2224 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
2226 2013-05-15 Andreas Schwab <schwab@suse.de>
2228 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
2229 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
2232 2013-05-15 Teresa Johnson <tejohnson@google.com>
2234 * loop-unroll.c (report_unroll_peel): Check decision before
2235 emitting unroll/peel message.
2237 2013-05-15 Teresa Johnson <tejohnson@google.com>
2239 * function.h (has_bb_partition): New rtl_data flag.
2240 (bb_reorder_complete): Ditto.
2241 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
2242 instead of flag_reorder_blocks_and_partition.
2243 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
2244 with some enhancements.
2245 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
2246 * bb-reorder.c (connect_traces): Check for has_bb_partition
2247 instead of flag_reorder_blocks_and_partition.
2248 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
2249 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
2250 verify_hot_cold_block_grouping.
2251 (partition_hot_cold_basic_blocks): Set has_bb_partition.
2253 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2256 * config/arm/predicates.md (call_insn_operand): New predicate.
2257 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
2258 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
2259 if insn is not a tail call.
2260 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
2262 * config/arm/arm.h (enum reg_class): New caller save register class.
2263 (REG_CLASS_NAMES): Likewise.
2264 (REG_CLASS_CONTENTS): Likewise.
2265 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
2268 2013-05-15 Richard Biener <rguenther@suse.de>
2270 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
2271 of MSG_OPTIMIZED_LOCATIONS.
2272 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
2273 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
2275 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
2276 of MSG_OPTIMIZED_LOCATIONS.
2277 (execute_vect_slp): Likewise.
2278 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
2279 (vect_create_cond_for_alias_checks): Likewise.
2280 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
2281 (vect_recog_widen_mult_pattern): Likewise.
2282 (vect_recog_widen_sum_pattern): Likewise.
2283 (vect_recog_over_widening_pattern): Likewise.
2284 (vect_recog_widen_shift_pattern): Likewise.
2285 (vect_recog_vector_vector_shift_pattern): Likewise.
2286 (vect_recog_divmod_pattern): Likewise.
2287 (vect_recog_mixed_size_cond_pattern): Likewise.
2288 (vect_recog_bool_pattern): Likewise.
2289 (vect_pattern_recog_1): Likewise.
2291 2013-05-15 Martin Jambor <mjambor@suse.cz>
2293 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
2294 non-functions to builtin_unreachable.
2295 * ipa-inline-transform.c (inline_call): Do not assert estimates were
2296 correct when new direct edges were discovered.
2298 2013-05-15 Martin Jambor <mjambor@suse.cz>
2300 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
2301 header, print symbol order instead of node uid, print more information
2302 about indirect edge targets.
2303 (ipa_make_edge_direct_to_target): Print symbol order instead of node
2305 (ipa_make_edge_direct_to_target): Likewise.
2306 (remove_described_reference): Likewise.
2307 (propagate_controlled_uses): Likewise.
2308 (ipa_print_node_params): Also print symbol order.
2309 (ipcp_transform_function): Print symbol order instead of node uids.
2310 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
2311 (cgraph_get_create_real_symbol_node): Likewise.
2312 * ipa-cp.c (print_lattice): Likewise.
2313 (print_all_lattices): Likewise.
2314 (determine_versionability): Likewise.
2315 (initialize_node_lattices): Likewise.
2316 (estimate_local_effects): Likewise.
2317 (update_profiling_info): Likewise.
2318 (create_specialized_node): Likewise.
2319 (perhaps_add_new_callers): Likewise.
2320 (decide_about_value): Likewise.
2321 (decide_whether_version_node): Likewise.
2322 (identify_dead_nodes): Likewise.
2323 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
2324 (dump_inline_summary): Likewise.
2325 (estimate_node_size_and_time): Likewise.
2326 (inline_analyze_function): Likewise.
2327 * ipa-inline.c (report_inline_failed_reason): Likewise.
2328 (want_early_inline_function_p): Likewise.
2329 (edge_badness): Likewise.
2330 (update_edge_key): Likewise.
2331 (inline_small_functions): Likewise. Add dumping of order to two other
2333 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
2334 instead of node uids.
2335 (propagate_pure_const): Likewise.
2336 (propagate_pure_const): Likewise.
2337 * ipa-utils.c (dump_cgraph_node_set): Likewise.
2338 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
2339 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
2341 * tree-pretty-print.c (dump_function_header): Likewise.
2342 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
2343 Print symbol order instead of node uids.
2345 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2347 * config/s390/s390.c (s390_register_move_cost): Don't impose the
2348 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
2350 2013-05-15 Richard Biener <rguenther@suse.de>
2352 PR tree-optimization/57275
2353 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
2354 return value for fail to do runtime alias checks for gather loads.
2356 2013-05-15 Jan Hubicka <jh@suse.cz>
2360 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
2361 weakrefs are not external.
2362 (lto_symtab_merge_decls): Fix thinko when dealing with
2363 non-lto_symtab decls.
2364 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
2365 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
2366 * varpool.c (dump_varpool_node): Dump more flags.
2368 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2370 * config/i386/i386.c (processor_alias_table): Add instruction
2371 FSGSBASE for AMD bdver3 architecture.
2373 2013-05-14 Jakub Jelinek <jakub@redhat.com>
2375 * tree.c (warn_deprecated_use): Print file:line using locus color.
2376 * diagnostic.c (diagnostic_report_current_module): Print file:line
2377 and file:line:column using locus color.
2379 2013-05-14 Mike Stump <mikestump@comcast.net>
2381 * gdbinit.in: Add __null.
2383 2013-05-14 Mike Stump <mikestump@comcast.net>
2385 * recog.h: Rename struct recog_data to Recog_data.
2386 * recog.c: Likewise.
2387 * reload.c (can_reload_into): Likewise.
2388 * config/picochip/picochip.c: Likewise.
2390 2013-05-14 Mike Stump <mikestump@comcast.net>
2392 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
2394 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
2396 * resource.h (struct resources): Remove unch_memory member.
2397 (CLEAR_RESOURCE): Don't clear unch_memory.
2398 * resource.c (mark_referenced_resources): Don't set it.
2399 (mark_set_resources): Likewise.
2400 (mark_target_live_regs): Don't clear it.
2401 (init_resource_info): Likewise.
2402 * reorg.c (resource_conflicts_p): Don't compare it.
2403 (redundant_insn): Don't set it.
2405 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
2407 * emit-rtl.c (next_label): Remove unused function.
2408 (skip_consecutive_labels, link_cc0_insns): Move to ...
2409 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
2410 only place where these functions are used, and make them static.
2412 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
2414 * fold-const.c (fold_negate_expr): Handle vectors.
2415 (fold_truth_not_expr): Make it static.
2416 (fold_invert_truthvalue): New static function.
2417 (invert_truthvalue_loc): Handle vectors. Do not call
2418 fold_truth_not_expr directly.
2419 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
2420 <TRUTH_NOT_EXPR>: Do not cast to boolean.
2421 (fold_comparison): Handle vector constants.
2422 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
2423 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
2424 * tree.h (fold_truth_not_expr): Remove declaration.
2426 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
2428 * config/aarch64/aarch64-simd.md
2429 (aarch64_vcond_internal<mode>): Rename to...
2430 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
2431 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
2432 float modes. Clarify all iterator modes.
2433 (vcond<mode><mode>): Use new name for vcond expanders.
2434 (vcond<v_cmp_result><mode>): Likewise.
2435 (vcondu<mode><mode>: Likewise.
2436 * config/aarch64/iterators.md (VDQF_COND): New.
2438 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
2441 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
2442 variable for the shift amount. Check that we shift by non-negative
2445 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
2448 * config/arm/arm.h (EPILOGUE_USES): Only return true
2449 for LR_REGNUM after epilogue_completed.
2451 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
2453 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
2456 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2459 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
2460 and Solaris 11+/x86 with gld.
2461 * configure: Regenerate.
2463 2013-05-14 Jakub Jelinek <jakub@redhat.com>
2465 * expmed.c (expand_shift_1): Canonicalize rotates by
2466 constant bitsize / 2 to bitsize - 1.
2467 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
2468 case ROTATERT>: Likewise.
2471 2013-05-10 Jakub Jelinek <jakub@redhat.com>
2473 * config/i386/i386.md (rotateinv): New code attr.
2474 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
2475 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
2476 roll $31, %eax, etc.
2478 2013-05-14 Richard Biener <rguenther@suse.de>
2481 * tree-eh.c (sink_clobbers): Give up for successors with
2482 multiple predecessors and no virtual uses.
2484 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
2486 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
2487 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
2489 2013-05-14 Jakub Jelinek <jakub@redhat.com>
2492 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
2493 the case when both op0 and op1 have VOIDmode.
2495 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2497 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
2498 in multiply-accumulate mode.
2500 2013-05-13 Guozhi Wei <carrot@google.com>
2502 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
2504 2013-05-13 Kai Tietz <ktietz@redhat.com>
2507 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
2508 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
2509 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
2510 * config/i386/i386.c (ix86_option_override_internal): Likewise.
2511 (ix86_expand_prologue): Likewise.
2512 (ix86_expand_split_stack_prologue): Likewise.
2513 (legitimate_pic_address_disp_p): Likewise.
2514 (legitimize_pic_address): Likewise.
2515 (legitimize_tls_address): Likewise.
2516 (legitimize_pe_coff_symbol): Likewise.
2517 (output_pic_addr_const): Likewise.
2518 (construct_plt_address): Likewise.
2519 (ix86_expand_call): Likewise.
2520 (x86_output_mi_thunk): Likewise.
2521 (x86_function_profiler): Likewise.
2523 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
2525 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
2526 similar switch cases.
2527 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
2528 (aarch64_simd_mov_to_<mode>low): Delete.
2529 (aarch64_simd_mov_to_<mode>high): Delete.
2530 (move_lo_quad_<mode>): Add w<-r alternative.
2531 (aarch64_simd_move_hi_quad_<mode>): Likewise.
2532 (aarch64_simd_mov_from_*): Update type attribute.
2533 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
2536 2013-05-13 Jan Hubicka <jh@suse.cz>
2538 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
2539 * config/i386/i386.c (ix86_compute_frame_layout,
2540 ix86_expand_epilogue, emit_i387_cw_initialization,
2541 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
2542 ix86_local_alignment): Fix use of size/speed predicates.
2544 2013-05-13 Jakub Jelinek <jakub@redhat.com>
2546 PR tree-optimization/45216
2547 PR tree-optimization/57157
2548 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
2549 the (-Y) & (B - 1) variant if OP is |.
2550 * expmed.c (expand_shift_1): For rotations by const0_rtx just
2551 return shifted. Use (-op1) & (prec - 1) as other_amount
2552 instead of prec - op1.
2554 2013-05-13 Martin Jambor <mjambor@suse.cz>
2557 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
2558 (ipa_constant_data): New type.
2559 (ipa_jump_func): Use ipa_constant_data to hold information about
2560 constant jump functions.
2561 (ipa_get_jf_constant): Adjust to jump function type changes.
2562 (ipa_get_jf_constant_rdesc): New function.
2563 (ipa_param_descriptor): New field controlled_uses.
2564 (ipa_get_controlled_uses): New function.
2565 (ipa_set_controlled_uses): Likewise.
2566 * ipa-ref.h (ipa_find_reference): Declare.
2567 * ipa-prop.c (ipa_cst_ref_desc): New type.
2568 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
2570 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
2571 New parameter cs. Adjust all callers.
2572 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
2573 (remove_described_reference): New function.
2574 (jfunc_rdesc_usable): Likewise.
2575 (try_make_edge_direct_simple_call): Decrement controlled use count,
2576 attempt to remove reference if it hits zero.
2577 (combine_controlled_uses_counters): New function.
2578 (propagate_controlled_uses): Likewise.
2579 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
2580 (ipa_edge_duplication_hook): Duplicate reference descriptions.
2581 (ipa_print_node_params): Print described use counter.
2582 (ipa_write_jump_function): Adjust to jump function type changes.
2583 (ipa_read_jump_function): New parameter CS, pass it to
2584 ipa_set_jf_constant. Adjust caller.
2585 (ipa_write_node_info): Stream controlled use count
2586 (ipa_read_node_info): Likewise.
2587 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
2589 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
2590 count. Remove cloning-added reference if it reaches zero.
2591 * ipa-ref.c (ipa_find_reference): New function.
2593 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2595 * config/i386/i386.c (processor_target_table): Modified default
2596 alignment values for AMD BD and BT architectures.
2598 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
2600 * tree-vect-generic.c (uniform_vector_p): Move ...
2601 * tree.c (uniform_vector_p): ... here.
2602 * tree.h (uniform_vector_p): Declare it.
2603 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
2606 2013-05-13 Jakub Jelinek <jakub@redhat.com>
2608 PR tree-optimization/57230
2609 * tree-ssa-strlen.c (handle_char_store): Record length for
2610 array store from STRING_CST.
2612 PR tree-optimization/57230
2613 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
2616 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
2618 * config/epiphany/epiphany.c (epiphany_init): Check size of
2619 NUM_MODES_FOR_MODE_SWITCHING.
2620 (epiphany_expand_prologue):
2621 Remove CONFIG_REGNUM initial value handling code.
2622 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
2623 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
2624 (emit_set_fp_mode, epiphany_mode_after): Likewise.
2625 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
2626 Don't return 1 for FP_MODE_NONE.
2627 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
2628 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
2629 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
2630 * config/epiphany/epiphany.md (save_config): New pattern.
2632 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
2634 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
2636 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
2638 * config/i386/i386.md (memory): Handle sseishft1.
2639 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
2640 (*vec_extractv2di_1): Ditto.
2642 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
2644 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
2647 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
2649 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
2650 Add mthumb/march=armv7-a multilib.
2651 Add mthumb/march=armv7-r multilib.
2652 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
2654 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
2656 * config/v850/t-rtems: Add more multilibs.
2658 2013-05-10 Richard Biener <rguenther@suse.de>
2660 PR tree-optimization/57214
2661 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
2662 not propagate from SSA names that occur in abnormal PHI nodes.
2664 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
2666 * stor-layout.c (element_precision): New function.
2667 * machmode.h (element_precision): Declare it.
2668 * tree.c (build_minus_one_cst): New function.
2669 (element_precision): Likewise.
2670 * tree.h (build_minus_one_cst): Declare new function.
2671 (element_precision): Likewise.
2672 * fold-const.c (operand_equal_p): Use element_precision.
2673 (fold_binary_loc): Handle vector types.
2674 * convert.c (convert_to_integer): Use element_precision.
2675 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
2678 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
2680 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
2681 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
2682 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
2683 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
2684 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
2685 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
2686 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
2687 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
2688 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
2689 (Uuw8): New constraints.
2690 (Usb4): Move into alphabetical order.
2691 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
2692 (sd8_operand, ub8_operand, uw8_operand): New predicates.
2693 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
2694 previously unnamed patterns.
2695 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
2696 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
2697 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
2698 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
2699 of set_attr_alternative/if_then_else. Use extended_mips16 instead
2700 of specific lengths.
2702 2013-05-10 Jakub Jelinek <jakub@redhat.com>
2704 * config/i386/i386.md (rotateinv): New code attr.
2705 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
2706 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
2707 roll $31, %eax, etc.
2709 PR tree-optimization/45216
2710 PR tree-optimization/57157
2711 * tree-ssa-forwprop.c (simplify_rotate): New function.
2712 (ssa_forward_propagate_and_combine): Call it.
2714 2013-05-10 Richard Biener <rguenther@suse.de>
2716 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
2717 disable peeling when we version for aliasing.
2718 (vector_alignment_reachable_p): Honor explicit user alignment.
2719 (vect_supportable_dr_alignment): Likewise.
2720 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
2721 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
2722 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
2723 then peeling to arrange for the cost-model check to come first.
2725 2013-05-10 Alan Modra <amodra@gmail.com>
2727 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
2728 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
2729 * configure: Regenerate.
2731 2013-05-10 Alan Modra <amodra@gmail.com>
2734 * varasm.c (default_elf_select_section): Move !DECL_P check..
2735 (get_named_section): ..to here before calling get_section_name.
2737 (default_section_type_flags): Add DECL_P check.
2738 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
2739 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
2741 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
2743 * config/epiphany/epiphany.c (epiphany_expand_prologue):
2744 When using gen_stack_adjust_str with a register offset, add a
2745 REG_FRAME_RELATED_EXPR note.
2747 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
2749 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
2750 (*vec_extractv4si_zext_mem): Ditto.
2751 (*vec_extractv2di): Add 0->x and x->x alternatives.
2752 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
2753 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
2755 2013-05-09 Jason Merrill <jason@redhat.com>
2757 N3639 C++1y VLA support
2758 * gimplify.c (gimplify_vla_decl): Don't touch an existing
2761 * tree.c (build_constructor_va): New.
2762 * tree.h: Declare it.
2764 2013-05-09 Martin Jambor <mjambor@suse.cz>
2767 * gimple-fold.c (canonicalize_constructor_val): Call
2768 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
2770 2013-05-09 Jan Hubicka <jh@suse.cz>
2771 Richard Biener <rguenther@suse.de>
2774 * symtab.c (symtab_make_decl_local): Do not add private names.
2776 2013-05-09 Jan Hubicka <jh@suse.cz>
2779 * symtab.c (insert_to_assembler_name_hash): Handle clones.
2780 (unlink_from_assembler_name_hash): Likewise.
2781 (symtab_prevail_in_asm_name_hash, symtab_register_node,
2782 symtab_unregister_node, symtab_initialize_asm_name_hash,
2783 change_decl_assembler_name): Update.
2785 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
2787 * config/aarch64/aarch64.md: New movtf split.
2788 (*movtf_aarch64): Update.
2789 (aarch64_movdi_tilow): Handle TF modes and rename to
2790 aarch64_movdi_<mode>low.
2791 (aarch64_movdi_tihigh): Handle TF modes and rename to
2792 aarch64_movdi_<mode>high
2793 (aarch64_movtihigh_di): Handle TF modes and rename to
2794 aarch64_mov<mode>high_di
2795 (aarch64_movtilow_di): Handle TF modes and rename to
2796 aarch64_mov<mode>low_di
2797 (aarch64_movtilow_tilow): Remove spurious whitespace.
2798 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
2800 (aarch64_print_operand): Update.
2802 2013-05-09 Alan Modra <amodra@gmail.com>
2804 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
2806 * configure: Regenerate.
2808 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
2810 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
2811 splitter preparation statements.
2812 * config/i386/sse.md (*vec_extract* splitters): Ditto.
2813 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
2816 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2818 * gimple-ssa-strength-reduction.c (count_candidates): Change
2819 return value to int.
2820 (analyze_candidates_and_replace): Change type of length to int.
2822 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
2824 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
2825 (*vec_extract<mode>): Use VI12_128 mode iterator.
2826 (*vec_extract<mode>_mem): Ditto.
2827 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
2830 2013-05-08 Diego Novillo <dnovillo@google.com>
2835 2012-08-17 Diego Novillo <dnovillo@google.com>
2838 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
2839 * config.in: Regenerate.
2840 * configure: Regenerate.
2841 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
2843 2013-05-08 Jan Hubicka <jh@suse.cz>
2846 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
2847 * cgraph.h (symtab_node_base): Add unique_name.
2848 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
2849 input_overwrite_node, input_varpool_node): Stream unique_name.
2850 * cgraphclones.c (cgraph_create_virtual_clone,
2851 cgraph_function_versioning): Set unique_name.
2852 * ipa.c (function_and_variable_visibility): Set unique_name.
2854 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2856 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
2857 (alloc_cand_and_find_basis): Restrict conditional candidate
2858 processing to CAND_MULTs.
2860 2013-05-08 Jan Hubicka <jh@suse.cz>
2863 lto-symtab.c (lto_symtab_symbol_p): New function.
2864 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
2865 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
2866 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
2867 Skip static symbols.
2869 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
2871 PR tree-optimization/57200
2872 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
2873 Only call inform if the preceding warning_at returns true.
2875 2013-05-07 Han Shen <shenhan@google.com>
2877 * cfgexpand.c (record_or_union_type_has_array_p): New function.
2878 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
2879 * common.opt (fstack-protector-strong): New option.
2880 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
2881 * doc/invoke.texi (Optimization Options): Document
2882 "-fstack-protector-strong".
2883 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
2885 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
2887 * config/mips/mips.c (mips_machine_reorg2): Return 0.
2889 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
2891 * ira.c (update_equiv_regs): Add insn having equiv memory even if
2892 it is not lhs of the insn.
2893 (setup_reg_equiv): Remove insn having equiv memory which it is not
2895 * lra-constraints.c (process_address): Try to improve generation
2896 code for address base + disp.
2897 (lra_constraints): Make correct the code for checking insn setting
2898 up backward equivalence. Remove insn only if it is in the init
2900 * lra-eliminations.c (update_reg_eliminate): Change return value.
2901 (lra_eliminate): Use the result.
2903 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
2905 * config/i386/sse.md (ssescalarnummask): New mode attribute.
2906 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
2907 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
2908 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
2909 register target operands.
2910 (*vec_extractv8hi_sse2): New pattern.
2911 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
2912 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
2913 (*vec_extract<mode>_mem): New insn and split pattern.
2915 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
2917 * config/arm/arm.c (arm_asan_shadow_offset): New function.
2918 (TARGET_ASAN_SHADOW_OFFSET): Define.
2919 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
2920 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
2922 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2924 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
2925 (incr_vec_index): Return -1 if increment not found.
2926 (create_add_on_incoming_edge): Assert if increment not found.
2927 (record_increment): Limit number of increments recorded.
2928 (all_phi_incrs_profitable): Return false if an increment not found.
2929 (replace_profitable_candidates): Don't process increments that were
2931 (analyze_candidates_and_replace): Limit size of incr_vec.
2933 2013-05-07 Richard Biener <rguenther@suse.de>
2935 * calls.c (special_function_p): setjmp-like functions are leaf.
2936 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
2937 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
2939 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
2941 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
2942 (aarch64_simd_mov<mode>): New expander.
2943 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
2944 (aarch64_simd_mov_to_<mode>high): Likewise.
2945 (aarch64_simd_mov_from_<mode>low): Likewise.
2946 (aarch64_simd_mov_from_<mode>high): Likewise.
2947 (aarch64_dup_lane<mode>): Update.
2948 (aarch64_dup_lanedi): New instruction pattern.
2949 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
2950 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
2952 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2954 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
2955 (replace_mult_candidate): Remove unnecessary argument; remove
2956 unnecessary parameter from call to introduce_cast_before_cand.
2957 (replace_unconditional_candidate): Remove unnecessary parameter
2958 from call to replace_mult_candidate.
2959 (replace_conditional_candidate): Likewise.
2960 (insert_initializers): Use make_temp_ssa_name.
2961 (introduce_cast_before_cand): Remove unnecessary argument; use
2963 (replace_one_candidate): Remove unnecessary argument; remove
2964 unnecessary parameter from calls to introduce_cast_before_cand.
2965 (replace_profitable_candidates): Remove unnecessary parameters
2966 from calls to replace_one_candidate.
2968 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2970 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
2971 phi def as possibly hiding a basis for a CAND_ADD whose operands
2972 have been commuted in the analysis.
2973 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
2975 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2977 * config/aarch64/aarch64.md
2978 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
2979 shift value between 0-4.
2981 2013-05-07 Richard Biener <rguenther@suse.de>
2983 * double-int.h (rshift): New overload.
2984 * double-int.c (rshift): New function.
2985 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
2986 (create_reference_ops_from_ref): Remove.
2987 (vn_reference_insert): Use shared ops for constructing the
2988 reference and copy it.
2990 2013-05-07 Richard Biener <rguenther@suse.de>
2993 * tree-eh.c (sink_clobbers): Properly propagate
2994 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
2996 2013-05-07 Jakub Jelinek <jakub@redhat.com>
2998 PR tree-optimization/57149
2999 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
3000 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
3001 collect_phi_def_edges, execute_late_warn_uninitialized): Use
3002 uninit_undefined_value_p instead of ssa_undefined_value_p.
3005 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
3006 for modifier == EXPAND_INITIALIZER.
3008 2013-05-07 Anton Blanchard <anton@samba.org>
3010 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
3011 for powerpc64 little endian.
3012 * configure: Regenerate.
3014 2013-05-06 Graham Stott <grahams@btinternet.com>
3016 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
3017 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
3018 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
3019 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
3021 2013-05-06 Graham Stott <grahams@btinternet.com>
3023 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
3024 codes which allow non-lvalues.
3026 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
3028 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
3029 components are all 1s.
3030 (integer_minus_onep): New function.
3031 * tree.h (integer_minus_onep): Declare it.
3032 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
3033 integer_minus_onep instead of integer_all_onesp.
3035 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
3038 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
3039 variations of these patterns.
3041 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
3043 * config/i386/i386.md (isa): Add x64_sse4 member.
3044 (enabled): Handle x64_sse4.
3045 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
3046 instruction for 64bit SSE4_1 targets. Update insn attributes.
3047 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
3048 instruction for SSE4_1 targets. Update insn attributes.
3049 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
3050 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
3051 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
3053 (*vec_extractv4si): Rename from *sse4_1_pextrd.
3054 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
3055 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
3057 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
3060 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
3062 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
3064 * final.c (do_assembler_dialects): Don't handle curly braces and
3065 vertical bar escaped by % as dialect delimiters.
3066 (output_asm_insn): Print curly braces and vertical bar if escaped
3067 by % and ASSEMBLER_DIALECT defined.
3068 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
3069 * doc/tm.texi: Regenerated.
3071 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
3073 * config/mips/mips.c: Include tree-pass.h.
3074 (mips_reorg): Split in pre- and post-dbr_schedule parts.
3075 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
3076 (pass_mips_machine_reorg2): New machine specific pass.
3077 (insert_pass_mips_machine_reorg2): New pass plugin definition.
3078 (mips_option_override): Register the new pass.
3079 * rtl.h (cleanup_barriers): Remove prototype.
3080 (dbr_schedule): Likewise.
3081 * jump.c (cleanup_barriers): Make static.
3082 * reorg.c (dbr_schedule): Likewise.
3084 2013-05-06 Richard Biener <rguenther@suse.de>
3086 PR tree-optimization/57185
3087 * tree-parloops.c (add_field_for_reduction): Handle anonymous
3090 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
3093 * config/i386/i386.c (add_parameter_dependencies): Add dependence
3094 between "first_arg" and "insn", not "last" and "insn".
3096 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3098 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
3099 (find_candidates_in_block): Re-enable slsr_process_phi.
3100 (create_phi_basis): Fix double counting of candidate adjustment.
3102 2013-05-06 Richard Biener <rguenther@suse.de>
3105 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
3106 the edge is also fallthru, preserve it and just clear the
3108 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
3109 also complex, preserve that and just clear the fallthru flag.
3110 * tree-inline.c (update_ssa_across_abnormal_edges): Also
3111 update virtual operands.
3113 2013-05-06 Alan Modra <amodra@gmail.com>
3115 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
3116 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
3117 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
3118 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
3119 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
3120 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
3122 2013-05-06 Alan Modra <amodra@gmail.com>
3124 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
3125 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
3126 (DEFAULT_ASM_ENDIAN): Define.
3127 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
3128 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
3129 Update -K PIC clause from sysv4.h.
3130 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
3131 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
3133 2013-05-06 Alan Modra <amodra@gmail.com>
3135 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
3136 twice for little-endian.
3137 (ashrdi3_no_power, ashrdi3): Support little-endian.
3139 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
3142 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
3143 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
3145 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
3146 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
3147 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
3150 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
3151 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3153 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
3154 * config/pa/pa.opt: Make mbig-switch a no-op.
3155 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
3156 (CASE_VECTOR_MODE): Always return SImode.
3157 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
3158 for the !TARGET_BIG_SWITCH case.
3159 * config/pa/pa-linux.h: Likewise.
3160 * config/pa/pa-openbsd.h: Likewise.
3161 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
3162 * config/pa/pa.md (short_jump): Remove define_insn.
3163 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
3164 (casesi0): Remove define_insn.
3165 (type): Remove btable_branch.
3166 (pa_combine_type): Likewise.
3167 (in_nullified_branch_delay): Likewise.
3168 (in_call_delay): Likewise.
3169 (define_delay): Likewise.
3170 (define_insn_reservation "Z3"): Likewise.
3171 (define_insn_reservation "Z4"): Likewise.
3172 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
3173 (pa_adjust_insn_length): Remove adjustment for btable branches.
3174 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
3177 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
3179 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
3180 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
3181 Add m->r,x alternatives.
3182 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
3183 splitters using SWI48x mode iterator.
3184 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
3185 TARGET_64BIT. Add m->x alternative.
3186 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
3187 Add o->x alternative. Enable for TARGET_SSE.
3188 (sse_storeq): Remove expander.
3189 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
3190 with memory input operand.
3191 (*vec_extractv2di_1 splitter): New.
3192 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
3193 * config/i386/i386.md (ssevecmodelower): New mode attribute.
3195 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
3197 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
3198 (INT_LOWPART): Delete.
3199 (extract_MB): Adjust.
3200 (extract_ME): Adjust.
3201 (print_operand): Adjust.
3203 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
3205 * config/rs6000/predicates.md (reg_or_add_cint_operand,
3206 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
3207 (reg_or_logical_cint_operand, easy_fp_constant,
3208 logical_const_operand): Delete "CONST_DOUBLE" case.
3209 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
3210 "HOST_BITS_PER_WIDE_INT == 64" test.
3211 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
3212 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
3213 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
3214 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
3216 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
3217 CONST_DOUBLE DImode/VOIDmode case.
3218 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
3219 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
3220 CONST_DOUBLE VOIDmode case.
3221 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
3222 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
3223 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
3224 Delete CONST_DOUBLE case.
3225 (splitters for mov FMOVE64 const_double): Delete
3226 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
3227 "HOST_BITS_PER_WIDE_INT >= 64" test.
3228 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
3230 (mov DI const_double): Delete.
3232 2013-05-04 Jakub Jelinek <jakub@redhat.com>
3234 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
3235 on op shows all bits zero in mode of a lowpart subreg, return zero.
3237 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
3240 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
3241 to save TFmode registers and DImode to save TImode registers for
3242 caller save operations.
3243 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
3244 mark being partially clobbered since they only use the first
3247 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
3248 and TDmode only use the upper 64-bits of each VSX register.
3250 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3252 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
3253 (find_candidates_in_block): Disable slsr_process_phi.
3255 2013-05-03 Guozhi Wei <carrot@google.com>
3257 * coverage.c (coverage_obj_init): Move the construction of gcov
3259 (build_init_ctor): ... here.
3261 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3263 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
3264 (slsr_cand_d): Redefine def_phi.
3265 (stride_status, phi_adjust_status, count_phis_status): New enums.
3266 (find_phi_def): New.
3267 (find_basis_for_base_expr): New.
3268 (find_basis_for_candidate): Handle hidden bases.
3269 (alloc_cand_and_find_basis): Handle phi candidates.
3270 (slsr_process_phi): New.
3271 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
3272 (create_mul_imm_cand): Likewise.
3273 (create_add_ssa_cand): Exclude phi base candidates.
3274 (create_add_imm_cand): Likewise.
3275 (slsr_process_cast): Likewise.
3276 (slsr_process_copy): Likewise.
3277 (find_candidates_in_block): Handle phi candidates.
3278 (dump_candidate): Likewise.
3279 (unconditional_cands): Delete.
3280 (unconditional_cands_with_known_stride_p): Delete.
3281 (phi_dependent_cand_p): New.
3282 (cand_increment): Handle phi-dependent candidates.
3283 (replace_dependent): Delete.
3284 (replace_mult_candidate): New.
3285 (replace_unconditional_candidate): New.
3286 (incr_vec_index): Move to avoid forward reference.
3287 (create_add_on_incoming_edge): New.
3288 (create_phi_basis): New.
3289 (replace_dependents): Delete.
3290 (replace_conditional_candidate): New.
3291 (phi_add_costs): New.
3292 (replace_uncond_cands_and_profitable_phis): New.
3293 (record_increment): Handle phi adjustments.
3294 (record_phi_increments): New.
3295 (record_increments): Handle phi adjustments.
3296 (phi_incr_cost): New.
3297 (lowest_cost_path): Handle phis.
3298 (total_savings): Likewise.
3299 (analyze_increments): Likewise.
3300 (ncd_with_phi): New.
3301 (ncd_of_cand_and_phis): New.
3302 (nearest_common_dominator_for_cands): Handle phi increments.
3303 (all_phi_incrs_profitable): New.
3304 (replace_profitable_candidates): Handle phi-dependent candidates.
3305 (analyze_candidates_and_replace): Likewise.
3307 2013-05-03 Teresa Johnson <tejohnson@google.com>
3310 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
3311 do not exceed REG_BR_PROB_BASE.
3313 2013-05-03 Jeff Law <law@redhat.com>
3315 PR tree-optimization/57144
3316 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
3317 operand of the condition will bit into the new type when eliminating
3318 a cast feeding a condition.
3320 2013-05-03 Jakub Jelinek <jakub@redhat.com>
3322 PR rtl-optimization/57130
3323 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
3324 of COMPARE as in_code to the recursive call if needed.
3326 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
3328 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
3329 (enabled): Handle new members.
3330 * config/i386/sse.md (*vec_concatv2si): Merge from
3331 *vec_concatv2si_sse2 and vec_concatv2si_sse.
3332 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
3334 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
3336 PR tree-optimization/57027
3337 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
3338 for fnms opportunity, check we got the prerequisite kind
3339 of tree / gimple before using accessor functions.
3341 2013-05-03 Richard Biener <rguenther@suse.de>
3343 * double-int.h (lshift): New overload without precision
3345 (operator *=, operator +=, operator -=): Move ...
3346 * double-int.c (operator *=, operator +=, operator -=): ... here
3347 and implement more efficiently.
3348 (mul_double_with_sign): Remove.
3349 (lshift_double): Adjust to take unsinged shift argument, push
3350 dispatching code to callers.
3351 (mul_double_wide_with_sign): Add early out for callers that
3352 are not interested in high parts or overflow.
3353 (lshift): New function.
3354 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
3356 (lrotate, rrotate): Use logical shifts.
3357 * expr.c (get_inner_reference): Use lshift.
3358 * fixed-value.c (do_fixed_divide): Likewise.
3359 * tree-dfa.c (get_ref_base_and_extent): Likewise.
3360 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
3361 (indirect_refs_may_alias_p): Likewise.
3362 (stmt_kills_ref_p_1): Likewise.
3364 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
3366 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
3368 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
3370 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
3371 scalar form of FABD instruction.
3373 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
3375 * lra-constraints.c (process_alt_operands): Add checking alt
3376 number to choose the best alternative.
3378 2013-05-02 Richard Biener <rguenther@suse.de>
3380 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
3381 bitmap and its handling.
3382 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
3384 2013-05-02 Richard Biener <rguenther@suse.de>
3387 * tree-inline.c (copy_loops): Properly handle removed loops.
3388 (copy_cfg_body): Mark destination loops for fixup if source
3391 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
3394 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
3395 generating simple_return for naked functions.
3397 2013-05-02 Martin Jambor <mjambor@suse.cz>
3400 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
3401 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
3403 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
3404 ipa_agg_replacement_value structures.
3405 (known_aggs_to_agg_replacement_list): Likewise.
3406 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
3407 (read_agg_replacement_chain): Likewise.
3408 (ipcp_transform_function): Also check that by_ref flags match.
3410 2013-05-02 Richard Biener <rguenther@suse.de>
3412 * graphds.h (struct graph): Add obstack member.
3413 * graphds.c (new_graph): Initialize obstack and allocate
3415 (add_edge): Allocate edge from the obstack.
3416 (free_graph): Free the obstack instead of all edges and vertices.
3418 2013-05-02 Teresa Johnson <tejohnson@google.com>
3420 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
3422 * cfg.c (update_bb_profile_for_threading): Ditto.
3423 * tree-inline.c (copy_bb): Ditto.
3424 (copy_edges_for_bb): Ditto.
3425 (initialize_cfun): Ditto.
3426 (copy_cfg_body): Ditto.
3427 (expand_call_inline): Ditto.
3428 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
3429 (estimate_node_size_and_time): Ditto.
3430 (inline_merge_summary): Ditto.
3431 * cgraphclones.c (cgraph_clone_edge): Ditto.
3432 (cgraph_clone_node): Ditto.
3433 * sched-rgn.c (compute_dom_prob_ps): Ditto.
3434 (compute_trg_info): Ditto.
3436 2013-05-02 Ian Bolton <ian.bolton@arm.com>
3438 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
3439 S reg when fp attribute set.
3440 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
3442 2013-05-02 Ian Bolton <ian.bolton@arm.com>
3444 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
3446 (*and_one_cmplsi3_compare0_uxtw): Likewise.
3447 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
3448 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
3450 2013-05-02 Richard Biener <rguenther@suse.de>
3452 * tree-scalar-evolution.c (scev_info_hasher): Remove.
3453 (struct instantiate_cache_entry): New type.
3454 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
3455 (struct instantiate_cache_type): New type.
3456 (set_instantiated_value, get_instantiated_value): Remove.
3457 (get_instantiated_value_entry): New function.
3458 (instantiate_scev_name): Use the new cache and adjust.
3459 (instantiate_scev_poly): Adjust.
3460 (instantiate_scev_binary): Likewise.
3461 (instantiate_array_ref): Likewise.
3462 (instantiate_scev_convert): Likewise.
3463 (instantiate_scev_not): Likewise.
3464 (instantiate_scev_3): Likewise.
3465 (instantiate_scev_2): Likewise.
3466 (instantiate_scev_r): Likewise.
3467 (instantiate_scev): Likewise.
3468 (resolve_mixers): Likewise.
3470 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
3473 * lra-constraints.c (best_small_class_operands_num): Remove.
3474 (process_alt_operands): Remove small_class_operands_num. Take
3475 small classes operands into losers and only if the operand is not
3476 matched. Modify debugging output.
3477 (curr_insn_transform): Remove best_small_class_operands_num.
3480 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3482 * config/aarch64/aarch64-builtins.c
3483 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
3484 * config/aarch64/aarch64-simd-builtins.def
3485 (reduc_splus_): Add new modes.
3486 (reduc_uplus_): New.
3487 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
3488 (reduc_uplus_v4sf): Likewise.
3489 (reduc_splus_v4sf): Likewise.
3490 (aarch64_addv<mode>): Likewise.
3491 (reduc_uplus_<mode>): Likewise.
3492 (reduc_splus_<mode>): Likewise.
3493 (aarch64_addvv2di): Likewise.
3494 (reduc_uplus_v2di): Likewise.
3495 (reduc_splus_v2di): Likewise.
3496 (aarch64_addvv2si): Likewise.
3497 (reduc_uplus_v2si): Likewise.
3498 (reduc_splus_v2si): Likewise.
3499 (reduc_<sur>plus_<mode>): New.
3500 (reduc_<sur>plus_v2di): Likewise.
3501 (reduc_<sur>plus_v2si): Likewise.
3502 (reduc_<sur>plus_v4sf): Likewise.
3503 (aarch64_addpv4sf): Likewise.
3504 * config/aarch64/arm_neon.h
3505 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
3506 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
3507 add UNSPEC_SADDV, UNSPEC_UADDV.
3509 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
3511 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3513 * config/aarch64/arm_neon.h
3514 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
3516 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3518 * config/aarch64/aarch64-builtins
3519 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
3521 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3523 * config/aarch64/aarch64-simd-builtins.def
3525 (reduc_smin_): Likewise.
3526 (reduc_umax_): Likewise.
3527 (reduc_umin_): Likewise.
3528 (reduc_smax_nan_): Likewise.
3529 (reduc_smin_nan_): Likewise.
3532 (smax): Update for V2SF, V4SF and V2DF modes.
3535 (smin_nan): Likewise.
3536 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
3537 (<su><maxmin><mode>3): ...This, refactor.
3538 (s<maxmin><mode>3): New.
3539 (<maxmin_uns><mode>3): Likewise.
3540 (reduc_<maxmin_uns>_<mode>): Refactor.
3541 (reduc_<maxmin_uns>_v4sf): Likewise.
3542 (reduc_<maxmin_uns>_v2si): Likewise.
3543 (aarch64_<fmaxmin><mode>: Remove.
3544 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
3546 (vmin<q>_f<32,64>): Likewise.
3547 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
3549 (su): Add mappings for smax, smin, umax, umin.
3551 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
3552 (FMAXMIN): Rename as...
3553 (FMAXMIN_UNS): ...This.
3555 (fmaxminv): Likewise.
3556 (fmaxmin): Likewise.
3558 (maxmin_uns_op): Likewise.
3560 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3562 * config/aarch64/arm_neon.h
3563 (vac<ge, gt><sd>_f<32, 64>): Rename to...
3564 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
3565 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
3567 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3569 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
3570 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
3572 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3574 * config/aarch64/aarch64-simd.md
3575 (vcond<mode>_internal): Handle special cases for constant masks.
3576 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
3577 (vcondu<mode><mode>): Likewise.
3578 (vcond<v_cmp_result><mode>): New.
3580 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3582 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
3583 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
3584 * config/aarch64/aarch64-simd-builtins.def
3585 (cmeq): Update to BUILTIN_VALLDI.
3590 * config/aarch64/arm_neon.h
3591 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
3592 to builtins or C as appropriate.
3594 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3596 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
3598 (cmhi): Rename to...
3600 * config/aarch64/aarch64-simd.md
3601 (simd_mode): Add SF.
3602 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
3603 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
3604 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
3605 (cstore<mode>_neg): ...This.
3606 * config/aarch64/iterators.md
3608 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
3610 (UCOMPARISONS): Likewise.
3611 (optab): Add missing comparisons.
3619 (V_cmp_result): Add DF, SF modes.
3620 (v_cmp_result): Likewise.
3623 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
3625 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
3627 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
3628 define_insn to define_insn_and_split.
3629 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
3630 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
3631 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
3632 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
3633 (thumb2_negscc): Likewise.
3635 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
3637 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
3639 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
3641 * config/arm/thumb2.md: Remove trailing whitespaces.
3643 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3645 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
3646 Use gen_int_mode rather than GEN_INT.
3648 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
3650 * value-prof.c (stream_in_histogram_value): Remove the strayed
3653 2013-04-30 Richard Biener <rguenther@suse.de>
3656 * cfghooks.c (split_edge): Properly check for the loop latch edge.
3658 2013-04-30 Richard Biener <rguenther@suse.de>
3661 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
3663 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
3665 PR rtl-optimization/56957
3666 PR rtl-optimization/57105
3667 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
3668 variable. Use just INSN_UID for determining whether an insn
3669 should be only disconnected from the insn stream.
3670 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
3672 2013-04-30 Jakub Jelinek <jakub@redhat.com>
3674 PR tree-optimization/57104
3675 * tsan.c (instrument_expr): Don't instrument accesses to
3676 DECL_HARD_REGISTER VAR_DECLs.
3678 2013-04-30 Richard Biener <rguenther@suse.de>
3680 * function.h (loops_for_fn): New inline function.
3681 (set_loops_for_fn): Likewise.
3682 * cfgloop.h (place_new_loop): Add struct function parameter.
3683 (get_loop): Likewise.
3684 (get_loops): Likewise.
3685 (number_of_loops): Likewise.
3687 (fel_init): Likewise.
3688 * cfg.c (get_loop_copy): Adjust.
3689 * cfgloop.c (flow_loops_dump): Likewise.
3690 (record_loop_exits): Likewise.
3691 (verify_loop_structure): Likewise.
3692 * cfgloopanal.c (mark_irreducible_loops): Likewise.
3693 (estimate_reg_pressure_cost): Likewise.
3694 (mark_loop_exit_edges): Likewise.
3695 * cfgloopmanip.c (place_new_loop): Likewise.
3696 (add_loop): Likewise.
3697 (duplicate_loop): Likewise.
3698 * graph.c (draw_cfg_nodes): Likewise.
3699 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
3700 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
3701 (extract_affine_chrec): Likewise.
3702 (build_scop_iteration_domain): Likewise.
3703 * graphite.c (graphite_initialize): Likewise.
3704 * ira-build.c (create_loop_tree_nodes): Likewise.
3705 (more_one_region_p): Likewise.
3706 (rebuild_regno_allocno_maps): Likewise.
3707 (mark_loops_for_removal): Likewise.
3708 (mark_all_loops_for_removal): Likewise.
3709 (remove_unnecessary_regions): Likewise.
3710 (ira_build): Likewise.
3711 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
3712 * loop-init.c (fix_loop_structure): Likewise.
3713 (gate_rtl_move_loop_invariants): Likewise.
3714 (gate_rtl_unswitch): Likewise.
3715 (gate_rtl_unroll_and_peel_loops): Likewise.
3716 (rtl_doloop): Likewise.
3717 * lto-streamer-in.c (input_cfg): Likewise.
3718 * lto-streamer-out.c (output_cfg): Likewise.
3719 * modulo-sched.c (sms_schedule): Likewise.
3720 * predict.c (tree_estimate_probability): Likewise.
3721 (tree_estimate_probability_driver): Likewise.
3722 (estimate_loops): Likewise.
3723 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
3724 (move_sese_region_to_fn): Likewise.
3725 (debug_loop_num): Likewise.
3726 * tree-chrec.c (chrec_evaluate): Likewise.
3727 (hide_evolution_in_other_loops_than_loop): Likewise.
3728 (chrec_component_in_loop_num): Likewise.
3729 (reset_evolution_in_loop): Likewise.
3730 (evolution_function_is_invariant_rec_p): Likewise.
3731 * tree-if-conv.c (main_tree_if_conversion): Likewise.
3732 * tree-inline.c (copy_loops): Likewise.
3733 (copy_cfg_body): Likewise.
3734 (tree_function_versioning): Likewise.
3735 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
3736 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
3738 (add_to_evolution_1): Likewise.
3739 (scev_const_prop): Likewise.
3740 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
3741 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
3742 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
3743 (tree_ssa_lim_initialize): Likewise.
3744 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
3745 (verify_loop_closed_ssa): Likewise.
3746 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
3747 (tree_ssa_loop_im): Likewise.
3748 (tree_ssa_loop_unswitch): Likewise.
3749 (tree_vectorize): Likewise.
3750 (check_data_deps): Likewise.
3751 (tree_ssa_loop_ivcanon): Likewise.
3752 (tree_ssa_loop_bounds): Likewise.
3753 (tree_complete_unroll): Likewise.
3754 (tree_complete_unroll_inner): Likewise.
3755 (tree_parallelize_loops): Likewise.
3756 (tree_ssa_loop_prefetch): Likewise.
3757 (tree_ssa_loop_ivopts): Likewise.
3758 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
3759 * tree-vectorizer.c (vectorize_loops): Likewise.
3761 2013-04-29 Mike Frysinger <vapier@gentoo.org>
3763 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
3764 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
3765 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
3766 with EABI_LINK_SPEC.
3768 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
3771 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
3774 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
3777 * lra-constraints.c (process_alt_operands): Discourage a bit more
3778 using memory for pseudos. Print cost dump for alternatives.
3779 Modify cost values for conflicts with early clobbers.
3780 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
3782 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
3785 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
3787 2013-04-29 Ian Bolton <ian.bolton@arm.com>
3789 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
3791 (movdi_aarch64): Support LDR/STR from/to D register.
3793 2013-04-29 Ian Bolton <ian.bolton@arm.com>
3795 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
3796 or higher by default.
3798 2013-04-29 Richard Biener <rguenther@suse.de>
3801 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
3802 even if not adding abnormal edges for calls that can make
3805 2013-04-29 Richard Biener <rguenther@suse.de>
3808 * tree-cfg.c (move_stmt_op): Fix condition under which to update
3810 (move_stmt_r): Remove redundant checking.
3812 2013-04-29 Teresa Johnson <tejohnson@google.com>
3815 * basic-block.h (apply_scale): New function.
3816 (apply_probability): Use apply_scale.
3817 * gimple-streamer-in.c (input_bb): Ditto.
3818 * lto-streamer-in.c (input_cfg): Ditto.
3819 * lto-cgraph.c (merge_profile_summaries): Ditto.
3820 * tree-optimize.c (execute_fixup_cfg): Ditto.
3821 * tree-inline.c (copy_bb): Update comment to use apply_scale.
3822 (copy_edges_for_bb): Ditto.
3823 (copy_cfg_body): Ditto.
3825 2013-04-29 Tom de Vries <tom@codesourcery.com>
3827 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
3828 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
3829 (tail_merge_optimize): Handle current_loops == NULL.
3831 2013-04-26 Jeff Law <law@redhat.com>
3833 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
3834 (simplify_cond_using_ranges): Generalize code to simplify
3835 COND_EXPRs where one argument is a constant and the other
3836 is an SSA_NAME created by an integral type conversion.
3838 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3840 * config/arm/arm.md (store_minmaxsi): Use only when
3841 optimize_insn_for_size_p.
3843 2013-04-29 Christian Bruel <christian.bruel@st.com>
3846 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
3848 2013-04-29 Richard Biener <rguenther@suse.de>
3851 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
3852 loop tree make sure to schedule a fixup for the child as well.
3853 (expand_omp_for_generic): Properly add loops.
3854 (expand_omp_for_static_nochunk): Likewise.
3855 (expand_omp_for_static_chunk): Likewise.
3856 (expand_omp_for): For the degenerate case fixup loops.
3857 (expand_omp_sections): Fix default bb placement in loops.
3858 (expand_omp_atomic_pipeline): Properly add loops.
3860 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3862 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
3864 2013-04-29 Tom de Vries <tom@codesourcery.com>
3866 * tree-ssa-tail-merge.c: Update header comment.
3868 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3870 * config/aarch64/arm_neon.h
3871 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
3872 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
3873 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
3874 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
3875 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
3876 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
3877 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
3878 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
3880 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3882 * config/aarch64/aarch64-simd.md
3883 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
3884 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
3885 fix_trunc, fixuns_trunc.
3886 (ftrunc<VDQF:mode>2): New.
3887 * config/aarch64/iterators.md (optab): Add fix, fixuns.
3888 (fix_trunc_optab): New.
3890 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3892 * config/aarch64/aarch64-builtins.c
3893 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
3894 iceilf, lround, iroundf.
3896 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
3899 * config/i386/i386.h (enum ix86_tune_indices)
3900 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
3901 New, split from X86_TUNE_INTER_UNIT_MOVES.
3902 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
3903 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
3904 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
3905 (TARGET_INTER_UNIT_MOVES): Remove.
3906 * config/i386/i386.c (initial_ix86_tune_features): Update.
3907 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
3908 (ix86_expand_convert_uns_didf_sse): Use
3909 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
3910 (ix86_expand_vector_init_one_nonzero): Ditto.
3911 (ix86_expand_vector_init_interleave): Ditto.
3912 (inline_secondary_memory_needed): Return true for moves from SSE class
3913 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
3914 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
3915 * config/i386/constraints.md (Yi, Ym): Depend on
3916 TARGET_INTER_UNIT_MOVES_TO_VEC.
3917 (Yj, Yn): New constraints.
3918 * config/i386/i386.md (*movdi_internal): Change constraints of
3919 operand 1 from Yi to Yj and from Ym to Yn.
3920 (*movsi_internal): Ditto.
3921 (*movdf_internal): Ditto.
3922 (*movsf_internal): Ditto.
3923 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
3924 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
3925 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
3926 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
3927 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
3928 * config/i386/sse.md (movdi_to_sse): Ditto.
3929 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
3930 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
3931 TARGET_INTER_UNIT_MOVES.
3932 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
3933 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
3934 instead of TARGET_INTER_UNIT_MOVES.
3935 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
3936 operand 1 from Yi to Yj and from Ym to Yn.
3938 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3940 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
3941 (float_truncate_hi_): Likewise.
3942 (float_extend_lo_): Likewise.
3943 (float_truncate_lo_): Likewise.
3944 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
3945 (aarch64_float_extend_lo_v2df): Likewise.
3946 (vec_unpacks_hi_v4sf): Likewise.
3947 (aarch64_float_truncate_lo_v2sf): Likewise.
3948 (aarch64_float_truncate_hi_v4sf): Likewise.
3949 (vec_pack_trunc_v2df): Likewise.
3950 (vec_pack_trunc_df): Likewise.
3952 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3954 * config/aarch64/aarch64-builtins.c
3955 (aarch64_fold_builtin): Fold float conversions.
3956 * config/aarch64/aarch64-simd-builtins.def
3957 (floatv2si, floatv4si, floatv2di): New.
3958 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
3959 * config/aarch64/aarch64-simd.md
3960 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
3961 * config/aarch64/iterators.md (FLOATUORS): New.
3962 (optab): Add float, floatuns.
3963 (su_optab): Likewise.
3965 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3967 * config/aarch64/aarch64-builtins.c
3968 (aarch64_builtin_vectorized_function): Use new names for
3970 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
3971 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
3972 (fcvtzu): Split as...
3973 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
3974 (fcvtas): Split as...
3975 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
3976 (fcvtau): Split as...
3977 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
3978 (fcvtps): Split as...
3979 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
3980 (fcvtpu): Split as...
3981 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
3982 (fcvtms): Split as...
3983 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
3984 (fcvtmu): Split as...
3985 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
3986 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
3987 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
3988 (lfrintnusf, lfrintnudf): Likewise.
3989 * config/aarch64/aarch64-simd.md
3990 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
3992 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
3993 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
3994 (fcvt_pattern): Likewise.
3996 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3998 * config/aarch64/aarch64-simd.md
3999 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
4000 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
4002 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4004 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
4005 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
4006 (vrnd<a,m,n,p>_f32): Implement using builtins.
4007 (vrnd<i,x><q>_f<32, 64>): New.
4009 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4011 * config/aarch64/aarch64-builtins.c
4012 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
4013 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
4014 (frintz): Rename to...
4016 (frintp): Rename to...
4018 (frintm): Rename to...
4020 (frinti): Rename to...
4021 (nearbyint): ...this.
4022 (frintx): Rename to...
4024 (frinta): Rename to...
4026 * config/aarch64/aarch64-simd.md
4027 (aarch64_frint<frint_suffix><mode>): Delete.
4028 (<frint_pattern><mode>2): Convert to insn.
4029 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
4030 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
4031 (frint_pattern): Likewise.
4032 (frint_suffix): Likewise.
4034 2013-04-29 Richard Biener <rguenther@suse.de>
4036 PR tree-optimization/57081
4037 * loop-init.c: Include tree-flow.h.
4038 (loop_optimizer_finalize): Free number of iteration estimates.
4039 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
4041 2013-04-29 Jakub Jelinek <jakub@redhat.com>
4043 PR tree-optimization/57083
4044 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
4045 non-singleton shift count range, zero extend low_bound for uns case.
4047 * config/i386/predicates.md (general_vector_operand): New predicate.
4048 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
4049 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
4050 if they aren't nonimmediate operands. If their original values
4051 satisfy const_vector_equal_evenodd_p, don't shift them.
4052 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
4053 predicates. For the SSE4.1 case force operands[{1,2}] into registers
4054 if not nonimmediate_operand.
4055 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
4056 instead of register_operand.
4057 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
4059 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
4061 * stor-layout.c (finalize_size_functions): Allocate a structure and
4062 reset cfun before dumping the functions.
4064 2013-04-27 Jakub Jelinek <jakub@redhat.com>
4066 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
4069 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
4070 use xop_pmacsdqh if uns_p.
4071 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
4072 the immediate rotate count.
4074 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
4076 * rtl.h (struct rtx_def): Add comment for field jump.
4077 (LRA_SUBREG_P): New macro.
4078 * recog.c (register_operand): Check LRA_SUBREG_P.
4079 * lra.c (lra): Add note at the end of RTL code. Align non-empty
4081 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
4082 (lra_final_code_change): Skip subreg change for operators.
4083 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
4084 if there are no operand changes.
4085 * lra-constraints.c (curr_insn_set): New.
4086 (match_reload): Set LRA_SUBREG_P.
4087 (emit_spill_move): Ditto.
4088 (check_and_process_move): Use curr_insn_set. Process only single
4089 set insns. Don't initialize sec_mem_p and change_p.
4090 (simplify_operand_subreg): Use LRA_SUBREG_P.
4091 (reg_in_class_p): New function.
4092 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
4093 of #ifdef. Add code to remove cycling.
4094 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
4095 non-null disp. Reload inner instead of disp when base and index
4096 are null. Try to put lo_sum into register.
4097 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
4098 (check_and_process_move): Move code for move cost check to
4099 simple_move_p. Remove equiv_substitution.
4100 (simple_move_p): New function.
4101 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
4102 curr_insn_set. Call check_and_process_move only for single set
4103 insns. Use the new function. Move call of check_and_process_move
4104 after operand equiv substitution and address process.
4106 2013-04-26 Jakub Jelinek <jakub@redhat.com>
4109 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
4110 with nonlocal goto receivers or returns twice calls, ignore
4111 unininitialized values from abnormal edges to nl goto receiver
4112 or returns twice call.
4114 2013-04-26 Jakub Jelinek <jakub@redhat.com>
4116 PR tree-optimization/57051
4117 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
4118 and VEC_RSHIFT_EXPR if shift count is a multiple of element
4121 2013-04-26 Richard Biener <rguenther@suse.de>
4123 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
4124 (expand_omp_taskreg): Likewise. Mark loops for fixup.
4125 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
4126 (fixup_loop_arrays_after_move): New function.
4127 (move_sese_region_to_fn): Properly outline the loop tree parts
4130 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
4132 * config/i386/i386.md (type, unit): Fix long lines.
4134 2013-04-26 Richard Biener <rguenther@suse.de>
4136 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
4137 (lto-streamer-out.o): Likewise.
4138 * cfgloop.c (init_loops_structure): Export, add struct function
4139 argument and adjust.
4140 (flow_loops_find): Adjust.
4141 * cfgloop.h (enum loop_estimation): Add EST_LAST.
4142 (init_loops_structure): Declare.
4143 * lto-streamer-in.c: Include cfgloop.h.
4144 (input_cfg): Input the loop tree.
4145 * lto-streamer-out.c: Include cfgloop.h.
4146 (output_cfg): Output the loop tree.
4147 (output_struct_function_base): Do not drop PROP_loops.
4149 2013-03-26 Richard Biener <rguenther@suse.de>
4151 * tree-cfg.c (execute_build_cfg): Build the loop tree.
4152 (pass_build_cfg): Provide PROP_loops.
4153 (move_sese_region_to_fn): Remove loops that are outlined into fn
4155 * tree-inline.c: Include cfgloop.h.
4156 (initialize_cfun): Do not drop PROP_loops.
4157 (copy_loops): New function.
4158 (copy_cfg_body): Copy loop structure.
4159 (tree_function_versioning): Initialize destination loop tree.
4160 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
4161 (pass_parallelize_loops): Do IL verification.
4162 * loop-init.c (loop_optimizer_init): Fixup loops if required.
4163 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
4164 the CFG make sure we fixup loops as well.
4165 * tree-ssa-tail-merge.c: Include cfgloop.h.
4166 (replace_block_by): When merging loop latches mark loops for fixup.
4167 * lto-streamer-out.c (output_struct_function_base): Drop
4169 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
4170 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
4171 * ipa-split.c: Include cfgloop.h.
4172 (split_function): Add the new return block to the loop tree root.
4173 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
4174 whether we have removed the forwarder block.
4175 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
4176 * cfgloop.h (place_new_loop): Declare.
4177 * cfgloopmanip.c (place_new_loop): Export.
4178 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
4179 (tree-switch-conversion.o): Likewise.
4180 (tree-complex.o): Likewise.
4181 (tree-inline.o): Likewise.
4182 (tree-ssa-tailmerge.o): Likewise.
4183 (ipa-split.o): Likewise.
4184 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
4185 (tree-ssa-copy.o): Likewise.
4186 * tree-switch-conversion.c: Include cfgloop.h
4187 (process_switch): If we emit a bit-test cascade, schedule loops
4189 * tree-complex.c: Include cfgloop.h.
4190 (expand_complex_div_wide): Properly add new basic-blocks to loops.
4191 * asan.c: Include cfgloop.h.
4192 (create_cond_insert_point): Properly add new basic-blocks to
4193 loops, schedule loop fixup.
4194 * cfgloop.c (verify_loop_structure): Check that looks are not
4196 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
4198 (expand_omp_for_generic): Likewise.
4199 (expand_omp_sections): Likewise.
4200 (expand_omp_atomic_pipeline): Schedule loops for fixup.
4201 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
4202 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
4203 is initialized, not when loops are present.
4204 * tree-parloops.c (parallelize_loops): Remove checking here.
4205 * passes.c (init_optimization_passes): Schedule a copy-propagation
4206 pass before complete unrolling of inner loops.
4208 2013-04-26 Jakub Jelinek <jakub@redhat.com>
4210 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
4211 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
4212 (colorize_init): Add argument to _WIN32 version.
4213 * toplev.c: Include diagnostic-color.h.
4214 (process_options): Default to -fdiagnostics-color=auto if
4215 GCC_COLORS env var is in the environment.
4216 * common.opt (fdiagnostics-color=): Add Var and Init.
4217 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
4218 env var is in the environment, the default is auto rather than never.
4220 * diagnostic.h (file_name_as_prefix): Add context argument.
4221 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
4222 the string as locus.
4223 * langhooks.c (lhd_print_error_function): Adjust caller.
4225 2013-04-25 Lawrence Crowl <crowl@google.com>
4227 * var-tracking.c (shared_hash_def::htab):
4228 Change type to hash_table. Update dependent calls and types.
4230 2013-04-25 Lawrence Crowl <crowl@google.com>
4232 * Makefile.in: Update as needed below.
4234 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
4235 Move declaration to after the type's method definitons.
4237 * attribs.c (htab_t scoped_attributes::attribute_hash):
4238 Change type to hash_table. Update dependent calls and types.
4240 * bitmap.c (htab_t bitmap_desc_hash):
4241 Change type to hash_table. Update dependent calls and types.
4243 * cselib.c (htab_t cselib_hash_table):
4244 Change type to hash_table. Update dependent calls and types.
4246 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
4247 (hash_string_slot_node): Move implementation into lto-streamer.h
4248 struct string_slot_hasher.
4249 (eq_string_slot_node): Likewise.
4251 * data-streamer-out.c: Update output_block::string_hash_table
4252 dependent calls and types.
4254 * dwarf2cfi.c (htab_t trace_index):
4255 Change type to hash_table. Update dependent calls and types.
4257 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
4258 Change type to hash_table. Update dependent calls and types.
4259 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
4260 (htab_t optimize_external_refs::map): Likewise.
4261 (htab_t output_comp_unit::extern_map): Likewise.
4262 (htab_t output_comdat_type_unit::extern_map): Likewise.
4263 (htab_t output_macinfo::macinfo_htab): Likewise.
4264 (htab_t optimize_location_lists::htab): Likewise.
4265 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
4267 * except.c (htab_t ehspec_hash_type):
4268 Change type to hash_table. Update dependent calls and types.
4269 (assign_filter_values::ttypes): Likewise.
4270 (assign_filter_values::ehspec): Likewise.
4271 (sjlj_assign_call_site_values::ar_hash): Likewise.
4272 (convert_to_eh_region_ranges::ar_hash): Likewise.
4274 * gcse.c (htab_t pre_ldst_table):
4275 Change type to hash_table. Update dependent calls and types.
4277 * ggc-common.c (htab_t saving_htab):
4278 Change type to hash_table. Update dependent calls and types.
4279 (htab_t loc_hash): Likewise.
4280 (htab_t ptr_hash): Likewise.
4281 (call_count): Rename ggc_call_count.
4282 (call_alloc): Rename ggc_call_alloc.
4283 (loc_descriptor): Rename make_loc_descriptor.
4284 (add_statistics): Rename ggc_add_statistics.
4286 * ggc-common.c (saving_htab):
4287 Change type to hash_table. Update dependent calls and types.
4289 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
4290 (push_gimplify_context): Likewise.
4291 (pop_gimplify_context): Likewise.
4292 (struct gimple_temp_hash_elt): Added.
4293 (struct gimplify_hasher): Likewise.
4294 (struct gimplify_ctx.temp_htab):
4295 Change type to hash_table. Update dependent calls and types.
4297 * gimple-fold.c: Include gimplify-ctx.h.
4299 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
4300 Change type to hash_table. Update dependent calls and types.
4301 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
4302 avoid potential global name collision.
4304 * gimplify.c: Include gimplify-ctx.h.
4305 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
4306 (htab_t gimplify_ctx::temp_htab):
4307 Update dependent calls and types for new type hash_table.
4308 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
4309 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
4311 * gimplify-ctx.h: New.
4312 (struct gimple_temp_hash_elt): Move from gimplify.c.
4313 (class gimplify_hasher): New.
4314 (struct gimplify_ctx): Move from gimple.h.
4315 (htab_t gimplify_ctx::temp_htab):
4316 Change type to hash_table. Update dependent calls and types.
4318 * graphite-clast-to-gimple.c: Include graphite-htab.h.
4319 (htab_t ivs_params::newivs_index):
4320 Change type to hash_table. Update dependent calls and types.
4321 (htab_t ivs_params::params_index): Likewise.
4322 (htab_t print_generated_program::params_index): Likewise.
4323 (htab_t gloog::newivs_index): Likewise.
4324 (htab_t gloog::params_index): Likewise.
4326 * graphite.c: Include graphite-htab.h.
4327 4htab_t graphite_transform_loops::bb_pbb_mapping):
4328 Change type to hash_table. Update dependent calls and types.
4330 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
4331 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
4332 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
4334 * graphite-dependences.c: Include graphite-htab.h.
4335 (loop_is_parallel_p): Change hash table type of parameter.
4337 * graphite-htab.h: New.
4338 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
4339 (extern find_pbb_via_hash): Move from graphite-poly.h.
4340 (extern loop_is_parallel_p): Move from graphite-poly.h.
4341 (extern get_loop_body_pbbs): Move from graphite-poly.h.
4343 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
4344 (extern loop_is_parallel_p): Move to graphite-htab.h.
4345 (extern get_loop_body_pbbs): Move to graphite-htab.h.
4347 * haifa-sched.c (htab_t delay_htab):
4348 Change type to hash_table. Update dependent calls and types.
4349 (htab_t delay_htab_i2): Likewise.
4351 * ira-color.c (htab_t allocno_hard_regs_htab):
4352 Change type to hash_table. Update dependent calls and types.
4354 * ira-costs.c (htab_t cost_classes_htab):
4355 Change type to hash_table. Update dependent calls and types.
4357 * loop-invariant.c (htab_t merge_identical_invariants::eq):
4358 Change type to hash_table. Update dependent calls and types.
4360 * loop-iv.c (htab_t bivs):
4361 Change type to hash_table. Update dependent calls and types.
4363 * loop-unroll.c (htab_t opt_info::insns_to_split):
4364 Change type to hash_table. Update dependent calls and types.
4365 (htab_t opt_info::insns_with_var_to_expand): Likewise.
4367 * lto-streamer.h (struct string_slot): Move from data-streamer.h
4368 (struct string_slot_hasher): New.
4369 (htab_t output_block::string_hash_table):
4370 Change type to hash_table. Update dependent calls and types.
4372 * lto-streamer-in.c (freeing_string_slot_hasher): New.
4373 (htab_t file_name_hash_table):
4374 Change type to hash_table. Update dependent calls and types.
4376 * lto-streamer-out.c: Update output_block::string_hash_table dependent
4379 * lto-streamer.c (htab_t tree_htab):
4380 Change type to hash_table. Update dependent calls and types.
4382 * omp-low.c: Include gimplify-ctx.h.
4384 * passes.c (htab_t name_to_pass_map):
4385 Change type to hash_table. Update dependent calls and types.
4386 (pass_traverse): Rename to passes_pass_traverse.
4388 * plugin.c (htab_t event_tab):
4389 Change type to hash_table. Update dependent calls and types.
4391 * postreload-gcse.c (htab_t expr_table):
4392 Change type to hash_table. Update dependent calls and types.
4393 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
4395 * sese.c (debug_rename_map_1): Make extern.
4396 (htab_t copy_bb_and_scalar_dependences::rename_map):
4397 Change type to hash_table. Update dependent calls and types.
4399 * sese.h (extern debug_rename_map): Move to .c file.
4401 * store-motion.c (htab_t store_motion_mems_table):
4402 Change type to hash_table. Update dependent calls and types.
4404 * trans-mem.c (htab_t tm_new_mem_hash):
4405 Change type to hash_table. Update dependent calls and types.
4407 * tree-browser.c (htab_t TB_up_ht):
4408 Change type to hash_table. Update dependent calls and types.
4410 * tree-cfg.c (htab_t discriminator_per_locus):
4411 Change type to hash_table. Update dependent calls and types.
4413 * tree-complex.c: Include tree-hasher.h
4414 (htab_t complex_variable_components):
4415 Change type to hash_table. Update dependent calls and types.
4417 * tree-eh.c (htab_t finally_tree):
4418 Change type to hash_table. Update dependent calls and types.
4420 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
4421 struct int_tree_hasher.
4422 (extern int_tree_map_eq): Likewise.
4423 (uid_decl_map_hash): Removed.
4424 (extern decl_tree_map_eq): Likewise.
4426 * tree-hasher.h: New.
4427 (struct int_tree_hasher): New.
4428 (typedef int_tree_htab_type): New.
4430 * tree-inline.c: Include gimplify-ctx.h.
4432 * tree-mudflap.c: Include gimplify-ctx.h.
4434 * tree-parloops.c: Include tree-hasher.h.
4435 (htab_t eliminate_local_variables_stmt::decl_address):
4436 Change type to hash_table. Update dependent calls and types.
4437 (htab_t separate_decls_in_region::decl_copies): Likewise.
4439 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
4440 Change type to hash_table. Update dependent calls and types.
4442 * tree-sra.c (candidates):
4443 Change type to hash_table. Update dependent calls and types.
4445 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
4447 (int_tree_map_hash): Likewise.
4449 * tree-ssa-dom.c (htab_t avail_exprs):
4450 Change type to hash_table. Update dependent calls and types.
4452 * tree-ssa-live.c (var_map_base_init::tree_to_index):
4453 Change type to hash_table. Update dependent calls and types.
4455 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
4456 Change type to hash_table. Update dependent calls and types.
4458 * tree-ssa-phiopt.c (seen_ssa_names):
4459 Change type to hash_table. Update dependent calls and types.
4461 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
4462 Change type to hash_table. Update dependent calls and types.
4464 * tree-ssa-uncprop.c (equiv):
4465 Change type to hash_table. Update dependent calls and types.
4467 2013-04-25 Jakub Jelinek <jakub@redhat.com>
4469 PR rtl-optimization/57003
4470 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
4471 call note_stores with kill_clobbered_value callback again after
4472 killing regs_invalidated_by_call.
4474 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
4476 * config/aarch64/aarch64-simd.md
4477 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
4478 (aarch64_simd_bsl<mode>): Likewise.
4479 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
4481 2013-04-25 Marek Polacek <polacek@redhat.com>
4483 PR tree-optimization/57066
4484 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
4486 2013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
4488 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
4490 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
4492 * config/aarch64/aarch64-builtins.c
4493 (aarch64_fold_builtin): New.
4494 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
4495 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
4496 * config/aarch64/aarch64-simd-builtins.def (abs): New.
4497 * config/aarch64/arm_neon.h
4498 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
4500 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
4501 Tejas Belagod <tejas.belagod@arm.com>
4503 * config/aarch64/aarch64-builtins.c
4504 (aarch64_gimple_fold_builtin): New.
4505 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
4506 * config/aarch64/aarch64-simd-builtins.def (addv): New.
4507 * config/aarch64/aarch64-simd.md (addpv4sf): New.
4509 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
4511 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4513 * config/aarch64/aarch64.md
4514 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
4516 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4518 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
4519 (*ngcsi_uxtw): New pattern.
4521 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4522 Julian Brown <julian@codesourcery.com>
4524 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
4525 (TB_DREG): Add T_V4HF.
4526 (v4hf_UP): New macro.
4527 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
4528 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
4529 Handle initialisation of V4HF. Adjust initialisation of reinterpret
4531 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
4532 (arm_vector_mode_supported_p): Handle V4HF.
4533 (arm_mangle_map): Handle V4HFmode.
4534 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
4535 * config/arm/arm_neon_builtins.def: Add entries for
4536 vcvtv4hfv4sf, vcvtv4sfv4hf.
4537 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
4538 (neon_vcvtv4hfv4sf): Likewise.
4539 * config/arm/neon-gen.ml: Handle half-precision floating point
4541 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
4542 * config/arm/arm_neon.h: Regenerate.
4543 * config/arm/neon.ml (type elts): Add F16.
4544 (type vectype): Add T_float16x4, T_floatHF.
4545 (type vecmode): Add V4HF.
4546 (type features): Add Requires_FP_bit feature.
4547 (elt_width): Handle F16.
4548 (elt_class): Likewise.
4549 (elt_of_class_width): Likewise.
4550 (mode_of_elt): Refactor.
4551 (type_for_elt): Handle F16, fix error messages.
4552 (vectype_size): Handle T_float16x4.
4553 (vcvt_sh): New function.
4554 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
4555 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
4556 (string_of_mode): Handle V4HF.
4557 * doc/arm-neon-intrinsics.texi: Regenerate.
4559 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
4561 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
4562 format specifier in 'X' case.
4564 2013-04-25 Alan Modra <amodra@gmail.com>
4567 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
4568 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
4569 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
4570 Repeat for many other rotate/shift and mask patterns using subregs.
4571 Name lshiftrt insns.
4572 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
4573 on WORDS_BIG_ENDIAN.
4575 2013-04-25 Alan Modra <amodra@gmail.com>
4577 * config.gcc: Support little-endian powerpc-linux targets.
4578 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
4579 (LINK_OS_LINUX_SPEC): Define.
4580 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
4581 Preserve MASK_LITTLE_ENDIAN.
4582 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
4583 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
4584 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
4585 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
4586 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
4587 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
4588 Correct fp word order for little-endian. Don't shift toc entries
4589 smaller than a word for little-endian.
4590 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
4591 (bswapdi2 splits): Correct low-part subreg for little-endian.
4592 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
4593 low/high where such is correct only for be.
4594 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
4595 little-endian for -mcall-aixdesc.
4597 2013-04-25 Alan Modra <amodra@gmail.com>
4599 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
4600 replace_equiv_address_nv.
4602 2013-04-25 Alan Modra <amodra@gmail.com>
4604 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
4606 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4609 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4610 * rtl.h (struct rtx_def): ...
4612 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4614 PR rtl-optimizations/57046
4615 * lra-constraints (split_reg): Set up lra_risky_transformations_p
4616 for multi-reg splits.
4618 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
4620 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
4622 2013-04-24 Sterling Augustine <saugustine@google.com>
4624 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
4625 (comp_dir_string, debug_str_dwo_section): New.
4626 (DEBUG_STR_DWO_SECTION): Rename to ...
4627 (DEBUG_DWO_STR_SECTION): ... this.
4628 (DEBUG_NORM_STR_SECTION): Delete.
4629 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
4630 (DEBUG_STR_DWO_SECTION_FLAGS): New.
4631 (find_AT_string): Move most logic to ...
4632 (find_AT_string_in_table): ... here. New.
4633 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
4634 add_skeleton_AT_string. Delete logic.
4635 (output_skeleton_debug_sections): Remove call to
4636 add_top_level_skeleton_die_attrs.
4637 (add_comp_dir_attribute): Move logic to comp_dir_string.
4638 (dwarf2out_init): Initialize debug_str_dwo_section.
4639 (output_indirect_string): Call find_string_form.
4640 (output_indirect_strings): Rewrite.
4641 (prune_unused_types): Empty skeleton_debug_str_hash.
4642 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
4643 (dwarf2out_finish): Call output_indirect_strings.
4645 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4647 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
4649 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4651 * rtl.h (struct rtx_def): Add comment for field jump.
4652 (LRA_SUBREG_P): New macro.
4653 * recog.c (register_operand): Check LRA_SUBREG_P.
4654 * lra.c (lra): Add note at the end of RTL code. Align non-empty
4656 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
4657 (lra_final_code_change): Skip subreg change for operators.
4658 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
4659 if there are no operand changes.
4660 * lra-constraints.c (curr_insn_set): New.
4661 (match_reload): Set LRA_SUBREG_P.
4662 (emit_spill_move): Ditto.
4663 (check_and_process_move): Use curr_insn_set. Process only single
4664 set insns. Don't initialize sec_mem_p and change_p.
4665 (simplify_operand_subreg): Use LRA_SUBREG_P.
4666 (reg_in_class_p): New function.
4667 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
4668 of #ifdef. Add code to remove cycling.
4669 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
4670 non-null disp. Reload inner instead of disp when base and index
4671 are null. Try to put lo_sum into register.
4672 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
4673 (check_and_process_move): Move code for move cost check to
4674 simple_move_p. Remove equiv_substitution.
4675 (simple_move_p): New function.
4676 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
4677 curr_insn_set. Call check_and_process_move only for single set
4678 insns. Use the new function. Move call of check_and_process_move
4679 after operand equiv substitution and address process.
4681 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
4683 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
4684 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
4685 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
4687 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4689 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
4691 2013-04-24 Marek Polacek <polacek@redhat.com>
4693 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
4694 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
4695 (select_loops_exit_conditions): Likewise.
4696 (number_of_iterations_for_all_loops): Likewise.
4697 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
4698 (scev_analysis): Likewise.
4700 2013-04-02 Catherine Moore <clm@codesourcery.com>
4701 Chao-ying Fu <fu@mips.com>
4703 * config/mips/micromips.md (jraddiusp): New pattern.
4704 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
4705 instruction if possible.
4707 2013-04-24 Alan Modra <amodra@gmail.com>
4709 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
4711 2013-04-24 Julian Brown <julian@codesourcery.com>
4712 Chung-Lin Tang <cltang@codesourcery.com>
4714 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
4715 dependency behavior in enumeration type DIE generation. Add TODO note
4716 to comments about future DW_FORM_sdata/udata re-work of related code.
4718 2013-04-23 Lawrence Crowl <crowl@google.com>
4720 * Makefile.in: Update as needed below.
4722 * hash-table.h (class hash_table):
4723 Correct many methods with parameter types compare_type to the correct
4724 value_type. (Correct code was unlikely to notice the change.)
4725 (hash_table::elements_with_deleted) New.
4726 (class hashtable::iterator): New.
4727 (hashtable::begin()): New.
4728 (hashtable::end()): New.
4729 (FOR_EACH_HASH_TABLE_ELEMENT): New.
4731 * statistics.c (statistics_hashes):
4732 Change type to hash_table. Update dependent calls and types.
4734 * tree-into-ssa.c (var_infos):
4735 Change type to hash_table. Update dependent calls and types.
4737 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
4738 Change type to hash_table. Update dependent calls and types.
4740 * tree-ssa-loop-im.c (struct mem_ref.refs):
4741 Change type to hash_table. Update dependent calls and types.
4743 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
4744 Change type to hash_table. Update dependent calls and types.
4746 * tree-ssa-sccvn.c (vn_tables_s::nary):
4747 Change type to hash_table. Update dependent calls and types.
4748 (vn_tables_s::phis): Likewise.
4749 (vn_tables_s::references): Likewise.
4751 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
4752 (vn_reference_eq): Update parameter and return types.
4754 * tree-ssa-structalias.c (pointer_equiv_class_table):
4755 Change type to hash_table. Update dependent calls and types.
4756 (location_equiv_class_table): Likewise.
4758 * tree-vect-data-refs.c: Consequential changes for making
4759 peeling a hash_table.
4761 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
4762 (destroy_loop_vec_info): Dependent hash_table update.
4764 * tree-vectorizer.h (peeling_htab):
4765 Change type to hash_table. Update dependent calls and types.
4767 2013-04-23 Shiva Chen <shiva0217@gmail.com>
4769 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
4770 to check the register content is equal or not.
4771 * lra-constraints.c (match_reload): Use lra_assign_reg_val
4772 to assign register content record.
4773 * lra-eliminations.c (update_reg_eliminate): Use
4774 lra_update_reg_val_offset to update register content offset.
4775 * lra-int.h (struct lra_reg): Add offset member.
4776 (lra_reg_val_equal_p): New static inline function.
4777 (lra_update_reg_val_offset): New static inline function.
4778 (lra_assign_reg_val): New static inline function.
4779 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
4780 to assign register content record.
4781 (initialize_lra_reg_info_element): Initial offset to zero.
4783 2013-04-23 Catherine Moore <clm@codesourcery.com>
4785 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
4786 operands. Record compression.
4788 2013-04-23 Xinliang David Li <davidxl@google.com>
4790 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
4792 2013-04-23 Richard Biener <rguenther@suse.de>
4795 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
4796 parameter, only add abnormal goto edges from the copied body
4797 if the call could perform abnormal gotos.
4798 (copy_cfg_body): Adjust.
4800 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
4802 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
4804 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
4806 * coretypes.h (gimple_stmt_iterator): Add struct to make
4809 2013-04-23 Richard Biener <rguenther@suse.de>
4811 PR tree-optimization/57026
4812 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
4813 from SSA names occuring in abnormal PHI nodes.
4815 2013-04-22 Andi Kleen <ak@linux.intel.com>
4817 * lto/lto.c (print_lto_report_1): Fix LTO report names.
4819 2013-04-22 Andi Kleen <ak@linux.intel.com>
4821 * lto/lto.c (print_lto_report_1): Declare early.
4822 (read_cgraph_and_symbols): Call print_lto_report_1 early.
4824 2013-04-22 Andi Kleen <ak@linux.intel.com>
4826 * common.opt (-flto-report-wpa): Add.
4827 * doc/invoke.texi (-flto-report-wpa): Add.
4828 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
4831 2013-04-22 Xinliang David Li <davidxl@google.com>
4833 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
4834 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
4835 * Makefile.in: New dependency
4837 David Daney <ddaney.cavm@gmail.com>
4839 * configure.ac (gcc_cv_as_micromips_support): Use the
4840 --fatal-warnings option.
4841 * configure: Regenerate.
4843 2013-04-22 Marek Polacek <polacek@redhat.com>
4846 * tsan.c (instrument_expr): Don't instrument expression
4847 in case its size is zero.
4849 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
4853 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
4855 * config/alpha/alpha.c (TARGET_LRA_P): New define.
4857 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4859 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
4860 (gimple_stmt_iterator): New typedef.
4861 * gimple.h (gimple_stmt_iterator): Rename to...
4862 (gimple_stmt_iterator_d): ... This.
4863 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
4864 trees be valid for GIMPLE and GENERIC.
4865 (TARGET_GIMPLE_FOLD_BUILTIN): New.
4866 * gimple-fold.c (gimple_fold_call): Call target hook
4867 gimple_fold_builtin.
4868 * hooks.c (hook_bool_gsiptr_false): New.
4869 * hooks.h (hook_bool_gsiptr_false): New.
4870 * target.def (fold_stmt): New.
4871 * doc/tm.texi: Regenerate.
4873 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
4876 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
4877 a set sp if no stack realignment.
4879 2013-04-22 Nick Clifton <nickc@redhat.com>
4881 * config.gcc (tilegx-linux): Extend extra_objs rather than
4883 (tilepro-linux): Likewise.
4885 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4887 * config/aarch64/aarch64-builtins.c
4889 (CF0, CF1, CF2, CF3, CF4, CF10): New.
4890 (VAR<1-12>): Add MAP parameter.
4891 (BUILTIN_*): Likewise.
4892 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
4893 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
4894 (aarch64_ushl_n<mode>): Likewise.
4895 (aarch64_sshr_n<mode>): Likewise.
4896 (aarch64_ushr_n<mode>): Likewise.
4897 (aarch64_<maxmin><mode>): Likewise.
4898 (aarch64_sqrt<mode>): Likewise.
4899 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
4900 (vshr<q>_n_*): Likewise.
4902 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4904 * config/aarch64/aarch64-builtins.c
4905 (aarch64_simd_builtin_type_mode): Handle SF types.
4907 (BUILTIN_GPF): Define.
4908 (aarch64_init_simd_builtins): Handle SF types.
4909 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
4912 * config/aarch64/aarch64-simd.md
4913 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
4914 (aarch64_frecpe<mode>): New.
4915 (aarch64_frecps<mode>): Likewise.
4916 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
4917 (v8type): Add frecp<esx>.
4918 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
4919 (aarch64_frecps<mode>): Likewise.
4920 * config/aarch64/iterators.md (FRECP): New.
4921 (frecp_suffix): Likewise.
4922 * config/aarch64/arm_neon.h
4923 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
4925 2013-04-22 Christian Bruel <christian.bruel@st.com>
4928 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
4929 (REG_CLASS_NAMES): Idem.
4930 (REG_CLASS_CONTENTS): Idem.
4931 (REGCLASS_HAS_FP_REG): Idem.
4932 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
4933 (sh_conditional_register_usage): Idem.
4935 2013-04-21 Jeff Law <law@redhat.com>
4937 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
4938 (ssa_forward_propagate_and_combine): Use it.
4940 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
4942 * lra.c: Update the flow chart diagram.
4944 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
4946 PR rtl-optimization/56847
4947 * lra-constraints.c (process_alt_operands): Discourage alternative
4948 with non-matche doffsettable memory constraint fro memory with
4951 2013-04-19 Richard Biener <rguenther@suse.de>
4953 PR tree-optimization/56982
4954 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
4956 * gimplify.c (gimplify_call_expr): Notice special calls.
4957 (gimplify_modify_expr): Likewise.
4958 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
4959 abnormal control flow receivers.
4960 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
4961 in the same way as cfun->has_nonlocal_labels.
4962 (gimple_purge_dead_abnormal_call_edges): Likewise.
4963 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
4964 receivers start a basic-block.
4966 2013-04-19 Richard Biener <rguenther@suse.de>
4968 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
4970 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
4971 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
4972 (SLP_TREE_LOAD_PERMUTATION): Add.
4973 (vect_transform_slp_perm_load): Adjust prototype.
4974 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
4975 (vect_free_slp_instance): Likewise.
4976 (vect_create_new_slp_node): Likewise.
4977 (vect_supported_slp_permutation_p): Remove.
4978 (vect_slp_rearrange_stmts): Adjust.
4979 (vect_supported_load_permutation_p): Likewise. Inline
4980 vect_supported_slp_permutation_p here.
4981 (vect_analyze_slp_instance): Compute load permutations per
4982 slp node instead of per instance.
4983 (vect_get_slp_defs): Adjust.
4984 (vect_transform_slp_perm_load): Likewise.
4985 (vect_schedule_slp_instance): Remove redundant code.
4986 (vect_schedule_slp): Remove hack for PR56270, add it ...
4987 * tree-vect-stmts.c (vectorizable_load): ... here, do not
4988 CSE loads for SLP. Adjust.
4990 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
4992 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
4993 spelling in two comments.
4995 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
4998 * config/arm/arm.c (load_multiple_sequence): Require SP
4999 as base register for loads if SP is in the register list.
5001 2013-04-19 Martin Jambor <mjambor@suse.cz>
5003 PR tree-optimization/56718
5004 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
5005 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
5006 and made public. Adjusted all callers.
5007 (ipa_intraprocedural_devirtualization): New function.
5008 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
5009 (ipa_intraprocedural_devirtualization): Likewise.
5010 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
5012 2013-04-19 Richard Biener <rguenther@suse.de>
5014 PR tree-optimization/57000
5015 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
5017 2013-04-19 Terry Guo <terry.guo@arm.com>
5019 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
5021 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
5022 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
5023 (cortex_m4_fmacs): Use new reservations.
5024 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
5026 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
5028 PR rtl-optimization/56999
5029 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
5031 (lra_coalesce): Remove split_origin_bitmap and related code.
5032 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
5033 ranges if necessary.
5035 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
5037 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
5039 (ix86_expand_call): Remove clobbered_registers array and use
5040 x86_64_ms_sysv_extra_clobbered_registers instead.
5041 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
5043 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
5045 * config/i386/i386.md (*call_rex64_ms_sysv): Use
5046 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
5047 (*call_value_rex64_ms_sysv): Ditto.
5049 2013-04-18 Cary Coutant <ccoutant@google.com>
5051 * dwarf2out.c (output_pubnames): Check die_perennial_p of
5052 parent instead of die_mark.
5054 2013-04-18 Diego Novillo <dnovillo@google.com>
5056 * gimple.c (create_gimple_tmp): New.
5057 (get_expr_type): New.
5058 (build_assign): New.
5059 (build_type_cast): New.
5060 * gimple.h (enum ssa_mode): Define.
5061 (gimple_seq_set_location): New.
5062 * asan.c (build_check_stmt): Change some gimple_build_* calls
5063 to use build_assign and build_type_cast.
5065 2013-04-18 Richard Biener <rguenther@suse.de>
5067 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
5068 handle negative step. Remove redundant checks.
5069 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
5070 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
5071 for negative step and grouped loads fail to vectorize.
5073 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
5075 * emit-rtl.c (reset_insn_used_flags): New function.
5076 (reset_all_used_flags): Use it.
5077 (verify_insn_sharing): New function.
5078 (verify_rtl_sharing): Fix verification for SEQUENCEs.
5080 2013-04-18 Jakub Jelinek <jakub@redhat.com>
5082 PR tree-optimization/56984
5083 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
5084 and (x >> M) >= N don't register any assertion if N << M is the
5087 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
5089 * lower-subreg.c (resolve_simple_move): If called self-recursive,
5090 do not delete_insn insns that have not yet been emitted, only
5091 unlink them with remove_insn.
5092 * df-scan.c (df_insn_delete): Revert r197492.
5094 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
5096 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
5097 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
5099 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
5101 * config/arm/arm.md (movsicc_insn): Convert define_insn into
5102 define_insn_and_split.
5103 (and_scc,ior_scc,negscc): Likewise.
5104 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
5106 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
5108 * config/arm/arm.c (use_return_insn): Return 0 for targets that
5109 can benefit from using a sequence of LDRD instructions in epilogue
5110 instead of a single LDM instruction.
5112 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
5115 * doc/extend.texi: Fix typo.
5117 2013-04-17 Richard Biener <rguenther@suse.de>
5119 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
5120 (vect_build_slp_tree): ... here.
5121 (vect_build_slp_tree_1): Compute which stmts of the SLP group
5122 match. Remove special-casing of mismatched complex loads.
5123 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
5124 re-try the match with swapped commutative operands.
5125 (vect_supported_load_permutation_p): Remove special-casing of
5126 mismatched complex loads.
5127 (vect_analyze_slp_instance): Adjust.
5129 2013-04-17 Richard Biener <rguenther@suse.de>
5131 PR rtl-optimization/56921
5132 * cfgloop.h (struct loop): Add simple_loop_desc member.
5133 (struct niter_desc): Mark with GTY(()).
5134 (simple_loop_desc): Do not use aux field but simple_loop_desc.
5135 * loop-iv.c (get_simple_loop_desc): Likewise.
5136 (free_simple_loop_desc): Likewise.
5139 2013-04-16 Richard Biener <rguenther@suse.de>
5141 PR rtl-optimization/56921
5142 * loop-init.c (pass_rtl_move_loop_invariants): Add
5143 TODO_do_not_ggc_collect to todo_flags_finish.
5144 (pass_rtl_unswitch): Same.
5145 (pass_rtl_unroll_and_peel_loops): Same.
5146 (pass_rtl_doloop): Same.
5148 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
5150 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
5151 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
5152 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
5154 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
5155 * tree-streamer.c (record_common_node): Adjust reference in comment.
5157 2013-04-17 Terry Guo <terry.guo@arm.com>
5159 * config/arm/cortex-m4.md: Add a new bypass.
5161 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5163 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
5165 (*subs_<optab><mode>_multp2): New pattern.
5166 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
5167 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
5169 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5171 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
5172 (*subs_mul_imm_<mode>): New pattern.
5174 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
5177 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
5178 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
5179 (vsx_movti_32bit): Change j->wa to O->wa.
5181 2013-04-16 Richard Biener <rguenther@suse.de>
5183 PR rtl-optimization/56921
5184 * loop-init.c (pass_rtl_move_loop_invariants): Add
5185 TODO_do_not_ggc_collect to todo_flags_finish.
5186 (pass_rtl_unswitch): Same.
5187 (pass_rtl_unroll_and_peel_loops): Same.
5188 (pass_rtl_doloop): Same.
5190 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
5192 * config/arm/arm.c (emit_multi_reg_push): New declaration
5193 for an existing function.
5194 (arm_emit_strd_push): New function.
5195 (arm_expand_prologue): Used here.
5196 (arm_emit_ldrd_pop): New function.
5197 (arm_expand_epilogue): Used here.
5198 (arm_get_frame_offsets): Update condition.
5199 (arm_emit_multi_reg_pop): Add a special case for load of a single
5200 register with writeback.
5202 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
5204 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
5207 2013-04-16 Richard Biener <rguenther@suse.de>
5209 PR tree-optimization/56756
5210 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
5211 (first_mem_ref_loc): New.
5212 (execute_sm): Place the load temporarily before a previous
5213 access instead of in the latch edge to ensure its SSA dependencies
5214 are defined at points dominating the load.
5216 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
5218 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
5219 correct fix by moving header and footer insn to the footer of
5220 the merged basic block. Clear BB_END of the merged-away block.
5223 * emit-rtl.c (make_note_raw): New function.
5224 (link_insn_into_chain): New static inline function.
5226 (add_insn_before, add_insn_after): Factor insn chain linking code...
5227 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
5228 using link_insn_into_chain.
5229 (note_outside_basic_block_p): New helper function for emit_note_after
5230 and emit_note_before.
5231 (emit_note_after): Use nobb variant of add_insn_after if the note
5232 should not be contained in a basic block.
5233 (emit_note_before): Use nobb variant of add_insn_before if the note
5234 should not be contained in a basic block.
5235 (emit_note_copy): Use make_note_raw.
5236 (emit_note): Likewise.
5237 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
5238 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
5239 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
5240 the moved barrier the tail of the basic block it follows.
5241 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
5243 2013-04-15 Jakub Jelinek <jakub@redhat.com>
5245 PR tree-optimization/56962
5246 * gimple-ssa-strength-reduction.c (record_increment): Only set
5247 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
5248 either rhs1 or rhs2 is equal to c->base_expr.
5250 2013-04-15 Richard Biener <rguenther@suse.de>
5252 PR tree-optimization/56933
5253 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
5255 (GROUP_READ_WRITE_DEPENDENCE): Remove.
5256 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
5257 * tree-vect-data-refs.c (vect_analyze_group_access): Move
5258 dependence check ...
5259 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
5261 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
5262 GROUP_READ_WRITE_DEPENDENCE.
5264 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5266 * emit-rtl.c (reset_all_used_flags): New function.
5267 (verify_rtl_sharing): Call reset_all_used_flags before and after
5268 performing the checks.
5270 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5272 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
5273 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
5274 * config/arm/constraints.md (De): New constraint.
5275 * config/arm/neon.md (anddi3_neon): Delete.
5276 (neon_vand<mode>): Expand to standard anddi3 pattern.
5277 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
5278 Move earlier in the file.
5279 (neon_inv_logic_op2): Likewise.
5280 (arm_anddi_operand_neon): New predicate.
5282 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5284 * configure.ac (gcc_cv_ld_as_needed): Set
5285 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
5286 Use -z ignore, -z record on *-*-solaris2*.
5287 (HAVE_LD_AS_NEEDED): Update comment.
5288 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
5289 * configure: Regenerate.
5290 * config.in: Regenerate.
5291 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
5292 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
5293 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
5294 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
5295 equivalents. Fix markup.
5296 * doc/tm.texi: Regenerate.
5298 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
5300 * config/i386/i386.opt: New option mstack-protector-guard=.
5301 * config/i386/i386-opts.h: Add enum stack_protector_guard.
5302 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
5303 TARGET_SSP_TLS_GUARD.
5304 * config/i386/i386.c (ix86_option_override_internal): Set
5305 ix86_stack_protector_guard.
5306 * config/i386/i386.md (stack_protect_set): Enable for
5307 TARGET_SSP_TLS_GUARD only.
5308 (stack_protect_set_<mode>): Ditto.
5309 (stack_protect_test): Ditto.
5310 (stack_protect_test_<mode>): Ditto.
5311 * doc/invoke.texi (i386 Option): Document.
5313 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
5316 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
5317 (S_MODES): Set H_MODE bit.
5318 (SF_MODES): Set only S_MODE and SF_MODE bits.
5319 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
5320 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
5321 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
5322 <MODE_FLOAT>: Likewise.
5324 2013-04-15 Joey Ye <joey.ye@arm.com>
5326 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
5328 2013-04-15 Joey Ye <joey.ye@arm.com>
5330 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
5332 (thumb_far_jump_used_p): Count instruction size and set
5335 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
5337 * reorg.c (fill_simple_delay_slots): Reindent block of code.
5338 * resource.c (mark_target_live_regs): Reformat conditional block.
5340 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
5342 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
5343 notes, they are emitted only just before final.
5344 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
5346 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
5348 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
5349 * cfgrtl.c (delete_insn): Call it here instead.
5350 * lra-spills.c (lra_final_code_change): Use delete_insn.
5351 * haifa-sched.c (sched_remove_insn): Likewise.
5352 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
5353 returning to the nop pool.
5354 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
5355 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
5357 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
5359 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
5360 * doc/tm.texi: Regenerated.
5362 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
5364 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
5367 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
5369 * df-core.c (df_find_def): Compare register numbers.
5370 (df_find_use): Likewise.
5372 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
5375 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
5376 lra_in_progress for return.
5378 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
5380 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
5381 define_insn into define_insn_and_split and emit movsicc patterns.
5383 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
5385 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
5387 2013-04-12 Richard Biener <rguenther@suse.de>
5389 * tree-pass.h (TODO_do_not_ggc_collect): New.
5390 * passes.c (execute_one_ipa_transform_pass): Honor
5391 TODO_do_not_ggc_collect.
5392 (execute_one_pass): Likewise.
5395 2013-04-10 Richard Biener <rguenther@suse.de>
5397 * passes.c (init_optimization_passes): Remove reload pass.
5398 * ira.c (do_reload): Merge into ...
5400 (rest_of_handle_reload): Remove.
5401 (pass_reload): Likewise.
5402 * config/i386/i386.c (ix86_option_override): Refer to ira instead
5403 of reload for vzeroupper pass placement.
5405 2013-04-12 Jakub Jelinek <jakub@redhat.com>
5407 PR tree-optimization/56918
5408 PR tree-optimization/56920
5409 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
5410 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
5411 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
5412 use wide_mul_with_sign method.
5414 2013-04-12 Richard Biener <rguenther@suse.de>
5416 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
5417 not be considered a gimple constant.
5419 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
5421 * fold-const.c (const_binop): Handle vector shifts by a scalar.
5422 (fold_binary_loc): Call const_binop also for mixed vector-scalar
5425 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
5426 Jakub Jelinek <jakub@redhat.com>
5428 * opts.c: Include diagnostic-color.h.
5429 (common_handle_option): Handle OPT_fdiagnostics_color_.
5430 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
5431 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
5432 (diagnostic-color.o): New.
5433 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
5434 (diagnostic_color_rule): New enum.
5435 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
5436 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
5437 the location string.
5438 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
5439 either NULL, or color kind.
5440 * diagnostic-color.c: New file.
5441 * diagnostic-color.h: New file.
5442 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
5444 * doc/invoke.texi (-fdiagnostics-color): Document.
5445 * pretty-print.h (pp_show_color): Define.
5446 (struct pretty_print_info): Add show_color field.
5447 * diagnostic.c: Include diagnostic-color.h.
5448 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
5449 macros. Colorize error:, warning: etc. strings and also the location
5451 (diagnostic_show_locus): Colorize the caret line.
5452 * pretty-print.c: Include diagnostic-color.h.
5453 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
5454 inside of %< %> quotes or quoted through q format modifier.
5456 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5458 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
5460 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5462 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
5464 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
5467 2013-04-11 Marek Polacek <polacek@redhat.com>
5469 PR tree-optimization/48184
5470 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
5472 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
5474 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
5475 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
5476 (skip_simple_arithmetic): Tidy up.
5477 * tree.h (skip_simple_constant_arithmetic): Declare.
5479 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5481 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
5483 2013-04-11 Richard Biener <rguenther@suse.de>
5485 * tree-vect-loop.c (get_initial_def_for_induction): Properly
5486 generate vector constants.
5488 2013-04-11 Richard Biener <rguenther@suse.de>
5490 PR tree-optimization/56878
5491 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
5492 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
5494 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5495 Prefer to align the DR with the most invariant base address.
5497 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5499 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
5502 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
5504 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
5505 floating-point vector comparisons against 0.
5507 2013-04-11 Jakub Jelinek <jakub@redhat.com>
5509 PR tree-optimization/56899
5510 * fold-const.c (extract_muldiv_1): Apply distributive law
5511 only if TYPE_OVERFLOW_WRAPS (ctype).
5513 2013-04-11 Bin Cheng <bin.cheng@arm.com>
5516 * ira-costs.c (scan_one_insn): Check whether the source rtx of
5517 loading has side effect.
5519 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
5521 * config/sparc/sparc.c: Include tree-pass.h.
5522 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
5523 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
5524 head of file. Change return type. Split off gate function.
5525 (sparc_gate_work_around_errata): New function.
5526 (pass_work_around_errata): New pass definition.
5527 (insert_pass_work_around_errata) New pass insert definition to
5528 insert pass_work_around_errata just after delayed-branch scheduling.
5529 (sparc_option_override): Insert the pass.
5530 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
5532 2013-04-10 David S. Miller <davem@davemloft.net>
5534 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
5535 or -mcpu=hypersparc.
5537 * target.def (cstore_mode): New hook.
5538 * target.h: Include insn-codes.h
5539 * targhooks.c: Likewise.
5540 (default_cstore_mode): New function.
5541 * targhooks.h: Declare it.
5542 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
5543 * doc/tm.texi: Rebuild.
5544 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
5545 target hook, rather than inspecting the insn_data.
5546 * config/sparc/sparc.c (sparc_cstore_mode): New function.
5547 (TARGET_CSTORE_MODE): Redefine.
5548 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
5550 * config/sparc/predicates.md (cstore_result_operand): New special
5552 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
5553 Use it for operand 0.
5554 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
5555 (*snesi_special): Likewise.
5556 (*snesi_zero): Likewise.
5557 (*seqsi_zero): Likewise.
5558 (*sltu_insn): Likewise.
5559 (*sgeu_insn): Likewise.
5560 (*seqdi_special): Make operand 0 and comparison operation be of
5562 (*snedi_special): Likewise.
5563 (*snedi_special_vis3): Likewise.
5564 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
5565 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
5566 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
5567 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
5568 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
5569 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
5570 (*sltu_extend_sp64): Likewise.
5571 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
5572 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
5573 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
5574 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
5575 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
5577 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
5579 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
5580 (aarch64_start_file): Use the new function.
5582 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5583 Jason Merrill <jason@redhat.com>
5585 * common.opt: Add -gdwarf.
5586 * opts.c (common_handle_option): Handle it.
5587 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
5589 2013-04-10 Richard Biener <rguenther@suse.de>
5591 * passes.c (execute_todo): Do not call ggc_collect conditional here.
5592 (execute_one_ipa_transform_pass): But unconditionally here.
5593 (execute_one_pass): And here.
5594 (init_optimization_passes): Remove reload pass.
5595 * tree-pass.h (TODO_ggc_collect): Remove.
5596 (pass_reload): Likewise.
5597 * ira.c (do_reload): Merge into ...
5599 (rest_of_handle_reload): Remove.
5600 (pass_reload): Likewise.
5601 * config/i386/i386.c (ix86_option_override): Refer to ira instead
5602 of reload for vzeroupper pass placement.
5603 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
5604 and todo_flags_finish of all passes.
5606 2013-04-10 Richard Biener <rguenther@suse.de>
5608 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
5609 first_const_oprnd field, rename first_def_type to first_op_type.
5610 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
5611 (vect_get_and_check_slp_defs): Always use the type of the
5612 operand. Allow mixed vect_external_def, vect_constant_def types.
5613 (vect_get_constant_vectors): Handle mixed vect_external_def,
5614 vect_constant_def types.
5616 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
5618 PR tree-optimization/55524
5619 * tree-ssa-math-opts.c
5620 (convert_mult_to_fma): Don't use an fms construct
5621 when we don't have an fms operation, but fnma, and it looks
5622 likely that we'll be able to use the latter.
5624 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
5626 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
5628 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
5629 inline fail caused by overwritable functions.
5631 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
5633 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
5634 unnecessary bits in the constant power of two case.
5636 2013-04-10 Richard Biener <rguenther@suse.de>
5638 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
5639 broken code swapping operands.
5640 (vect_build_slp_tree): Do not compute load permutations here.
5641 (vect_analyze_slp_instance): Compute load permutations here,
5642 after building the SLP tree.
5644 2013-04-09 Christian Bruel <christian.bruel@st.com>
5646 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
5647 of next/prev_real_insn.
5649 2013-04-09 Jan Hubicka <jh@suse.cz>
5651 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
5652 Drop aliased parameter.
5653 (function_and_variable_visibility): Do not handle alias pairs.
5654 * cgraph.c (varpool_externally_visible_p): Update prototype.
5655 * varpool.c (varpool_add_new_variable): Update.
5657 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5659 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
5661 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
5663 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
5665 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
5667 2013-04-09 Marek Polacek <polacek@redhat.com>
5669 PR tree-optimization/48762
5670 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
5672 2013-04-09 Richard Biener <rguenther@suse.de>
5674 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
5676 (vect_build_slp_tree): Likewise.
5677 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
5678 calculating the cost of a SLP instance.
5679 (vect_analyze_slp_instance): Use it from here, after building
5682 2013-04-09 Jakub Jelinek <jakub@redhat.com>
5685 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
5686 expand_omp_for_static_chunk): Use simple_p = true in
5687 force_gimple_operand_gsi calls when assigning to addressable decls.
5689 2013-04-09 Jeff Law <law@redhat.com>
5691 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
5692 when the boolean was created by converting a wider object which
5693 had a boolean range.
5695 2013-04-09 Richard Biener <rguenther@suse.de>
5697 * tree-vectorizer.h (slp_void_p): Remove.
5698 (slp_tree): Typedef before _slp_tree declaration.
5699 (struct _slp_tree): Use a vector of slp_tree as children.
5700 (vect_get_place_in_interleaving_chain): Remove.
5701 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
5703 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
5705 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
5706 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
5707 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
5708 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
5709 Use slp_node instead of slp_void_p and adjust.
5711 2013-04-09 Richard Biener <rguenther@suse.de>
5713 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
5714 work that is not necessary.
5716 2013-04-09 Jakub Jelinek <jakub@redhat.com>
5718 PR tree-optimization/56854
5719 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
5720 forward into clobber stmts if it would change MEM_REF lhs into
5723 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
5725 * tree.c (type_hash_lookup, type_hash_add): Make static.
5726 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
5728 2013-04-09 Richard Biener <rguenther@suse.de>
5730 * tree.h (unsave_expr_now): Remove.
5731 * tree-inline.c (mark_local_for_remap_r): Remove.
5732 (unsave_expr_1): Likewise.
5733 (unsave_r): Likewise.
5734 (unsave_expr_now): Likewise.
5735 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
5736 (propagate_tree_value): Likewise.
5738 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
5740 * doc/rtl.texi (sequence): Rewrite documentation to match the
5741 current use of SEQUENCE rtl objects.
5742 * rtl.def (SEQUENCE): Likewise.
5744 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
5745 Update documentation.
5746 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
5747 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
5749 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
5751 2013-04-08 Teresa Johnson <tejohnson@google.com>
5753 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
5754 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
5756 (estimate_edge_size_and_time): Add comment to suggest using rounding
5758 (estimate_node_size_and_time): Ditto.
5759 (remap_edge_change_prob): Use helper rounding divide methods.
5760 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
5761 (gimple_mod_pow2_value_transform): Ditto.
5762 (gimple_mod_subtract_transform): Ditto.
5763 (gimple_ic_transform): Ditto.
5764 (gimple_stringops_transform): Ditto.
5765 * stmt.c (conditional_probability): Ditto.
5766 (emit_case_dispatch_table): Ditto.
5767 * lto-cgraph.c (merge_profile_summaries): Ditto.
5768 * tree-optimize.c (execute_fixup_cfg): Ditto.
5769 * cfgcleanup.c (try_forward_edges): Ditto.
5770 * cfgloopmanip.c (scale_loop_profile): Ditto.
5772 (duplicate_loop_to_header_edge): Ditto.
5773 (lv_adjust_loop_entry_edge): Ditto.
5774 * tree-vect-loop.c (vect_transform_loop): Ditto.
5775 * profile.c (compute_branch_probabilities): Ditto.
5776 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
5777 * lto-streamer-in.c (input_cfg): Ditto.
5778 * gimple-streamer-in.c (input_bb): Ditto.
5779 * ipa-cp.c (update_profiling_info): Ditto.
5780 (update_specialized_profile): Ditto.
5781 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
5782 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
5784 * sched-rgn.c (compute_dom_prob_ps): Ditto.
5785 (compute_trg_info): Ditto.
5786 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
5787 (purge_dead_edges): Ditto.
5788 * loop-unswitch.c (unswitch_loop): Ditto.
5789 * cgraphclones.c (cgraph_clone_edge): Ditto.
5790 (cgraph_clone_node): Ditto.
5791 * tree-inline.c (copy_bb): Ditto.
5792 (copy_edges_for_bb): Ditto.
5793 (initialize_cfun): Ditto.
5794 (copy_cfg_body): Ditto.
5795 (expand_call_inline): Ditto.
5797 2013-04-08 Kai Tietz <ktietz@redhat.com>
5799 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
5800 TARGET_CYGWIN64 by TARGET_64BIT.
5802 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
5804 * config/epiphany/epiphany.md (GPR_1): New constant.
5805 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
5806 * config/epiphany/epiphany.c (gen_compare_reg):
5807 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
5808 is already in place.
5809 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
5810 Don't require being called during rtl expansion; If y operlaps r0,
5812 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
5813 (epiphany_expand_epilogue): Likewise.
5815 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
5816 Don't use CC_FPmode for ORDERED / UNORDERED.
5817 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
5819 * config/epiphany/constraints.md (CnL): New constraint.
5820 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
5821 * config/epiphany/predicates.md (add_operand): Allow 1024.
5823 * config/epiphany/epiphany.md (logical_op): New code iterator.
5824 (op_mnc): New code attribute.
5825 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
5826 (mov_f+1, mov_f+2): New peephole2 patterns.
5828 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
5829 (cstoresi4): Also allow re-use of zero result when doing a NE
5830 comparison to a non-zero operand.
5831 Use (clobber (scratch)) for first insn if the gpr output is not needed.
5833 * config/epiphany/epiphany.md (<insn_opname>v2si3):
5834 Use gen_addsi3_i / gen_subsi3_i.
5836 2013-04-08 Jakub Jelinek <jakub@redhat.com>
5840 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
5841 contain anything but clobbers, at most one __builtin_stack_restore,
5842 optionally debug stmts and final resx, and if it has at least one
5843 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
5844 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
5845 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
5846 which isn't defaut definition, remove them.
5847 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
5848 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
5849 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
5850 with MEM_REF LHS with SSA_NAME address.
5852 2013-04-08 Jeff Law <law@redhat.com>
5854 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
5856 2013-04-08 Richard Biener <rguenther@suse.de>
5858 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
5860 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
5861 determined vector type.
5862 (vect_analyze_data_refs): Likewise.
5863 (vect_get_new_vect_var): Adjust.
5864 (vect_create_destination_var): Preserve SSA name versions.
5865 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
5866 not dump anything here.
5868 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
5870 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
5871 Add member lr_slot_known.
5872 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
5874 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
5875 Remove code that sets lr_slot_offset according to what a previous
5876 version of epiphany_emit_save_restore used to do.
5877 (epiphany_emit_save_restore): When doing an lr save or restore,
5878 set/verify lr_slot_known and lr_slot_offset.
5880 2013-04-08 Xinyu Qi <xyqi@marvell.com>
5883 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
5886 2013-04-08 Richard Biener <rguenther@suse.de>
5888 * alias.c (find_base_term): Fix thinko in previous change.
5890 2013-04-08 Jakub Jelinek <jakub@redhat.com>
5892 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
5893 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
5894 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
5895 if possible to compute val.
5896 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
5897 For QImode integers don't require anything about precision. Use
5898 const_with_all_bytes_same to find out if the constant doesn't have
5899 repeated bytes in it.
5901 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5903 * config/s390/s390.c (s390_expand_insv): Only accept insertions
5906 2013-04-08 Marek Polacek <polacek@redhat.com>
5908 PR rtl-optimization/48182
5909 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
5912 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5915 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
5916 nuses, make sure we have a label.
5918 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5921 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
5922 (rs6000_emit_swdiv_low_precision): Remove.
5923 (rs6000_emit_swdiv): Rewrite to handle between one and four
5924 iterations of Newton-Raphson generally; modify required number of
5925 iterations for some cases.
5926 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
5928 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
5930 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
5931 set-but-unused variable.
5933 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
5934 basic blocks of released function bodies garbage-collectable.
5936 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
5937 (struct rtl_opt_pass): Add TODO_df_finish.
5939 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
5941 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5943 * config/arm/constraints.md (q): New constraint.
5944 * config/arm/ldrdstrd.md: New file.
5945 * config/arm/arm.md (ldrdstrd.md) New include.
5946 (arm_movdi): Use "q" instead of "r" constraint
5947 for double-word memory access.
5948 (movdf_soft_insn): Likewise.
5949 * config/arm/vfp.md (movdi_vfp): Likewise.
5950 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
5951 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
5952 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
5953 (mem_ok_for_ldrd_strd): Likewise.
5954 (output_move_double): Update assertion.
5956 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5958 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
5960 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5962 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
5963 define_insn_and_split.
5964 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
5966 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5968 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
5969 define_insn_and_split.
5970 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
5971 (shiftsi3_compare): New pattern.
5973 * config/arm/unspecs.md (UNSPEC_RRX): New.
5975 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5977 * config/arm/arm.md (negdi_extendsidi): New pattern.
5978 (negdi_zero_extendsidi): Likewise.
5980 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5982 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
5983 define_insn_and_split.
5984 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
5985 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
5987 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5989 * config/arm/arm.md (arm_subdi3): Convert define_insn into
5990 define_insn_and_split.
5991 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
5992 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
5994 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5996 * config/arm/arm.md (subsi3_carryin): New pattern.
5997 (subsi3_carryin_const): Likewise.
5998 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
5999 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
6001 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
6003 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
6005 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
6007 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
6008 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
6010 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6012 * config/arm/arm.c (arm_expand_builtin): Change fcode
6013 type to unsigned int.
6015 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6017 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
6019 2013-04-04 Ian Lance Taylor <iant@google.com>
6021 * doc/standards.texi (Standards): The Go frontend supports the Go 1
6024 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
6027 * df-scan.c (df_insn_delete): Disable failing assert.
6029 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6031 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
6032 New function prototype.
6033 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
6034 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
6035 (arm_builtin_vectorized_function): New function.
6037 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6039 * config/arm/arm_neon_builtins.def: New file.
6040 * config/arm/arm.c (neon_builtin_data): Move contents to
6041 arm_neon_builtins.def.
6042 (enum arm_builtins): Include neon builtin definitions.
6043 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
6044 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
6046 2013-04-04 Marek Polacek <polacek@redhat.com>
6048 PR tree-optimization/48186
6049 * predict.c (maybe_hot_frequency_p): Return false if
6050 HOT_BB_FREQUENCY_FRACTION is 0.
6051 (cgraph_maybe_hot_edge_p): Likewise.
6053 2013-04-04 Richard Biener <rguenther@suse.de>
6055 PR tree-optimization/56826
6056 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
6059 2013-04-04 Richard Biener <rguenther@suse.de>
6061 PR tree-optimization/56213
6062 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
6063 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
6065 2013-04-04 Richard Biener <rguenther@suse.de>
6067 PR tree-optimization/56837
6068 * tree-loop-distribution.c (classify_partition): For non-zero
6069 values require that the value has the same precision as its
6070 mode to be useful as memset value.
6072 2013-04-03 Nick Clifton <nickc@redhat.com>
6074 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
6075 (fmssf4): Use fmsf.s on E3V5 architectures.
6076 (fnmasf4): Use fnmaf.s on E3V5 architectures.
6077 (fnmssf4): Use fnmsf.s on E3V5 architectures.
6079 2013-04-03 Jeff Law <law@redhat.com>
6081 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
6082 (lra-eliminations.o): Likewise.
6084 2013-04-03 Teresa Johnson <tejohnson@google.com>
6086 * gcov-io.c (compute_working_sets): Moved most of body of old
6087 compute_working_sets here from profile.c.
6088 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
6089 (gcov_working_set_t): Moved typedef here from basic-block.h
6090 (compute_working_set): Declare.
6091 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
6092 (get_working_sets): Renamed from compute_working_set,
6093 replace most of body with call to new compute_working_sets.
6094 (get_exec_counts): Replace call to compute_working_sets
6095 to get_working_sets.
6096 * profile.h (get_working_sets): Renamed from compute_working_set.
6097 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
6098 to get_working_sets.
6099 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
6100 * gcov-dump.c (dump_working_sets): New function.
6102 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
6104 * hwint.c (sext_hwi, zext_hwi): New functions.
6105 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
6106 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
6107 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
6108 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
6109 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
6110 (sext_hwi, zext_hwi): New functions.
6112 2013-04-03 Jeff Law <law@redhat.com>
6114 PR tree-optimization/56799
6115 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
6116 back test for widening conversion erroneously dropped in prior change.
6118 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6121 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
6122 instead of next_real_insn.
6124 2013-04-03 Marek Polacek <polacek@redhat.com>
6127 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
6129 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6132 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
6134 (thumb1_output_casesi): Likewise.
6135 (thumb2_output_casesi): Likewise.
6137 2013-04-03 Richard Biener <rguenther@suse.de>
6139 PR tree-optimization/56817
6140 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
6142 (tree_unroll_loops_completely_1): ... new function to manually
6143 walk the loop tree, properly defering outer loops of unrolled
6144 loops to later iterations.
6146 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
6148 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
6149 (vectorizable_load): Likewise.
6150 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
6151 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
6153 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
6155 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
6158 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6160 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
6162 2013-04-03 Bin Cheng <bin.cheng@arm.com>
6164 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
6166 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
6168 PR tree-optimization/56790
6169 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
6172 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
6174 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
6176 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
6177 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
6180 2013-04-03 Jakub Jelinek <jakub@redhat.com>
6183 * tree.h (force_folding_builtin_constant_p): New decl.
6184 * builtins.c (force_folding_builtin_constant_p): New variable.
6185 (fold_builtin_constant_p): Fold immediately also if
6186 force_folding_builtin_constant_p.
6188 2013-04-03 Richard Biener <rguenther@suse.de>
6190 PR tree-optimization/56812
6191 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
6192 DRs of the same interleaving chain are independent.
6194 2013-04-02 Jason Merrill <jason@redhat.com>
6196 * gdbinit.in (pbb): Use debug fn.
6198 2013-04-02 Lawrence Crowl <crowl@google.com>
6200 * sese.h (struct ivtype_map_elt_s): Remove unused.
6201 (extern debug_ivtype_map): Remove unused.
6202 (extern eq_ivtype_map_elts): Remove unused.
6203 * sese.c (debug_ivtype_map): Removed unused.
6204 (debug_ivtype_map_1): Removed unused.
6205 (debug_ivtype_elt): Remove unused.
6206 (eq_ivtype_map_elts): Remove unused.
6209 2013-04-02 Kai Tietz <ktietz@redhat.com>
6212 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
6213 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
6214 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
6216 (legitimize_pe_coff_symbol): Likewise.
6217 (is_imported_p): New helper-function.
6218 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
6219 for Windows x64 targets.
6220 (ix86_expand_prologue): Optimize for pe-coff targets.
6221 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
6222 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
6223 medium/large code-model.
6224 (legitimize_pic_address): Likewise.
6225 (legitimize_tls_address): Likewise.
6226 (ix86_expand_call): Likewise.
6227 (x86_output_mi_thunk): Likewise.
6228 (get_dllimport_decl): Add new beimport argument.
6229 (construct_plt_address): Don't assert for x64 pe-coff targets.
6230 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
6232 (SYMBOL_FLAG_STUBVAR): New macro.
6233 (SYMBOL_REF_STUBVAR_P): Likewise.
6234 * config/i386/winnt.c (stub_list): New structure.
6235 (stub_head): New local variable.
6236 (i386_pe_record_stub): New function.
6237 (i386_pe_file_end): Emit refptr-stubs.
6239 2013-04-02 Jakub Jelinek <jakub@redhat.com>
6241 PR rtl-optimization/56745
6242 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
6243 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
6246 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
6247 and both of them are MEM_REFs, just compare first argument for
6248 equality and attempt to deal even with differing offsets.
6251 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
6252 of gimple_clobber_p to be MEM_REF.
6253 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
6254 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
6255 after gimplification.
6256 * asan.c (get_mem_ref_of_assignment): Don't instrument
6257 gimple_clobber_p stmts.
6258 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
6259 gimple_clobber_p stmt if they have MEM_REF lhs and
6260 are dead because of another gimple_clobber_p stmt.
6261 * tree-ssa-live.c (clear_unused_block_pointer): Treat
6262 gimple_clobber_p stmts like debug stmts.
6263 (remove_unused_locals): Remove clobbers with MEM_REF lhs
6264 that refer to unused VAR_DECLs or uninitialized values.
6265 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
6266 gimple_clobber_p stmts if they refer to removed parameters.
6267 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
6270 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
6272 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
6273 using SWI48 mode attribute.
6275 2013-04-02 Wei Mi <wmi@google.com>
6277 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
6278 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
6279 *<rotate_insn><mode>3_mask in i386.md.
6281 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
6283 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
6285 2013-04-02 Richard Biener <rguenther@suse.de>
6287 PR tree-optimization/56778
6288 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
6289 Runtime alias tests are not supported for gather loads.
6290 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
6291 stmts referenced from SSA operands before updating SSA form.
6293 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
6294 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6296 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
6297 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
6298 * config/arm/cortex-a53.md: New file.
6299 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
6300 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
6301 * config/arm/arm.c (arm_issue_rate): Likewise.
6302 * config/arm/arm-tune.md: Regenerate
6303 * config/arm/arm-tables.opt: Regenerate.
6304 * config/arm/arm-cores.def: Add cortex-a53.
6306 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
6308 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
6311 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
6313 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
6314 scalar load/store operations using B/H registers.
6315 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
6317 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
6319 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
6321 * config/aarch64/aarch64.c
6322 (aarch64_simd_scalar_immediate_valid_for_move): New.
6323 * config/aarch64/aarch64-protos.h
6324 (aarch64_simd_scalar_immediate_valid_for_move): New.
6325 * config/aarch64/constraints.md (Dh, Dq): New.
6326 * config/aarch64/iterators.md (hq): New.
6328 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
6330 * reorg.c (get_branch_condition): Deal with conditional returns.
6331 (fill_simple_delay_slots): Remove dead code dealing with jumps.
6333 2013-04-01 Wei Mi <wmi@google.com>
6335 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
6336 Truncate operand 2 using %b asm operand modifier.
6337 (*<shift_insn><mode>3_mask): Ditto.
6338 (*<rotate_insn><mode>3_mask): Ditto.
6340 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
6343 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
6345 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
6347 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
6349 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
6351 2013-03-30 Lawrence Crowl <crowl@google.com>
6353 * dse.c (clear_alias_sets): Remove never set.
6354 (disqualified_clear_alias_sets): Remove never set.
6355 (clear_alias_mode_pool): Remove never set.
6356 (dse_step0): Remove condition that is never true.
6357 (canon_address): Remove condition that is never true.
6358 (dse_step7): Remove condition that is never true.
6359 (rest_of_handle_dse): Remove condition that is never true.
6360 (rest_of_handle_dse::did_global): Remove never read from above.
6361 (dse_step2_spill): Remove never called from above.
6362 (dse_step5_spill): Remove never called from above.
6364 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
6366 * doc/md.texi (Standard Names) <casesi>: Update documentation for
6367 JUMP_TABLE_DATA changes.
6368 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
6369 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
6370 (Insns) <jump_table_data>: New entry.
6371 * doc/tm.texi: Regenerate.
6373 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
6375 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
6376 for table jump at the end of a basic block using tablejump_p.
6377 * targhooks.c (default_invalid_within_doloop): Likewise.
6378 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
6379 target hook implementation that is identical to the default hook.
6380 (rs6000_invalid_within_doloop): Remove.
6382 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
6383 unused variable from tablejump_p call.
6385 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
6386 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
6387 (INSN_DELETED_P): Likewise.
6388 (emit_jump_table_data): New prototype.
6389 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
6390 after 4th as unused.
6391 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
6392 * sched-vis.c (print_insn): Likewise.
6393 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
6394 insn for compatibility with back ends that use next_active_insn to
6395 identify jump table data.
6396 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
6397 (remove_insn): Likewise.
6398 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
6400 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
6401 (emit_jump_table_data): New function.
6403 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
6404 basic block, a JUMP_TABLE_DATA never is.
6405 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
6406 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
6407 off from code handling real insns.
6408 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
6409 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
6410 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
6411 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
6412 is not a NONDEBUG_INSN_P.
6413 * ira-costs.c (scan_one_insn): Likewise.
6414 * jump.c (mark_all_labels): Likewise.
6415 (mark_jump_label_1): Likewise.
6416 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
6417 * lra.c (get_insn_freq): Expect all insns reaching here to be in
6419 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
6420 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
6421 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
6422 JUMP_TABLE_DATA_P insns.
6423 (calculate_elim_costs_all_insns): Likewise.
6424 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
6425 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
6426 (delete_output_reload): Code style fixups.
6427 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
6428 insn flags on this non-insn.
6429 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
6430 as scheduling barriers, for pre-change compatibility.
6431 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
6432 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
6434 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
6435 redundant JUMP_TABLE_DATA_P test.
6436 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
6437 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
6438 (frv_for_each_packet): Likewise.
6439 * config/i386/i386.c (min_insn_size): Likewise.
6440 (ix86_avoid_jump_mispredicts): Likewise.
6441 * config/m32r/m32r.c (m32r_is_insn): Likewise.
6442 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
6443 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
6444 (mips16_insn_length): Robustify.
6445 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
6446 (mips16_split_long_branches): Likewise.
6447 * config/pa/pa.c (pa_combine_instructions): Likewise.
6448 * config/rs6000/rs6000.c (get_next_active_insn): Treat
6449 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
6450 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
6451 as contributing to pool range lengths.
6452 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
6453 Remove redundant JUMP_TABLE_DATA_P test.
6454 (sh_loop_align): Likewise.
6455 (split_branches): Likewise.
6456 (sh_insn_length_adjustment): Likewise.
6457 * config/spu/spu.c (get_branch_target): Likewise.
6459 2013-03-29 Jan Hubicka <jh@suse.cz>
6461 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
6462 gcov streaming; stream hot bb threshold to ltrans.
6463 * predict.c (get_hot_bb_threshold): Break out from ....
6464 (maybe_hot_count_p): ... here.
6465 (set_hot_bb_threshold): New function.
6466 * lto-section-in.c (lto_section_name): Add profile.
6467 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
6468 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
6470 (histogram_entry): New structure.
6471 (histogram, histogram_pool): New global vars.
6472 (histogram_hash): New structure.
6473 (histogram_hash::hash): New method.
6474 (histogram_hash::equal): Likewise.
6475 (account_time_size): New function.
6476 (cmp_counts): New function.
6477 (dump_histogram): New function.
6478 (ipa_profile_generate_summary): New function.
6479 (ipa_profile_write_summary): New function.
6480 (ipa_profile_read_summary): New function.
6481 (ipa_profile): Decide on threshold.
6482 (pass_ipa_profile): Add ipa_profile_write_summary and
6483 ipa_profile_read_summary.
6484 * Makefile.in (ipa.o): Update dependencies.
6485 * lto-streamer.h (LTO_section_ipa_profile): New section.
6487 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
6489 * tree.h (VAR_P): New.
6491 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
6494 * doc/invoke.texi ([-fwhole-program]): Fix typo.
6496 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
6498 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
6499 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
6500 (control_flow_insn_p): Likewise.
6501 * cfgrtl.c (duplicate_insn_chain): Likewise.
6502 * final.c (get_attr_length_1): Likewise.
6503 (shorten_branches): Likewise.
6504 (final_scan_insn): Likewise.
6505 * function.c (instantiate_virtual_regs): Likewise.
6506 * gcse.c (insert_insn_end_basic_block): Likewise.
6507 * ira-costs.c (scan_one_insn): Likewise.
6508 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
6509 * lra.c (check_rtl): Likewise.
6510 * reload1.c (elimination_costs_in_insn): Likewise.
6511 * reorg.c (follow_jumps): Likewise.
6513 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
6514 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
6515 (thumb_far_jump_used_p): Likewise.
6516 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
6517 (workaround_speculation): Likewise.
6518 (add_sched_insns_for_speculation): Likewise.
6519 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
6520 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
6521 (frv_for_each_packet): Likewise.
6522 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
6523 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
6524 (final_emit_insn_group_barriers): Likewise.
6525 * config/m32r/m32r.c (m32r_is_insn): Likewise.
6526 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
6527 (mips16_insn_length): Likewise.
6528 * config/pa/pa.c (pa_reorg): Likewise.
6529 (pa_combine_instructions): Likewise.
6530 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
6531 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
6532 (sh_reorg): Likewise.
6533 (split_branches): Likewise.
6534 * config/spu/spu.c (get_branch_target): Likewise.
6536 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
6539 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
6541 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
6542 Fix declaration name.
6544 2013-03-28 Lawrence Crowl <crowl@google.com>
6546 * graphds.h (struct graph.indicies): Remove unused.
6547 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
6548 (SCOP_ORIGINAL_PDDRS): Remove unused.
6549 * sese.h (extern insert_loop_close_phis): Removed unused.
6550 (extern insert_guard_phis): Removed unused.
6551 (extern ivtype_map_elt_info): Removed unused.
6552 (new_ivtype_map_elt): Removed unused.
6553 * sese.c (ivtype_map_elt_info): Removed unused.
6555 2013-03-28 Lawrence Crowl <crowl@google.com>
6557 * Makefile.in: Add several missing include dependences.
6559 (test-dump.o): New. This object is not added to any executable,
6560 but is present for ad-hoc testing.
6562 (debug (const bitmap_head_def &)): New.
6563 (debug (const bitmap_head_def *)): New.
6565 (extern debug (const bitmap_head_def &)): New.
6566 (extern debug (const bitmap_head_def *)): New.
6568 (debug (edge_def &)): New.
6569 (debug (edge_def *)): New.
6571 (debug (basic_block_def &)): New.
6572 (debug (basic_block_def *)): New.
6574 (dump_node (const_tree, int, FILE *)): Correct source file.
6576 (debug (die_struct &)): New.
6577 (debug (die_struct *)): New.
6579 (extern debug (die_struct &)): New.
6580 (extern debug (die_struct *)): New.
6581 * gimple-pretty-print.c
6582 (debug (gimple_statement_d &)): New.
6583 (debug (gimple_statement_d *)): New.
6584 * gimple-pretty-print.h
6585 (extern debug (gimple_statement_d &)): New.
6586 (extern debug (gimple_statement_d *)): New.
6588 (debug (ira_allocno_copy &)): New.
6589 (debug (ira_allocno_copy *)): New.
6590 (debug (ira_allocno &)): New.
6591 (debug (ira_allocno *)): New.
6593 (extern debug (ira_allocno_copy &)): New.
6594 (extern debug (ira_allocno_copy *)): New.
6595 (extern debug (ira_allocno &)): New.
6596 (extern debug (ira_allocno *)): New.
6598 (debug (live_range &)): New.
6599 (debug (live_range *)): New.
6601 (debug (lra_live_range &)): New.
6602 (debug (lra_live_range *)): New.
6604 (debug (lra_live_range &)): New.
6605 (debug (lra_live_range *)): New.
6607 (debug (omega_pb_d &)): New.
6608 (debug (omega_pb_d *)): New.
6610 (extern debug (omega_pb_d &)): New.
6611 (extern debug (omega_pb_d *)): New.
6613 (debug (const rtx_def &)): New.
6614 (debug (const rtx_def *)): New.
6616 (debug_tree (tree): Move within file.
6617 (debug_raw (const tree_node &)): New.
6618 (debug_raw (const tree_node *)): New.
6619 (dump_tree_via_hooks (const tree_node *, int)): New.
6620 (debug (const tree_node &)): New.
6621 (debug (const tree_node *)): New.
6622 (debug_verbose (const tree_node &)): New.
6623 (debug_verbose (const tree_node *)): New.
6624 (debug_head (const tree_node &)): New.
6625 (debug_head (const tree_node *)): New.
6626 (debug_body (const tree_node &)): New.
6627 (debug_body (const tree_node *)): New.
6628 (debug_vec_tree (tree): Move and reimplement in terms of dump.
6629 (debug (vec<tree, va_gc> &)): New.
6630 (debug (vec<tree, va_gc> *)): New.
6632 (extern debug (const rtx_def &)): New.
6633 (extern debug (const rtx_def *)): New.
6635 (debug_raw (simple_bitmap_def &)): New.
6636 (debug_raw (simple_bitmap_def *)): New.
6637 (debug (simple_bitmap_def &)): New.
6638 (debug (simple_bitmap_def *)): New.
6640 (extern debug (simple_bitmap_def &)): New.
6641 (extern debug (simple_bitmap_def *)): New.
6642 (extern debug_raw (simple_bitmap_def &)): New.
6643 (extern debug_raw (simple_bitmap_def *)): New.
6645 (debug (vinsn_def &)): New.
6646 (debug (vinsn_def *)): New.
6647 (debug_verbose (vinsn_def &)): New.
6648 (debug_verbose (vinsn_def *)): New.
6649 (debug (expr_def &)): New.
6650 (debug (expr_def *)): New.
6651 (debug_verbose (expr_def &)): New.
6652 (debug_verbose (expr_def *)): New.
6653 (debug (vec<rtx> &)): New.
6654 (debug (vec<rtx> *)): New.
6656 (extern debug (vinsn_def &)): New.
6657 (extern debug (vinsn_def *)): New.
6658 (extern debug_verbose (vinsn_def &)): New.
6659 (extern debug_verbose (vinsn_def *)): New.
6660 (extern debug (expr_def &)): New.
6661 (extern debug (expr_def *)): New.
6662 (extern debug_verbose (expr_def &)): New.
6663 (extern debug_verbose (expr_def *)): New.
6664 (extern debug (vec<rtx> &)): New.
6665 (extern debug (vec<rtx> *)): New.
6667 (_list_iter_cond_expr): Make inline instead of static.
6669 (debug (sreal &)): New.
6670 (debug (sreal *)): New.
6672 (extern debug (sreal &)): New.
6673 (extern debug (sreal *)): New.
6675 (extern debug_raw (const tree_node &)): New.
6676 (extern debug_raw (const tree_node *)): New.
6677 (extern debug (const tree_node &)): New.
6678 (extern debug (const tree_node *)): New.
6679 (extern debug_verbose (const tree_node &)): New.
6680 (extern debug_verbose (const tree_node *)): New.
6681 (extern debug_head (const tree_node &)): New.
6682 (extern debug_head (const tree_node *)): New.
6683 (extern debug_body (const tree_node &)): New.
6684 (extern debug_body (const tree_node *)): New.
6685 (extern debug (vec<tree, va_gc> &)): New.
6686 (extern debug (vec<tree, va_gc> *)): New.
6688 (debug (struct loop &)): New.
6689 (debug (struct loop *)): New.
6690 (debug_verbose (struct loop &)): New.
6691 (debug_verbose (struct loop *)): New.
6692 * tree-dump.c: Add header dependence.
6694 (extern debug (struct loop &)): New.
6695 (extern debug (struct loop *)): New.
6696 (extern debug_verbose (struct loop &)): New.
6697 (extern debug_verbose (struct loop *)): New.
6699 (debug (data_reference &)): New.
6700 (debug (data_reference *)): New.
6701 (debug (vec<data_reference_p> &)): New.
6702 (debug (vec<data_reference_p> *)): New.
6703 (debug (vec<ddr_p> &)): New.
6704 (debug (vec<ddr_p> *)): New.
6706 (extern debug (data_reference &)): New.
6707 (extern debug (data_reference *)): New.
6708 (extern debug (vec<data_reference_p> &)): New.
6709 (extern debug (vec<data_reference_p> *)): New.
6710 (extern debug (vec<ddr_p> &)): New.
6711 (extern debug (vec<ddr_p> *)): New.
6713 (debug (pt_solution &)): New.
6714 (debug (pt_solution *)): New.
6716 (extern debug (pt_solution &)): New.
6717 (extern debug (pt_solution *)): New.
6719 (debug (_var_map &)): New.
6720 (debug (_var_map *)): New.
6721 (debug (tree_live_info_d &)): New.
6722 (debug (tree_live_info_d *)): New.
6724 (extern debug (_var_map &)): New.
6725 (extern debug (_var_map *)): New.
6726 (extern debug (tree_live_info_d &)): New.
6727 (extern debug (tree_live_info_d *)): New.
6729 2013-03-28 Jan Hubicka <jh@suse.cz>
6731 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
6733 2013-03-28 Ian Bolton <ian.bolton@arm.com>
6735 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
6736 record only when desired or required.
6738 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
6740 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
6741 *vec_extractv2di_1_rex64. Use x64 isa attribute.
6743 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6745 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
6746 (*andsi3_compare0_uxtw): New pattern.
6747 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
6748 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
6750 2013-03-28 Jan Hubicka <jh@suse.cz>
6752 * data-streamer-in.c (streamer_read_gcov_count): New function.
6753 * gimple-streamer-out.c: Include value-prof.h.
6754 (output_gimple_stmt): Output histogram.
6755 (output_bb): Use streamer_write_gcov_count.
6756 * value-prof.c: Include data-streamer.h
6757 (dump_histogram_value): Add HIST_TYPE_MAX.
6758 (stream_out_histogram_value): New function.
6759 (stream_in_histogram_value): New function.
6760 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
6761 (stream_out_histogram_value, stream_in_histogram_value): Declare.
6762 * data-streamer-out.c (streamer_write_gcov_count): New function.
6763 (streamer_write_gcov_count_stream): New function.
6764 * lto-cgraph.c (lto_output_edge): Update counter streaming.
6765 (lto_output_node): Likewise.
6766 (input_node, input_edge): Likewise.
6767 * lto-streamer-out.c (output_cfg): Update streaming.
6768 * lto-streamer-in.c (input_cfg): Likewise.
6769 * data-streamer.h (streamer_write_gcov_count,
6770 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
6771 * gimple-streamer-in.c: Include value-prof.h
6772 (input_gimple_stmt): Input histograms.
6773 (input_bb): Update profile streaming.
6775 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
6777 * genmodes.c (emit_max_int): New function.
6778 (emit_insn_modes_h): Added call to emit_max_function.
6779 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
6781 * machmode.def: Fixed comment.
6783 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
6785 * combine.c (try_combine): Removed useless assert.
6786 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
6788 2013-03-28 Marek Polacek <polacek@redhat.com>
6789 Richard Biener <rguenther@suse.de>
6791 PR tree-optimization/56695
6792 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
6793 build signed result of a vector comparison.
6794 * tree-cfg.c (verify_gimple_comparison): Check that a result
6795 of a vector comparison has signed type.
6797 2013-03-28 Richard Biener <rguenther@suse.de>
6799 PR tree-optimization/37021
6800 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
6801 do not restrict gaps between groups.
6802 * tree-vect-stmts.c (vectorizable_load): Properly account for
6803 a gap between groups.
6805 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
6807 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
6808 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
6811 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
6813 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
6814 * doc/extend.texi (Named Address Spaces): Ditto.
6815 (Variable Attributes): Ditto.
6817 2013-03-27 Kai Tietz <ktietz@redhat.com>
6819 * config.build: Add support for cygwin x64 target.
6820 * config.gcc: Likewise.
6821 * config.host: Likewise.
6822 * configure.ac: Likewise
6823 * configure: Regenerated.
6825 2013-03-27 Kai Tietz <ktietz@redhat.com>
6827 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
6828 * config/i386/t-cygwin-w64: New file.
6829 * config/i386/cygwin-w64.h: New file.
6830 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
6831 and add support for x64-cygwin target.
6832 (CPP_SPEC): Likewise.
6833 (CXX_WRAP_SPEC_LIST): Undefine before define.
6834 (LIBGCJ_SONAME): Use 15 as version.
6836 2013-03-27 Richard Biener <rguenther@suse.de>
6838 PR tree-optimization/56716
6839 * tree-ssa-structalias.c (perform_var_substitution): Adjust
6840 dumping for ref nodes.
6842 2013-03-27 Martin Jambor <mjambor@suse.cz>
6844 PR tree-optimization/55334
6845 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
6846 restricted pointers to arrays.
6848 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
6850 * Makefile.in (.SUFFIXES): Add .cc.
6851 (.c.o): Apply same recipe for implicit rule .cc.o.
6853 2013-03-27 Richard Biener <rguenther@suse.de>
6855 PR tree-optimization/37021
6856 * tree-vect-data-refs.c (vect_check_strided_load): Allow
6857 REALPART/IMAGPART_EXPRs around the supported refs.
6858 * tree-ssa-structalias.c (find_func_aliases): Assume that
6859 floating-point values are not used to transfer pointers.
6861 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
6863 * target.def (TARGET_HAS_IFUNC_P): New target hook.
6864 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
6865 * doc/tm.texi: Regenerate.
6866 * targhooks.h (default_has_ifunc_p): New.
6867 * targhooks.c (default_has_ifunc_p): Ditto.
6868 * config/linux-protos.h: New file.
6869 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
6870 this hook for linux which disables support of indirect functions in
6872 * config/linux-android.c: New file.
6873 * config/t-linux-android.c: Ditto.
6874 * config.gcc: Added new object file linux-android.o.
6875 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
6876 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
6877 * varasm.c (do_assemble_alias): Likewise.
6878 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
6879 doesn't support indirect functions.
6880 * configure: Regenerate.
6882 2013-03-27 Bin Cheng <bin.cheng@arm.com>
6885 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
6886 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
6889 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6891 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
6893 2013-03-27 Terry Guo <terry.guo@arm.com>
6895 * config/arm/arm-cores.def: Added core cortex-r7.
6896 * config/arm/arm-tune.md: Regenerated.
6897 * config/arm/arm-tables.opt: Regenerated.
6898 * doc/invoke.texi: Added entry for core cortex-r7.
6900 2013-03-27 Walter Lee <walt@tilera.com>
6902 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
6903 double-decrement of next_scratch_regno.
6905 2013-03-27 Walter Lee <walt@tilera.com>
6907 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
6909 (insn_v1mulus): Ditto.
6910 (insn_v2muls): Ditto.
6912 2013-03-27 Walter Lee <walt@tilera.com>
6914 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
6915 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
6917 2013-03-27 Walter Lee <walt@tilera.com>
6919 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
6920 (*sibcall_value): Ditto.
6922 2013-03-27 Walter Lee <walt@tilera.com>
6924 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
6925 (insn_mnz_v8qi): ... this ...
6926 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
6928 (insn_v<n>mnz): Replaced by ...
6929 (insn_v1mnz): ... this ...
6930 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
6932 (insn_mz_<mode>): Replaced by ...
6933 (insn_mz_v8qi): ... this ...
6934 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
6936 (insn_v<n>mz): Replaced by ...
6937 (insn_v1mz): ... this ...
6938 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
6941 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
6943 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
6945 2013-03-26 Roland McGrath <mcgrathr@google.com>
6947 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
6948 than fprintf with a non-constant, non-format string.
6950 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
6952 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
6953 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
6954 operand 0 predicate.
6955 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
6956 attribute. Use general_x64nomem_operand as operand 1 predicate.
6957 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
6958 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
6959 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
6960 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
6961 (mov<mode>_insv_1): Remove expander. Merge insn with
6962 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
6963 Use general_x64nomem_operand as operand 1 predicate.
6964 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
6965 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
6966 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
6967 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
6968 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
6969 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
6970 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
6971 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
6972 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
6973 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
6974 (general_x64nomem_operand): Ditto.
6976 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
6978 * config/rtems.opt: Add -pthread option.
6980 2013-03-26 Richard Biener <rguenther@suse.de>
6982 * alias.c (find_base_term): Avoid redundant and not used recursion.
6983 (base_alias_check): Get the initial base term from the caller.
6984 (true_dependence_1): Compute and pass base terms to base_alias_check.
6985 (write_dependence_p): Likewise.
6986 (may_alias_p): Likewise.
6988 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
6990 * config/aarch64/aarch64.c (aarch64_classify_address): Support
6991 PC-relative load in SI modes and above only.
6993 2013-03-26 Xinyu Qi <xyqi@marvell.com>
6995 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
6996 * config/arm/iwmmxt.md (WCGR0): Update.
6997 (WCGR1, WCGR2, WCGR3): Likewise.
6999 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
7001 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
7002 Use x64 and nox64 isa attributes.
7004 2013-03-26 Richard Biener <rguenther@suse.de>
7006 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
7007 alignment computations and rely on get_object_alignment_1
7008 for the !TYPE_P case.
7009 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
7011 2013-03-26 Walter Lee <walt@tilera.com>
7013 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
7014 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
7016 2013-03-25 Jeff Law <law@redhat.com>
7018 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
7019 check for INTEGRAL_TYPE_P that was missing due to checking in
7020 wrong version of prior patch.
7022 2013-03-25 Walter Lee <walt@tilera.com>
7024 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
7025 TILEGX_INSN_SHUFFLEBYTES1.
7026 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
7028 (tilegx_builtins): Ditto.
7029 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
7031 2013-03-25 Walter Lee <walt@tilera.com>
7033 * config/tilegx/tilegx.md (floatsisf2): New pattern.
7034 (floatunssisf2): New pattern.
7035 (floatsidf2): New pattern.
7036 (floatunssidf2): New pattern.
7038 2013-03-25 Walter Lee <walt@tilera.com>
7040 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
7041 tests for constraint J, K, N, P.
7043 2013-03-25 Walter Lee <walt@tilera.com>
7045 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
7046 Use indirect/pcrel encoding.
7047 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
7050 2013-03-25 Steve Ellcey <sellcey@mips.com>
7052 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
7053 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
7054 * config/mips/mips.c (mips_option_override): Set IMADD default.
7055 * config/mips/mips.h (PTF_AVOID_IMADD): New.
7056 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
7057 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
7058 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
7059 * doc/invoke.texi (-mimadd/-mno-imadd): New.
7061 2013-03-25 Jeff Law <law@redhat.com>
7063 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
7064 slightly to avoid creating and folding useless trees. Simplify
7065 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
7067 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
7069 * config/i386/i386.md (*zero_extendsidi2): Merge with
7070 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
7071 * config/i386/predicates.md (x86_64_zext_operand): Rename from
7072 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
7073 targets. Clarify comment.
7075 2013-03-25 Martin Jambor <mjambor@suse.cz>
7077 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
7078 pass-through jump functions differently.
7079 (ipa_read_jump_function): Likewise. Also use setter functions to set
7082 2013-03-25 Martin Jambor <mjambor@suse.cz>
7084 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
7085 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
7087 (ipa_get_indirect_edge_target): New function.
7088 (devirtualization_time_bonus): New parameter known_aggs, pass it to
7089 ipa_get_indirect_edge_target. Update all callers.
7090 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
7091 ipa_get_indirect_edge_target_1 instead of calling
7092 ipa_get_indirect_edge_target.
7093 (create_specialized_node): Pass aggvlas to
7094 ipcp_discover_new_direct_edges.
7096 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7098 * config/arm/arm.md (f_sels, f_seld): New types.
7099 (*cmov<mode>): New pattern.
7100 * config/arm/predicates.md (arm_vsel_comparison_operator): New
7103 2013-03-25 Kai Tietz <ktietz@redhat.com>
7105 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
7106 POSIX-printf for mingw-hosted builds.
7108 2013-03-25 Richard Biener <rguenther@suse.de>
7111 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
7112 must-not-throw stmt location.
7114 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7116 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
7117 Emit load-acquire versions when acq is true.
7118 (arm_emit_store_exclusive): Add rel parameter.
7119 Emit store-release versions when rel is true.
7120 (arm_split_compare_and_swap): Use acquire-release instructions
7122 of barriers when appropriate.
7123 (arm_split_atomic_op): Likewise.
7124 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
7125 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
7126 (VUNSPEC_SLX): Likewise.
7127 (VUNSPEC_LDA): Likewise.
7128 (VUNSPEC_STL): Likewise.
7129 * config/arm/sync.md (atomic_load<mode>): New pattern.
7130 (atomic_store<mode>): Likewise.
7131 (arm_load_acquire_exclusive<mode>): Likewise.
7132 (arm_load_acquire_exclusivesi): Likewise.
7133 (arm_load_acquire_exclusivedi): Likewise.
7134 (arm_store_release_exclusive<mode>): Likewise.
7136 2013-03-25 Catherine Moore <clm@codesourcery.com>
7138 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
7139 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
7140 * config/mip/predicates.md (lwsp_swsp_operand,
7141 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
7142 sb16_operand, db4_operand, db7_operand, ib3_operand,
7143 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
7144 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
7145 andi16_operand): New predicates.
7146 * config/mips/mips.md (compression): New attribute.
7147 (enabled): New attribute.
7148 (length): Consider compression in computing length.
7149 (shift_compression): New code attribute.
7150 (*add<mode>3): New operands. Record compression.
7151 (sub<mode>3): Likewise.
7152 (one_cmpl<mode>2): Likewise.
7153 (*and<mode>3): Likewise.
7154 (*ior<mode>3): Likewise.
7155 (unnamed pattern for xor): Likewise.
7156 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
7157 (*<optab><mode>3): Likewise.
7158 (*mov<mode>_internal: Likewise.
7159 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
7160 (mips_unsigned_immediate_p): New.
7161 (umips_lwsp_swsp_address_p): New.
7162 (m16_based_address_p): New.
7163 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
7164 (mips_unsigned_immediate_p): New prototype.
7165 (lwsp_swsp_address_p): New prototype.
7166 (m16_based_address_p): New prototype.
7167 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
7168 (mips_signed_immediate_p): New function.
7169 (m16_based_address_p): New function.
7170 (lwsp_swsp_address_p): New function.
7171 (mips_print_operand_punctuation): Recognize short delay slot insns
7172 for microMIPS.add<mode>3"
7174 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7177 * config/arm/iterators.md (v_cmp_result): New mode attribute.
7178 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
7180 2013-03-25 Richard Biener <rguenther@suse.de>
7182 PR tree-optimization/56689
7183 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
7186 2013-03-25 Richard Biener <rguenther@suse.de>
7188 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
7190 (memory_references): Likewise.
7191 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
7192 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
7193 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
7194 (gather_mem_refs_in_loops): Fold into ...
7195 (analyze_memory_references): ... this. Move initialization
7196 to tree_ssa_lim_initialize.
7197 (fill_always_executed_in): Rename to ...
7198 (fill_always_executed_in_1): ... this.
7199 (fill_always_executed_in): Move contains_call computation to
7200 this new function from ...
7201 (tree_ssa_lim_initialize): ... here.
7202 (tree_ssa_lim): Call fill_always_executed_in.
7204 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
7206 * postreload.c (reload_combine): Fix code detecting returns.
7208 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
7210 * function.c (emit_use_return_register_into_block): On cc0 targets,
7211 do not emit the sequence between cc0 setter and user.
7213 2013-03-25 Kai Tietz <ktietz@redhat.com>
7215 * config/i386/predicates.md (local_symbolic_operand): Interpret
7216 dll-imported symbols as none-local.
7218 2013-03-25 Richard Biener <rguenther@suse.de>
7220 * tree-ssa-loop-im.c (struct depend): Remove.
7221 (struct lim_aux_data): Make depends a vec of gimples.
7222 (free_lim_aux_data): Adjust.
7223 (add_dependency): Likewise.
7224 (set_level): Likewise.
7226 2013-03-25 Richard Biener <rguenther@suse.de>
7229 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
7230 the pointer returned by calls with ECF_MALLOC set.
7232 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
7234 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
7236 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
7238 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
7239 using MMXMODE mode iterator.
7240 (*move<mode>_internal): Merge with *movv2sf_internal and
7241 *movv2sf_internal_rex64 using MMXMODE mode iterator.
7243 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
7245 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
7246 (record_last_mem_set_info): Likewise.
7248 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
7249 of XNEWVEC followed by memset.
7250 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
7252 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
7254 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
7255 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
7256 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
7257 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
7258 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
7259 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
7260 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
7261 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
7262 BARRIER_P instead of GET_CODE.
7264 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
7266 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
7267 inaccuracy in the probing code.
7269 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
7270 (ctrapdi4): Likewise.
7272 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
7274 * calls.c (expand_call): Add missing guard to code handling return
7275 of non-BLKmode structures in MSB.
7276 * function.c (expand_function_end): Likewise.
7278 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
7280 * combine.c (try_combine): Adjust comment. Do not add the set of
7281 insn #0 if the destination indirectly is set or dies in insn #2.
7282 Tidy up code to distribute a new note.
7284 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
7286 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
7287 also for alternatives 16 and 17.
7289 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
7291 * config/i386/sse.md (*mov<mode>_internal): Merge with
7292 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
7293 Emit insn template depending on type attribute. Use
7294 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
7295 movd instead of movq mnemonic for interunit moves. Rewrite mode
7296 attribute calculation. Remove unit attribute calculation.
7297 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
7298 Set prefix_data16 attribute for DImode ssemov types.
7299 Use Ym instead of y for SSE-MMX conversion alternatives.
7300 Reorder operand constraints.
7302 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
7304 * df.h (df_insn_delete): Adjust prototype.
7305 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
7306 and let it decide whether mark the basic block dirty.
7307 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
7308 * df-scan.c (df_insn_info_delete): New helper function, split
7309 off from df_insn_delete.
7310 (df_scan_free_bb_info): Use it.
7311 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
7313 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
7314 that the insn is actually an insn and it has a non-NULL basic block.
7315 Do not mark basic block dirty if only deleting a DEBUG_INSN.
7317 2013-03-22 Richard Biener <rguenther@suse.de>
7319 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
7321 (mem_ref_alloc): Do not allocate them.
7322 (refs_independent_p): Do not query or maintain a cache.
7324 2013-03-22 Richard Biener <rguenther@suse.de>
7326 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
7327 (gather_mem_refs_in_loops): Do not compute it.
7328 (analyze_memory_references): Do not allocate it.
7329 (tree_ssa_lim_finalize): Do not free it.
7330 (for_all_locs_in_loop): Do not query all_refs_in_loop.
7332 2013-03-22 Richard Biener <rguenther@suse.de>
7334 * is-a.h (as_a): Use gcc_checking_assert.
7336 2013-03-22 Ian Bolton <ian.bolton@arm.com>
7338 * config/aarch64/aarch64.c (aarch64_print_operand): New
7339 format specifier for printing a constant in hex.
7340 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
7341 format specifier for printing second operand.
7343 2013-03-22 Richard Biener <rguenther@suse.de>
7345 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
7347 (gather_mem_refs_in_loops): Perform store accumulation here.
7348 (create_vop_ref_mapping_loop): Remove.
7349 (create_vop_ref_mapping): Likewise.
7350 (analyze_memory_references): Initialize refs_stored_in_loop.
7351 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
7352 (record_indep_loop): Remove.
7353 (record_dep_loop): New function.
7354 (ref_indep_loop_p_1): Adjust to only walk over references
7355 in the loop, not its subloops.
7356 (ref_indep_loop_p): Rename to ...
7357 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
7358 maintaining a more fine-grained cache.
7359 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
7360 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
7362 2013-03-22 Richard Biener <rguenther@suse.de>
7364 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
7365 (struct mem_ref): Make accesses_in_loop a vec of a vec of
7366 aggregate mem_ref_loc.
7367 (free_mem_ref_locs): Inline into ...
7368 (memref_free): ... this and adjust.
7369 (mem_ref_alloc): Adjust.
7370 (mem_ref_locs_alloc): Remove.
7371 (record_mem_ref_loc): Adjust.
7372 (get_all_locs_in_loop): Rewrite into ...
7373 (for_all_locs_in_loop): ... this iterator.
7374 (rewrite_mem_ref_loc): New functor.
7375 (rewrite_mem_refs): Use for_all_locs_in_loop.
7376 (sm_set_flag_if_changed): New functor.
7377 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
7378 (ref_always_accessed): New functor.
7379 (ref_always_accessed_p): Use for_all_locs_in_loop.
7381 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
7383 * tree-pass.h (PROP_gimple_lvec): New.
7384 * passes.c (dump_properties): Handle PROP_gimple_lvec.
7385 (init_optimization_passes): Move pass_lower_vector.
7386 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
7388 (pass_lower_vector): Provide PROP_gimple_lvec.
7389 (pass_lower_vector_ssa): Likewise.
7390 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
7392 2013-03-21 Mark Wielaard <mjw@redhat.com>
7394 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
7396 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
7398 * config/i386/i386.md (*movdi_internal): Disparage slightly
7399 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
7400 conversion alternatives.
7402 2013-03-21 Jakub Jelinek <jakub@redhat.com>
7405 * diagnostic.def (DK_WERROR): New kind.
7406 * diagnostic.h (werrorcount): Define.
7407 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
7408 promoted to DK_ERROR, increment DK_WERROR counter instead of
7410 * toplev.c (toplev_main): Call print_ignored_options even if
7411 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
7412 even if just werrorcount is non-zero.
7415 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
7417 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
7418 (string_cst_pool_decl): New function.
7419 (optimize_one_addr_into_implicit_ptr): New function.
7420 (resolve_addr_in_expr): Optimize DWARF location expression
7421 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
7422 which doesn't live in memory, but has DW_AT_location or
7423 DW_AT_const_value, or refers to a string literal, into
7424 DW_OP_GNU_implicit_pointer.
7425 (optimize_location_into_implicit_ptr): New function.
7426 (resolve_addr): If removing DW_AT_location of a variable because
7427 it was DW_OP_addr of address of the variable, but the variable doesn't
7428 live in memory, try to emit const value attribute for the initializer.
7430 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
7432 * tree.h (VECTOR_TYPE_P): New macro.
7433 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
7435 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
7436 VEC_COND_EXPR cannot be lvalues.
7437 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
7439 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
7441 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
7442 Restrict the transformation to equal modes.
7444 2013-03-21 Richard Biener <rguenther@suse.de>
7446 PR tree-optimization/39326
7447 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
7448 (MEM_ANALYZABLE): Adjust.
7449 (record_mem_ref_loc): Move bitmap ops ...
7450 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
7451 unanalyzable refs, do not record locations for it.
7452 (analyze_memory_references): Allocate ref zero as shared
7454 (refs_independent_p): Do not test for unanalyzed mems here.
7455 (ref_indep_loop_p_1): Special-case disambiguation against
7457 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
7459 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
7461 * config/arm/arm-protos.h (tune_params): Add
7462 prefer_neon_for_64bits field.
7463 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
7464 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
7465 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
7466 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
7467 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
7468 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
7469 (arm_option_override): Handle -mneon-for-64bits new option.
7470 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
7471 (prefer_neon_for_64bits): Declare new variable.
7472 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
7473 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
7474 (arch_enabled): Handle new arch types. Remove support for onlya8
7476 (one_cmpldi2): Use new arch names.
7477 (zero_extend<mode>di2, extend<mode>di2): Ditto.
7478 * config/arm/arm.opt (mneon-for-64bits): Add option.
7479 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
7480 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
7481 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
7483 * doc/invoke.texi (-mneon-for-64bits): Document.
7485 2013-03-21 Richard Biener <rguenther@suse.de>
7487 PR tree-optimization/39326
7488 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
7489 (sort_bbs_in_loop_postorder_cmp): New function.
7490 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
7492 2013-03-21 Richard Biener <rguenther@suse.de>
7494 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
7495 (vect_insert_into_interleaving_chain): Likewise.
7496 (vect_drs_dependent_in_basic_block): Inline ...
7497 (vect_slp_analyze_data_ref_dependence): ... here. New function,
7499 (vect_analyze_data_ref_dependence): ... here. Simplify.
7500 (vect_check_interleaving): Simplify.
7501 (vect_analyze_data_ref_dependences): Likewise. Split out ...
7502 (vect_slp_analyze_data_ref_dependences): ... this new function.
7503 (dr_group_sort_cmp): New function.
7504 (vect_analyze_data_ref_accesses): Compute data-reference groups
7505 here instead of in vect_analyze_data_ref_dependence. Use
7506 a more efficient algorithm.
7507 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
7508 vect_slp_analyze_data_ref_dependences. Call
7509 vect_analyze_data_ref_accesses earlier.
7510 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
7511 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
7512 (vect_slp_analyze_data_ref_dependences): New prototype.
7514 2013-03-21 Richard Biener <rguenther@suse.de>
7516 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
7517 ref is stored in the loop.
7518 (find_refs_for_sm): Walk only over all stores.
7519 (store_motion_loop): Allocate from lim_bitmap_obstack.
7520 (store_motion): Likewise.
7522 2013-03-21 Richard Biener <rguenther@suse.de>
7524 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
7525 Update virtual SSA form.
7527 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7529 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
7530 * configure: Regenerate.
7531 * config.in: Regenerate.
7532 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
7533 if !HAVE_LD_EH_FRAME_CIEV3.
7535 2013-03-21 Richard Biener <rguenther@suse.de>
7537 * tree-cfg.c (verify_expr_no_block): New function.
7538 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
7539 nor DECL_VALUE_EXPR have locations with associated blocks.
7540 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
7541 (clear_unused_block_pointer): Remove code dealing with
7542 blocks in DECL_DEBUG_EXPR locations.
7544 2013-03-21 Richard Biener <rguenther@suse.de>
7546 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
7547 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
7548 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
7549 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
7550 instead of DECL_DEBUG_EXPR_IS_FROM.
7551 * gimplify.c (gimplify_modify_expr): Likewise.
7552 * tree-cfg.c (verify_expr_location_1): Likewise.
7553 * tree-complex.c (create_one_component_var): Likewise.
7554 * tree-sra.c (create_access_replacement): Likewise.
7555 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
7556 (clear_unused_block_pointer): Likewise.
7557 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
7558 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
7559 * var-tracking.c (var_debug_decl): Likewise.
7560 (track_expr_p): Likewise.
7561 * tree-inline.c (add_local_variables): Likewise. Set
7562 DECL_HAS_DEBUG_EXPR_P after copying it.
7563 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
7564 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
7566 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
7569 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
7570 * configure: Regenerate.
7571 * config.in: Regenerate.
7572 * config/i386/i386.md (*movdf_internal): Use
7573 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
7574 movd instead of movq mnemonic for interunit moves.
7575 (*movdi_internal): Ditto.
7577 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7579 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
7580 (abd<mode>_3): New pattern.
7581 (aba<mode>_3): New pattern.
7582 (fabd<mode>_3): New pattern.
7584 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7586 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
7587 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
7588 occurrence of REGISTER_PREFIX as its empty string.
7590 2013-03-20 Jeff Law <law@redhat.com>
7592 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
7593 addititional equivalences for equality comparisons between an SSA_NAME
7594 and a constant where the SSA_NAME was set from a widening conversion.
7596 2013-03-20 Walter Lee <walt@tilera.com>
7598 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
7600 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
7602 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
7603 depending on type attribute.
7604 (*movti_internal): Ditto.
7605 (*movtf_internal): Ditto.
7606 (*movxf_internal): Ditto.
7607 (*movdf_internal): Ditto.
7608 (*movsf_internal): Ditto.
7610 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
7612 * config/i386/i386.md (*movti_internal): Set prefix attribute to
7613 maybe_vex for sselog1 and ssemov types.
7614 (*movdi_internal): Reorder operand constraints.
7615 (*movsi_internal): Ditto. Set prefix attribute to
7616 maybe_vex for sselog1 and ssemov types.
7617 (*movtf_internal): Set prefix attribute to maybe_vex
7618 for sselog1 and ssemov types.
7619 (*movdf_internal): Ditto. Set prefix_data16 attribute for
7620 DImode ssemov types. Reorder operand constraints.
7621 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
7622 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
7623 attribute for SImode ssemov types. Reorder operand constraints.
7625 2013-03-20 Martin Jambor <mjambor@suse.cz>
7627 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
7628 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
7630 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
7632 * config/rs6000/predicates.md (indexed_address, update_address_mem
7633 update_indexed_address_mem): New predicates.
7634 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
7635 attribute for load/store instructions.
7636 * config/rs6000/dfp.md (movsd_store): Likewise.
7637 (movsd_load): Likewise.
7638 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
7639 (unnamed HI->DI extend define_insn): Likewise.
7640 (unnamed SI->DI extend define_insn): Likewise.
7641 (unnamed QI->SI extend define_insn): Likewise.
7642 (unnamed QI->HI extend define_insn): Likewise.
7643 (unnamed HI->SI extend define_insn): Likewise.
7644 (unnamed HI->SI extend define_insn): Likewise.
7645 (extendsfdf2_fpr): Likewise.
7646 (movsi_internal1): Likewise.
7647 (movsi_internal1_single): Likewise.
7648 (movhi_internal): Likewise.
7649 (movqi_internal): Likewise.
7650 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
7651 attribute for load/store instructions.
7652 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
7654 (mov<mode>_softfloat): Likewise.
7655 (mov<mode>_hardfloat32): Likewise.
7656 (mov<mode>_hardfloat64): Likewise.
7657 (mov<mode>_softfloat64): Likewise.
7658 (movdi_internal32): Likewise.
7659 (movdi_internal64): Likewise.
7660 (probe_stack_<mode>): Likewise.
7662 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
7664 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
7665 floating point, and decimal floating point to reload iterator.
7667 * config/rs6000/constraints.md (wl constraint): New constraints to
7668 return FLOAT_REGS if certain options are used to reduce the number
7669 of separate patterns that exist in the file.
7670 (wx constraint): Likewise.
7671 (wz constraint): Likewise.
7673 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
7674 -mdebug=reg, print wg, wl, wx, and wz constraints.
7675 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
7676 Initialize the reload functions for 64-bit binary/decimal floating
7678 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
7679 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
7680 create the buffer on the stack to overcome not having a 32-bit
7682 (rs6000_emit_move): Likewise.
7683 (rs6000_secondary_memory_needed_rtx): Likewise.
7684 (rs6000_alloc_sdmode_stack_slot): Likewise.
7685 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
7686 via xxlxor, just like DFmode 0.0.
7688 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
7689 define as 1 if we are running on a power7 or newer.
7690 (enum r6000_reg_class_enum): Add new constraints.
7692 * config/rs6000/dfp.md (movsd): Delete, combine with binary
7693 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
7694 with other moves by using conditional constraits (wg). Use LFIWZX
7695 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
7696 (movsd splitter): Likewise.
7697 (movsd_hardfloat): Likewise.
7698 (movsd_softfloat): Likewise.
7700 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
7701 binary and decimal floating point moves.
7702 (fmove_ok): New attributes to combine binary and decimal floating
7703 point moves, and to combine power6x (mfpgpr) moves along normal
7705 (real_value_to_target): Likewise.
7712 (movsf): Combine binary and decimal floating point moves. Combine
7713 power6x (mfpgpr) moves with other moves by using conditional
7714 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
7715 (mov<mode> for SFmode/SDmode); Likewise.
7716 (SFmode/SDmode splitters): Likewise.
7717 (movsf_hardfloat): Likewise.
7718 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
7719 (movsf_softfloat): Likewise.
7720 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
7722 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
7723 wx and wz constraints.
7725 * config/rs6000/constraints.md (wg constraint): New constraint to
7726 return FLOAT_REGS if -mmfpgpr (power6x) was used.
7728 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
7731 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
7732 -mdebug=reg, print wg, wl, wx, and wz constraints.
7733 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
7734 Initialize the reload functions for 64-bit binary/decimal floating
7736 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
7737 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
7738 create the buffer on the stack to overcome not having a 32-bit
7740 (rs6000_emit_move): Likewise.
7741 (rs6000_secondary_memory_needed_rtx): Likewise.
7742 (rs6000_alloc_sdmode_stack_slot): Likewise.
7743 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
7744 via xxlxor, just like DFmode 0.0.
7746 * config/rs6000/dfp.md (movdd): Delete, combine with binary
7747 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
7748 with other moves by using conditional constraits (wg). Use LFIWZX
7749 and STFIWX for loading SDmode on power7.
7750 (movdd splitters): Likewise.
7751 (movdd_hardfloat32): Likewise.
7752 (movdd_softfloat32): Likewise.
7753 (movdd_hardfloat64_mfpgpr): Likewise.
7754 (movdd_hardfloat64): Likewise.
7755 (movdd_softfloat64): Likewise.
7757 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
7758 64-bit binary and decimal floating point moves.
7759 (FMOVE64X): Likewise.
7760 (movdf): Combine 64-bit binary and decimal floating point moves.
7761 Combine power6x (mfpgpr) moves with other moves by using
7762 conditional constraits (wg).
7763 (mov<mode> for DFmode/DDmode): Likewise.
7764 (DFmode/DDmode splitters): Likewise.
7765 (movdf_hardfloat32): Likewise.
7766 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
7767 (movdf_softfloat32): Likewise.
7768 (movdf_hardfloat64_mfpgpr): Likewise.
7769 (movdf_hardfloat64): Likewise.
7770 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
7771 (movdf_softfloat64): Likewise.
7772 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
7773 (reload_<mode>_load): Move to later in the file so they aren't in
7774 the middle of the floating point move insns.
7775 (reload_<mode>_store): Likewise.
7777 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
7780 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
7781 constraint if -mdebug=reg.
7782 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
7783 Enable using dd reload support if needed.
7785 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
7786 binary and decimal floating point moves in rs6000.md.
7787 (movtd_internal): Likewise.
7789 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
7790 decimal floating point moves.
7792 (movtf_internal): Likewise.
7793 (mov<mode>_internal, TDmode/TFmode): Likewise.
7794 (movtf_softfloat): Likewise.
7795 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
7797 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
7798 movdi_internal64, using wg constraint for move direct operations.
7799 (movdi_internal64): Likewise.
7801 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
7802 MODES_TIEABLE_P for selected modes. Print the numerical value of
7803 the various virtual registers. Use GPR/FPR first/last values,
7804 instead of hard coding the register numbers. Print which modes
7805 have reload functions registered.
7806 (rs6000_option_override_internal): If -mdebug=reg, trace the options
7807 settings before/after setting cpu, target and subtarget settings.
7808 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
7809 and for secondary reload failures in rs6000_secondary_reload_inner.
7810 (rs6000_secondary_reload_fail): Likewise.
7811 (rs6000_secondary_reload_inner): Likewise.
7813 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
7814 macros for first/last GPR and FPR registers.
7815 (LAST_GPR_REGNO): Likewise.
7816 (FIRST_FPR_REGNO): Likewise.
7817 (LAST_FPR_REGNO): Likewise.
7819 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
7820 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
7821 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
7822 (vcond<mode><mode>): Likewise.
7823 (vcondu<mode><mode>): Likewise.
7824 (vector_gtu<mode>): Likewise.
7825 (vector_gte<mode>): Likewise.
7826 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
7827 to prevent the compiler from converting DImode operations to TImode.
7828 (ior<mode>3): Likewise.
7829 (and<mode>3): Likewise.
7830 (one_cmpl<mode>2): Likewise.
7831 (nor<mode>3): Likewise.
7832 (andc<mode>3): Likewise.
7834 * config/rs6000/constraints.md (wt constraint): New constraint
7835 that returns VSX_REGS if TImode is allowed in VSX registers.
7837 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
7840 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
7841 similar to TImode, but it is restricted to being in the GPRs.
7843 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
7844 TImode to occupy a single VSX register.
7846 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
7847 -mvsx-timode for power7/power8.
7848 (power7 cpu): Likewise.
7849 (power8 cpu): Likewise.
7851 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
7852 sure that TFmode/TDmode take up two registers if they are ever
7853 allowed in the upper VSX registers.
7854 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
7856 (rs6000_init_hard_regno_mode_ok): Likewise.
7857 (rs6000_debug_reg_global): Add debugging for PTImode and wt
7858 constraint. Print if LRA is turned on.
7859 (rs6000_option_override_internal): Give an error if -mvsx-timode
7860 and VSX is not enabled.
7861 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
7862 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
7863 to reg+offset addressing. Use PTImode when checking offset
7864 addresses for validity.
7865 (reg_offset_addressing_ok_p): Likewise.
7866 (rs6000_legitimate_offset_address_p): Likewise.
7867 (rs6000_legitimize_address): Likewise.
7868 (rs6000_legitimize_reload_address): Likewise.
7869 (rs6000_legitimate_address_p): Likewise.
7870 (rs6000_eliminate_indexed_memrefs): Likewise.
7871 (rs6000_emit_move): Likewise.
7872 (rs6000_secondary_reload): Likewise.
7873 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
7874 reloads to fpr registers to continue to use reg+offset addressing,
7875 but 64-bit reloads to altivec registers need reg+reg addressing.
7876 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
7877 it. Treat LO_SUM like a PLUS operation.
7878 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
7879 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
7880 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
7881 registers to share a register with a smaller sized type, since VSX
7882 puts scalars in the upper 64-bits.
7883 (print_operand): Add support for PTImode.
7884 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
7885 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
7886 registers, but don't have arithmetic support.
7887 (rs6000_memory_move_cost): Add test for VSX.
7888 (rs6000_opt_masks): Add -mvsx-timode.
7890 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
7893 (VSr): Use wt constraint for TImode.
7894 (VSv): Drop TImode support.
7895 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
7896 (vsx_movti_64bit): Likewise.
7897 (vsx_movti_32bit): Likewise.
7898 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
7899 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
7900 one '?' on the appropriate output constraint. Do not allow TImode
7901 logical operations on 32-bit systems.
7902 (vsx_ior<mode>3): Likewise.
7903 (vsx_xor<mode>3): Likewise.
7904 (vsx_one_cmpl<mode>2): Likewise.
7905 (vsx_nor<mode>3): Likewise.
7906 (vsx_andc<mode>3): Likewise.
7907 (vsx_concat_<mode>): Likewise.
7908 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
7910 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
7911 OPTION_MASK_VSX_TIMODE.
7912 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
7913 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
7915 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
7916 (TI2 iterator): New iterator for TImode, PTImode.
7917 (wd mode attribute): Add values for vector types.
7918 (movti_string): Replace TI move operations with operations for TImode
7919 and PTImode. Add support for TImode being allowed in VSX registers.
7920 (mov<mode>_string, TImode/PTImode): Likewise.
7921 (movti_ppc64): Likewise.
7922 (mov<mode>_ppc64, TImode/PTImode): Likewise.
7923 (TI mode splitters): Likewise.
7925 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
7928 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
7930 PR tree-optimization/56355
7931 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
7932 Also handle integers with undefined overflow.
7934 2013-03-20 Catherine Moore <clm@codesourcery.com>
7935 Maciej W. Rozycki <macro@codesourcery.com>
7936 Tom de Vries <tom@codesourcery.com>
7937 Nathan Sidwell <nathan@codesourcery.com>
7938 Iain Sandoe <iain@codesourcery.com>
7939 Nathan Froyd <froydnj@codesourcery.com>
7940 Chao-ying Fu <fu@mips.com>
7942 * doc/extend.texi: (micromips, nomicromips, nocompression):
7943 Document new function attributes.
7944 * doc/invoke.texi (minterlink-compressed, mmicromips,
7945 m14k, m14ke, m14kec): Document new options.
7946 (minterlink-mips16): Update documentation.
7947 * doc/md.texi (ZC, ZD): Document new constraints.
7948 * configure.ac (gcc_cv_as_micromips): Check if linker
7949 supports the .set micromips directive.
7950 * configure: Regenerate.
7951 * config.in: Regenerate.
7952 * config/mips/mips-tables.opt: Regenerate.
7953 * config/mips/micromips.md: New file.
7954 * constraints.md (ZC, ZD): New constraints.
7955 * config/mips/predicates.md (movep_src_register): New predicate.
7956 (movep_src_operand): New predicate.
7957 (non_volatile_mem_operand): New predicate.
7958 * config/mips/mips.md (multimem): New type.
7959 (length): Differentiate between 17-bit and 18-bit branch offsets.
7960 (MOVEP1, MOVEP2): New mode iterator.
7961 (mov_<load>l): Use ZC constraint.
7962 (mov_<load>r): Likewise.
7963 (mov_<store>l): Likewise.
7964 (mov_<store>r): Likewise.
7965 (*branch_equality<mode>_inverted): Add microMIPS support.
7966 (*branch_equality<mode>): Likewise.
7967 (*jump_absolute): Likewise.
7968 (indirect_jump_<mode>): Likewise.
7969 (tablejump_<mode>): Likewise.
7970 (<optab>_internal): Likewise.
7971 (sibcall_internal): Likewise.
7972 (sibcall_value_internal): Likewise.
7973 (prefetch): Use constraint ZD.
7974 * config/mips/mips.opt (minterlink-compressed): New option.
7975 (minterlink-mips16): Now an alias for minterlink-compressed.
7976 (mmicromips): New option.
7977 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
7978 (compare_and_swap_12): Likewise.
7979 (sync_add<mode>): Likewise.
7980 (sync_<optab>_12): Likewise.
7981 (sync_old_<optab>_12): Likewise.
7982 (sync_new_<optab>_12): Likewise.
7983 (sync_nand_12): Likewise.
7984 (sync_old_nand_12): Likewise.
7985 (sync_new_nand_12): Likewise.
7986 (sync_sub<mode>): Likewise.
7987 (sync_old_add<mode>): Likewise.
7988 (sync_old_sub<mode>): Likewise.
7989 (sync_new_add<mode>): Likewise.
7990 (sync_new_sub<mode>): Likewise.
7991 (sync_<optab><mode>): Likewise.
7992 (sync_old_<optab><mode>): Likewise.
7993 (sync_new_<optab><mode>): Likewise.
7994 (sync_nand<mode>): Likewise.
7995 (sync_old_nand<mode>): Likewise.
7996 (sync_new_nand<mode>): Likewise.
7997 (sync_lock_test_and_set<mode>): Likewise.
7998 (test_and_set_12): Likewise.
7999 (atomic_compare_and_swap<mode>): Likewise.
8000 (atomic_exchange<mode>_llsc): Likewise.
8001 (atomic_fetch_add<mode>_llsc): Likewise.
8002 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
8003 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
8004 (umips_save_restore_pattern_p): Likewise.
8005 (umips_load_store_pair_p): Likewise.
8006 (umips_output_load_store_pair): Likewise.
8007 (umips_movep_target_p): Likewise.
8008 (umips_12bit_offset_address_p): Likewise.
8009 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
8010 (mips_base_mips16): Rename this...
8011 (mips_base_compression_flags): ...to this. Update all uses.
8012 (mips_attribute_table): Add micromips, nomicromips and nocompression.
8013 (mips_mips16_decl_p): Delete.
8014 (mips_nomips16_decl_p): Delete.
8015 (mips_get_compress_on_flags): New function.
8016 (mips_get_compress_off_flags): New function.
8017 (mips_get_compress_mode): New function.
8018 (mips_get_compress_on_name): New function.
8019 (mips_get_compress_off_name): New function.
8020 (mips_insert_attributes): Support multiple compression types.
8021 (mips_merge_decl_attributes): Likewise.
8022 (umips_12bit_offset_address_p): New function.
8023 (mips_start_function_definition): Emit .set micromips directive.
8024 (mips_call_may_need_jalx_p): New function.
8025 (mips_function_ok_for_sibcall): Add microMIPS support.
8026 (mips_print_operand_punctuation): Support short delay slots and
8028 (umips_swm_mask, umips_swm_encoding): New.
8029 (umips_build_save_restore): New function.
8030 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
8031 (was_mips16_p): Remove.
8032 (old_compression_mode): New.
8033 (mips_set_compression_mode): New function.
8034 (mips_set_current_function): Add microMIPS support.
8035 (mips_option_override): Likewise.
8036 (umips_save_restore_pattern_p): New function.
8037 (umips_output_save_restore): New function.
8038 (umips_load_store_pair_p_1): New function.
8039 (umips_load_store_pair_p): New function.
8040 (umips_output_load_store_pair_1): New function.
8041 (umips_output_load_store_pair): New function.
8042 (umips_movep_target_p) New function.
8043 (mips_prepare_pch_save): Add microMIPS support.
8044 * config/mips/mips.h (TARGET_COMPRESSION): New.
8045 (TARGET_CPU_CPP_BUILTINS): Update macro
8046 to use new compression flags and to support microMIPS.
8047 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
8048 (MIPS_ARCH_FLOAT_SPEC): Likewise.
8049 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
8050 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
8051 (ASM_SPEC): Support mmicromips and mno-micromips.
8052 (M16STORE_REG_P): New macro.
8053 (MIPS_CALL): Support TARGET_MICROMIPS.
8054 (MICROMIPS_J): New macro.
8055 (mips_base_mips16): Rename this...
8056 (mips_base_compression_flags): ...to this.
8057 (UMIPS_12BIT_OFFSET_P): New macro.
8058 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
8059 (MULTILIB_DIRNAMES): Likewise.
8060 2013-03-20 Richard Biener <rguenther@suse.de>
8062 PR tree-optimization/56661
8063 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
8064 the result does not have to be distinct.
8066 2013-03-20 Richard Biener <rguenther@suse.de>
8068 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
8071 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8072 Steven Bosscher <steven@gcc.gnu.org>
8074 PR rtl-optimization/56605
8075 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
8077 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
8080 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
8081 that require movd instead of movq.
8083 2013-03-20 Richard Biener <rguenther@suse.de>
8085 * tree-ssa-structalias.c (struct variable_info): Add pointer
8086 to the first field of an aggregate with sub-vars. Make
8087 this and the pointer to the next subfield its ID.
8088 (vi_next): New function.
8089 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
8090 storedanything_id, integer_id): Increment by one.
8091 (new_var_info, get_call_vi, lookup_call_clobber_vi,
8092 get_call_clobber_vi): Adjust.
8093 (solution_set_expand): Simplify and speedup.
8094 (solution_set_add): Inline into ...
8095 (set_union_with_increment): ... this. Adjust accordingly.
8096 (do_sd_constraint): Likewise.
8097 (do_ds_constraint): Likewise.
8098 (do_complex_constraint): Simplify.
8099 (build_pred_graph): Adjust.
8100 (solve_graph): Likewise. Simplify and speedup.
8101 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
8102 get_constraint_for_component_ref, get_constraint_for_1,
8103 first_vi_for_offset, first_or_preceding_vi_for_offset,
8104 create_function_info_for, create_variable_info_for_1,
8105 create_variable_info_for, intra_create_variable_infos): Adjust.
8106 (init_base_vars): Push NULL for ID zero.
8107 (compute_points_to_sets): Adjust.
8109 2013-03-20 Richard Biener <rguenther@suse.de>
8111 * cfgloop.c (verify_loop_structure): Streamline and avoid
8112 ICEing on corrupt loop tree.
8113 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
8116 2013-03-20 Richard Biener <rguenther@suse.de>
8118 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
8119 check whether an SSA update is needed.
8121 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
8123 * config/mips/constraints.md (T): Rename to...
8127 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
8128 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
8130 2013-03-19 Ian Bolton <ian.bolton@arm.com>
8132 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
8133 (*subsi3_carryin_uxtw): Likewise.
8135 2013-03-19 Ian Bolton <ian.bolton@arm.com>
8137 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
8138 (*rorsi3_insn_uxtw): Likewise.
8140 2013-03-19 Ian Bolton <ian.bolton@arm.com>
8142 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
8143 (*extrsi5_insn_uxtw): Likewise.
8145 2013-03-19 Richard Biener <rguenther@suse.de>
8147 PR tree-optimization/56273
8148 * passes.c (init_optimization_passes): Move second VRP after DOM.
8150 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
8152 * config/i386/i386.md (*movti_internal): Merge from
8153 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
8154 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
8155 nox64 isa attributes.
8157 2013-03-18 Richard Biener <rguenther@suse.de>
8159 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
8161 (merge_node_constraints): Likewise.
8162 (build_succ_graph): Likewise.
8163 (valid_graph_edge): Inline into single caller.
8164 (unify_nodes): Likewise. Use bitmap_set_bit return value
8166 (scc_visit): Fix formatting and variable use.
8167 (do_sd_constraint): Use gcc_checking_assert.
8168 (do_ds_constraint): Likewise.
8169 (do_complex_constraint): Likewise.
8170 (condense_visit): Likewise. Cleanup.
8171 (dump_pred_graph): New function.
8172 (perform_var_substitution): Dump the pred-graph before
8173 variable substitution.
8174 (find_equivalent_node): Use gcc_checking_assert.
8175 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
8177 2013-03-18 Richard Biener <rguenther@suse.de>
8179 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
8180 Remove cond_expr_stmt_list argument and do not gimplify the
8182 (vect_loop_versioning): Adjust.
8183 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
8184 Cleanup to use less temporaries.
8185 (vect_create_data_ref_ptr): Cleanup.
8187 2013-03-18 Jakub Jelinek <jakub@redhat.com>
8189 PR tree-optimization/56635
8190 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
8191 require types_compatible_p types.
8193 2013-03-18 Nick Clifton <nickc@redhat.com>
8195 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
8198 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
8199 Add missing line to comment describing function.
8201 2013-03-18 Richard Biener <rguenther@suse.de>
8203 PR tree-optimization/56210
8204 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8205 Handle string / character search functions.
8206 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
8208 2013-03-18 Richard Biener <rguenther@suse.de>
8211 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
8212 and implement properly.
8213 * gimple.h (gimple_cond_single_var_p): Remove.
8215 2013-03-18 Richard Biener <rguenther@suse.de>
8217 * tree-data-ref.h (find_data_references_in_loop): Declare.
8218 * tree-data-ref.c (get_references_in_stmt): Use a stack
8219 vector pre-allocated in the callers.
8220 (find_data_references_in_stmt): Adjust.
8221 (graphite_find_data_references_in_stmt): Likewise.
8222 (create_rdg_vertices): Likewise.
8223 (find_data_references_in_loop): Export.
8224 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
8225 Compute dependences here...
8226 (vect_analyze_data_refs): ...not here. When we encounter
8227 a non-vectorizable data reference in basic-block vectorization
8228 truncate the data reference vector. Do not bother to
8229 fixup data-dependence information for gather loads.
8230 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
8231 of data references, as reported.
8233 2013-03-18 Richard Biener <rguenther@suse.de>
8235 PR tree-optimization/3713
8236 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
8237 has_constants and expr.
8238 (stmt_has_constants): Properly valueize SSA names when deciding
8239 whether the stmt has constants.
8241 2013-03-18 Richard Biener <rguenther@suse.de>
8243 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
8244 whole function when there is nothing to do.
8245 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
8246 * tree-vectorizer.c (vectorize_loops): Update virtual and
8247 loop-closed SSA once.
8248 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
8250 2013-03-18 Richard Biener <rguenther@suse.de>
8253 * domwalk.c (bb_postorder): New global static.
8254 (cmp_bb_postorder): New function.
8255 (walk_dominator_tree): Replace scheme imposing an order for
8256 visiting dominator sons by one sorting them at the time they
8257 are pushed on the stack.
8259 2013-03-18 Richard Biener <rguenther@suse.de>
8261 PR tree-optimization/39326
8262 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
8263 (struct mem_ref): Replace mem member with ao_ref typed member.
8264 (MEM_ANALYZABLE): Adjust.
8265 (memref_eq): Likewise.
8266 (mem_ref_alloc): Likewise.
8267 (gather_mem_refs_stmt): Likewise.
8268 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
8269 (execute_sm_if_changed_flag_set): Adjust.
8270 (execute_sm): Likewise.
8271 (ref_always_accessed_p): Likewise.
8272 (refs_independent_p): Likewise.
8273 (can_sm_ref_p): Likewise.
8275 2013-03-18 Jakub Jelinek <jakub@redhat.com>
8278 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
8279 return 1 even for !unsignedp.
8281 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
8283 * config/i386/i386.md (isa): Add x64 and nox64.
8284 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
8285 (*pushtf): Enable *roF alternative for x64 isa only.
8286 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
8287 mode attribute of integer alternatives to DImode for TARGET_64BIT.
8288 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
8289 (*movtf_internal): Merge from *movtf_internal_rex64 and
8290 *movtf_internal_sse. Use x64 and nox64 isa attributes.
8291 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
8292 nox64 isa attributes.
8293 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
8294 nox64 isa attributes.
8295 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
8297 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
8299 * config/alpha/alpha.c (TARGET_LRA_P): New define.
8301 2013-03-17 Jakub Jelinek <jakub@redhat.com>
8304 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
8305 class names. Remove trailing comma after "ALL_REGS".
8307 2013-03-16 Jan Hubicka <jh@suse.cz>
8309 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
8310 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
8311 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
8312 of cgraph_get_create_node.
8313 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
8315 2013-03-16 Jason Merrill <jason@redhat.com>
8318 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
8319 with DW_AT_default_value.
8321 2013-03-16 Jakub Jelinek <jakub@redhat.com>
8323 * BASE-VER: Set to 4.9.0.
8325 2013-03-14 Andi Kleen <ak@linux.intel.com>
8328 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
8329 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
8330 Document _x* TSX intrinsics.
8332 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
8333 David Holsgrove <david.holsgrove@xilinx.com>
8335 * configure.ac: Add MicroBlaze TLS support detection.
8336 * configure: Regenerate.
8337 * config/microblaze/microblaze-protos.h
8338 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
8339 symbol_mentioned_p, label_mentioned_p): Add prototypes.
8340 * config/microblaze/microblaze.c (microblaze_address_type): Add
8341 ADDRESS_TLS and tls_reloc address types.
8342 (microblaze_address_info): Add tls_reloc.
8343 (TARGET_HAVE_TLS): Define.
8344 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
8345 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
8346 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
8347 load_tls_operand, microblaze_call_tls_get_addr,
8348 microblaze_legitimize_tls_address): New functions.
8349 (microblaze_classify_unspec): Handle UNSPEC_TLS.
8350 (get_base_reg): Use microblaze_tls_symbol_p.
8351 (microblaze_classify_address): Handle TLS.
8352 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
8353 label_mentioned_p and microblaze_tls_referenced_p.
8354 (microblaze_legitimize_address): Handle TLS.
8355 (microblaze_address_insns): Handle ADDRESS_TLS.
8356 (pic_address_needs_scratch): Handle TLS.
8357 (print_operand_address): Handle TLS.
8358 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
8359 (microblaze_expand_move): Handle TLS.
8360 (microblaze_legitimate_constant_p): Check
8361 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8362 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
8363 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
8364 (PIC_OFFSET_TABLE_REGNUM): Set.
8365 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
8366 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
8367 (addsi3, movsi_internal2, movdf_internal): Update constraints
8368 * config/microblaze/predicates.md (arith_plus_operand): Define
8369 (move_operand): Redefine as move_src_operand,
8370 check microblaze_tls_referenced_p.
8372 2013-03-14 Ian Bolton <ian.bolton@arm.com>
8374 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
8375 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
8377 2013-03-14 Ian Bolton <ian.bolton@arm.com>
8379 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
8382 2013-03-14 Jakub Jelinek <jakub@redhat.com>
8384 PR tree-optimization/53265
8385 * common.opt (Waggressive-loop-optimizations): New option.
8386 * tree-ssa-loop-niter.c: Include tree-pass.h.
8387 (do_warn_aggressive_loop_optimizations): New function.
8388 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
8389 if number_of_latch_executions returned constant.
8390 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
8391 early. If number_of_latch_executions returned constant, set
8392 nb_iterations_upper_bound back to it.
8393 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
8395 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
8396 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
8398 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
8399 (MULTILIB_OSDIRNAMES): Set.
8400 * genmultilib: If defaultosdirname doesn't start with :: , set
8401 defaultosdirname2 instead, clear it and emit two . multilib_raw
8402 entries instead of just one.
8404 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
8406 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
8407 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
8408 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
8409 (SUBTARGET_OVERRIDE_OPTIONS): New.
8411 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
8414 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
8415 (musermode): Convert to Var(TARGET_USERMODE).
8416 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
8417 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
8418 * config/sh/sh.c (sh_option_override): Use
8419 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
8420 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
8422 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
8424 (udivsi3_i4_single, divsi3_i4_single): Use
8425 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
8427 2013-03-13 Dave Korn <dave.korn.cygwin@....>
8429 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
8432 2013-03-13 Richard Biener <rguenther@suse.de>
8434 PR tree-optimization/56608
8435 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
8436 calls when vectorizing basic-blocks.
8438 2013-03-13 Jakub Jelinek <jakub@redhat.com>
8441 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
8444 2013-03-12 Jakub Jelinek <jakub@redhat.com>
8446 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
8448 2013-03-11 Jan Hubicka <jh@suse.cz>
8451 * lto-streamer-out.c (output_symbol_p): Skip references from
8452 constructors of external variables.
8454 2013-03-11 Jan Hubicka <jh@suse.cz>
8457 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
8459 * emit-rtl.c (verify_rtx_sharing): Likewise.
8460 (copy_insn_1): Likewise.
8461 * rtl.c (copy_rtx): Likewise.
8463 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
8466 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
8467 output_operand_lossage message.
8469 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
8472 * arm.c (shift_op): Validate RTL pattern on the fly.
8473 (arm_print_operand, case 'S'): Don't use shift_operator to validate
8476 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8479 * config/pa/pa.md (call_value): Check for calls to powf and direct to
8480 new call patterns that clobber %fr12.
8481 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
8482 split and postreload patterns.
8483 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
8484 registers %fr12 and %fr12R as call used.
8486 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
8488 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
8489 (canon_address, record_store, replace_read, check_mem_read_rtx,
8490 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
8491 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
8492 rest_of_handle_dse): Likewise.
8494 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
8497 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
8499 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
8500 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
8501 (save_optabs_if_changed): Replace with...
8502 (init_tree_optimization_optabs): ...this.
8503 * optabs.c (save_optabs_if_changed): Rename to...
8504 (init_tree_optimization_optabs): ...this. Take the optimization node
8505 as argument. Do nothing if the base optabs are already correct.
8506 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
8507 to recompute optabs.
8508 * function.h (function): Remove optabs field.
8509 * function.c (invoke_set_current_function_hook): Call
8510 init_tree_optimization_optabs. Use the result to initialize
8513 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
8515 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
8516 if GTMA_HAS_NO_INSTRUMENTATION.
8517 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
8518 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
8519 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
8520 * gimple-pretty-print.c (dump_gimple_transaction): Handle
8521 GTMA_HAS_NO_INSTRUMENTATION.
8523 2013-03-08 Jakub Jelinek <jakub@redhat.com>
8525 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
8528 2013-03-08 Marek Polacek <polacek@redhat.com>
8529 Jakub Jelinek <jakub@redhat.com>
8531 PR tree-optimization/56478
8532 * predict.c (is_comparison_with_loop_invariant_p): Change the
8533 type of loop_step to tree.
8534 (predict_loops): Adjust.
8535 (predict_iv_comparison): Perform the computations on double_ints.
8537 2013-03-08 Richard Biener <rguenther@suse.de>
8539 PR tree-optimization/56570
8540 * tree-cfg.c (verify_expr_location_1): Verify locations for
8542 * tree-sra.c (create_access_replacement): Strip locations
8543 from DECL_DEBUG_EXPRs.
8545 2013-03-08 Richard Biener <rguenther@suse.de>
8547 * tree-inline.c (expand_call_inline): Do not associate
8548 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
8549 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
8551 2013-03-08 Richard Biener <rguenther@suse.de>
8553 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
8554 or block changes with -Og. Fix for location / block encoding
8555 changes and PHI arguments with locations.
8557 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
8559 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
8561 (struct output_info): Likewise.
8562 (register_overhead): Remove bad gcc_assert.
8563 (bitmap_find_bit): If there is only a single bitmap element, do not
8564 count a miss as a search.
8565 (print_statistics): Update for counter type changes.
8566 (dump_bitmap_statistics): Likewise. Print headers such that they
8567 are properly lined up with the printed counters.
8569 2013-03-07 Jakub Jelinek <jakub@redhat.com>
8571 PR tree-optimization/56559
8572 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
8573 check that it has only a single use.
8575 2013-03-07 Richard Biener <rguenther@suse.de>
8577 * doc/invoke.texi (fwhole-program): Discourage use in combination
8580 2013-03-06 Jakub Jelinek <jakub@redhat.com>
8582 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
8584 PR tree-optimization/56539
8585 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
8586 instead of GSI_CONTINUE_LINKING as last argument to
8587 force_gimple_operand_gsi. Adjust function comment.
8589 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
8593 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
8594 promoted mode, convert the result back to the original mode.
8596 2013-03-06 Richard Biener <rguenther@suse.de>
8599 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
8600 (insert_updated_phi_nodes_compare_uids): New function.
8601 (update_ssa): Sort symbols_to_rename after UID before
8602 traversing it to insert PHI nodes.
8604 2013-03-06 Richard Biener <rguenther@suse.de>
8607 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
8608 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
8611 2013-02-13 Richard Biener <rguenther@suse.de>
8614 * varasm.c (output_constant_def_1): Get the decl representing
8615 the constant as argument.
8616 (output_constant_def): Wrap output_constant_def_1.
8617 (make_decl_rtl): Use output_constant_def_1 with the decl
8618 representing the constant.
8619 (build_constant_desc): Optionally re-use a decl already
8620 representing the constant.
8621 (tree_output_constant_def): Adjust.
8623 2013-03-06 Joey Ye <joey.ye@arm.com>
8626 * gcc.c (convert_white_space): New function.
8627 (main): Handles white space in function name.
8629 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
8632 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
8633 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
8634 to SH_DIV_CALL_TABLE for TARGET_SH2.
8635 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
8637 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
8640 2013-03-05 Sterling Augustine <saugustine@google.com>
8641 Cary Coutant <ccoutant@google.com>
8644 * dwarf2out.c (resolve_addr): Don't call
8645 remove_loc_list_addr_table_entries a second time for the same
8648 2013-03-05 Jakub Jelinek <jakub@redhat.com>
8651 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
8652 (avoid_complex_debug_insns): New function.
8653 (expand_debug_locations): Call it.
8655 PR rtl-optimization/56484
8656 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
8657 lifetimes of hard registers on small register class machines.
8659 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
8661 * config/microblaze/microblaze-protos.h: Rename
8662 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
8663 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
8665 (microblaze_fast_interrupt_function_p): New function.
8666 (microblaze_is_interrupt_handler): Rename to
8667 microblaze_is_interrupt_variant and add fast_interrupt check.
8668 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
8669 (save_restore_insns): Likewise.
8670 (compute_frame_size): Likewise.
8671 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
8672 (microblaze_globalize_label): Likewise.
8673 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
8674 * config/microblaze/microblaze.md: Use wrapper
8675 microblaze_is_interrupt_variant.
8677 2013-03-05 Kai Tietz <ktietz@redhat.com>
8679 * sdbout.c (sdbout_one_type): Switch to current function's section
8680 supporting cold/hot.
8682 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
8684 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
8687 2013-03-05 Jakub Jelinek <jakub@redhat.com>
8690 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
8691 if VALGRIND_GET_VBITS is defined, temporarily make object
8692 memory all defined, and restore previous valgrind addressability
8693 and definability afterwards. Free this_object at the end.
8696 * lra.c (lra): Call lra_clear_live_ranges if live_p,
8697 right before calling lra_create_live_ranges, also call it
8698 when clearing live_p. Only call lra_clear_live_ranges
8699 at the end if live_p.
8702 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
8704 2013-03-05 Richard Biener <rguenther@suse.de>
8706 PR tree-optimization/56521
8707 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
8710 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
8713 * except.h (remove_unreachable_eh_regions): New prototype.
8714 * except.c (remove_eh_handler_splicer): New function, split out
8715 of remove_eh_handler.
8716 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
8717 warning about running it on many EH regions one at a time.
8718 (remove_unreachable_eh_regions_worker): New function, walk the
8719 EH tree in depth-first order and remove non-marked regions.
8720 (remove_unreachable_eh_regions): New function.
8721 * tree-eh.c (mark_reachable_handlers): New function, split out
8722 from remove_unreachable_handlers.
8723 (remove_unreachable_handlers): Use mark_reachable_handlers and
8724 remove_unreachable_eh_regions.
8725 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
8726 and remove_unreachable_eh_regions.
8728 2013-03-05 Richard Biener <rguenther@suse.de>
8731 * loop-init.c (fix_loop_structure): Remove loops in two stages,
8732 not freeing them until the end.
8734 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8736 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
8738 2013-03-05 Richard Biener <rguenther@suse.de>
8740 PR tree-optimization/56270
8741 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
8742 of loads after scheduling an SLP instance.
8744 2013-03-05 Jakub Jelinek <jakub@redhat.com>
8746 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
8748 (check_gcc_parallelize): Run guality.exp as a separate job from
8749 vect.exp with unsorted.exp and $(dg_target_exps) separately from
8750 struct-layout-1.exp with stackalign.exp.
8752 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
8755 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
8756 load_index sbitmap even if some bit in it isn't set.
8759 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
8760 (discover_iteration_bound_by_body_walk): Change queues to
8761 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
8762 spelling in comment. Call safe_push on queues[bound_index] directly.
8763 Release queues[queue_index] in every iteration unconditionally.
8764 Release bounds vector.
8767 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
8768 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
8769 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
8772 2013-03-05 Richard Biener <rguenther@suse.de>
8775 * tree-inline.c (remap_blocks_to_null): New function.
8776 (expand_call_inline): When expanding a call stmt without
8777 an associated block inline remap all callee blocks to NULL.
8779 2013-03-05 Jakub Jelinek <jakub@redhat.com>
8781 PR rtl-optimization/56494
8782 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
8783 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
8784 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
8787 * sel-sched-ir.c (free_sched_pools): Release
8788 succs_info_pool.stack[succs_info_pool.max_top] vectors too
8789 if succs_info_pool.max_top isn't -1.
8792 * opts.c (opts_obstack, opts_concat): Moved to...
8793 * opts-common.c (opts_obstack, opts_concat): ... here.
8795 2013-03-04 Jakub Jelinek <jakub@redhat.com>
8798 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
8800 2013-03-04 Martin Jambor <mjambor@suse.cz>
8802 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
8803 all appropriate places.
8805 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
8807 PR tree-optimization/56424
8808 * ipa-split.c (split_function): Do not set the RSO flag if result is
8809 not by reference and its type is a register type.
8811 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
8813 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
8814 (microblaze_legitimate_pic_operand): Likewise
8815 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
8816 new function microblaze_legitimate_pic_operand
8817 * config/microblaze/microblaze-protos.h
8818 (microblaze_legitimate_pic_operand): Declare.
8820 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8822 * config/microblaze/predicates.md (call_insn_simple_operand):
8823 New predicate for supported rtx code types.
8824 * config/microblaze/microblaze.md (call_internal1): Use
8825 call_insn_simple_operand predicate.
8827 2013-03-04 Jakub Jelinek <jakub@redhat.com>
8830 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
8831 partitions.ordered_remove.
8834 * tree-vect-stmts.c (vectorizable_conversion): Don't call
8835 vec_oprnds0.create (1) for modifier == NONE.
8838 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
8839 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
8840 vec_oprnds1 right before pushing anything to it for
8844 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
8845 set nbbs to 0 instead of having separate code path.
8846 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
8847 instead of false as last argument if returning NULL.
8849 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
8851 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
8852 the attribute is now called "target" instead of "option".
8853 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
8854 * doc/tm.texi.in (Target Attributes): Likewise document the correct
8855 attribute/pragma name for TARGET_OPTION_VALID_P and
8856 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
8857 * doc/tm.texi: Regenerated.
8859 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
8861 * config/microblaze/microblaze.c:
8862 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8863 * config/microblaze/microblaze.h: Add -mxl-reorder to
8865 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
8866 instructions emitted if TARGET_REORDER.
8867 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
8868 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8871 2013-03-01 Xinliang David Li <davidxl@google.com>
8873 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
8876 2013-03-01 Jakub Jelinek <jakub@redhat.com>
8879 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
8880 vector even when returning true. Fix up function comment formatting.
8883 * ira-build.c (ira_loop_nodes_count): New variable.
8884 (create_loop_tree_nodes): Initialize it.
8885 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
8888 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
8889 method on dr_chain and result_chain.
8890 * tree-vect-stmts.c (vectorizable_store): Only call
8891 result_chain.create if j == 0.
8894 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
8895 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
8896 before overwriting it.
8898 2013-03-01 Tobias Burnus <burnus@net-b.de>
8900 * doc/extended.texi (C Extensions): Change order in @menu
8902 (Other MIPS Built-in Functions): Move last MIPS entry before
8903 "picoChip Built-in Functions".
8904 (SH Built-in Functions): Move after RX Built-in Functions.
8905 * doc/gcc.texi (Introduction): Change order in @menu
8907 * doc/md.texi (Constraints): Ditto.
8908 * gty.texi (Type Information): Ditto.
8909 (User-provided marking routines for template types): Make
8911 * doc/invoke.texi (AArch64 Options): Move before
8912 "Adapteva Epiphany Options".
8914 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
8915 Jakub Jelinek <jakub@redhat.com>
8918 * asan.c (gate_asan): Lookup no_sanitize_address instead of
8919 no_address_safety_analysis attribute.
8920 * doc/extend.texi (no_address_safety_attribute): Rename to
8921 no_sanitize_address attribute, mention no_address_safety_analysis
8922 attribute as deprecated alias.
8924 2013-02-28 Jakub Jelinek <jakub@redhat.com>
8927 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
8928 type to vec<vec<tree> > *.
8929 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
8930 to be vec<tree> instead of vec<tree> *, set vec_defs
8931 to vNULL and call vec_defs.create (number_of_vects), adjust other
8933 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
8934 vectorizable_condition): Adjust vect_get_slp_defs callers.
8936 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8938 * config/aarch64/aarch64.c
8939 (aarch64_float_const_representable): Remove unused variable.
8941 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8943 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
8945 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8947 * config/aarch64/aarch64-builtins.c
8948 (aarch64_init_simd_builtins): Make static.
8950 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8952 * config/aarch64/aarch64.c
8953 (aarch64_simd_make_constant): Make static.
8955 2013-02-28 Martin Jambor <mjambor@suse.cz>
8957 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
8958 with no initialization to the RHS of debug statements.
8960 2013-02-28 Martin Jambor <mjambor@suse.cz>
8962 PR tree-optimization/56294
8963 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
8965 (get_access_replacement): Do not call create_access_replacement.
8966 Assert a replacement exists.
8967 (get_repl_default_def_ssa_name): Create the replacement declaration
8970 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8972 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
8975 2013-02-28 Marek Polacek <polacek@redhat.com>
8977 PR rtl-optimization/56466
8978 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
8979 if we're changing a loop.
8980 (peel_loops_completely): Likewise.
8982 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
8985 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
8987 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
8990 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
8991 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
8992 INTX_FTYPE_FX, FX_FTYPE_INTX.
8993 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
8995 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
8997 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
8998 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
8999 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
9000 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
9001 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
9002 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
9003 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
9004 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
9005 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
9006 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
9007 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
9008 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
9009 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
9010 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
9011 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
9012 (avrxmega6): Increase max flash segments from 5 to 6.
9013 * config/avr/t-multilib: Regenerate.
9014 * config/avr/avr-tables.opt: Regenerate.
9015 * doc/avr-mmcu.texi: Regenerate.
9017 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
9019 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
9020 (avr_device_to_arch): Rename to avr_device_to_ld.
9021 (avr_device_to_as): New prototype.
9022 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
9023 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
9024 * config/avr/driver-avr.c (avr_device_to_as): New.
9025 (avr_device_to_arch): Rename to avr_device_to_ld.
9027 2013-02-27 Jakub Jelinek <jakub@redhat.com>
9030 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
9031 method on dr_chain and result_chain.
9034 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
9035 pointer_set_destroy on not_executed_last_iteration.
9038 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
9041 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
9042 FOR_EACH_DEFINED_FUNCTION when freeing state.
9045 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
9047 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
9051 * ipa-cp.c (decide_whether_version_node): Call vec_free on
9052 known_aggs[i].items and release known_aggs vector.
9055 * ipa-reference.c (propagate): Free node_info even for alias nodes.
9057 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9059 * config/microblaze/microblaze.c (microblaze_emit_compare):
9060 Use xor for EQ/NE comparisions.
9061 * config/microblaze/microblaze.md (cstoresf4): Add constraints
9062 (cbranchsf4): Adjust operator to comparison_operator.
9064 2013-02-27 Jakub Jelinek <jakub@redhat.com>
9067 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
9069 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
9070 vec_safe_push, always update *slot.
9071 (redirect_edge_var_map_clear): Use vec_free.
9072 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
9073 (free_var_map_entry): Use vec_free.
9074 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
9075 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
9077 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
9080 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
9081 when the may_trap_p bit of the exprs being merged differs.
9082 Reorder tests for speculativeness in the logical and operator.
9084 2013-02-27 Jakub Jelinek <jakub@redhat.com>
9086 * incpath.c (add_standard_paths): Use reconcat instead of concat
9087 where appropriate and avoid leaking memory.
9089 * opts.h: Include obstack.h.
9090 (opts_concat): New prototype.
9091 (opts_obstack): New declaration.
9092 * opts.c (opts_concat): New function.
9093 (opts_obstack): New variable.
9094 (init_options_struct): Call gcc_init_obstack on opts_obstack.
9095 (finish_options): Use opts_concat instead of concat
9096 and XOBNEWVEC instead of XNEWVEC.
9097 * opts-common.c (generate_canonical_option, decode_cmdline_option,
9098 generate_option): Likewise.
9099 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
9100 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
9103 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
9104 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
9106 2013-02-26 Jakub Jelinek <jakub@redhat.com>
9109 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
9111 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
9113 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
9114 (arm_block_move_unaligned_straight): Likewise.
9115 (arm_adjust_block_mem): Likewise.
9117 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
9120 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
9121 temp, cond and label.
9122 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
9125 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
9126 * config/c6x/c6x.h (dbx_register_map): Update declaration.
9129 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
9130 of prologue/epilogue functions.
9133 * config/tilegx/tilegx.c (tilegx_expand_prologue):
9134 Remove unused variable cfa_offset.
9135 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
9138 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
9139 type promotion to unsigned.
9142 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
9143 for HOST_WIDE_INT of 32 bit / same size as int.
9144 (arm_block_move_unaligned_straight): Likewise.
9145 (arm_adjust_block_mem): Likewise.
9148 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
9151 2013-02-26 Marek Polacek <polacek@redhat.com>
9153 PR tree-optimization/56426
9154 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
9156 2013-02-26 Richard Biener <rguenther@suse.de>
9159 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
9160 unused variable loops.
9162 2013-02-26 Jakub Jelinek <jakub@redhat.com>
9164 PR tree-optimization/56448
9165 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
9166 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
9167 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
9168 later operands of the references, or even first operand for
9169 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
9171 PR tree-optimization/56443
9172 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
9173 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
9174 to type_for_mode langhook.
9176 2013-02-25 Matt Turner <mattst88@gmail.com>
9178 * doc/invoke.texi: Document r4700.
9180 2013-02-25 Richard Biener <rguenther@suse.de>
9182 PR tree-optimization/56175
9183 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
9185 (simplify_bitwise_binary): ... here. Also guard the conversion
9186 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
9188 2013-02-25 Catherine Moore <clm@codesourcery.com>
9191 2013-02-24 Catherine Moore <clm@codesourcery.com>
9192 Maciej W. Rozycki <macro@codesourcery.com>
9193 Tom de Vries <tom@codesourcery.com>
9194 Nathan Sidwell <nathan@codesourcery.com>
9195 Iain Sandoe <iain@codesourcery.com>
9196 Nathan Froyd <froydnj@codesourcery.com>
9197 Chao-ying Fu <fu@mips.com>
9199 * doc/extend.texi: (micromips, nomicromips, nocompression):
9200 Document new function attributes.
9201 * doc/invoke.texi (minterlink-compressed, mmicromips,
9202 m14k, m14ke, m14kec): Document new options.
9203 (minterlink-mips16): Update documentation.
9204 * doc/md.texi (ZC, ZD): Document new constraints.
9205 * configure.ac (gcc_cv_as_micromips): Check if linker
9206 supports the .set micromips directive.
9207 * configure: Regenerate.
9208 * config.in: Regenerate.
9209 * config/mips/mips-tables.opt: Regenerate.
9210 * config/mips/micromips.md: New file.
9211 * constraints.md (ZC, AD): New constraints.
9212 * config/mips/predicates.md (movep_src_register): New predicate.
9213 (movep_src_operand): New predicate.
9214 (non_volatile_mem_operand): New predicate.
9215 * config/mips/mips.md (multimem): New type.
9216 (length): Differentiate between 17-bit and 18-bit branch offsets.
9217 (MOVEP1, MOVEP2): New mode iterator.
9218 (mov_<load>l): Use ZC constraint.
9219 (mov_<load>r): Likewise.
9220 (mov_<store>l): Likewise.
9221 (mov_<store>r): Likewise.
9222 (*branch_equality<mode>_inverted): Add microMIPS support.
9223 (*branch_equality<mode>): Likewise.
9224 (*jump_absolute): Likewise.
9225 (indirect_jump_<mode>): Likewise.
9226 (tablejump_<mode>): Likewise.
9227 (<optab>_internal): Likewise.
9228 (sibcall_internal): Likewise.
9229 (sibcall_value_internal): Likewise.
9230 (prefetch): Use constraint ZD.
9231 * config/mips/mips.opt (minterlink-compressed): New option.
9232 (minterlink-mips16): Now an alias for minterlink-compressed.
9233 (mmicromips): New option.
9234 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
9235 (compare_and_swap_12): Likewise.
9236 (sync_add<mode>): Likewise.
9237 (sync_<optab>_12): Likewise.
9238 (sync_old_<optab>_12): Likewise.
9239 (sync_new_<optab>_12): Likewise.
9240 (sync_nand_12): Likewise.
9241 (sync_old_nand_12): Likewise.
9242 (sync_new_nand_12): Likewise.
9243 (sync_sub<mode>): Likewise.
9244 (sync_old_add<mode>): Likewise.
9245 (sync_old_sub<mode>): Likewise.
9246 (sync_new_add<mode>): Likewise.
9247 (sync_new_sub<mode>): Likewise.
9248 (sync_<optab><mode>): Likewise.
9249 (sync_old_<optab><mode>): Likewise.
9250 (sync_new_<optab><mode>): Likewise.
9251 (sync_nand<mode>): Likewise.
9252 (sync_old_nand<mode>): Likewise.
9253 (sync_new_nand<mode>): Likewise.
9254 (sync_lock_test_and_set<mode>): Likewise.
9255 (test_and_set_12): Likewise.
9256 (atomic_compare_and_swap<mode>): Likewise.
9257 (atomic_exchange<mode>_llsc): Likewise.
9258 (atomic_fetch_add<mode>_llsc): Likewise.
9259 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
9260 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
9261 (umips_save_restore_pattern_p): Likewise.
9262 (umips_load_store_pair_p): Likewise.
9263 (umips_output_load_store_pair): Likewise.
9264 (umips_movep_target_p): Likewise.
9265 (umips_12bit_offset_address_p): Likewise.
9266 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
9267 (mips_base_mips16): Rename this...
9268 (mips_base_compression_flags): ...to this. Update all uses.
9269 (mips_attribute_table): Add micromips, nomicromips and nocompression.
9270 (mips_mips16_decl_p): Delete.
9271 (mips_nomips16_decl_p): Delete.
9272 (mips_get_compress_on_flags): New function.
9273 (mips_get_compress_off_flags): New function.
9274 (mips_get_compress_mode): New function.
9275 (mips_get_compress_on_name): New function.
9276 (mips_get_compress_off_name): New function.
9277 (mips_insert_attributes): Support multiple compression types.
9278 (mips_merge_decl_attributes): Likewise.
9279 (umips_12bit_offset_address_p): New function.
9280 (mips_start_function_definition): Emit .set micromips directive.
9281 (mips_call_may_need_jalx_p): New function.
9282 (mips_function_ok_for_sibcall): Add microMIPS support.
9283 (mips_print_operand_punctuation): Support short delay slots and
9285 (umips_swm_mask, umips_swm_encoding): New.
9286 (umips_build_save_restore): New function.
9287 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
9288 (was_mips16_p): Remove.
9289 (old_compression_mode): New.
9290 (mips_set_compression_mode): New function.
9291 (mips_set_current_function): Add microMIPS support.
9292 (mips_option_override): Likewise.
9293 (umips_save_restore_pattern_p): New function.
9294 (umips_output_save_restore): New function.
9295 (umips_load_store_pair_p_1): New function.
9296 (umips_load_store_pair_p): New function.
9297 (umips_output_load_store_pair_1): New function.
9298 (umips_output_load_store_pair): New function.
9299 (umips_movep_target_p) New function.
9300 (mips_prepare_pch_save): Add microMIPS support.
9301 * config/mips/mips.h (TARGET_COMPRESSION): New.
9302 (TARGET_CPU_CPP_BUILTINS): Update macro
9303 to use new compression flags and to support microMIPS.
9304 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
9305 (MIPS_ARCH_FLOAT_SPEC): Likewise.
9306 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
9307 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
9308 (ASM_SPEC): Support mmicromips and mno-micromips.
9309 (M16STORE_REG_P): New macro.
9310 (MIPS_CALL): Support TARGET_MICROMIPS.
9311 (MICROMIPS_J): New macro.
9312 (mips_base_mips16): Rename this...
9313 (mips_base_compression_flags): ...to this.
9314 (UMIPS_12BIT_OFFSET_P): New macro.
9315 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
9316 (MULTILIB_DIRNAMES): Likewise.
9318 2013-02-25 Tom de Vries <tom@codesourcery.com>
9320 PR rtl-optimization/56131
9321 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
9322 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
9323 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
9325 2013-02-25 Tobias Burnus <burnus@net-b.de>
9327 * doc/invoke.texi (-fsanitize=): Move from optimization
9328 to debugging options.
9330 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
9332 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
9334 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
9335 Alexander Monakov <amonakov@ispras.ru>
9338 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
9339 flush pending lists also on non-jumps. Adjust comment.
9341 2013-02-24 Catherine Moore <clm@codesourcery.com>
9342 Maciej W. Rozycki <macro@codesourcery.com>
9343 Tom de Vries <tom@codesourcery.com>
9344 Nathan Sidwell <nathan@codesourcery.com>
9345 Iain Sandoe <iain@codesourcery.com>
9346 Nathan Froyd <froydnj@codesourcery.com>
9347 Chao-ying Fu <fu@mips.com>
9349 * doc/extend.texi: (micromips, nomicromips, nocompression):
9350 Document new function attributes.
9351 * doc/invoke.texi (minterlink-compressed, mmicromips,
9352 m14k, m14ke, m14kec): Document new options.
9353 (minterlink-mips16): Update documentation.
9354 * doc/md.texi (ZC, ZD): Document new constraints.
9355 * configure.ac (gcc_cv_as_micromips): Check if linker
9356 supports the .set micromips directive.
9357 * configure: Regenerate.
9358 * config.in: Regenerate.
9359 * config/mips/mips-tables.opt: Regenerate.
9360 * config/mips/micromips.md: New file.
9361 * constraints.md (ZC, AD): New constraints.
9362 * config/mips/predicates.md (movep_src_register): New predicate.
9363 (movep_src_operand): New predicate.
9364 (non_volatile_mem_operand): New predicate.
9365 * config/mips/mips.md (multimem): New type.
9366 (length): Differentiate between 17-bit and 18-bit branch offsets.
9367 (MOVEP1, MOVEP2): New mode iterator.
9368 (mov_<load>l): Use ZC constraint.
9369 (mov_<load>r): Likewise.
9370 (mov_<store>l): Likewise.
9371 (mov_<store>r): Likewise.
9372 (*branch_equality<mode>_inverted): Add microMIPS support.
9373 (*branch_equality<mode>): Likewise.
9374 (*jump_absolute): Likewise.
9375 (indirect_jump_<mode>): Likewise.
9376 (tablejump_<mode>): Likewise.
9377 (<optab>_internal): Likewise.
9378 (sibcall_internal): Likewise.
9379 (sibcall_value_internal): Likewise.
9380 (prefetch): Use constraint ZD.
9381 * config/mips/mips.opt (minterlink-compressed): New option.
9382 (minterlink-mips16): Now an alias for minterlink-compressed.
9383 (mmicromips): New option.
9384 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
9385 (compare_and_swap_12): Likewise.
9386 (sync_add<mode>): Likewise.
9387 (sync_<optab>_12): Likewise.
9388 (sync_old_<optab>_12): Likewise.
9389 (sync_new_<optab>_12): Likewise.
9390 (sync_nand_12): Likewise.
9391 (sync_old_nand_12): Likewise.
9392 (sync_new_nand_12): Likewise.
9393 (sync_sub<mode>): Likewise.
9394 (sync_old_add<mode>): Likewise.
9395 (sync_old_sub<mode>): Likewise.
9396 (sync_new_add<mode>): Likewise.
9397 (sync_new_sub<mode>): Likewise.
9398 (sync_<optab><mode>): Likewise.
9399 (sync_old_<optab><mode>): Likewise.
9400 (sync_new_<optab><mode>): Likewise.
9401 (sync_nand<mode>): Likewise.
9402 (sync_old_nand<mode>): Likewise.
9403 (sync_new_nand<mode>): Likewise.
9404 (sync_lock_test_and_set<mode>): Likewise.
9405 (test_and_set_12): Likewise.
9406 (atomic_compare_and_swap<mode>): Likewise.
9407 (atomic_exchange<mode>_llsc): Likewise.
9408 (atomic_fetch_add<mode>_llsc): Likewise.
9409 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
9410 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
9411 (umips_save_restore_pattern_p): Likewise.
9412 (umips_load_store_pair_p): Likewise.
9413 (umips_output_load_store_pair): Likewise.
9414 (umips_movep_target_p): Likewise.
9415 (umips_12bit_offset_address_p): Likewise.
9416 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
9417 (mips_base_mips16): Rename this...
9418 (mips_base_compression_flags): ...to this. Update all uses.
9419 (mips_attribute_table): Add micromips, nomicromips and nocompression.
9420 (mips_mips16_decl_p): Delete.
9421 (mips_nomips16_decl_p): Delete.
9422 (mips_get_compress_on_flags): New function.
9423 (mips_get_compress_off_flags): New function.
9424 (mips_get_compress_mode): New function.
9425 (mips_get_compress_on_name): New function.
9426 (mips_get_compress_off_name): New function.
9427 (mips_insert_attributes): Support multiple compression types.
9428 (mips_merge_decl_attributes): Likewise.
9429 (umips_12bit_offset_address_p): New function.
9430 (mips_start_function_definition): Emit .set micromips directive.
9431 (mips_call_may_need_jalx_p): New function.
9432 (mips_function_ok_for_sibcall): Add microMIPS support.
9433 (mips_print_operand_punctuation): Support short delay slots and
9435 (umips_swm_mask, umips_swm_encoding): New.
9436 (umips_build_save_restore): New function.
9437 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
9438 (was_mips16_p): Remove.
9439 (old_compression_mode): New.
9440 (mips_set_compression_mode): New function.
9441 (mips_set_current_function): Add microMIPS support.
9442 (mips_option_override): Likewise.
9443 (umips_save_restore_pattern_p): New function.
9444 (umips_output_save_restore): New function.
9445 (umips_load_store_pair_p_1): New function.
9446 (umips_load_store_pair_p): New function.
9447 (umips_output_load_store_pair_1): New function.
9448 (umips_output_load_store_pair): New function.
9449 (umips_movep_target_p) New function.
9450 (mips_prepare_pch_save): Add microMIPS support.
9451 * config/mips/mips.h (TARGET_COMPRESSION): New.
9452 (TARGET_CPU_CPP_BUILTINS): Update macro
9453 to use new compression flags and to support microMIPS.
9454 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
9455 (MIPS_ARCH_FLOAT_SPEC): Likewise.
9456 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
9457 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
9458 (ASM_SPEC): Support mmicromips and mno-micromips.
9459 (M16STORE_REG_P): New macro.
9460 (MIPS_CALL): Support TARGET_MICROMIPS.
9461 (MICROMIPS_J): New macro.
9462 (mips_base_mips16): Rename this...
9463 (mips_base_compression_flags): ...to this.
9464 (UMIPS_12BIT_OFFSET_P): New macro.
9465 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
9466 (MULTILIB_DIRNAMES): Likewise.
9468 2013-02-24 Jakub Jelinek <jakub@redhat.com>
9471 * target-globals.c (save_target_globals): For init_reg_sets and
9472 target_reinit remporarily set this_fn_optabs to this_target_optabs.
9474 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
9476 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
9477 * config/aarch64/t-aarch64
9478 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
9480 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
9483 * lra-constraints.c (process_alt_operands): Reload operand
9484 conflicting with earlier clobber only if no more other conflicting
9487 2013-02-22 Jakub Jelinek <jakub@redhat.com>
9490 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
9491 if not linking a shared library.
9493 2013-02-22 Seth LaForge <sethml@google.com>
9495 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
9497 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
9499 * config/arm/arm.md (split for extendsidi): Update condition.
9500 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
9501 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
9502 (qhs_zextenddi_cstr): Likewise.
9504 2013-02-21 Jakub Jelinek <jakub@redhat.com>
9507 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
9508 avoid signed wrapping.
9509 (expand_mult): Handle properly multiplication by
9510 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
9511 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
9512 in the compiler if coeff is HOST_WIDE_INT_MIN.
9513 (expand_divmod): Don't make ext_op1 static, change it's type to
9514 uhwi. Avoid undefined behavior in -INTVAL (op1).
9516 PR rtl-optimization/50339
9517 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
9519 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
9520 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
9521 into splitting_ashiftrt field.
9522 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
9524 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
9527 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
9530 * trans-mem.c (execute_tm_mark): Do not expand transactions that
9531 are sure to go irrevocable.
9533 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
9535 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
9536 scalars are valid operands.
9538 2013-02-21 Martin Jambor <mjambor@suse.cz>
9540 PR tree-optimization/56310
9541 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
9542 only matching indices and non-negative final offsets.
9543 (intersect_aggregates_with_edge): Pass src_idx to
9544 agg_replacements_to_vector. Pass src_idx insstead of index to
9545 intersect_with_agg_replacements.
9547 2013-02-21 Martin Jambor <mjambor@suse.cz>
9549 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
9550 instead of hard-wired defaults.
9552 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
9554 * doc/invoke.texi (MIPS Options): Update documentation of the
9555 floating-point multiply-accumulate instruction restrictions.
9557 2013-02-21 Kostya Serebryany <kcc@google.com>
9559 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
9560 asan_shadow_offset on x86_64 linux.
9562 2013-02-21 Richard Biener <rguenther@suse.de>
9564 PR tree-optimization/56415
9566 2013-02-11 Richard Biener <rguenther@suse.de>
9568 PR tree-optimization/56273
9569 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
9572 2013-02-21 Jakub Jelinek <jakub@redhat.com>
9575 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
9579 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
9580 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
9582 2013-02-20 Jan Hubicka <jh@suse.cz>
9584 PR tree-optimization/56265
9585 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
9586 when target is referenced for first time.
9588 2013-02-20 Richard Biener <rguenther@suse.de>
9590 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
9591 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
9592 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
9593 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
9594 not return anything.
9595 (rename_ssa_copies): Do not remove unused locals.
9596 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
9597 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
9598 * passes.c (execute_function_todo): Do not schedule unused locals
9599 removal if cleanup_tree_cfg did something.
9600 * tree-ssa-live.c (remove_unused_locals): Dump statistics
9601 about the number of removed locals.
9603 2013-02-20 Richard Biener <rguenther@suse.de>
9605 PR tree-optimization/56398
9606 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
9608 2013-02-20 Martin Jambor <mjambor@suse.cz>
9610 PR tree-optimization/55334
9611 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
9612 restricted pointers to arrays.
9614 2013-02-20 Richard Biener <rguenther@suse.de>
9615 Jakub Jelinek <jakub@redhat.com>
9617 PR tree-optimization/56396
9618 * tree-ssa-ccp.c (n_const_val): New static variable.
9619 (get_value): Return NULL for SSA names we don't have a lattice
9621 (ccp_initialize): Initialize n_const_val.
9622 * tree-ssa-copy.c (n_copy_of): New static variable.
9623 (init_copy_prop): Initialize n_copy_of.
9624 (get_value): Return NULL_TREE for SSA names we don't have a
9627 2013-02-20 Martin Jambor <mjambor@suse.cz>
9629 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
9631 2013-02-20 Richard Biener <rguenther@suse.de>
9633 * genpreds.c (write_lookup_constraint): Do not compare first
9634 letter of the constraint again.
9636 2013-02-20 Richard Biener <rguenther@suse.de>
9638 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
9640 (get_use_iv_cost): Terminate hashtable walk when coming across
9643 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
9645 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
9646 reassociation for avx2 targets.
9648 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9650 * config/microblaze/microblaze.c: microblaze_has_clz = 0
9651 Add version check for v8.10.a to enable microblaze_has_clz
9652 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
9653 version and TARGET_PATTERN_COMPARE check
9654 * config/microblaze/microblaze.md: New clzsi2 instruction
9656 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9658 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
9659 function before branching.
9661 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
9663 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
9665 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
9667 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
9670 * sel-sched.c: Include ira.h.
9671 (implicit_clobber_conflict_p): New function.
9672 (moveup_expr): Use it.
9673 * Makefile.in (sel-sched.o): Depend on ira.h.
9675 2013-02-19 Richard Biener <rguenther@suse.de>
9677 PR tree-optimization/56384
9678 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
9679 (vn_hash_type): Split out from ...
9680 (vn_hash_constant_with_type): ... here.
9681 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
9682 (vn_phi_eq): Compare types from vn_phi_s structure.
9683 (vn_phi_lookup): Populate vn_phi_s type.
9684 (vn_phi_insert): Likewise.
9686 2013-02-19 Jakub Jelinek <jakub@redhat.com>
9688 PR tree-optimization/56350
9689 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
9690 if haven't found reduction or nested cycle operand, rather than
9691 asserting we must find it.
9693 PR tree-optimization/56381
9694 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
9697 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
9698 Jakub Jelinek <jakub@redhat.com>
9701 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
9702 (swap_optab_enable): Same.
9703 (init_all_optabs): Use argument instead of global.
9704 * tree.h (struct tree_optimization_option): New field target_optabs.
9705 * expr.h (init_all_optabs): Add argument to prototype.
9706 (TREE_OPTIMIZATION_OPTABS): New.
9707 (save_optabs_if_changed): Protoize.
9708 * optabs.h: Declare this_fn_optabs.
9709 * optabs.c (save_optabs_if_changed): New.
9710 Declare this_fn_optabs.
9711 (init_optabs): Add argument to init_all_optabs() call.
9712 * function.c (invoke_set_current_function_hook): Handle per
9714 * function.h (struct function): New field optabs.
9715 * config/mips/mips.c (mips_set_mips16_mode): Handle when
9716 optimization_current_node has changed.
9717 * target-globals.h (save_target_globals_default_opts): Protoize.
9718 * target-globals.c (save_target_globals_default_opts): New.
9720 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9723 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
9724 registers %fr12 and %fr12R as call used.
9727 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
9728 and HImode, require all displacements to be an integer multiple of
9730 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
9731 only allow QImode and HImode when reload is in progress and strict is
9732 true. Likewise for symbolic addresses. Use base14_operand to check
9733 displacements in REG+BASE addresses.
9735 2013-02-18 Richard Biener <rguenther@suse.de>
9737 PR tree-optimization/56366
9738 * tree-vect-loop.c (get_initial_def_for_induction): Properly
9739 handle sign-conversion of outer-loop initial induction value.
9741 2013-02-18 Richard Biener <rguenther@suse.de>
9744 * cfghooks.c (merge_blocks): If we merge a latch into another
9745 block adjust references to it.
9746 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
9747 (verify_loop_structure): Verify that a recorded latch is in fact
9750 2013-02-18 Richard Biener <rguenther@suse.de>
9752 PR tree-optimization/56321
9753 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
9754 order SSA name release and virtual operand unlinking.
9756 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9758 * config/microblaze/microblaze.md (save_stack_block): Define.
9759 (restore_stack_block): Likewise.
9761 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9763 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
9764 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
9765 * config/microblaze/microblaze.c (microblaze_option_override):
9766 Bail out early for PIC modes when target does not support PIC.
9768 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9770 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
9771 Replace with a microblaze version.
9772 (microblaze_trampoline_init): Adapt for microblaze.
9773 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
9776 2013-02-16 Jakub Jelinek <jakub@redhat.com>
9777 Dodji Seketeli <dodji@redhat.com>
9780 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
9781 (instrument_mem_region_access): Do not forget to always put
9782 instrumentation of the of 'base' and 'base + len' in a "if (len !=
9783 0) statement, even for cases where either 'base' or 'base + len'
9784 are not instrumented -- because they have been previously
9785 instrumented. Simplify the logic by putting all the statements
9786 instrument 'base + len' inside a sequence, and then insert that
9787 sequence right before the current insertion point. Then, to
9788 instrument 'base + len', just get an iterator on that statement.
9789 And do not forget to update the pointer to iterator the function
9790 received as argument.
9792 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
9794 PR rtl-optimization/56348
9795 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
9797 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
9799 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
9800 (clean_graph_dump_file): Pass base to start_graph_dump.
9802 2013-02-14 Richard Henderson <rth@redhat.com>
9805 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
9807 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
9809 * collect2-aix.h: Define F_LOADONLY.
9811 2013-02-14 Richard Biener <rguenther@suse.de>
9814 * varasm.c (output_constant_def_1): Get the decl representing
9815 the constant as argument.
9816 (output_constant_def): Wrap output_constant_def_1.
9817 (make_decl_rtl): Use output_constant_def_1 with the decl
9818 representing the constant.
9819 (build_constant_desc): Optionally re-use a decl already
9820 representing the constant.
9821 (tree_output_constant_def): Adjust.
9823 2013-02-14 Dodji Seketeli <dodji@redhat.com>
9826 * asan.c (instrument_builtin_call): Really put the length of the
9827 second source argument into src1_len.
9829 2013-02-13 Jakub Jelinek <jakub@redhat.com>
9831 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
9832 argument. If it is false, don't create edge from then_bb to
9834 (insert_if_then_before_iter): Pass true to it.
9835 (build_check_stmt): Pass false to it.
9836 (transform_statements): Flush hash table only on extended basic
9837 block boundaries, rather than at the beginning of every bb.
9838 Don't flush hash table on nonfreeing_call_p calls.
9839 * tree-flow.h (nonfreeing_call_p): New prototype.
9840 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
9842 2013-02-13 David S. Miller <davem@davemloft.net>
9844 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
9846 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
9849 * ira.c (max_regno_before_ira): Move from ...
9851 (fix_reg_equiv_init): Use max_regno_before_ira instead of
9854 2013-02-13 Jakub Jelinek <jakub@redhat.com>
9856 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
9858 2013-02-13 Richard Biener <rguenther@suse.de>
9861 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
9862 globals in MEM_REFs.
9864 2013-02-13 Richard Biener <rguenther@suse.de>
9866 * loop-init.c (loop_optimizer_init): Clear loop state when
9867 re-initializing preserved loops.
9868 * loop-unswitch.c (unswitch_single_loop): Return whether
9869 we unswitched the loop. Do not verify loop state here.
9870 (unswitch_loops): When we unswitched a loop discover new loops.
9872 2013-02-13 Kostya Serebryany <kcc@google.com>
9874 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
9876 * sanitizer.def: Rename __asan_init to __asan_init_v1.
9878 2013-02-12 Dodji Seketeli <dodji@redhat.com>
9880 Avoid instrumenting duplicated memory access in the same basic block
9881 * Makefile.in (asan.o): Add new dependency on hash-table.h
9882 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
9883 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
9884 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
9885 (free_mem_ref_resources, has_mem_ref_been_instrumented)
9886 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
9887 (get_mem_ref_of_assignment): New functions.
9888 (get_mem_refs_of_builtin_call): Extract from
9889 instrument_builtin_call and tweak a little bit to make it fit with
9891 (instrument_builtin_call): Use the new
9892 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
9893 of is_gimple_builtin_call.
9894 (instrument_derefs, instrument_mem_region_access): Insert the
9895 instrumented memory reference into the hash table.
9896 (maybe_instrument_assignment): Renamed instrument_assignment into
9897 this, and change it to advance the iterator when instrumentation
9898 actually happened and return true in that case. This makes it
9899 homogeneous with maybe_instrument_assignment, and thus give a
9900 chance to callers to be more 'regular'.
9901 (transform_statements): Clear the memory reference hash table
9902 whenever we enter a new BB, when we cross a function call, or when
9903 we are done transforming statements. Use
9904 maybe_instrument_assignment instead of instrumentation. No more
9905 need to special case maybe_instrument_assignment and advance the
9906 iterator after calling it; it's now handled just like
9907 maybe_instrument_call. Update comment.
9909 2013-02-13 Richard Biener <rguenther@suse.de>
9911 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
9912 Fix loop discovery code.
9914 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
9917 * lra-constraints.c (process_alt_operands): Match early clobber
9918 operand with itself. Check conflicts with earlyclobber only if
9919 the operand is not reloaded. Prefer to reload conflicting operand
9920 if earlyclobber and matching operands are the same.
9922 2013-02-12 Richard Biener <rguenther@suse.de>
9925 * lto-streamer-out.c (write_symbol): Do not output symbols
9926 for hard register variables.
9928 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
9931 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
9932 (umulsidi3_insn, mulsidi3_insn): New insns.
9934 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
9936 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
9937 (struct tune_params): Add vec_costs field.
9938 * config/arm/arm.c (arm_builtin_vectorization_cost)
9939 (arm_add_stmt_cost): New functions.
9940 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
9941 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
9942 (arm_default_vec_cost): New struct of type cpu_vec_costs.
9943 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
9944 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
9945 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
9946 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
9948 2013-02-12 Richard Biener <rguenther@suse.de>
9951 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
9952 decls again if possible.
9954 2013-02-12 Richard Biener <rguenther@suse.de>
9957 * tree-ssa.c (verify_ssa_name): Fix check, move
9958 SSA_NAME_IN_FREE_LIST check up.
9960 2013-02-12 Jakub Jelinek <jakub@redhat.com>
9961 Steven Bosscher <steven@gcc.gnu.org>
9963 PR rtl-optimization/56151
9964 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
9965 equal to op0 or op1, and last_insn pattern is CODE operation
9966 with MEM dest and one of the operands matches that MEM.
9968 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
9970 * doc/extend.texi: Document Function Multiversioning and "default"
9971 parameter string to target attribute.
9972 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
9973 target attribute parameter is "default".
9974 (ix86_compare_version_priority): Remove checks for target attribute.
9975 (ix86_mangle_function_version_assembler_name): Change error to sorry.
9976 Remove check for target attribute equal to NULL. Add assert.
9977 (ix86_generate_version_dispatcher_body): Change error to sorry.
9979 2013-02-11 Iain Sandoe <iain@codesourcery.com>
9980 Jack Howarth <howarth@bromo.med.uc.edu>
9981 Patrick Marlier <patrick.marlier@gmail.com>
9984 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
9985 define ENDFILE_SPEC as TM_DESTRUCTOR.
9986 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
9988 2013-02-11 Alexander Potapenko <glider@google.com>
9989 Jack Howarth <howarth@bromo.med.uc.edu>
9990 Jakub Jelinek <jakub@redhat.com>
9993 * config/darwin.c (cdtor_record): Rename ctor_record.
9994 (sort_cdtor_records): Rename sort_ctor_records.
9995 (finalize_dtors): New routine to sort destructors by
9996 priority before use in assemble_integer.
9997 (machopic_asm_out_destructor): Use finalize_dtors if needed.
9999 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
10001 PR rtl-optimization/56275
10002 * simplify-rtx.c (avoid_constant_pool_reference): Check that
10003 offset is non-negative and less than cmode size before
10004 calling simplify_subreg.
10006 2013-02-11 Richard Biener <rguenther@suse.de>
10008 PR tree-optimization/56264
10009 * cfgloop.h (fix_loop_structure): Adjust prototype.
10010 * loop-init.c (fix_loop_structure): Return the number of
10011 newly discovered loops.
10012 * tree-cfgcleanup.c (repair_loop_structures): When new loops
10013 are discovered, do a full loop-closed SSA rewrite.
10015 2013-02-11 Richard Biener <rguenther@suse.de>
10017 PR tree-optimization/56273
10018 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
10020 (check_array_ref): Fix missing newline in dumps.
10021 (search_for_addr_array): Likewise.
10023 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
10025 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
10027 2013-02-09 Jakub Jelinek <jakub@redhat.com>
10030 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
10032 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
10034 PR rtl-optimization/56246
10035 * lra-constraints.c (simplify_operand_subreg): Try to reuse
10037 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
10038 constraints are satisfied.
10040 2013-02-08 Jeff Law <law@redhat.com>
10043 * emit-rtl.c (reg_is_parm_p): New function.
10044 * regs.h (reg_is_parm_p): New prototype.
10045 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
10046 callee-clobbered registers.
10048 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
10051 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
10052 If there is no implicit builtin declaration, just return NULL.
10054 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
10056 * config/i386/sse.md (FMAMODEM): New mode iterator.
10057 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
10058 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
10060 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
10062 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
10063 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
10064 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
10066 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10068 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
10069 (microblaze*-*-elf): Likewise.
10070 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
10072 * config/microblaze/microblaze-c.c: Add builtin defines for
10073 _LITTLE_ENDIAN and _BIG_ENDIAN.
10074 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
10075 add to TARGET_DEFAULT flags.
10076 Expand ASM_SPEC and LINK_SPEC.
10077 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
10078 * config/microblaze/microblaze.md: Update extendsidi2 and
10079 movdi_internal instructions to use low-order / high-order reg
10081 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
10082 options and inversemask / mask of LITTLE_ENDIAN.
10083 * config/microblaze/t-microblaze: Expand multilib options to
10084 include mlittle-endian (le) and update exceptions patterns.
10086 2013-02-08 Jakub Jelinek <jakub@redhat.com>
10088 PR rtl-optimization/56195
10089 * lra-constraints.c (get_reload_reg): Don't reuse regs
10090 if they have smaller mode than requested, if they have
10091 wider mode than requested, try to return a SUBREG.
10093 PR tree-optimization/56250
10094 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
10095 if type is unsigned and code isn't MULT_EXPR.
10097 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
10099 PR tree-optimization/56064
10100 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
10101 bits according to mode.
10102 * fixed-value.h (fixed_from_double_int)
10103 (const_fixed_from_double_int): Adjust comments.
10105 2013-02-08 Richard Biener <rguenther@suse.de>
10108 * lto-streamer.h (struct data_in): Remove current_file, current_line
10109 and current_col members.
10110 * lto-streamer-out.c (lto_output_location): Stream changed bits
10111 en-block for efficiency.
10112 * lto-streamer-in.c (clear_line_info): Remove.
10113 (lto_input_location): Cache current file, line and column
10114 globally via local statics. Read changed bits en-block.
10115 (input_function): Do not call clear_line_info.
10116 (lto_read_body): Likewise.
10117 (lto_input_toplevel_asms): Likewise.
10119 2013-02-08 Michael Matz <matz@suse.de>
10121 PR tree-optimization/52448
10122 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
10123 (nt_call_phase): New static.
10124 (add_or_mark_expr): Only mark accesses with newer phase than any
10126 (nonfreeing_call_p): New.
10127 (nt_init_block): Update nt_call_phase, mark blocks as visited.
10128 (nt_fini_block): Keep blocks marked as visited.
10129 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
10131 2013-02-08 Richard Biener <rguenther@suse.de>
10133 * ira.c (ira): Free broken dominator information.
10135 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
10137 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
10139 2013-02-08 Marek Polacek <polacek@redhat.com>
10141 * cfgloop.c (verify_loop_structure): Add more checking of headers.
10143 2013-02-08 Richard Biener <rguenther@suse.de>
10145 PR middle-end/56181
10146 * cfgloop.h (flow_loops_find): Adjust.
10147 (bb_loop_header_p): Declare.
10148 * cfgloop.c (bb_loop_header_p): New function split out from ...
10149 (flow_loops_find): ... here. Adjust function signature,
10150 support incremental loop structure update.
10151 (verify_loop_structure): Cleanup. Verify a loop is a loop.
10152 * cfgloopmanip.c (fix_loop_structure): Move ...
10153 * loop-init.c (fix_loop_structure): ... here.
10154 (apply_loop_flags): Split out from ...
10155 (loop_optimizer_init): ... here.
10156 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
10157 in incremental mode, only remove dead loops here.
10159 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
10162 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
10163 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
10164 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
10165 (*round<mode>3.libgcc): New insns for fixed-modes.
10166 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
10167 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
10168 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
10169 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
10170 implementations. Define to __builtin_avr_absFX,
10171 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
10172 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
10173 __builtin_avr_countlsFX, respectively.
10174 * config/avr/avr-c.c (target.h): Include it.
10175 (enum avr_builtin_id): New enum.
10176 (avr_resolve_overloaded_builtin): New static function.
10177 (avr_register_target_pragmas): Use it to set
10178 targetm.resolve_overloaded_builtin.
10179 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
10180 tree nodes used by DEF_BUILTIN.
10181 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
10182 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
10183 <AVR_BUILTIN_xxBITS>: Same.
10185 2013-02-08 Richard Biener <rguenther@suse.de>
10187 * cfgloop.c (verify_loop_structure): Properly handle
10188 a loop exiting to another loop header.
10189 * ira-int.h (ira_loops): Remove.
10190 * ira.c (ira_loops): Remove.
10191 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
10192 (do_reload): Use loop_optimizer_finalize.
10193 * ira-build.c (create_loop_tree_nodes): Use get_loops and
10194 number_of_loops to access the loop tree.
10195 (more_one_region_p): Likewise.
10196 (finish_loop_tree_nodes): Likewise.
10197 (rebuild_regno_allocno_maps): Likewise.
10198 (mark_loops_for_removal): Likewise.
10199 (mark_all_loops_for_removal): Likewise.
10200 (remove_unnecessary_regions): Likewise.
10201 (ira_build): Likewise.
10202 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
10204 2013-02-08 Richard Biener <rguenther@suse.de>
10206 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
10207 * ipa-pure-const.c (analyze_function): Avoid calling
10208 mark_irreducible_loops twice.
10209 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
10211 2013-02-07 David S. Miller <davem@davemloft.net>
10213 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
10215 * var-tracking.c (vt_add_function_parameter): Test the presence of
10216 HAVE_window_save properly and do not remap argument registers when
10217 we have a leaf function.
10219 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
10222 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
10224 * config/i386/i386.c (ix86_print_operand): Ditto.
10226 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
10228 * lra-constraints.c (process_alt_operands): Fix recently added comment.
10230 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
10232 PR rtl-optimization/56225
10233 * lra-constraints.c (process_alt_operands): Check that reload hard
10234 reg can hold value for strict_low_part.
10236 2013-02-07 Jakub Jelinek <jakub@redhat.com>
10239 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
10240 dwarf2out_end_function.
10241 (in_first_function_p, maybe_at_text_label_p,
10242 first_loclabel_num_not_at_text_label): New variables.
10243 (dwarf2out_var_location): In the first function find out
10244 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
10245 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
10248 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
10250 PR rtl-optimization/56178
10251 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
10252 SUBREG of a register. Tidy up related block of code.
10253 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
10254 note if the source is a register or a SUBREG of a register.
10256 2013-02-07 Jakub Jelinek <jakub@redhat.com>
10259 * config/rs6000/rs6000.md (ptrm): New mode attr.
10260 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
10261 call_value_indirect_aix<pttrsize>,
10262 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
10265 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
10267 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
10268 if -bnortl. Convert to strcmp and strncmp.
10270 2013-02-07 Alan Modra <amodra@gmail.com>
10273 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
10274 addresses won't wrap when offsetting.
10275 (rs6000_secondary_reload): Provide secondary reloads needed for
10276 wrapping LO_SUM addresses.
10278 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
10280 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
10281 MACH, just __MACH__.
10283 2013-02-06 Richard Biener <rguenther@suse.de>
10285 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
10286 instead of calling fix_loop_structure.
10288 2013-02-06 Jakub Jelinek <jakub@redhat.com>
10290 PR middle-end/56217
10291 * omp-low.c (use_pointer_for_field): Return false if
10292 lower_send_shared_vars doesn't generate any copy-out code.
10294 2013-02-06 Tom de Vries <tom@codesourcery.com>
10296 PR rtl-optimization/56131
10297 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
10298 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
10299 of the label is NULL. Add comment.
10301 2013-02-05 Jakub Jelinek <jakub@redhat.com>
10303 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
10306 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
10307 (STATIC_LIBTSAN_LIBS): Likewise.
10308 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
10309 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
10310 is defined, don't add anything else beyond that.
10311 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
10312 (LINK_COMMAND_SPEC): Use them.
10314 PR tree-optimization/56205
10315 * tree-stdarg.c (check_all_va_list_escapes): Return true if
10316 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
10317 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
10319 2013-02-05 Richard Biener <rguenther@suse.de>
10321 PR tree-optimization/53342
10322 PR tree-optimization/53185
10323 * tree-vectorizer.h (vect_check_strided_load): Remove.
10324 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
10325 not disallow peeling for vectorized strided loads.
10326 (vect_check_strided_load): Make static and simplify.
10327 (vect_analyze_data_refs): Adjust.
10328 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
10329 correctly when vectorizing strided loads.
10331 2013-02-05 Richard Biener <rguenther@suse.de>
10333 * doc/install.texi: Refer to ISL, not PPL.
10335 2013-02-05 Jan Hubicka <jh@suse.cz>
10337 PR tree-optimization/55789
10338 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
10340 2013-02-05 Jan Hubicka <jh@suse.cz>
10342 PR tree-optimization/55789
10343 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
10344 the dead call anyway.
10346 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
10349 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
10351 2013-02-04 Alexander Potapenko <glider@google.com>
10352 Jack Howarth <howarth@bromo.med.uc.edu>
10353 Jakub Jelinek <jakub@redhat.com>
10356 * config/darwin.c (sort_ctor_records): Stabilized qsort
10357 on constructor priority by using original position.
10358 (finalize_ctors): New routine to sort constructors by
10359 priority before use in assemble_integer.
10360 (machopic_asm_out_constructor): Use finalize_ctors if needed.
10362 2013-02-04 Jakub Jelinek <jakub@redhat.com>
10365 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
10366 about visibility on artificial decls.
10367 * config/sol2.c (solaris_assemble_visibility): Likewise.
10369 2013-02-04 Kai Tietz <ktietz@redhat.com>
10372 * config/i386/i386.c (function_value_ms_64): Add additional valtype
10373 argument and improve checking of return-argument types for 16-byte
10375 (ix86_function_value_1): Add additional valtype argument on call
10376 of function_value_64.
10377 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
10378 handling infunction_value_64 function.
10380 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
10382 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
10384 2013-02-04 Richard Biener <rguenther@suse.de>
10386 PR tree-optimization/56188
10387 * tree-ssa-structalias.c (label_visit): Consider case with
10388 initially non-empty points-to set.
10389 (perform_var_substitution): Dump node mapping and clean up.
10391 2013-02-04 Richard Guenther <rguenther@suse.de>
10394 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
10395 node prevail as last resort.
10396 (lto_symtab_merge_decls): Remove guard on LTRANS here.
10397 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
10399 2013-02-04 Richard Biener <rguenther@suse.de>
10401 PR tree-optimization/56113
10402 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
10404 (equiv_class_lookup_or_add): ... this.
10405 (label_visit): Adjust and fix error in previous patch.
10406 (perform_var_substitution): Adjust.
10408 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
10410 * config/sh/divtab.c: Fix formatting and comments throughout the file.
10411 * config/sh/sh4-300.md: Likewise.
10412 * config/sh/sh4a.md: Likewise.
10413 * config/sh/constraints.md: Likewise.
10414 * config/sh/sh.md: Likewise.
10415 * config/sh/netbsd-elf.h: Likewise.
10416 * config/sh/predicates.md: Likewise.
10417 * config/sh/sh-protos.h: Likewise.
10418 * config/sh/ushmedia.h: Likewise.
10419 * config/sh/linux.h: Likewise.
10420 * config/sh/sh.c: Likewise.
10421 * config/sh/superh.h: Likewise.
10422 * config/sh/elf.h: Likewise.
10423 * config/sh/sh4.md: Likewise.
10424 * config/sh/sh.h: Likewise.
10426 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10428 * config/pa/constraints.md: Adjust unused letters. Change "T"
10429 constraint to match_test floating_point_store_memory_operand().
10430 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
10431 (base14_operand): New.
10432 (floating_point_store_memory_operand): New.
10433 (integer_store_memory_operand): Revise to use base14_operand and
10434 reg_plus_base_memory_operand.
10435 (move_dest_operand): Allow symbolic_memory_operands.
10436 (symbolic_memory_operand): Check for LO_SOM.
10437 (symbolic_operand): Change default case to break.
10438 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
10439 CONST_DOUBLE values to be reloaded by putting them into memory when
10440 the destination is a floating point register.
10441 (movdf): Remove code to handle CONST_DOUBLE.
10443 (reload_indf_r1): New.
10444 (reload_insf_r1): New.
10445 Consistently use "Q" and "T" constraints with integer and floating
10446 point move instructions, respectively.
10447 (movdi): Remove FAIL.
10448 Change predicate for source operand unamed DImode move from
10449 general_operand to move_src_operand.
10450 (umulsidi3): Change predicate for destination operand to
10452 Likewise for similar unamed patterns.
10453 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
10454 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
10455 (hppa_legitimize_address): Simplify mask calculation.
10456 (pa_emit_move_sequence): Revised handling of secondary reloads from
10457 REG+D addresses for floating point loads and stores. Directly handle
10458 loading CONST0_RTX (mode) to a floating point register.
10459 (pa_secondary_reload): Handle reloading DF and SFmode constant values
10460 to floating point registers. Don't restrict secondary reloads to
10461 floating point registers to integer modes. Revise some comments and
10463 (TARGET_LEGITIMATE_ADDRESS_P): Define.
10464 (pa_legitimate_address_p): New.
10465 (pa_legitimize_reload_address): New.
10466 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
10467 (STRICT_REG_OK_FOR_BASE_P): New.
10468 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
10469 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
10471 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
10472 Andrew Dixie <andrewd@gentrack.com>
10474 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
10477 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
10479 * expmed.c (extract_bit_field_1): Pass the full width of the
10480 structure to get_best_reg_extraction_insn.
10482 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
10485 * configure.ac (use_cxa_atexit): Add AIX.
10486 * configure: Regenerate.
10488 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
10490 2013-02-01 Jakub Jelinek <jakub@redhat.com>
10493 * final.c (need_profile_function): New variable.
10494 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
10495 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
10496 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
10497 notes, targetm.asm_out.function_prologue doesn't emit anything,
10498 HAVE_prologue and profiler should be emitted before prologue,
10499 set need_profile_function instead of emitting it.
10500 (final_scan_insn): If need_profile_function, emit
10501 profile_function on the first NOTE_INSN_BASIC_BLOCK or
10502 NOTE_INSN_FUNCTION_BEG note.
10504 2013-02-01 Richard Henderson <rth@redhat.com>
10506 * config/rs6000/rs6000.md (smulditi3): New.
10509 * config/alpha/alpha.md (umulditi3): New.
10511 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
10513 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
10514 (ASM_OUTPUT_ALIGNED_LOCAL): New.
10516 2013-02-01 Richard Biener <rguenther@suse.de>
10518 PR tree-optimization/56113
10519 * tree-ssa-structalias.c (label_visit): Reduce work for
10520 single-predecessor nodes.
10522 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
10524 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
10525 range isn't testing for zero.
10527 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
10529 PR middle-end/56113
10530 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
10532 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
10533 Nick Clifton <nickc@redhat.com>
10535 * config/v850/constraints.md (Q): Define as a memory constraint.
10536 * config/v850/predicates.md (label_ref_operand): New predicate.
10537 (e3v5_shift_operand): New predicate.
10538 (ior_operator): New predicate.
10539 * config/v850/t-v850: Add e3v5 multilib.
10540 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
10541 (v850_gen_movdi): Prototype.
10542 * config/v850/v850.c: Add support for e3v5 architecture.
10543 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
10545 (construct_save_jarl): Add e3v5 long JARL support.
10546 (v850_adjust_insn_length): New function. Adjust length of call
10547 insns when using e3v5 instructions.
10548 (v850_gen_movdi): New function: Generate instructions to move a
10550 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
10551 (CPP_SPEC): Define __v850e3v5__ as appropriate.
10552 (TARGET_USE_FPU): Enable for e3v5.
10553 (CONST_OK_FOR_W): New macro.
10554 (ADJUST_INSN_LENGTH): Define.
10555 * config/v850/v850.md (UNSPEC_LOOP): Define.
10556 (attr cpu): Add v850e3v5.
10557 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
10558 (movdi): New pattern.
10559 (movdi_internal): New pattern.
10560 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
10561 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
10562 (cstoresf4): Likewise.
10563 (cstoredf4): Likewise.
10564 (insv): New pattern.
10565 (rotlso3_a): New pattern.
10566 (rotlsi3_b): New pattern
10567 (rotlsi3_v850e3v5): New pattern.
10568 (doloop_begin): New pattern.
10569 (fix_loop_counter): New pattern.
10570 (doloop_end): New pattern.
10571 (branch_normal): Add e3v5 long branch support.
10572 (branch_invert): Likewise.
10573 (branch_z_normal): Likewise.
10574 (branch_z_invert): Likewise.
10575 (branch_nz_normal): Likewise.
10576 (branch_nz_invert): Likewise.
10577 (call_internal_short): Add e3v5 register-indirect JARL support.
10578 (call_internal_long): Likewise.
10579 (call_value_internal_short): Likewise.
10580 (call_value_internal_long): Likewise.
10581 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
10582 (mloop): New option.
10583 * config.gcc: Add support for configuring v840e3v5 target.
10584 * doc/invoke.texi: Document new v850 specific command line options.
10586 2013-01-31 Paul Koning <ni1d@arrl.net>
10590 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
10591 children if parent is a class.
10592 (prune_unused_types_prune): Don't add DW_AT_declaration.
10594 2013-01-31 Richard Biener <rguenther@suse.de>
10596 PR tree-optimization/56157
10597 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
10598 match up operand with SLP child.
10600 2013-01-31 Jason Merrill <jason@redhat.com>
10603 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
10604 parameters the first time.
10605 (gen_scheduled_generic_parms_dies): Check completeness here.
10607 2013-01-31 Richard Biener <rguenther@suse.de>
10609 PR middle-end/53073
10610 * common.opt (faggressive-loop-optimizations): New flag,
10611 enabled by default.
10612 * doc/invoke.texi (faggressive-loop-optimizations): Document.
10613 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
10614 infer_loop_bounds_from_undefined by it.
10616 2013-01-31 Richard Biener <rguenther@suse.de>
10618 PR tree-optimization/56150
10619 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
10620 visit virtual operands.
10621 (find_uses_to_rename_bb): Likewise.
10623 2013-01-31 Richard Biener <rguenther@suse.de>
10625 PR tree-optimization/56150
10626 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
10627 mixed store non-store stmts.
10629 2013-01-30 Jakub Jelinek <jakub@redhat.com>
10632 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
10633 LIBASAN_EARLY_SPEC is defined.
10634 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
10635 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
10637 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
10640 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
10641 invalid args instead of ICEing on it.
10642 (ix86_valid_target_attribute_tree): Return error_mark_node if
10643 ix86_valid_target_attribute_inner_p failed.
10644 (ix86_valid_target_attribute_p): Return false only if
10645 ix86_valid_target_attribute_tree returned error_mark_node. Allow
10646 target("default") attribute.
10647 (sorted_attr_string): Change argument from const char * to tree,
10648 merge in all target attribute arguments rather than just one.
10649 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
10650 instead of free. Avoid using strcat.
10651 (ix86_mangle_function_version_assembler_name): Mangle
10652 target("default") as if no target attribute is present. Adjust
10653 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
10654 instead of xmalloc and XDELETEVEC instead of free.
10655 (ix86_function_versions): Don't return true if one of the decls
10656 doesn't have target attribute. If they don't and one of the decls
10657 is DECL_FUNCTION_VERSIONED, report an error. Adjust
10658 sorted_attr_string caller. Use XDELETEVEC instead of free.
10659 (ix86_supports_function_versions): Remove.
10660 (make_name): Fix up formatting.
10661 (make_dispatcher_decl): Remove resolver_name and its initialization.
10662 Avoid leaking memory.
10663 (is_function_default_version): Return true if there is
10664 target("default") attribute rather than no target attribute at all.
10665 (make_resolver_func): Avoid leaking memory.
10666 (ix86_generate_version_dispatcher_body): Likewise.
10667 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
10668 * target.def (supports_function_versions): Remove.
10669 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
10670 * doc/tm.texi: Regenerated.
10672 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
10674 PR rtl-optimization/56144
10675 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
10676 for values with side effects.
10678 2013-01-30 Richard Biener <rguenther@suse.de>
10680 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
10681 (sparseset_pop): Likewise.
10682 * cfganal.c (compute_idf): Likewise. Increase work-stack size
10683 to be able to use quick_push in the worker loop.
10685 2013-01-30 Marek Polacek <polacek@redhat.com>
10687 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
10689 2013-01-30 Richard Biener <rguenther@suse.de>
10692 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
10694 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
10696 PR tree-optimization/56064
10697 * fixed-value.c (fixed_from_double_int): New function.
10698 * fixed-value.h (fixed_from_double_int): New prototype.
10699 (const_fixed_from_double_int): New static inline function.
10700 * fold-const.c (native_interpret_fixed): New static function.
10701 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
10702 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
10703 (native_encode_fixed): New static function.
10704 (native_encode_expr) <FIXED_CST>: Use it.
10705 (native_interpret_int): Move double_int worker code to...
10706 * double-int.c (double_int::from_buffer): ...this new static method.
10707 * double-int.h (double_int::from_buffer): Prototype it.
10709 2013-01-30 Richard Biener <rguenther@suse.de>
10711 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
10712 New pointer-map and obstack.
10713 (init_alias_vars): Allocate pointer-map and obstack.
10714 (delete_points_to_sets): Free them.
10715 (find_what_var_points_to): Cache result.
10716 (find_what_p_points_to): Adjust for changed interface of
10717 find_what_var_points_to.
10718 (compute_points_to_sets): Likewise.
10719 (ipa_pta_execute): Likewise.
10721 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10723 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
10724 * configure: Regenerate.
10725 * config.in: Regenerate.
10726 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
10727 #nobits/#progbits if supported.
10729 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
10732 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
10733 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
10734 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
10736 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10738 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
10739 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
10741 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10743 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
10744 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
10746 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10748 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
10750 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
10751 * config/arm/cortex-a7.md: New bypasses using
10752 arm_mac_accumulator_is_result.
10754 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10756 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
10757 (cortex_a7_neon_mla): Likewise.
10758 (cortex_a7_fpfmad): New reservation.
10759 (cortex_a7_fpmacs): Use ffmas and update required units.
10760 (cortex_a7_fpmuld): Update required units and latency.
10761 (cortex_a7_fpmacd): Likewise.
10762 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
10763 (cortex_a7_neon). Likewise.
10764 (bypass) Update participating units.
10766 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10768 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
10769 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
10771 * config/arm/vfp11.md (vfp_farith): Use ffmas.
10772 (vfp_fmul): Use ffmad.
10773 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
10774 (cortex_r4_fmacd): Use ffmad.
10775 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
10776 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
10777 (cortex_a9_fmacd): Use ffmad.
10778 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
10779 (cortex_a8_vfp_macd): Use ffmad.
10780 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
10781 (cortex_a5_fpmacd): Use ffmad.
10782 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
10783 (cortex_a15_vfp_macd): Use ffmad.
10784 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
10786 2013-01-29 Jason Merrill <jason@redhat.com>
10789 * varasm.c (default_assemble_visibility): Don't warn about
10790 visibility on artificial decls.
10792 2013-01-29 Richard Biener <rguenther@suse.de>
10794 PR tree-optimization/56113
10795 * tree-ssa-structalias.c (equiv_class_lookup): Also return
10797 (label_visit): Free duplicate bitmaps and record the leader instead.
10798 (perform_var_substitution): Adjust.
10800 2013-01-29 Richard Biener <rguenther@suse.de>
10802 PR tree-optimization/55270
10803 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
10804 the CFG, schedule loops for fixup.
10806 2013-01-29 Nick Clifton <nickc@redhat.com>
10808 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
10811 2013-01-28 Leif Ekblad <leif@rdos.net>
10813 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
10814 * config/i386/i386.h (TARGET_RDOS): New macro.
10815 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
10816 * config/i386/i386.c (ix86_option_override_internal): For 64bit
10817 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
10818 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
10819 DEFAULT_LARGE_SECTION_THRESHOLD.
10820 * config/i386/i386.md (R14_REG, R15_REG): New constants.
10821 * config/i386/rdos.h: New file.
10822 * config/i386/rdos64.h: New file.
10824 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
10827 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
10830 2013-01-28 Jakub Jelinek <jakub@redhat.com>
10832 PR rtl-optimization/56117
10833 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
10834 call cselib_lookup_from_insn on the MEM before calling
10835 add_insn_mem_dependence.
10837 2013-01-28 Richard Biener <rguenther@suse.de>
10839 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
10840 to a stmt that didn't have one.
10841 (copy_phis_for_bb): Likewise for PHI arguments.
10842 (copy_debug_stmt): Likewise for debug stmts.
10844 2013-01-28 Richard Biener <rguenther@suse.de>
10846 PR tree-optimization/56034
10847 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
10848 (partition_builtin_p): Adjust.
10849 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
10850 it is the last partition.
10851 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
10852 up the vertex for the definition.
10853 (classify_partition): Classify whether a partition is a
10854 PKIND_REDUCTION, thus has uses outside of the loop.
10855 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
10856 Merge all PKIND_REDUCTION partitions into the last partition.
10857 (tree_loop_distribution): Seed partitions from reductions as well.
10859 2013-01-28 Jakub Jelinek <jakub@redhat.com>
10861 PR tree-optimization/56125
10862 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
10863 pow(x,c) into sqrt(x) * powi(x, n/2) or
10864 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
10865 optimizing for size.
10866 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
10867 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
10870 PR tree-optimization/56094
10871 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
10872 to UNKNOWN_LOCATION while gimplifying expr.
10874 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
10877 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
10878 operand 0 in movabs insn template for -masm=intel asm alternative.
10879 (*movabs<mode>_2): Ditto for operand 1.
10881 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
10884 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
10887 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10889 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
10892 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10894 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
10895 Undef to avoid warning.
10897 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
10899 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
10900 * configure: Regenerate.
10902 2013-01-25 Jakub Jelinek <jakub@redhat.com>
10904 PR tree-optimization/56098
10905 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
10906 for stmts with volatile ops.
10907 (cond_store_replacement): Don't optimize if assign has volatile ops.
10908 (cond_if_else_store_replacement_1): Don't optimize if either
10909 then_assign or else_assign have volatile ops.
10910 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
10913 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
10915 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
10917 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
10919 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
10920 missing ':' in asm example.
10922 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
10924 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
10925 entries into lane and laneq entries.
10926 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
10927 Remove AdvSIMD scalar modes.
10928 (aarch64_sq<r>dmulh_laneq<mode>): New.
10929 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
10931 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
10932 builtin implementations to relfect changes in RTL in aarch64-simd.md.
10933 * config/aarch64/iterators.md (VCOND): New.
10936 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
10939 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
10940 Add NULL LIBNAME argument to existing definitions.
10941 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
10942 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
10943 * config/avr/avr.c (DEF_BUILTIN): Same.
10944 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
10945 (avr_expand_builtin): Expand to a vanilla call if a libgcc
10946 implementation is available (DECL_ASSEMBLER_NAME is set).
10947 (avr_fold_absfx): New static function.
10948 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
10949 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
10950 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
10951 AVR_BUILTIN_ABSLLK.
10952 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
10953 (abshk, absk, abslk, absllk): Provide as static inline functions.
10955 2013-01-25 Marek Polacek <polacek@redhat.com>
10957 PR tree-optimization/56035
10958 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
10960 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
10962 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
10963 (*movtf_internal_rex64): Add (!o,C) alternative
10964 (*movxf_internal_rex64): Ditto.
10965 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
10967 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
10969 * doc/invoke.texi: fix typo.
10970 * doc/objc.texi: fix typo.
10972 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
10974 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
10975 for the first two alternatives.
10977 2013-01-24 Diego Novillo <dnovillo@google.com>
10979 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
10980 (ggc-zone.o): Remove.
10981 * configure.ac: Remove option --with-gc.
10982 * configure: Re-generate.
10983 * doc/install.texi: Remove documentation for --with-gc.
10984 * gengtype.c (write_enum_defn): Remove. Update all users.
10985 (write_Types_process_field): Remove generation of gt_e_* argument.
10986 (output_type_enum): Remove. Update all users.
10987 (write_enum_defn): Remove. Update all users.
10988 (enum alloc_zone): Remove. Update all users.
10989 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
10990 * ggc-common.c (ggc_splay_alloc): Remove first argument.
10991 Update all callers.
10992 (struct ptr_data): Remove field TYPE. Update all users.
10993 (gt_pch_note_object): Remove argument TYPE. Update all users.
10994 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
10996 * ggc-none.c (ggc_alloc_typed_stat): Remove.
10997 (struct alloc_zone): Remove.
10998 (ggc_internal_alloc_zone_stat): Remove.
10999 (ggc_internal_cleared_alloc_zone_stat): Remove.
11000 * ggc-page.c (ggc_alloc_typed_stat): Remove.
11001 (ggc_pch_count_object): Remove last argument. Update all users.
11002 (ggc_pch_alloc_object): Remove last argument. Update all users.
11003 (struct alloc_zone): Remove.
11004 * ggc-zone.c: Remove.
11005 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
11006 (struct alloc_zone): Remove.
11007 (ggc_alloc_typed_stat): Remove.
11008 (ggc_alloc_typed): Remove.
11009 (ggc_splay_alloc): Remove first argument.
11010 (rtl_zone): Remove. Update all users.
11011 (tree_zone): Remove. Update all users.
11012 (tree_id_zone): Remove. Update all users.
11013 (ggc_internal_zone_alloc_stat): Remove. Update all users.
11014 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
11015 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
11016 * tree-ssanames.c: Remove references to zone allocator in comments.
11018 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
11020 * config/avr/avr.c (avr_out_fract): Make register numbers that
11021 might be outside of source operand signed.
11023 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
11025 * config/i386/constraints.md (Yf): New constraint.
11026 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
11027 of f constraint to conditionaly disable x87 register preferences.
11028 (*movdf_internal): Ditto.
11029 (*movsf_internal): Ditto.
11031 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
11033 PR inline-asm/55934
11034 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
11035 that have operands with impossible constraints.
11036 Add a FIXME for a speed-up opportunity.
11037 * lra-constraints.c (process_alt_operands): Verify that a class
11038 selected from constraints on asms is valid for the operand mode.
11039 (curr_insn_transform): Remove incorrect comment.
11041 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
11043 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
11044 TOC operand is a valid symbol ref in the constant pool.
11046 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11048 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
11050 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
11053 * config/avr/stdfix.h: New file.
11054 * t-avr (stdfix-gcc.h): New rule to build it.
11055 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
11057 2013-01-23 Kostya Serebryany <kcc@google.com>
11059 * config/darwin.h: remove dependency on
11060 CoreFoundation (asan on Mac OS).
11062 2013-01-23 Jakub Jelinek <jakub@redhat.com>
11065 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
11066 instead of cmpdi_operand for first comparison operand.
11067 Don't assert that comparison operands aren't both constants.
11069 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
11071 * doc/install.texi (Downloading the Source): Update references to
11072 downloading separate components.
11074 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
11076 * doc/extend.texi (__int128): Improve grammar.
11078 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
11081 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
11082 alternative to (o,r).
11083 (*movdi_internal_rex64): Remove (!o,n) alternative.
11084 (DImode immediate->memory splitter): Remove.
11085 (DImode immediate->memory peephole2): Remove.
11086 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
11087 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
11088 alternative to (!o,*r).
11089 (*movtf_internal_sse): New pattern.
11090 (*movxf_internal_rex64): New pattern.
11091 (*movxf_internal): Disable for TARGET_64BIT.
11092 (*movdf_internal_rex64): Remove (!o,F) alternative.
11094 2013-01-22 Jakub Jelinek <jakub@redhat.com>
11096 PR middle-end/56074
11097 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
11098 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
11099 * tree-vect-loop-manip.c (find_loop_location): Also ignore
11100 stmt locations where LOCATION_LOCUS of the stmt location is
11101 UNKNOWN_LOCATION or BUILTINS_LOCATION.
11104 * config/i386/i386.md (UNSPEC_STOS): New.
11105 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
11106 *strsetqi_1): Add UNSPEC_STOS.
11108 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
11111 * doc/invoke.texi: Remove left over -Wsynth example.
11113 2013-01-21 Jakub Jelinek <jakub@redhat.com>
11115 PR tree-optimization/56051
11116 * fold-const.c (fold_binary_loc): Don't fold
11117 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
11118 a narrowing conversion, or widening conversion from signed
11121 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
11123 PR rtl-optimization/56023
11124 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
11125 dependent on debug instruction.
11127 2013-01-21 Martin Jambor <mjambor@suse.cz>
11129 PR middle-end/56022
11130 * function.c (allocate_struct_function): Call
11131 invoke_set_current_function_hook earlier.
11133 2013-01-21 Jakub Jelinek <jakub@redhat.com>
11135 * reload1.c (init_reload): Only initialize reload_obstack
11136 during the first call.
11138 2013-01-21 Marek Polacek <polacek@redhat.com>
11140 * cfgloop.c (verify_loop_structure): Fix up grammar.
11142 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
11144 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
11145 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
11147 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11150 * config/arm/marvell-pj4.md: Update copyright year.
11151 Fix up use of alu to alu_reg and simple_alu_imm.
11153 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
11155 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
11157 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
11160 * lra-constraints.c (curr_insn_transform): Don't reuse original
11161 insn for secondary memory move when memory mode should be different.
11163 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11165 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
11166 atomic_storedi_1): New patterns.
11168 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11170 btver2 pipeline descriptions.
11171 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
11173 * config/i386/i386.md (btver2_decode): New type attributes.
11174 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
11176 * config/i386/btver2.md: New file describing btver2 pipelines.
11178 2013-01-19 Andrew Pinski <apinski@cavium.com>
11180 PR tree-optimization/52631
11181 * tree-ssa-sccvn (visit_use): Before looking up the original
11182 statement, try looking up the simplified expression.
11184 2013-01-19 Anthony Green <green@moxielogic.com>
11186 * config/moxie/moxie.c (moxie_expand_prologue): Set
11187 current_function_static_stack_size.
11189 2013-01-18 Jakub Jelinek <jakub@redhat.com>
11191 PR tree-optimization/56029
11192 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
11193 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
11195 2013-01-18 Sharad Singhai <singhai@google.com>
11197 PR tree-optimization/55995
11198 * dumpfile.c (dump_loc): Print location only if available.
11199 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
11201 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
11204 * lra-constraints.c (curr_insn_transform): Reuse original insn for
11205 secondary memory move.
11206 (inherit_reload_reg): Use rclass instead of cl for
11207 check_secondary_memory_needed_p.
11209 2013-01-18 Jakub Jelinek <jakub@redhat.com>
11211 PR middle-end/56015
11212 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
11213 the case where writing real complex part of target modifies op1.
11215 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
11217 * config/aarch64/aarch64-simd.md
11218 (aarch64_vcond_internal<mode>): Handle unordered cases.
11219 * config/aarch64/iterators.md (v_cmp_result): New.
11221 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
11222 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11224 * config/arm/marvell-pj4.md: New file.
11225 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
11226 * config/arm/arm.md (generic_sched): Add marvell_pj4.
11227 (generic_vfp): Likewise.
11228 * config/arm/arm-cores.def: Add marvell-pj4.
11229 * config/arm/arm-tune.md: Regenerate.
11230 * config/arm/arm-tables.opt: Regenerate.
11231 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
11232 * doc/invoke.texi: Document marvell-pj4.
11234 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
11236 * config/aarch64/arm_neon.h: Map scalar types to standard types.
11238 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
11243 * var-tracking.c (negative_power_of_two_p): New.
11244 (global_get_addr_cache, local_get_addr_cache): New.
11245 (get_addr_from_global_cache, get_addr_from_local_cache): New.
11246 (vt_canonicalize_addr): Rewrite using the above. Adjust the
11248 (vt_stack_offset_p): Remove.
11249 (vt_canon_true_dep): Always canonicalize loc's address.
11250 (clobber_overlapping_mems): Make sure we have a MEM.
11251 (local_get_addr_clear_given_value): New.
11252 (val_reset): Clear local cached entries.
11253 (compute_bb_dataflow): Create and release the local cache.
11254 Disable duplicate MEMs clobbering.
11255 (emit_notes_in_bb): Clobber MEMs likewise.
11256 (vt_emit_notes): Create and release the local cache.
11257 (vt_initialize, vt_finalize): Create and release the global
11258 cache, respectively.
11259 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
11261 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
11263 PR libmudflap/53359
11264 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
11265 not found in the symtab.
11267 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
11270 PR rtl-optimization/55547
11271 PR rtl-optimization/53827
11274 * alias.c (offset_overlap_p): New, factored out of...
11275 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
11276 the conservative special case for symbolic constants. Don't
11277 adjust zero sizes on alignment.
11279 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
11281 PR rtl-optimization/52573
11282 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
11283 REG_UNUSED for the same register.
11285 2013-01-17 Richard Biener <rguenther@suse.de>
11286 Marek Polacek <polacek@redhat.com>
11288 PR rtl-optimization/55833
11289 * loop-unswitch.c (unswitch_loops): Move loop verification...
11290 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
11291 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
11292 Set it to true when we're removing a loop from hierarchy tree in
11293 an irreducible region.
11294 (fix_bb_placements): Adjust caller.
11295 (fix_loop_placements): Likewise.
11297 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
11299 * config/avr/builtins.def (DEF_BUILTIN): Factor out
11300 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
11301 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
11302 Remove ID. Adjust comments.
11303 * config/avr/avr-c.c (avr_builtin_name): Remove.
11304 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
11305 * config/avr/avr.c (avr_tolower): New static function.
11306 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
11307 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
11308 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
11311 2013-01-17 Jan Hubicka <jh@suse.cz>
11313 PR tree-optimization/55273
11314 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
11316 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
11319 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
11320 store through atomic_store<mode>_1.
11321 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
11323 2013-01-17 Martin Jambor <mjambor@suse.cz>
11325 PR tree-optimizations/55264
11326 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
11327 for virtual methods.
11328 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
11329 virtual methods before inlining is over.
11330 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
11332 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
11335 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
11337 PR rtl-optimization/56005
11338 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
11339 pending reads for prefetch.
11341 2013-01-16 Ian Bolton <ian.bolton@arm.com>
11343 * config/aarch64/aarch64.md
11344 (*cstoresi_neg_uxtw): New pattern.
11345 (*cmovsi_insn_uxtw): New pattern.
11346 (*<optab>si3_uxtw): New pattern.
11347 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
11348 (*<optab>si3_insn_uxtw): New pattern.
11349 (*bswapsi2_uxtw): New pattern.
11351 2013-01-16 Richard Biener <rguenther@suse.de>
11353 * tree-inline.c (tree_function_versioning): Remove set but
11354 never used variable.
11356 2013-01-16 Richard Biener <rguenther@suse.de>
11358 PR tree-optimization/55964
11359 * tree-flow.h (rename_variables_in_loop): Remove.
11360 (rename_variables_in_bb): Likewise.
11361 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
11362 (copy_loop_before): Adjust and delete update-ssa status.
11363 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
11364 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
11365 (rename_variables_in_loop): Remove.
11366 (slpeel_update_phis_for_duplicate_loop): Likewise.
11367 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
11368 use available cfg machinery instead of duplicating it.
11369 Update PHI nodes and perform poor-mans SSA update here.
11370 (slpeel_tree_peel_loop_to_edge): Adjust.
11372 2013-01-16 Richard Biener <rguenther@suse.de>
11374 PR tree-optimization/54767
11375 PR tree-optimization/53465
11376 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
11377 (vrp_visit_phi_node): For PHI arguments coming via backedges
11378 drop all symbolical range information.
11379 (execute_vrp): Compute backedges.
11381 2013-01-16 Richard Biener <rguenther@suse.de>
11383 * doc/install.texi: Update CLooG and ISL requirements to
11386 2013-01-16 Christian Bruel <christian.bruel@st.com>
11389 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
11390 (broken_move): Handle UNSPECV_SP_SWITCH_B.
11391 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
11393 2013-01-16 DJ Delorie <dj@redhat.com>
11395 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
11396 (UNSPECV_SP_SWITCH_E): New.
11397 (sp_switch_1): Change to an unspec.
11398 (sp_switch_2): Change to an unspec. Don't use post-inc when we
11401 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
11403 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
11404 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
11405 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
11406 (expand_mem_thread_fence): Ditto.
11407 (expand_mem_signal_fence): Ditto.
11408 (expand_atomic_load): Ditto.
11409 (expand_atomic_store): Ditto.
11411 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
11413 PR rtl-optimization/55547
11414 PR rtl-optimization/53827
11417 * alias.c (memrefs_conflict_p): Set sizes to negative after
11420 2013-01-15 Jakub Jelinek <jakub@redhat.com>
11423 * function.c (thread_prologue_and_epilogue_insns): Always
11424 add crtl->drap_reg to set_up_by_prologue.set, even if
11425 stack_realign_drap is false.
11427 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11429 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
11430 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
11431 *call): Fix indention.
11433 2013-01-15 Tom de Vries <tom@codesourcery.com>
11436 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
11439 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
11441 PR rtl-optimization/55153
11442 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
11444 2013-01-15 Martin Jambor <mjambor@suse.cz>
11446 PR tree-optimization/55920
11447 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
11448 accesses as grp_to_be_debug_replaced.
11450 2013-01-15 Jakub Jelinek <jakub@redhat.com>
11452 PR tree-optimization/55920
11453 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
11454 there is non-useless type conversion needed from debug rhs to lhs,
11455 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
11457 2013-01-15 Joseph Myers <joseph@codesourcery.com>
11458 Mikael Pettersson <mikpe@it.uu.se>
11461 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
11463 (ASM_OUTPUT_CASE_LABEL): Remove.
11464 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
11465 * final.c (shorten_branches): Update alignment of labels before
11466 jump tables if CASE_VECTOR_SHORTEN_MODE.
11468 2013-01-15 Richard Biener <rguenther@suse.de>
11471 * system.h: Do not include gmp.h for building host tools.
11473 2013-01-15 Richard Biener <rguenther@suse.de>
11475 PR middle-end/55882
11476 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
11477 account for bitpos when computing alignment.
11479 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
11481 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
11482 (ix86_target_macros_internal): Likewise.
11484 * config/i386/i386.c (m_CORE2I7): Removed.
11485 (m_CORE_HASWELL): New macro.
11486 (m_CORE_ALL): Likewise.
11487 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
11488 (initial_ix86_arch_features): Likewise.
11489 (processor_target_table): Initializations for Core avx2.
11490 (cpu_names): New names "core-avx2".
11491 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
11492 PROCESSOR_CORE_HASWELL.
11493 (ix86_issue_rate): New case.
11494 (ia32_multipass_dfa_lookahead): Likewise.
11495 (ix86_sched_init_global): Likewise.
11497 * config/i386/i386.h (TARGET_HASWELL): New macro.
11498 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
11499 (processor_type): New PROCESSOR_HASWELL.
11501 2013-01-15 Jakub Jelinek <jakub@redhat.com>
11503 PR tree-optimization/55955
11504 * tree-vect-loop.c (vectorizable_reduction): Give up early on
11505 *SHIFT_EXPR and *ROTATE_EXPR codes.
11507 PR tree-optimization/48766
11508 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
11509 -ftrapv disable -fwrapv.
11511 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
11514 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
11515 etc. to 1 and not to __flash.
11516 Use LL suffix for __INT24_MAX__ with -mint8.
11517 Use ULL suffix for __UINT24_MAX__ with -mint8.
11519 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
11521 * config/avr/avr-arch.h
11522 (struct base_arch_s): Use typedef avr_arch_t instead.
11523 (struct arch_info_s): Use typedef avr_arch_info_t instead.
11524 (struct mcu_type_s): Use typedef avr_mcu_t instead.
11525 * config/avr/avr.c: Same.
11526 * config/avr/avr-devices.c: Same.
11527 * config/avr/driver-avr.c: Same.
11528 * config/avr/gen-avr-mmcu-texi.c: Same.
11529 * config/avr/avr-mcus.def: Adjust comment.
11531 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
11533 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
11534 * config/aarch64/iterators.md (VALLDI): New.
11536 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
11537 Andi Kleen <ak@linux.intel.com>
11540 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
11541 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
11544 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
11546 * config/avr/avr-stdint.h: Remove trailing blanks.
11547 * config/avr/avr-log.h: Same.
11548 * config/avr/avr-arch.h: Same.
11549 * config/avr/avr-devices.c: Same.
11550 * config/avr/avr-dimode.md: Same.
11551 * config/avr/predicates.md: Same.
11552 * config/avr/avr-c.c: Same. And fix typo.
11554 * config/avr/avr-protos.h: Same. And:
11555 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
11556 (init_cumulative_args): Rename to avr_init_cumulative_args.
11557 (expand_prologue): Rename to avr_expand_prologue.
11558 (expand_epilogue): Rename to avr_expand_epilogue.
11559 (adjust_insn_length): Rename to avr_adjust_insn_length.
11560 (notice_update_cc): Rename to avr_notice_update_cc.
11561 (final_prescan_insn): Rename to avr_final_prescan_insn.
11562 * config/avr/avr.c: Same.
11563 * config/avr/avr.h: Same.
11564 * config/avr/avr.md: Remove trailing blanks.
11565 (prologue): Use avr_expand_prologue.
11566 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
11568 2013-01-14 Richard Biener <rguenther@suse.de>
11570 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
11571 verify_location, collect_subblocks): New functions.
11572 (verify_gimple_in_cfg): Verify that locations only reference
11573 BLOCKs in the functions BLOCK tree.
11575 2013-01-14 Richard Biener <rguenther@suse.de>
11577 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
11579 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
11581 (insert_out_of_ssa_copy_on_edge): Likewise.
11582 (rewrite_close_phi_out_of_ssa): Likewise.
11583 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
11585 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
11586 propagated constants.
11587 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
11590 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
11592 * config/avr/avr-modes.def: Add GPL copyright notice.
11594 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
11596 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
11597 MEMMODEL_MASK to determine memory model.
11598 (atomic_store<mode>): Ditto from operands[2].
11599 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
11601 2013-01-13 Jakub Jelinek <jakub@redhat.com>
11604 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
11605 (fold_gimple_assign): Don't call unshare_expr here.
11606 (fold_ctor_reference): Call unshare_expr.
11608 2013-01-13 Terry Guo <terry.guo@arm.com>
11610 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
11611 * doc/fragments.texi: Document MULTILIB_REUSE.
11612 * gcc.c (multilib_reuse): New internal spec.
11613 (set_multilib_dir): Also search multilib from multilib_reuse.
11614 * genmultilib (tmpmultilib3): Refactor code.
11615 (tmpmultilib4): Ditto.
11616 (multilib_reuse): New multilib argument.
11618 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
11620 * Makefile.in: Update copyright.
11622 2013-01-12 Tom de Vries <tom@codesourcery.com>
11624 PR middle-end/55890
11625 * calls.c (expand_call): Check if arg_nr is valid.
11627 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
11629 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
11630 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
11631 documentation. Add missing '__' in front of
11632 __builtin_ia32_packssdw256.
11634 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11637 * config/s390/s390.c (s390_preferred_reload_class): Do not return
11638 NO_REGS for larl operands.
11639 (s390_reload_larl_operand): Use s390_load_address instead of
11642 2013-01-11 Richard Biener <rguenther@suse.de>
11644 * tree-cfg.c (verify_node_sharing_1): Split out from ...
11645 (verify_node_sharing): ... here.
11646 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
11648 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
11650 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
11651 Substitute TREECHECKING.
11652 * configure: Regenerate.
11653 * Makefile.in (TREECHECKING): New.
11655 2013-01-11 Richard Guenther <rguenther@suse.de>
11657 PR tree-optimization/44061
11658 * tree-vrp.c (extract_range_basic): Compute zero as
11659 value-range for __builtin_constant_p of function parameters.
11661 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
11663 Update copyright years.
11665 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
11667 PR rtl-optimization/55672
11668 * lra-eliminations.c (mark_not_eliminable): Permit addition with
11669 const to be eliminable.
11671 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
11673 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
11674 * configure: Regenerate.
11676 2013-01-10 Richard Biener <rguenther@suse.de>
11678 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
11680 2013-01-10 Richard Biener <rguenther@suse.de>
11683 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
11684 locations for virtual PHI arguments.
11685 (rewrite_update_phi_arguments): Likewise.
11687 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
11689 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
11692 2013-01-10 Jakub Jelinek <jakub@redhat.com>
11694 PR tree-optimization/55921
11695 * tree-complex.c (expand_complex_asm): New function.
11696 (expand_complex_operations_1): Call it for GIMPLE_ASM.
11698 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11701 * config/s390/s390.c (s390_symref_operand_p)
11702 (s390_loadrelative_operand_p): Merge the two functions.
11703 (s390_check_qrst_address, print_operand_address): Add parameters
11704 to s390_loadrelative_operand_p invokation.
11705 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
11706 (s390_reload_larl_operand, s390_secondary_reload): Use
11707 s390_loadrelative_operand_p instead of s390_symref_operand_p.
11708 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
11710 2013-01-09 Mike Stump <mikestump@comcast.net>
11712 * dse.c (record_store): Remove unnecessary assert.
11714 2013-01-09 Jan Hubicka <jh@suse.cz>
11716 PR tree-optimization/55569
11717 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
11718 * cfgloop.h (scale_loop_profile): Likewise.
11720 2013-01-09 Jan Hubicka <jh@suse.cz>
11723 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
11725 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
11727 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
11729 PR middle-end/55114
11730 * expr.h (maybe_emit_group_store): Declare.
11731 * expr.c (maybe_emit_group_store): New function.
11732 * builtins.c (expand_builtin_int_roundingfn): Call it.
11733 (expand_builtin_int_roundingfn_2): Likewise.
11735 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
11737 PR rtl-optimization/55829
11738 * lra-constraints.c (match_reload): Add code for absent output.
11739 (curr_insn_transform): Add code for reloads of matched inputs
11742 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
11744 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
11745 attribute of movddup insn to DF.
11746 (*vec_interleave_lowv2df): Ditto.
11747 (vec_dupv2df): Ditto.
11749 2013-01-09 Jan Hubicka <jh@suse.cz>
11751 PR tree-optimiation/55875
11752 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
11753 EVERY_ITERATION parameter.
11754 (number_of_iterations_exit): Check if exit is executed every iteration.
11755 (idx_infer_loop_bounds): Similarly here.
11756 (n_of_executions_at_most): Simplify
11757 to only test for cases where statement is dominated by the
11758 particular bound; handle correctly the "postdominance" test.
11759 (scev_probably_wraps_p): Use max loop iterations info
11760 as a global bound first.
11762 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
11763 Nick Clifton <nickc@redhat.com>
11765 * config/v850/v850.md (cbranchsf4): New pattern.
11766 (cstoresf4): New pattern.
11767 (cbranchdf4): New pattern.
11768 (cstoredf4): New pattern.
11769 (movsicc): Disallow floating point comparisons.
11770 (cmpsf_le_insn): Fix order of operators.
11771 (cmpsf_lt_insn): Likewise.
11772 (cmpsf_eq_insn): Likewise.
11773 (cmpdf_le_insn): Likewise.
11774 (cmpdf_lt_insn): Likewise.
11775 (cmpdf_eq_insn): Likewise.
11776 (cmpsf_ge_insn): Use LE comparison.
11777 (cmpdf_ge_insn): Likewise.
11778 (cmpsf_gt_insn): Use LT comparison.
11779 (cmpdf_gt_insn): Likewise.
11780 (cmpsf_ne_insn): Delete pattern.
11781 (cmpdf_ne_insn): Delete pattern.
11782 * config/v850/v850.c (v850_gen_float_compare): Use
11783 gen_cmpdf_eq_insn for NE comparison.
11784 (v850_float_z_comparison_operator)
11785 (v850_float_nz_comparison_operator): Move from here ...
11786 * config/v850/predicates.md: ... to here. Move GT and GE
11787 comparisons into v850_float_z_comparison_operator.
11788 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
11790 (v850_float_nz_comparison_operator): Likewise.
11792 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11794 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
11795 with calls to gen_insvsi/gen_insvdi.
11797 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11799 * config/i386/i386.c (initial_ix86_tune_features): Set up
11800 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
11802 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
11803 Jakub Jelinek <jakub@redhat.com>
11805 PR tree-optimization/48189
11806 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
11807 If nitercst is 0, don't predict the exit edge.
11809 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11811 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
11812 in asm_fprintf with reg_names.
11813 (aarch64_print_operand_address): Likewise.
11814 (aarch64_return_addr): Likewise.
11815 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
11817 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11819 * config/pa/pa.h (VAL_U6_BITS_P): Define.
11820 (INT_U6_BITS): Likewise.
11821 * config/pa/predicates.md (uint6_operand): New predicate.
11822 (shift5_operand, shift6_operand): Likewise.
11823 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
11825 (lshrdi3): Use shift6_operand.
11826 (shrpsi4, shrpdi4): New insn patterns.
11827 (extzv): Delete expander.
11828 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
11829 predicates in unamed zero extract patterns. Tighten common constraint.
11830 (extv): Delete expander.
11831 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
11832 predicates in unamed sign extract patterns. Tighten common constraint.
11833 (insv): Delete expander.
11834 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
11835 predicates in unamed insert patterns. Tighten common constraint.
11836 Change uint32_operand predicate to uint6_operand predicate in unamed
11837 DImode pattern to insert constant values of type 1...1xxxx.
11839 2013-01-04 Jan Hubicka <jh@suse.cz>
11841 PR tree-optimization/55823
11842 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
11845 2013-01-08 Jakub Jelinek <jakub@redhat.com>
11846 Uros Bizjak <ubizjak@gmail.com>
11848 PR rtl-optimization/55845
11849 * df-problems.c (can_move_insns_across): Stop scanning at
11850 volatile_insn_p source instruction or give up if
11851 across_from .. across_to range contains any volatile_insn_p
11854 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
11856 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
11857 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
11859 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
11860 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
11862 2013-01-08 Jakub Jelinek <jakub@redhat.com>
11865 * asan.c (asan_clear_shadow): New function.
11866 (asan_emit_stack_protection): Use it.
11868 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
11870 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
11871 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
11872 with tab instead of space.
11874 2013-01-08 Nick Clifton <nickc@redhat.com>
11876 * config/rl78/rl78.c (rl78_expand_prologue): Always select
11877 register bank 0 at the start of an interrupt handler.
11878 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
11881 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
11883 * config/aarch64/aarch64-simd.md
11884 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
11885 (aarch64_simd_bsl): Likewise.
11886 (aarch64_vcond_internal<mode>): Likewise.
11887 (vcond<mode><mode>): Likewise.
11888 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
11889 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
11891 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
11893 * config/aarch64/aarch64-builtins.c
11894 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
11896 2013-01-08 Martin Jambor <mjambor@suse.cz>
11899 * tree-sra.c (analyze_access_subtree): Return true also after
11900 potentially creating a debug-only replacement.
11902 2013-01-08 Jakub Jelinek <jakub@redhat.com>
11904 PR middle-end/55890
11905 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
11907 PR tree-optimization/54120
11908 * tree-vrp.c (range_fits_type_p): Don't allow
11909 src_precision < precision from signed vr to unsigned_p
11910 if vr->min or vr->max is negative.
11911 (simplify_float_conversion_using_ranges): Test can_float_p
11912 against CODE_FOR_nothing.
11914 2013-01-08 Jakub Jelinek <jakub@redhat.com>
11915 Richard Biener <rguenther@suse.de>
11917 PR middle-end/55851
11918 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
11919 types instead of just INTEGER_TYPE types.
11921 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
11923 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
11926 2013-01-07 Steve Ellcey <sellcey@mips.com>
11929 * config/mips/mips.opt: Change mad to mmad to match documentation.
11931 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
11934 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
11935 .progmemx.data now.
11937 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
11940 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
11941 (avr_addrspace_t): Add .section_name field.
11942 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
11944 (avr_addrspace): Same. Initialize .section_name. Remove last
11945 NULL entry. Put __memx into .progmemx.data.
11946 (progmem_section_prefix): Remove.
11947 (avr_asm_init_sections): No need to initialize progmem_section.
11948 (avr_asm_named_section): Use avr_addrspace[].section_name to get
11949 section name prefix.
11950 (avr_asm_select_section): Ditto. And use get_unnamed_section to
11951 retrieve the progmem section.
11952 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
11953 boundary to run over avr_addrspace[].
11954 (avr_register_target_pragmas): Ditto.
11956 2013-01-06 Jakub Jelinek <jakub@redhat.com>
11958 * varasm.c (output_constant_def_contents): For asan_protect_global
11959 protected strings, adjust DECL_ALIGN if needed, before testing for
11961 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
11962 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
11964 (output_object_block): For asan protected decls, emit asan padding
11965 after their contents.
11966 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
11967 (asan_finish_file): Test it here instead.
11969 2013-01-07 Nick Clifton <nickc@redhat.com>
11970 Matthias Klose <doko@debian.org>
11971 Doug Kwan <dougkwan@google.com>
11972 H.J. Lu <hongjiu.lu@intel.com>
11975 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
11977 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
11979 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
11981 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
11983 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
11985 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
11988 * doc/install.texi (Cross-Compiler-Specific Options): Document
11991 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
11993 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
11994 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
11995 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
11996 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
11997 vqmovun_high_s64): Fix source operand number and update copyright.
11999 2013-01-07 Richard Biener <rguenther@suse.de>
12001 PR middle-end/55890
12002 * gimple.h (gimple_call_builtin_p): New overload.
12003 * gimple.c (validate_call): New function.
12004 (gimple_call_builtin_p): Likewise.
12005 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
12006 Use gimple_call_builtin_p.
12007 (find_func_clobbers): Likewise.
12008 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
12009 (strlen_optimize_stmt): Likewise.
12011 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
12013 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
12014 (vld1q_dup_*): Likewise.
12015 (vld1_*): Likewise.
12016 (vld1q_*): Likewise.
12017 (vld1_lane_*): Likewise.
12018 (vld1q_lane_*): Likewise.
12020 2013-01-07 Richard Biener <rguenther@suse.de>
12022 * lto-streamer.h (LTO_minor_version): Bump to 2.
12024 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
12026 * config/aarch64/aarch64-protos.h
12027 (aarch64_const_double_zero_rtx_p): Rename to...
12028 (aarch64_float_const_zero_rtx_p): ...this.
12029 (aarch64_float_const_representable_p): New.
12030 (aarch64_output_simd_mov_immediate): Likewise.
12031 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
12032 move immediate case.
12033 * config/aarch64/aarch64.c
12034 (aarch64_const_double_zero_rtx_p): Rename to...
12035 (aarch64_float_const_zero_rtx_p): ...this.
12036 (aarch64_print_operand): Allow printing of new constants.
12037 (aarch64_valid_floating_const): New.
12038 (aarch64_legitimate_constant_p): Check for valid floating-point
12040 (aarch64_simd_valid_immediate): Likewise.
12041 (aarch64_vect_float_const_representable_p): New.
12042 (aarch64_float_const_representable_p): Likewise.
12043 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
12044 (aarch64_output_simd_mov_immediate): New.
12045 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
12046 (*movdf_aarch64): Likewise.
12047 * config/aarch64/constraints.md (Ufc): New.
12048 (Y): call aarch64_float_const_zero_rtx.
12049 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
12051 2013-01-07 Richard Biener <rguenther@suse.de>
12053 PR tree-optimization/55888
12054 PR tree-optimization/55862
12055 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
12056 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
12057 not if it is contained therein.
12059 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
12061 * config/avr/t-avr: Typo.
12063 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
12066 * config/avr/t-avr: Don't automatically rebuild
12067 $(srcdir)/config/avr/t-multilib
12068 $(srcdir)/config/avr/avr-tables.opt
12069 $(srcdir)/doc/avr-mmcu.texi
12070 (avr-mcus): New phony target to build them on request.
12071 (s-avr-mlib, s-avr-mmcu-texi): Remove.
12072 * avr/avr-mcus.def: Adjust comments.
12074 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
12076 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
12078 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
12080 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
12082 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
12084 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
12086 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
12088 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
12089 to generate profiling.
12090 * config/rs6000/aix64.h (LIB_SPEC): Same.
12092 2013-01-04 Andrew Pinski <apinski@cavium.com>
12094 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
12096 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
12098 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
12100 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
12102 (ix86_expand_move): Ditto.
12103 (ix86_zero_extend_to_Pmode): Ditto.
12104 (ix86_expand_call): Ditto.
12105 (ix86_expand_special_args_builtin): Ditto.
12106 (ix86_expand_builtin): Ditto.
12108 2013-01-04 Richard Biener <rguenther@suse.de>
12110 PR tree-optimization/55862
12111 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
12112 translating them through PHI nodes.
12114 2013-01-04 Martin Jambor <mjambor@suse.cz>
12116 PR tree-optimization/55755
12117 * tree-sra.c (sra_modify_assign): Do not check that an access has no
12118 children when trying to avoid producing a VIEW_CONVERT_EXPR.
12120 2013-01-04 Marek Polacek <polacek@redhat.com>
12122 PR middle-end/55859
12123 * opts.c (default_options_optimization): Clarify error message.
12125 2013-01-04 Richard Biener <rguenther@suse.de>
12127 PR middle-end/55863
12128 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
12131 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12134 * config/pa/pa.md (movsi): Revert previous change.
12135 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
12138 2013-01-03 Richard Henderson <rth@redhat.com>
12140 * config/i386/i386.c (ix86_expand_move): Always assign to op1
12141 after eliminating TLS symbols.
12143 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
12146 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
12147 * graphite-poly.c (debug_gmp_value): Likewise.
12149 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
12152 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
12153 selected code model, define __code_mode_small__, __code_model_medium__,
12154 __code_model_large__, __code_model_32__ or __code_model_kernel__.
12155 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
12156 xchg temporary register with %k. Declare temporary register as
12158 [__x86_64__]: For medium and large code models, preserve %rbx register.
12160 2013-01-03 Richard Biener <rguenther@suse.de>
12162 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
12163 (dump_subscript): Adjust.
12164 (finalize_ddr_dependent): Do not dump redundant info.
12165 (analyze_siv_subscript): Adjust.
12166 (subscript_dependence_tester): Likewise.
12167 (compute_affine_dependence): Likewise.
12169 2013-01-03 Richard Biener <rguenther@suse.de>
12172 2013-01-03 Richard Biener <rguenther@suse.de>
12174 PR tree-optimization/55857
12175 * tree-vect-stmts.c (vectorizable_load): Do not setup
12176 re-alignment for invariant loads.
12178 2013-01-02 Richard Biener <rguenther@suse.de>
12180 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
12181 invariant load do not generate a vector load from the scalar location.
12183 2013-01-03 Richard Biener <rguenther@suse.de>
12185 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
12186 for not vectorizing.
12187 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
12188 not build INDIRECT_REFs, call get_name once only.
12189 (vect_create_data_ref_ptr): Likewise. Dump base object kind
12190 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
12192 2013-01-03 Richard Biener <rguenther@suse.de>
12194 PR tree-optimization/55857
12195 * tree-vect-stmts.c (vectorizable_load): Do not setup
12196 re-alignment for invariant loads.
12198 2013-01-03 Richard Biener <rguenther@suse.de>
12201 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
12202 prefer a built-in decl.
12204 2013-01-03 Jakub Jelinek <jakub@redhat.com>
12206 * gcc.c (process_command): Update copyright notice dates.
12207 * gcov.c (print_version): Likewise.
12208 * gcov-dump.c (print_version): Likewise.
12210 PR rtl-optimization/55838
12211 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
12212 iv0.step, iv1.step and step.
12214 2013-01-03 Jakub Jelinek <jakub@redhat.com>
12215 Marc Glisse <marc.glisse@inria.fr>
12217 PR tree-optimization/55832
12218 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
12219 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
12220 integer_{one,zero}_node.
12222 2013-01-03 Jakub Jelinek <jakub@redhat.com>
12225 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
12226 * var-tracking.c (reverse_op): Don't add reverse ops to
12227 VALUEs that have already
12228 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
12230 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
12232 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
12234 2013-01-02 Teresa Johnson <tejohnson@google.com>
12236 * dumpfile.c (dump_loc): Print filename with location.
12237 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
12238 new location_t parameter to emit complete unroll message with
12239 new dump framework.
12240 (canonicalize_loop_induction_variables): Compute loops location
12241 and pass to try_unroll_loop_completely.
12242 * loop-unroll.c (report_unroll_peel): New function.
12243 (peel_loops_completely): Use new dump format with location
12244 for main dumpfile message, and invoke report_unroll_peel on success.
12245 (decide_unrolling_and_peeling): Ditto.
12246 (decide_peel_once_rolling): Remove old dumpfile message subsumed
12247 by report_unroll_peel.
12248 (decide_peel_completely): Ditto.
12249 (decide_unroll_constant_iterations): Ditto.
12250 (decide_unroll_runtime_iterations): Ditto.
12251 (decide_peel_simple): Ditto.
12252 (decide_unroll_stupid): Ditto.
12253 * cfgloop.c (get_loop_location): New function.
12254 * cfgloop.h (get_loop_location): Declare.
12256 2013-01-02 Sriraman Tallam <tmsriram@google.com>
12258 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
12261 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12263 PR middle-end/55198
12264 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
12265 BLKmode objects when EXPAND_MEMORY is specified.
12267 2013-01-02 Sriraman Tallam <tmsriram@google.com>
12269 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
12271 (fold_builtin_cpu): Do not share cpu model decls across statements.
12273 2013-01-02 Jason Merrill <jason@redhat.com>
12276 * tree.c (build_array_type_1): Revert earlier change.
12278 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
12280 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
12282 * config/aarch64/aarch64-tune.md: Re-generate.
12284 2013-01-02 Richard Biener <rguenther@suse.de>
12286 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
12287 invariant load do not generate a vector load from the scalar location.
12289 2013-01-02 Richard Biener <rguenther@suse.de>
12292 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
12293 * configure: Regenerate.
12295 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
12297 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
12298 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
12299 (expand_builtin_int_roundingfn_2): Keep the original target around
12300 for the fallback case.
12302 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
12304 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
12305 to be clear for sign changes.
12307 2013-01-01 Jan Hubicka <jh@suse.cz>
12309 * ipa-inline-analysis.c: Fix formatting.
12311 2013-01-01 Jakub Jelinek <jakub@redhat.com>
12313 PR tree-optimization/55831
12314 * tree-vect-loop.c (get_initial_def_for_induction): Use
12315 gsi_after_labels instead of gsi_start_bb.
12317 Copyright (C) 2013 Free Software Foundation, Inc.
12319 Copying and distribution of this file, with or without modification,
12320 are permitted in any medium without royalty provided the copyright
12321 notice and this notice are preserved.