1 2013-05-14 Richard Biener <rguenther@suse.de>
4 * tree-eh.c (sink_clobbers): Give up for successors with
5 multiple predecessors and no virtual uses.
7 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
9 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
10 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
12 2013-05-14 Jakub Jelinek <jakub@redhat.com>
15 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
16 the case when both op0 and op1 have VOIDmode.
18 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
20 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
21 in multiply-accumulate mode.
23 2013-05-13 Guozhi Wei <carrot@google.com>
25 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
27 2013-05-13 Kai Tietz <ktietz@redhat.com>
30 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
31 * config/i386/i386.h (TARGET_PECOFF): Define by default
33 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
34 * config/i386/i386.c (ix86_option_override_internal):
36 (ix86_expand_prologue): Likewise.
37 (ix86_expand_split_stack_prologue): Likewise.
38 (legitimate_pic_address_disp_p): Likewise.
39 (legitimize_pic_address): Likewise.
40 (legitimize_tls_address): Likewise.
41 (legitimize_pe_coff_symbol): Likewise.
42 (output_pic_addr_const): Likewise.
43 (construct_plt_address): Likewise.
44 (ix86_expand_call): Likewise.
45 (x86_output_mi_thunk): Likewise.
46 (x86_function_profiler): Likewise.
48 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
50 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
52 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
53 (aarch64_simd_mov_to_<mode>low): Delete.
54 (aarch64_simd_mov_to_<mode>high): Delete.
55 (move_lo_quad_<mode>): Add w<-r alternative.
56 (aarch64_simd_move_hi_quad_<mode>): Likewise.
57 (aarch64_simd_mov_from_*): Update type attribute.
58 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
61 2013-05-13 Jan Hubicka <jh@suse.cz>
63 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
64 * config/i386/i386.c (ix86_compute_frame_layout,
65 ix86_expand_epilogue, emit_i387_cw_initialization, ix86_expand_vector_move_misalign,
66 ix86_fp_comparison_strategy, ix86_local_alignment): Fix use of size/speed predicates.
68 2013-05-13 Jakub Jelinek <jakub@redhat.com>
70 PR tree-optimization/45216
71 PR tree-optimization/57157
72 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
73 the (-Y) & (B - 1) variant if OP is |.
74 * expmed.c (expand_shift_1): For rotations by const0_rtx just
75 return shifted. Use (-op1) & (prec - 1) as other_amount
76 instead of prec - op1.
78 2013-05-13 Martin Jambor <mjambor@suse.cz>
81 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
82 (ipa_constant_data): New type.
83 (ipa_jump_func): Use ipa_constant_data to hold information about
84 constant jump functions.
85 (ipa_get_jf_constant): Adjust to jump function type changes.
86 (ipa_get_jf_constant_rdesc): New function.
87 (ipa_param_descriptor): New field controlled_uses.
88 (ipa_get_controlled_uses): New function.
89 (ipa_set_controlled_uses): Likewise.
90 * ipa-ref.h (ipa_find_reference): Declare.
91 * ipa-prop.c (ipa_cst_ref_desc): New type.
92 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
94 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
95 New parameter cs. Adjust all callers.
96 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
97 (remove_described_reference): New function.
98 (jfunc_rdesc_usable): Likewise.
99 (try_make_edge_direct_simple_call): Decrement controlled use count,
100 attempt to remove reference if it hits zero.
101 (combine_controlled_uses_counters): New function.
102 (propagate_controlled_uses): Likewise.
103 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
104 (ipa_edge_duplication_hook): Duplicate reference descriptions.
105 (ipa_print_node_params): Print described use counter.
106 (ipa_write_jump_function): Adjust to jump function type changes.
107 (ipa_read_jump_function): New parameter CS, pass it to
108 ipa_set_jf_constant. Adjust caller.
109 (ipa_write_node_info): Stream controlled use count
110 (ipa_read_node_info): Likewise.
111 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
113 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
114 count. Remove cloning-added reference if it reaches zero.
115 * ipa-ref.c (ipa_find_reference): New function.
117 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
119 * config/i386/i386.c (processor_target_table): Modified default
120 alignment values for AMD BD and BT architectures.
122 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
124 * tree-vect-generic.c (uniform_vector_p): Move ...
125 * tree.c (uniform_vector_p): ... here.
126 * tree.h (uniform_vector_p): Declare it.
127 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
130 2013-05-13 Jakub Jelinek <jakub@redhat.com>
132 PR tree-optimization/57230
133 * tree-ssa-strlen.c (handle_char_store): Record length for
134 array store from STRING_CST.
136 PR tree-optimization/57230
137 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
140 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
142 * config/epiphany/epiphany.c (epiphany_init): Check size of
143 NUM_MODES_FOR_MODE_SWITCHING.
144 (epiphany_expand_prologue):
145 Remove CONFIG_REGNUM initial value handling code.
146 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
147 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
148 (emit_set_fp_mode, epiphany_mode_after): Likewise.
149 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
150 Don't return 1 for FP_MODE_NONE.
151 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
152 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
153 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
154 * config/epiphany/epiphany.md (save_config): New pattern.
156 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
158 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
160 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
162 * config/i386/i386.md (memory): Handle sseishft1.
163 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
164 (*vec_extractv2di_1): Ditto.
166 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
168 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
171 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
173 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
174 Add mthumb/march=armv7-a multilib.
175 Add mthumb/march=armv7-r multilib.
176 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
178 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
180 * config/v850/t-rtems: Add more multilibs.
182 2013-05-10 Richard Biener <rguenther@suse.de>
184 PR tree-optimization/57214
185 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
186 not propagate from SSA names that occur in abnormal PHI nodes.
188 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
190 * stor-layout.c (element_precision): New function.
191 * machmode.h (element_precision): Declare it.
192 * tree.c (build_minus_one_cst): New function.
193 (element_precision): Likewise.
194 * tree.h (build_minus_one_cst): Declare new function.
195 (element_precision): Likewise.
196 * fold-const.c (operand_equal_p): Use element_precision.
197 (fold_binary_loc): Handle vector types.
198 * convert.c (convert_to_integer): Use element_precision.
199 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
202 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
204 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
205 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
206 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
207 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
208 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
209 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
210 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
211 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
212 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
213 (Uuw8): New constraints.
214 (Usb4): Move into alphabetical order.
215 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
216 (sd8_operand, ub8_operand, uw8_operand): New predicates.
217 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
218 previously unnamed patterns.
219 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
220 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
221 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
222 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
223 of set_attr_alternative/if_then_else. Use extended_mips16 instead
226 2013-05-10 Jakub Jelinek <jakub@redhat.com>
228 * config/i386/i386.md (rotateinv): New code attr.
229 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
230 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
233 PR tree-optimization/45216
234 PR tree-optimization/57157
235 * tree-ssa-forwprop.c (simplify_rotate): New function.
236 (ssa_forward_propagate_and_combine): Call it.
238 2013-05-10 Richard Biener <rguenther@suse.de>
240 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
241 disable peeling when we version for aliasing.
242 (vector_alignment_reachable_p): Honor explicit user alignment.
243 (vect_supportable_dr_alignment): Likewise.
244 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
245 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
246 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
247 then peeling to arrange for the cost-model check to come first.
249 2013-05-10 Alan Modra <amodra@gmail.com>
251 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
252 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
253 * configure: Regenerate.
255 2013-05-10 Alan Modra <amodra@gmail.com>
258 * varasm.c (default_elf_select_section): Move !DECL_P check..
259 (get_named_section): ..to here before calling get_section_name.
261 (default_section_type_flags): Add DECL_P check.
262 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
263 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
265 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
267 * config/epiphany/epiphany.c (epiphany_expand_prologue):
268 When using gen_stack_adjust_str with a register offset, add a
269 REG_FRAME_RELATED_EXPR note.
271 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
273 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
274 (*vec_extractv4si_zext_mem): Ditto.
275 (*vec_extractv2di): Add 0->x and x->x alternatives.
276 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
277 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
279 2013-05-09 Jason Merrill <jason@redhat.com>
281 N3639 C++1y VLA support
282 * gimplify.c (gimplify_vla_decl): Don't touch an existing
285 * tree.c (build_constructor_va): New.
286 * tree.h: Declare it.
288 2013-05-09 Martin Jambor <mjambor@suse.cz>
291 * gimple-fold.c (canonicalize_constructor_val): Call
292 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
294 2013-05-09 Jan Hubicka <jh@suse.cz>
295 Richard Biener <rguenther@suse.de>
298 * symtab.c (symtab_make_decl_local): Do not add private names.
300 2013-05-09 Jan Hubicka <jh@suse.cz>
303 * symtab.c (insert_to_assembler_name_hash): Handle clones.
304 (unlink_from_assembler_name_hash): Likewise.
305 (symtab_prevail_in_asm_name_hash, symtab_register_node,
306 symtab_unregister_node, symtab_initialize_asm_name_hash,
307 change_decl_assembler_name): Update.
309 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
311 * config/aarch64/aarch64.md: New movtf split.
312 (*movtf_aarch64): Update.
313 (aarch64_movdi_tilow): Handle TF modes and rename to
314 aarch64_movdi_<mode>low.
315 (aarch64_movdi_tihigh): Handle TF modes and rename to
316 aarch64_movdi_<mode>high
317 (aarch64_movtihigh_di): Handle TF modes and rename to
318 aarch64_mov<mode>high_di
319 (aarch64_movtilow_di): Handle TF modes and rename to
320 aarch64_mov<mode>low_di
321 (aarch64_movtilow_tilow): Remove spurious whitespace.
322 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
324 (aarch64_print_operand): Update.
326 2013-05-09 Alan Modra <amodra@gmail.com>
328 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
330 * configure: Regenerate.
332 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
334 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
335 splitter preparation statements.
336 * config/i386/sse.md (*vec_extract* splitters): Ditto.
337 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
340 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
342 * gimple-ssa-strength-reduction.c (count_candidates): Change
344 (analyze_candidates_and_replace): Change type of length to int.
346 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
348 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
349 (*vec_extract<mode>): Use VI12_128 mode iterator.
350 (*vec_extract<mode>_mem): Ditto.
351 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
354 2013-05-08 Diego Novillo <dnovillo@google.com>
359 2012-08-17 Diego Novillo <dnovillo@google.com>
362 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
363 * config.in: Regenerate.
364 * configure: Regenerate.
365 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
367 2013-05-08 Jan Hubicka <jh@suse.cz>
370 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
371 * cgraph.h (symtab_node_base): Add unique_name.
372 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
373 input_overwrite_node, input_varpool_node): Stream unique_name.
374 * cgraphclones.c (cgraph_create_virtual_clone,
375 cgraph_function_versioning): Set unique_name.
376 * ipa.c (function_and_variable_visibility): Set unique_name.
378 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
380 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
381 (alloc_cand_and_find_basis): Restrict conditional candidate
382 processing to CAND_MULTs.
384 2013-05-08 Jan Hubicka <jh@suse.cz>
387 lto-symtab.c (lto_symtab_symbol_p): New function.
388 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
389 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
390 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
393 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
395 PR tree-optimization/57200
396 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
397 Only call inform if the preceding warning_at returns true.
399 2013-05-07 Han Shen <shenhan@google.com>
401 * cfgexpand.c (record_or_union_type_has_array_p): New function.
402 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
403 * common.opt (fstack-protector-strong): New option.
404 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
405 * doc/invoke.texi (Optimization Options): Document
406 "-fstack-protector-strong".
407 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
409 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
411 * config/mips/mips.c (mips_machine_reorg2): Return 0.
413 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
415 * ira.c (update_equiv_regs): Add insn having equiv memory even if
416 it is not lhs of the insn.
417 (setup_reg_equiv): Remove insn having equiv memory which it is not
419 * lra-constraints.c (process_address): Try to improve generation
420 code for address base + disp.
421 (lra_constraints): Make correct the code for checking insn setting
422 up backward equivalence. Remove insn only if it is in the init
424 * lra-eliminations.c (update_reg_eliminate): Change return value.
425 (lra_eliminate): Use the result.
427 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
429 * config/i386/sse.md (ssescalarnummask): New mode attribute.
430 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
431 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
432 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
433 register target operands.
434 (*vec_extractv8hi_sse2): New pattern.
435 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
436 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
437 (*vec_extract<mode>_mem): New insn and split pattern.
439 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
441 * config/arm/arm.c (arm_asan_shadow_offset): New function.
442 (TARGET_ASAN_SHADOW_OFFSET): Define.
443 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
444 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
446 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
448 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
449 (incr_vec_index): Return -1 if increment not found.
450 (create_add_on_incoming_edge): Assert if increment not found.
451 (record_increment): Limit number of increments recorded.
452 (all_phi_incrs_profitable): Return false if an increment not found.
453 (replace_profitable_candidates): Don't process increments that were
455 (analyze_candidates_and_replace): Limit size of incr_vec.
457 2013-05-07 Richard Biener <rguenther@suse.de>
459 * calls.c (special_function_p): setjmp-like functions are leaf.
460 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
461 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
463 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
465 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
466 (aarch64_simd_mov<mode>): New expander.
467 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
468 (aarch64_simd_mov_to_<mode>high): Likewise.
469 (aarch64_simd_mov_from_<mode>low): Likewise.
470 (aarch64_simd_mov_from_<mode>high): Likewise.
471 (aarch64_dup_lane<mode>): Update.
472 (aarch64_dup_lanedi): New instruction pattern.
473 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
474 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
476 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
478 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
479 (replace_mult_candidate): Remove unnecessary argument; remove
480 unnecessary parameter from call to introduce_cast_before_cand.
481 (replace_unconditional_candidate): Remove unnecessary parameter
482 from call to replace_mult_candidate.
483 (replace_conditional_candidate): Likewise.
484 (insert_initializers): Use make_temp_ssa_name.
485 (introduce_cast_before_cand): Remove unnecessary argument; use
487 (replace_one_candidate): Remove unnecessary argument; remove
488 unnecessary parameter from calls to introduce_cast_before_cand.
489 (replace_profitable_candidates): Remove unnecessary parameters
490 from calls to replace_one_candidate.
492 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
494 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
495 phi def as possibly hiding a basis for a CAND_ADD whose operands
496 have been commuted in the analysis.
497 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
499 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
501 * config/aarch64/aarch64.md
502 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
503 shift value between 0-4.
505 2013-05-07 Richard Biener <rguenther@suse.de>
507 * double-int.h (rshift): New overload.
508 * double-int.c (rshift): New function.
509 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
510 (create_reference_ops_from_ref): Remove.
511 (vn_reference_insert): Use shared ops for constructing the
512 reference and copy it.
514 2013-05-07 Richard Biener <rguenther@suse.de>
517 * tree-eh.c (sink_clobbers): Properly propagate
518 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
520 2013-05-07 Jakub Jelinek <jakub@redhat.com>
522 PR tree-optimization/57149
523 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
524 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
525 collect_phi_def_edges, execute_late_warn_uninitialized): Use
526 uninit_undefined_value_p instead of ssa_undefined_value_p.
529 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
530 for modifier == EXPAND_INITIALIZER.
532 2013-05-07 Anton Blanchard <anton@samba.org>
534 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
535 for powerpc64 little endian.
536 * configure: Regenerate.
538 2013-05-06 Graham Stott <grahams@btinternet.com>
540 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
541 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
542 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
543 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
545 2013-05-06 Graham Stott <grahams@btinternet.com>
547 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
548 codes which allow non-lvalues.
550 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
552 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
553 components are all 1s.
554 (integer_minus_onep): New function.
555 * tree.h (integer_minus_onep): Declare it.
556 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
557 integer_minus_onep instead of integer_all_onesp.
559 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
562 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
563 variations of these patterns.
565 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
567 * config/i386/i386.md (isa): Add x64_sse4 member.
568 (enabled): Handle x64_sse4.
569 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
570 instruction for 64bit SSE4_1 targets. Update insn attributes.
571 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
572 instruction for SSE4_1 targets. Update insn attributes.
573 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
574 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
575 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
577 (*vec_extractv4si): Rename from *sse4_1_pextrd.
578 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
579 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
581 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
584 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
586 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
588 * final.c (do_assembler_dialects): Don't handle curly braces and
589 vertical bar escaped by % as dialect delimiters.
590 (output_asm_insn): Print curly braces and vertical bar if escaped
591 by % and ASSEMBLER_DIALECT defined.
592 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
593 * doc/tm.texi: Regenerated.
595 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
597 * config/mips/mips.c: Include tree-pass.h.
598 (mips_reorg): Split in pre- and post-dbr_schedule parts.
599 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
600 (pass_mips_machine_reorg2): New machine specific pass.
601 (insert_pass_mips_machine_reorg2): New pass plugin definition.
602 (mips_option_override): Register the new pass.
603 * rtl.h (cleanup_barriers): Remove prototype.
604 (dbr_schedule): Likewise.
605 * jump.c (cleanup_barriers): Make static.
606 * reorg.c (dbr_schedule): Likewise.
608 2013-05-06 Richard Biener <rguenther@suse.de>
610 PR tree-optimization/57185
611 * tree-parloops.c (add_field_for_reduction): Handle anonymous
614 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
617 * config/i386/i386.c (add_parameter_dependencies): Add dependence
618 between "first_arg" and "insn", not "last" and "insn".
620 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
622 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
623 (find_candidates_in_block): Re-enable slsr_process_phi.
624 (create_phi_basis): Fix double counting of candidate adjustment.
626 2013-05-06 Richard Biener <rguenther@suse.de>
629 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
630 the edge is also fallthru, preserve it and just clear the
632 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
633 also complex, preserve that and just clear the fallthru flag.
634 * tree-inline.c (update_ssa_across_abnormal_edges): Also
635 update virtual operands.
637 2013-05-06 Alan Modra <amodra@gmail.com>
639 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
640 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
641 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
642 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
643 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
644 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
646 2013-05-06 Alan Modra <amodra@gmail.com>
648 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
649 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
650 (DEFAULT_ASM_ENDIAN): Define.
651 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
652 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
653 Update -K PIC clause from sysv4.h.
654 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
655 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
657 2013-05-06 Alan Modra <amodra@gmail.com>
659 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
660 twice for little-endian.
661 (ashrdi3_no_power, ashrdi3): Support little-endian.
663 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
666 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
667 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
669 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
670 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
671 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
674 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
675 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
677 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
678 * config/pa/pa.opt: Make mbig-switch a no-op.
679 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
680 (CASE_VECTOR_MODE): Always return SImode.
681 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
682 for the !TARGET_BIG_SWITCH case.
683 * config/pa/pa-linux.h: Likewise.
684 * config/pa/pa-openbsd.h: Likewise.
685 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
686 * config/pa/pa.md (short_jump): Remove define_insn.
687 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
688 (casesi0): Remove define_insn.
689 (type): Remove btable_branch.
690 (pa_combine_type): Likewise.
691 (in_nullified_branch_delay): Likewise.
692 (in_call_delay): Likewise.
693 (define_delay): Likewise.
694 (define_insn_reservation "Z3"): Likewise.
695 (define_insn_reservation "Z4"): Likewise.
696 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
697 (pa_adjust_insn_length): Remove adjustment for btable branches.
698 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
701 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
703 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
704 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
705 Add m->r,x alternatives.
706 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
707 splitters using SWI48x mode iterator.
708 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
709 TARGET_64BIT. Add m->x alternative.
710 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
711 Add o->x alternative. Enable for TARGET_SSE.
712 (sse_storeq): Remove expander.
713 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
714 with memory input operand.
715 (*vec_extractv2di_1 splitter): New.
716 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
717 * config/i386/i386.md (ssevecmodelower): New mode attribute.
719 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
721 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
722 (INT_LOWPART): Delete.
723 (extract_MB): Adjust.
724 (extract_ME): Adjust.
725 (print_operand): Adjust.
727 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
729 * config/rs6000/predicates.md (reg_or_add_cint_operand,
730 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
731 (reg_or_logical_cint_operand, easy_fp_constant,
732 logical_const_operand): Delete "CONST_DOUBLE" case.
733 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
734 "HOST_BITS_PER_WIDE_INT == 64" test.
735 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
736 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
737 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
738 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
740 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
741 CONST_DOUBLE DImode/VOIDmode case.
742 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
743 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
744 CONST_DOUBLE VOIDmode case.
745 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
746 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
747 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
748 Delete CONST_DOUBLE case.
749 (splitters for mov FMOVE64 const_double): Delete
750 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
751 "HOST_BITS_PER_WIDE_INT >= 64" test.
752 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
754 (mov DI const_double): Delete.
756 2013-05-04 Jakub Jelinek <jakub@redhat.com>
758 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
759 on op shows all bits zero in mode of a lowpart subreg, return zero.
761 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
764 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
765 to save TFmode registers and DImode to save TImode registers for
766 caller save operations.
767 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
768 mark being partially clobbered since they only use the first
771 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
772 and TDmode only use the upper 64-bits of each VSX register.
774 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
776 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
777 (find_candidates_in_block): Disable slsr_process_phi.
779 2013-05-03 Guozhi Wei <carrot@google.com>
781 * coverage.c (coverage_obj_init): Move the construction of gcov
783 (build_init_ctor): ... here.
785 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
787 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
788 (slsr_cand_d): Redefine def_phi.
789 (stride_status, phi_adjust_status, count_phis_status): New enums.
791 (find_basis_for_base_expr): New.
792 (find_basis_for_candidate): Handle hidden bases.
793 (alloc_cand_and_find_basis): Handle phi candidates.
794 (slsr_process_phi): New.
795 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
796 (create_mul_imm_cand): Likewise.
797 (create_add_ssa_cand): Exclude phi base candidates.
798 (create_add_imm_cand): Likewise.
799 (slsr_process_cast): Likewise.
800 (slsr_process_copy): Likewise.
801 (find_candidates_in_block): Handle phi candidates.
802 (dump_candidate): Likewise.
803 (unconditional_cands): Delete.
804 (unconditional_cands_with_known_stride_p): Delete.
805 (phi_dependent_cand_p): New.
806 (cand_increment): Handle phi-dependent candidates.
807 (replace_dependent): Delete.
808 (replace_mult_candidate): New.
809 (replace_unconditional_candidate): New.
810 (incr_vec_index): Move to avoid forward reference.
811 (create_add_on_incoming_edge): New.
812 (create_phi_basis): New.
813 (replace_dependents): Delete.
814 (replace_conditional_candidate): New.
815 (phi_add_costs): New.
816 (replace_uncond_cands_and_profitable_phis): New.
817 (record_increment): Handle phi adjustments.
818 (record_phi_increments): New.
819 (record_increments): Handle phi adjustments.
820 (phi_incr_cost): New.
821 (lowest_cost_path): Handle phis.
822 (total_savings): Likewise.
823 (analyze_increments): Likewise.
825 (ncd_of_cand_and_phis): New.
826 (nearest_common_dominator_for_cands): Handle phi increments.
827 (all_phi_incrs_profitable): New.
828 (replace_profitable_candidates): Handle phi-dependent candidates.
829 (analyze_candidates_and_replace): Likewise.
831 2013-05-03 Teresa Johnson <tejohnson@google.com>
834 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
835 do not exceed REG_BR_PROB_BASE.
837 2013-05-03 Jeff Law <law@redhat.com>
839 PR tree-optimization/57144
840 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
841 operand of the condition will bit into the new type when eliminating
842 a cast feeding a condition.
844 2013-05-03 Jakub Jelinek <jakub@redhat.com>
846 PR rtl-optimization/57130
847 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
848 of COMPARE as in_code to the recursive call if needed.
850 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
852 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
853 (enabled): Handle new members.
854 * config/i386/sse.md (*vec_concatv2si): Merge from
855 *vec_concatv2si_sse2 and vec_concatv2si_sse.
856 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
858 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
860 PR tree-optimization/57027
861 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
862 for fnms opportunity, check we got the prerequisite kind
863 of tree / gimple before using accessor functions.
865 2013-05-03 Richard Biener <rguenther@suse.de>
867 * double-int.h (lshift): New overload without precision
869 (operator *=, operator +=, operator -=): Move ...
870 * double-int.c (operator *=, operator +=, operator -=): ... here
871 and implement more efficiently.
872 (mul_double_with_sign): Remove.
873 (lshift_double): Adjust to take unsinged shift argument, push
874 dispatching code to callers.
875 (mul_double_wide_with_sign): Add early out for callers that
876 are not interested in high parts or overflow.
877 (lshift): New function.
878 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
880 (lrotate, rrotate): Use logical shifts.
881 * expr.c (get_inner_reference): Use lshift.
882 * fixed-value.c (do_fixed_divide): Likewise.
883 * tree-dfa.c (get_ref_base_and_extent): Likewise.
884 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
885 (indirect_refs_may_alias_p): Likewise.
886 (stmt_kills_ref_p_1): Likewise.
888 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
890 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
892 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
894 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
895 scalar form of FABD instruction.
897 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
899 * lra-constraints.c (process_alt_operands): Add checking alt
900 number to choose the best alternative.
902 2013-05-02 Richard Biener <rguenther@suse.de>
904 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
905 bitmap and its handling.
906 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
908 2013-05-02 Richard Biener <rguenther@suse.de>
911 * tree-inline.c (copy_loops): Properly handle removed loops.
912 (copy_cfg_body): Mark destination loops for fixup if source
915 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
918 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
919 generating simple_return for naked functions.
921 2013-05-02 Martin Jambor <mjambor@suse.cz>
924 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
925 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
927 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
928 ipa_agg_replacement_value structures.
929 (known_aggs_to_agg_replacement_list): Likewise.
930 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
931 (read_agg_replacement_chain): Likewise.
932 (ipcp_transform_function): Also check that by_ref flags match.
934 2013-05-02 Richard Biener <rguenther@suse.de>
936 * graphds.h (struct graph): Add obstack member.
937 * graphds.c (new_graph): Initialize obstack and allocate
939 (add_edge): Allocate edge from the obstack.
940 (free_graph): Free the obstack instead of all edges and vertices.
942 2013-05-02 Teresa Johnson <tejohnson@google.com>
944 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
946 * cfg.c (update_bb_profile_for_threading): Ditto.
947 * tree-inline.c (copy_bb): Ditto.
948 (copy_edges_for_bb): Ditto.
949 (initialize_cfun): Ditto.
950 (copy_cfg_body): Ditto.
951 (expand_call_inline): Ditto.
952 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
953 (estimate_node_size_and_time): Ditto.
954 (inline_merge_summary): Ditto.
955 * cgraphclones.c (cgraph_clone_edge): Ditto.
956 (cgraph_clone_node): Ditto.
957 * sched-rgn.c (compute_dom_prob_ps): Ditto.
958 (compute_trg_info): Ditto.
960 2013-05-02 Ian Bolton <ian.bolton@arm.com>
962 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
963 S reg when fp attribute set.
964 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
966 2013-05-02 Ian Bolton <ian.bolton@arm.com>
968 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
970 (*and_one_cmplsi3_compare0_uxtw): Likewise.
971 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
972 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
974 2013-05-02 Richard Biener <rguenther@suse.de>
976 * tree-scalar-evolution.c (scev_info_hasher): Remove.
977 (struct instantiate_cache_entry): New type.
978 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
979 (struct instantiate_cache_type): New type.
980 (set_instantiated_value, get_instantiated_value): Remove.
981 (get_instantiated_value_entry): New function.
982 (instantiate_scev_name): Use the new cache and adjust.
983 (instantiate_scev_poly): Adjust.
984 (instantiate_scev_binary): Likewise.
985 (instantiate_array_ref): Likewise.
986 (instantiate_scev_convert): Likewise.
987 (instantiate_scev_not): Likewise.
988 (instantiate_scev_3): Likewise.
989 (instantiate_scev_2): Likewise.
990 (instantiate_scev_r): Likewise.
991 (instantiate_scev): Likewise.
992 (resolve_mixers): Likewise.
994 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
997 * lra-constraints.c (best_small_class_operands_num): Remove.
998 (process_alt_operands): Remove small_class_operands_num. Take
999 small classes operands into losers and only if the operand is not
1000 matched. Modify debugging output.
1001 (curr_insn_transform): Remove best_small_class_operands_num.
1004 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1006 * config/aarch64/aarch64-builtins.c
1007 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
1008 * config/aarch64/aarch64-simd-builtins.def
1009 (reduc_splus_): Add new modes.
1010 (reduc_uplus_): New.
1011 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
1012 (reduc_uplus_v4sf): Likewise.
1013 (reduc_splus_v4sf): Likewise.
1014 (aarch64_addv<mode>): Likewise.
1015 (reduc_uplus_<mode>): Likewise.
1016 (reduc_splus_<mode>): Likewise.
1017 (aarch64_addvv2di): Likewise.
1018 (reduc_uplus_v2di): Likewise.
1019 (reduc_splus_v2di): Likewise.
1020 (aarch64_addvv2si): Likewise.
1021 (reduc_uplus_v2si): Likewise.
1022 (reduc_splus_v2si): Likewise.
1023 (reduc_<sur>plus_<mode>): New.
1024 (reduc_<sur>plus_v2di): Likewise.
1025 (reduc_<sur>plus_v2si): Likewise.
1026 (reduc_<sur>plus_v4sf): Likewise.
1027 (aarch64_addpv4sf): Likewise.
1028 * config/aarch64/arm_neon.h
1029 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
1030 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
1031 add UNSPEC_SADDV, UNSPEC_UADDV.
1033 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
1035 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1037 * config/aarch64/arm_neon.h
1038 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
1040 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1042 * config/aarch64/aarch64-builtins
1043 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
1045 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1047 * config/aarch64/aarch64-simd-builtins.def
1049 (reduc_smin_): Likewise.
1050 (reduc_umax_): Likewise.
1051 (reduc_umin_): Likewise.
1052 (reduc_smax_nan_): Likewise.
1053 (reduc_smin_nan_): Likewise.
1056 (smax): Update for V2SF, V4SF and V2DF modes.
1059 (smin_nan): Likewise.
1060 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
1061 (<su><maxmin><mode>3): ...This, refactor.
1062 (s<maxmin><mode>3): New.
1063 (<maxmin_uns><mode>3): Likewise.
1064 (reduc_<maxmin_uns>_<mode>): Refactor.
1065 (reduc_<maxmin_uns>_v4sf): Likewise.
1066 (reduc_<maxmin_uns>_v2si): Likewise.
1067 (aarch64_<fmaxmin><mode>: Remove.
1068 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
1070 (vmin<q>_f<32,64>): Likewise.
1071 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
1073 (su): Add mappings for smax, smin, umax, umin.
1075 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
1076 (FMAXMIN): Rename as...
1077 (FMAXMIN_UNS): ...This.
1079 (fmaxminv): Likewise.
1080 (fmaxmin): Likewise.
1082 (maxmin_uns_op): Likewise.
1084 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1086 * config/aarch64/arm_neon.h
1087 (vac<ge, gt><sd>_f<32, 64>): Rename to...
1088 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
1089 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
1091 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1093 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
1094 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
1096 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1098 * config/aarch64/aarch64-simd.md
1099 (vcond<mode>_internal): Handle special cases for constant masks.
1100 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
1101 (vcondu<mode><mode>): Likewise.
1102 (vcond<v_cmp_result><mode>): New.
1104 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1106 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
1107 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
1108 * config/aarch64/aarch64-simd-builtins.def
1109 (cmeq): Update to BUILTIN_VALLDI.
1114 * config/aarch64/arm_neon.h
1115 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
1116 to builtins or C as appropriate.
1118 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1120 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
1122 (cmhi): Rename to...
1124 * config/aarch64/aarch64-simd.md
1125 (simd_mode): Add SF.
1126 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
1127 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
1128 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
1129 (cstore<mode>_neg): ...This.
1130 * config/aarch64/iterators.md
1132 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
1134 (UCOMPARISONS): Likewise.
1135 (optab): Add missing comparisons.
1143 (V_cmp_result): Add DF, SF modes.
1144 (v_cmp_result): Likewise.
1147 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
1149 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
1151 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
1152 define_insn to define_insn_and_split.
1153 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
1154 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
1155 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
1156 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
1157 (thumb2_negscc): Likewise.
1159 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
1161 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
1163 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
1165 * config/arm/thumb2.md: Remove trailing whitespaces.
1167 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1169 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
1170 Use gen_int_mode rather than GEN_INT.
1172 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
1174 * value-prof.c (stream_in_histogram_value): Remove the strayed
1177 2013-04-30 Richard Biener <rguenther@suse.de>
1180 * cfghooks.c (split_edge): Properly check for the loop latch edge.
1182 2013-04-30 Richard Biener <rguenther@suse.de>
1185 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
1187 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
1189 PR rtl-optimization/56957
1190 PR rtl-optimization/57105
1191 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
1192 variable. Use just INSN_UID for determining whether an insn
1193 should be only disconnected from the insn stream.
1194 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
1196 2013-04-30 Jakub Jelinek <jakub@redhat.com>
1198 PR tree-optimization/57104
1199 * tsan.c (instrument_expr): Don't instrument accesses to
1200 DECL_HARD_REGISTER VAR_DECLs.
1202 2013-04-30 Richard Biener <rguenther@suse.de>
1204 * function.h (loops_for_fn): New inline function.
1205 (set_loops_for_fn): Likewise.
1206 * cfgloop.h (place_new_loop): Add struct function parameter.
1207 (get_loop): Likewise.
1208 (get_loops): Likewise.
1209 (number_of_loops): Likewise.
1211 (fel_init): Likewise.
1212 * cfg.c (get_loop_copy): Adjust.
1213 * cfgloop.c (flow_loops_dump): Likewise.
1214 (record_loop_exits): Likewise.
1215 (verify_loop_structure): Likewise.
1216 * cfgloopanal.c (mark_irreducible_loops): Likewise.
1217 (estimate_reg_pressure_cost): Likewise.
1218 (mark_loop_exit_edges): Likewise.
1219 * cfgloopmanip.c (place_new_loop): Likewise.
1220 (add_loop): Likewise.
1221 (duplicate_loop): Likewise.
1222 * graph.c (draw_cfg_nodes): Likewise.
1223 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
1224 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
1225 (extract_affine_chrec): Likewise.
1226 (build_scop_iteration_domain): Likewise.
1227 * graphite.c (graphite_initialize): Likewise.
1228 * ira-build.c (create_loop_tree_nodes): Likewise.
1229 (more_one_region_p): Likewise.
1230 (rebuild_regno_allocno_maps): Likewise.
1231 (mark_loops_for_removal): Likewise.
1232 (mark_all_loops_for_removal): Likewise.
1233 (remove_unnecessary_regions): Likewise.
1234 (ira_build): Likewise.
1235 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
1236 * loop-init.c (fix_loop_structure): Likewise.
1237 (gate_rtl_move_loop_invariants): Likewise.
1238 (gate_rtl_unswitch): Likewise.
1239 (gate_rtl_unroll_and_peel_loops): Likewise.
1240 (rtl_doloop): Likewise.
1241 * lto-streamer-in.c (input_cfg): Likewise.
1242 * lto-streamer-out.c (output_cfg): Likewise.
1243 * modulo-sched.c (sms_schedule): Likewise.
1244 * predict.c (tree_estimate_probability): Likewise.
1245 (tree_estimate_probability_driver): Likewise.
1246 (estimate_loops): Likewise.
1247 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
1248 (move_sese_region_to_fn): Likewise.
1249 (debug_loop_num): Likewise.
1250 * tree-chrec.c (chrec_evaluate): Likewise.
1251 (hide_evolution_in_other_loops_than_loop): Likewise.
1252 (chrec_component_in_loop_num): Likewise.
1253 (reset_evolution_in_loop): Likewise.
1254 (evolution_function_is_invariant_rec_p): Likewise.
1255 * tree-if-conv.c (main_tree_if_conversion): Likewise.
1256 * tree-inline.c (copy_loops): Likewise.
1257 (copy_cfg_body): Likewise.
1258 (tree_function_versioning): Likewise.
1259 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
1260 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
1262 (add_to_evolution_1): Likewise.
1263 (scev_const_prop): Likewise.
1264 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
1265 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
1266 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
1267 (tree_ssa_lim_initialize): Likewise.
1268 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
1269 (verify_loop_closed_ssa): Likewise.
1270 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
1271 (tree_ssa_loop_im): Likewise.
1272 (tree_ssa_loop_unswitch): Likewise.
1273 (tree_vectorize): Likewise.
1274 (check_data_deps): Likewise.
1275 (tree_ssa_loop_ivcanon): Likewise.
1276 (tree_ssa_loop_bounds): Likewise.
1277 (tree_complete_unroll): Likewise.
1278 (tree_complete_unroll_inner): Likewise.
1279 (tree_parallelize_loops): Likewise.
1280 (tree_ssa_loop_prefetch): Likewise.
1281 (tree_ssa_loop_ivopts): Likewise.
1282 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
1283 * tree-vectorizer.c (vectorize_loops): Likewise.
1285 2013-04-29 Mike Frysinger <vapier@gentoo.org>
1287 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
1288 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
1289 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
1290 with EABI_LINK_SPEC.
1292 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
1295 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
1298 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
1301 * lra-constraints.c (process_alt_operands): Discourage a bit more
1302 using memory for pseudos. Print cost dump for alternatives.
1303 Modify cost values for conflicts with early clobbers.
1304 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
1306 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
1309 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
1311 2013-04-29 Ian Bolton <ian.bolton@arm.com>
1313 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
1315 (movdi_aarch64): Support LDR/STR from/to D register.
1317 2013-04-29 Ian Bolton <ian.bolton@arm.com>
1319 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
1320 or higher by default.
1322 2013-04-29 Richard Biener <rguenther@suse.de>
1325 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
1326 even if not adding abnormal edges for calls that can make
1329 2013-04-29 Richard Biener <rguenther@suse.de>
1332 * tree-cfg.c (move_stmt_op): Fix condition under which to update
1334 (move_stmt_r): Remove redundant checking.
1336 2013-04-29 Teresa Johnson <tejohnson@google.com>
1339 * basic-block.h (apply_scale): New function.
1340 (apply_probability): Use apply_scale.
1341 * gimple-streamer-in.c (input_bb): Ditto.
1342 * lto-streamer-in.c (input_cfg): Ditto.
1343 * lto-cgraph.c (merge_profile_summaries): Ditto.
1344 * tree-optimize.c (execute_fixup_cfg): Ditto.
1345 * tree-inline.c (copy_bb): Update comment to use apply_scale.
1346 (copy_edges_for_bb): Ditto.
1347 (copy_cfg_body): Ditto.
1349 2013-04-29 Tom de Vries <tom@codesourcery.com>
1351 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
1352 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
1353 (tail_merge_optimize): Handle current_loops == NULL.
1355 2013-04-26 Jeff Law <law@redhat.com>
1357 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
1358 (simplify_cond_using_ranges): Generalize code to simplify
1359 COND_EXPRs where one argument is a constant and the other
1360 is an SSA_NAME created by an integral type conversion.
1362 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1364 * config/arm/arm.md (store_minmaxsi): Use only when
1365 optimize_insn_for_size_p.
1367 2013-04-29 Christian Bruel <christian.bruel@st.com>
1370 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
1372 2013-04-29 Richard Biener <rguenther@suse.de>
1375 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
1376 loop tree make sure to schedule a fixup for the child as well.
1377 (expand_omp_for_generic): Properly add loops.
1378 (expand_omp_for_static_nochunk): Likewise.
1379 (expand_omp_for_static_chunk): Likewise.
1380 (expand_omp_for): For the degenerate case fixup loops.
1381 (expand_omp_sections): Fix default bb placement in loops.
1382 (expand_omp_atomic_pipeline): Properly add loops.
1384 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1386 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
1388 2013-04-29 Tom de Vries <tom@codesourcery.com>
1390 * tree-ssa-tail-merge.c: Update header comment.
1392 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1394 * config/aarch64/arm_neon.h
1395 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
1396 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
1397 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
1398 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
1399 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
1400 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
1401 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
1402 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
1404 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1406 * config/aarch64/aarch64-simd.md
1407 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
1408 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
1409 fix_trunc, fixuns_trunc.
1410 (ftrunc<VDQF:mode>2): New.
1411 * config/aarch64/iterators.md (optab): Add fix, fixuns.
1412 (fix_trunc_optab): New.
1414 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1416 * config/aarch64/aarch64-builtins.c
1417 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
1418 iceilf, lround, iroundf.
1420 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
1423 * config/i386/i386.h (enum ix86_tune_indices)
1424 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
1425 New, split from X86_TUNE_INTER_UNIT_MOVES.
1426 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
1427 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
1428 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
1429 (TARGET_INTER_UNIT_MOVES): Remove.
1430 * config/i386/i386.c (initial_ix86_tune_features): Update.
1431 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
1432 (ix86_expand_convert_uns_didf_sse): Use
1433 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
1434 (ix86_expand_vector_init_one_nonzero): Ditto.
1435 (ix86_expand_vector_init_interleave): Ditto.
1436 (inline_secondary_memory_needed): Return true for moves from SSE class
1437 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
1438 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
1439 * config/i386/constraints.md (Yi, Ym): Depend on
1440 TARGET_INTER_UNIT_MOVES_TO_VEC.
1441 (Yj, Yn): New constraints.
1442 * config/i386/i386.md (*movdi_internal): Change constraints of
1443 operand 1 from Yi to Yj and from Ym to Yn.
1444 (*movsi_internal): Ditto.
1445 (*movdf_internal): Ditto.
1446 (*movsf_internal): Ditto.
1447 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
1448 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
1449 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
1450 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
1451 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
1452 * config/i386/sse.md (movdi_to_sse): Ditto.
1453 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
1454 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
1455 TARGET_INTER_UNIT_MOVES.
1456 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
1457 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
1458 instead of TARGET_INTER_UNIT_MOVES.
1459 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
1460 operand 1 from Yi to Yj and from Ym to Yn.
1462 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1464 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
1465 (float_truncate_hi_): Likewise.
1466 (float_extend_lo_): Likewise.
1467 (float_truncate_lo_): Likewise.
1468 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
1469 (aarch64_float_extend_lo_v2df): Likewise.
1470 (vec_unpacks_hi_v4sf): Likewise.
1471 (aarch64_float_truncate_lo_v2sf): Likewise.
1472 (aarch64_float_truncate_hi_v4sf): Likewise.
1473 (vec_pack_trunc_v2df): Likewise.
1474 (vec_pack_trunc_df): Likewise.
1476 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1478 * config/aarch64/aarch64-builtins.c
1479 (aarch64_fold_builtin): Fold float conversions.
1480 * config/aarch64/aarch64-simd-builtins.def
1481 (floatv2si, floatv4si, floatv2di): New.
1482 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
1483 * config/aarch64/aarch64-simd.md
1484 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
1485 * config/aarch64/iterators.md (FLOATUORS): New.
1486 (optab): Add float, floatuns.
1487 (su_optab): Likewise.
1489 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1491 * config/aarch64/aarch64-builtins.c
1492 (aarch64_builtin_vectorized_function): Use new names for
1494 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
1495 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
1496 (fcvtzu): Split as...
1497 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
1498 (fcvtas): Split as...
1499 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
1500 (fcvtau): Split as...
1501 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
1502 (fcvtps): Split as...
1503 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
1504 (fcvtpu): Split as...
1505 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
1506 (fcvtms): Split as...
1507 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
1508 (fcvtmu): Split as...
1509 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
1510 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
1511 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
1512 (lfrintnusf, lfrintnudf): Likewise.
1513 * config/aarch64/aarch64-simd.md
1514 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
1516 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
1517 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
1518 (fcvt_pattern): Likewise.
1520 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1522 * config/aarch64/aarch64-simd.md
1523 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
1524 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
1526 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1528 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
1529 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
1530 (vrnd<a,m,n,p>_f32): Implement using builtins.
1531 (vrnd<i,x><q>_f<32, 64>): New.
1533 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1535 * config/aarch64/aarch64-builtins.c
1536 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
1537 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
1538 (frintz): Rename to...
1540 (frintp): Rename to...
1542 (frintm): Rename to...
1544 (frinti): Rename to...
1545 (nearbyint): ...this.
1546 (frintx): Rename to...
1548 (frinta): Rename to...
1550 * config/aarch64/aarch64-simd.md
1551 (aarch64_frint<frint_suffix><mode>): Delete.
1552 (<frint_pattern><mode>2): Convert to insn.
1553 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
1554 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
1555 (frint_pattern): Likewise.
1556 (frint_suffix): Likewise.
1558 2013-04-29 Richard Biener <rguenther@suse.de>
1560 PR tree-optimization/57081
1561 * loop-init.c: Include tree-flow.h.
1562 (loop_optimizer_finalize): Free number of iteration estimates.
1563 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
1565 2013-04-29 Jakub Jelinek <jakub@redhat.com>
1567 PR tree-optimization/57083
1568 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
1569 non-singleton shift count range, zero extend low_bound for uns case.
1571 * config/i386/predicates.md (general_vector_operand): New predicate.
1572 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
1573 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
1574 if they aren't nonimmediate operands. If their original values
1575 satisfy const_vector_equal_evenodd_p, don't shift them.
1576 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
1577 predicates. For the SSE4.1 case force operands[{1,2}] into registers
1578 if not nonimmediate_operand.
1579 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
1580 instead of register_operand.
1581 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
1583 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
1585 * stor-layout.c (finalize_size_functions): Allocate a structure and
1586 reset cfun before dumping the functions.
1588 2013-04-27 Jakub Jelinek <jakub@redhat.com>
1590 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
1593 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
1594 use xop_pmacsdqh if uns_p.
1595 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
1596 the immediate rotate count.
1598 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
1600 * rtl.h (struct rtx_def): Add comment for field jump.
1601 (LRA_SUBREG_P): New macro.
1602 * recog.c (register_operand): Check LRA_SUBREG_P.
1603 * lra.c (lra): Add note at the end of RTL code. Align non-empty
1605 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
1606 (lra_final_code_change): Skip subreg change for operators.
1607 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
1608 if there are no operand changes.
1609 * lra-constraints.c (curr_insn_set): New.
1610 (match_reload): Set LRA_SUBREG_P.
1611 (emit_spill_move): Ditto.
1612 (check_and_process_move): Use curr_insn_set. Process only single
1613 set insns. Don't initialize sec_mem_p and change_p.
1614 (simplify_operand_subreg): Use LRA_SUBREG_P.
1615 (reg_in_class_p): New function.
1616 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
1617 of #ifdef. Add code to remove cycling.
1618 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
1619 non-null disp. Reload inner instead of disp when base and index
1620 are null. Try to put lo_sum into register.
1621 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
1622 (check_and_process_move): Move code for move cost check to
1623 simple_move_p. Remove equiv_substitution.
1624 (simple_move_p): New function.
1625 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
1626 curr_insn_set. Call check_and_process_move only for single set
1627 insns. Use the new function. Move call of check_and_process_move
1628 after operand equiv substitution and address process.
1630 2013-04-26 Jakub Jelinek <jakub@redhat.com>
1633 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
1634 with nonlocal goto receivers or returns twice calls, ignore
1635 unininitialized values from abnormal edges to nl goto receiver
1636 or returns twice call.
1638 2013-04-26 Jakub Jelinek <jakub@redhat.com>
1640 PR tree-optimization/57051
1641 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
1642 and VEC_RSHIFT_EXPR if shift count is a multiple of element
1645 2013-04-26 Richard Biener <rguenther@suse.de>
1647 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
1648 (expand_omp_taskreg): Likewise. Mark loops for fixup.
1649 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
1650 (fixup_loop_arrays_after_move): New function.
1651 (move_sese_region_to_fn): Properly outline the loop tree parts
1654 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
1656 * config/i386/i386.md (type, unit): Fix long lines.
1658 2013-04-26 Richard Biener <rguenther@suse.de>
1660 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
1661 (lto-streamer-out.o): Likewise.
1662 * cfgloop.c (init_loops_structure): Export, add struct function
1663 argument and adjust.
1664 (flow_loops_find): Adjust.
1665 * cfgloop.h (enum loop_estimation): Add EST_LAST.
1666 (init_loops_structure): Declare.
1667 * lto-streamer-in.c: Include cfgloop.h.
1668 (input_cfg): Input the loop tree.
1669 * lto-streamer-out.c: Include cfgloop.h.
1670 (output_cfg): Output the loop tree.
1671 (output_struct_function_base): Do not drop PROP_loops.
1673 2013-03-26 Richard Biener <rguenther@suse.de>
1675 * tree-cfg.c (execute_build_cfg): Build the loop tree.
1676 (pass_build_cfg): Provide PROP_loops.
1677 (move_sese_region_to_fn): Remove loops that are outlined into fn
1679 * tree-inline.c: Include cfgloop.h.
1680 (initialize_cfun): Do not drop PROP_loops.
1681 (copy_loops): New function.
1682 (copy_cfg_body): Copy loop structure.
1683 (tree_function_versioning): Initialize destination loop tree.
1684 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
1685 (pass_parallelize_loops): Do IL verification.
1686 * loop-init.c (loop_optimizer_init): Fixup loops if required.
1687 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
1688 the CFG make sure we fixup loops as well.
1689 * tree-ssa-tail-merge.c: Include cfgloop.h.
1690 (replace_block_by): When merging loop latches mark loops for fixup.
1691 * lto-streamer-out.c (output_struct_function_base): Drop
1693 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
1694 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
1695 * ipa-split.c: Include cfgloop.h.
1696 (split_function): Add the new return block to the loop tree root.
1697 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
1698 whether we have removed the forwarder block.
1699 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
1700 * cfgloop.h (place_new_loop): Declare.
1701 * cfgloopmanip.c (place_new_loop): Export.
1702 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
1703 (tree-switch-conversion.o): Likewise.
1704 (tree-complex.o): Likewise.
1705 (tree-inline.o): Likewise.
1706 (tree-ssa-tailmerge.o): Likewise.
1707 (ipa-split.o): Likewise.
1708 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
1709 (tree-ssa-copy.o): Likewise.
1710 * tree-switch-conversion.c: Include cfgloop.h
1711 (process_switch): If we emit a bit-test cascade, schedule loops
1713 * tree-complex.c: Include cfgloop.h.
1714 (expand_complex_div_wide): Properly add new basic-blocks to loops.
1715 * asan.c: Include cfgloop.h.
1716 (create_cond_insert_point): Properly add new basic-blocks to
1717 loops, schedule loop fixup.
1718 * cfgloop.c (verify_loop_structure): Check that looks are not
1720 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
1722 (expand_omp_for_generic): Likewise.
1723 (expand_omp_sections): Likewise.
1724 (expand_omp_atomic_pipeline): Schedule loops for fixup.
1725 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
1726 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
1727 is initialized, not when loops are present.
1728 * tree-parloops.c (parallelize_loops): Remove checking here.
1729 * passes.c (init_optimization_passes): Schedule a copy-propagation
1730 pass before complete unrolling of inner loops.
1732 2013-04-26 Jakub Jelinek <jakub@redhat.com>
1734 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
1735 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
1736 (colorize_init): Add argument to _WIN32 version.
1737 * toplev.c: Include diagnostic-color.h.
1738 (process_options): Default to -fdiagnostics-color=auto if
1739 GCC_COLORS env var is in the environment.
1740 * common.opt (fdiagnostics-color=): Add Var and Init.
1741 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
1742 env var is in the environment, the default is auto rather than never.
1744 * diagnostic.h (file_name_as_prefix): Add context argument.
1745 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
1746 the string as locus.
1747 * langhooks.c (lhd_print_error_function): Adjust caller.
1749 2013-04-25 Lawrence Crowl <crowl@google.com>
1751 * var-tracking.c (shared_hash_def::htab):
1752 Change type to hash_table. Update dependent calls and types.
1754 2013-04-25 Lawrence Crowl <crowl@google.com>
1756 * Makefile.in: Update as needed below.
1758 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
1759 Move declaration to after the type's method definitons.
1761 * attribs.c (htab_t scoped_attributes::attribute_hash):
1762 Change type to hash_table. Update dependent calls and types.
1764 * bitmap.c (htab_t bitmap_desc_hash):
1765 Change type to hash_table. Update dependent calls and types.
1767 * cselib.c (htab_t cselib_hash_table):
1768 Change type to hash_table. Update dependent calls and types.
1770 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
1771 (hash_string_slot_node): Move implementation into lto-streamer.h
1772 struct string_slot_hasher.
1773 (eq_string_slot_node): Likewise.
1775 * data-streamer-out.c: Update output_block::string_hash_table
1776 dependent calls and types.
1778 * dwarf2cfi.c (htab_t trace_index):
1779 Change type to hash_table. Update dependent calls and types.
1781 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
1782 Change type to hash_table. Update dependent calls and types.
1783 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
1784 (htab_t optimize_external_refs::map): Likewise.
1785 (htab_t output_comp_unit::extern_map): Likewise.
1786 (htab_t output_comdat_type_unit::extern_map): Likewise.
1787 (htab_t output_macinfo::macinfo_htab): Likewise.
1788 (htab_t optimize_location_lists::htab): Likewise.
1789 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
1791 * except.c (htab_t ehspec_hash_type):
1792 Change type to hash_table. Update dependent calls and types.
1793 (assign_filter_values::ttypes): Likewise.
1794 (assign_filter_values::ehspec): Likewise.
1795 (sjlj_assign_call_site_values::ar_hash): Likewise.
1796 (convert_to_eh_region_ranges::ar_hash): Likewise.
1798 * gcse.c (htab_t pre_ldst_table):
1799 Change type to hash_table. Update dependent calls and types.
1801 * ggc-common.c (htab_t saving_htab):
1802 Change type to hash_table. Update dependent calls and types.
1803 (htab_t loc_hash): Likewise.
1804 (htab_t ptr_hash): Likewise.
1805 (call_count): Rename ggc_call_count.
1806 (call_alloc): Rename ggc_call_alloc.
1807 (loc_descriptor): Rename make_loc_descriptor.
1808 (add_statistics): Rename ggc_add_statistics.
1810 * ggc-common.c (saving_htab):
1811 Change type to hash_table. Update dependent calls and types.
1813 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
1814 (push_gimplify_context): Likewise.
1815 (pop_gimplify_context): Likewise.
1816 (struct gimple_temp_hash_elt): Added.
1817 (struct gimplify_hasher): Likewise.
1818 (struct gimplify_ctx.temp_htab):
1819 Change type to hash_table. Update dependent calls and types.
1821 * gimple-fold.c: Include gimplify-ctx.h.
1823 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
1824 Change type to hash_table. Update dependent calls and types.
1825 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
1826 avoid potential global name collision.
1828 * gimplify.c: Include gimplify-ctx.h.
1829 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
1830 (htab_t gimplify_ctx::temp_htab):
1831 Update dependent calls and types for new type hash_table.
1832 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
1833 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
1835 * gimplify-ctx.h: New.
1836 (struct gimple_temp_hash_elt): Move from gimplify.c.
1837 (class gimplify_hasher): New.
1838 (struct gimplify_ctx): Move from gimple.h.
1839 (htab_t gimplify_ctx::temp_htab):
1840 Change type to hash_table. Update dependent calls and types.
1842 * graphite-clast-to-gimple.c: Include graphite-htab.h.
1843 (htab_t ivs_params::newivs_index):
1844 Change type to hash_table. Update dependent calls and types.
1845 (htab_t ivs_params::params_index): Likewise.
1846 (htab_t print_generated_program::params_index): Likewise.
1847 (htab_t gloog::newivs_index): Likewise.
1848 (htab_t gloog::params_index): Likewise.
1850 * graphite.c: Include graphite-htab.h.
1851 4htab_t graphite_transform_loops::bb_pbb_mapping):
1852 Change type to hash_table. Update dependent calls and types.
1854 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
1855 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
1856 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
1858 * graphite-dependences.c: Include graphite-htab.h.
1859 (loop_is_parallel_p): Change hash table type of parameter.
1861 * graphite-htab.h: New.
1862 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
1863 (extern find_pbb_via_hash): Move from graphite-poly.h.
1864 (extern loop_is_parallel_p): Move from graphite-poly.h.
1865 (extern get_loop_body_pbbs): Move from graphite-poly.h.
1867 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
1868 (extern loop_is_parallel_p): Move to graphite-htab.h.
1869 (extern get_loop_body_pbbs): Move to graphite-htab.h.
1871 * haifa-sched.c (htab_t delay_htab):
1872 Change type to hash_table. Update dependent calls and types.
1873 (htab_t delay_htab_i2): Likewise.
1875 * ira-color.c (htab_t allocno_hard_regs_htab):
1876 Change type to hash_table. Update dependent calls and types.
1878 * ira-costs.c (htab_t cost_classes_htab):
1879 Change type to hash_table. Update dependent calls and types.
1881 * loop-invariant.c (htab_t merge_identical_invariants::eq):
1882 Change type to hash_table. Update dependent calls and types.
1884 * loop-iv.c (htab_t bivs):
1885 Change type to hash_table. Update dependent calls and types.
1887 * loop-unroll.c (htab_t opt_info::insns_to_split):
1888 Change type to hash_table. Update dependent calls and types.
1889 (htab_t opt_info::insns_with_var_to_expand): Likewise.
1891 * lto-streamer.h (struct string_slot): Move from data-streamer.h
1892 (struct string_slot_hasher): New.
1893 (htab_t output_block::string_hash_table):
1894 Change type to hash_table. Update dependent calls and types.
1896 * lto-streamer-in.c (freeing_string_slot_hasher): New.
1897 (htab_t file_name_hash_table):
1898 Change type to hash_table. Update dependent calls and types.
1900 * lto-streamer-out.c: Update output_block::string_hash_table dependent
1903 * lto-streamer.c (htab_t tree_htab):
1904 Change type to hash_table. Update dependent calls and types.
1906 * omp-low.c: Include gimplify-ctx.h.
1908 * passes.c (htab_t name_to_pass_map):
1909 Change type to hash_table. Update dependent calls and types.
1910 (pass_traverse): Rename to passes_pass_traverse.
1912 * plugin.c (htab_t event_tab):
1913 Change type to hash_table. Update dependent calls and types.
1915 * postreload-gcse.c (htab_t expr_table):
1916 Change type to hash_table. Update dependent calls and types.
1917 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
1919 * sese.c (debug_rename_map_1): Make extern.
1920 (htab_t copy_bb_and_scalar_dependences::rename_map):
1921 Change type to hash_table. Update dependent calls and types.
1923 * sese.h (extern debug_rename_map): Move to .c file.
1925 * store-motion.c (htab_t store_motion_mems_table):
1926 Change type to hash_table. Update dependent calls and types.
1928 * trans-mem.c (htab_t tm_new_mem_hash):
1929 Change type to hash_table. Update dependent calls and types.
1931 * tree-browser.c (htab_t TB_up_ht):
1932 Change type to hash_table. Update dependent calls and types.
1934 * tree-cfg.c (htab_t discriminator_per_locus):
1935 Change type to hash_table. Update dependent calls and types.
1937 * tree-complex.c: Include tree-hasher.h
1938 (htab_t complex_variable_components):
1939 Change type to hash_table. Update dependent calls and types.
1941 * tree-eh.c (htab_t finally_tree):
1942 Change type to hash_table. Update dependent calls and types.
1944 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
1945 struct int_tree_hasher.
1946 (extern int_tree_map_eq): Likewise.
1947 (uid_decl_map_hash): Removed.
1948 (extern decl_tree_map_eq): Likewise.
1950 * tree-hasher.h: New.
1951 (struct int_tree_hasher): New.
1952 (typedef int_tree_htab_type): New.
1954 * tree-inline.c: Include gimplify-ctx.h.
1956 * tree-mudflap.c: Include gimplify-ctx.h.
1958 * tree-parloops.c: Include tree-hasher.h.
1959 (htab_t eliminate_local_variables_stmt::decl_address):
1960 Change type to hash_table. Update dependent calls and types.
1961 (htab_t separate_decls_in_region::decl_copies): Likewise.
1963 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
1964 Change type to hash_table. Update dependent calls and types.
1966 * tree-sra.c (candidates):
1967 Change type to hash_table. Update dependent calls and types.
1969 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
1971 (int_tree_map_hash): Likewise.
1973 * tree-ssa-dom.c (htab_t avail_exprs):
1974 Change type to hash_table. Update dependent calls and types.
1976 * tree-ssa-live.c (var_map_base_init::tree_to_index):
1977 Change type to hash_table. Update dependent calls and types.
1979 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
1980 Change type to hash_table. Update dependent calls and types.
1982 * tree-ssa-phiopt.c (seen_ssa_names):
1983 Change type to hash_table. Update dependent calls and types.
1985 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
1986 Change type to hash_table. Update dependent calls and types.
1988 * tree-ssa-uncprop.c (equiv):
1989 Change type to hash_table. Update dependent calls and types.
1991 2013-04-25 Jakub Jelinek <jakub@redhat.com>
1993 PR rtl-optimization/57003
1994 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
1995 call note_stores with kill_clobbered_value callback again after
1996 killing regs_invalidated_by_call.
1998 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
2000 * config/aarch64/aarch64-simd.md
2001 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
2002 (aarch64_simd_bsl<mode>): Likewise.
2003 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
2005 2013-04-25 Marek Polacek <polacek@redhat.com>
2007 PR tree-optimization/57066
2008 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
2010 2013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
2012 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
2014 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
2016 * config/aarch64/aarch64-builtins.c
2017 (aarch64_fold_builtin): New.
2018 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
2019 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
2020 * config/aarch64/aarch64-simd-builtins.def (abs): New.
2021 * config/aarch64/arm_neon.h
2022 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
2024 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
2025 Tejas Belagod <tejas.belagod@arm.com>
2027 * config/aarch64/aarch64-builtins.c
2028 (aarch64_gimple_fold_builtin): New.
2029 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
2030 * config/aarch64/aarch64-simd-builtins.def (addv): New.
2031 * config/aarch64/aarch64-simd.md (addpv4sf): New.
2033 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
2035 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2037 * config/aarch64/aarch64.md
2038 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
2040 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2042 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
2043 (*ngcsi_uxtw): New pattern.
2045 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2046 Julian Brown <julian@codesourcery.com>
2048 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
2049 (TB_DREG): Add T_V4HF.
2050 (v4hf_UP): New macro.
2051 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
2052 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
2053 Handle initialisation of V4HF. Adjust initialisation of reinterpret
2055 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
2056 (arm_vector_mode_supported_p): Handle V4HF.
2057 (arm_mangle_map): Handle V4HFmode.
2058 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
2059 * config/arm/arm_neon_builtins.def: Add entries for
2060 vcvtv4hfv4sf, vcvtv4sfv4hf.
2061 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
2062 (neon_vcvtv4hfv4sf): Likewise.
2063 * config/arm/neon-gen.ml: Handle half-precision floating point
2065 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
2066 * config/arm/arm_neon.h: Regenerate.
2067 * config/arm/neon.ml (type elts): Add F16.
2068 (type vectype): Add T_float16x4, T_floatHF.
2069 (type vecmode): Add V4HF.
2070 (type features): Add Requires_FP_bit feature.
2071 (elt_width): Handle F16.
2072 (elt_class): Likewise.
2073 (elt_of_class_width): Likewise.
2074 (mode_of_elt): Refactor.
2075 (type_for_elt): Handle F16, fix error messages.
2076 (vectype_size): Handle T_float16x4.
2077 (vcvt_sh): New function.
2078 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
2079 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
2080 (string_of_mode): Handle V4HF.
2081 * doc/arm-neon-intrinsics.texi: Regenerate.
2083 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
2085 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
2086 format specifier in 'X' case.
2088 2013-04-25 Alan Modra <amodra@gmail.com>
2091 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
2092 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
2093 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
2094 Repeat for many other rotate/shift and mask patterns using subregs.
2095 Name lshiftrt insns.
2096 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
2097 on WORDS_BIG_ENDIAN.
2099 2013-04-25 Alan Modra <amodra@gmail.com>
2101 * config.gcc: Support little-endian powerpc-linux targets.
2102 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
2103 (LINK_OS_LINUX_SPEC): Define.
2104 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
2105 Preserve MASK_LITTLE_ENDIAN.
2106 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
2107 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
2108 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
2109 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
2110 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
2111 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
2112 Correct fp word order for little-endian. Don't shift toc entries
2113 smaller than a word for little-endian.
2114 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
2115 (bswapdi2 splits): Correct low-part subreg for little-endian.
2116 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
2117 low/high where such is correct only for be.
2118 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
2119 little-endian for -mcall-aixdesc.
2121 2013-04-25 Alan Modra <amodra@gmail.com>
2123 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
2124 replace_equiv_address_nv.
2126 2013-04-25 Alan Modra <amodra@gmail.com>
2128 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
2130 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
2133 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
2134 * rtl.h (struct rtx_def): ...
2136 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
2138 PR rtl-optimizations/57046
2139 * lra-constraints (split_reg): Set up lra_risky_transformations_p
2140 for multi-reg splits.
2142 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
2144 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
2146 2013-04-24 Sterling Augustine <saugustine@google.com>
2148 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
2149 (comp_dir_string, debug_str_dwo_section): New.
2150 (DEBUG_STR_DWO_SECTION): Rename to ...
2151 (DEBUG_DWO_STR_SECTION): ... this.
2152 (DEBUG_NORM_STR_SECTION): Delete.
2153 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
2154 (DEBUG_STR_DWO_SECTION_FLAGS): New.
2155 (find_AT_string): Move most logic to ...
2156 (find_AT_string_in_table): ... here. New.
2157 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
2158 add_skeleton_AT_string. Delete logic.
2159 (output_skeleton_debug_sections): Remove call to
2160 add_top_level_skeleton_die_attrs.
2161 (add_comp_dir_attribute): Move logic to comp_dir_string.
2162 (dwarf2out_init): Initialize debug_str_dwo_section.
2163 (output_indirect_string): Call find_string_form.
2164 (output_indirect_strings): Rewrite.
2165 (prune_unused_types): Empty skeleton_debug_str_hash.
2166 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
2167 (dwarf2out_finish): Call output_indirect_strings.
2169 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2171 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
2173 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
2175 * rtl.h (struct rtx_def): Add comment for field jump.
2176 (LRA_SUBREG_P): New macro.
2177 * recog.c (register_operand): Check LRA_SUBREG_P.
2178 * lra.c (lra): Add note at the end of RTL code. Align non-empty
2180 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
2181 (lra_final_code_change): Skip subreg change for operators.
2182 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
2183 if there are no operand changes.
2184 * lra-constraints.c (curr_insn_set): New.
2185 (match_reload): Set LRA_SUBREG_P.
2186 (emit_spill_move): Ditto.
2187 (check_and_process_move): Use curr_insn_set. Process only single
2188 set insns. Don't initialize sec_mem_p and change_p.
2189 (simplify_operand_subreg): Use LRA_SUBREG_P.
2190 (reg_in_class_p): New function.
2191 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
2192 of #ifdef. Add code to remove cycling.
2193 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
2194 non-null disp. Reload inner instead of disp when base and index
2195 are null. Try to put lo_sum into register.
2196 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
2197 (check_and_process_move): Move code for move cost check to
2198 simple_move_p. Remove equiv_substitution.
2199 (simple_move_p): New function.
2200 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
2201 curr_insn_set. Call check_and_process_move only for single set
2202 insns. Use the new function. Move call of check_and_process_move
2203 after operand equiv substitution and address process.
2205 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
2207 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
2208 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
2209 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
2211 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2213 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
2215 2013-04-24 Marek Polacek <polacek@redhat.com>
2217 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
2218 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
2219 (select_loops_exit_conditions): Likewise.
2220 (number_of_iterations_for_all_loops): Likewise.
2221 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
2222 (scev_analysis): Likewise.
2224 2013-04-02 Catherine Moore <clm@codesourcery.com>
2225 Chao-ying Fu <fu@mips.com>
2227 * config/mips/micromips.md (jraddiusp): New pattern.
2228 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
2229 instruction if possible.
2231 2013-04-24 Alan Modra <amodra@gmail.com>
2233 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
2235 2013-04-24 Julian Brown <julian@codesourcery.com>
2236 Chung-Lin Tang <cltang@codesourcery.com>
2238 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
2239 dependency behavior in enumeration type DIE generation. Add TODO note
2240 to comments about future DW_FORM_sdata/udata re-work of related code.
2242 2013-04-23 Lawrence Crowl <crowl@google.com>
2244 * Makefile.in: Update as needed below.
2246 * hash-table.h (class hash_table):
2247 Correct many methods with parameter types compare_type to the correct
2248 value_type. (Correct code was unlikely to notice the change.)
2249 (hash_table::elements_with_deleted) New.
2250 (class hashtable::iterator): New.
2251 (hashtable::begin()): New.
2252 (hashtable::end()): New.
2253 (FOR_EACH_HASH_TABLE_ELEMENT): New.
2255 * statistics.c (statistics_hashes):
2256 Change type to hash_table. Update dependent calls and types.
2258 * tree-into-ssa.c (var_infos):
2259 Change type to hash_table. Update dependent calls and types.
2261 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
2262 Change type to hash_table. Update dependent calls and types.
2264 * tree-ssa-loop-im.c (struct mem_ref.refs):
2265 Change type to hash_table. Update dependent calls and types.
2267 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
2268 Change type to hash_table. Update dependent calls and types.
2270 * tree-ssa-sccvn.c (vn_tables_s::nary):
2271 Change type to hash_table. Update dependent calls and types.
2272 (vn_tables_s::phis): Likewise.
2273 (vn_tables_s::references): Likewise.
2275 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
2276 (vn_reference_eq): Update parameter and return types.
2278 * tree-ssa-structalias.c (pointer_equiv_class_table):
2279 Change type to hash_table. Update dependent calls and types.
2280 (location_equiv_class_table): Likewise.
2282 * tree-vect-data-refs.c: Consequential changes for making
2283 peeling a hash_table.
2285 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
2286 (destroy_loop_vec_info): Dependent hash_table update.
2288 * tree-vectorizer.h (peeling_htab):
2289 Change type to hash_table. Update dependent calls and types.
2291 2013-04-23 Shiva Chen <shiva0217@gmail.com>
2293 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
2294 to check the register content is equal or not.
2295 * lra-constraints.c (match_reload): Use lra_assign_reg_val
2296 to assign register content record.
2297 * lra-eliminations.c (update_reg_eliminate): Use
2298 lra_update_reg_val_offset to update register content offset.
2299 * lra-int.h (struct lra_reg): Add offset member.
2300 (lra_reg_val_equal_p): New static inline function.
2301 (lra_update_reg_val_offset): New static inline function.
2302 (lra_assign_reg_val): New static inline function.
2303 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
2304 to assign register content record.
2305 (initialize_lra_reg_info_element): Initial offset to zero.
2307 2013-04-23 Catherine Moore <clm@codesourcery.com>
2309 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
2310 operands. Record compression.
2312 2013-04-23 Xinliang David Li <davidxl@google.com>
2314 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
2316 2013-04-23 Richard Biener <rguenther@suse.de>
2319 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
2320 parameter, only add abnormal goto edges from the copied body
2321 if the call could perform abnormal gotos.
2322 (copy_cfg_body): Adjust.
2324 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
2326 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
2328 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
2330 * coretypes.h (gimple_stmt_iterator): Add struct to make
2333 2013-04-23 Richard Biener <rguenther@suse.de>
2335 PR tree-optimization/57026
2336 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
2337 from SSA names occuring in abnormal PHI nodes.
2339 2013-04-22 Andi Kleen <ak@linux.intel.com>
2341 * lto/lto.c (print_lto_report_1): Fix LTO report names.
2343 2013-04-22 Andi Kleen <ak@linux.intel.com>
2345 * lto/lto.c (print_lto_report_1): Declare early.
2346 (read_cgraph_and_symbols): Call print_lto_report_1 early.
2348 2013-04-22 Andi Kleen <ak@linux.intel.com>
2350 * common.opt (-flto-report-wpa): Add.
2351 * doc/invoke.texi (-flto-report-wpa): Add.
2352 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
2355 2013-04-22 Xinliang David Li <davidxl@google.com>
2357 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
2358 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
2359 * Makefile.in: New dependency
2361 David Daney <ddaney.cavm@gmail.com>
2363 * configure.ac (gcc_cv_as_micromips_support): Use the
2364 --fatal-warnings option.
2365 * configure: Regenerate.
2367 2013-04-22 Marek Polacek <polacek@redhat.com>
2370 * tsan.c (instrument_expr): Don't instrument expression
2371 in case its size is zero.
2373 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
2377 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
2379 * config/alpha/alpha.c (TARGET_LRA_P): New define.
2381 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
2383 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
2384 (gimple_stmt_iterator): New typedef.
2385 * gimple.h (gimple_stmt_iterator): Rename to...
2386 (gimple_stmt_iterator_d): ... This.
2387 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
2388 trees be valid for GIMPLE and GENERIC.
2389 (TARGET_GIMPLE_FOLD_BUILTIN): New.
2390 * gimple-fold.c (gimple_fold_call): Call target hook
2391 gimple_fold_builtin.
2392 * hooks.c (hook_bool_gsiptr_false): New.
2393 * hooks.h (hook_bool_gsiptr_false): New.
2394 * target.def (fold_stmt): New.
2395 * doc/tm.texi: Regenerate.
2397 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
2400 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
2401 a set sp if no stack realignment.
2403 2013-04-22 Nick Clifton <nickc@redhat.com>
2405 * config.gcc (tilegx-linux): Extend extra_objs rather than
2407 (tilepro-linux): Likewise.
2409 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
2411 * config/aarch64/aarch64-builtins.c
2413 (CF0, CF1, CF2, CF3, CF4, CF10): New.
2414 (VAR<1-12>): Add MAP parameter.
2415 (BUILTIN_*): Likewise.
2416 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
2417 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
2418 (aarch64_ushl_n<mode>): Likewise.
2419 (aarch64_sshr_n<mode>): Likewise.
2420 (aarch64_ushr_n<mode>): Likewise.
2421 (aarch64_<maxmin><mode>): Likewise.
2422 (aarch64_sqrt<mode>): Likewise.
2423 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
2424 (vshr<q>_n_*): Likewise.
2426 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
2428 * config/aarch64/aarch64-builtins.c
2429 (aarch64_simd_builtin_type_mode): Handle SF types.
2431 (BUILTIN_GPF): Define.
2432 (aarch64_init_simd_builtins): Handle SF types.
2433 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
2436 * config/aarch64/aarch64-simd.md
2437 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
2438 (aarch64_frecpe<mode>): New.
2439 (aarch64_frecps<mode>): Likewise.
2440 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
2441 (v8type): Add frecp<esx>.
2442 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
2443 (aarch64_frecps<mode>): Likewise.
2444 * config/aarch64/iterators.md (FRECP): New.
2445 (frecp_suffix): Likewise.
2446 * config/aarch64/arm_neon.h
2447 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
2449 2013-04-22 Christian Bruel <christian.bruel@st.com>
2452 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
2453 (REG_CLASS_NAMES): Idem.
2454 (REG_CLASS_CONTENTS): Idem.
2455 (REGCLASS_HAS_FP_REG): Idem.
2456 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
2457 (sh_conditional_register_usage): Idem.
2459 2013-04-21 Jeff Law <law@redhat.com>
2461 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
2462 (ssa_forward_propagate_and_combine): Use it.
2464 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
2466 * lra.c: Update the flow chart diagram.
2468 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
2470 PR rtl-optimization/56847
2471 * lra-constraints.c (process_alt_operands): Discourage alternative
2472 with non-matche doffsettable memory constraint fro memory with
2475 2013-04-19 Richard Biener <rguenther@suse.de>
2477 PR tree-optimization/56982
2478 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
2480 * gimplify.c (gimplify_call_expr): Notice special calls.
2481 (gimplify_modify_expr): Likewise.
2482 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
2483 abnormal control flow receivers.
2484 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
2485 in the same way as cfun->has_nonlocal_labels.
2486 (gimple_purge_dead_abnormal_call_edges): Likewise.
2487 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
2488 receivers start a basic-block.
2490 2013-04-19 Richard Biener <rguenther@suse.de>
2492 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
2494 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
2495 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
2496 (SLP_TREE_LOAD_PERMUTATION): Add.
2497 (vect_transform_slp_perm_load): Adjust prototype.
2498 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
2499 (vect_free_slp_instance): Likewise.
2500 (vect_create_new_slp_node): Likewise.
2501 (vect_supported_slp_permutation_p): Remove.
2502 (vect_slp_rearrange_stmts): Adjust.
2503 (vect_supported_load_permutation_p): Likewise. Inline
2504 vect_supported_slp_permutation_p here.
2505 (vect_analyze_slp_instance): Compute load permutations per
2506 slp node instead of per instance.
2507 (vect_get_slp_defs): Adjust.
2508 (vect_transform_slp_perm_load): Likewise.
2509 (vect_schedule_slp_instance): Remove redundant code.
2510 (vect_schedule_slp): Remove hack for PR56270, add it ...
2511 * tree-vect-stmts.c (vectorizable_load): ... here, do not
2512 CSE loads for SLP. Adjust.
2514 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
2516 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
2517 spelling in two comments.
2519 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
2522 * config/arm/arm.c (load_multiple_sequence): Require SP
2523 as base register for loads if SP is in the register list.
2525 2013-04-19 Martin Jambor <mjambor@suse.cz>
2527 PR tree-optimization/56718
2528 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
2529 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
2530 and made public. Adjusted all callers.
2531 (ipa_intraprocedural_devirtualization): New function.
2532 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
2533 (ipa_intraprocedural_devirtualization): Likewise.
2534 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
2536 2013-04-19 Richard Biener <rguenther@suse.de>
2538 PR tree-optimization/57000
2539 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
2541 2013-04-19 Terry Guo <terry.guo@arm.com>
2543 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
2545 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
2546 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
2547 (cortex_m4_fmacs): Use new reservations.
2548 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
2550 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
2552 PR rtl-optimization/56999
2553 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
2555 (lra_coalesce): Remove split_origin_bitmap and related code.
2556 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
2557 ranges if necessary.
2559 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
2561 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
2563 (ix86_expand_call): Remove clobbered_registers array and use
2564 x86_64_ms_sysv_extra_clobbered_registers instead.
2565 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
2567 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
2569 * config/i386/i386.md (*call_rex64_ms_sysv): Use
2570 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
2571 (*call_value_rex64_ms_sysv): Ditto.
2573 2013-04-18 Cary Coutant <ccoutant@google.com>
2575 * dwarf2out.c (output_pubnames): Check die_perennial_p of
2576 parent instead of die_mark.
2578 2013-04-18 Diego Novillo <dnovillo@google.com>
2580 * gimple.c (create_gimple_tmp): New.
2581 (get_expr_type): New.
2582 (build_assign): New.
2583 (build_type_cast): New.
2584 * gimple.h (enum ssa_mode): Define.
2585 (gimple_seq_set_location): New.
2586 * asan.c (build_check_stmt): Change some gimple_build_* calls
2587 to use build_assign and build_type_cast.
2589 2013-04-18 Richard Biener <rguenther@suse.de>
2591 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
2592 handle negative step. Remove redundant checks.
2593 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
2594 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
2595 for negative step and grouped loads fail to vectorize.
2597 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
2599 * emit-rtl.c (reset_insn_used_flags): New function.
2600 (reset_all_used_flags): Use it.
2601 (verify_insn_sharing): New function.
2602 (verify_rtl_sharing): Fix verification for SEQUENCEs.
2604 2013-04-18 Jakub Jelinek <jakub@redhat.com>
2606 PR tree-optimization/56984
2607 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
2608 and (x >> M) >= N don't register any assertion if N << M is the
2611 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
2613 * lower-subreg.c (resolve_simple_move): If called self-recursive,
2614 do not delete_insn insns that have not yet been emitted, only
2615 unlink them with remove_insn.
2616 * df-scan.c (df_insn_delete): Revert r197492.
2618 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
2620 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
2621 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
2623 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
2625 * config/arm/arm.md (movsicc_insn): Convert define_insn into
2626 define_insn_and_split.
2627 (and_scc,ior_scc,negscc): Likewise.
2628 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
2630 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
2632 * config/arm/arm.c (use_return_insn): Return 0 for targets that
2633 can benefit from using a sequence of LDRD instructions in epilogue
2634 instead of a single LDM instruction.
2636 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
2639 * doc/extend.texi: Fix typo.
2641 2013-04-17 Richard Biener <rguenther@suse.de>
2643 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
2644 (vect_build_slp_tree): ... here.
2645 (vect_build_slp_tree_1): Compute which stmts of the SLP group
2646 match. Remove special-casing of mismatched complex loads.
2647 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
2648 re-try the match with swapped commutative operands.
2649 (vect_supported_load_permutation_p): Remove special-casing of
2650 mismatched complex loads.
2651 (vect_analyze_slp_instance): Adjust.
2653 2013-04-17 Richard Biener <rguenther@suse.de>
2655 PR rtl-optimization/56921
2656 * cfgloop.h (struct loop): Add simple_loop_desc member.
2657 (struct niter_desc): Mark with GTY(()).
2658 (simple_loop_desc): Do not use aux field but simple_loop_desc.
2659 * loop-iv.c (get_simple_loop_desc): Likewise.
2660 (free_simple_loop_desc): Likewise.
2663 2013-04-16 Richard Biener <rguenther@suse.de>
2665 PR rtl-optimization/56921
2666 * loop-init.c (pass_rtl_move_loop_invariants): Add
2667 TODO_do_not_ggc_collect to todo_flags_finish.
2668 (pass_rtl_unswitch): Same.
2669 (pass_rtl_unroll_and_peel_loops): Same.
2670 (pass_rtl_doloop): Same.
2672 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
2674 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
2675 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
2676 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
2678 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
2679 * tree-streamer.c (record_common_node): Adjust reference in comment.
2681 2013-04-17 Terry Guo <terry.guo@arm.com>
2683 * config/arm/cortex-m4.md: Add a new bypass.
2685 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2687 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
2689 (*subs_<optab><mode>_multp2): New pattern.
2690 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
2691 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
2693 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2695 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
2696 (*subs_mul_imm_<mode>): New pattern.
2698 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
2701 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
2702 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
2703 (vsx_movti_32bit): Change j->wa to O->wa.
2705 2013-04-16 Richard Biener <rguenther@suse.de>
2707 PR rtl-optimization/56921
2708 * loop-init.c (pass_rtl_move_loop_invariants): Add
2709 TODO_do_not_ggc_collect to todo_flags_finish.
2710 (pass_rtl_unswitch): Same.
2711 (pass_rtl_unroll_and_peel_loops): Same.
2712 (pass_rtl_doloop): Same.
2714 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
2716 * config/arm/arm.c (emit_multi_reg_push): New declaration
2717 for an existing function.
2718 (arm_emit_strd_push): New function.
2719 (arm_expand_prologue): Used here.
2720 (arm_emit_ldrd_pop): New function.
2721 (arm_expand_epilogue): Used here.
2722 (arm_get_frame_offsets): Update condition.
2723 (arm_emit_multi_reg_pop): Add a special case for load of a single
2724 register with writeback.
2726 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
2728 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
2731 2013-04-16 Richard Biener <rguenther@suse.de>
2733 PR tree-optimization/56756
2734 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
2735 (first_mem_ref_loc): New.
2736 (execute_sm): Place the load temporarily before a previous
2737 access instead of in the latch edge to ensure its SSA dependencies
2738 are defined at points dominating the load.
2740 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
2742 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
2743 correct fix by moving header and footer insn to the footer of
2744 the merged basic block. Clear BB_END of the merged-away block.
2747 * emit-rtl.c (make_note_raw): New function.
2748 (link_insn_into_chain): New static inline function.
2750 (add_insn_before, add_insn_after): Factor insn chain linking code...
2751 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
2752 using link_insn_into_chain.
2753 (note_outside_basic_block_p): New helper function for emit_note_after
2754 and emit_note_before.
2755 (emit_note_after): Use nobb variant of add_insn_after if the note
2756 should not be contained in a basic block.
2757 (emit_note_before): Use nobb variant of add_insn_before if the note
2758 should not be contained in a basic block.
2759 (emit_note_copy): Use make_note_raw.
2760 (emit_note): Likewise.
2761 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
2762 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
2763 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
2764 the moved barrier the tail of the basic block it follows.
2765 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
2767 2013-04-15 Jakub Jelinek <jakub@redhat.com>
2769 PR tree-optimization/56962
2770 * gimple-ssa-strength-reduction.c (record_increment): Only set
2771 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
2772 either rhs1 or rhs2 is equal to c->base_expr.
2774 2013-04-15 Richard Biener <rguenther@suse.de>
2776 PR tree-optimization/56933
2777 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
2779 (GROUP_READ_WRITE_DEPENDENCE): Remove.
2780 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
2781 * tree-vect-data-refs.c (vect_analyze_group_access): Move
2782 dependence check ...
2783 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
2785 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
2786 GROUP_READ_WRITE_DEPENDENCE.
2788 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2790 * emit-rtl.c (reset_all_used_flags): New function.
2791 (verify_rtl_sharing): Call reset_all_used_flags before and after
2792 performing the checks.
2794 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2796 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
2797 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
2798 * config/arm/constraints.md (De): New constraint.
2799 * config/arm/neon.md (anddi3_neon): Delete.
2800 (neon_vand<mode>): Expand to standard anddi3 pattern.
2801 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
2802 Move earlier in the file.
2803 (neon_inv_logic_op2): Likewise.
2804 (arm_anddi_operand_neon): New predicate.
2806 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2808 * configure.ac (gcc_cv_ld_as_needed): Set
2809 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
2810 Use -z ignore, -z record on *-*-solaris2*.
2811 (HAVE_LD_AS_NEEDED): Update comment.
2812 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
2813 * configure: Regenerate.
2814 * config.in: Regenerate.
2815 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
2816 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
2817 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
2818 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
2819 equivalents. Fix markup.
2820 * doc/tm.texi: Regenerate.
2822 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
2824 * config/i386/i386.opt: New option mstack-protector-guard=.
2825 * config/i386/i386-opts.h: Add enum stack_protector_guard.
2826 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
2827 TARGET_SSP_TLS_GUARD.
2828 * config/i386/i386.c (ix86_option_override_internal): Set
2829 ix86_stack_protector_guard.
2830 * config/i386/i386.md (stack_protect_set): Enable for
2831 TARGET_SSP_TLS_GUARD only.
2832 (stack_protect_set_<mode>): Ditto.
2833 (stack_protect_test): Ditto.
2834 (stack_protect_test_<mode>): Ditto.
2835 * doc/invoke.texi (i386 Option): Document.
2837 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
2840 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
2841 (S_MODES): Set H_MODE bit.
2842 (SF_MODES): Set only S_MODE and SF_MODE bits.
2843 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
2844 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
2845 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
2846 <MODE_FLOAT>: Likewise.
2848 2013-04-15 Joey Ye <joey.ye@arm.com>
2850 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
2852 2013-04-15 Joey Ye <joey.ye@arm.com>
2854 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
2856 (thumb_far_jump_used_p): Count instruction size and set
2859 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
2861 * reorg.c (fill_simple_delay_slots): Reindent block of code.
2862 * resource.c (mark_target_live_regs): Reformat conditional block.
2864 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
2866 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
2867 notes, they are emitted only just before final.
2868 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
2870 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
2872 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
2873 * cfgrtl.c (delete_insn): Call it here instead.
2874 * lra-spills.c (lra_final_code_change): Use delete_insn.
2875 * haifa-sched.c (sched_remove_insn): Likewise.
2876 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
2877 returning to the nop pool.
2878 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
2879 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
2881 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
2883 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
2884 * doc/tm.texi: Regenerated.
2886 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
2888 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
2891 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
2893 * df-core.c (df_find_def): Compare register numbers.
2894 (df_find_use): Likewise.
2896 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
2899 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
2900 lra_in_progress for return.
2902 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
2904 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
2905 define_insn into define_insn_and_split and emit movsicc patterns.
2907 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
2909 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
2911 2013-04-12 Richard Biener <rguenther@suse.de>
2913 * tree-pass.h (TODO_do_not_ggc_collect): New.
2914 * passes.c (execute_one_ipa_transform_pass): Honor
2915 TODO_do_not_ggc_collect.
2916 (execute_one_pass): Likewise.
2919 2013-04-10 Richard Biener <rguenther@suse.de>
2921 * passes.c (init_optimization_passes): Remove reload pass.
2922 * ira.c (do_reload): Merge into ...
2924 (rest_of_handle_reload): Remove.
2925 (pass_reload): Likewise.
2926 * config/i386/i386.c (ix86_option_override): Refer to ira instead
2927 of reload for vzeroupper pass placement.
2929 2013-04-12 Jakub Jelinek <jakub@redhat.com>
2931 PR tree-optimization/56918
2932 PR tree-optimization/56920
2933 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
2934 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
2935 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
2936 use wide_mul_with_sign method.
2938 2013-04-12 Richard Biener <rguenther@suse.de>
2940 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
2941 not be considered a gimple constant.
2943 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
2945 * fold-const.c (const_binop): Handle vector shifts by a scalar.
2946 (fold_binary_loc): Call const_binop also for mixed vector-scalar
2949 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
2950 Jakub Jelinek <jakub@redhat.com>
2952 * opts.c: Include diagnostic-color.h.
2953 (common_handle_option): Handle OPT_fdiagnostics_color_.
2954 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
2955 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
2956 (diagnostic-color.o): New.
2957 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
2958 (diagnostic_color_rule): New enum.
2959 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
2960 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
2961 the location string.
2962 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
2963 either NULL, or color kind.
2964 * diagnostic-color.c: New file.
2965 * diagnostic-color.h: New file.
2966 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
2968 * doc/invoke.texi (-fdiagnostics-color): Document.
2969 * pretty-print.h (pp_show_color): Define.
2970 (struct pretty_print_info): Add show_color field.
2971 * diagnostic.c: Include diagnostic-color.h.
2972 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
2973 macros. Colorize error:, warning: etc. strings and also the location
2975 (diagnostic_show_locus): Colorize the caret line.
2976 * pretty-print.c: Include diagnostic-color.h.
2977 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
2978 inside of %< %> quotes or quoted through q format modifier.
2980 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2982 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
2984 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2986 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
2988 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
2991 2013-04-11 Marek Polacek <polacek@redhat.com>
2993 PR tree-optimization/48184
2994 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
2996 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
2998 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
2999 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
3000 (skip_simple_arithmetic): Tidy up.
3001 * tree.h (skip_simple_constant_arithmetic): Declare.
3003 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3005 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
3007 2013-04-11 Richard Biener <rguenther@suse.de>
3009 * tree-vect-loop.c (get_initial_def_for_induction): Properly
3010 generate vector constants.
3012 2013-04-11 Richard Biener <rguenther@suse.de>
3014 PR tree-optimization/56878
3015 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
3016 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
3018 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3019 Prefer to align the DR with the most invariant base address.
3021 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3023 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
3026 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
3028 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
3029 floating-point vector comparisons against 0.
3031 2013-04-11 Jakub Jelinek <jakub@redhat.com>
3033 PR tree-optimization/56899
3034 * fold-const.c (extract_muldiv_1): Apply distributive law
3035 only if TYPE_OVERFLOW_WRAPS (ctype).
3037 2013-04-11 Bin Cheng <bin.cheng@arm.com>
3040 * ira-costs.c (scan_one_insn): Check whether the source rtx of
3041 loading has side effect.
3043 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
3045 * config/sparc/sparc.c: Include tree-pass.h.
3046 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
3047 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
3048 head of file. Change return type. Split off gate function.
3049 (sparc_gate_work_around_errata): New function.
3050 (pass_work_around_errata): New pass definition.
3051 (insert_pass_work_around_errata) New pass insert definition to
3052 insert pass_work_around_errata just after delayed-branch scheduling.
3053 (sparc_option_override): Insert the pass.
3054 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
3056 2013-04-10 David S. Miller <davem@davemloft.net>
3058 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
3059 or -mcpu=hypersparc.
3061 * target.def (cstore_mode): New hook.
3062 * target.h: Include insn-codes.h
3063 * targhooks.c: Likewise.
3064 (default_cstore_mode): New function.
3065 * targhooks.h: Declare it.
3066 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
3067 * doc/tm.texi: Rebuild.
3068 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
3069 target hook, rather than inspecting the insn_data.
3070 * config/sparc/sparc.c (sparc_cstore_mode): New function.
3071 (TARGET_CSTORE_MODE): Redefine.
3072 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
3074 * config/sparc/predicates.md (cstore_result_operand): New special
3076 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
3077 Use it for operand 0.
3078 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
3079 (*snesi_special): Likewise.
3080 (*snesi_zero): Likewise.
3081 (*seqsi_zero): Likewise.
3082 (*sltu_insn): Likewise.
3083 (*sgeu_insn): Likewise.
3084 (*seqdi_special): Make operand 0 and comparison operation be of
3086 (*snedi_special): Likewise.
3087 (*snedi_special_vis3): Likewise.
3088 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
3089 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
3090 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
3091 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
3092 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
3093 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
3094 (*sltu_extend_sp64): Likewise.
3095 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
3096 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
3097 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
3098 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
3099 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
3101 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
3103 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
3104 (aarch64_start_file): Use the new function.
3106 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3107 Jason Merrill <jason@redhat.com>
3109 * common.opt: Add -gdwarf.
3110 * opts.c (common_handle_option): Handle it.
3111 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
3113 2013-04-10 Richard Biener <rguenther@suse.de>
3115 * passes.c (execute_todo): Do not call ggc_collect conditional here.
3116 (execute_one_ipa_transform_pass): But unconditionally here.
3117 (execute_one_pass): And here.
3118 (init_optimization_passes): Remove reload pass.
3119 * tree-pass.h (TODO_ggc_collect): Remove.
3120 (pass_reload): Likewise.
3121 * ira.c (do_reload): Merge into ...
3123 (rest_of_handle_reload): Remove.
3124 (pass_reload): Likewise.
3125 * config/i386/i386.c (ix86_option_override): Refer to ira instead
3126 of reload for vzeroupper pass placement.
3127 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
3128 and todo_flags_finish of all passes.
3130 2013-04-10 Richard Biener <rguenther@suse.de>
3132 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
3133 first_const_oprnd field, rename first_def_type to first_op_type.
3134 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
3135 (vect_get_and_check_slp_defs): Always use the type of the
3136 operand. Allow mixed vect_external_def, vect_constant_def types.
3137 (vect_get_constant_vectors): Handle mixed vect_external_def,
3138 vect_constant_def types.
3140 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
3142 PR tree-optimization/55524
3143 * tree-ssa-math-opts.c
3144 (convert_mult_to_fma): Don't use an fms construct
3145 when we don't have an fms operation, but fnma, and it looks
3146 likely that we'll be able to use the latter.
3148 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
3150 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
3152 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
3153 inline fail caused by overwritable functions.
3155 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
3157 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
3158 unnecessary bits in the constant power of two case.
3160 2013-04-10 Richard Biener <rguenther@suse.de>
3162 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
3163 broken code swapping operands.
3164 (vect_build_slp_tree): Do not compute load permutations here.
3165 (vect_analyze_slp_instance): Compute load permutations here,
3166 after building the SLP tree.
3168 2013-04-09 Christian Bruel <christian.bruel@st.com>
3170 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
3171 of next/prev_real_insn.
3173 2013-04-09 Jan Hubicka <jh@suse.cz>
3175 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
3176 Drop aliased parameter.
3177 (function_and_variable_visibility): Do not handle alias pairs.
3178 * cgraph.c (varpool_externally_visible_p): Update prototype.
3179 * varpool.c (varpool_add_new_variable): Update.
3181 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3183 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
3185 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
3187 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
3189 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
3191 2013-04-09 Marek Polacek <polacek@redhat.com>
3193 PR tree-optimization/48762
3194 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
3196 2013-04-09 Richard Biener <rguenther@suse.de>
3198 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
3200 (vect_build_slp_tree): Likewise.
3201 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
3202 calculating the cost of a SLP instance.
3203 (vect_analyze_slp_instance): Use it from here, after building
3206 2013-04-09 Jakub Jelinek <jakub@redhat.com>
3209 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
3210 expand_omp_for_static_chunk): Use simple_p = true in
3211 force_gimple_operand_gsi calls when assigning to addressable decls.
3213 2013-04-09 Jeff Law <law@redhat.com>
3215 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
3216 when the boolean was created by converting a wider object which
3217 had a boolean range.
3219 2013-04-09 Richard Biener <rguenther@suse.de>
3221 * tree-vectorizer.h (slp_void_p): Remove.
3222 (slp_tree): Typedef before _slp_tree declaration.
3223 (struct _slp_tree): Use a vector of slp_tree as children.
3224 (vect_get_place_in_interleaving_chain): Remove.
3225 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
3227 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
3229 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
3230 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
3231 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
3232 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
3233 Use slp_node instead of slp_void_p and adjust.
3235 2013-04-09 Richard Biener <rguenther@suse.de>
3237 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
3238 work that is not necessary.
3240 2013-04-09 Jakub Jelinek <jakub@redhat.com>
3242 PR tree-optimization/56854
3243 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
3244 forward into clobber stmts if it would change MEM_REF lhs into
3247 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
3249 * tree.c (type_hash_lookup, type_hash_add): Make static.
3250 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
3252 2013-04-09 Richard Biener <rguenther@suse.de>
3254 * tree.h (unsave_expr_now): Remove.
3255 * tree-inline.c (mark_local_for_remap_r): Remove.
3256 (unsave_expr_1): Likewise.
3257 (unsave_r): Likewise.
3258 (unsave_expr_now): Likewise.
3259 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
3260 (propagate_tree_value): Likewise.
3262 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
3264 * doc/rtl.texi (sequence): Rewrite documentation to match the
3265 current use of SEQUENCE rtl objects.
3266 * rtl.def (SEQUENCE): Likewise.
3268 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
3269 Update documentation.
3270 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
3271 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
3273 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
3275 2013-04-08 Teresa Johnson <tejohnson@google.com>
3277 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
3278 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
3280 (estimate_edge_size_and_time): Add comment to suggest using rounding
3282 (estimate_node_size_and_time): Ditto.
3283 (remap_edge_change_prob): Use helper rounding divide methods.
3284 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
3285 (gimple_mod_pow2_value_transform): Ditto.
3286 (gimple_mod_subtract_transform): Ditto.
3287 (gimple_ic_transform): Ditto.
3288 (gimple_stringops_transform): Ditto.
3289 * stmt.c (conditional_probability): Ditto.
3290 (emit_case_dispatch_table): Ditto.
3291 * lto-cgraph.c (merge_profile_summaries): Ditto.
3292 * tree-optimize.c (execute_fixup_cfg): Ditto.
3293 * cfgcleanup.c (try_forward_edges): Ditto.
3294 * cfgloopmanip.c (scale_loop_profile): Ditto.
3296 (duplicate_loop_to_header_edge): Ditto.
3297 (lv_adjust_loop_entry_edge): Ditto.
3298 * tree-vect-loop.c (vect_transform_loop): Ditto.
3299 * profile.c (compute_branch_probabilities): Ditto.
3300 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
3301 * lto-streamer-in.c (input_cfg): Ditto.
3302 * gimple-streamer-in.c (input_bb): Ditto.
3303 * ipa-cp.c (update_profiling_info): Ditto.
3304 (update_specialized_profile): Ditto.
3305 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
3306 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
3308 * sched-rgn.c (compute_dom_prob_ps): Ditto.
3309 (compute_trg_info): Ditto.
3310 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
3311 (purge_dead_edges): Ditto.
3312 * loop-unswitch.c (unswitch_loop): Ditto.
3313 * cgraphclones.c (cgraph_clone_edge): Ditto.
3314 (cgraph_clone_node): Ditto.
3315 * tree-inline.c (copy_bb): Ditto.
3316 (copy_edges_for_bb): Ditto.
3317 (initialize_cfun): Ditto.
3318 (copy_cfg_body): Ditto.
3319 (expand_call_inline): Ditto.
3321 2013-04-08 Kai Tietz <ktietz@redhat.com>
3323 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
3324 TARGET_CYGWIN64 by TARGET_64BIT.
3326 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
3328 * config/epiphany/epiphany.md (GPR_1): New constant.
3329 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
3330 * config/epiphany/epiphany.c (gen_compare_reg):
3331 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
3332 is already in place.
3333 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
3334 Don't require being called during rtl expansion; If y operlaps r0,
3336 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
3337 (epiphany_expand_epilogue): Likewise.
3339 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
3340 Don't use CC_FPmode for ORDERED / UNORDERED.
3341 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
3343 * config/epiphany/constraints.md (CnL): New constraint.
3344 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
3345 * config/epiphany/predicates.md (add_operand): Allow 1024.
3347 * config/epiphany/epiphany.md (logical_op): New code iterator.
3348 (op_mnc): New code attribute.
3349 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
3350 (mov_f+1, mov_f+2): New peephole2 patterns.
3352 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
3353 (cstoresi4): Also allow re-use of zero result when doing a NE
3354 comparison to a non-zero operand.
3355 Use (clobber (scratch)) for first insn if the gpr output is not needed.
3357 * config/epiphany/epiphany.md (<insn_opname>v2si3):
3358 Use gen_addsi3_i / gen_subsi3_i.
3360 2013-04-08 Jakub Jelinek <jakub@redhat.com>
3364 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
3365 contain anything but clobbers, at most one __builtin_stack_restore,
3366 optionally debug stmts and final resx, and if it has at least one
3367 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
3368 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
3369 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
3370 which isn't defaut definition, remove them.
3371 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
3372 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
3373 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
3374 with MEM_REF LHS with SSA_NAME address.
3376 2013-04-08 Jeff Law <law@redhat.com>
3378 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
3380 2013-04-08 Richard Biener <rguenther@suse.de>
3382 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
3384 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
3385 determined vector type.
3386 (vect_analyze_data_refs): Likewise.
3387 (vect_get_new_vect_var): Adjust.
3388 (vect_create_destination_var): Preserve SSA name versions.
3389 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
3390 not dump anything here.
3392 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
3394 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
3395 Add member lr_slot_known.
3396 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
3398 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
3399 Remove code that sets lr_slot_offset according to what a previous
3400 version of epiphany_emit_save_restore used to do.
3401 (epiphany_emit_save_restore): When doing an lr save or restore,
3402 set/verify lr_slot_known and lr_slot_offset.
3404 2013-04-08 Xinyu Qi <xyqi@marvell.com>
3407 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
3410 2013-04-08 Richard Biener <rguenther@suse.de>
3412 * alias.c (find_base_term): Fix thinko in previous change.
3414 2013-04-08 Jakub Jelinek <jakub@redhat.com>
3416 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
3417 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
3418 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
3419 if possible to compute val.
3420 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
3421 For QImode integers don't require anything about precision. Use
3422 const_with_all_bytes_same to find out if the constant doesn't have
3423 repeated bytes in it.
3425 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3427 * config/s390/s390.c (s390_expand_insv): Only accept insertions
3430 2013-04-08 Marek Polacek <polacek@redhat.com>
3432 PR rtl-optimization/48182
3433 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
3436 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3439 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
3440 nuses, make sure we have a label.
3442 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3445 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
3446 (rs6000_emit_swdiv_low_precision): Remove.
3447 (rs6000_emit_swdiv): Rewrite to handle between one and four
3448 iterations of Newton-Raphson generally; modify required number of
3449 iterations for some cases.
3450 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
3452 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
3454 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
3455 set-but-unused variable.
3457 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
3458 basic blocks of released function bodies garbage-collectable.
3460 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
3461 (struct rtl_opt_pass): Add TODO_df_finish.
3463 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
3465 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3467 * config/arm/constraints.md (q): New constraint.
3468 * config/arm/ldrdstrd.md: New file.
3469 * config/arm/arm.md (ldrdstrd.md) New include.
3470 (arm_movdi): Use "q" instead of "r" constraint
3471 for double-word memory access.
3472 (movdf_soft_insn): Likewise.
3473 * config/arm/vfp.md (movdi_vfp): Likewise.
3474 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
3475 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
3476 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
3477 (mem_ok_for_ldrd_strd): Likewise.
3478 (output_move_double): Update assertion.
3480 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3482 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
3484 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3486 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
3487 define_insn_and_split.
3488 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
3490 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3492 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
3493 define_insn_and_split.
3494 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
3495 (shiftsi3_compare): New pattern.
3497 * config/arm/unspecs.md (UNSPEC_RRX): New.
3499 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3501 * config/arm/arm.md (negdi_extendsidi): New pattern.
3502 (negdi_zero_extendsidi): Likewise.
3504 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3506 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
3507 define_insn_and_split.
3508 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
3509 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
3511 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3513 * config/arm/arm.md (arm_subdi3): Convert define_insn into
3514 define_insn_and_split.
3515 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
3516 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
3518 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3520 * config/arm/arm.md (subsi3_carryin): New pattern.
3521 (subsi3_carryin_const): Likewise.
3522 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
3523 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
3525 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3527 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
3529 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3531 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
3532 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
3534 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3536 * config/arm/arm.c (arm_expand_builtin): Change fcode
3537 type to unsigned int.
3539 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3541 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
3543 2013-04-04 Ian Lance Taylor <iant@google.com>
3545 * doc/standards.texi (Standards): The Go frontend supports the Go 1
3548 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
3551 * df-scan.c (df_insn_delete): Disable failing assert.
3553 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3555 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
3556 New function prototype.
3557 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
3558 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
3559 (arm_builtin_vectorized_function): New function.
3561 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3563 * config/arm/arm_neon_builtins.def: New file.
3564 * config/arm/arm.c (neon_builtin_data): Move contents to
3565 arm_neon_builtins.def.
3566 (enum arm_builtins): Include neon builtin definitions.
3567 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
3568 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
3570 2013-04-04 Marek Polacek <polacek@redhat.com>
3572 PR tree-optimization/48186
3573 * predict.c (maybe_hot_frequency_p): Return false if
3574 HOT_BB_FREQUENCY_FRACTION is 0.
3575 (cgraph_maybe_hot_edge_p): Likewise.
3577 2013-04-04 Richard Biener <rguenther@suse.de>
3579 PR tree-optimization/56826
3580 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
3583 2013-04-04 Richard Biener <rguenther@suse.de>
3585 PR tree-optimization/56213
3586 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
3587 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
3589 2013-04-04 Richard Biener <rguenther@suse.de>
3591 PR tree-optimization/56837
3592 * tree-loop-distribution.c (classify_partition): For non-zero
3593 values require that the value has the same precision as its
3594 mode to be useful as memset value.
3596 2013-04-03 Nick Clifton <nickc@redhat.com>
3598 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
3599 (fmssf4): Use fmsf.s on E3V5 architectures.
3600 (fnmasf4): Use fnmaf.s on E3V5 architectures.
3601 (fnmssf4): Use fnmsf.s on E3V5 architectures.
3603 2013-04-03 Jeff Law <law@redhat.com>
3605 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
3606 (lra-eliminations.o): Likewise.
3608 2013-04-03 Teresa Johnson <tejohnson@google.com>
3610 * gcov-io.c (compute_working_sets): Moved most of body of old
3611 compute_working_sets here from profile.c.
3612 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
3613 (gcov_working_set_t): Moved typedef here from basic-block.h
3614 (compute_working_set): Declare.
3615 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
3616 (get_working_sets): Renamed from compute_working_set,
3617 replace most of body with call to new compute_working_sets.
3618 (get_exec_counts): Replace call to compute_working_sets
3619 to get_working_sets.
3620 * profile.h (get_working_sets): Renamed from compute_working_set.
3621 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
3622 to get_working_sets.
3623 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
3624 * gcov-dump.c (dump_working_sets): New function.
3626 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
3628 * hwint.c (sext_hwi, zext_hwi): New functions.
3629 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
3630 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
3631 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
3632 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
3633 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
3634 (sext_hwi, zext_hwi): New functions.
3636 2013-04-03 Jeff Law <law@redhat.com>
3638 PR tree-optimization/56799
3639 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
3640 back test for widening conversion erroneously dropped in prior change.
3642 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3645 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
3646 instead of next_real_insn.
3648 2013-04-03 Marek Polacek <polacek@redhat.com>
3651 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
3653 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3656 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
3658 (thumb1_output_casesi): Likewise.
3659 (thumb2_output_casesi): Likewise.
3661 2013-04-03 Richard Biener <rguenther@suse.de>
3663 PR tree-optimization/56817
3664 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
3666 (tree_unroll_loops_completely_1): ... new function to manually
3667 walk the loop tree, properly defering outer loops of unrolled
3668 loops to later iterations.
3670 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
3672 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
3673 (vectorizable_load): Likewise.
3674 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
3675 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
3677 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
3679 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
3682 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3684 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
3686 2013-04-03 Bin Cheng <bin.cheng@arm.com>
3688 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
3690 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
3692 PR tree-optimization/56790
3693 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
3696 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
3698 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
3700 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
3701 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
3704 2013-04-03 Jakub Jelinek <jakub@redhat.com>
3707 * tree.h (force_folding_builtin_constant_p): New decl.
3708 * builtins.c (force_folding_builtin_constant_p): New variable.
3709 (fold_builtin_constant_p): Fold immediately also if
3710 force_folding_builtin_constant_p.
3712 2013-04-03 Richard Biener <rguenther@suse.de>
3714 PR tree-optimization/56812
3715 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
3716 DRs of the same interleaving chain are independent.
3718 2013-04-02 Jason Merrill <jason@redhat.com>
3720 * gdbinit.in (pbb): Use debug fn.
3722 2013-04-02 Lawrence Crowl <crowl@google.com>
3724 * sese.h (struct ivtype_map_elt_s): Remove unused.
3725 (extern debug_ivtype_map): Remove unused.
3726 (extern eq_ivtype_map_elts): Remove unused.
3727 * sese.c (debug_ivtype_map): Removed unused.
3728 (debug_ivtype_map_1): Removed unused.
3729 (debug_ivtype_elt): Remove unused.
3730 (eq_ivtype_map_elts): Remove unused.
3733 2013-04-02 Kai Tietz <ktietz@redhat.com>
3736 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
3737 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
3738 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
3740 (legitimize_pe_coff_symbol): Likewise.
3741 (is_imported_p): New helper-function.
3742 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
3743 for Windows x64 targets.
3744 (ix86_expand_prologue): Optimize for pe-coff targets.
3745 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
3746 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
3747 medium/large code-model.
3748 (legitimize_pic_address): Likewise.
3749 (legitimize_tls_address): Likewise.
3750 (ix86_expand_call): Likewise.
3751 (x86_output_mi_thunk): Likewise.
3752 (get_dllimport_decl): Add new beimport argument.
3753 (construct_plt_address): Don't assert for x64 pe-coff targets.
3754 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
3756 (SYMBOL_FLAG_STUBVAR): New macro.
3757 (SYMBOL_REF_STUBVAR_P): Likewise.
3758 * config/i386/winnt.c (stub_list): New structure.
3759 (stub_head): New local variable.
3760 (i386_pe_record_stub): New function.
3761 (i386_pe_file_end): Emit refptr-stubs.
3763 2013-04-02 Jakub Jelinek <jakub@redhat.com>
3765 PR rtl-optimization/56745
3766 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
3767 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
3770 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
3771 and both of them are MEM_REFs, just compare first argument for
3772 equality and attempt to deal even with differing offsets.
3775 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
3776 of gimple_clobber_p to be MEM_REF.
3777 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
3778 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
3779 after gimplification.
3780 * asan.c (get_mem_ref_of_assignment): Don't instrument
3781 gimple_clobber_p stmts.
3782 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
3783 gimple_clobber_p stmt if they have MEM_REF lhs and
3784 are dead because of another gimple_clobber_p stmt.
3785 * tree-ssa-live.c (clear_unused_block_pointer): Treat
3786 gimple_clobber_p stmts like debug stmts.
3787 (remove_unused_locals): Remove clobbers with MEM_REF lhs
3788 that refer to unused VAR_DECLs or uninitialized values.
3789 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
3790 gimple_clobber_p stmts if they refer to removed parameters.
3791 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
3794 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
3796 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
3797 using SWI48 mode attribute.
3799 2013-04-02 Wei Mi <wmi@google.com>
3801 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
3802 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
3803 *<rotate_insn><mode>3_mask in i386.md.
3805 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
3807 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
3809 2013-04-02 Richard Biener <rguenther@suse.de>
3811 PR tree-optimization/56778
3812 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
3813 Runtime alias tests are not supported for gather loads.
3814 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
3815 stmts referenced from SSA operands before updating SSA form.
3817 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
3818 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3820 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
3821 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
3822 * config/arm/cortex-a53.md: New file.
3823 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
3824 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
3825 * config/arm/arm.c (arm_issue_rate): Likewise.
3826 * config/arm/arm-tune.md: Regenerate
3827 * config/arm/arm-tables.opt: Regenerate.
3828 * config/arm/arm-cores.def: Add cortex-a53.
3830 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
3832 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
3835 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
3837 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
3838 scalar load/store operations using B/H registers.
3839 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
3841 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
3843 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
3845 * config/aarch64/aarch64.c
3846 (aarch64_simd_scalar_immediate_valid_for_move): New.
3847 * config/aarch64/aarch64-protos.h
3848 (aarch64_simd_scalar_immediate_valid_for_move): New.
3849 * config/aarch64/constraints.md (Dh, Dq): New.
3850 * config/aarch64/iterators.md (hq): New.
3852 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
3854 * reorg.c (get_branch_condition): Deal with conditional returns.
3855 (fill_simple_delay_slots): Remove dead code dealing with jumps.
3857 2013-04-01 Wei Mi <wmi@google.com>
3859 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
3860 Truncate operand 2 using %b asm operand modifier.
3861 (*<shift_insn><mode>3_mask): Ditto.
3862 (*<rotate_insn><mode>3_mask): Ditto.
3864 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
3867 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
3869 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
3871 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
3873 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
3875 2013-03-30 Lawrence Crowl <crowl@google.com>
3877 * dse.c (clear_alias_sets): Remove never set.
3878 (disqualified_clear_alias_sets): Remove never set.
3879 (clear_alias_mode_pool): Remove never set.
3880 (dse_step0): Remove condition that is never true.
3881 (canon_address): Remove condition that is never true.
3882 (dse_step7): Remove condition that is never true.
3883 (rest_of_handle_dse): Remove condition that is never true.
3884 (rest_of_handle_dse::did_global): Remove never read from above.
3885 (dse_step2_spill): Remove never called from above.
3886 (dse_step5_spill): Remove never called from above.
3888 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
3890 * doc/md.texi (Standard Names) <casesi>: Update documentation for
3891 JUMP_TABLE_DATA changes.
3892 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
3893 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
3894 (Insns) <jump_table_data>: New entry.
3895 * doc/tm.texi: Regenerate.
3897 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
3899 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
3900 for table jump at the end of a basic block using tablejump_p.
3901 * targhooks.c (default_invalid_within_doloop): Likewise.
3902 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
3903 target hook implementation that is identical to the default hook.
3904 (rs6000_invalid_within_doloop): Remove.
3906 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
3907 unused variable from tablejump_p call.
3909 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
3910 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
3911 (INSN_DELETED_P): Likewise.
3912 (emit_jump_table_data): New prototype.
3913 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
3914 after 4th as unused.
3915 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
3916 * sched-vis.c (print_insn): Likewise.
3917 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
3918 insn for compatibility with back ends that use next_active_insn to
3919 identify jump table data.
3920 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
3921 (remove_insn): Likewise.
3922 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
3924 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
3925 (emit_jump_table_data): New function.
3927 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
3928 basic block, a JUMP_TABLE_DATA never is.
3929 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
3930 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
3931 off from code handling real insns.
3932 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
3933 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
3934 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
3935 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
3936 is not a NONDEBUG_INSN_P.
3937 * ira-costs.c (scan_one_insn): Likewise.
3938 * jump.c (mark_all_labels): Likewise.
3939 (mark_jump_label_1): Likewise.
3940 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
3941 * lra.c (get_insn_freq): Expect all insns reaching here to be in
3943 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
3944 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
3945 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
3946 JUMP_TABLE_DATA_P insns.
3947 (calculate_elim_costs_all_insns): Likewise.
3948 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
3949 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
3950 (delete_output_reload): Code style fixups.
3951 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
3952 insn flags on this non-insn.
3953 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
3954 as scheduling barriers, for pre-change compatibility.
3955 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
3956 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
3958 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
3959 redundant JUMP_TABLE_DATA_P test.
3960 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
3961 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
3962 (frv_for_each_packet): Likewise.
3963 * config/i386/i386.c (min_insn_size): Likewise.
3964 (ix86_avoid_jump_mispredicts): Likewise.
3965 * config/m32r/m32r.c (m32r_is_insn): Likewise.
3966 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
3967 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
3968 (mips16_insn_length): Robustify.
3969 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
3970 (mips16_split_long_branches): Likewise.
3971 * config/pa/pa.c (pa_combine_instructions): Likewise.
3972 * config/rs6000/rs6000.c (get_next_active_insn): Treat
3973 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
3974 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
3975 as contributing to pool range lengths.
3976 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
3977 Remove redundant JUMP_TABLE_DATA_P test.
3978 (sh_loop_align): Likewise.
3979 (split_branches): Likewise.
3980 (sh_insn_length_adjustment): Likewise.
3981 * config/spu/spu.c (get_branch_target): Likewise.
3983 2013-03-29 Jan Hubicka <jh@suse.cz>
3985 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
3986 gcov streaming; stream hot bb threshold to ltrans.
3987 * predict.c (get_hot_bb_threshold): Break out from ....
3988 (maybe_hot_count_p): ... here.
3989 (set_hot_bb_threshold): New function.
3990 * lto-section-in.c (lto_section_name): Add profile.
3991 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
3992 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
3994 (histogram_entry): New structure.
3995 (histogram, histogram_pool): New global vars.
3996 (histogram_hash): New structure.
3997 (histogram_hash::hash): New method.
3998 (histogram_hash::equal): Likewise.
3999 (account_time_size): New function.
4000 (cmp_counts): New function.
4001 (dump_histogram): New function.
4002 (ipa_profile_generate_summary): New function.
4003 (ipa_profile_write_summary): New function.
4004 (ipa_profile_read_summary): New function.
4005 (ipa_profile): Decide on threshold.
4006 (pass_ipa_profile): Add ipa_profile_write_summary and
4007 ipa_profile_read_summary.
4008 * Makefile.in (ipa.o): Update dependencies.
4009 * lto-streamer.h (LTO_section_ipa_profile): New section.
4011 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
4013 * tree.h (VAR_P): New.
4015 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
4018 * doc/invoke.texi ([-fwhole-program]): Fix typo.
4020 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
4022 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
4023 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
4024 (control_flow_insn_p): Likewise.
4025 * cfgrtl.c (duplicate_insn_chain): Likewise.
4026 * final.c (get_attr_length_1): Likewise.
4027 (shorten_branches): Likewise.
4028 (final_scan_insn): Likewise.
4029 * function.c (instantiate_virtual_regs): Likewise.
4030 * gcse.c (insert_insn_end_basic_block): Likewise.
4031 * ira-costs.c (scan_one_insn): Likewise.
4032 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
4033 * lra.c (check_rtl): Likewise.
4034 * reload1.c (elimination_costs_in_insn): Likewise.
4035 * reorg.c (follow_jumps): Likewise.
4037 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
4038 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
4039 (thumb_far_jump_used_p): Likewise.
4040 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
4041 (workaround_speculation): Likewise.
4042 (add_sched_insns_for_speculation): Likewise.
4043 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
4044 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
4045 (frv_for_each_packet): Likewise.
4046 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
4047 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
4048 (final_emit_insn_group_barriers): Likewise.
4049 * config/m32r/m32r.c (m32r_is_insn): Likewise.
4050 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
4051 (mips16_insn_length): Likewise.
4052 * config/pa/pa.c (pa_reorg): Likewise.
4053 (pa_combine_instructions): Likewise.
4054 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
4055 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
4056 (sh_reorg): Likewise.
4057 (split_branches): Likewise.
4058 * config/spu/spu.c (get_branch_target): Likewise.
4060 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
4063 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
4065 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
4066 Fix declaration name.
4068 2013-03-28 Lawrence Crowl <crowl@google.com>
4070 * graphds.h (struct graph.indicies): Remove unused.
4071 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
4072 (SCOP_ORIGINAL_PDDRS): Remove unused.
4073 * sese.h (extern insert_loop_close_phis): Removed unused.
4074 (extern insert_guard_phis): Removed unused.
4075 (extern ivtype_map_elt_info): Removed unused.
4076 (new_ivtype_map_elt): Removed unused.
4077 * sese.c (ivtype_map_elt_info): Removed unused.
4079 2013-03-28 Lawrence Crowl <crowl@google.com>
4081 * Makefile.in: Add several missing include dependences.
4083 (test-dump.o): New. This object is not added to any executable,
4084 but is present for ad-hoc testing.
4086 (debug (const bitmap_head_def &)): New.
4087 (debug (const bitmap_head_def *)): New.
4089 (extern debug (const bitmap_head_def &)): New.
4090 (extern debug (const bitmap_head_def *)): New.
4092 (debug (edge_def &)): New.
4093 (debug (edge_def *)): New.
4095 (debug (basic_block_def &)): New.
4096 (debug (basic_block_def *)): New.
4098 (dump_node (const_tree, int, FILE *)): Correct source file.
4100 (debug (die_struct &)): New.
4101 (debug (die_struct *)): New.
4103 (extern debug (die_struct &)): New.
4104 (extern debug (die_struct *)): New.
4105 * gimple-pretty-print.c
4106 (debug (gimple_statement_d &)): New.
4107 (debug (gimple_statement_d *)): New.
4108 * gimple-pretty-print.h
4109 (extern debug (gimple_statement_d &)): New.
4110 (extern debug (gimple_statement_d *)): New.
4112 (debug (ira_allocno_copy &)): New.
4113 (debug (ira_allocno_copy *)): New.
4114 (debug (ira_allocno &)): New.
4115 (debug (ira_allocno *)): New.
4117 (extern debug (ira_allocno_copy &)): New.
4118 (extern debug (ira_allocno_copy *)): New.
4119 (extern debug (ira_allocno &)): New.
4120 (extern debug (ira_allocno *)): New.
4122 (debug (live_range &)): New.
4123 (debug (live_range *)): New.
4125 (debug (lra_live_range &)): New.
4126 (debug (lra_live_range *)): New.
4128 (debug (lra_live_range &)): New.
4129 (debug (lra_live_range *)): New.
4131 (debug (omega_pb_d &)): New.
4132 (debug (omega_pb_d *)): New.
4134 (extern debug (omega_pb_d &)): New.
4135 (extern debug (omega_pb_d *)): New.
4137 (debug (const rtx_def &)): New.
4138 (debug (const rtx_def *)): New.
4140 (debug_tree (tree): Move within file.
4141 (debug_raw (const tree_node &)): New.
4142 (debug_raw (const tree_node *)): New.
4143 (dump_tree_via_hooks (const tree_node *, int)): New.
4144 (debug (const tree_node &)): New.
4145 (debug (const tree_node *)): New.
4146 (debug_verbose (const tree_node &)): New.
4147 (debug_verbose (const tree_node *)): New.
4148 (debug_head (const tree_node &)): New.
4149 (debug_head (const tree_node *)): New.
4150 (debug_body (const tree_node &)): New.
4151 (debug_body (const tree_node *)): New.
4152 (debug_vec_tree (tree): Move and reimplement in terms of dump.
4153 (debug (vec<tree, va_gc> &)): New.
4154 (debug (vec<tree, va_gc> *)): New.
4156 (extern debug (const rtx_def &)): New.
4157 (extern debug (const rtx_def *)): New.
4159 (debug_raw (simple_bitmap_def &)): New.
4160 (debug_raw (simple_bitmap_def *)): New.
4161 (debug (simple_bitmap_def &)): New.
4162 (debug (simple_bitmap_def *)): New.
4164 (extern debug (simple_bitmap_def &)): New.
4165 (extern debug (simple_bitmap_def *)): New.
4166 (extern debug_raw (simple_bitmap_def &)): New.
4167 (extern debug_raw (simple_bitmap_def *)): New.
4169 (debug (vinsn_def &)): New.
4170 (debug (vinsn_def *)): New.
4171 (debug_verbose (vinsn_def &)): New.
4172 (debug_verbose (vinsn_def *)): New.
4173 (debug (expr_def &)): New.
4174 (debug (expr_def *)): New.
4175 (debug_verbose (expr_def &)): New.
4176 (debug_verbose (expr_def *)): New.
4177 (debug (vec<rtx> &)): New.
4178 (debug (vec<rtx> *)): New.
4180 (extern debug (vinsn_def &)): New.
4181 (extern debug (vinsn_def *)): New.
4182 (extern debug_verbose (vinsn_def &)): New.
4183 (extern debug_verbose (vinsn_def *)): New.
4184 (extern debug (expr_def &)): New.
4185 (extern debug (expr_def *)): New.
4186 (extern debug_verbose (expr_def &)): New.
4187 (extern debug_verbose (expr_def *)): New.
4188 (extern debug (vec<rtx> &)): New.
4189 (extern debug (vec<rtx> *)): New.
4191 (_list_iter_cond_expr): Make inline instead of static.
4193 (debug (sreal &)): New.
4194 (debug (sreal *)): New.
4196 (extern debug (sreal &)): New.
4197 (extern debug (sreal *)): New.
4199 (extern debug_raw (const tree_node &)): New.
4200 (extern debug_raw (const tree_node *)): New.
4201 (extern debug (const tree_node &)): New.
4202 (extern debug (const tree_node *)): New.
4203 (extern debug_verbose (const tree_node &)): New.
4204 (extern debug_verbose (const tree_node *)): New.
4205 (extern debug_head (const tree_node &)): New.
4206 (extern debug_head (const tree_node *)): New.
4207 (extern debug_body (const tree_node &)): New.
4208 (extern debug_body (const tree_node *)): New.
4209 (extern debug (vec<tree, va_gc> &)): New.
4210 (extern debug (vec<tree, va_gc> *)): New.
4212 (debug (struct loop &)): New.
4213 (debug (struct loop *)): New.
4214 (debug_verbose (struct loop &)): New.
4215 (debug_verbose (struct loop *)): New.
4216 * tree-dump.c: Add header dependence.
4218 (extern debug (struct loop &)): New.
4219 (extern debug (struct loop *)): New.
4220 (extern debug_verbose (struct loop &)): New.
4221 (extern debug_verbose (struct loop *)): New.
4223 (debug (data_reference &)): New.
4224 (debug (data_reference *)): New.
4225 (debug (vec<data_reference_p> &)): New.
4226 (debug (vec<data_reference_p> *)): New.
4227 (debug (vec<ddr_p> &)): New.
4228 (debug (vec<ddr_p> *)): New.
4230 (extern debug (data_reference &)): New.
4231 (extern debug (data_reference *)): New.
4232 (extern debug (vec<data_reference_p> &)): New.
4233 (extern debug (vec<data_reference_p> *)): New.
4234 (extern debug (vec<ddr_p> &)): New.
4235 (extern debug (vec<ddr_p> *)): New.
4237 (debug (pt_solution &)): New.
4238 (debug (pt_solution *)): New.
4240 (extern debug (pt_solution &)): New.
4241 (extern debug (pt_solution *)): New.
4243 (debug (_var_map &)): New.
4244 (debug (_var_map *)): New.
4245 (debug (tree_live_info_d &)): New.
4246 (debug (tree_live_info_d *)): New.
4248 (extern debug (_var_map &)): New.
4249 (extern debug (_var_map *)): New.
4250 (extern debug (tree_live_info_d &)): New.
4251 (extern debug (tree_live_info_d *)): New.
4253 2013-03-28 Jan Hubicka <jh@suse.cz>
4255 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
4257 2013-03-28 Ian Bolton <ian.bolton@arm.com>
4259 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
4260 record only when desired or required.
4262 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
4264 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
4265 *vec_extractv2di_1_rex64. Use x64 isa attribute.
4267 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4269 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
4270 (*andsi3_compare0_uxtw): New pattern.
4271 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
4272 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
4274 2013-03-28 Jan Hubicka <jh@suse.cz>
4276 * data-streamer-in.c (streamer_read_gcov_count): New function.
4277 * gimple-streamer-out.c: Include value-prof.h.
4278 (output_gimple_stmt): Output histogram.
4279 (output_bb): Use streamer_write_gcov_count.
4280 * value-prof.c: Include data-streamer.h
4281 (dump_histogram_value): Add HIST_TYPE_MAX.
4282 (stream_out_histogram_value): New function.
4283 (stream_in_histogram_value): New function.
4284 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
4285 (stream_out_histogram_value, stream_in_histogram_value): Declare.
4286 * data-streamer-out.c (streamer_write_gcov_count): New function.
4287 (streamer_write_gcov_count_stream): New function.
4288 * lto-cgraph.c (lto_output_edge): Update counter streaming.
4289 (lto_output_node): Likewise.
4290 (input_node, input_edge): Likewise.
4291 * lto-streamer-out.c (output_cfg): Update streaming.
4292 * lto-streamer-in.c (input_cfg): Likewise.
4293 * data-streamer.h (streamer_write_gcov_count,
4294 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
4295 * gimple-streamer-in.c: Include value-prof.h
4296 (input_gimple_stmt): Input histograms.
4297 (input_bb): Update profile streaming.
4299 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
4301 * genmodes.c (emit_max_int): New function.
4302 (emit_insn_modes_h): Added call to emit_max_function.
4303 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
4305 * machmode.def: Fixed comment.
4307 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
4309 * combine.c (try_combine): Removed useless assert.
4310 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
4312 2013-03-28 Marek Polacek <polacek@redhat.com>
4313 Richard Biener <rguenther@suse.de>
4315 PR tree-optimization/56695
4316 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
4317 build signed result of a vector comparison.
4318 * tree-cfg.c (verify_gimple_comparison): Check that a result
4319 of a vector comparison has signed type.
4321 2013-03-28 Richard Biener <rguenther@suse.de>
4323 PR tree-optimization/37021
4324 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
4325 do not restrict gaps between groups.
4326 * tree-vect-stmts.c (vectorizable_load): Properly account for
4327 a gap between groups.
4329 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
4331 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
4332 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
4335 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
4337 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
4338 * doc/extend.texi (Named Address Spaces): Ditto.
4339 (Variable Attributes): Ditto.
4341 2013-03-27 Kai Tietz <ktietz@redhat.com>
4343 * config.build: Add support for cygwin x64 target.
4344 * config.gcc: Likewise.
4345 * config.host: Likewise.
4346 * configure.ac: Likewise
4347 * configure: Regenerated.
4349 2013-03-27 Kai Tietz <ktietz@redhat.com>
4351 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
4352 * config/i386/t-cygwin-w64: New file.
4353 * config/i386/cygwin-w64.h: New file.
4354 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
4355 and add support for x64-cygwin target.
4356 (CPP_SPEC): Likewise.
4357 (CXX_WRAP_SPEC_LIST): Undefine before define.
4358 (LIBGCJ_SONAME): Use 15 as version.
4360 2013-03-27 Richard Biener <rguenther@suse.de>
4362 PR tree-optimization/56716
4363 * tree-ssa-structalias.c (perform_var_substitution): Adjust
4364 dumping for ref nodes.
4366 2013-03-27 Martin Jambor <mjambor@suse.cz>
4368 PR tree-optimization/55334
4369 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
4370 restricted pointers to arrays.
4372 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4374 * Makefile.in (.SUFFIXES): Add .cc.
4375 (.c.o): Apply same recipe for implicit rule .cc.o.
4377 2013-03-27 Richard Biener <rguenther@suse.de>
4379 PR tree-optimization/37021
4380 * tree-vect-data-refs.c (vect_check_strided_load): Allow
4381 REALPART/IMAGPART_EXPRs around the supported refs.
4382 * tree-ssa-structalias.c (find_func_aliases): Assume that
4383 floating-point values are not used to transfer pointers.
4385 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4387 * target.def (TARGET_HAS_IFUNC_P): New target hook.
4388 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
4389 * doc/tm.texi: Regenerate.
4390 * targhooks.h (default_has_ifunc_p): New.
4391 * targhooks.c (default_has_ifunc_p): Ditto.
4392 * config/linux-protos.h: New file.
4393 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
4394 this hook for linux which disables support of indirect functions in
4396 * config/linux-android.c: New file.
4397 * config/t-linux-android.c: Ditto.
4398 * config.gcc: Added new object file linux-android.o.
4399 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
4400 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
4401 * varasm.c (do_assemble_alias): Likewise.
4402 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
4403 doesn't support indirect functions.
4404 * configure: Regenerate.
4406 2013-03-27 Bin Cheng <bin.cheng@arm.com>
4409 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
4410 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
4413 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4415 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
4417 2013-03-27 Terry Guo <terry.guo@arm.com>
4419 * config/arm/arm-cores.def: Added core cortex-r7.
4420 * config/arm/arm-tune.md: Regenerated.
4421 * config/arm/arm-tables.opt: Regenerated.
4422 * doc/invoke.texi: Added entry for core cortex-r7.
4424 2013-03-27 Walter Lee <walt@tilera.com>
4426 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
4427 double-decrement of next_scratch_regno.
4429 2013-03-27 Walter Lee <walt@tilera.com>
4431 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
4433 (insn_v1mulus): Ditto.
4434 (insn_v2muls): Ditto.
4436 2013-03-27 Walter Lee <walt@tilera.com>
4438 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
4439 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
4441 2013-03-27 Walter Lee <walt@tilera.com>
4443 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
4444 (*sibcall_value): Ditto.
4446 2013-03-27 Walter Lee <walt@tilera.com>
4448 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
4449 (insn_mnz_v8qi): ... this ...
4450 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
4452 (insn_v<n>mnz): Replaced by ...
4453 (insn_v1mnz): ... this ...
4454 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
4456 (insn_mz_<mode>): Replaced by ...
4457 (insn_mz_v8qi): ... this ...
4458 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
4460 (insn_v<n>mz): Replaced by ...
4461 (insn_v1mz): ... this ...
4462 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
4465 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
4467 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
4469 2013-03-26 Roland McGrath <mcgrathr@google.com>
4471 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
4472 than fprintf with a non-constant, non-format string.
4474 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
4476 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
4477 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
4478 operand 0 predicate.
4479 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
4480 attribute. Use general_x64nomem_operand as operand 1 predicate.
4481 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
4482 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
4483 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
4484 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
4485 (mov<mode>_insv_1): Remove expander. Merge insn with
4486 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
4487 Use general_x64nomem_operand as operand 1 predicate.
4488 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
4489 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
4490 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
4491 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
4492 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
4493 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
4494 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
4495 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
4496 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
4497 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
4498 (general_x64nomem_operand): Ditto.
4500 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
4502 * config/rtems.opt: Add -pthread option.
4504 2013-03-26 Richard Biener <rguenther@suse.de>
4506 * alias.c (find_base_term): Avoid redundant and not used recursion.
4507 (base_alias_check): Get the initial base term from the caller.
4508 (true_dependence_1): Compute and pass base terms to base_alias_check.
4509 (write_dependence_p): Likewise.
4510 (may_alias_p): Likewise.
4512 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
4514 * config/aarch64/aarch64.c (aarch64_classify_address): Support
4515 PC-relative load in SI modes and above only.
4517 2013-03-26 Xinyu Qi <xyqi@marvell.com>
4519 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
4520 * config/arm/iwmmxt.md (WCGR0): Update.
4521 (WCGR1, WCGR2, WCGR3): Likewise.
4523 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
4525 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
4526 Use x64 and nox64 isa attributes.
4528 2013-03-26 Richard Biener <rguenther@suse.de>
4530 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
4531 alignment computations and rely on get_object_alignment_1
4532 for the !TYPE_P case.
4533 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
4535 2013-03-26 Walter Lee <walt@tilera.com>
4537 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
4538 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
4540 2013-03-25 Jeff Law <law@redhat.com>
4542 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
4543 check for INTEGRAL_TYPE_P that was missing due to checking in
4544 wrong version of prior patch.
4546 2013-03-25 Walter Lee <walt@tilera.com>
4548 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
4549 TILEGX_INSN_SHUFFLEBYTES1.
4550 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
4552 (tilegx_builtins): Ditto.
4553 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
4555 2013-03-25 Walter Lee <walt@tilera.com>
4557 * config/tilegx/tilegx.md (floatsisf2): New pattern.
4558 (floatunssisf2): New pattern.
4559 (floatsidf2): New pattern.
4560 (floatunssidf2): New pattern.
4562 2013-03-25 Walter Lee <walt@tilera.com>
4564 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
4565 tests for constraint J, K, N, P.
4567 2013-03-25 Walter Lee <walt@tilera.com>
4569 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
4570 Use indirect/pcrel encoding.
4571 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
4574 2013-03-25 Steve Ellcey <sellcey@mips.com>
4576 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
4577 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
4578 * config/mips/mips.c (mips_option_override): Set IMADD default.
4579 * config/mips/mips.h (PTF_AVOID_IMADD): New.
4580 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
4581 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
4582 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
4583 * doc/invoke.texi (-mimadd/-mno-imadd): New.
4585 2013-03-25 Jeff Law <law@redhat.com>
4587 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
4588 slightly to avoid creating and folding useless trees. Simplify
4589 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
4591 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
4593 * config/i386/i386.md (*zero_extendsidi2): Merge with
4594 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
4595 * config/i386/predicates.md (x86_64_zext_operand): Rename from
4596 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
4597 targets. Clarify comment.
4599 2013-03-25 Martin Jambor <mjambor@suse.cz>
4601 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
4602 pass-through jump functions differently.
4603 (ipa_read_jump_function): Likewise. Also use setter functions to set
4606 2013-03-25 Martin Jambor <mjambor@suse.cz>
4608 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
4609 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
4611 (ipa_get_indirect_edge_target): New function.
4612 (devirtualization_time_bonus): New parameter known_aggs, pass it to
4613 ipa_get_indirect_edge_target. Update all callers.
4614 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
4615 ipa_get_indirect_edge_target_1 instead of calling
4616 ipa_get_indirect_edge_target.
4617 (create_specialized_node): Pass aggvlas to
4618 ipcp_discover_new_direct_edges.
4620 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4622 * config/arm/arm.md (f_sels, f_seld): New types.
4623 (*cmov<mode>): New pattern.
4624 * config/arm/predicates.md (arm_vsel_comparison_operator): New
4627 2013-03-25 Kai Tietz <ktietz@redhat.com>
4629 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
4630 POSIX-printf for mingw-hosted builds.
4632 2013-03-25 Richard Biener <rguenther@suse.de>
4635 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
4636 must-not-throw stmt location.
4638 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4640 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
4641 Emit load-acquire versions when acq is true.
4642 (arm_emit_store_exclusive): Add rel parameter.
4643 Emit store-release versions when rel is true.
4644 (arm_split_compare_and_swap): Use acquire-release instructions
4646 of barriers when appropriate.
4647 (arm_split_atomic_op): Likewise.
4648 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
4649 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
4650 (VUNSPEC_SLX): Likewise.
4651 (VUNSPEC_LDA): Likewise.
4652 (VUNSPEC_STL): Likewise.
4653 * config/arm/sync.md (atomic_load<mode>): New pattern.
4654 (atomic_store<mode>): Likewise.
4655 (arm_load_acquire_exclusive<mode>): Likewise.
4656 (arm_load_acquire_exclusivesi): Likewise.
4657 (arm_load_acquire_exclusivedi): Likewise.
4658 (arm_store_release_exclusive<mode>): Likewise.
4660 2013-03-25 Catherine Moore <clm@codesourcery.com>
4662 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
4663 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
4664 * config/mip/predicates.md (lwsp_swsp_operand,
4665 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
4666 sb16_operand, db4_operand, db7_operand, ib3_operand,
4667 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
4668 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
4669 andi16_operand): New predicates.
4670 * config/mips/mips.md (compression): New attribute.
4671 (enabled): New attribute.
4672 (length): Consider compression in computing length.
4673 (shift_compression): New code attribute.
4674 (*add<mode>3): New operands. Record compression.
4675 (sub<mode>3): Likewise.
4676 (one_cmpl<mode>2): Likewise.
4677 (*and<mode>3): Likewise.
4678 (*ior<mode>3): Likewise.
4679 (unnamed pattern for xor): Likewise.
4680 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
4681 (*<optab><mode>3): Likewise.
4682 (*mov<mode>_internal: Likewise.
4683 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
4684 (mips_unsigned_immediate_p): New.
4685 (umips_lwsp_swsp_address_p): New.
4686 (m16_based_address_p): New.
4687 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
4688 (mips_unsigned_immediate_p): New prototype.
4689 (lwsp_swsp_address_p): New prototype.
4690 (m16_based_address_p): New prototype.
4691 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
4692 (mips_signed_immediate_p): New function.
4693 (m16_based_address_p): New function.
4694 (lwsp_swsp_address_p): New function.
4695 (mips_print_operand_punctuation): Recognize short delay slot insns
4696 for microMIPS.add<mode>3"
4698 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4701 * config/arm/iterators.md (v_cmp_result): New mode attribute.
4702 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
4704 2013-03-25 Richard Biener <rguenther@suse.de>
4706 PR tree-optimization/56689
4707 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
4710 2013-03-25 Richard Biener <rguenther@suse.de>
4712 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
4714 (memory_references): Likewise.
4715 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
4716 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
4717 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
4718 (gather_mem_refs_in_loops): Fold into ...
4719 (analyze_memory_references): ... this. Move initialization
4720 to tree_ssa_lim_initialize.
4721 (fill_always_executed_in): Rename to ...
4722 (fill_always_executed_in_1): ... this.
4723 (fill_always_executed_in): Move contains_call computation to
4724 this new function from ...
4725 (tree_ssa_lim_initialize): ... here.
4726 (tree_ssa_lim): Call fill_always_executed_in.
4728 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
4730 * postreload.c (reload_combine): Fix code detecting returns.
4732 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
4734 * function.c (emit_use_return_register_into_block): On cc0 targets,
4735 do not emit the sequence between cc0 setter and user.
4737 2013-03-25 Kai Tietz <ktietz@redhat.com>
4739 * config/i386/predicates.md (local_symbolic_operand): Interpret
4740 dll-imported symbols as none-local.
4742 2013-03-25 Richard Biener <rguenther@suse.de>
4744 * tree-ssa-loop-im.c (struct depend): Remove.
4745 (struct lim_aux_data): Make depends a vec of gimples.
4746 (free_lim_aux_data): Adjust.
4747 (add_dependency): Likewise.
4748 (set_level): Likewise.
4750 2013-03-25 Richard Biener <rguenther@suse.de>
4753 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
4754 the pointer returned by calls with ECF_MALLOC set.
4756 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
4758 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
4760 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
4762 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
4763 using MMXMODE mode iterator.
4764 (*move<mode>_internal): Merge with *movv2sf_internal and
4765 *movv2sf_internal_rex64 using MMXMODE mode iterator.
4767 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
4769 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
4770 (record_last_mem_set_info): Likewise.
4772 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
4773 of XNEWVEC followed by memset.
4774 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
4776 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
4778 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
4779 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
4780 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
4781 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
4782 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
4783 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
4784 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
4785 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
4786 BARRIER_P instead of GET_CODE.
4788 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
4790 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
4791 inaccuracy in the probing code.
4793 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
4794 (ctrapdi4): Likewise.
4796 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
4798 * calls.c (expand_call): Add missing guard to code handling return
4799 of non-BLKmode structures in MSB.
4800 * function.c (expand_function_end): Likewise.
4802 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
4804 * combine.c (try_combine): Adjust comment. Do not add the set of
4805 insn #0 if the destination indirectly is set or dies in insn #2.
4806 Tidy up code to distribute a new note.
4808 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
4810 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
4811 also for alternatives 16 and 17.
4813 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
4815 * config/i386/sse.md (*mov<mode>_internal): Merge with
4816 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
4817 Emit insn template depending on type attribute. Use
4818 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
4819 movd instead of movq mnemonic for interunit moves. Rewrite mode
4820 attribute calculation. Remove unit attribute calculation.
4821 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
4822 Set prefix_data16 attribute for DImode ssemov types.
4823 Use Ym instead of y for SSE-MMX conversion alternatives.
4824 Reorder operand constraints.
4826 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
4828 * df.h (df_insn_delete): Adjust prototype.
4829 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
4830 and let it decide whether mark the basic block dirty.
4831 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
4832 * df-scan.c (df_insn_info_delete): New helper function, split
4833 off from df_insn_delete.
4834 (df_scan_free_bb_info): Use it.
4835 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
4837 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
4838 that the insn is actually an insn and it has a non-NULL basic block.
4839 Do not mark basic block dirty if only deleting a DEBUG_INSN.
4841 2013-03-22 Richard Biener <rguenther@suse.de>
4843 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
4845 (mem_ref_alloc): Do not allocate them.
4846 (refs_independent_p): Do not query or maintain a cache.
4848 2013-03-22 Richard Biener <rguenther@suse.de>
4850 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
4851 (gather_mem_refs_in_loops): Do not compute it.
4852 (analyze_memory_references): Do not allocate it.
4853 (tree_ssa_lim_finalize): Do not free it.
4854 (for_all_locs_in_loop): Do not query all_refs_in_loop.
4856 2013-03-22 Richard Biener <rguenther@suse.de>
4858 * is-a.h (as_a): Use gcc_checking_assert.
4860 2013-03-22 Ian Bolton <ian.bolton@arm.com>
4862 * config/aarch64/aarch64.c (aarch64_print_operand): New
4863 format specifier for printing a constant in hex.
4864 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
4865 format specifier for printing second operand.
4867 2013-03-22 Richard Biener <rguenther@suse.de>
4869 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
4871 (gather_mem_refs_in_loops): Perform store accumulation here.
4872 (create_vop_ref_mapping_loop): Remove.
4873 (create_vop_ref_mapping): Likewise.
4874 (analyze_memory_references): Initialize refs_stored_in_loop.
4875 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
4876 (record_indep_loop): Remove.
4877 (record_dep_loop): New function.
4878 (ref_indep_loop_p_1): Adjust to only walk over references
4879 in the loop, not its subloops.
4880 (ref_indep_loop_p): Rename to ...
4881 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
4882 maintaining a more fine-grained cache.
4883 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
4884 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
4886 2013-03-22 Richard Biener <rguenther@suse.de>
4888 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
4889 (struct mem_ref): Make accesses_in_loop a vec of a vec of
4890 aggregate mem_ref_loc.
4891 (free_mem_ref_locs): Inline into ...
4892 (memref_free): ... this and adjust.
4893 (mem_ref_alloc): Adjust.
4894 (mem_ref_locs_alloc): Remove.
4895 (record_mem_ref_loc): Adjust.
4896 (get_all_locs_in_loop): Rewrite into ...
4897 (for_all_locs_in_loop): ... this iterator.
4898 (rewrite_mem_ref_loc): New functor.
4899 (rewrite_mem_refs): Use for_all_locs_in_loop.
4900 (sm_set_flag_if_changed): New functor.
4901 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
4902 (ref_always_accessed): New functor.
4903 (ref_always_accessed_p): Use for_all_locs_in_loop.
4905 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
4907 * tree-pass.h (PROP_gimple_lvec): New.
4908 * passes.c (dump_properties): Handle PROP_gimple_lvec.
4909 (init_optimization_passes): Move pass_lower_vector.
4910 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
4912 (pass_lower_vector): Provide PROP_gimple_lvec.
4913 (pass_lower_vector_ssa): Likewise.
4914 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
4916 2013-03-21 Mark Wielaard <mjw@redhat.com>
4918 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
4920 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
4922 * config/i386/i386.md (*movdi_internal): Disparage slightly
4923 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
4924 conversion alternatives.
4926 2013-03-21 Jakub Jelinek <jakub@redhat.com>
4929 * diagnostic.def (DK_WERROR): New kind.
4930 * diagnostic.h (werrorcount): Define.
4931 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
4932 promoted to DK_ERROR, increment DK_WERROR counter instead of
4934 * toplev.c (toplev_main): Call print_ignored_options even if
4935 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
4936 even if just werrorcount is non-zero.
4939 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
4941 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
4942 (string_cst_pool_decl): New function.
4943 (optimize_one_addr_into_implicit_ptr): New function.
4944 (resolve_addr_in_expr): Optimize DWARF location expression
4945 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
4946 which doesn't live in memory, but has DW_AT_location or
4947 DW_AT_const_value, or refers to a string literal, into
4948 DW_OP_GNU_implicit_pointer.
4949 (optimize_location_into_implicit_ptr): New function.
4950 (resolve_addr): If removing DW_AT_location of a variable because
4951 it was DW_OP_addr of address of the variable, but the variable doesn't
4952 live in memory, try to emit const value attribute for the initializer.
4954 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
4956 * tree.h (VECTOR_TYPE_P): New macro.
4957 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
4959 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
4960 VEC_COND_EXPR cannot be lvalues.
4961 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
4963 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
4965 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
4966 Restrict the transformation to equal modes.
4968 2013-03-21 Richard Biener <rguenther@suse.de>
4970 PR tree-optimization/39326
4971 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
4972 (MEM_ANALYZABLE): Adjust.
4973 (record_mem_ref_loc): Move bitmap ops ...
4974 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
4975 unanalyzable refs, do not record locations for it.
4976 (analyze_memory_references): Allocate ref zero as shared
4978 (refs_independent_p): Do not test for unanalyzed mems here.
4979 (ref_indep_loop_p_1): Special-case disambiguation against
4981 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
4983 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
4985 * config/arm/arm-protos.h (tune_params): Add
4986 prefer_neon_for_64bits field.
4987 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
4988 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
4989 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
4990 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
4991 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
4992 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
4993 (arm_option_override): Handle -mneon-for-64bits new option.
4994 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
4995 (prefer_neon_for_64bits): Declare new variable.
4996 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
4997 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
4998 (arch_enabled): Handle new arch types. Remove support for onlya8
5000 (one_cmpldi2): Use new arch names.
5001 (zero_extend<mode>di2, extend<mode>di2): Ditto.
5002 * config/arm/arm.opt (mneon-for-64bits): Add option.
5003 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
5004 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
5005 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
5007 * doc/invoke.texi (-mneon-for-64bits): Document.
5009 2013-03-21 Richard Biener <rguenther@suse.de>
5011 PR tree-optimization/39326
5012 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
5013 (sort_bbs_in_loop_postorder_cmp): New function.
5014 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
5016 2013-03-21 Richard Biener <rguenther@suse.de>
5018 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
5019 (vect_insert_into_interleaving_chain): Likewise.
5020 (vect_drs_dependent_in_basic_block): Inline ...
5021 (vect_slp_analyze_data_ref_dependence): ... here. New function,
5023 (vect_analyze_data_ref_dependence): ... here. Simplify.
5024 (vect_check_interleaving): Simplify.
5025 (vect_analyze_data_ref_dependences): Likewise. Split out ...
5026 (vect_slp_analyze_data_ref_dependences): ... this new function.
5027 (dr_group_sort_cmp): New function.
5028 (vect_analyze_data_ref_accesses): Compute data-reference groups
5029 here instead of in vect_analyze_data_ref_dependence. Use
5030 a more efficient algorithm.
5031 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
5032 vect_slp_analyze_data_ref_dependences. Call
5033 vect_analyze_data_ref_accesses earlier.
5034 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
5035 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
5036 (vect_slp_analyze_data_ref_dependences): New prototype.
5038 2013-03-21 Richard Biener <rguenther@suse.de>
5040 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
5041 ref is stored in the loop.
5042 (find_refs_for_sm): Walk only over all stores.
5043 (store_motion_loop): Allocate from lim_bitmap_obstack.
5044 (store_motion): Likewise.
5046 2013-03-21 Richard Biener <rguenther@suse.de>
5048 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
5049 Update virtual SSA form.
5051 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5053 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
5054 * configure: Regenerate.
5055 * config.in: Regenerate.
5056 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
5057 if !HAVE_LD_EH_FRAME_CIEV3.
5059 2013-03-21 Richard Biener <rguenther@suse.de>
5061 * tree-cfg.c (verify_expr_no_block): New function.
5062 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
5063 nor DECL_VALUE_EXPR have locations with associated blocks.
5064 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
5065 (clear_unused_block_pointer): Remove code dealing with
5066 blocks in DECL_DEBUG_EXPR locations.
5068 2013-03-21 Richard Biener <rguenther@suse.de>
5070 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
5071 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
5072 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
5073 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
5074 instead of DECL_DEBUG_EXPR_IS_FROM.
5075 * gimplify.c (gimplify_modify_expr): Likewise.
5076 * tree-cfg.c (verify_expr_location_1): Likewise.
5077 * tree-complex.c (create_one_component_var): Likewise.
5078 * tree-sra.c (create_access_replacement): Likewise.
5079 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
5080 (clear_unused_block_pointer): Likewise.
5081 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
5082 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
5083 * var-tracking.c (var_debug_decl): Likewise.
5084 (track_expr_p): Likewise.
5085 * tree-inline.c (add_local_variables): Likewise. Set
5086 DECL_HAS_DEBUG_EXPR_P after copying it.
5087 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
5088 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
5090 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
5093 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
5094 * configure: Regenerate.
5095 * config.in: Regenerate.
5096 * config/i386/i386.md (*movdf_internal): Use
5097 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
5098 movd instead of movq mnemonic for interunit moves.
5099 (*movdi_internal): Ditto.
5101 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5103 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
5104 (abd<mode>_3): New pattern.
5105 (aba<mode>_3): New pattern.
5106 (fabd<mode>_3): New pattern.
5108 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5110 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
5111 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
5112 occurrence of REGISTER_PREFIX as its empty string.
5114 2013-03-20 Jeff Law <law@redhat.com>
5116 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
5117 addititional equivalences for equality comparisons between an SSA_NAME
5118 and a constant where the SSA_NAME was set from a widening conversion.
5120 2013-03-20 Walter Lee <walt@tilera.com>
5122 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
5124 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
5126 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
5127 depending on type attribute.
5128 (*movti_internal): Ditto.
5129 (*movtf_internal): Ditto.
5130 (*movxf_internal): Ditto.
5131 (*movdf_internal): Ditto.
5132 (*movsf_internal): Ditto.
5134 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
5136 * config/i386/i386.md (*movti_internal): Set prefix attribute to
5137 maybe_vex for sselog1 and ssemov types.
5138 (*movdi_internal): Reorder operand constraints.
5139 (*movsi_internal): Ditto. Set prefix attribute to
5140 maybe_vex for sselog1 and ssemov types.
5141 (*movtf_internal): Set prefix attribute to maybe_vex
5142 for sselog1 and ssemov types.
5143 (*movdf_internal): Ditto. Set prefix_data16 attribute for
5144 DImode ssemov types. Reorder operand constraints.
5145 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
5146 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
5147 attribute for SImode ssemov types. Reorder operand constraints.
5149 2013-03-20 Martin Jambor <mjambor@suse.cz>
5151 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
5152 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
5154 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
5156 * config/rs6000/predicates.md (indexed_address, update_address_mem
5157 update_indexed_address_mem): New predicates.
5158 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
5159 attribute for load/store instructions.
5160 * config/rs6000/dfp.md (movsd_store): Likewise.
5161 (movsd_load): Likewise.
5162 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
5163 (unnamed HI->DI extend define_insn): Likewise.
5164 (unnamed SI->DI extend define_insn): Likewise.
5165 (unnamed QI->SI extend define_insn): Likewise.
5166 (unnamed QI->HI extend define_insn): Likewise.
5167 (unnamed HI->SI extend define_insn): Likewise.
5168 (unnamed HI->SI extend define_insn): Likewise.
5169 (extendsfdf2_fpr): Likewise.
5170 (movsi_internal1): Likewise.
5171 (movsi_internal1_single): Likewise.
5172 (movhi_internal): Likewise.
5173 (movqi_internal): Likewise.
5174 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
5175 attribute for load/store instructions.
5176 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
5178 (mov<mode>_softfloat): Likewise.
5179 (mov<mode>_hardfloat32): Likewise.
5180 (mov<mode>_hardfloat64): Likewise.
5181 (mov<mode>_softfloat64): Likewise.
5182 (movdi_internal32): Likewise.
5183 (movdi_internal64): Likewise.
5184 (probe_stack_<mode>): Likewise.
5186 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
5188 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
5189 floating point, and decimal floating point to reload iterator.
5191 * config/rs6000/constraints.md (wl constraint): New constraints to
5192 return FLOAT_REGS if certain options are used to reduce the number
5193 of separate patterns that exist in the file.
5194 (wx constraint): Likewise.
5195 (wz constraint): Likewise.
5197 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
5198 -mdebug=reg, print wg, wl, wx, and wz constraints.
5199 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
5200 Initialize the reload functions for 64-bit binary/decimal floating
5202 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
5203 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
5204 create the buffer on the stack to overcome not having a 32-bit
5206 (rs6000_emit_move): Likewise.
5207 (rs6000_secondary_memory_needed_rtx): Likewise.
5208 (rs6000_alloc_sdmode_stack_slot): Likewise.
5209 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
5210 via xxlxor, just like DFmode 0.0.
5212 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
5213 define as 1 if we are running on a power7 or newer.
5214 (enum r6000_reg_class_enum): Add new constraints.
5216 * config/rs6000/dfp.md (movsd): Delete, combine with binary
5217 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
5218 with other moves by using conditional constraits (wg). Use LFIWZX
5219 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
5220 (movsd splitter): Likewise.
5221 (movsd_hardfloat): Likewise.
5222 (movsd_softfloat): Likewise.
5224 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
5225 binary and decimal floating point moves.
5226 (fmove_ok): New attributes to combine binary and decimal floating
5227 point moves, and to combine power6x (mfpgpr) moves along normal
5229 (real_value_to_target): Likewise.
5236 (movsf): Combine binary and decimal floating point moves. Combine
5237 power6x (mfpgpr) moves with other moves by using conditional
5238 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
5239 (mov<mode> for SFmode/SDmode); Likewise.
5240 (SFmode/SDmode splitters): Likewise.
5241 (movsf_hardfloat): Likewise.
5242 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
5243 (movsf_softfloat): Likewise.
5244 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
5246 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
5247 wx and wz constraints.
5249 * config/rs6000/constraints.md (wg constraint): New constraint to
5250 return FLOAT_REGS if -mmfpgpr (power6x) was used.
5252 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
5255 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
5256 -mdebug=reg, print wg, wl, wx, and wz constraints.
5257 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
5258 Initialize the reload functions for 64-bit binary/decimal floating
5260 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
5261 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
5262 create the buffer on the stack to overcome not having a 32-bit
5264 (rs6000_emit_move): Likewise.
5265 (rs6000_secondary_memory_needed_rtx): Likewise.
5266 (rs6000_alloc_sdmode_stack_slot): Likewise.
5267 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
5268 via xxlxor, just like DFmode 0.0.
5270 * config/rs6000/dfp.md (movdd): Delete, combine with binary
5271 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
5272 with other moves by using conditional constraits (wg). Use LFIWZX
5273 and STFIWX for loading SDmode on power7.
5274 (movdd splitters): Likewise.
5275 (movdd_hardfloat32): Likewise.
5276 (movdd_softfloat32): Likewise.
5277 (movdd_hardfloat64_mfpgpr): Likewise.
5278 (movdd_hardfloat64): Likewise.
5279 (movdd_softfloat64): Likewise.
5281 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
5282 64-bit binary and decimal floating point moves.
5283 (FMOVE64X): Likewise.
5284 (movdf): Combine 64-bit binary and decimal floating point moves.
5285 Combine power6x (mfpgpr) moves with other moves by using
5286 conditional constraits (wg).
5287 (mov<mode> for DFmode/DDmode): Likewise.
5288 (DFmode/DDmode splitters): Likewise.
5289 (movdf_hardfloat32): Likewise.
5290 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
5291 (movdf_softfloat32): Likewise.
5292 (movdf_hardfloat64_mfpgpr): Likewise.
5293 (movdf_hardfloat64): Likewise.
5294 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
5295 (movdf_softfloat64): Likewise.
5296 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
5297 (reload_<mode>_load): Move to later in the file so they aren't in
5298 the middle of the floating point move insns.
5299 (reload_<mode>_store): Likewise.
5301 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
5304 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
5305 constraint if -mdebug=reg.
5306 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
5307 Enable using dd reload support if needed.
5309 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
5310 binary and decimal floating point moves in rs6000.md.
5311 (movtd_internal): Likewise.
5313 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
5314 decimal floating point moves.
5316 (movtf_internal): Likewise.
5317 (mov<mode>_internal, TDmode/TFmode): Likewise.
5318 (movtf_softfloat): Likewise.
5319 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
5321 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
5322 movdi_internal64, using wg constraint for move direct operations.
5323 (movdi_internal64): Likewise.
5325 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
5326 MODES_TIEABLE_P for selected modes. Print the numerical value of
5327 the various virtual registers. Use GPR/FPR first/last values,
5328 instead of hard coding the register numbers. Print which modes
5329 have reload functions registered.
5330 (rs6000_option_override_internal): If -mdebug=reg, trace the options
5331 settings before/after setting cpu, target and subtarget settings.
5332 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
5333 and for secondary reload failures in rs6000_secondary_reload_inner.
5334 (rs6000_secondary_reload_fail): Likewise.
5335 (rs6000_secondary_reload_inner): Likewise.
5337 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
5338 macros for first/last GPR and FPR registers.
5339 (LAST_GPR_REGNO): Likewise.
5340 (FIRST_FPR_REGNO): Likewise.
5341 (LAST_FPR_REGNO): Likewise.
5343 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
5344 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
5345 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
5346 (vcond<mode><mode>): Likewise.
5347 (vcondu<mode><mode>): Likewise.
5348 (vector_gtu<mode>): Likewise.
5349 (vector_gte<mode>): Likewise.
5350 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
5351 to prevent the compiler from converting DImode operations to TImode.
5352 (ior<mode>3): Likewise.
5353 (and<mode>3): Likewise.
5354 (one_cmpl<mode>2): Likewise.
5355 (nor<mode>3): Likewise.
5356 (andc<mode>3): Likewise.
5358 * config/rs6000/constraints.md (wt constraint): New constraint
5359 that returns VSX_REGS if TImode is allowed in VSX registers.
5361 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
5364 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
5365 similar to TImode, but it is restricted to being in the GPRs.
5367 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
5368 TImode to occupy a single VSX register.
5370 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
5371 -mvsx-timode for power7/power8.
5372 (power7 cpu): Likewise.
5373 (power8 cpu): Likewise.
5375 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
5376 sure that TFmode/TDmode take up two registers if they are ever
5377 allowed in the upper VSX registers.
5378 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
5380 (rs6000_init_hard_regno_mode_ok): Likewise.
5381 (rs6000_debug_reg_global): Add debugging for PTImode and wt
5382 constraint. Print if LRA is turned on.
5383 (rs6000_option_override_internal): Give an error if -mvsx-timode
5384 and VSX is not enabled.
5385 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
5386 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
5387 to reg+offset addressing. Use PTImode when checking offset
5388 addresses for validity.
5389 (reg_offset_addressing_ok_p): Likewise.
5390 (rs6000_legitimate_offset_address_p): Likewise.
5391 (rs6000_legitimize_address): Likewise.
5392 (rs6000_legitimize_reload_address): Likewise.
5393 (rs6000_legitimate_address_p): Likewise.
5394 (rs6000_eliminate_indexed_memrefs): Likewise.
5395 (rs6000_emit_move): Likewise.
5396 (rs6000_secondary_reload): Likewise.
5397 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
5398 reloads to fpr registers to continue to use reg+offset addressing,
5399 but 64-bit reloads to altivec registers need reg+reg addressing.
5400 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
5401 it. Treat LO_SUM like a PLUS operation.
5402 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
5403 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
5404 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
5405 registers to share a register with a smaller sized type, since VSX
5406 puts scalars in the upper 64-bits.
5407 (print_operand): Add support for PTImode.
5408 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
5409 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
5410 registers, but don't have arithmetic support.
5411 (rs6000_memory_move_cost): Add test for VSX.
5412 (rs6000_opt_masks): Add -mvsx-timode.
5414 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
5417 (VSr): Use wt constraint for TImode.
5418 (VSv): Drop TImode support.
5419 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
5420 (vsx_movti_64bit): Likewise.
5421 (vsx_movti_32bit): Likewise.
5422 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
5423 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
5424 one '?' on the appropriate output constraint. Do not allow TImode
5425 logical operations on 32-bit systems.
5426 (vsx_ior<mode>3): Likewise.
5427 (vsx_xor<mode>3): Likewise.
5428 (vsx_one_cmpl<mode>2): Likewise.
5429 (vsx_nor<mode>3): Likewise.
5430 (vsx_andc<mode>3): Likewise.
5431 (vsx_concat_<mode>): Likewise.
5432 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
5434 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
5435 OPTION_MASK_VSX_TIMODE.
5436 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
5437 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
5439 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
5440 (TI2 iterator): New iterator for TImode, PTImode.
5441 (wd mode attribute): Add values for vector types.
5442 (movti_string): Replace TI move operations with operations for TImode
5443 and PTImode. Add support for TImode being allowed in VSX registers.
5444 (mov<mode>_string, TImode/PTImode): Likewise.
5445 (movti_ppc64): Likewise.
5446 (mov<mode>_ppc64, TImode/PTImode): Likewise.
5447 (TI mode splitters): Likewise.
5449 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
5452 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
5454 PR tree-optimization/56355
5455 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
5456 Also handle integers with undefined overflow.
5458 2013-03-20 Catherine Moore <clm@codesourcery.com>
5459 Maciej W. Rozycki <macro@codesourcery.com>
5460 Tom de Vries <tom@codesourcery.com>
5461 Nathan Sidwell <nathan@codesourcery.com>
5462 Iain Sandoe <iain@codesourcery.com>
5463 Nathan Froyd <froydnj@codesourcery.com>
5464 Chao-ying Fu <fu@mips.com>
5466 * doc/extend.texi: (micromips, nomicromips, nocompression):
5467 Document new function attributes.
5468 * doc/invoke.texi (minterlink-compressed, mmicromips,
5469 m14k, m14ke, m14kec): Document new options.
5470 (minterlink-mips16): Update documentation.
5471 * doc/md.texi (ZC, ZD): Document new constraints.
5472 * configure.ac (gcc_cv_as_micromips): Check if linker
5473 supports the .set micromips directive.
5474 * configure: Regenerate.
5475 * config.in: Regenerate.
5476 * config/mips/mips-tables.opt: Regenerate.
5477 * config/mips/micromips.md: New file.
5478 * constraints.md (ZC, ZD): New constraints.
5479 * config/mips/predicates.md (movep_src_register): New predicate.
5480 (movep_src_operand): New predicate.
5481 (non_volatile_mem_operand): New predicate.
5482 * config/mips/mips.md (multimem): New type.
5483 (length): Differentiate between 17-bit and 18-bit branch offsets.
5484 (MOVEP1, MOVEP2): New mode iterator.
5485 (mov_<load>l): Use ZC constraint.
5486 (mov_<load>r): Likewise.
5487 (mov_<store>l): Likewise.
5488 (mov_<store>r): Likewise.
5489 (*branch_equality<mode>_inverted): Add microMIPS support.
5490 (*branch_equality<mode>): Likewise.
5491 (*jump_absolute): Likewise.
5492 (indirect_jump_<mode>): Likewise.
5493 (tablejump_<mode>): Likewise.
5494 (<optab>_internal): Likewise.
5495 (sibcall_internal): Likewise.
5496 (sibcall_value_internal): Likewise.
5497 (prefetch): Use constraint ZD.
5498 * config/mips/mips.opt (minterlink-compressed): New option.
5499 (minterlink-mips16): Now an alias for minterlink-compressed.
5500 (mmicromips): New option.
5501 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
5502 (compare_and_swap_12): Likewise.
5503 (sync_add<mode>): Likewise.
5504 (sync_<optab>_12): Likewise.
5505 (sync_old_<optab>_12): Likewise.
5506 (sync_new_<optab>_12): Likewise.
5507 (sync_nand_12): Likewise.
5508 (sync_old_nand_12): Likewise.
5509 (sync_new_nand_12): Likewise.
5510 (sync_sub<mode>): Likewise.
5511 (sync_old_add<mode>): Likewise.
5512 (sync_old_sub<mode>): Likewise.
5513 (sync_new_add<mode>): Likewise.
5514 (sync_new_sub<mode>): Likewise.
5515 (sync_<optab><mode>): Likewise.
5516 (sync_old_<optab><mode>): Likewise.
5517 (sync_new_<optab><mode>): Likewise.
5518 (sync_nand<mode>): Likewise.
5519 (sync_old_nand<mode>): Likewise.
5520 (sync_new_nand<mode>): Likewise.
5521 (sync_lock_test_and_set<mode>): Likewise.
5522 (test_and_set_12): Likewise.
5523 (atomic_compare_and_swap<mode>): Likewise.
5524 (atomic_exchange<mode>_llsc): Likewise.
5525 (atomic_fetch_add<mode>_llsc): Likewise.
5526 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
5527 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
5528 (umips_save_restore_pattern_p): Likewise.
5529 (umips_load_store_pair_p): Likewise.
5530 (umips_output_load_store_pair): Likewise.
5531 (umips_movep_target_p): Likewise.
5532 (umips_12bit_offset_address_p): Likewise.
5533 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
5534 (mips_base_mips16): Rename this...
5535 (mips_base_compression_flags): ...to this. Update all uses.
5536 (mips_attribute_table): Add micromips, nomicromips and nocompression.
5537 (mips_mips16_decl_p): Delete.
5538 (mips_nomips16_decl_p): Delete.
5539 (mips_get_compress_on_flags): New function.
5540 (mips_get_compress_off_flags): New function.
5541 (mips_get_compress_mode): New function.
5542 (mips_get_compress_on_name): New function.
5543 (mips_get_compress_off_name): New function.
5544 (mips_insert_attributes): Support multiple compression types.
5545 (mips_merge_decl_attributes): Likewise.
5546 (umips_12bit_offset_address_p): New function.
5547 (mips_start_function_definition): Emit .set micromips directive.
5548 (mips_call_may_need_jalx_p): New function.
5549 (mips_function_ok_for_sibcall): Add microMIPS support.
5550 (mips_print_operand_punctuation): Support short delay slots and
5552 (umips_swm_mask, umips_swm_encoding): New.
5553 (umips_build_save_restore): New function.
5554 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
5555 (was_mips16_p): Remove.
5556 (old_compression_mode): New.
5557 (mips_set_compression_mode): New function.
5558 (mips_set_current_function): Add microMIPS support.
5559 (mips_option_override): Likewise.
5560 (umips_save_restore_pattern_p): New function.
5561 (umips_output_save_restore): New function.
5562 (umips_load_store_pair_p_1): New function.
5563 (umips_load_store_pair_p): New function.
5564 (umips_output_load_store_pair_1): New function.
5565 (umips_output_load_store_pair): New function.
5566 (umips_movep_target_p) New function.
5567 (mips_prepare_pch_save): Add microMIPS support.
5568 * config/mips/mips.h (TARGET_COMPRESSION): New.
5569 (TARGET_CPU_CPP_BUILTINS): Update macro
5570 to use new compression flags and to support microMIPS.
5571 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
5572 (MIPS_ARCH_FLOAT_SPEC): Likewise.
5573 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
5574 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
5575 (ASM_SPEC): Support mmicromips and mno-micromips.
5576 (M16STORE_REG_P): New macro.
5577 (MIPS_CALL): Support TARGET_MICROMIPS.
5578 (MICROMIPS_J): New macro.
5579 (mips_base_mips16): Rename this...
5580 (mips_base_compression_flags): ...to this.
5581 (UMIPS_12BIT_OFFSET_P): New macro.
5582 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
5583 (MULTILIB_DIRNAMES): Likewise.
5584 2013-03-20 Richard Biener <rguenther@suse.de>
5586 PR tree-optimization/56661
5587 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
5588 the result does not have to be distinct.
5590 2013-03-20 Richard Biener <rguenther@suse.de>
5592 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
5595 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5596 Steven Bosscher <steven@gcc.gnu.org>
5598 PR rtl-optimization/56605
5599 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
5601 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
5604 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
5605 that require movd instead of movq.
5607 2013-03-20 Richard Biener <rguenther@suse.de>
5609 * tree-ssa-structalias.c (struct variable_info): Add pointer
5610 to the first field of an aggregate with sub-vars. Make
5611 this and the pointer to the next subfield its ID.
5612 (vi_next): New function.
5613 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
5614 storedanything_id, integer_id): Increment by one.
5615 (new_var_info, get_call_vi, lookup_call_clobber_vi,
5616 get_call_clobber_vi): Adjust.
5617 (solution_set_expand): Simplify and speedup.
5618 (solution_set_add): Inline into ...
5619 (set_union_with_increment): ... this. Adjust accordingly.
5620 (do_sd_constraint): Likewise.
5621 (do_ds_constraint): Likewise.
5622 (do_complex_constraint): Simplify.
5623 (build_pred_graph): Adjust.
5624 (solve_graph): Likewise. Simplify and speedup.
5625 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
5626 get_constraint_for_component_ref, get_constraint_for_1,
5627 first_vi_for_offset, first_or_preceding_vi_for_offset,
5628 create_function_info_for, create_variable_info_for_1,
5629 create_variable_info_for, intra_create_variable_infos): Adjust.
5630 (init_base_vars): Push NULL for ID zero.
5631 (compute_points_to_sets): Adjust.
5633 2013-03-20 Richard Biener <rguenther@suse.de>
5635 * cfgloop.c (verify_loop_structure): Streamline and avoid
5636 ICEing on corrupt loop tree.
5637 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
5640 2013-03-20 Richard Biener <rguenther@suse.de>
5642 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
5643 check whether an SSA update is needed.
5645 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
5647 * config/mips/constraints.md (T): Rename to...
5651 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
5652 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
5654 2013-03-19 Ian Bolton <ian.bolton@arm.com>
5656 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
5657 (*subsi3_carryin_uxtw): Likewise.
5659 2013-03-19 Ian Bolton <ian.bolton@arm.com>
5661 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
5662 (*rorsi3_insn_uxtw): Likewise.
5664 2013-03-19 Ian Bolton <ian.bolton@arm.com>
5666 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
5667 (*extrsi5_insn_uxtw): Likewise.
5669 2013-03-19 Richard Biener <rguenther@suse.de>
5671 PR tree-optimization/56273
5672 * passes.c (init_optimization_passes): Move second VRP after DOM.
5674 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
5676 * config/i386/i386.md (*movti_internal): Merge from
5677 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
5678 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
5679 nox64 isa attributes.
5681 2013-03-18 Richard Biener <rguenther@suse.de>
5683 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
5685 (merge_node_constraints): Likewise.
5686 (build_succ_graph): Likewise.
5687 (valid_graph_edge): Inline into single caller.
5688 (unify_nodes): Likewise. Use bitmap_set_bit return value
5690 (scc_visit): Fix formatting and variable use.
5691 (do_sd_constraint): Use gcc_checking_assert.
5692 (do_ds_constraint): Likewise.
5693 (do_complex_constraint): Likewise.
5694 (condense_visit): Likewise. Cleanup.
5695 (dump_pred_graph): New function.
5696 (perform_var_substitution): Dump the pred-graph before
5697 variable substitution.
5698 (find_equivalent_node): Use gcc_checking_assert.
5699 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
5701 2013-03-18 Richard Biener <rguenther@suse.de>
5703 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
5704 Remove cond_expr_stmt_list argument and do not gimplify the
5706 (vect_loop_versioning): Adjust.
5707 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
5708 Cleanup to use less temporaries.
5709 (vect_create_data_ref_ptr): Cleanup.
5711 2013-03-18 Jakub Jelinek <jakub@redhat.com>
5713 PR tree-optimization/56635
5714 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
5715 require types_compatible_p types.
5717 2013-03-18 Nick Clifton <nickc@redhat.com>
5719 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
5722 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
5723 Add missing line to comment describing function.
5725 2013-03-18 Richard Biener <rguenther@suse.de>
5727 PR tree-optimization/56210
5728 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5729 Handle string / character search functions.
5730 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
5732 2013-03-18 Richard Biener <rguenther@suse.de>
5735 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
5736 and implement properly.
5737 * gimple.h (gimple_cond_single_var_p): Remove.
5739 2013-03-18 Richard Biener <rguenther@suse.de>
5741 * tree-data-ref.h (find_data_references_in_loop): Declare.
5742 * tree-data-ref.c (get_references_in_stmt): Use a stack
5743 vector pre-allocated in the callers.
5744 (find_data_references_in_stmt): Adjust.
5745 (graphite_find_data_references_in_stmt): Likewise.
5746 (create_rdg_vertices): Likewise.
5747 (find_data_references_in_loop): Export.
5748 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
5749 Compute dependences here...
5750 (vect_analyze_data_refs): ...not here. When we encounter
5751 a non-vectorizable data reference in basic-block vectorization
5752 truncate the data reference vector. Do not bother to
5753 fixup data-dependence information for gather loads.
5754 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
5755 of data references, as reported.
5757 2013-03-18 Richard Biener <rguenther@suse.de>
5759 PR tree-optimization/3713
5760 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
5761 has_constants and expr.
5762 (stmt_has_constants): Properly valueize SSA names when deciding
5763 whether the stmt has constants.
5765 2013-03-18 Richard Biener <rguenther@suse.de>
5767 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
5768 whole function when there is nothing to do.
5769 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
5770 * tree-vectorizer.c (vectorize_loops): Update virtual and
5771 loop-closed SSA once.
5772 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
5774 2013-03-18 Richard Biener <rguenther@suse.de>
5777 * domwalk.c (bb_postorder): New global static.
5778 (cmp_bb_postorder): New function.
5779 (walk_dominator_tree): Replace scheme imposing an order for
5780 visiting dominator sons by one sorting them at the time they
5781 are pushed on the stack.
5783 2013-03-18 Richard Biener <rguenther@suse.de>
5785 PR tree-optimization/39326
5786 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
5787 (struct mem_ref): Replace mem member with ao_ref typed member.
5788 (MEM_ANALYZABLE): Adjust.
5789 (memref_eq): Likewise.
5790 (mem_ref_alloc): Likewise.
5791 (gather_mem_refs_stmt): Likewise.
5792 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
5793 (execute_sm_if_changed_flag_set): Adjust.
5794 (execute_sm): Likewise.
5795 (ref_always_accessed_p): Likewise.
5796 (refs_independent_p): Likewise.
5797 (can_sm_ref_p): Likewise.
5799 2013-03-18 Jakub Jelinek <jakub@redhat.com>
5802 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
5803 return 1 even for !unsignedp.
5805 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
5807 * config/i386/i386.md (isa): Add x64 and nox64.
5808 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
5809 (*pushtf): Enable *roF alternative for x64 isa only.
5810 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
5811 mode attribute of integer alternatives to DImode for TARGET_64BIT.
5812 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
5813 (*movtf_internal): Merge from *movtf_internal_rex64 and
5814 *movtf_internal_sse. Use x64 and nox64 isa attributes.
5815 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
5816 nox64 isa attributes.
5817 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
5818 nox64 isa attributes.
5819 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
5821 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
5823 * config/alpha/alpha.c (TARGET_LRA_P): New define.
5825 2013-03-17 Jakub Jelinek <jakub@redhat.com>
5828 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
5829 class names. Remove trailing comma after "ALL_REGS".
5831 2013-03-16 Jan Hubicka <jh@suse.cz>
5833 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
5834 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
5835 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
5836 of cgraph_get_create_node.
5837 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5839 2013-03-16 Jason Merrill <jason@redhat.com>
5842 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
5843 with DW_AT_default_value.
5845 2013-03-16 Jakub Jelinek <jakub@redhat.com>
5847 * BASE-VER: Set to 4.9.0.
5849 2013-03-14 Andi Kleen <ak@linux.intel.com>
5852 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
5853 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
5854 Document _x* TSX intrinsics.
5856 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
5857 David Holsgrove <david.holsgrove@xilinx.com>
5859 * configure.ac: Add MicroBlaze TLS support detection.
5860 * configure: Regenerate.
5861 * config/microblaze/microblaze-protos.h
5862 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
5863 symbol_mentioned_p, label_mentioned_p): Add prototypes.
5864 * config/microblaze/microblaze.c (microblaze_address_type): Add
5865 ADDRESS_TLS and tls_reloc address types.
5866 (microblaze_address_info): Add tls_reloc.
5867 (TARGET_HAVE_TLS): Define.
5868 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
5869 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
5870 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
5871 load_tls_operand, microblaze_call_tls_get_addr,
5872 microblaze_legitimize_tls_address): New functions.
5873 (microblaze_classify_unspec): Handle UNSPEC_TLS.
5874 (get_base_reg): Use microblaze_tls_symbol_p.
5875 (microblaze_classify_address): Handle TLS.
5876 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
5877 label_mentioned_p and microblaze_tls_referenced_p.
5878 (microblaze_legitimize_address): Handle TLS.
5879 (microblaze_address_insns): Handle ADDRESS_TLS.
5880 (pic_address_needs_scratch): Handle TLS.
5881 (print_operand_address): Handle TLS.
5882 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
5883 (microblaze_expand_move): Handle TLS.
5884 (microblaze_legitimate_constant_p): Check
5885 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
5886 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
5887 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
5888 (PIC_OFFSET_TABLE_REGNUM): Set.
5889 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
5890 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
5891 (addsi3, movsi_internal2, movdf_internal): Update constraints
5892 * config/microblaze/predicates.md (arith_plus_operand): Define
5893 (move_operand): Redefine as move_src_operand,
5894 check microblaze_tls_referenced_p.
5896 2013-03-14 Ian Bolton <ian.bolton@arm.com>
5898 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
5899 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
5901 2013-03-14 Ian Bolton <ian.bolton@arm.com>
5903 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
5906 2013-03-14 Jakub Jelinek <jakub@redhat.com>
5908 PR tree-optimization/53265
5909 * common.opt (Waggressive-loop-optimizations): New option.
5910 * tree-ssa-loop-niter.c: Include tree-pass.h.
5911 (do_warn_aggressive_loop_optimizations): New function.
5912 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
5913 if number_of_latch_executions returned constant.
5914 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
5915 early. If number_of_latch_executions returned constant, set
5916 nb_iterations_upper_bound back to it.
5917 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
5919 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
5920 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
5922 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
5923 (MULTILIB_OSDIRNAMES): Set.
5924 * genmultilib: If defaultosdirname doesn't start with :: , set
5925 defaultosdirname2 instead, clear it and emit two . multilib_raw
5926 entries instead of just one.
5928 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
5930 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
5931 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
5932 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
5933 (SUBTARGET_OVERRIDE_OPTIONS): New.
5935 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
5938 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
5939 (musermode): Convert to Var(TARGET_USERMODE).
5940 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
5941 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
5942 * config/sh/sh.c (sh_option_override): Use
5943 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
5944 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
5946 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
5948 (udivsi3_i4_single, divsi3_i4_single): Use
5949 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
5951 2013-03-13 Dave Korn <dave.korn.cygwin@....>
5953 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
5956 2013-03-13 Richard Biener <rguenther@suse.de>
5958 PR tree-optimization/56608
5959 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
5960 calls when vectorizing basic-blocks.
5962 2013-03-13 Jakub Jelinek <jakub@redhat.com>
5965 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
5968 2013-03-12 Jakub Jelinek <jakub@redhat.com>
5970 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
5972 2013-03-11 Jan Hubicka <jh@suse.cz>
5975 * lto-streamer-out.c (output_symbol_p): Skip references from
5976 constructors of external variables.
5978 2013-03-11 Jan Hubicka <jh@suse.cz>
5981 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
5983 * emit-rtl.c (verify_rtx_sharing): Likewise.
5984 (copy_insn_1): Likewise.
5985 * rtl.c (copy_rtx): Likewise.
5987 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
5990 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
5991 output_operand_lossage message.
5993 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
5996 * arm.c (shift_op): Validate RTL pattern on the fly.
5997 (arm_print_operand, case 'S'): Don't use shift_operator to validate
6000 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6003 * config/pa/pa.md (call_value): Check for calls to powf and direct to
6004 new call patterns that clobber %fr12.
6005 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
6006 split and postreload patterns.
6007 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
6008 registers %fr12 and %fr12R as call used.
6010 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
6012 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
6013 (canon_address, record_store, replace_read, check_mem_read_rtx,
6014 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
6015 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
6016 rest_of_handle_dse): Likewise.
6018 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
6021 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
6023 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
6024 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
6025 (save_optabs_if_changed): Replace with...
6026 (init_tree_optimization_optabs): ...this.
6027 * optabs.c (save_optabs_if_changed): Rename to...
6028 (init_tree_optimization_optabs): ...this. Take the optimization node
6029 as argument. Do nothing if the base optabs are already correct.
6030 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
6031 to recompute optabs.
6032 * function.h (function): Remove optabs field.
6033 * function.c (invoke_set_current_function_hook): Call
6034 init_tree_optimization_optabs. Use the result to initialize
6037 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
6039 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
6040 if GTMA_HAS_NO_INSTRUMENTATION.
6041 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
6042 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
6043 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
6044 * gimple-pretty-print.c (dump_gimple_transaction): Handle
6045 GTMA_HAS_NO_INSTRUMENTATION.
6047 2013-03-08 Jakub Jelinek <jakub@redhat.com>
6049 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
6052 2013-03-08 Marek Polacek <polacek@redhat.com>
6053 Jakub Jelinek <jakub@redhat.com>
6055 PR tree-optimization/56478
6056 * predict.c (is_comparison_with_loop_invariant_p): Change the
6057 type of loop_step to tree.
6058 (predict_loops): Adjust.
6059 (predict_iv_comparison): Perform the computations on double_ints.
6061 2013-03-08 Richard Biener <rguenther@suse.de>
6063 PR tree-optimization/56570
6064 * tree-cfg.c (verify_expr_location_1): Verify locations for
6066 * tree-sra.c (create_access_replacement): Strip locations
6067 from DECL_DEBUG_EXPRs.
6069 2013-03-08 Richard Biener <rguenther@suse.de>
6071 * tree-inline.c (expand_call_inline): Do not associate
6072 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
6073 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
6075 2013-03-08 Richard Biener <rguenther@suse.de>
6077 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
6078 or block changes with -Og. Fix for location / block encoding
6079 changes and PHI arguments with locations.
6081 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
6083 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
6085 (struct output_info): Likewise.
6086 (register_overhead): Remove bad gcc_assert.
6087 (bitmap_find_bit): If there is only a single bitmap element, do not
6088 count a miss as a search.
6089 (print_statistics): Update for counter type changes.
6090 (dump_bitmap_statistics): Likewise. Print headers such that they
6091 are properly lined up with the printed counters.
6093 2013-03-07 Jakub Jelinek <jakub@redhat.com>
6095 PR tree-optimization/56559
6096 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
6097 check that it has only a single use.
6099 2013-03-07 Richard Biener <rguenther@suse.de>
6101 * doc/invoke.texi (fwhole-program): Discourage use in combination
6104 2013-03-06 Jakub Jelinek <jakub@redhat.com>
6106 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
6108 PR tree-optimization/56539
6109 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
6110 instead of GSI_CONTINUE_LINKING as last argument to
6111 force_gimple_operand_gsi. Adjust function comment.
6113 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
6117 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
6118 promoted mode, convert the result back to the original mode.
6120 2013-03-06 Richard Biener <rguenther@suse.de>
6123 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
6124 (insert_updated_phi_nodes_compare_uids): New function.
6125 (update_ssa): Sort symbols_to_rename after UID before
6126 traversing it to insert PHI nodes.
6128 2013-03-06 Richard Biener <rguenther@suse.de>
6131 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
6132 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
6135 2013-02-13 Richard Biener <rguenther@suse.de>
6138 * varasm.c (output_constant_def_1): Get the decl representing
6139 the constant as argument.
6140 (output_constant_def): Wrap output_constant_def_1.
6141 (make_decl_rtl): Use output_constant_def_1 with the decl
6142 representing the constant.
6143 (build_constant_desc): Optionally re-use a decl already
6144 representing the constant.
6145 (tree_output_constant_def): Adjust.
6147 2013-03-06 Joey Ye <joey.ye@arm.com>
6150 * gcc.c (convert_white_space): New function.
6151 (main): Handles white space in function name.
6153 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
6156 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
6157 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
6158 to SH_DIV_CALL_TABLE for TARGET_SH2.
6159 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
6161 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
6164 2013-03-05 Sterling Augustine <saugustine@google.com>
6165 Cary Coutant <ccoutant@google.com>
6168 * dwarf2out.c (resolve_addr): Don't call
6169 remove_loc_list_addr_table_entries a second time for the same
6172 2013-03-05 Jakub Jelinek <jakub@redhat.com>
6175 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
6176 (avoid_complex_debug_insns): New function.
6177 (expand_debug_locations): Call it.
6179 PR rtl-optimization/56484
6180 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
6181 lifetimes of hard registers on small register class machines.
6183 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
6185 * config/microblaze/microblaze-protos.h: Rename
6186 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6187 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
6189 (microblaze_fast_interrupt_function_p): New function.
6190 (microblaze_is_interrupt_handler): Rename to
6191 microblaze_is_interrupt_variant and add fast_interrupt check.
6192 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
6193 (save_restore_insns): Likewise.
6194 (compute_frame_size): Likewise.
6195 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
6196 (microblaze_globalize_label): Likewise.
6197 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
6198 * config/microblaze/microblaze.md: Use wrapper
6199 microblaze_is_interrupt_variant.
6201 2013-03-05 Kai Tietz <ktietz@redhat.com>
6203 * sdbout.c (sdbout_one_type): Switch to current function's section
6204 supporting cold/hot.
6206 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
6208 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
6211 2013-03-05 Jakub Jelinek <jakub@redhat.com>
6214 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
6215 if VALGRIND_GET_VBITS is defined, temporarily make object
6216 memory all defined, and restore previous valgrind addressability
6217 and definability afterwards. Free this_object at the end.
6220 * lra.c (lra): Call lra_clear_live_ranges if live_p,
6221 right before calling lra_create_live_ranges, also call it
6222 when clearing live_p. Only call lra_clear_live_ranges
6223 at the end if live_p.
6226 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
6228 2013-03-05 Richard Biener <rguenther@suse.de>
6230 PR tree-optimization/56521
6231 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
6234 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
6237 * except.h (remove_unreachable_eh_regions): New prototype.
6238 * except.c (remove_eh_handler_splicer): New function, split out
6239 of remove_eh_handler.
6240 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
6241 warning about running it on many EH regions one at a time.
6242 (remove_unreachable_eh_regions_worker): New function, walk the
6243 EH tree in depth-first order and remove non-marked regions.
6244 (remove_unreachable_eh_regions): New function.
6245 * tree-eh.c (mark_reachable_handlers): New function, split out
6246 from remove_unreachable_handlers.
6247 (remove_unreachable_handlers): Use mark_reachable_handlers and
6248 remove_unreachable_eh_regions.
6249 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
6250 and remove_unreachable_eh_regions.
6252 2013-03-05 Richard Biener <rguenther@suse.de>
6255 * loop-init.c (fix_loop_structure): Remove loops in two stages,
6256 not freeing them until the end.
6258 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6260 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
6262 2013-03-05 Richard Biener <rguenther@suse.de>
6264 PR tree-optimization/56270
6265 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
6266 of loads after scheduling an SLP instance.
6268 2013-03-05 Jakub Jelinek <jakub@redhat.com>
6270 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
6272 (check_gcc_parallelize): Run guality.exp as a separate job from
6273 vect.exp with unsorted.exp and $(dg_target_exps) separately from
6274 struct-layout-1.exp with stackalign.exp.
6276 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
6279 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
6280 load_index sbitmap even if some bit in it isn't set.
6283 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
6284 (discover_iteration_bound_by_body_walk): Change queues to
6285 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
6286 spelling in comment. Call safe_push on queues[bound_index] directly.
6287 Release queues[queue_index] in every iteration unconditionally.
6288 Release bounds vector.
6291 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
6292 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
6293 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
6296 2013-03-05 Richard Biener <rguenther@suse.de>
6299 * tree-inline.c (remap_blocks_to_null): New function.
6300 (expand_call_inline): When expanding a call stmt without
6301 an associated block inline remap all callee blocks to NULL.
6303 2013-03-05 Jakub Jelinek <jakub@redhat.com>
6305 PR rtl-optimization/56494
6306 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
6307 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
6308 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
6311 * sel-sched-ir.c (free_sched_pools): Release
6312 succs_info_pool.stack[succs_info_pool.max_top] vectors too
6313 if succs_info_pool.max_top isn't -1.
6316 * opts.c (opts_obstack, opts_concat): Moved to...
6317 * opts-common.c (opts_obstack, opts_concat): ... here.
6319 2013-03-04 Jakub Jelinek <jakub@redhat.com>
6322 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
6324 2013-03-04 Martin Jambor <mjambor@suse.cz>
6326 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
6327 all appropriate places.
6329 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
6331 PR tree-optimization/56424
6332 * ipa-split.c (split_function): Do not set the RSO flag if result is
6333 not by reference and its type is a register type.
6335 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
6337 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
6338 (microblaze_legitimate_pic_operand): Likewise
6339 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
6340 new function microblaze_legitimate_pic_operand
6341 * config/microblaze/microblaze-protos.h
6342 (microblaze_legitimate_pic_operand): Declare.
6344 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6346 * config/microblaze/predicates.md (call_insn_simple_operand):
6347 New predicate for supported rtx code types.
6348 * config/microblaze/microblaze.md (call_internal1): Use
6349 call_insn_simple_operand predicate.
6351 2013-03-04 Jakub Jelinek <jakub@redhat.com>
6354 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
6355 partitions.ordered_remove.
6358 * tree-vect-stmts.c (vectorizable_conversion): Don't call
6359 vec_oprnds0.create (1) for modifier == NONE.
6362 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
6363 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
6364 vec_oprnds1 right before pushing anything to it for
6368 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
6369 set nbbs to 0 instead of having separate code path.
6370 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
6371 instead of false as last argument if returning NULL.
6373 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
6375 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
6376 the attribute is now called "target" instead of "option".
6377 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
6378 * doc/tm.texi.in (Target Attributes): Likewise document the correct
6379 attribute/pragma name for TARGET_OPTION_VALID_P and
6380 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
6381 * doc/tm.texi: Regenerated.
6383 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
6385 * config/microblaze/microblaze.c:
6386 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
6387 * config/microblaze/microblaze.h: Add -mxl-reorder to
6389 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
6390 instructions emitted if TARGET_REORDER.
6391 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
6392 or 0 for -m/-mno case, but initialises as 2 to detect default use case
6395 2013-03-01 Xinliang David Li <davidxl@google.com>
6397 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
6400 2013-03-01 Jakub Jelinek <jakub@redhat.com>
6403 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
6404 vector even when returning true. Fix up function comment formatting.
6407 * ira-build.c (ira_loop_nodes_count): New variable.
6408 (create_loop_tree_nodes): Initialize it.
6409 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
6412 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
6413 method on dr_chain and result_chain.
6414 * tree-vect-stmts.c (vectorizable_store): Only call
6415 result_chain.create if j == 0.
6418 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
6419 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
6420 before overwriting it.
6422 2013-03-01 Tobias Burnus <burnus@net-b.de>
6424 * doc/extended.texi (C Extensions): Change order in @menu
6426 (Other MIPS Built-in Functions): Move last MIPS entry before
6427 "picoChip Built-in Functions".
6428 (SH Built-in Functions): Move after RX Built-in Functions.
6429 * doc/gcc.texi (Introduction): Change order in @menu
6431 * doc/md.texi (Constraints): Ditto.
6432 * gty.texi (Type Information): Ditto.
6433 (User-provided marking routines for template types): Make
6435 * doc/invoke.texi (AArch64 Options): Move before
6436 "Adapteva Epiphany Options".
6438 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
6439 Jakub Jelinek <jakub@redhat.com>
6442 * asan.c (gate_asan): Lookup no_sanitize_address instead of
6443 no_address_safety_analysis attribute.
6444 * doc/extend.texi (no_address_safety_attribute): Rename to
6445 no_sanitize_address attribute, mention no_address_safety_analysis
6446 attribute as deprecated alias.
6448 2013-02-28 Jakub Jelinek <jakub@redhat.com>
6451 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
6452 type to vec<vec<tree> > *.
6453 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
6454 to be vec<tree> instead of vec<tree> *, set vec_defs
6455 to vNULL and call vec_defs.create (number_of_vects), adjust other
6457 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
6458 vectorizable_condition): Adjust vect_get_slp_defs callers.
6460 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
6462 * config/aarch64/aarch64.c
6463 (aarch64_float_const_representable): Remove unused variable.
6465 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
6467 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
6469 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
6471 * config/aarch64/aarch64-builtins.c
6472 (aarch64_init_simd_builtins): Make static.
6474 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
6476 * config/aarch64/aarch64.c
6477 (aarch64_simd_make_constant): Make static.
6479 2013-02-28 Martin Jambor <mjambor@suse.cz>
6481 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
6482 with no initialization to the RHS of debug statements.
6484 2013-02-28 Martin Jambor <mjambor@suse.cz>
6486 PR tree-optimization/56294
6487 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
6489 (get_access_replacement): Do not call create_access_replacement.
6490 Assert a replacement exists.
6491 (get_repl_default_def_ssa_name): Create the replacement declaration
6494 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6496 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
6499 2013-02-28 Marek Polacek <polacek@redhat.com>
6501 PR rtl-optimization/56466
6502 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
6503 if we're changing a loop.
6504 (peel_loops_completely): Likewise.
6506 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
6509 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
6511 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
6514 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
6515 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
6516 INTX_FTYPE_FX, FX_FTYPE_INTX.
6517 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
6519 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
6521 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
6522 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
6523 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
6524 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
6525 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
6526 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
6527 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
6528 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
6529 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
6530 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
6531 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
6532 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
6533 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
6534 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
6535 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
6536 (avrxmega6): Increase max flash segments from 5 to 6.
6537 * config/avr/t-multilib: Regenerate.
6538 * config/avr/avr-tables.opt: Regenerate.
6539 * doc/avr-mmcu.texi: Regenerate.
6541 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
6543 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
6544 (avr_device_to_arch): Rename to avr_device_to_ld.
6545 (avr_device_to_as): New prototype.
6546 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
6547 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
6548 * config/avr/driver-avr.c (avr_device_to_as): New.
6549 (avr_device_to_arch): Rename to avr_device_to_ld.
6551 2013-02-27 Jakub Jelinek <jakub@redhat.com>
6554 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
6555 method on dr_chain and result_chain.
6558 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
6559 pointer_set_destroy on not_executed_last_iteration.
6562 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
6565 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
6566 FOR_EACH_DEFINED_FUNCTION when freeing state.
6569 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
6571 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
6575 * ipa-cp.c (decide_whether_version_node): Call vec_free on
6576 known_aggs[i].items and release known_aggs vector.
6579 * ipa-reference.c (propagate): Free node_info even for alias nodes.
6581 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6583 * config/microblaze/microblaze.c (microblaze_emit_compare):
6584 Use xor for EQ/NE comparisions.
6585 * config/microblaze/microblaze.md (cstoresf4): Add constraints
6586 (cbranchsf4): Adjust operator to comparison_operator.
6588 2013-02-27 Jakub Jelinek <jakub@redhat.com>
6591 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
6593 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
6594 vec_safe_push, always update *slot.
6595 (redirect_edge_var_map_clear): Use vec_free.
6596 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
6597 (free_var_map_entry): Use vec_free.
6598 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
6599 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
6601 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
6604 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
6605 when the may_trap_p bit of the exprs being merged differs.
6606 Reorder tests for speculativeness in the logical and operator.
6608 2013-02-27 Jakub Jelinek <jakub@redhat.com>
6610 * incpath.c (add_standard_paths): Use reconcat instead of concat
6611 where appropriate and avoid leaking memory.
6613 * opts.h: Include obstack.h.
6614 (opts_concat): New prototype.
6615 (opts_obstack): New declaration.
6616 * opts.c (opts_concat): New function.
6617 (opts_obstack): New variable.
6618 (init_options_struct): Call gcc_init_obstack on opts_obstack.
6619 (finish_options): Use opts_concat instead of concat
6620 and XOBNEWVEC instead of XNEWVEC.
6621 * opts-common.c (generate_canonical_option, decode_cmdline_option,
6622 generate_option): Likewise.
6623 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
6624 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
6627 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
6628 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
6630 2013-02-26 Jakub Jelinek <jakub@redhat.com>
6633 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
6635 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
6637 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
6638 (arm_block_move_unaligned_straight): Likewise.
6639 (arm_adjust_block_mem): Likewise.
6641 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
6644 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
6645 temp, cond and label.
6646 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
6649 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
6650 * config/c6x/c6x.h (dbx_register_map): Update declaration.
6653 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
6654 of prologue/epilogue functions.
6657 * config/tilegx/tilegx.c (tilegx_expand_prologue):
6658 Remove unused variable cfa_offset.
6659 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
6662 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
6663 type promotion to unsigned.
6666 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
6667 for HOST_WIDE_INT of 32 bit / same size as int.
6668 (arm_block_move_unaligned_straight): Likewise.
6669 (arm_adjust_block_mem): Likewise.
6672 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
6675 2013-02-26 Marek Polacek <polacek@redhat.com>
6677 PR tree-optimization/56426
6678 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
6680 2013-02-26 Richard Biener <rguenther@suse.de>
6683 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
6684 unused variable loops.
6686 2013-02-26 Jakub Jelinek <jakub@redhat.com>
6688 PR tree-optimization/56448
6689 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
6690 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
6691 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
6692 later operands of the references, or even first operand for
6693 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
6695 PR tree-optimization/56443
6696 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
6697 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
6698 to type_for_mode langhook.
6700 2013-02-25 Matt Turner <mattst88@gmail.com>
6702 * doc/invoke.texi: Document r4700.
6704 2013-02-25 Richard Biener <rguenther@suse.de>
6706 PR tree-optimization/56175
6707 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
6709 (simplify_bitwise_binary): ... here. Also guard the conversion
6710 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
6712 2013-02-25 Catherine Moore <clm@codesourcery.com>
6715 2013-02-24 Catherine Moore <clm@codesourcery.com>
6716 Maciej W. Rozycki <macro@codesourcery.com>
6717 Tom de Vries <tom@codesourcery.com>
6718 Nathan Sidwell <nathan@codesourcery.com>
6719 Iain Sandoe <iain@codesourcery.com>
6720 Nathan Froyd <froydnj@codesourcery.com>
6721 Chao-ying Fu <fu@mips.com>
6723 * doc/extend.texi: (micromips, nomicromips, nocompression):
6724 Document new function attributes.
6725 * doc/invoke.texi (minterlink-compressed, mmicromips,
6726 m14k, m14ke, m14kec): Document new options.
6727 (minterlink-mips16): Update documentation.
6728 * doc/md.texi (ZC, ZD): Document new constraints.
6729 * configure.ac (gcc_cv_as_micromips): Check if linker
6730 supports the .set micromips directive.
6731 * configure: Regenerate.
6732 * config.in: Regenerate.
6733 * config/mips/mips-tables.opt: Regenerate.
6734 * config/mips/micromips.md: New file.
6735 * constraints.md (ZC, AD): New constraints.
6736 * config/mips/predicates.md (movep_src_register): New predicate.
6737 (movep_src_operand): New predicate.
6738 (non_volatile_mem_operand): New predicate.
6739 * config/mips/mips.md (multimem): New type.
6740 (length): Differentiate between 17-bit and 18-bit branch offsets.
6741 (MOVEP1, MOVEP2): New mode iterator.
6742 (mov_<load>l): Use ZC constraint.
6743 (mov_<load>r): Likewise.
6744 (mov_<store>l): Likewise.
6745 (mov_<store>r): Likewise.
6746 (*branch_equality<mode>_inverted): Add microMIPS support.
6747 (*branch_equality<mode>): Likewise.
6748 (*jump_absolute): Likewise.
6749 (indirect_jump_<mode>): Likewise.
6750 (tablejump_<mode>): Likewise.
6751 (<optab>_internal): Likewise.
6752 (sibcall_internal): Likewise.
6753 (sibcall_value_internal): Likewise.
6754 (prefetch): Use constraint ZD.
6755 * config/mips/mips.opt (minterlink-compressed): New option.
6756 (minterlink-mips16): Now an alias for minterlink-compressed.
6757 (mmicromips): New option.
6758 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
6759 (compare_and_swap_12): Likewise.
6760 (sync_add<mode>): Likewise.
6761 (sync_<optab>_12): Likewise.
6762 (sync_old_<optab>_12): Likewise.
6763 (sync_new_<optab>_12): Likewise.
6764 (sync_nand_12): Likewise.
6765 (sync_old_nand_12): Likewise.
6766 (sync_new_nand_12): Likewise.
6767 (sync_sub<mode>): Likewise.
6768 (sync_old_add<mode>): Likewise.
6769 (sync_old_sub<mode>): Likewise.
6770 (sync_new_add<mode>): Likewise.
6771 (sync_new_sub<mode>): Likewise.
6772 (sync_<optab><mode>): Likewise.
6773 (sync_old_<optab><mode>): Likewise.
6774 (sync_new_<optab><mode>): Likewise.
6775 (sync_nand<mode>): Likewise.
6776 (sync_old_nand<mode>): Likewise.
6777 (sync_new_nand<mode>): Likewise.
6778 (sync_lock_test_and_set<mode>): Likewise.
6779 (test_and_set_12): Likewise.
6780 (atomic_compare_and_swap<mode>): Likewise.
6781 (atomic_exchange<mode>_llsc): Likewise.
6782 (atomic_fetch_add<mode>_llsc): Likewise.
6783 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
6784 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
6785 (umips_save_restore_pattern_p): Likewise.
6786 (umips_load_store_pair_p): Likewise.
6787 (umips_output_load_store_pair): Likewise.
6788 (umips_movep_target_p): Likewise.
6789 (umips_12bit_offset_address_p): Likewise.
6790 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
6791 (mips_base_mips16): Rename this...
6792 (mips_base_compression_flags): ...to this. Update all uses.
6793 (mips_attribute_table): Add micromips, nomicromips and nocompression.
6794 (mips_mips16_decl_p): Delete.
6795 (mips_nomips16_decl_p): Delete.
6796 (mips_get_compress_on_flags): New function.
6797 (mips_get_compress_off_flags): New function.
6798 (mips_get_compress_mode): New function.
6799 (mips_get_compress_on_name): New function.
6800 (mips_get_compress_off_name): New function.
6801 (mips_insert_attributes): Support multiple compression types.
6802 (mips_merge_decl_attributes): Likewise.
6803 (umips_12bit_offset_address_p): New function.
6804 (mips_start_function_definition): Emit .set micromips directive.
6805 (mips_call_may_need_jalx_p): New function.
6806 (mips_function_ok_for_sibcall): Add microMIPS support.
6807 (mips_print_operand_punctuation): Support short delay slots and
6809 (umips_swm_mask, umips_swm_encoding): New.
6810 (umips_build_save_restore): New function.
6811 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
6812 (was_mips16_p): Remove.
6813 (old_compression_mode): New.
6814 (mips_set_compression_mode): New function.
6815 (mips_set_current_function): Add microMIPS support.
6816 (mips_option_override): Likewise.
6817 (umips_save_restore_pattern_p): New function.
6818 (umips_output_save_restore): New function.
6819 (umips_load_store_pair_p_1): New function.
6820 (umips_load_store_pair_p): New function.
6821 (umips_output_load_store_pair_1): New function.
6822 (umips_output_load_store_pair): New function.
6823 (umips_movep_target_p) New function.
6824 (mips_prepare_pch_save): Add microMIPS support.
6825 * config/mips/mips.h (TARGET_COMPRESSION): New.
6826 (TARGET_CPU_CPP_BUILTINS): Update macro
6827 to use new compression flags and to support microMIPS.
6828 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
6829 (MIPS_ARCH_FLOAT_SPEC): Likewise.
6830 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
6831 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
6832 (ASM_SPEC): Support mmicromips and mno-micromips.
6833 (M16STORE_REG_P): New macro.
6834 (MIPS_CALL): Support TARGET_MICROMIPS.
6835 (MICROMIPS_J): New macro.
6836 (mips_base_mips16): Rename this...
6837 (mips_base_compression_flags): ...to this.
6838 (UMIPS_12BIT_OFFSET_P): New macro.
6839 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
6840 (MULTILIB_DIRNAMES): Likewise.
6842 2013-02-25 Tom de Vries <tom@codesourcery.com>
6844 PR rtl-optimization/56131
6845 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
6846 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
6847 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
6849 2013-02-25 Tobias Burnus <burnus@net-b.de>
6851 * doc/invoke.texi (-fsanitize=): Move from optimization
6852 to debugging options.
6854 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
6856 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
6858 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
6859 Alexander Monakov <amonakov@ispras.ru>
6862 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
6863 flush pending lists also on non-jumps. Adjust comment.
6865 2013-02-24 Catherine Moore <clm@codesourcery.com>
6866 Maciej W. Rozycki <macro@codesourcery.com>
6867 Tom de Vries <tom@codesourcery.com>
6868 Nathan Sidwell <nathan@codesourcery.com>
6869 Iain Sandoe <iain@codesourcery.com>
6870 Nathan Froyd <froydnj@codesourcery.com>
6871 Chao-ying Fu <fu@mips.com>
6873 * doc/extend.texi: (micromips, nomicromips, nocompression):
6874 Document new function attributes.
6875 * doc/invoke.texi (minterlink-compressed, mmicromips,
6876 m14k, m14ke, m14kec): Document new options.
6877 (minterlink-mips16): Update documentation.
6878 * doc/md.texi (ZC, ZD): Document new constraints.
6879 * configure.ac (gcc_cv_as_micromips): Check if linker
6880 supports the .set micromips directive.
6881 * configure: Regenerate.
6882 * config.in: Regenerate.
6883 * config/mips/mips-tables.opt: Regenerate.
6884 * config/mips/micromips.md: New file.
6885 * constraints.md (ZC, AD): New constraints.
6886 * config/mips/predicates.md (movep_src_register): New predicate.
6887 (movep_src_operand): New predicate.
6888 (non_volatile_mem_operand): New predicate.
6889 * config/mips/mips.md (multimem): New type.
6890 (length): Differentiate between 17-bit and 18-bit branch offsets.
6891 (MOVEP1, MOVEP2): New mode iterator.
6892 (mov_<load>l): Use ZC constraint.
6893 (mov_<load>r): Likewise.
6894 (mov_<store>l): Likewise.
6895 (mov_<store>r): Likewise.
6896 (*branch_equality<mode>_inverted): Add microMIPS support.
6897 (*branch_equality<mode>): Likewise.
6898 (*jump_absolute): Likewise.
6899 (indirect_jump_<mode>): Likewise.
6900 (tablejump_<mode>): Likewise.
6901 (<optab>_internal): Likewise.
6902 (sibcall_internal): Likewise.
6903 (sibcall_value_internal): Likewise.
6904 (prefetch): Use constraint ZD.
6905 * config/mips/mips.opt (minterlink-compressed): New option.
6906 (minterlink-mips16): Now an alias for minterlink-compressed.
6907 (mmicromips): New option.
6908 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
6909 (compare_and_swap_12): Likewise.
6910 (sync_add<mode>): Likewise.
6911 (sync_<optab>_12): Likewise.
6912 (sync_old_<optab>_12): Likewise.
6913 (sync_new_<optab>_12): Likewise.
6914 (sync_nand_12): Likewise.
6915 (sync_old_nand_12): Likewise.
6916 (sync_new_nand_12): Likewise.
6917 (sync_sub<mode>): Likewise.
6918 (sync_old_add<mode>): Likewise.
6919 (sync_old_sub<mode>): Likewise.
6920 (sync_new_add<mode>): Likewise.
6921 (sync_new_sub<mode>): Likewise.
6922 (sync_<optab><mode>): Likewise.
6923 (sync_old_<optab><mode>): Likewise.
6924 (sync_new_<optab><mode>): Likewise.
6925 (sync_nand<mode>): Likewise.
6926 (sync_old_nand<mode>): Likewise.
6927 (sync_new_nand<mode>): Likewise.
6928 (sync_lock_test_and_set<mode>): Likewise.
6929 (test_and_set_12): Likewise.
6930 (atomic_compare_and_swap<mode>): Likewise.
6931 (atomic_exchange<mode>_llsc): Likewise.
6932 (atomic_fetch_add<mode>_llsc): Likewise.
6933 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
6934 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
6935 (umips_save_restore_pattern_p): Likewise.
6936 (umips_load_store_pair_p): Likewise.
6937 (umips_output_load_store_pair): Likewise.
6938 (umips_movep_target_p): Likewise.
6939 (umips_12bit_offset_address_p): Likewise.
6940 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
6941 (mips_base_mips16): Rename this...
6942 (mips_base_compression_flags): ...to this. Update all uses.
6943 (mips_attribute_table): Add micromips, nomicromips and nocompression.
6944 (mips_mips16_decl_p): Delete.
6945 (mips_nomips16_decl_p): Delete.
6946 (mips_get_compress_on_flags): New function.
6947 (mips_get_compress_off_flags): New function.
6948 (mips_get_compress_mode): New function.
6949 (mips_get_compress_on_name): New function.
6950 (mips_get_compress_off_name): New function.
6951 (mips_insert_attributes): Support multiple compression types.
6952 (mips_merge_decl_attributes): Likewise.
6953 (umips_12bit_offset_address_p): New function.
6954 (mips_start_function_definition): Emit .set micromips directive.
6955 (mips_call_may_need_jalx_p): New function.
6956 (mips_function_ok_for_sibcall): Add microMIPS support.
6957 (mips_print_operand_punctuation): Support short delay slots and
6959 (umips_swm_mask, umips_swm_encoding): New.
6960 (umips_build_save_restore): New function.
6961 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
6962 (was_mips16_p): Remove.
6963 (old_compression_mode): New.
6964 (mips_set_compression_mode): New function.
6965 (mips_set_current_function): Add microMIPS support.
6966 (mips_option_override): Likewise.
6967 (umips_save_restore_pattern_p): New function.
6968 (umips_output_save_restore): New function.
6969 (umips_load_store_pair_p_1): New function.
6970 (umips_load_store_pair_p): New function.
6971 (umips_output_load_store_pair_1): New function.
6972 (umips_output_load_store_pair): New function.
6973 (umips_movep_target_p) New function.
6974 (mips_prepare_pch_save): Add microMIPS support.
6975 * config/mips/mips.h (TARGET_COMPRESSION): New.
6976 (TARGET_CPU_CPP_BUILTINS): Update macro
6977 to use new compression flags and to support microMIPS.
6978 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
6979 (MIPS_ARCH_FLOAT_SPEC): Likewise.
6980 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
6981 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
6982 (ASM_SPEC): Support mmicromips and mno-micromips.
6983 (M16STORE_REG_P): New macro.
6984 (MIPS_CALL): Support TARGET_MICROMIPS.
6985 (MICROMIPS_J): New macro.
6986 (mips_base_mips16): Rename this...
6987 (mips_base_compression_flags): ...to this.
6988 (UMIPS_12BIT_OFFSET_P): New macro.
6989 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
6990 (MULTILIB_DIRNAMES): Likewise.
6992 2013-02-24 Jakub Jelinek <jakub@redhat.com>
6995 * target-globals.c (save_target_globals): For init_reg_sets and
6996 target_reinit remporarily set this_fn_optabs to this_target_optabs.
6998 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
7000 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
7001 * config/aarch64/t-aarch64
7002 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
7004 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
7007 * lra-constraints.c (process_alt_operands): Reload operand
7008 conflicting with earlier clobber only if no more other conflicting
7011 2013-02-22 Jakub Jelinek <jakub@redhat.com>
7014 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
7015 if not linking a shared library.
7017 2013-02-22 Seth LaForge <sethml@google.com>
7019 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
7021 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
7023 * config/arm/arm.md (split for extendsidi): Update condition.
7024 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
7025 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
7026 (qhs_zextenddi_cstr): Likewise.
7028 2013-02-21 Jakub Jelinek <jakub@redhat.com>
7031 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
7032 avoid signed wrapping.
7033 (expand_mult): Handle properly multiplication by
7034 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
7035 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
7036 in the compiler if coeff is HOST_WIDE_INT_MIN.
7037 (expand_divmod): Don't make ext_op1 static, change it's type to
7038 uhwi. Avoid undefined behavior in -INTVAL (op1).
7040 PR rtl-optimization/50339
7041 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
7043 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
7044 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
7045 into splitting_ashiftrt field.
7046 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
7048 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
7051 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
7054 * trans-mem.c (execute_tm_mark): Do not expand transactions that
7055 are sure to go irrevocable.
7057 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
7059 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
7060 scalars are valid operands.
7062 2013-02-21 Martin Jambor <mjambor@suse.cz>
7064 PR tree-optimization/56310
7065 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
7066 only matching indices and non-negative final offsets.
7067 (intersect_aggregates_with_edge): Pass src_idx to
7068 agg_replacements_to_vector. Pass src_idx insstead of index to
7069 intersect_with_agg_replacements.
7071 2013-02-21 Martin Jambor <mjambor@suse.cz>
7073 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
7074 instead of hard-wired defaults.
7076 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
7078 * doc/invoke.texi (MIPS Options): Update documentation of the
7079 floating-point multiply-accumulate instruction restrictions.
7081 2013-02-21 Kostya Serebryany <kcc@google.com>
7083 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
7084 asan_shadow_offset on x86_64 linux.
7086 2013-02-21 Richard Biener <rguenther@suse.de>
7088 PR tree-optimization/56415
7090 2013-02-11 Richard Biener <rguenther@suse.de>
7092 PR tree-optimization/56273
7093 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
7096 2013-02-21 Jakub Jelinek <jakub@redhat.com>
7099 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
7103 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
7104 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
7106 2013-02-20 Jan Hubicka <jh@suse.cz>
7108 PR tree-optimization/56265
7109 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
7110 when target is referenced for first time.
7112 2013-02-20 Richard Biener <rguenther@suse.de>
7114 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
7115 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
7116 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
7117 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
7118 not return anything.
7119 (rename_ssa_copies): Do not remove unused locals.
7120 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
7121 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
7122 * passes.c (execute_function_todo): Do not schedule unused locals
7123 removal if cleanup_tree_cfg did something.
7124 * tree-ssa-live.c (remove_unused_locals): Dump statistics
7125 about the number of removed locals.
7127 2013-02-20 Richard Biener <rguenther@suse.de>
7129 PR tree-optimization/56398
7130 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
7132 2013-02-20 Martin Jambor <mjambor@suse.cz>
7134 PR tree-optimization/55334
7135 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
7136 restricted pointers to arrays.
7138 2013-02-20 Richard Biener <rguenther@suse.de>
7139 Jakub Jelinek <jakub@redhat.com>
7141 PR tree-optimization/56396
7142 * tree-ssa-ccp.c (n_const_val): New static variable.
7143 (get_value): Return NULL for SSA names we don't have a lattice
7145 (ccp_initialize): Initialize n_const_val.
7146 * tree-ssa-copy.c (n_copy_of): New static variable.
7147 (init_copy_prop): Initialize n_copy_of.
7148 (get_value): Return NULL_TREE for SSA names we don't have a
7151 2013-02-20 Martin Jambor <mjambor@suse.cz>
7153 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
7155 2013-02-20 Richard Biener <rguenther@suse.de>
7157 * genpreds.c (write_lookup_constraint): Do not compare first
7158 letter of the constraint again.
7160 2013-02-20 Richard Biener <rguenther@suse.de>
7162 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
7164 (get_use_iv_cost): Terminate hashtable walk when coming across
7167 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
7169 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
7170 reassociation for avx2 targets.
7172 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7174 * config/microblaze/microblaze.c: microblaze_has_clz = 0
7175 Add version check for v8.10.a to enable microblaze_has_clz
7176 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
7177 version and TARGET_PATTERN_COMPARE check
7178 * config/microblaze/microblaze.md: New clzsi2 instruction
7180 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7182 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
7183 function before branching.
7185 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
7187 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
7189 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
7191 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
7194 * sel-sched.c: Include ira.h.
7195 (implicit_clobber_conflict_p): New function.
7196 (moveup_expr): Use it.
7197 * Makefile.in (sel-sched.o): Depend on ira.h.
7199 2013-02-19 Richard Biener <rguenther@suse.de>
7201 PR tree-optimization/56384
7202 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
7203 (vn_hash_type): Split out from ...
7204 (vn_hash_constant_with_type): ... here.
7205 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
7206 (vn_phi_eq): Compare types from vn_phi_s structure.
7207 (vn_phi_lookup): Populate vn_phi_s type.
7208 (vn_phi_insert): Likewise.
7210 2013-02-19 Jakub Jelinek <jakub@redhat.com>
7212 PR tree-optimization/56350
7213 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
7214 if haven't found reduction or nested cycle operand, rather than
7215 asserting we must find it.
7217 PR tree-optimization/56381
7218 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
7221 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
7222 Jakub Jelinek <jakub@redhat.com>
7225 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
7226 (swap_optab_enable): Same.
7227 (init_all_optabs): Use argument instead of global.
7228 * tree.h (struct tree_optimization_option): New field target_optabs.
7229 * expr.h (init_all_optabs): Add argument to prototype.
7230 (TREE_OPTIMIZATION_OPTABS): New.
7231 (save_optabs_if_changed): Protoize.
7232 * optabs.h: Declare this_fn_optabs.
7233 * optabs.c (save_optabs_if_changed): New.
7234 Declare this_fn_optabs.
7235 (init_optabs): Add argument to init_all_optabs() call.
7236 * function.c (invoke_set_current_function_hook): Handle per
7238 * function.h (struct function): New field optabs.
7239 * config/mips/mips.c (mips_set_mips16_mode): Handle when
7240 optimization_current_node has changed.
7241 * target-globals.h (save_target_globals_default_opts): Protoize.
7242 * target-globals.c (save_target_globals_default_opts): New.
7244 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7247 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
7248 registers %fr12 and %fr12R as call used.
7251 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
7252 and HImode, require all displacements to be an integer multiple of
7254 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
7255 only allow QImode and HImode when reload is in progress and strict is
7256 true. Likewise for symbolic addresses. Use base14_operand to check
7257 displacements in REG+BASE addresses.
7259 2013-02-18 Richard Biener <rguenther@suse.de>
7261 PR tree-optimization/56366
7262 * tree-vect-loop.c (get_initial_def_for_induction): Properly
7263 handle sign-conversion of outer-loop initial induction value.
7265 2013-02-18 Richard Biener <rguenther@suse.de>
7268 * cfghooks.c (merge_blocks): If we merge a latch into another
7269 block adjust references to it.
7270 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
7271 (verify_loop_structure): Verify that a recorded latch is in fact
7274 2013-02-18 Richard Biener <rguenther@suse.de>
7276 PR tree-optimization/56321
7277 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
7278 order SSA name release and virtual operand unlinking.
7280 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7282 * config/microblaze/microblaze.md (save_stack_block): Define.
7283 (restore_stack_block): Likewise.
7285 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7287 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
7288 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
7289 * config/microblaze/microblaze.c (microblaze_option_override):
7290 Bail out early for PIC modes when target does not support PIC.
7292 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7294 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
7295 Replace with a microblaze version.
7296 (microblaze_trampoline_init): Adapt for microblaze.
7297 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
7300 2013-02-16 Jakub Jelinek <jakub@redhat.com>
7301 Dodji Seketeli <dodji@redhat.com>
7304 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
7305 (instrument_mem_region_access): Do not forget to always put
7306 instrumentation of the of 'base' and 'base + len' in a "if (len !=
7307 0) statement, even for cases where either 'base' or 'base + len'
7308 are not instrumented -- because they have been previously
7309 instrumented. Simplify the logic by putting all the statements
7310 instrument 'base + len' inside a sequence, and then insert that
7311 sequence right before the current insertion point. Then, to
7312 instrument 'base + len', just get an iterator on that statement.
7313 And do not forget to update the pointer to iterator the function
7314 received as argument.
7316 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
7318 PR rtl-optimization/56348
7319 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
7321 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
7323 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
7324 (clean_graph_dump_file): Pass base to start_graph_dump.
7326 2013-02-14 Richard Henderson <rth@redhat.com>
7329 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
7331 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
7333 * collect2-aix.h: Define F_LOADONLY.
7335 2013-02-14 Richard Biener <rguenther@suse.de>
7338 * varasm.c (output_constant_def_1): Get the decl representing
7339 the constant as argument.
7340 (output_constant_def): Wrap output_constant_def_1.
7341 (make_decl_rtl): Use output_constant_def_1 with the decl
7342 representing the constant.
7343 (build_constant_desc): Optionally re-use a decl already
7344 representing the constant.
7345 (tree_output_constant_def): Adjust.
7347 2013-02-14 Dodji Seketeli <dodji@redhat.com>
7350 * asan.c (instrument_builtin_call): Really put the length of the
7351 second source argument into src1_len.
7353 2013-02-13 Jakub Jelinek <jakub@redhat.com>
7355 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
7356 argument. If it is false, don't create edge from then_bb to
7358 (insert_if_then_before_iter): Pass true to it.
7359 (build_check_stmt): Pass false to it.
7360 (transform_statements): Flush hash table only on extended basic
7361 block boundaries, rather than at the beginning of every bb.
7362 Don't flush hash table on nonfreeing_call_p calls.
7363 * tree-flow.h (nonfreeing_call_p): New prototype.
7364 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
7366 2013-02-13 David S. Miller <davem@davemloft.net>
7368 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
7370 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
7373 * ira.c (max_regno_before_ira): Move from ...
7375 (fix_reg_equiv_init): Use max_regno_before_ira instead of
7378 2013-02-13 Jakub Jelinek <jakub@redhat.com>
7380 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
7382 2013-02-13 Richard Biener <rguenther@suse.de>
7385 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
7386 globals in MEM_REFs.
7388 2013-02-13 Richard Biener <rguenther@suse.de>
7390 * loop-init.c (loop_optimizer_init): Clear loop state when
7391 re-initializing preserved loops.
7392 * loop-unswitch.c (unswitch_single_loop): Return whether
7393 we unswitched the loop. Do not verify loop state here.
7394 (unswitch_loops): When we unswitched a loop discover new loops.
7396 2013-02-13 Kostya Serebryany <kcc@google.com>
7398 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
7400 * sanitizer.def: Rename __asan_init to __asan_init_v1.
7402 2013-02-12 Dodji Seketeli <dodji@redhat.com>
7404 Avoid instrumenting duplicated memory access in the same basic block
7405 * Makefile.in (asan.o): Add new dependency on hash-table.h
7406 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
7407 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
7408 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
7409 (free_mem_ref_resources, has_mem_ref_been_instrumented)
7410 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
7411 (get_mem_ref_of_assignment): New functions.
7412 (get_mem_refs_of_builtin_call): Extract from
7413 instrument_builtin_call and tweak a little bit to make it fit with
7415 (instrument_builtin_call): Use the new
7416 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
7417 of is_gimple_builtin_call.
7418 (instrument_derefs, instrument_mem_region_access): Insert the
7419 instrumented memory reference into the hash table.
7420 (maybe_instrument_assignment): Renamed instrument_assignment into
7421 this, and change it to advance the iterator when instrumentation
7422 actually happened and return true in that case. This makes it
7423 homogeneous with maybe_instrument_assignment, and thus give a
7424 chance to callers to be more 'regular'.
7425 (transform_statements): Clear the memory reference hash table
7426 whenever we enter a new BB, when we cross a function call, or when
7427 we are done transforming statements. Use
7428 maybe_instrument_assignment instead of instrumentation. No more
7429 need to special case maybe_instrument_assignment and advance the
7430 iterator after calling it; it's now handled just like
7431 maybe_instrument_call. Update comment.
7433 2013-02-13 Richard Biener <rguenther@suse.de>
7435 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
7436 Fix loop discovery code.
7438 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
7441 * lra-constraints.c (process_alt_operands): Match early clobber
7442 operand with itself. Check conflicts with earlyclobber only if
7443 the operand is not reloaded. Prefer to reload conflicting operand
7444 if earlyclobber and matching operands are the same.
7446 2013-02-12 Richard Biener <rguenther@suse.de>
7449 * lto-streamer-out.c (write_symbol): Do not output symbols
7450 for hard register variables.
7452 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
7455 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
7456 (umulsidi3_insn, mulsidi3_insn): New insns.
7458 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
7460 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
7461 (struct tune_params): Add vec_costs field.
7462 * config/arm/arm.c (arm_builtin_vectorization_cost)
7463 (arm_add_stmt_cost): New functions.
7464 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
7465 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
7466 (arm_default_vec_cost): New struct of type cpu_vec_costs.
7467 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
7468 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
7469 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
7470 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
7472 2013-02-12 Richard Biener <rguenther@suse.de>
7475 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
7476 decls again if possible.
7478 2013-02-12 Richard Biener <rguenther@suse.de>
7481 * tree-ssa.c (verify_ssa_name): Fix check, move
7482 SSA_NAME_IN_FREE_LIST check up.
7484 2013-02-12 Jakub Jelinek <jakub@redhat.com>
7485 Steven Bosscher <steven@gcc.gnu.org>
7487 PR rtl-optimization/56151
7488 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
7489 equal to op0 or op1, and last_insn pattern is CODE operation
7490 with MEM dest and one of the operands matches that MEM.
7492 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
7494 * doc/extend.texi: Document Function Multiversioning and "default"
7495 parameter string to target attribute.
7496 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
7497 target attribute parameter is "default".
7498 (ix86_compare_version_priority): Remove checks for target attribute.
7499 (ix86_mangle_function_version_assembler_name): Change error to sorry.
7500 Remove check for target attribute equal to NULL. Add assert.
7501 (ix86_generate_version_dispatcher_body): Change error to sorry.
7503 2013-02-11 Iain Sandoe <iain@codesourcery.com>
7504 Jack Howarth <howarth@bromo.med.uc.edu>
7505 Patrick Marlier <patrick.marlier@gmail.com>
7508 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
7509 define ENDFILE_SPEC as TM_DESTRUCTOR.
7510 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
7512 2013-02-11 Alexander Potapenko <glider@google.com>
7513 Jack Howarth <howarth@bromo.med.uc.edu>
7514 Jakub Jelinek <jakub@redhat.com>
7517 * config/darwin.c (cdtor_record): Rename ctor_record.
7518 (sort_cdtor_records): Rename sort_ctor_records.
7519 (finalize_dtors): New routine to sort destructors by
7520 priority before use in assemble_integer.
7521 (machopic_asm_out_destructor): Use finalize_dtors if needed.
7523 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
7525 PR rtl-optimization/56275
7526 * simplify-rtx.c (avoid_constant_pool_reference): Check that
7527 offset is non-negative and less than cmode size before
7528 calling simplify_subreg.
7530 2013-02-11 Richard Biener <rguenther@suse.de>
7532 PR tree-optimization/56264
7533 * cfgloop.h (fix_loop_structure): Adjust prototype.
7534 * loop-init.c (fix_loop_structure): Return the number of
7535 newly discovered loops.
7536 * tree-cfgcleanup.c (repair_loop_structures): When new loops
7537 are discovered, do a full loop-closed SSA rewrite.
7539 2013-02-11 Richard Biener <rguenther@suse.de>
7541 PR tree-optimization/56273
7542 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
7544 (check_array_ref): Fix missing newline in dumps.
7545 (search_for_addr_array): Likewise.
7547 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
7549 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
7551 2013-02-09 Jakub Jelinek <jakub@redhat.com>
7554 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
7556 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
7558 PR rtl-optimization/56246
7559 * lra-constraints.c (simplify_operand_subreg): Try to reuse
7561 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
7562 constraints are satisfied.
7564 2013-02-08 Jeff Law <law@redhat.com>
7567 * emit-rtl.c (reg_is_parm_p): New function.
7568 * regs.h (reg_is_parm_p): New prototype.
7569 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
7570 callee-clobbered registers.
7572 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
7575 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
7576 If there is no implicit builtin declaration, just return NULL.
7578 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
7580 * config/i386/sse.md (FMAMODEM): New mode iterator.
7581 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
7582 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
7584 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
7586 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
7587 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
7588 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
7590 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7592 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
7593 (microblaze*-*-elf): Likewise.
7594 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
7596 * config/microblaze/microblaze-c.c: Add builtin defines for
7597 _LITTLE_ENDIAN and _BIG_ENDIAN.
7598 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
7599 add to TARGET_DEFAULT flags.
7600 Expand ASM_SPEC and LINK_SPEC.
7601 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
7602 * config/microblaze/microblaze.md: Update extendsidi2 and
7603 movdi_internal instructions to use low-order / high-order reg
7605 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
7606 options and inversemask / mask of LITTLE_ENDIAN.
7607 * config/microblaze/t-microblaze: Expand multilib options to
7608 include mlittle-endian (le) and update exceptions patterns.
7610 2013-02-08 Jakub Jelinek <jakub@redhat.com>
7612 PR rtl-optimization/56195
7613 * lra-constraints.c (get_reload_reg): Don't reuse regs
7614 if they have smaller mode than requested, if they have
7615 wider mode than requested, try to return a SUBREG.
7617 PR tree-optimization/56250
7618 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
7619 if type is unsigned and code isn't MULT_EXPR.
7621 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
7623 PR tree-optimization/56064
7624 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
7625 bits according to mode.
7626 * fixed-value.h (fixed_from_double_int)
7627 (const_fixed_from_double_int): Adjust comments.
7629 2013-02-08 Richard Biener <rguenther@suse.de>
7632 * lto-streamer.h (struct data_in): Remove current_file, current_line
7633 and current_col members.
7634 * lto-streamer-out.c (lto_output_location): Stream changed bits
7635 en-block for efficiency.
7636 * lto-streamer-in.c (clear_line_info): Remove.
7637 (lto_input_location): Cache current file, line and column
7638 globally via local statics. Read changed bits en-block.
7639 (input_function): Do not call clear_line_info.
7640 (lto_read_body): Likewise.
7641 (lto_input_toplevel_asms): Likewise.
7643 2013-02-08 Michael Matz <matz@suse.de>
7645 PR tree-optimization/52448
7646 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
7647 (nt_call_phase): New static.
7648 (add_or_mark_expr): Only mark accesses with newer phase than any
7650 (nonfreeing_call_p): New.
7651 (nt_init_block): Update nt_call_phase, mark blocks as visited.
7652 (nt_fini_block): Keep blocks marked as visited.
7653 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
7655 2013-02-08 Richard Biener <rguenther@suse.de>
7657 * ira.c (ira): Free broken dominator information.
7659 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
7661 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
7663 2013-02-08 Marek Polacek <polacek@redhat.com>
7665 * cfgloop.c (verify_loop_structure): Add more checking of headers.
7667 2013-02-08 Richard Biener <rguenther@suse.de>
7670 * cfgloop.h (flow_loops_find): Adjust.
7671 (bb_loop_header_p): Declare.
7672 * cfgloop.c (bb_loop_header_p): New function split out from ...
7673 (flow_loops_find): ... here. Adjust function signature,
7674 support incremental loop structure update.
7675 (verify_loop_structure): Cleanup. Verify a loop is a loop.
7676 * cfgloopmanip.c (fix_loop_structure): Move ...
7677 * loop-init.c (fix_loop_structure): ... here.
7678 (apply_loop_flags): Split out from ...
7679 (loop_optimizer_init): ... here.
7680 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
7681 in incremental mode, only remove dead loops here.
7683 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
7686 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
7687 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
7688 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
7689 (*round<mode>3.libgcc): New insns for fixed-modes.
7690 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
7691 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
7692 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
7693 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
7694 implementations. Define to __builtin_avr_absFX,
7695 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
7696 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
7697 __builtin_avr_countlsFX, respectively.
7698 * config/avr/avr-c.c (target.h): Include it.
7699 (enum avr_builtin_id): New enum.
7700 (avr_resolve_overloaded_builtin): New static function.
7701 (avr_register_target_pragmas): Use it to set
7702 targetm.resolve_overloaded_builtin.
7703 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
7704 tree nodes used by DEF_BUILTIN.
7705 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
7706 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
7707 <AVR_BUILTIN_xxBITS>: Same.
7709 2013-02-08 Richard Biener <rguenther@suse.de>
7711 * cfgloop.c (verify_loop_structure): Properly handle
7712 a loop exiting to another loop header.
7713 * ira-int.h (ira_loops): Remove.
7714 * ira.c (ira_loops): Remove.
7715 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
7716 (do_reload): Use loop_optimizer_finalize.
7717 * ira-build.c (create_loop_tree_nodes): Use get_loops and
7718 number_of_loops to access the loop tree.
7719 (more_one_region_p): Likewise.
7720 (finish_loop_tree_nodes): Likewise.
7721 (rebuild_regno_allocno_maps): Likewise.
7722 (mark_loops_for_removal): Likewise.
7723 (mark_all_loops_for_removal): Likewise.
7724 (remove_unnecessary_regions): Likewise.
7725 (ira_build): Likewise.
7726 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
7728 2013-02-08 Richard Biener <rguenther@suse.de>
7730 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
7731 * ipa-pure-const.c (analyze_function): Avoid calling
7732 mark_irreducible_loops twice.
7733 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
7735 2013-02-07 David S. Miller <davem@davemloft.net>
7737 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
7739 * var-tracking.c (vt_add_function_parameter): Test the presence of
7740 HAVE_window_save properly and do not remap argument registers when
7741 we have a leaf function.
7743 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
7746 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
7748 * config/i386/i386.c (ix86_print_operand): Ditto.
7750 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
7752 * lra-constraints.c (process_alt_operands): Fix recently added comment.
7754 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
7756 PR rtl-optimization/56225
7757 * lra-constraints.c (process_alt_operands): Check that reload hard
7758 reg can hold value for strict_low_part.
7760 2013-02-07 Jakub Jelinek <jakub@redhat.com>
7763 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
7764 dwarf2out_end_function.
7765 (in_first_function_p, maybe_at_text_label_p,
7766 first_loclabel_num_not_at_text_label): New variables.
7767 (dwarf2out_var_location): In the first function find out
7768 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
7769 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
7772 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
7774 PR rtl-optimization/56178
7775 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
7776 SUBREG of a register. Tidy up related block of code.
7777 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
7778 note if the source is a register or a SUBREG of a register.
7780 2013-02-07 Jakub Jelinek <jakub@redhat.com>
7783 * config/rs6000/rs6000.md (ptrm): New mode attr.
7784 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
7785 call_value_indirect_aix<pttrsize>,
7786 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
7789 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
7791 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
7792 if -bnortl. Convert to strcmp and strncmp.
7794 2013-02-07 Alan Modra <amodra@gmail.com>
7797 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
7798 addresses won't wrap when offsetting.
7799 (rs6000_secondary_reload): Provide secondary reloads needed for
7800 wrapping LO_SUM addresses.
7802 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
7804 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
7805 MACH, just __MACH__.
7807 2013-02-06 Richard Biener <rguenther@suse.de>
7809 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
7810 instead of calling fix_loop_structure.
7812 2013-02-06 Jakub Jelinek <jakub@redhat.com>
7815 * omp-low.c (use_pointer_for_field): Return false if
7816 lower_send_shared_vars doesn't generate any copy-out code.
7818 2013-02-06 Tom de Vries <tom@codesourcery.com>
7820 PR rtl-optimization/56131
7821 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
7822 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
7823 of the label is NULL. Add comment.
7825 2013-02-05 Jakub Jelinek <jakub@redhat.com>
7827 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
7830 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
7831 (STATIC_LIBTSAN_LIBS): Likewise.
7832 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
7833 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
7834 is defined, don't add anything else beyond that.
7835 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
7836 (LINK_COMMAND_SPEC): Use them.
7838 PR tree-optimization/56205
7839 * tree-stdarg.c (check_all_va_list_escapes): Return true if
7840 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
7841 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
7843 2013-02-05 Richard Biener <rguenther@suse.de>
7845 PR tree-optimization/53342
7846 PR tree-optimization/53185
7847 * tree-vectorizer.h (vect_check_strided_load): Remove.
7848 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
7849 not disallow peeling for vectorized strided loads.
7850 (vect_check_strided_load): Make static and simplify.
7851 (vect_analyze_data_refs): Adjust.
7852 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
7853 correctly when vectorizing strided loads.
7855 2013-02-05 Richard Biener <rguenther@suse.de>
7857 * doc/install.texi: Refer to ISL, not PPL.
7859 2013-02-05 Jan Hubicka <jh@suse.cz>
7861 PR tree-optimization/55789
7862 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
7864 2013-02-05 Jan Hubicka <jh@suse.cz>
7866 PR tree-optimization/55789
7867 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
7868 the dead call anyway.
7870 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
7873 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
7875 2013-02-04 Alexander Potapenko <glider@google.com>
7876 Jack Howarth <howarth@bromo.med.uc.edu>
7877 Jakub Jelinek <jakub@redhat.com>
7880 * config/darwin.c (sort_ctor_records): Stabilized qsort
7881 on constructor priority by using original position.
7882 (finalize_ctors): New routine to sort constructors by
7883 priority before use in assemble_integer.
7884 (machopic_asm_out_constructor): Use finalize_ctors if needed.
7886 2013-02-04 Jakub Jelinek <jakub@redhat.com>
7889 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
7890 about visibility on artificial decls.
7891 * config/sol2.c (solaris_assemble_visibility): Likewise.
7893 2013-02-04 Kai Tietz <ktietz@redhat.com>
7896 * config/i386/i386.c (function_value_ms_64): Add additional valtype
7897 argument and improve checking of return-argument types for 16-byte
7899 (ix86_function_value_1): Add additional valtype argument on call
7900 of function_value_64.
7901 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
7902 handling infunction_value_64 function.
7904 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
7906 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
7908 2013-02-04 Richard Biener <rguenther@suse.de>
7910 PR tree-optimization/56188
7911 * tree-ssa-structalias.c (label_visit): Consider case with
7912 initially non-empty points-to set.
7913 (perform_var_substitution): Dump node mapping and clean up.
7915 2013-02-04 Richard Guenther <rguenther@suse.de>
7918 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
7919 node prevail as last resort.
7920 (lto_symtab_merge_decls): Remove guard on LTRANS here.
7921 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
7923 2013-02-04 Richard Biener <rguenther@suse.de>
7925 PR tree-optimization/56113
7926 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
7928 (equiv_class_lookup_or_add): ... this.
7929 (label_visit): Adjust and fix error in previous patch.
7930 (perform_var_substitution): Adjust.
7932 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
7934 * config/sh/divtab.c: Fix formatting and comments throughout the file.
7935 * config/sh/sh4-300.md: Likewise.
7936 * config/sh/sh4a.md: Likewise.
7937 * config/sh/constraints.md: Likewise.
7938 * config/sh/sh.md: Likewise.
7939 * config/sh/netbsd-elf.h: Likewise.
7940 * config/sh/predicates.md: Likewise.
7941 * config/sh/sh-protos.h: Likewise.
7942 * config/sh/ushmedia.h: Likewise.
7943 * config/sh/linux.h: Likewise.
7944 * config/sh/sh.c: Likewise.
7945 * config/sh/superh.h: Likewise.
7946 * config/sh/elf.h: Likewise.
7947 * config/sh/sh4.md: Likewise.
7948 * config/sh/sh.h: Likewise.
7950 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7952 * config/pa/constraints.md: Adjust unused letters. Change "T"
7953 constraint to match_test floating_point_store_memory_operand().
7954 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
7955 (base14_operand): New.
7956 (floating_point_store_memory_operand): New.
7957 (integer_store_memory_operand): Revise to use base14_operand and
7958 reg_plus_base_memory_operand.
7959 (move_dest_operand): Allow symbolic_memory_operands.
7960 (symbolic_memory_operand): Check for LO_SOM.
7961 (symbolic_operand): Change default case to break.
7962 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
7963 CONST_DOUBLE values to be reloaded by putting them into memory when
7964 the destination is a floating point register.
7965 (movdf): Remove code to handle CONST_DOUBLE.
7967 (reload_indf_r1): New.
7968 (reload_insf_r1): New.
7969 Consistently use "Q" and "T" constraints with integer and floating
7970 point move instructions, respectively.
7971 (movdi): Remove FAIL.
7972 Change predicate for source operand unamed DImode move from
7973 general_operand to move_src_operand.
7974 (umulsidi3): Change predicate for destination operand to
7976 Likewise for similar unamed patterns.
7977 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
7978 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
7979 (hppa_legitimize_address): Simplify mask calculation.
7980 (pa_emit_move_sequence): Revised handling of secondary reloads from
7981 REG+D addresses for floating point loads and stores. Directly handle
7982 loading CONST0_RTX (mode) to a floating point register.
7983 (pa_secondary_reload): Handle reloading DF and SFmode constant values
7984 to floating point registers. Don't restrict secondary reloads to
7985 floating point registers to integer modes. Revise some comments and
7987 (TARGET_LEGITIMATE_ADDRESS_P): Define.
7988 (pa_legitimate_address_p): New.
7989 (pa_legitimize_reload_address): New.
7990 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
7991 (STRICT_REG_OK_FOR_BASE_P): New.
7992 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
7993 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
7995 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
7996 Andrew Dixie <andrewd@gentrack.com>
7998 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
8001 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
8003 * expmed.c (extract_bit_field_1): Pass the full width of the
8004 structure to get_best_reg_extraction_insn.
8006 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
8009 * configure.ac (use_cxa_atexit): Add AIX.
8010 * configure: Regenerate.
8012 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
8014 2013-02-01 Jakub Jelinek <jakub@redhat.com>
8017 * final.c (need_profile_function): New variable.
8018 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
8019 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
8020 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
8021 notes, targetm.asm_out.function_prologue doesn't emit anything,
8022 HAVE_prologue and profiler should be emitted before prologue,
8023 set need_profile_function instead of emitting it.
8024 (final_scan_insn): If need_profile_function, emit
8025 profile_function on the first NOTE_INSN_BASIC_BLOCK or
8026 NOTE_INSN_FUNCTION_BEG note.
8028 2013-02-01 Richard Henderson <rth@redhat.com>
8030 * config/rs6000/rs6000.md (smulditi3): New.
8033 * config/alpha/alpha.md (umulditi3): New.
8035 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
8037 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
8038 (ASM_OUTPUT_ALIGNED_LOCAL): New.
8040 2013-02-01 Richard Biener <rguenther@suse.de>
8042 PR tree-optimization/56113
8043 * tree-ssa-structalias.c (label_visit): Reduce work for
8044 single-predecessor nodes.
8046 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
8048 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
8049 range isn't testing for zero.
8051 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
8054 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
8056 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
8057 Nick Clifton <nickc@redhat.com>
8059 * config/v850/constraints.md (Q): Define as a memory constraint.
8060 * config/v850/predicates.md (label_ref_operand): New predicate.
8061 (e3v5_shift_operand): New predicate.
8062 (ior_operator): New predicate.
8063 * config/v850/t-v850: Add e3v5 multilib.
8064 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
8065 (v850_gen_movdi): Prototype.
8066 * config/v850/v850.c: Add support for e3v5 architecture.
8067 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
8069 (construct_save_jarl): Add e3v5 long JARL support.
8070 (v850_adjust_insn_length): New function. Adjust length of call
8071 insns when using e3v5 instructions.
8072 (v850_gen_movdi): New function: Generate instructions to move a
8074 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
8075 (CPP_SPEC): Define __v850e3v5__ as appropriate.
8076 (TARGET_USE_FPU): Enable for e3v5.
8077 (CONST_OK_FOR_W): New macro.
8078 (ADJUST_INSN_LENGTH): Define.
8079 * config/v850/v850.md (UNSPEC_LOOP): Define.
8080 (attr cpu): Add v850e3v5.
8081 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
8082 (movdi): New pattern.
8083 (movdi_internal): New pattern.
8084 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
8085 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
8086 (cstoresf4): Likewise.
8087 (cstoredf4): Likewise.
8088 (insv): New pattern.
8089 (rotlso3_a): New pattern.
8090 (rotlsi3_b): New pattern
8091 (rotlsi3_v850e3v5): New pattern.
8092 (doloop_begin): New pattern.
8093 (fix_loop_counter): New pattern.
8094 (doloop_end): New pattern.
8095 (branch_normal): Add e3v5 long branch support.
8096 (branch_invert): Likewise.
8097 (branch_z_normal): Likewise.
8098 (branch_z_invert): Likewise.
8099 (branch_nz_normal): Likewise.
8100 (branch_nz_invert): Likewise.
8101 (call_internal_short): Add e3v5 register-indirect JARL support.
8102 (call_internal_long): Likewise.
8103 (call_value_internal_short): Likewise.
8104 (call_value_internal_long): Likewise.
8105 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
8106 (mloop): New option.
8107 * config.gcc: Add support for configuring v840e3v5 target.
8108 * doc/invoke.texi: Document new v850 specific command line options.
8110 2013-01-31 Paul Koning <ni1d@arrl.net>
8114 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
8115 children if parent is a class.
8116 (prune_unused_types_prune): Don't add DW_AT_declaration.
8118 2013-01-31 Richard Biener <rguenther@suse.de>
8120 PR tree-optimization/56157
8121 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
8122 match up operand with SLP child.
8124 2013-01-31 Jason Merrill <jason@redhat.com>
8127 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
8128 parameters the first time.
8129 (gen_scheduled_generic_parms_dies): Check completeness here.
8131 2013-01-31 Richard Biener <rguenther@suse.de>
8134 * common.opt (faggressive-loop-optimizations): New flag,
8136 * doc/invoke.texi (faggressive-loop-optimizations): Document.
8137 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
8138 infer_loop_bounds_from_undefined by it.
8140 2013-01-31 Richard Biener <rguenther@suse.de>
8142 PR tree-optimization/56150
8143 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
8144 visit virtual operands.
8145 (find_uses_to_rename_bb): Likewise.
8147 2013-01-31 Richard Biener <rguenther@suse.de>
8149 PR tree-optimization/56150
8150 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
8151 mixed store non-store stmts.
8153 2013-01-30 Jakub Jelinek <jakub@redhat.com>
8156 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
8157 LIBASAN_EARLY_SPEC is defined.
8158 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
8159 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
8161 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
8164 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
8165 invalid args instead of ICEing on it.
8166 (ix86_valid_target_attribute_tree): Return error_mark_node if
8167 ix86_valid_target_attribute_inner_p failed.
8168 (ix86_valid_target_attribute_p): Return false only if
8169 ix86_valid_target_attribute_tree returned error_mark_node. Allow
8170 target("default") attribute.
8171 (sorted_attr_string): Change argument from const char * to tree,
8172 merge in all target attribute arguments rather than just one.
8173 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
8174 instead of free. Avoid using strcat.
8175 (ix86_mangle_function_version_assembler_name): Mangle
8176 target("default") as if no target attribute is present. Adjust
8177 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
8178 instead of xmalloc and XDELETEVEC instead of free.
8179 (ix86_function_versions): Don't return true if one of the decls
8180 doesn't have target attribute. If they don't and one of the decls
8181 is DECL_FUNCTION_VERSIONED, report an error. Adjust
8182 sorted_attr_string caller. Use XDELETEVEC instead of free.
8183 (ix86_supports_function_versions): Remove.
8184 (make_name): Fix up formatting.
8185 (make_dispatcher_decl): Remove resolver_name and its initialization.
8186 Avoid leaking memory.
8187 (is_function_default_version): Return true if there is
8188 target("default") attribute rather than no target attribute at all.
8189 (make_resolver_func): Avoid leaking memory.
8190 (ix86_generate_version_dispatcher_body): Likewise.
8191 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
8192 * target.def (supports_function_versions): Remove.
8193 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
8194 * doc/tm.texi: Regenerated.
8196 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
8198 PR rtl-optimization/56144
8199 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
8200 for values with side effects.
8202 2013-01-30 Richard Biener <rguenther@suse.de>
8204 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
8205 (sparseset_pop): Likewise.
8206 * cfganal.c (compute_idf): Likewise. Increase work-stack size
8207 to be able to use quick_push in the worker loop.
8209 2013-01-30 Marek Polacek <polacek@redhat.com>
8211 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
8213 2013-01-30 Richard Biener <rguenther@suse.de>
8216 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
8218 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
8220 PR tree-optimization/56064
8221 * fixed-value.c (fixed_from_double_int): New function.
8222 * fixed-value.h (fixed_from_double_int): New prototype.
8223 (const_fixed_from_double_int): New static inline function.
8224 * fold-const.c (native_interpret_fixed): New static function.
8225 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
8226 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
8227 (native_encode_fixed): New static function.
8228 (native_encode_expr) <FIXED_CST>: Use it.
8229 (native_interpret_int): Move double_int worker code to...
8230 * double-int.c (double_int::from_buffer): ...this new static method.
8231 * double-int.h (double_int::from_buffer): Prototype it.
8233 2013-01-30 Richard Biener <rguenther@suse.de>
8235 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
8236 New pointer-map and obstack.
8237 (init_alias_vars): Allocate pointer-map and obstack.
8238 (delete_points_to_sets): Free them.
8239 (find_what_var_points_to): Cache result.
8240 (find_what_p_points_to): Adjust for changed interface of
8241 find_what_var_points_to.
8242 (compute_points_to_sets): Likewise.
8243 (ipa_pta_execute): Likewise.
8245 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8247 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
8248 * configure: Regenerate.
8249 * config.in: Regenerate.
8250 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
8251 #nobits/#progbits if supported.
8253 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
8256 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
8257 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
8258 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
8260 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
8262 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
8263 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
8265 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
8267 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
8268 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
8270 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
8272 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
8274 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
8275 * config/arm/cortex-a7.md: New bypasses using
8276 arm_mac_accumulator_is_result.
8278 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
8280 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
8281 (cortex_a7_neon_mla): Likewise.
8282 (cortex_a7_fpfmad): New reservation.
8283 (cortex_a7_fpmacs): Use ffmas and update required units.
8284 (cortex_a7_fpmuld): Update required units and latency.
8285 (cortex_a7_fpmacd): Likewise.
8286 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
8287 (cortex_a7_neon). Likewise.
8288 (bypass) Update participating units.
8290 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
8292 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
8293 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
8295 * config/arm/vfp11.md (vfp_farith): Use ffmas.
8296 (vfp_fmul): Use ffmad.
8297 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
8298 (cortex_r4_fmacd): Use ffmad.
8299 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
8300 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
8301 (cortex_a9_fmacd): Use ffmad.
8302 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
8303 (cortex_a8_vfp_macd): Use ffmad.
8304 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
8305 (cortex_a5_fpmacd): Use ffmad.
8306 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
8307 (cortex_a15_vfp_macd): Use ffmad.
8308 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
8310 2013-01-29 Jason Merrill <jason@redhat.com>
8313 * varasm.c (default_assemble_visibility): Don't warn about
8314 visibility on artificial decls.
8316 2013-01-29 Richard Biener <rguenther@suse.de>
8318 PR tree-optimization/56113
8319 * tree-ssa-structalias.c (equiv_class_lookup): Also return
8321 (label_visit): Free duplicate bitmaps and record the leader instead.
8322 (perform_var_substitution): Adjust.
8324 2013-01-29 Richard Biener <rguenther@suse.de>
8326 PR tree-optimization/55270
8327 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
8328 the CFG, schedule loops for fixup.
8330 2013-01-29 Nick Clifton <nickc@redhat.com>
8332 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
8335 2013-01-28 Leif Ekblad <leif@rdos.net>
8337 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
8338 * config/i386/i386.h (TARGET_RDOS): New macro.
8339 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
8340 * config/i386/i386.c (ix86_option_override_internal): For 64bit
8341 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
8342 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
8343 DEFAULT_LARGE_SECTION_THRESHOLD.
8344 * config/i386/i386.md (R14_REG, R15_REG): New constants.
8345 * config/i386/rdos.h: New file.
8346 * config/i386/rdos64.h: New file.
8348 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
8351 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
8354 2013-01-28 Jakub Jelinek <jakub@redhat.com>
8356 PR rtl-optimization/56117
8357 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
8358 call cselib_lookup_from_insn on the MEM before calling
8359 add_insn_mem_dependence.
8361 2013-01-28 Richard Biener <rguenther@suse.de>
8363 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
8364 to a stmt that didn't have one.
8365 (copy_phis_for_bb): Likewise for PHI arguments.
8366 (copy_debug_stmt): Likewise for debug stmts.
8368 2013-01-28 Richard Biener <rguenther@suse.de>
8370 PR tree-optimization/56034
8371 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
8372 (partition_builtin_p): Adjust.
8373 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
8374 it is the last partition.
8375 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
8376 up the vertex for the definition.
8377 (classify_partition): Classify whether a partition is a
8378 PKIND_REDUCTION, thus has uses outside of the loop.
8379 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
8380 Merge all PKIND_REDUCTION partitions into the last partition.
8381 (tree_loop_distribution): Seed partitions from reductions as well.
8383 2013-01-28 Jakub Jelinek <jakub@redhat.com>
8385 PR tree-optimization/56125
8386 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
8387 pow(x,c) into sqrt(x) * powi(x, n/2) or
8388 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
8389 optimizing for size.
8390 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
8391 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
8394 PR tree-optimization/56094
8395 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
8396 to UNKNOWN_LOCATION while gimplifying expr.
8398 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
8401 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
8402 operand 0 in movabs insn template for -masm=intel asm alternative.
8403 (*movabs<mode>_2): Ditto for operand 1.
8405 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
8408 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
8411 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8413 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
8416 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8418 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
8419 Undef to avoid warning.
8421 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
8423 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
8424 * configure: Regenerate.
8426 2013-01-25 Jakub Jelinek <jakub@redhat.com>
8428 PR tree-optimization/56098
8429 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
8430 for stmts with volatile ops.
8431 (cond_store_replacement): Don't optimize if assign has volatile ops.
8432 (cond_if_else_store_replacement_1): Don't optimize if either
8433 then_assign or else_assign have volatile ops.
8434 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
8437 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
8439 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
8441 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
8443 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
8444 missing ':' in asm example.
8446 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
8448 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
8449 entries into lane and laneq entries.
8450 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
8451 Remove AdvSIMD scalar modes.
8452 (aarch64_sq<r>dmulh_laneq<mode>): New.
8453 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
8455 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
8456 builtin implementations to relfect changes in RTL in aarch64-simd.md.
8457 * config/aarch64/iterators.md (VCOND): New.
8460 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
8463 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
8464 Add NULL LIBNAME argument to existing definitions.
8465 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
8466 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
8467 * config/avr/avr.c (DEF_BUILTIN): Same.
8468 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
8469 (avr_expand_builtin): Expand to a vanilla call if a libgcc
8470 implementation is available (DECL_ASSEMBLER_NAME is set).
8471 (avr_fold_absfx): New static function.
8472 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
8473 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
8474 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
8476 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
8477 (abshk, absk, abslk, absllk): Provide as static inline functions.
8479 2013-01-25 Marek Polacek <polacek@redhat.com>
8481 PR tree-optimization/56035
8482 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
8484 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
8486 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
8487 (*movtf_internal_rex64): Add (!o,C) alternative
8488 (*movxf_internal_rex64): Ditto.
8489 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
8491 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
8493 * doc/invoke.texi: fix typo.
8494 * doc/objc.texi: fix typo.
8496 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
8498 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
8499 for the first two alternatives.
8501 2013-01-24 Diego Novillo <dnovillo@google.com>
8503 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
8504 (ggc-zone.o): Remove.
8505 * configure.ac: Remove option --with-gc.
8506 * configure: Re-generate.
8507 * doc/install.texi: Remove documentation for --with-gc.
8508 * gengtype.c (write_enum_defn): Remove. Update all users.
8509 (write_Types_process_field): Remove generation of gt_e_* argument.
8510 (output_type_enum): Remove. Update all users.
8511 (write_enum_defn): Remove. Update all users.
8512 (enum alloc_zone): Remove. Update all users.
8513 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
8514 * ggc-common.c (ggc_splay_alloc): Remove first argument.
8516 (struct ptr_data): Remove field TYPE. Update all users.
8517 (gt_pch_note_object): Remove argument TYPE. Update all users.
8518 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
8520 * ggc-none.c (ggc_alloc_typed_stat): Remove.
8521 (struct alloc_zone): Remove.
8522 (ggc_internal_alloc_zone_stat): Remove.
8523 (ggc_internal_cleared_alloc_zone_stat): Remove.
8524 * ggc-page.c (ggc_alloc_typed_stat): Remove.
8525 (ggc_pch_count_object): Remove last argument. Update all users.
8526 (ggc_pch_alloc_object): Remove last argument. Update all users.
8527 (struct alloc_zone): Remove.
8528 * ggc-zone.c: Remove.
8529 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
8530 (struct alloc_zone): Remove.
8531 (ggc_alloc_typed_stat): Remove.
8532 (ggc_alloc_typed): Remove.
8533 (ggc_splay_alloc): Remove first argument.
8534 (rtl_zone): Remove. Update all users.
8535 (tree_zone): Remove. Update all users.
8536 (tree_id_zone): Remove. Update all users.
8537 (ggc_internal_zone_alloc_stat): Remove. Update all users.
8538 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
8539 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
8540 * tree-ssanames.c: Remove references to zone allocator in comments.
8542 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
8544 * config/avr/avr.c (avr_out_fract): Make register numbers that
8545 might be outside of source operand signed.
8547 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
8549 * config/i386/constraints.md (Yf): New constraint.
8550 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
8551 of f constraint to conditionaly disable x87 register preferences.
8552 (*movdf_internal): Ditto.
8553 (*movsf_internal): Ditto.
8555 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
8558 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
8559 that have operands with impossible constraints.
8560 Add a FIXME for a speed-up opportunity.
8561 * lra-constraints.c (process_alt_operands): Verify that a class
8562 selected from constraints on asms is valid for the operand mode.
8563 (curr_insn_transform): Remove incorrect comment.
8565 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
8567 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
8568 TOC operand is a valid symbol ref in the constant pool.
8570 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8572 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
8574 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
8577 * config/avr/stdfix.h: New file.
8578 * t-avr (stdfix-gcc.h): New rule to build it.
8579 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
8581 2013-01-23 Kostya Serebryany <kcc@google.com>
8583 * config/darwin.h: remove dependency on
8584 CoreFoundation (asan on Mac OS).
8586 2013-01-23 Jakub Jelinek <jakub@redhat.com>
8589 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
8590 instead of cmpdi_operand for first comparison operand.
8591 Don't assert that comparison operands aren't both constants.
8593 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
8595 * doc/install.texi (Downloading the Source): Update references to
8596 downloading separate components.
8598 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
8600 * doc/extend.texi (__int128): Improve grammar.
8602 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
8605 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
8606 alternative to (o,r).
8607 (*movdi_internal_rex64): Remove (!o,n) alternative.
8608 (DImode immediate->memory splitter): Remove.
8609 (DImode immediate->memory peephole2): Remove.
8610 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
8611 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
8612 alternative to (!o,*r).
8613 (*movtf_internal_sse): New pattern.
8614 (*movxf_internal_rex64): New pattern.
8615 (*movxf_internal): Disable for TARGET_64BIT.
8616 (*movdf_internal_rex64): Remove (!o,F) alternative.
8618 2013-01-22 Jakub Jelinek <jakub@redhat.com>
8621 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
8622 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
8623 * tree-vect-loop-manip.c (find_loop_location): Also ignore
8624 stmt locations where LOCATION_LOCUS of the stmt location is
8625 UNKNOWN_LOCATION or BUILTINS_LOCATION.
8628 * config/i386/i386.md (UNSPEC_STOS): New.
8629 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
8630 *strsetqi_1): Add UNSPEC_STOS.
8632 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
8635 * doc/invoke.texi: Remove left over -Wsynth example.
8637 2013-01-21 Jakub Jelinek <jakub@redhat.com>
8639 PR tree-optimization/56051
8640 * fold-const.c (fold_binary_loc): Don't fold
8641 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
8642 a narrowing conversion, or widening conversion from signed
8645 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
8647 PR rtl-optimization/56023
8648 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
8649 dependent on debug instruction.
8651 2013-01-21 Martin Jambor <mjambor@suse.cz>
8654 * function.c (allocate_struct_function): Call
8655 invoke_set_current_function_hook earlier.
8657 2013-01-21 Jakub Jelinek <jakub@redhat.com>
8659 * reload1.c (init_reload): Only initialize reload_obstack
8660 during the first call.
8662 2013-01-21 Marek Polacek <polacek@redhat.com>
8664 * cfgloop.c (verify_loop_structure): Fix up grammar.
8666 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
8668 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
8669 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
8671 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8674 * config/arm/marvell-pj4.md: Update copyright year.
8675 Fix up use of alu to alu_reg and simple_alu_imm.
8677 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
8679 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
8681 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
8684 * lra-constraints.c (curr_insn_transform): Don't reuse original
8685 insn for secondary memory move when memory mode should be different.
8687 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8689 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
8690 atomic_storedi_1): New patterns.
8692 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
8694 btver2 pipeline descriptions.
8695 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
8697 * config/i386/i386.md (btver2_decode): New type attributes.
8698 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
8700 * config/i386/btver2.md: New file describing btver2 pipelines.
8702 2013-01-19 Andrew Pinski <apinski@cavium.com>
8704 PR tree-optimization/52631
8705 * tree-ssa-sccvn (visit_use): Before looking up the original
8706 statement, try looking up the simplified expression.
8708 2013-01-19 Anthony Green <green@moxielogic.com>
8710 * config/moxie/moxie.c (moxie_expand_prologue): Set
8711 current_function_static_stack_size.
8713 2013-01-18 Jakub Jelinek <jakub@redhat.com>
8715 PR tree-optimization/56029
8716 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
8717 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
8719 2013-01-18 Sharad Singhai <singhai@google.com>
8721 PR tree-optimization/55995
8722 * dumpfile.c (dump_loc): Print location only if available.
8723 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
8725 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
8728 * lra-constraints.c (curr_insn_transform): Reuse original insn for
8729 secondary memory move.
8730 (inherit_reload_reg): Use rclass instead of cl for
8731 check_secondary_memory_needed_p.
8733 2013-01-18 Jakub Jelinek <jakub@redhat.com>
8736 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
8737 the case where writing real complex part of target modifies op1.
8739 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
8741 * config/aarch64/aarch64-simd.md
8742 (aarch64_vcond_internal<mode>): Handle unordered cases.
8743 * config/aarch64/iterators.md (v_cmp_result): New.
8745 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
8746 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8748 * config/arm/marvell-pj4.md: New file.
8749 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
8750 * config/arm/arm.md (generic_sched): Add marvell_pj4.
8751 (generic_vfp): Likewise.
8752 * config/arm/arm-cores.def: Add marvell-pj4.
8753 * config/arm/arm-tune.md: Regenerate.
8754 * config/arm/arm-tables.opt: Regenerate.
8755 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
8756 * doc/invoke.texi: Document marvell-pj4.
8758 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
8760 * config/aarch64/arm_neon.h: Map scalar types to standard types.
8762 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
8767 * var-tracking.c (negative_power_of_two_p): New.
8768 (global_get_addr_cache, local_get_addr_cache): New.
8769 (get_addr_from_global_cache, get_addr_from_local_cache): New.
8770 (vt_canonicalize_addr): Rewrite using the above. Adjust the
8772 (vt_stack_offset_p): Remove.
8773 (vt_canon_true_dep): Always canonicalize loc's address.
8774 (clobber_overlapping_mems): Make sure we have a MEM.
8775 (local_get_addr_clear_given_value): New.
8776 (val_reset): Clear local cached entries.
8777 (compute_bb_dataflow): Create and release the local cache.
8778 Disable duplicate MEMs clobbering.
8779 (emit_notes_in_bb): Clobber MEMs likewise.
8780 (vt_emit_notes): Create and release the local cache.
8781 (vt_initialize, vt_finalize): Create and release the global
8782 cache, respectively.
8783 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
8785 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
8788 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
8789 not found in the symtab.
8791 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
8794 PR rtl-optimization/55547
8795 PR rtl-optimization/53827
8798 * alias.c (offset_overlap_p): New, factored out of...
8799 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
8800 the conservative special case for symbolic constants. Don't
8801 adjust zero sizes on alignment.
8803 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
8805 PR rtl-optimization/52573
8806 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
8807 REG_UNUSED for the same register.
8809 2013-01-17 Richard Biener <rguenther@suse.de>
8810 Marek Polacek <polacek@redhat.com>
8812 PR rtl-optimization/55833
8813 * loop-unswitch.c (unswitch_loops): Move loop verification...
8814 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
8815 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
8816 Set it to true when we're removing a loop from hierarchy tree in
8817 an irreducible region.
8818 (fix_bb_placements): Adjust caller.
8819 (fix_loop_placements): Likewise.
8821 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
8823 * config/avr/builtins.def (DEF_BUILTIN): Factor out
8824 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
8825 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
8826 Remove ID. Adjust comments.
8827 * config/avr/avr-c.c (avr_builtin_name): Remove.
8828 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
8829 * config/avr/avr.c (avr_tolower): New static function.
8830 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
8831 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
8832 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
8835 2013-01-17 Jan Hubicka <jh@suse.cz>
8837 PR tree-optimization/55273
8838 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
8840 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
8843 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
8844 store through atomic_store<mode>_1.
8845 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
8847 2013-01-17 Martin Jambor <mjambor@suse.cz>
8849 PR tree-optimizations/55264
8850 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
8851 for virtual methods.
8852 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
8853 virtual methods before inlining is over.
8854 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
8856 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
8859 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
8861 PR rtl-optimization/56005
8862 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
8863 pending reads for prefetch.
8865 2013-01-16 Ian Bolton <ian.bolton@arm.com>
8867 * config/aarch64/aarch64.md
8868 (*cstoresi_neg_uxtw): New pattern.
8869 (*cmovsi_insn_uxtw): New pattern.
8870 (*<optab>si3_uxtw): New pattern.
8871 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
8872 (*<optab>si3_insn_uxtw): New pattern.
8873 (*bswapsi2_uxtw): New pattern.
8875 2013-01-16 Richard Biener <rguenther@suse.de>
8877 * tree-inline.c (tree_function_versioning): Remove set but
8878 never used variable.
8880 2013-01-16 Richard Biener <rguenther@suse.de>
8882 PR tree-optimization/55964
8883 * tree-flow.h (rename_variables_in_loop): Remove.
8884 (rename_variables_in_bb): Likewise.
8885 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
8886 (copy_loop_before): Adjust and delete update-ssa status.
8887 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8888 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
8889 (rename_variables_in_loop): Remove.
8890 (slpeel_update_phis_for_duplicate_loop): Likewise.
8891 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
8892 use available cfg machinery instead of duplicating it.
8893 Update PHI nodes and perform poor-mans SSA update here.
8894 (slpeel_tree_peel_loop_to_edge): Adjust.
8896 2013-01-16 Richard Biener <rguenther@suse.de>
8898 PR tree-optimization/54767
8899 PR tree-optimization/53465
8900 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
8901 (vrp_visit_phi_node): For PHI arguments coming via backedges
8902 drop all symbolical range information.
8903 (execute_vrp): Compute backedges.
8905 2013-01-16 Richard Biener <rguenther@suse.de>
8907 * doc/install.texi: Update CLooG and ISL requirements to
8910 2013-01-16 Christian Bruel <christian.bruel@st.com>
8913 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
8914 (broken_move): Handle UNSPECV_SP_SWITCH_B.
8915 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
8917 2013-01-16 DJ Delorie <dj@redhat.com>
8919 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
8920 (UNSPECV_SP_SWITCH_E): New.
8921 (sp_switch_1): Change to an unspec.
8922 (sp_switch_2): Change to an unspec. Don't use post-inc when we
8925 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
8927 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
8928 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
8929 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
8930 (expand_mem_thread_fence): Ditto.
8931 (expand_mem_signal_fence): Ditto.
8932 (expand_atomic_load): Ditto.
8933 (expand_atomic_store): Ditto.
8935 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
8937 PR rtl-optimization/55547
8938 PR rtl-optimization/53827
8941 * alias.c (memrefs_conflict_p): Set sizes to negative after
8944 2013-01-15 Jakub Jelinek <jakub@redhat.com>
8947 * function.c (thread_prologue_and_epilogue_insns): Always
8948 add crtl->drap_reg to set_up_by_prologue.set, even if
8949 stack_realign_drap is false.
8951 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8953 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
8954 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
8955 *call): Fix indention.
8957 2013-01-15 Tom de Vries <tom@codesourcery.com>
8960 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
8963 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
8965 PR rtl-optimization/55153
8966 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
8968 2013-01-15 Martin Jambor <mjambor@suse.cz>
8970 PR tree-optimization/55920
8971 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
8972 accesses as grp_to_be_debug_replaced.
8974 2013-01-15 Jakub Jelinek <jakub@redhat.com>
8976 PR tree-optimization/55920
8977 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
8978 there is non-useless type conversion needed from debug rhs to lhs,
8979 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
8981 2013-01-15 Joseph Myers <joseph@codesourcery.com>
8982 Mikael Pettersson <mikpe@it.uu.se>
8985 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
8987 (ASM_OUTPUT_CASE_LABEL): Remove.
8988 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
8989 * final.c (shorten_branches): Update alignment of labels before
8990 jump tables if CASE_VECTOR_SHORTEN_MODE.
8992 2013-01-15 Richard Biener <rguenther@suse.de>
8995 * system.h: Do not include gmp.h for building host tools.
8997 2013-01-15 Richard Biener <rguenther@suse.de>
9000 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
9001 account for bitpos when computing alignment.
9003 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
9005 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
9006 (ix86_target_macros_internal): Likewise.
9008 * config/i386/i386.c (m_CORE2I7): Removed.
9009 (m_CORE_HASWELL): New macro.
9010 (m_CORE_ALL): Likewise.
9011 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
9012 (initial_ix86_arch_features): Likewise.
9013 (processor_target_table): Initializations for Core avx2.
9014 (cpu_names): New names "core-avx2".
9015 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
9016 PROCESSOR_CORE_HASWELL.
9017 (ix86_issue_rate): New case.
9018 (ia32_multipass_dfa_lookahead): Likewise.
9019 (ix86_sched_init_global): Likewise.
9021 * config/i386/i386.h (TARGET_HASWELL): New macro.
9022 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
9023 (processor_type): New PROCESSOR_HASWELL.
9025 2013-01-15 Jakub Jelinek <jakub@redhat.com>
9027 PR tree-optimization/55955
9028 * tree-vect-loop.c (vectorizable_reduction): Give up early on
9029 *SHIFT_EXPR and *ROTATE_EXPR codes.
9031 PR tree-optimization/48766
9032 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
9033 -ftrapv disable -fwrapv.
9035 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
9038 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
9039 etc. to 1 and not to __flash.
9040 Use LL suffix for __INT24_MAX__ with -mint8.
9041 Use ULL suffix for __UINT24_MAX__ with -mint8.
9043 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
9045 * config/avr/avr-arch.h
9046 (struct base_arch_s): Use typedef avr_arch_t instead.
9047 (struct arch_info_s): Use typedef avr_arch_info_t instead.
9048 (struct mcu_type_s): Use typedef avr_mcu_t instead.
9049 * config/avr/avr.c: Same.
9050 * config/avr/avr-devices.c: Same.
9051 * config/avr/driver-avr.c: Same.
9052 * config/avr/gen-avr-mmcu-texi.c: Same.
9053 * config/avr/avr-mcus.def: Adjust comment.
9055 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
9057 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
9058 * config/aarch64/iterators.md (VALLDI): New.
9060 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
9061 Andi Kleen <ak@linux.intel.com>
9064 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
9065 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
9068 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
9070 * config/avr/avr-stdint.h: Remove trailing blanks.
9071 * config/avr/avr-log.h: Same.
9072 * config/avr/avr-arch.h: Same.
9073 * config/avr/avr-devices.c: Same.
9074 * config/avr/avr-dimode.md: Same.
9075 * config/avr/predicates.md: Same.
9076 * config/avr/avr-c.c: Same. And fix typo.
9078 * config/avr/avr-protos.h: Same. And:
9079 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
9080 (init_cumulative_args): Rename to avr_init_cumulative_args.
9081 (expand_prologue): Rename to avr_expand_prologue.
9082 (expand_epilogue): Rename to avr_expand_epilogue.
9083 (adjust_insn_length): Rename to avr_adjust_insn_length.
9084 (notice_update_cc): Rename to avr_notice_update_cc.
9085 (final_prescan_insn): Rename to avr_final_prescan_insn.
9086 * config/avr/avr.c: Same.
9087 * config/avr/avr.h: Same.
9088 * config/avr/avr.md: Remove trailing blanks.
9089 (prologue): Use avr_expand_prologue.
9090 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
9092 2013-01-14 Richard Biener <rguenther@suse.de>
9094 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
9095 verify_location, collect_subblocks): New functions.
9096 (verify_gimple_in_cfg): Verify that locations only reference
9097 BLOCKs in the functions BLOCK tree.
9099 2013-01-14 Richard Biener <rguenther@suse.de>
9101 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
9103 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
9105 (insert_out_of_ssa_copy_on_edge): Likewise.
9106 (rewrite_close_phi_out_of_ssa): Likewise.
9107 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
9109 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
9110 propagated constants.
9111 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
9114 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
9116 * config/avr/avr-modes.def: Add GPL copyright notice.
9118 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
9120 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
9121 MEMMODEL_MASK to determine memory model.
9122 (atomic_store<mode>): Ditto from operands[2].
9123 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
9125 2013-01-13 Jakub Jelinek <jakub@redhat.com>
9128 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
9129 (fold_gimple_assign): Don't call unshare_expr here.
9130 (fold_ctor_reference): Call unshare_expr.
9132 2013-01-13 Terry Guo <terry.guo@arm.com>
9134 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
9135 * doc/fragments.texi: Document MULTILIB_REUSE.
9136 * gcc.c (multilib_reuse): New internal spec.
9137 (set_multilib_dir): Also search multilib from multilib_reuse.
9138 * genmultilib (tmpmultilib3): Refactor code.
9139 (tmpmultilib4): Ditto.
9140 (multilib_reuse): New multilib argument.
9142 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
9144 * Makefile.in: Update copyright.
9146 2013-01-12 Tom de Vries <tom@codesourcery.com>
9149 * calls.c (expand_call): Check if arg_nr is valid.
9151 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
9153 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
9154 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
9155 documentation. Add missing '__' in front of
9156 __builtin_ia32_packssdw256.
9158 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9161 * config/s390/s390.c (s390_preferred_reload_class): Do not return
9162 NO_REGS for larl operands.
9163 (s390_reload_larl_operand): Use s390_load_address instead of
9166 2013-01-11 Richard Biener <rguenther@suse.de>
9168 * tree-cfg.c (verify_node_sharing_1): Split out from ...
9169 (verify_node_sharing): ... here.
9170 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
9172 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
9174 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
9175 Substitute TREECHECKING.
9176 * configure: Regenerate.
9177 * Makefile.in (TREECHECKING): New.
9179 2013-01-11 Richard Guenther <rguenther@suse.de>
9181 PR tree-optimization/44061
9182 * tree-vrp.c (extract_range_basic): Compute zero as
9183 value-range for __builtin_constant_p of function parameters.
9185 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
9187 Update copyright years.
9189 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
9191 PR rtl-optimization/55672
9192 * lra-eliminations.c (mark_not_eliminable): Permit addition with
9193 const to be eliminable.
9195 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
9197 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
9198 * configure: Regenerate.
9200 2013-01-10 Richard Biener <rguenther@suse.de>
9202 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
9204 2013-01-10 Richard Biener <rguenther@suse.de>
9207 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
9208 locations for virtual PHI arguments.
9209 (rewrite_update_phi_arguments): Likewise.
9211 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
9213 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
9216 2013-01-10 Jakub Jelinek <jakub@redhat.com>
9218 PR tree-optimization/55921
9219 * tree-complex.c (expand_complex_asm): New function.
9220 (expand_complex_operations_1): Call it for GIMPLE_ASM.
9222 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9225 * config/s390/s390.c (s390_symref_operand_p)
9226 (s390_loadrelative_operand_p): Merge the two functions.
9227 (s390_check_qrst_address, print_operand_address): Add parameters
9228 to s390_loadrelative_operand_p invokation.
9229 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
9230 (s390_reload_larl_operand, s390_secondary_reload): Use
9231 s390_loadrelative_operand_p instead of s390_symref_operand_p.
9232 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
9234 2013-01-09 Mike Stump <mikestump@comcast.net>
9236 * dse.c (record_store): Remove unnecessary assert.
9238 2013-01-09 Jan Hubicka <jh@suse.cz>
9240 PR tree-optimization/55569
9241 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
9242 * cfgloop.h (scale_loop_profile): Likewise.
9244 2013-01-09 Jan Hubicka <jh@suse.cz>
9247 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
9249 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
9251 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
9254 * expr.h (maybe_emit_group_store): Declare.
9255 * expr.c (maybe_emit_group_store): New function.
9256 * builtins.c (expand_builtin_int_roundingfn): Call it.
9257 (expand_builtin_int_roundingfn_2): Likewise.
9259 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
9261 PR rtl-optimization/55829
9262 * lra-constraints.c (match_reload): Add code for absent output.
9263 (curr_insn_transform): Add code for reloads of matched inputs
9266 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
9268 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
9269 attribute of movddup insn to DF.
9270 (*vec_interleave_lowv2df): Ditto.
9271 (vec_dupv2df): Ditto.
9273 2013-01-09 Jan Hubicka <jh@suse.cz>
9275 PR tree-optimiation/55875
9276 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
9277 EVERY_ITERATION parameter.
9278 (number_of_iterations_exit): Check if exit is executed every iteration.
9279 (idx_infer_loop_bounds): Similarly here.
9280 (n_of_executions_at_most): Simplify
9281 to only test for cases where statement is dominated by the
9282 particular bound; handle correctly the "postdominance" test.
9283 (scev_probably_wraps_p): Use max loop iterations info
9284 as a global bound first.
9286 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
9287 Nick Clifton <nickc@redhat.com>
9289 * config/v850/v850.md (cbranchsf4): New pattern.
9290 (cstoresf4): New pattern.
9291 (cbranchdf4): New pattern.
9292 (cstoredf4): New pattern.
9293 (movsicc): Disallow floating point comparisons.
9294 (cmpsf_le_insn): Fix order of operators.
9295 (cmpsf_lt_insn): Likewise.
9296 (cmpsf_eq_insn): Likewise.
9297 (cmpdf_le_insn): Likewise.
9298 (cmpdf_lt_insn): Likewise.
9299 (cmpdf_eq_insn): Likewise.
9300 (cmpsf_ge_insn): Use LE comparison.
9301 (cmpdf_ge_insn): Likewise.
9302 (cmpsf_gt_insn): Use LT comparison.
9303 (cmpdf_gt_insn): Likewise.
9304 (cmpsf_ne_insn): Delete pattern.
9305 (cmpdf_ne_insn): Delete pattern.
9306 * config/v850/v850.c (v850_gen_float_compare): Use
9307 gen_cmpdf_eq_insn for NE comparison.
9308 (v850_float_z_comparison_operator)
9309 (v850_float_nz_comparison_operator): Move from here ...
9310 * config/v850/predicates.md: ... to here. Move GT and GE
9311 comparisons into v850_float_z_comparison_operator.
9312 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
9314 (v850_float_nz_comparison_operator): Likewise.
9316 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9318 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
9319 with calls to gen_insvsi/gen_insvdi.
9321 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
9323 * config/i386/i386.c (initial_ix86_tune_features): Set up
9324 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
9326 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
9327 Jakub Jelinek <jakub@redhat.com>
9329 PR tree-optimization/48189
9330 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
9331 If nitercst is 0, don't predict the exit edge.
9333 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9335 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
9336 in asm_fprintf with reg_names.
9337 (aarch64_print_operand_address): Likewise.
9338 (aarch64_return_addr): Likewise.
9339 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
9341 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9343 * config/pa/pa.h (VAL_U6_BITS_P): Define.
9344 (INT_U6_BITS): Likewise.
9345 * config/pa/predicates.md (uint6_operand): New predicate.
9346 (shift5_operand, shift6_operand): Likewise.
9347 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
9349 (lshrdi3): Use shift6_operand.
9350 (shrpsi4, shrpdi4): New insn patterns.
9351 (extzv): Delete expander.
9352 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
9353 predicates in unamed zero extract patterns. Tighten common constraint.
9354 (extv): Delete expander.
9355 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
9356 predicates in unamed sign extract patterns. Tighten common constraint.
9357 (insv): Delete expander.
9358 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
9359 predicates in unamed insert patterns. Tighten common constraint.
9360 Change uint32_operand predicate to uint6_operand predicate in unamed
9361 DImode pattern to insert constant values of type 1...1xxxx.
9363 2013-01-04 Jan Hubicka <jh@suse.cz>
9365 PR tree-optimization/55823
9366 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
9369 2013-01-08 Jakub Jelinek <jakub@redhat.com>
9370 Uros Bizjak <ubizjak@gmail.com>
9372 PR rtl-optimization/55845
9373 * df-problems.c (can_move_insns_across): Stop scanning at
9374 volatile_insn_p source instruction or give up if
9375 across_from .. across_to range contains any volatile_insn_p
9378 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
9380 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
9381 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
9383 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
9384 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
9386 2013-01-08 Jakub Jelinek <jakub@redhat.com>
9389 * asan.c (asan_clear_shadow): New function.
9390 (asan_emit_stack_protection): Use it.
9392 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
9394 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
9395 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
9396 with tab instead of space.
9398 2013-01-08 Nick Clifton <nickc@redhat.com>
9400 * config/rl78/rl78.c (rl78_expand_prologue): Always select
9401 register bank 0 at the start of an interrupt handler.
9402 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
9405 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
9407 * config/aarch64/aarch64-simd.md
9408 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
9409 (aarch64_simd_bsl): Likewise.
9410 (aarch64_vcond_internal<mode>): Likewise.
9411 (vcond<mode><mode>): Likewise.
9412 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
9413 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
9415 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
9417 * config/aarch64/aarch64-builtins.c
9418 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
9420 2013-01-08 Martin Jambor <mjambor@suse.cz>
9423 * tree-sra.c (analyze_access_subtree): Return true also after
9424 potentially creating a debug-only replacement.
9426 2013-01-08 Jakub Jelinek <jakub@redhat.com>
9429 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
9431 PR tree-optimization/54120
9432 * tree-vrp.c (range_fits_type_p): Don't allow
9433 src_precision < precision from signed vr to unsigned_p
9434 if vr->min or vr->max is negative.
9435 (simplify_float_conversion_using_ranges): Test can_float_p
9436 against CODE_FOR_nothing.
9438 2013-01-08 Jakub Jelinek <jakub@redhat.com>
9439 Richard Biener <rguenther@suse.de>
9442 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
9443 types instead of just INTEGER_TYPE types.
9445 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
9447 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
9450 2013-01-07 Steve Ellcey <sellcey@mips.com>
9453 * config/mips/mips.opt: Change mad to mmad to match documentation.
9455 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
9458 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
9461 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
9464 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
9465 (avr_addrspace_t): Add .section_name field.
9466 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
9468 (avr_addrspace): Same. Initialize .section_name. Remove last
9469 NULL entry. Put __memx into .progmemx.data.
9470 (progmem_section_prefix): Remove.
9471 (avr_asm_init_sections): No need to initialize progmem_section.
9472 (avr_asm_named_section): Use avr_addrspace[].section_name to get
9473 section name prefix.
9474 (avr_asm_select_section): Ditto. And use get_unnamed_section to
9475 retrieve the progmem section.
9476 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
9477 boundary to run over avr_addrspace[].
9478 (avr_register_target_pragmas): Ditto.
9480 2013-01-06 Jakub Jelinek <jakub@redhat.com>
9482 * varasm.c (output_constant_def_contents): For asan_protect_global
9483 protected strings, adjust DECL_ALIGN if needed, before testing for
9485 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
9486 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
9488 (output_object_block): For asan protected decls, emit asan padding
9489 after their contents.
9490 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
9491 (asan_finish_file): Test it here instead.
9493 2013-01-07 Nick Clifton <nickc@redhat.com>
9494 Matthias Klose <doko@debian.org>
9495 Doug Kwan <dougkwan@google.com>
9496 H.J. Lu <hongjiu.lu@intel.com>
9499 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
9501 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
9503 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
9505 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
9507 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
9509 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
9512 * doc/install.texi (Cross-Compiler-Specific Options): Document
9515 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
9517 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
9518 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
9519 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
9520 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
9521 vqmovun_high_s64): Fix source operand number and update copyright.
9523 2013-01-07 Richard Biener <rguenther@suse.de>
9526 * gimple.h (gimple_call_builtin_p): New overload.
9527 * gimple.c (validate_call): New function.
9528 (gimple_call_builtin_p): Likewise.
9529 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9530 Use gimple_call_builtin_p.
9531 (find_func_clobbers): Likewise.
9532 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
9533 (strlen_optimize_stmt): Likewise.
9535 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
9537 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
9538 (vld1q_dup_*): Likewise.
9540 (vld1q_*): Likewise.
9541 (vld1_lane_*): Likewise.
9542 (vld1q_lane_*): Likewise.
9544 2013-01-07 Richard Biener <rguenther@suse.de>
9546 * lto-streamer.h (LTO_minor_version): Bump to 2.
9548 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
9550 * config/aarch64/aarch64-protos.h
9551 (aarch64_const_double_zero_rtx_p): Rename to...
9552 (aarch64_float_const_zero_rtx_p): ...this.
9553 (aarch64_float_const_representable_p): New.
9554 (aarch64_output_simd_mov_immediate): Likewise.
9555 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
9556 move immediate case.
9557 * config/aarch64/aarch64.c
9558 (aarch64_const_double_zero_rtx_p): Rename to...
9559 (aarch64_float_const_zero_rtx_p): ...this.
9560 (aarch64_print_operand): Allow printing of new constants.
9561 (aarch64_valid_floating_const): New.
9562 (aarch64_legitimate_constant_p): Check for valid floating-point
9564 (aarch64_simd_valid_immediate): Likewise.
9565 (aarch64_vect_float_const_representable_p): New.
9566 (aarch64_float_const_representable_p): Likewise.
9567 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
9568 (aarch64_output_simd_mov_immediate): New.
9569 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
9570 (*movdf_aarch64): Likewise.
9571 * config/aarch64/constraints.md (Ufc): New.
9572 (Y): call aarch64_float_const_zero_rtx.
9573 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
9575 2013-01-07 Richard Biener <rguenther@suse.de>
9577 PR tree-optimization/55888
9578 PR tree-optimization/55862
9579 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
9580 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
9581 not if it is contained therein.
9583 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
9585 * config/avr/t-avr: Typo.
9587 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
9590 * config/avr/t-avr: Don't automatically rebuild
9591 $(srcdir)/config/avr/t-multilib
9592 $(srcdir)/config/avr/avr-tables.opt
9593 $(srcdir)/doc/avr-mmcu.texi
9594 (avr-mcus): New phony target to build them on request.
9595 (s-avr-mlib, s-avr-mmcu-texi): Remove.
9596 * avr/avr-mcus.def: Adjust comments.
9598 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
9600 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
9602 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
9604 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
9606 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
9608 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
9610 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
9612 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
9613 to generate profiling.
9614 * config/rs6000/aix64.h (LIB_SPEC): Same.
9616 2013-01-04 Andrew Pinski <apinski@cavium.com>
9618 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
9620 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
9622 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
9624 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
9626 (ix86_expand_move): Ditto.
9627 (ix86_zero_extend_to_Pmode): Ditto.
9628 (ix86_expand_call): Ditto.
9629 (ix86_expand_special_args_builtin): Ditto.
9630 (ix86_expand_builtin): Ditto.
9632 2013-01-04 Richard Biener <rguenther@suse.de>
9634 PR tree-optimization/55862
9635 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
9636 translating them through PHI nodes.
9638 2013-01-04 Martin Jambor <mjambor@suse.cz>
9640 PR tree-optimization/55755
9641 * tree-sra.c (sra_modify_assign): Do not check that an access has no
9642 children when trying to avoid producing a VIEW_CONVERT_EXPR.
9644 2013-01-04 Marek Polacek <polacek@redhat.com>
9647 * opts.c (default_options_optimization): Clarify error message.
9649 2013-01-04 Richard Biener <rguenther@suse.de>
9652 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
9655 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9658 * config/pa/pa.md (movsi): Revert previous change.
9659 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
9662 2013-01-03 Richard Henderson <rth@redhat.com>
9664 * config/i386/i386.c (ix86_expand_move): Always assign to op1
9665 after eliminating TLS symbols.
9667 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
9670 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
9671 * graphite-poly.c (debug_gmp_value): Likewise.
9673 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
9676 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
9677 selected code model, define __code_mode_small__, __code_model_medium__,
9678 __code_model_large__, __code_model_32__ or __code_model_kernel__.
9679 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
9680 xchg temporary register with %k. Declare temporary register as
9682 [__x86_64__]: For medium and large code models, preserve %rbx register.
9684 2013-01-03 Richard Biener <rguenther@suse.de>
9686 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
9687 (dump_subscript): Adjust.
9688 (finalize_ddr_dependent): Do not dump redundant info.
9689 (analyze_siv_subscript): Adjust.
9690 (subscript_dependence_tester): Likewise.
9691 (compute_affine_dependence): Likewise.
9693 2013-01-03 Richard Biener <rguenther@suse.de>
9696 2013-01-03 Richard Biener <rguenther@suse.de>
9698 PR tree-optimization/55857
9699 * tree-vect-stmts.c (vectorizable_load): Do not setup
9700 re-alignment for invariant loads.
9702 2013-01-02 Richard Biener <rguenther@suse.de>
9704 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
9705 invariant load do not generate a vector load from the scalar location.
9707 2013-01-03 Richard Biener <rguenther@suse.de>
9709 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
9710 for not vectorizing.
9711 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
9712 not build INDIRECT_REFs, call get_name once only.
9713 (vect_create_data_ref_ptr): Likewise. Dump base object kind
9714 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
9716 2013-01-03 Richard Biener <rguenther@suse.de>
9718 PR tree-optimization/55857
9719 * tree-vect-stmts.c (vectorizable_load): Do not setup
9720 re-alignment for invariant loads.
9722 2013-01-03 Richard Biener <rguenther@suse.de>
9725 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
9726 prefer a built-in decl.
9728 2013-01-03 Jakub Jelinek <jakub@redhat.com>
9730 * gcc.c (process_command): Update copyright notice dates.
9731 * gcov.c (print_version): Likewise.
9732 * gcov-dump.c (print_version): Likewise.
9734 PR rtl-optimization/55838
9735 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
9736 iv0.step, iv1.step and step.
9738 2013-01-03 Jakub Jelinek <jakub@redhat.com>
9739 Marc Glisse <marc.glisse@inria.fr>
9741 PR tree-optimization/55832
9742 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
9743 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
9744 integer_{one,zero}_node.
9746 2013-01-03 Jakub Jelinek <jakub@redhat.com>
9749 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
9750 * var-tracking.c (reverse_op): Don't add reverse ops to
9751 VALUEs that have already
9752 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
9754 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
9756 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
9758 2013-01-02 Teresa Johnson <tejohnson@google.com>
9760 * dumpfile.c (dump_loc): Print filename with location.
9761 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
9762 new location_t parameter to emit complete unroll message with
9764 (canonicalize_loop_induction_variables): Compute loops location
9765 and pass to try_unroll_loop_completely.
9766 * loop-unroll.c (report_unroll_peel): New function.
9767 (peel_loops_completely): Use new dump format with location
9768 for main dumpfile message, and invoke report_unroll_peel on success.
9769 (decide_unrolling_and_peeling): Ditto.
9770 (decide_peel_once_rolling): Remove old dumpfile message subsumed
9771 by report_unroll_peel.
9772 (decide_peel_completely): Ditto.
9773 (decide_unroll_constant_iterations): Ditto.
9774 (decide_unroll_runtime_iterations): Ditto.
9775 (decide_peel_simple): Ditto.
9776 (decide_unroll_stupid): Ditto.
9777 * cfgloop.c (get_loop_location): New function.
9778 * cfgloop.h (get_loop_location): Declare.
9780 2013-01-02 Sriraman Tallam <tmsriram@google.com>
9782 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
9785 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9788 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
9789 BLKmode objects when EXPAND_MEMORY is specified.
9791 2013-01-02 Sriraman Tallam <tmsriram@google.com>
9793 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
9795 (fold_builtin_cpu): Do not share cpu model decls across statements.
9797 2013-01-02 Jason Merrill <jason@redhat.com>
9800 * tree.c (build_array_type_1): Revert earlier change.
9802 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
9804 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
9806 * config/aarch64/aarch64-tune.md: Re-generate.
9808 2013-01-02 Richard Biener <rguenther@suse.de>
9810 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
9811 invariant load do not generate a vector load from the scalar location.
9813 2013-01-02 Richard Biener <rguenther@suse.de>
9816 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
9817 * configure: Regenerate.
9819 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9821 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
9822 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
9823 (expand_builtin_int_roundingfn_2): Keep the original target around
9824 for the fallback case.
9826 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9828 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
9829 to be clear for sign changes.
9831 2013-01-01 Jan Hubicka <jh@suse.cz>
9833 * ipa-inline-analysis.c: Fix formatting.
9835 2013-01-01 Jakub Jelinek <jakub@redhat.com>
9837 PR tree-optimization/55831
9838 * tree-vect-loop.c (get_initial_def_for_induction): Use
9839 gsi_after_labels instead of gsi_start_bb.
9841 Copyright (C) 2013 Free Software Foundation, Inc.
9843 Copying and distribution of this file, with or without modification,
9844 are permitted in any medium without royalty provided the copyright
9845 notice and this notice are preserved.