1 2013-05-16 Richard Biener <rguenther@suse.de>
3 * passes.c (init_optimization_passes): Move pass_parallelize_loops
4 earlier, after GRAPHITE transforms and IV canonicalization.
6 2013-05-16 Jakub Jelinek <jakub@redhat.com>
8 * omp-low.c (extract_omp_for_data): For collapsed loops,
9 if at least one of the loops is known at compile time to
10 iterate zero times, set count to 0.
11 (expand_omp_regimplify_p): New function.
12 (expand_omp_for_generic): For collapsed loops, if at least
13 one of the loops isn't known to iterate at least once,
14 add runtime check with setting count to 0.
15 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
16 For unsigned types if it isn't known at compile time that
17 the loop will iterate at least once, add runtime check to bypass
18 the whole loop if initial condition isn't true.
20 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
22 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
24 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
27 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
28 transformations to avoid an infinite loop.
30 2013-05-16 Marek Polacek <polacek@redhat.com>
32 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
34 2013-05-15 Leif Ekblad <leif@rdos.net>
36 * config/i386/i386.c (ix86_decompose_address): Use
37 DEFAULT_TLS_SEG_REG to access TLS segment register.
38 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
39 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
40 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
42 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
45 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
46 sibling calls to functions that would normally be lazily bound,
47 unless $gp is call-clobbered.
49 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
51 * config/i386/i386.c (iy86_option_override_internal): Update
52 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
53 PTA_POPCNT to corei7 entry and remove PTA_SSE from athlon-4 entry.
54 Do not enable SSE prefetch on non-SSE 3dNow! targets. Enable
55 TARGET_PRFCHW for TARGET_3DNOW targets.
56 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
58 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
60 2013-05-15 Andreas Schwab <schwab@suse.de>
62 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
63 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
66 2013-05-15 Teresa Johnson <tejohnson@google.com>
68 * loop-unroll.c (report_unroll_peel): Check decision before
69 emitting unroll/peel message.
71 2013-05-15 Teresa Johnson <tejohnson@google.com>
73 * function.h (has_bb_partition): New rtl_data flag.
74 (bb_reorder_complete): Ditto.
75 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
76 instead of flag_reorder_blocks_and_partition.
77 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
78 with some enhancements.
79 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
80 * bb-reorder.c (connect_traces): Check for has_bb_partition
81 instead of flag_reorder_blocks_and_partition.
82 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
83 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
84 verify_hot_cold_block_grouping.
85 (partition_hot_cold_basic_blocks): Set has_bb_partition.
87 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
90 * config/arm/predicates.md (call_insn_operand): New predicate.
91 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
92 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
93 if insn is not a tail call.
94 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
96 * config/arm/arm.h (enum reg_class): New caller save register class.
97 (REG_CLASS_NAMES): Likewise.
98 (REG_CLASS_CONTENTS): Likewise.
99 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
102 2013-05-15 Richard Biener <rguenther@suse.de>
104 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
105 of MSG_OPTIMIZED_LOCATIONS.
106 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
107 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
109 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
110 of MSG_OPTIMIZED_LOCATIONS.
111 (execute_vect_slp): Likewise.
112 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
113 (vect_create_cond_for_alias_checks): Likewise.
114 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
115 (vect_recog_widen_mult_pattern): Likewise.
116 (vect_recog_widen_sum_pattern): Likewise.
117 (vect_recog_over_widening_pattern): Likewise.
118 (vect_recog_widen_shift_pattern): Likewise.
119 (vect_recog_vector_vector_shift_pattern): Likewise.
120 (vect_recog_divmod_pattern): Likewise.
121 (vect_recog_mixed_size_cond_pattern): Likewise.
122 (vect_recog_bool_pattern): Likewise.
123 (vect_pattern_recog_1): Likewise.
125 2013-05-15 Martin Jambor <mjambor@suse.cz>
127 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
128 non-functions to builtin_unreachable.
129 * ipa-inline-transform.c (inline_call): Do not assert estimates were
130 correct when new direct edges were discovered.
132 2013-05-15 Martin Jambor <mjambor@suse.cz>
134 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
135 header, print symbol order instead of node uid, print more information
136 about indirect edge targets.
137 (ipa_make_edge_direct_to_target): Print symbol order instead of node
139 (ipa_make_edge_direct_to_target): Likewise.
140 (remove_described_reference): Likewise.
141 (propagate_controlled_uses): Likewise.
142 (ipa_print_node_params): Also print symbol order.
143 (ipcp_transform_function): Print symbol order instead of node uids.
144 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
145 (cgraph_get_create_real_symbol_node): Likewise.
146 * ipa-cp.c (print_lattice): Likewise.
147 (print_all_lattices): Likewise.
148 (determine_versionability): Likewise.
149 (initialize_node_lattices): Likewise.
150 (estimate_local_effects): Likewise.
151 (update_profiling_info): Likewise.
152 (create_specialized_node): Likewise.
153 (perhaps_add_new_callers): Likewise.
154 (decide_about_value): Likewise.
155 (decide_whether_version_node): Likewise.
156 (identify_dead_nodes): Likewise.
157 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
158 (dump_inline_summary): Likewise.
159 (estimate_node_size_and_time): Likewise.
160 (inline_analyze_function): Likewise.
161 * ipa-inline.c (report_inline_failed_reason): Likewise.
162 (want_early_inline_function_p): Likewise.
163 (edge_badness): Likewise.
164 (update_edge_key): Likewise.
165 (inline_small_functions): Likewise. Add dumping of order to two other
167 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
168 instead of node uids.
169 (propagate_pure_const): Likewise.
170 (propagate_pure_const): Likewise.
171 * ipa-utils.c (dump_cgraph_node_set): Likewise.
172 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
173 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
175 * tree-pretty-print.c (dump_function_header): Likewise.
176 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
177 Print symbol order instead of node uids.
179 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
181 * config/s390/s390.c (s390_register_move_cost): Don't impose the
182 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
184 2013-05-15 Richard Biener <rguenther@suse.de>
186 PR tree-optimization/57275
187 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
188 return value for fail to do runtime alias checks for gather loads.
190 2013-05-15 Jan Hubicka <jh@suse.cz>
194 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
195 weakrefs are not external.
196 (lto_symtab_merge_decls): Fix thinko when dealing with
197 non-lto_symtab decls.
198 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
199 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
200 * varpool.c (dump_varpool_node): Dump more flags.
202 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
204 * config/i386/i386.c (processor_alias_table): Add instruction
205 FSGSBASE for AMD bdver3 architecture.
207 2013-05-14 Jakub Jelinek <jakub@redhat.com>
209 * tree.c (warn_deprecated_use): Print file:line using locus color.
210 * diagnostic.c (diagnostic_report_current_module): Print file:line
211 and file:line:column using locus color.
213 2013-05-14 Mike Stump <mikestump@comcast.net>
215 * gdbinit.in: Add __null.
217 2013-05-14 Mike Stump <mikestump@comcast.net>
219 * recog.h: Rename struct recog_data to Recog_data.
221 * reload.c (can_reload_into): Likewise.
222 * config/picochip/picochip.c: Likewise.
224 2013-05-14 Mike Stump <mikestump@comcast.net>
226 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
228 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
230 * resource.h (struct resources): Remove unch_memory member.
231 (CLEAR_RESOURCE): Don't clear unch_memory.
232 * resource.c (mark_referenced_resources): Don't set it.
233 (mark_set_resources): Likewise.
234 (mark_target_live_regs): Don't clear it.
235 (init_resource_info): Likewise.
236 * reorg.c (resource_conflicts_p): Don't compare it.
237 (redundant_insn): Don't set it.
239 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
241 * emit-rtl.c (next_label): Remove unused function.
242 (skip_consecutive_labels, link_cc0_insns): Move to ...
243 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
244 only place where these functions are used, and make them static.
246 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
248 * fold-const.c (fold_negate_expr): Handle vectors.
249 (fold_truth_not_expr): Make it static.
250 (fold_invert_truthvalue): New static function.
251 (invert_truthvalue_loc): Handle vectors. Do not call
252 fold_truth_not_expr directly.
253 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
254 <TRUTH_NOT_EXPR>: Do not cast to boolean.
255 (fold_comparison): Handle vector constants.
256 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
257 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
258 * tree.h (fold_truth_not_expr): Remove declaration.
260 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
262 * config/aarch64/aarch64-simd.md
263 (aarch64_vcond_internal<mode>): Rename to...
264 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
265 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
266 float modes. Clarify all iterator modes.
267 (vcond<mode><mode>): Use new name for vcond expanders.
268 (vcond<v_cmp_result><mode>): Likewise.
269 (vcondu<mode><mode>: Likewise.
270 * config/aarch64/iterators.md (VDQF_COND): New.
272 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
275 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
276 variable for the shift amount. Check that we shift by non-negative
279 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
282 * config/arm/arm.h (EPILOGUE_USES): Only return true
283 for LR_REGNUM after epilogue_completed.
285 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
287 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
290 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
293 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
294 and Solaris 11+/x86 with gld.
295 * configure: Regenerate.
297 2013-05-14 Jakub Jelinek <jakub@redhat.com>
299 * expmed.c (expand_shift_1): Canonicalize rotates by
300 constant bitsize / 2 to bitsize - 1.
301 * simplify-rt.x (simplify_binary_operation_1) <case ROTATE,
302 case ROTATERT>: Likewise.
305 2013-05-10 Jakub Jelinek <jakub@redhat.com>
307 * config/i386/i386.md (rotateinv): New code attr.
308 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
309 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
312 2013-05-14 Richard Biener <rguenther@suse.de>
315 * tree-eh.c (sink_clobbers): Give up for successors with
316 multiple predecessors and no virtual uses.
318 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
320 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
321 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
323 2013-05-14 Jakub Jelinek <jakub@redhat.com>
326 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
327 the case when both op0 and op1 have VOIDmode.
329 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
331 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
332 in multiply-accumulate mode.
334 2013-05-13 Guozhi Wei <carrot@google.com>
336 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
338 2013-05-13 Kai Tietz <ktietz@redhat.com>
341 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
342 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
343 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
344 * config/i386/i386.c (ix86_option_override_internal): Likewise.
345 (ix86_expand_prologue): Likewise.
346 (ix86_expand_split_stack_prologue): Likewise.
347 (legitimate_pic_address_disp_p): Likewise.
348 (legitimize_pic_address): Likewise.
349 (legitimize_tls_address): Likewise.
350 (legitimize_pe_coff_symbol): Likewise.
351 (output_pic_addr_const): Likewise.
352 (construct_plt_address): Likewise.
353 (ix86_expand_call): Likewise.
354 (x86_output_mi_thunk): Likewise.
355 (x86_function_profiler): Likewise.
357 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
359 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
360 similar switch cases.
361 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
362 (aarch64_simd_mov_to_<mode>low): Delete.
363 (aarch64_simd_mov_to_<mode>high): Delete.
364 (move_lo_quad_<mode>): Add w<-r alternative.
365 (aarch64_simd_move_hi_quad_<mode>): Likewise.
366 (aarch64_simd_mov_from_*): Update type attribute.
367 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
370 2013-05-13 Jan Hubicka <jh@suse.cz>
372 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
373 * config/i386/i386.c (ix86_compute_frame_layout,
374 ix86_expand_epilogue, emit_i387_cw_initialization,
375 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
376 ix86_local_alignment): Fix use of size/speed predicates.
378 2013-05-13 Jakub Jelinek <jakub@redhat.com>
380 PR tree-optimization/45216
381 PR tree-optimization/57157
382 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
383 the (-Y) & (B - 1) variant if OP is |.
384 * expmed.c (expand_shift_1): For rotations by const0_rtx just
385 return shifted. Use (-op1) & (prec - 1) as other_amount
386 instead of prec - op1.
388 2013-05-13 Martin Jambor <mjambor@suse.cz>
391 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
392 (ipa_constant_data): New type.
393 (ipa_jump_func): Use ipa_constant_data to hold information about
394 constant jump functions.
395 (ipa_get_jf_constant): Adjust to jump function type changes.
396 (ipa_get_jf_constant_rdesc): New function.
397 (ipa_param_descriptor): New field controlled_uses.
398 (ipa_get_controlled_uses): New function.
399 (ipa_set_controlled_uses): Likewise.
400 * ipa-ref.h (ipa_find_reference): Declare.
401 * ipa-prop.c (ipa_cst_ref_desc): New type.
402 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
404 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
405 New parameter cs. Adjust all callers.
406 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
407 (remove_described_reference): New function.
408 (jfunc_rdesc_usable): Likewise.
409 (try_make_edge_direct_simple_call): Decrement controlled use count,
410 attempt to remove reference if it hits zero.
411 (combine_controlled_uses_counters): New function.
412 (propagate_controlled_uses): Likewise.
413 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
414 (ipa_edge_duplication_hook): Duplicate reference descriptions.
415 (ipa_print_node_params): Print described use counter.
416 (ipa_write_jump_function): Adjust to jump function type changes.
417 (ipa_read_jump_function): New parameter CS, pass it to
418 ipa_set_jf_constant. Adjust caller.
419 (ipa_write_node_info): Stream controlled use count
420 (ipa_read_node_info): Likewise.
421 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
423 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
424 count. Remove cloning-added reference if it reaches zero.
425 * ipa-ref.c (ipa_find_reference): New function.
427 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
429 * config/i386/i386.c (processor_target_table): Modified default
430 alignment values for AMD BD and BT architectures.
432 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
434 * tree-vect-generic.c (uniform_vector_p): Move ...
435 * tree.c (uniform_vector_p): ... here.
436 * tree.h (uniform_vector_p): Declare it.
437 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
440 2013-05-13 Jakub Jelinek <jakub@redhat.com>
442 PR tree-optimization/57230
443 * tree-ssa-strlen.c (handle_char_store): Record length for
444 array store from STRING_CST.
446 PR tree-optimization/57230
447 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
450 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
452 * config/epiphany/epiphany.c (epiphany_init): Check size of
453 NUM_MODES_FOR_MODE_SWITCHING.
454 (epiphany_expand_prologue):
455 Remove CONFIG_REGNUM initial value handling code.
456 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
457 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
458 (emit_set_fp_mode, epiphany_mode_after): Likewise.
459 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
460 Don't return 1 for FP_MODE_NONE.
461 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
462 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
463 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
464 * config/epiphany/epiphany.md (save_config): New pattern.
466 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
468 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
470 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
472 * config/i386/i386.md (memory): Handle sseishft1.
473 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
474 (*vec_extractv2di_1): Ditto.
476 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
478 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
481 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
483 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
484 Add mthumb/march=armv7-a multilib.
485 Add mthumb/march=armv7-r multilib.
486 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
488 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
490 * config/v850/t-rtems: Add more multilibs.
492 2013-05-10 Richard Biener <rguenther@suse.de>
494 PR tree-optimization/57214
495 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
496 not propagate from SSA names that occur in abnormal PHI nodes.
498 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
500 * stor-layout.c (element_precision): New function.
501 * machmode.h (element_precision): Declare it.
502 * tree.c (build_minus_one_cst): New function.
503 (element_precision): Likewise.
504 * tree.h (build_minus_one_cst): Declare new function.
505 (element_precision): Likewise.
506 * fold-const.c (operand_equal_p): Use element_precision.
507 (fold_binary_loc): Handle vector types.
508 * convert.c (convert_to_integer): Use element_precision.
509 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
512 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
514 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
515 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
516 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
517 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
518 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
519 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
520 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
521 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
522 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
523 (Uuw8): New constraints.
524 (Usb4): Move into alphabetical order.
525 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
526 (sd8_operand, ub8_operand, uw8_operand): New predicates.
527 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
528 previously unnamed patterns.
529 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
530 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
531 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
532 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
533 of set_attr_alternative/if_then_else. Use extended_mips16 instead
536 2013-05-10 Jakub Jelinek <jakub@redhat.com>
538 * config/i386/i386.md (rotateinv): New code attr.
539 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
540 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
543 PR tree-optimization/45216
544 PR tree-optimization/57157
545 * tree-ssa-forwprop.c (simplify_rotate): New function.
546 (ssa_forward_propagate_and_combine): Call it.
548 2013-05-10 Richard Biener <rguenther@suse.de>
550 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
551 disable peeling when we version for aliasing.
552 (vector_alignment_reachable_p): Honor explicit user alignment.
553 (vect_supportable_dr_alignment): Likewise.
554 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
555 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
556 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
557 then peeling to arrange for the cost-model check to come first.
559 2013-05-10 Alan Modra <amodra@gmail.com>
561 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
562 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
563 * configure: Regenerate.
565 2013-05-10 Alan Modra <amodra@gmail.com>
568 * varasm.c (default_elf_select_section): Move !DECL_P check..
569 (get_named_section): ..to here before calling get_section_name.
571 (default_section_type_flags): Add DECL_P check.
572 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
573 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
575 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
577 * config/epiphany/epiphany.c (epiphany_expand_prologue):
578 When using gen_stack_adjust_str with a register offset, add a
579 REG_FRAME_RELATED_EXPR note.
581 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
583 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
584 (*vec_extractv4si_zext_mem): Ditto.
585 (*vec_extractv2di): Add 0->x and x->x alternatives.
586 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
587 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
589 2013-05-09 Jason Merrill <jason@redhat.com>
591 N3639 C++1y VLA support
592 * gimplify.c (gimplify_vla_decl): Don't touch an existing
595 * tree.c (build_constructor_va): New.
596 * tree.h: Declare it.
598 2013-05-09 Martin Jambor <mjambor@suse.cz>
601 * gimple-fold.c (canonicalize_constructor_val): Call
602 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
604 2013-05-09 Jan Hubicka <jh@suse.cz>
605 Richard Biener <rguenther@suse.de>
608 * symtab.c (symtab_make_decl_local): Do not add private names.
610 2013-05-09 Jan Hubicka <jh@suse.cz>
613 * symtab.c (insert_to_assembler_name_hash): Handle clones.
614 (unlink_from_assembler_name_hash): Likewise.
615 (symtab_prevail_in_asm_name_hash, symtab_register_node,
616 symtab_unregister_node, symtab_initialize_asm_name_hash,
617 change_decl_assembler_name): Update.
619 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
621 * config/aarch64/aarch64.md: New movtf split.
622 (*movtf_aarch64): Update.
623 (aarch64_movdi_tilow): Handle TF modes and rename to
624 aarch64_movdi_<mode>low.
625 (aarch64_movdi_tihigh): Handle TF modes and rename to
626 aarch64_movdi_<mode>high
627 (aarch64_movtihigh_di): Handle TF modes and rename to
628 aarch64_mov<mode>high_di
629 (aarch64_movtilow_di): Handle TF modes and rename to
630 aarch64_mov<mode>low_di
631 (aarch64_movtilow_tilow): Remove spurious whitespace.
632 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
634 (aarch64_print_operand): Update.
636 2013-05-09 Alan Modra <amodra@gmail.com>
638 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
640 * configure: Regenerate.
642 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
644 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
645 splitter preparation statements.
646 * config/i386/sse.md (*vec_extract* splitters): Ditto.
647 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
650 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
652 * gimple-ssa-strength-reduction.c (count_candidates): Change
654 (analyze_candidates_and_replace): Change type of length to int.
656 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
658 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
659 (*vec_extract<mode>): Use VI12_128 mode iterator.
660 (*vec_extract<mode>_mem): Ditto.
661 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
664 2013-05-08 Diego Novillo <dnovillo@google.com>
669 2012-08-17 Diego Novillo <dnovillo@google.com>
672 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
673 * config.in: Regenerate.
674 * configure: Regenerate.
675 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
677 2013-05-08 Jan Hubicka <jh@suse.cz>
680 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
681 * cgraph.h (symtab_node_base): Add unique_name.
682 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
683 input_overwrite_node, input_varpool_node): Stream unique_name.
684 * cgraphclones.c (cgraph_create_virtual_clone,
685 cgraph_function_versioning): Set unique_name.
686 * ipa.c (function_and_variable_visibility): Set unique_name.
688 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
690 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
691 (alloc_cand_and_find_basis): Restrict conditional candidate
692 processing to CAND_MULTs.
694 2013-05-08 Jan Hubicka <jh@suse.cz>
697 lto-symtab.c (lto_symtab_symbol_p): New function.
698 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
699 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
700 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
703 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
705 PR tree-optimization/57200
706 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
707 Only call inform if the preceding warning_at returns true.
709 2013-05-07 Han Shen <shenhan@google.com>
711 * cfgexpand.c (record_or_union_type_has_array_p): New function.
712 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
713 * common.opt (fstack-protector-strong): New option.
714 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
715 * doc/invoke.texi (Optimization Options): Document
716 "-fstack-protector-strong".
717 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
719 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
721 * config/mips/mips.c (mips_machine_reorg2): Return 0.
723 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
725 * ira.c (update_equiv_regs): Add insn having equiv memory even if
726 it is not lhs of the insn.
727 (setup_reg_equiv): Remove insn having equiv memory which it is not
729 * lra-constraints.c (process_address): Try to improve generation
730 code for address base + disp.
731 (lra_constraints): Make correct the code for checking insn setting
732 up backward equivalence. Remove insn only if it is in the init
734 * lra-eliminations.c (update_reg_eliminate): Change return value.
735 (lra_eliminate): Use the result.
737 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
739 * config/i386/sse.md (ssescalarnummask): New mode attribute.
740 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
741 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
742 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
743 register target operands.
744 (*vec_extractv8hi_sse2): New pattern.
745 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
746 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
747 (*vec_extract<mode>_mem): New insn and split pattern.
749 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
751 * config/arm/arm.c (arm_asan_shadow_offset): New function.
752 (TARGET_ASAN_SHADOW_OFFSET): Define.
753 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
754 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
756 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
758 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
759 (incr_vec_index): Return -1 if increment not found.
760 (create_add_on_incoming_edge): Assert if increment not found.
761 (record_increment): Limit number of increments recorded.
762 (all_phi_incrs_profitable): Return false if an increment not found.
763 (replace_profitable_candidates): Don't process increments that were
765 (analyze_candidates_and_replace): Limit size of incr_vec.
767 2013-05-07 Richard Biener <rguenther@suse.de>
769 * calls.c (special_function_p): setjmp-like functions are leaf.
770 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
771 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
773 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
775 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
776 (aarch64_simd_mov<mode>): New expander.
777 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
778 (aarch64_simd_mov_to_<mode>high): Likewise.
779 (aarch64_simd_mov_from_<mode>low): Likewise.
780 (aarch64_simd_mov_from_<mode>high): Likewise.
781 (aarch64_dup_lane<mode>): Update.
782 (aarch64_dup_lanedi): New instruction pattern.
783 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
784 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
786 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
788 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
789 (replace_mult_candidate): Remove unnecessary argument; remove
790 unnecessary parameter from call to introduce_cast_before_cand.
791 (replace_unconditional_candidate): Remove unnecessary parameter
792 from call to replace_mult_candidate.
793 (replace_conditional_candidate): Likewise.
794 (insert_initializers): Use make_temp_ssa_name.
795 (introduce_cast_before_cand): Remove unnecessary argument; use
797 (replace_one_candidate): Remove unnecessary argument; remove
798 unnecessary parameter from calls to introduce_cast_before_cand.
799 (replace_profitable_candidates): Remove unnecessary parameters
800 from calls to replace_one_candidate.
802 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
804 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
805 phi def as possibly hiding a basis for a CAND_ADD whose operands
806 have been commuted in the analysis.
807 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
809 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
811 * config/aarch64/aarch64.md
812 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
813 shift value between 0-4.
815 2013-05-07 Richard Biener <rguenther@suse.de>
817 * double-int.h (rshift): New overload.
818 * double-int.c (rshift): New function.
819 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
820 (create_reference_ops_from_ref): Remove.
821 (vn_reference_insert): Use shared ops for constructing the
822 reference and copy it.
824 2013-05-07 Richard Biener <rguenther@suse.de>
827 * tree-eh.c (sink_clobbers): Properly propagate
828 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
830 2013-05-07 Jakub Jelinek <jakub@redhat.com>
832 PR tree-optimization/57149
833 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
834 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
835 collect_phi_def_edges, execute_late_warn_uninitialized): Use
836 uninit_undefined_value_p instead of ssa_undefined_value_p.
839 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
840 for modifier == EXPAND_INITIALIZER.
842 2013-05-07 Anton Blanchard <anton@samba.org>
844 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
845 for powerpc64 little endian.
846 * configure: Regenerate.
848 2013-05-06 Graham Stott <grahams@btinternet.com>
850 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
851 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
852 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
853 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
855 2013-05-06 Graham Stott <grahams@btinternet.com>
857 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
858 codes which allow non-lvalues.
860 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
862 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
863 components are all 1s.
864 (integer_minus_onep): New function.
865 * tree.h (integer_minus_onep): Declare it.
866 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
867 integer_minus_onep instead of integer_all_onesp.
869 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
872 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
873 variations of these patterns.
875 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
877 * config/i386/i386.md (isa): Add x64_sse4 member.
878 (enabled): Handle x64_sse4.
879 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
880 instruction for 64bit SSE4_1 targets. Update insn attributes.
881 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
882 instruction for SSE4_1 targets. Update insn attributes.
883 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
884 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
885 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
887 (*vec_extractv4si): Rename from *sse4_1_pextrd.
888 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
889 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
891 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
894 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
896 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
898 * final.c (do_assembler_dialects): Don't handle curly braces and
899 vertical bar escaped by % as dialect delimiters.
900 (output_asm_insn): Print curly braces and vertical bar if escaped
901 by % and ASSEMBLER_DIALECT defined.
902 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
903 * doc/tm.texi: Regenerated.
905 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
907 * config/mips/mips.c: Include tree-pass.h.
908 (mips_reorg): Split in pre- and post-dbr_schedule parts.
909 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
910 (pass_mips_machine_reorg2): New machine specific pass.
911 (insert_pass_mips_machine_reorg2): New pass plugin definition.
912 (mips_option_override): Register the new pass.
913 * rtl.h (cleanup_barriers): Remove prototype.
914 (dbr_schedule): Likewise.
915 * jump.c (cleanup_barriers): Make static.
916 * reorg.c (dbr_schedule): Likewise.
918 2013-05-06 Richard Biener <rguenther@suse.de>
920 PR tree-optimization/57185
921 * tree-parloops.c (add_field_for_reduction): Handle anonymous
924 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
927 * config/i386/i386.c (add_parameter_dependencies): Add dependence
928 between "first_arg" and "insn", not "last" and "insn".
930 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
932 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
933 (find_candidates_in_block): Re-enable slsr_process_phi.
934 (create_phi_basis): Fix double counting of candidate adjustment.
936 2013-05-06 Richard Biener <rguenther@suse.de>
939 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
940 the edge is also fallthru, preserve it and just clear the
942 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
943 also complex, preserve that and just clear the fallthru flag.
944 * tree-inline.c (update_ssa_across_abnormal_edges): Also
945 update virtual operands.
947 2013-05-06 Alan Modra <amodra@gmail.com>
949 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
950 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
951 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
952 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
953 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
954 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
956 2013-05-06 Alan Modra <amodra@gmail.com>
958 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
959 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
960 (DEFAULT_ASM_ENDIAN): Define.
961 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
962 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
963 Update -K PIC clause from sysv4.h.
964 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
965 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
967 2013-05-06 Alan Modra <amodra@gmail.com>
969 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
970 twice for little-endian.
971 (ashrdi3_no_power, ashrdi3): Support little-endian.
973 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
976 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
977 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
979 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
980 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
981 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
984 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
985 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
987 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
988 * config/pa/pa.opt: Make mbig-switch a no-op.
989 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
990 (CASE_VECTOR_MODE): Always return SImode.
991 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
992 for the !TARGET_BIG_SWITCH case.
993 * config/pa/pa-linux.h: Likewise.
994 * config/pa/pa-openbsd.h: Likewise.
995 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
996 * config/pa/pa.md (short_jump): Remove define_insn.
997 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
998 (casesi0): Remove define_insn.
999 (type): Remove btable_branch.
1000 (pa_combine_type): Likewise.
1001 (in_nullified_branch_delay): Likewise.
1002 (in_call_delay): Likewise.
1003 (define_delay): Likewise.
1004 (define_insn_reservation "Z3"): Likewise.
1005 (define_insn_reservation "Z4"): Likewise.
1006 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
1007 (pa_adjust_insn_length): Remove adjustment for btable branches.
1008 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
1011 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
1013 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
1014 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
1015 Add m->r,x alternatives.
1016 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
1017 splitters using SWI48x mode iterator.
1018 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
1019 TARGET_64BIT. Add m->x alternative.
1020 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
1021 Add o->x alternative. Enable for TARGET_SSE.
1022 (sse_storeq): Remove expander.
1023 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
1024 with memory input operand.
1025 (*vec_extractv2di_1 splitter): New.
1026 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
1027 * config/i386/i386.md (ssevecmodelower): New mode attribute.
1029 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
1031 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
1032 (INT_LOWPART): Delete.
1033 (extract_MB): Adjust.
1034 (extract_ME): Adjust.
1035 (print_operand): Adjust.
1037 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
1039 * config/rs6000/predicates.md (reg_or_add_cint_operand,
1040 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
1041 (reg_or_logical_cint_operand, easy_fp_constant,
1042 logical_const_operand): Delete "CONST_DOUBLE" case.
1043 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
1044 "HOST_BITS_PER_WIDE_INT == 64" test.
1045 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
1046 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
1047 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
1048 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
1050 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
1051 CONST_DOUBLE DImode/VOIDmode case.
1052 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
1053 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
1054 CONST_DOUBLE VOIDmode case.
1055 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
1056 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
1057 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
1058 Delete CONST_DOUBLE case.
1059 (splitters for mov FMOVE64 const_double): Delete
1060 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
1061 "HOST_BITS_PER_WIDE_INT >= 64" test.
1062 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
1064 (mov DI const_double): Delete.
1066 2013-05-04 Jakub Jelinek <jakub@redhat.com>
1068 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
1069 on op shows all bits zero in mode of a lowpart subreg, return zero.
1071 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
1074 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
1075 to save TFmode registers and DImode to save TImode registers for
1076 caller save operations.
1077 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
1078 mark being partially clobbered since they only use the first
1081 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
1082 and TDmode only use the upper 64-bits of each VSX register.
1084 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1086 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
1087 (find_candidates_in_block): Disable slsr_process_phi.
1089 2013-05-03 Guozhi Wei <carrot@google.com>
1091 * coverage.c (coverage_obj_init): Move the construction of gcov
1093 (build_init_ctor): ... here.
1095 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1097 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
1098 (slsr_cand_d): Redefine def_phi.
1099 (stride_status, phi_adjust_status, count_phis_status): New enums.
1100 (find_phi_def): New.
1101 (find_basis_for_base_expr): New.
1102 (find_basis_for_candidate): Handle hidden bases.
1103 (alloc_cand_and_find_basis): Handle phi candidates.
1104 (slsr_process_phi): New.
1105 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
1106 (create_mul_imm_cand): Likewise.
1107 (create_add_ssa_cand): Exclude phi base candidates.
1108 (create_add_imm_cand): Likewise.
1109 (slsr_process_cast): Likewise.
1110 (slsr_process_copy): Likewise.
1111 (find_candidates_in_block): Handle phi candidates.
1112 (dump_candidate): Likewise.
1113 (unconditional_cands): Delete.
1114 (unconditional_cands_with_known_stride_p): Delete.
1115 (phi_dependent_cand_p): New.
1116 (cand_increment): Handle phi-dependent candidates.
1117 (replace_dependent): Delete.
1118 (replace_mult_candidate): New.
1119 (replace_unconditional_candidate): New.
1120 (incr_vec_index): Move to avoid forward reference.
1121 (create_add_on_incoming_edge): New.
1122 (create_phi_basis): New.
1123 (replace_dependents): Delete.
1124 (replace_conditional_candidate): New.
1125 (phi_add_costs): New.
1126 (replace_uncond_cands_and_profitable_phis): New.
1127 (record_increment): Handle phi adjustments.
1128 (record_phi_increments): New.
1129 (record_increments): Handle phi adjustments.
1130 (phi_incr_cost): New.
1131 (lowest_cost_path): Handle phis.
1132 (total_savings): Likewise.
1133 (analyze_increments): Likewise.
1134 (ncd_with_phi): New.
1135 (ncd_of_cand_and_phis): New.
1136 (nearest_common_dominator_for_cands): Handle phi increments.
1137 (all_phi_incrs_profitable): New.
1138 (replace_profitable_candidates): Handle phi-dependent candidates.
1139 (analyze_candidates_and_replace): Likewise.
1141 2013-05-03 Teresa Johnson <tejohnson@google.com>
1144 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
1145 do not exceed REG_BR_PROB_BASE.
1147 2013-05-03 Jeff Law <law@redhat.com>
1149 PR tree-optimization/57144
1150 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
1151 operand of the condition will bit into the new type when eliminating
1152 a cast feeding a condition.
1154 2013-05-03 Jakub Jelinek <jakub@redhat.com>
1156 PR rtl-optimization/57130
1157 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
1158 of COMPARE as in_code to the recursive call if needed.
1160 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
1162 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
1163 (enabled): Handle new members.
1164 * config/i386/sse.md (*vec_concatv2si): Merge from
1165 *vec_concatv2si_sse2 and vec_concatv2si_sse.
1166 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
1168 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
1170 PR tree-optimization/57027
1171 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
1172 for fnms opportunity, check we got the prerequisite kind
1173 of tree / gimple before using accessor functions.
1175 2013-05-03 Richard Biener <rguenther@suse.de>
1177 * double-int.h (lshift): New overload without precision
1179 (operator *=, operator +=, operator -=): Move ...
1180 * double-int.c (operator *=, operator +=, operator -=): ... here
1181 and implement more efficiently.
1182 (mul_double_with_sign): Remove.
1183 (lshift_double): Adjust to take unsinged shift argument, push
1184 dispatching code to callers.
1185 (mul_double_wide_with_sign): Add early out for callers that
1186 are not interested in high parts or overflow.
1187 (lshift): New function.
1188 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
1190 (lrotate, rrotate): Use logical shifts.
1191 * expr.c (get_inner_reference): Use lshift.
1192 * fixed-value.c (do_fixed_divide): Likewise.
1193 * tree-dfa.c (get_ref_base_and_extent): Likewise.
1194 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
1195 (indirect_refs_may_alias_p): Likewise.
1196 (stmt_kills_ref_p_1): Likewise.
1198 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
1200 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
1202 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
1204 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
1205 scalar form of FABD instruction.
1207 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
1209 * lra-constraints.c (process_alt_operands): Add checking alt
1210 number to choose the best alternative.
1212 2013-05-02 Richard Biener <rguenther@suse.de>
1214 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
1215 bitmap and its handling.
1216 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
1218 2013-05-02 Richard Biener <rguenther@suse.de>
1221 * tree-inline.c (copy_loops): Properly handle removed loops.
1222 (copy_cfg_body): Mark destination loops for fixup if source
1225 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
1228 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
1229 generating simple_return for naked functions.
1231 2013-05-02 Martin Jambor <mjambor@suse.cz>
1234 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
1235 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
1237 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
1238 ipa_agg_replacement_value structures.
1239 (known_aggs_to_agg_replacement_list): Likewise.
1240 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
1241 (read_agg_replacement_chain): Likewise.
1242 (ipcp_transform_function): Also check that by_ref flags match.
1244 2013-05-02 Richard Biener <rguenther@suse.de>
1246 * graphds.h (struct graph): Add obstack member.
1247 * graphds.c (new_graph): Initialize obstack and allocate
1249 (add_edge): Allocate edge from the obstack.
1250 (free_graph): Free the obstack instead of all edges and vertices.
1252 2013-05-02 Teresa Johnson <tejohnson@google.com>
1254 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
1256 * cfg.c (update_bb_profile_for_threading): Ditto.
1257 * tree-inline.c (copy_bb): Ditto.
1258 (copy_edges_for_bb): Ditto.
1259 (initialize_cfun): Ditto.
1260 (copy_cfg_body): Ditto.
1261 (expand_call_inline): Ditto.
1262 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
1263 (estimate_node_size_and_time): Ditto.
1264 (inline_merge_summary): Ditto.
1265 * cgraphclones.c (cgraph_clone_edge): Ditto.
1266 (cgraph_clone_node): Ditto.
1267 * sched-rgn.c (compute_dom_prob_ps): Ditto.
1268 (compute_trg_info): Ditto.
1270 2013-05-02 Ian Bolton <ian.bolton@arm.com>
1272 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
1273 S reg when fp attribute set.
1274 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
1276 2013-05-02 Ian Bolton <ian.bolton@arm.com>
1278 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
1280 (*and_one_cmplsi3_compare0_uxtw): Likewise.
1281 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
1282 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
1284 2013-05-02 Richard Biener <rguenther@suse.de>
1286 * tree-scalar-evolution.c (scev_info_hasher): Remove.
1287 (struct instantiate_cache_entry): New type.
1288 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
1289 (struct instantiate_cache_type): New type.
1290 (set_instantiated_value, get_instantiated_value): Remove.
1291 (get_instantiated_value_entry): New function.
1292 (instantiate_scev_name): Use the new cache and adjust.
1293 (instantiate_scev_poly): Adjust.
1294 (instantiate_scev_binary): Likewise.
1295 (instantiate_array_ref): Likewise.
1296 (instantiate_scev_convert): Likewise.
1297 (instantiate_scev_not): Likewise.
1298 (instantiate_scev_3): Likewise.
1299 (instantiate_scev_2): Likewise.
1300 (instantiate_scev_r): Likewise.
1301 (instantiate_scev): Likewise.
1302 (resolve_mixers): Likewise.
1304 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
1307 * lra-constraints.c (best_small_class_operands_num): Remove.
1308 (process_alt_operands): Remove small_class_operands_num. Take
1309 small classes operands into losers and only if the operand is not
1310 matched. Modify debugging output.
1311 (curr_insn_transform): Remove best_small_class_operands_num.
1314 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1316 * config/aarch64/aarch64-builtins.c
1317 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
1318 * config/aarch64/aarch64-simd-builtins.def
1319 (reduc_splus_): Add new modes.
1320 (reduc_uplus_): New.
1321 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
1322 (reduc_uplus_v4sf): Likewise.
1323 (reduc_splus_v4sf): Likewise.
1324 (aarch64_addv<mode>): Likewise.
1325 (reduc_uplus_<mode>): Likewise.
1326 (reduc_splus_<mode>): Likewise.
1327 (aarch64_addvv2di): Likewise.
1328 (reduc_uplus_v2di): Likewise.
1329 (reduc_splus_v2di): Likewise.
1330 (aarch64_addvv2si): Likewise.
1331 (reduc_uplus_v2si): Likewise.
1332 (reduc_splus_v2si): Likewise.
1333 (reduc_<sur>plus_<mode>): New.
1334 (reduc_<sur>plus_v2di): Likewise.
1335 (reduc_<sur>plus_v2si): Likewise.
1336 (reduc_<sur>plus_v4sf): Likewise.
1337 (aarch64_addpv4sf): Likewise.
1338 * config/aarch64/arm_neon.h
1339 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
1340 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
1341 add UNSPEC_SADDV, UNSPEC_UADDV.
1343 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
1345 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1347 * config/aarch64/arm_neon.h
1348 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
1350 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1352 * config/aarch64/aarch64-builtins
1353 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
1355 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1357 * config/aarch64/aarch64-simd-builtins.def
1359 (reduc_smin_): Likewise.
1360 (reduc_umax_): Likewise.
1361 (reduc_umin_): Likewise.
1362 (reduc_smax_nan_): Likewise.
1363 (reduc_smin_nan_): Likewise.
1366 (smax): Update for V2SF, V4SF and V2DF modes.
1369 (smin_nan): Likewise.
1370 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
1371 (<su><maxmin><mode>3): ...This, refactor.
1372 (s<maxmin><mode>3): New.
1373 (<maxmin_uns><mode>3): Likewise.
1374 (reduc_<maxmin_uns>_<mode>): Refactor.
1375 (reduc_<maxmin_uns>_v4sf): Likewise.
1376 (reduc_<maxmin_uns>_v2si): Likewise.
1377 (aarch64_<fmaxmin><mode>: Remove.
1378 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
1380 (vmin<q>_f<32,64>): Likewise.
1381 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
1383 (su): Add mappings for smax, smin, umax, umin.
1385 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
1386 (FMAXMIN): Rename as...
1387 (FMAXMIN_UNS): ...This.
1389 (fmaxminv): Likewise.
1390 (fmaxmin): Likewise.
1392 (maxmin_uns_op): Likewise.
1394 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1396 * config/aarch64/arm_neon.h
1397 (vac<ge, gt><sd>_f<32, 64>): Rename to...
1398 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
1399 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
1401 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1403 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
1404 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
1406 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1408 * config/aarch64/aarch64-simd.md
1409 (vcond<mode>_internal): Handle special cases for constant masks.
1410 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
1411 (vcondu<mode><mode>): Likewise.
1412 (vcond<v_cmp_result><mode>): New.
1414 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1416 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
1417 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
1418 * config/aarch64/aarch64-simd-builtins.def
1419 (cmeq): Update to BUILTIN_VALLDI.
1424 * config/aarch64/arm_neon.h
1425 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
1426 to builtins or C as appropriate.
1428 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1430 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
1432 (cmhi): Rename to...
1434 * config/aarch64/aarch64-simd.md
1435 (simd_mode): Add SF.
1436 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
1437 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
1438 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
1439 (cstore<mode>_neg): ...This.
1440 * config/aarch64/iterators.md
1442 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
1444 (UCOMPARISONS): Likewise.
1445 (optab): Add missing comparisons.
1453 (V_cmp_result): Add DF, SF modes.
1454 (v_cmp_result): Likewise.
1457 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
1459 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
1461 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
1462 define_insn to define_insn_and_split.
1463 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
1464 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
1465 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
1466 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
1467 (thumb2_negscc): Likewise.
1469 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
1471 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
1473 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
1475 * config/arm/thumb2.md: Remove trailing whitespaces.
1477 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1479 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
1480 Use gen_int_mode rather than GEN_INT.
1482 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
1484 * value-prof.c (stream_in_histogram_value): Remove the strayed
1487 2013-04-30 Richard Biener <rguenther@suse.de>
1490 * cfghooks.c (split_edge): Properly check for the loop latch edge.
1492 2013-04-30 Richard Biener <rguenther@suse.de>
1495 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
1497 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
1499 PR rtl-optimization/56957
1500 PR rtl-optimization/57105
1501 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
1502 variable. Use just INSN_UID for determining whether an insn
1503 should be only disconnected from the insn stream.
1504 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
1506 2013-04-30 Jakub Jelinek <jakub@redhat.com>
1508 PR tree-optimization/57104
1509 * tsan.c (instrument_expr): Don't instrument accesses to
1510 DECL_HARD_REGISTER VAR_DECLs.
1512 2013-04-30 Richard Biener <rguenther@suse.de>
1514 * function.h (loops_for_fn): New inline function.
1515 (set_loops_for_fn): Likewise.
1516 * cfgloop.h (place_new_loop): Add struct function parameter.
1517 (get_loop): Likewise.
1518 (get_loops): Likewise.
1519 (number_of_loops): Likewise.
1521 (fel_init): Likewise.
1522 * cfg.c (get_loop_copy): Adjust.
1523 * cfgloop.c (flow_loops_dump): Likewise.
1524 (record_loop_exits): Likewise.
1525 (verify_loop_structure): Likewise.
1526 * cfgloopanal.c (mark_irreducible_loops): Likewise.
1527 (estimate_reg_pressure_cost): Likewise.
1528 (mark_loop_exit_edges): Likewise.
1529 * cfgloopmanip.c (place_new_loop): Likewise.
1530 (add_loop): Likewise.
1531 (duplicate_loop): Likewise.
1532 * graph.c (draw_cfg_nodes): Likewise.
1533 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
1534 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
1535 (extract_affine_chrec): Likewise.
1536 (build_scop_iteration_domain): Likewise.
1537 * graphite.c (graphite_initialize): Likewise.
1538 * ira-build.c (create_loop_tree_nodes): Likewise.
1539 (more_one_region_p): Likewise.
1540 (rebuild_regno_allocno_maps): Likewise.
1541 (mark_loops_for_removal): Likewise.
1542 (mark_all_loops_for_removal): Likewise.
1543 (remove_unnecessary_regions): Likewise.
1544 (ira_build): Likewise.
1545 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
1546 * loop-init.c (fix_loop_structure): Likewise.
1547 (gate_rtl_move_loop_invariants): Likewise.
1548 (gate_rtl_unswitch): Likewise.
1549 (gate_rtl_unroll_and_peel_loops): Likewise.
1550 (rtl_doloop): Likewise.
1551 * lto-streamer-in.c (input_cfg): Likewise.
1552 * lto-streamer-out.c (output_cfg): Likewise.
1553 * modulo-sched.c (sms_schedule): Likewise.
1554 * predict.c (tree_estimate_probability): Likewise.
1555 (tree_estimate_probability_driver): Likewise.
1556 (estimate_loops): Likewise.
1557 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
1558 (move_sese_region_to_fn): Likewise.
1559 (debug_loop_num): Likewise.
1560 * tree-chrec.c (chrec_evaluate): Likewise.
1561 (hide_evolution_in_other_loops_than_loop): Likewise.
1562 (chrec_component_in_loop_num): Likewise.
1563 (reset_evolution_in_loop): Likewise.
1564 (evolution_function_is_invariant_rec_p): Likewise.
1565 * tree-if-conv.c (main_tree_if_conversion): Likewise.
1566 * tree-inline.c (copy_loops): Likewise.
1567 (copy_cfg_body): Likewise.
1568 (tree_function_versioning): Likewise.
1569 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
1570 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
1572 (add_to_evolution_1): Likewise.
1573 (scev_const_prop): Likewise.
1574 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
1575 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
1576 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
1577 (tree_ssa_lim_initialize): Likewise.
1578 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
1579 (verify_loop_closed_ssa): Likewise.
1580 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
1581 (tree_ssa_loop_im): Likewise.
1582 (tree_ssa_loop_unswitch): Likewise.
1583 (tree_vectorize): Likewise.
1584 (check_data_deps): Likewise.
1585 (tree_ssa_loop_ivcanon): Likewise.
1586 (tree_ssa_loop_bounds): Likewise.
1587 (tree_complete_unroll): Likewise.
1588 (tree_complete_unroll_inner): Likewise.
1589 (tree_parallelize_loops): Likewise.
1590 (tree_ssa_loop_prefetch): Likewise.
1591 (tree_ssa_loop_ivopts): Likewise.
1592 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
1593 * tree-vectorizer.c (vectorize_loops): Likewise.
1595 2013-04-29 Mike Frysinger <vapier@gentoo.org>
1597 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
1598 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
1599 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
1600 with EABI_LINK_SPEC.
1602 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
1605 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
1608 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
1611 * lra-constraints.c (process_alt_operands): Discourage a bit more
1612 using memory for pseudos. Print cost dump for alternatives.
1613 Modify cost values for conflicts with early clobbers.
1614 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
1616 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
1619 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
1621 2013-04-29 Ian Bolton <ian.bolton@arm.com>
1623 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
1625 (movdi_aarch64): Support LDR/STR from/to D register.
1627 2013-04-29 Ian Bolton <ian.bolton@arm.com>
1629 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
1630 or higher by default.
1632 2013-04-29 Richard Biener <rguenther@suse.de>
1635 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
1636 even if not adding abnormal edges for calls that can make
1639 2013-04-29 Richard Biener <rguenther@suse.de>
1642 * tree-cfg.c (move_stmt_op): Fix condition under which to update
1644 (move_stmt_r): Remove redundant checking.
1646 2013-04-29 Teresa Johnson <tejohnson@google.com>
1649 * basic-block.h (apply_scale): New function.
1650 (apply_probability): Use apply_scale.
1651 * gimple-streamer-in.c (input_bb): Ditto.
1652 * lto-streamer-in.c (input_cfg): Ditto.
1653 * lto-cgraph.c (merge_profile_summaries): Ditto.
1654 * tree-optimize.c (execute_fixup_cfg): Ditto.
1655 * tree-inline.c (copy_bb): Update comment to use apply_scale.
1656 (copy_edges_for_bb): Ditto.
1657 (copy_cfg_body): Ditto.
1659 2013-04-29 Tom de Vries <tom@codesourcery.com>
1661 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
1662 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
1663 (tail_merge_optimize): Handle current_loops == NULL.
1665 2013-04-26 Jeff Law <law@redhat.com>
1667 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
1668 (simplify_cond_using_ranges): Generalize code to simplify
1669 COND_EXPRs where one argument is a constant and the other
1670 is an SSA_NAME created by an integral type conversion.
1672 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1674 * config/arm/arm.md (store_minmaxsi): Use only when
1675 optimize_insn_for_size_p.
1677 2013-04-29 Christian Bruel <christian.bruel@st.com>
1680 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
1682 2013-04-29 Richard Biener <rguenther@suse.de>
1685 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
1686 loop tree make sure to schedule a fixup for the child as well.
1687 (expand_omp_for_generic): Properly add loops.
1688 (expand_omp_for_static_nochunk): Likewise.
1689 (expand_omp_for_static_chunk): Likewise.
1690 (expand_omp_for): For the degenerate case fixup loops.
1691 (expand_omp_sections): Fix default bb placement in loops.
1692 (expand_omp_atomic_pipeline): Properly add loops.
1694 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1696 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
1698 2013-04-29 Tom de Vries <tom@codesourcery.com>
1700 * tree-ssa-tail-merge.c: Update header comment.
1702 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1704 * config/aarch64/arm_neon.h
1705 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
1706 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
1707 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
1708 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
1709 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
1710 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
1711 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
1712 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
1714 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1716 * config/aarch64/aarch64-simd.md
1717 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
1718 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
1719 fix_trunc, fixuns_trunc.
1720 (ftrunc<VDQF:mode>2): New.
1721 * config/aarch64/iterators.md (optab): Add fix, fixuns.
1722 (fix_trunc_optab): New.
1724 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1726 * config/aarch64/aarch64-builtins.c
1727 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
1728 iceilf, lround, iroundf.
1730 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
1733 * config/i386/i386.h (enum ix86_tune_indices)
1734 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
1735 New, split from X86_TUNE_INTER_UNIT_MOVES.
1736 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
1737 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
1738 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
1739 (TARGET_INTER_UNIT_MOVES): Remove.
1740 * config/i386/i386.c (initial_ix86_tune_features): Update.
1741 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
1742 (ix86_expand_convert_uns_didf_sse): Use
1743 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
1744 (ix86_expand_vector_init_one_nonzero): Ditto.
1745 (ix86_expand_vector_init_interleave): Ditto.
1746 (inline_secondary_memory_needed): Return true for moves from SSE class
1747 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
1748 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
1749 * config/i386/constraints.md (Yi, Ym): Depend on
1750 TARGET_INTER_UNIT_MOVES_TO_VEC.
1751 (Yj, Yn): New constraints.
1752 * config/i386/i386.md (*movdi_internal): Change constraints of
1753 operand 1 from Yi to Yj and from Ym to Yn.
1754 (*movsi_internal): Ditto.
1755 (*movdf_internal): Ditto.
1756 (*movsf_internal): Ditto.
1757 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
1758 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
1759 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
1760 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
1761 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
1762 * config/i386/sse.md (movdi_to_sse): Ditto.
1763 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
1764 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
1765 TARGET_INTER_UNIT_MOVES.
1766 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
1767 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
1768 instead of TARGET_INTER_UNIT_MOVES.
1769 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
1770 operand 1 from Yi to Yj and from Ym to Yn.
1772 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1774 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
1775 (float_truncate_hi_): Likewise.
1776 (float_extend_lo_): Likewise.
1777 (float_truncate_lo_): Likewise.
1778 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
1779 (aarch64_float_extend_lo_v2df): Likewise.
1780 (vec_unpacks_hi_v4sf): Likewise.
1781 (aarch64_float_truncate_lo_v2sf): Likewise.
1782 (aarch64_float_truncate_hi_v4sf): Likewise.
1783 (vec_pack_trunc_v2df): Likewise.
1784 (vec_pack_trunc_df): Likewise.
1786 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1788 * config/aarch64/aarch64-builtins.c
1789 (aarch64_fold_builtin): Fold float conversions.
1790 * config/aarch64/aarch64-simd-builtins.def
1791 (floatv2si, floatv4si, floatv2di): New.
1792 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
1793 * config/aarch64/aarch64-simd.md
1794 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
1795 * config/aarch64/iterators.md (FLOATUORS): New.
1796 (optab): Add float, floatuns.
1797 (su_optab): Likewise.
1799 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1801 * config/aarch64/aarch64-builtins.c
1802 (aarch64_builtin_vectorized_function): Use new names for
1804 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
1805 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
1806 (fcvtzu): Split as...
1807 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
1808 (fcvtas): Split as...
1809 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
1810 (fcvtau): Split as...
1811 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
1812 (fcvtps): Split as...
1813 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
1814 (fcvtpu): Split as...
1815 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
1816 (fcvtms): Split as...
1817 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
1818 (fcvtmu): Split as...
1819 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
1820 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
1821 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
1822 (lfrintnusf, lfrintnudf): Likewise.
1823 * config/aarch64/aarch64-simd.md
1824 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
1826 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
1827 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
1828 (fcvt_pattern): Likewise.
1830 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1832 * config/aarch64/aarch64-simd.md
1833 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
1834 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
1836 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1838 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
1839 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
1840 (vrnd<a,m,n,p>_f32): Implement using builtins.
1841 (vrnd<i,x><q>_f<32, 64>): New.
1843 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1845 * config/aarch64/aarch64-builtins.c
1846 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
1847 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
1848 (frintz): Rename to...
1850 (frintp): Rename to...
1852 (frintm): Rename to...
1854 (frinti): Rename to...
1855 (nearbyint): ...this.
1856 (frintx): Rename to...
1858 (frinta): Rename to...
1860 * config/aarch64/aarch64-simd.md
1861 (aarch64_frint<frint_suffix><mode>): Delete.
1862 (<frint_pattern><mode>2): Convert to insn.
1863 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
1864 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
1865 (frint_pattern): Likewise.
1866 (frint_suffix): Likewise.
1868 2013-04-29 Richard Biener <rguenther@suse.de>
1870 PR tree-optimization/57081
1871 * loop-init.c: Include tree-flow.h.
1872 (loop_optimizer_finalize): Free number of iteration estimates.
1873 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
1875 2013-04-29 Jakub Jelinek <jakub@redhat.com>
1877 PR tree-optimization/57083
1878 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
1879 non-singleton shift count range, zero extend low_bound for uns case.
1881 * config/i386/predicates.md (general_vector_operand): New predicate.
1882 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
1883 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
1884 if they aren't nonimmediate operands. If their original values
1885 satisfy const_vector_equal_evenodd_p, don't shift them.
1886 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
1887 predicates. For the SSE4.1 case force operands[{1,2}] into registers
1888 if not nonimmediate_operand.
1889 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
1890 instead of register_operand.
1891 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
1893 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
1895 * stor-layout.c (finalize_size_functions): Allocate a structure and
1896 reset cfun before dumping the functions.
1898 2013-04-27 Jakub Jelinek <jakub@redhat.com>
1900 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
1903 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
1904 use xop_pmacsdqh if uns_p.
1905 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
1906 the immediate rotate count.
1908 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
1910 * rtl.h (struct rtx_def): Add comment for field jump.
1911 (LRA_SUBREG_P): New macro.
1912 * recog.c (register_operand): Check LRA_SUBREG_P.
1913 * lra.c (lra): Add note at the end of RTL code. Align non-empty
1915 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
1916 (lra_final_code_change): Skip subreg change for operators.
1917 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
1918 if there are no operand changes.
1919 * lra-constraints.c (curr_insn_set): New.
1920 (match_reload): Set LRA_SUBREG_P.
1921 (emit_spill_move): Ditto.
1922 (check_and_process_move): Use curr_insn_set. Process only single
1923 set insns. Don't initialize sec_mem_p and change_p.
1924 (simplify_operand_subreg): Use LRA_SUBREG_P.
1925 (reg_in_class_p): New function.
1926 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
1927 of #ifdef. Add code to remove cycling.
1928 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
1929 non-null disp. Reload inner instead of disp when base and index
1930 are null. Try to put lo_sum into register.
1931 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
1932 (check_and_process_move): Move code for move cost check to
1933 simple_move_p. Remove equiv_substitution.
1934 (simple_move_p): New function.
1935 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
1936 curr_insn_set. Call check_and_process_move only for single set
1937 insns. Use the new function. Move call of check_and_process_move
1938 after operand equiv substitution and address process.
1940 2013-04-26 Jakub Jelinek <jakub@redhat.com>
1943 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
1944 with nonlocal goto receivers or returns twice calls, ignore
1945 unininitialized values from abnormal edges to nl goto receiver
1946 or returns twice call.
1948 2013-04-26 Jakub Jelinek <jakub@redhat.com>
1950 PR tree-optimization/57051
1951 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
1952 and VEC_RSHIFT_EXPR if shift count is a multiple of element
1955 2013-04-26 Richard Biener <rguenther@suse.de>
1957 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
1958 (expand_omp_taskreg): Likewise. Mark loops for fixup.
1959 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
1960 (fixup_loop_arrays_after_move): New function.
1961 (move_sese_region_to_fn): Properly outline the loop tree parts
1964 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
1966 * config/i386/i386.md (type, unit): Fix long lines.
1968 2013-04-26 Richard Biener <rguenther@suse.de>
1970 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
1971 (lto-streamer-out.o): Likewise.
1972 * cfgloop.c (init_loops_structure): Export, add struct function
1973 argument and adjust.
1974 (flow_loops_find): Adjust.
1975 * cfgloop.h (enum loop_estimation): Add EST_LAST.
1976 (init_loops_structure): Declare.
1977 * lto-streamer-in.c: Include cfgloop.h.
1978 (input_cfg): Input the loop tree.
1979 * lto-streamer-out.c: Include cfgloop.h.
1980 (output_cfg): Output the loop tree.
1981 (output_struct_function_base): Do not drop PROP_loops.
1983 2013-03-26 Richard Biener <rguenther@suse.de>
1985 * tree-cfg.c (execute_build_cfg): Build the loop tree.
1986 (pass_build_cfg): Provide PROP_loops.
1987 (move_sese_region_to_fn): Remove loops that are outlined into fn
1989 * tree-inline.c: Include cfgloop.h.
1990 (initialize_cfun): Do not drop PROP_loops.
1991 (copy_loops): New function.
1992 (copy_cfg_body): Copy loop structure.
1993 (tree_function_versioning): Initialize destination loop tree.
1994 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
1995 (pass_parallelize_loops): Do IL verification.
1996 * loop-init.c (loop_optimizer_init): Fixup loops if required.
1997 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
1998 the CFG make sure we fixup loops as well.
1999 * tree-ssa-tail-merge.c: Include cfgloop.h.
2000 (replace_block_by): When merging loop latches mark loops for fixup.
2001 * lto-streamer-out.c (output_struct_function_base): Drop
2003 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
2004 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
2005 * ipa-split.c: Include cfgloop.h.
2006 (split_function): Add the new return block to the loop tree root.
2007 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
2008 whether we have removed the forwarder block.
2009 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
2010 * cfgloop.h (place_new_loop): Declare.
2011 * cfgloopmanip.c (place_new_loop): Export.
2012 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
2013 (tree-switch-conversion.o): Likewise.
2014 (tree-complex.o): Likewise.
2015 (tree-inline.o): Likewise.
2016 (tree-ssa-tailmerge.o): Likewise.
2017 (ipa-split.o): Likewise.
2018 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
2019 (tree-ssa-copy.o): Likewise.
2020 * tree-switch-conversion.c: Include cfgloop.h
2021 (process_switch): If we emit a bit-test cascade, schedule loops
2023 * tree-complex.c: Include cfgloop.h.
2024 (expand_complex_div_wide): Properly add new basic-blocks to loops.
2025 * asan.c: Include cfgloop.h.
2026 (create_cond_insert_point): Properly add new basic-blocks to
2027 loops, schedule loop fixup.
2028 * cfgloop.c (verify_loop_structure): Check that looks are not
2030 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
2032 (expand_omp_for_generic): Likewise.
2033 (expand_omp_sections): Likewise.
2034 (expand_omp_atomic_pipeline): Schedule loops for fixup.
2035 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
2036 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
2037 is initialized, not when loops are present.
2038 * tree-parloops.c (parallelize_loops): Remove checking here.
2039 * passes.c (init_optimization_passes): Schedule a copy-propagation
2040 pass before complete unrolling of inner loops.
2042 2013-04-26 Jakub Jelinek <jakub@redhat.com>
2044 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
2045 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
2046 (colorize_init): Add argument to _WIN32 version.
2047 * toplev.c: Include diagnostic-color.h.
2048 (process_options): Default to -fdiagnostics-color=auto if
2049 GCC_COLORS env var is in the environment.
2050 * common.opt (fdiagnostics-color=): Add Var and Init.
2051 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
2052 env var is in the environment, the default is auto rather than never.
2054 * diagnostic.h (file_name_as_prefix): Add context argument.
2055 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
2056 the string as locus.
2057 * langhooks.c (lhd_print_error_function): Adjust caller.
2059 2013-04-25 Lawrence Crowl <crowl@google.com>
2061 * var-tracking.c (shared_hash_def::htab):
2062 Change type to hash_table. Update dependent calls and types.
2064 2013-04-25 Lawrence Crowl <crowl@google.com>
2066 * Makefile.in: Update as needed below.
2068 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
2069 Move declaration to after the type's method definitons.
2071 * attribs.c (htab_t scoped_attributes::attribute_hash):
2072 Change type to hash_table. Update dependent calls and types.
2074 * bitmap.c (htab_t bitmap_desc_hash):
2075 Change type to hash_table. Update dependent calls and types.
2077 * cselib.c (htab_t cselib_hash_table):
2078 Change type to hash_table. Update dependent calls and types.
2080 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
2081 (hash_string_slot_node): Move implementation into lto-streamer.h
2082 struct string_slot_hasher.
2083 (eq_string_slot_node): Likewise.
2085 * data-streamer-out.c: Update output_block::string_hash_table
2086 dependent calls and types.
2088 * dwarf2cfi.c (htab_t trace_index):
2089 Change type to hash_table. Update dependent calls and types.
2091 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
2092 Change type to hash_table. Update dependent calls and types.
2093 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
2094 (htab_t optimize_external_refs::map): Likewise.
2095 (htab_t output_comp_unit::extern_map): Likewise.
2096 (htab_t output_comdat_type_unit::extern_map): Likewise.
2097 (htab_t output_macinfo::macinfo_htab): Likewise.
2098 (htab_t optimize_location_lists::htab): Likewise.
2099 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
2101 * except.c (htab_t ehspec_hash_type):
2102 Change type to hash_table. Update dependent calls and types.
2103 (assign_filter_values::ttypes): Likewise.
2104 (assign_filter_values::ehspec): Likewise.
2105 (sjlj_assign_call_site_values::ar_hash): Likewise.
2106 (convert_to_eh_region_ranges::ar_hash): Likewise.
2108 * gcse.c (htab_t pre_ldst_table):
2109 Change type to hash_table. Update dependent calls and types.
2111 * ggc-common.c (htab_t saving_htab):
2112 Change type to hash_table. Update dependent calls and types.
2113 (htab_t loc_hash): Likewise.
2114 (htab_t ptr_hash): Likewise.
2115 (call_count): Rename ggc_call_count.
2116 (call_alloc): Rename ggc_call_alloc.
2117 (loc_descriptor): Rename make_loc_descriptor.
2118 (add_statistics): Rename ggc_add_statistics.
2120 * ggc-common.c (saving_htab):
2121 Change type to hash_table. Update dependent calls and types.
2123 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
2124 (push_gimplify_context): Likewise.
2125 (pop_gimplify_context): Likewise.
2126 (struct gimple_temp_hash_elt): Added.
2127 (struct gimplify_hasher): Likewise.
2128 (struct gimplify_ctx.temp_htab):
2129 Change type to hash_table. Update dependent calls and types.
2131 * gimple-fold.c: Include gimplify-ctx.h.
2133 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
2134 Change type to hash_table. Update dependent calls and types.
2135 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
2136 avoid potential global name collision.
2138 * gimplify.c: Include gimplify-ctx.h.
2139 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
2140 (htab_t gimplify_ctx::temp_htab):
2141 Update dependent calls and types for new type hash_table.
2142 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
2143 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
2145 * gimplify-ctx.h: New.
2146 (struct gimple_temp_hash_elt): Move from gimplify.c.
2147 (class gimplify_hasher): New.
2148 (struct gimplify_ctx): Move from gimple.h.
2149 (htab_t gimplify_ctx::temp_htab):
2150 Change type to hash_table. Update dependent calls and types.
2152 * graphite-clast-to-gimple.c: Include graphite-htab.h.
2153 (htab_t ivs_params::newivs_index):
2154 Change type to hash_table. Update dependent calls and types.
2155 (htab_t ivs_params::params_index): Likewise.
2156 (htab_t print_generated_program::params_index): Likewise.
2157 (htab_t gloog::newivs_index): Likewise.
2158 (htab_t gloog::params_index): Likewise.
2160 * graphite.c: Include graphite-htab.h.
2161 4htab_t graphite_transform_loops::bb_pbb_mapping):
2162 Change type to hash_table. Update dependent calls and types.
2164 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
2165 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
2166 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
2168 * graphite-dependences.c: Include graphite-htab.h.
2169 (loop_is_parallel_p): Change hash table type of parameter.
2171 * graphite-htab.h: New.
2172 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
2173 (extern find_pbb_via_hash): Move from graphite-poly.h.
2174 (extern loop_is_parallel_p): Move from graphite-poly.h.
2175 (extern get_loop_body_pbbs): Move from graphite-poly.h.
2177 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
2178 (extern loop_is_parallel_p): Move to graphite-htab.h.
2179 (extern get_loop_body_pbbs): Move to graphite-htab.h.
2181 * haifa-sched.c (htab_t delay_htab):
2182 Change type to hash_table. Update dependent calls and types.
2183 (htab_t delay_htab_i2): Likewise.
2185 * ira-color.c (htab_t allocno_hard_regs_htab):
2186 Change type to hash_table. Update dependent calls and types.
2188 * ira-costs.c (htab_t cost_classes_htab):
2189 Change type to hash_table. Update dependent calls and types.
2191 * loop-invariant.c (htab_t merge_identical_invariants::eq):
2192 Change type to hash_table. Update dependent calls and types.
2194 * loop-iv.c (htab_t bivs):
2195 Change type to hash_table. Update dependent calls and types.
2197 * loop-unroll.c (htab_t opt_info::insns_to_split):
2198 Change type to hash_table. Update dependent calls and types.
2199 (htab_t opt_info::insns_with_var_to_expand): Likewise.
2201 * lto-streamer.h (struct string_slot): Move from data-streamer.h
2202 (struct string_slot_hasher): New.
2203 (htab_t output_block::string_hash_table):
2204 Change type to hash_table. Update dependent calls and types.
2206 * lto-streamer-in.c (freeing_string_slot_hasher): New.
2207 (htab_t file_name_hash_table):
2208 Change type to hash_table. Update dependent calls and types.
2210 * lto-streamer-out.c: Update output_block::string_hash_table dependent
2213 * lto-streamer.c (htab_t tree_htab):
2214 Change type to hash_table. Update dependent calls and types.
2216 * omp-low.c: Include gimplify-ctx.h.
2218 * passes.c (htab_t name_to_pass_map):
2219 Change type to hash_table. Update dependent calls and types.
2220 (pass_traverse): Rename to passes_pass_traverse.
2222 * plugin.c (htab_t event_tab):
2223 Change type to hash_table. Update dependent calls and types.
2225 * postreload-gcse.c (htab_t expr_table):
2226 Change type to hash_table. Update dependent calls and types.
2227 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
2229 * sese.c (debug_rename_map_1): Make extern.
2230 (htab_t copy_bb_and_scalar_dependences::rename_map):
2231 Change type to hash_table. Update dependent calls and types.
2233 * sese.h (extern debug_rename_map): Move to .c file.
2235 * store-motion.c (htab_t store_motion_mems_table):
2236 Change type to hash_table. Update dependent calls and types.
2238 * trans-mem.c (htab_t tm_new_mem_hash):
2239 Change type to hash_table. Update dependent calls and types.
2241 * tree-browser.c (htab_t TB_up_ht):
2242 Change type to hash_table. Update dependent calls and types.
2244 * tree-cfg.c (htab_t discriminator_per_locus):
2245 Change type to hash_table. Update dependent calls and types.
2247 * tree-complex.c: Include tree-hasher.h
2248 (htab_t complex_variable_components):
2249 Change type to hash_table. Update dependent calls and types.
2251 * tree-eh.c (htab_t finally_tree):
2252 Change type to hash_table. Update dependent calls and types.
2254 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
2255 struct int_tree_hasher.
2256 (extern int_tree_map_eq): Likewise.
2257 (uid_decl_map_hash): Removed.
2258 (extern decl_tree_map_eq): Likewise.
2260 * tree-hasher.h: New.
2261 (struct int_tree_hasher): New.
2262 (typedef int_tree_htab_type): New.
2264 * tree-inline.c: Include gimplify-ctx.h.
2266 * tree-mudflap.c: Include gimplify-ctx.h.
2268 * tree-parloops.c: Include tree-hasher.h.
2269 (htab_t eliminate_local_variables_stmt::decl_address):
2270 Change type to hash_table. Update dependent calls and types.
2271 (htab_t separate_decls_in_region::decl_copies): Likewise.
2273 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
2274 Change type to hash_table. Update dependent calls and types.
2276 * tree-sra.c (candidates):
2277 Change type to hash_table. Update dependent calls and types.
2279 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
2281 (int_tree_map_hash): Likewise.
2283 * tree-ssa-dom.c (htab_t avail_exprs):
2284 Change type to hash_table. Update dependent calls and types.
2286 * tree-ssa-live.c (var_map_base_init::tree_to_index):
2287 Change type to hash_table. Update dependent calls and types.
2289 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
2290 Change type to hash_table. Update dependent calls and types.
2292 * tree-ssa-phiopt.c (seen_ssa_names):
2293 Change type to hash_table. Update dependent calls and types.
2295 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
2296 Change type to hash_table. Update dependent calls and types.
2298 * tree-ssa-uncprop.c (equiv):
2299 Change type to hash_table. Update dependent calls and types.
2301 2013-04-25 Jakub Jelinek <jakub@redhat.com>
2303 PR rtl-optimization/57003
2304 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
2305 call note_stores with kill_clobbered_value callback again after
2306 killing regs_invalidated_by_call.
2308 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
2310 * config/aarch64/aarch64-simd.md
2311 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
2312 (aarch64_simd_bsl<mode>): Likewise.
2313 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
2315 2013-04-25 Marek Polacek <polacek@redhat.com>
2317 PR tree-optimization/57066
2318 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
2320 2013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
2322 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
2324 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
2326 * config/aarch64/aarch64-builtins.c
2327 (aarch64_fold_builtin): New.
2328 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
2329 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
2330 * config/aarch64/aarch64-simd-builtins.def (abs): New.
2331 * config/aarch64/arm_neon.h
2332 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
2334 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
2335 Tejas Belagod <tejas.belagod@arm.com>
2337 * config/aarch64/aarch64-builtins.c
2338 (aarch64_gimple_fold_builtin): New.
2339 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
2340 * config/aarch64/aarch64-simd-builtins.def (addv): New.
2341 * config/aarch64/aarch64-simd.md (addpv4sf): New.
2343 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
2345 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2347 * config/aarch64/aarch64.md
2348 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
2350 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2352 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
2353 (*ngcsi_uxtw): New pattern.
2355 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2356 Julian Brown <julian@codesourcery.com>
2358 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
2359 (TB_DREG): Add T_V4HF.
2360 (v4hf_UP): New macro.
2361 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
2362 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
2363 Handle initialisation of V4HF. Adjust initialisation of reinterpret
2365 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
2366 (arm_vector_mode_supported_p): Handle V4HF.
2367 (arm_mangle_map): Handle V4HFmode.
2368 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
2369 * config/arm/arm_neon_builtins.def: Add entries for
2370 vcvtv4hfv4sf, vcvtv4sfv4hf.
2371 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
2372 (neon_vcvtv4hfv4sf): Likewise.
2373 * config/arm/neon-gen.ml: Handle half-precision floating point
2375 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
2376 * config/arm/arm_neon.h: Regenerate.
2377 * config/arm/neon.ml (type elts): Add F16.
2378 (type vectype): Add T_float16x4, T_floatHF.
2379 (type vecmode): Add V4HF.
2380 (type features): Add Requires_FP_bit feature.
2381 (elt_width): Handle F16.
2382 (elt_class): Likewise.
2383 (elt_of_class_width): Likewise.
2384 (mode_of_elt): Refactor.
2385 (type_for_elt): Handle F16, fix error messages.
2386 (vectype_size): Handle T_float16x4.
2387 (vcvt_sh): New function.
2388 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
2389 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
2390 (string_of_mode): Handle V4HF.
2391 * doc/arm-neon-intrinsics.texi: Regenerate.
2393 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
2395 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
2396 format specifier in 'X' case.
2398 2013-04-25 Alan Modra <amodra@gmail.com>
2401 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
2402 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
2403 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
2404 Repeat for many other rotate/shift and mask patterns using subregs.
2405 Name lshiftrt insns.
2406 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
2407 on WORDS_BIG_ENDIAN.
2409 2013-04-25 Alan Modra <amodra@gmail.com>
2411 * config.gcc: Support little-endian powerpc-linux targets.
2412 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
2413 (LINK_OS_LINUX_SPEC): Define.
2414 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
2415 Preserve MASK_LITTLE_ENDIAN.
2416 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
2417 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
2418 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
2419 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
2420 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
2421 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
2422 Correct fp word order for little-endian. Don't shift toc entries
2423 smaller than a word for little-endian.
2424 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
2425 (bswapdi2 splits): Correct low-part subreg for little-endian.
2426 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
2427 low/high where such is correct only for be.
2428 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
2429 little-endian for -mcall-aixdesc.
2431 2013-04-25 Alan Modra <amodra@gmail.com>
2433 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
2434 replace_equiv_address_nv.
2436 2013-04-25 Alan Modra <amodra@gmail.com>
2438 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
2440 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
2443 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
2444 * rtl.h (struct rtx_def): ...
2446 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
2448 PR rtl-optimizations/57046
2449 * lra-constraints (split_reg): Set up lra_risky_transformations_p
2450 for multi-reg splits.
2452 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
2454 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
2456 2013-04-24 Sterling Augustine <saugustine@google.com>
2458 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
2459 (comp_dir_string, debug_str_dwo_section): New.
2460 (DEBUG_STR_DWO_SECTION): Rename to ...
2461 (DEBUG_DWO_STR_SECTION): ... this.
2462 (DEBUG_NORM_STR_SECTION): Delete.
2463 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
2464 (DEBUG_STR_DWO_SECTION_FLAGS): New.
2465 (find_AT_string): Move most logic to ...
2466 (find_AT_string_in_table): ... here. New.
2467 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
2468 add_skeleton_AT_string. Delete logic.
2469 (output_skeleton_debug_sections): Remove call to
2470 add_top_level_skeleton_die_attrs.
2471 (add_comp_dir_attribute): Move logic to comp_dir_string.
2472 (dwarf2out_init): Initialize debug_str_dwo_section.
2473 (output_indirect_string): Call find_string_form.
2474 (output_indirect_strings): Rewrite.
2475 (prune_unused_types): Empty skeleton_debug_str_hash.
2476 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
2477 (dwarf2out_finish): Call output_indirect_strings.
2479 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2481 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
2483 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
2485 * rtl.h (struct rtx_def): Add comment for field jump.
2486 (LRA_SUBREG_P): New macro.
2487 * recog.c (register_operand): Check LRA_SUBREG_P.
2488 * lra.c (lra): Add note at the end of RTL code. Align non-empty
2490 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
2491 (lra_final_code_change): Skip subreg change for operators.
2492 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
2493 if there are no operand changes.
2494 * lra-constraints.c (curr_insn_set): New.
2495 (match_reload): Set LRA_SUBREG_P.
2496 (emit_spill_move): Ditto.
2497 (check_and_process_move): Use curr_insn_set. Process only single
2498 set insns. Don't initialize sec_mem_p and change_p.
2499 (simplify_operand_subreg): Use LRA_SUBREG_P.
2500 (reg_in_class_p): New function.
2501 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
2502 of #ifdef. Add code to remove cycling.
2503 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
2504 non-null disp. Reload inner instead of disp when base and index
2505 are null. Try to put lo_sum into register.
2506 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
2507 (check_and_process_move): Move code for move cost check to
2508 simple_move_p. Remove equiv_substitution.
2509 (simple_move_p): New function.
2510 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
2511 curr_insn_set. Call check_and_process_move only for single set
2512 insns. Use the new function. Move call of check_and_process_move
2513 after operand equiv substitution and address process.
2515 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
2517 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
2518 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
2519 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
2521 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2523 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
2525 2013-04-24 Marek Polacek <polacek@redhat.com>
2527 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
2528 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
2529 (select_loops_exit_conditions): Likewise.
2530 (number_of_iterations_for_all_loops): Likewise.
2531 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
2532 (scev_analysis): Likewise.
2534 2013-04-02 Catherine Moore <clm@codesourcery.com>
2535 Chao-ying Fu <fu@mips.com>
2537 * config/mips/micromips.md (jraddiusp): New pattern.
2538 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
2539 instruction if possible.
2541 2013-04-24 Alan Modra <amodra@gmail.com>
2543 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
2545 2013-04-24 Julian Brown <julian@codesourcery.com>
2546 Chung-Lin Tang <cltang@codesourcery.com>
2548 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
2549 dependency behavior in enumeration type DIE generation. Add TODO note
2550 to comments about future DW_FORM_sdata/udata re-work of related code.
2552 2013-04-23 Lawrence Crowl <crowl@google.com>
2554 * Makefile.in: Update as needed below.
2556 * hash-table.h (class hash_table):
2557 Correct many methods with parameter types compare_type to the correct
2558 value_type. (Correct code was unlikely to notice the change.)
2559 (hash_table::elements_with_deleted) New.
2560 (class hashtable::iterator): New.
2561 (hashtable::begin()): New.
2562 (hashtable::end()): New.
2563 (FOR_EACH_HASH_TABLE_ELEMENT): New.
2565 * statistics.c (statistics_hashes):
2566 Change type to hash_table. Update dependent calls and types.
2568 * tree-into-ssa.c (var_infos):
2569 Change type to hash_table. Update dependent calls and types.
2571 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
2572 Change type to hash_table. Update dependent calls and types.
2574 * tree-ssa-loop-im.c (struct mem_ref.refs):
2575 Change type to hash_table. Update dependent calls and types.
2577 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
2578 Change type to hash_table. Update dependent calls and types.
2580 * tree-ssa-sccvn.c (vn_tables_s::nary):
2581 Change type to hash_table. Update dependent calls and types.
2582 (vn_tables_s::phis): Likewise.
2583 (vn_tables_s::references): Likewise.
2585 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
2586 (vn_reference_eq): Update parameter and return types.
2588 * tree-ssa-structalias.c (pointer_equiv_class_table):
2589 Change type to hash_table. Update dependent calls and types.
2590 (location_equiv_class_table): Likewise.
2592 * tree-vect-data-refs.c: Consequential changes for making
2593 peeling a hash_table.
2595 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
2596 (destroy_loop_vec_info): Dependent hash_table update.
2598 * tree-vectorizer.h (peeling_htab):
2599 Change type to hash_table. Update dependent calls and types.
2601 2013-04-23 Shiva Chen <shiva0217@gmail.com>
2603 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
2604 to check the register content is equal or not.
2605 * lra-constraints.c (match_reload): Use lra_assign_reg_val
2606 to assign register content record.
2607 * lra-eliminations.c (update_reg_eliminate): Use
2608 lra_update_reg_val_offset to update register content offset.
2609 * lra-int.h (struct lra_reg): Add offset member.
2610 (lra_reg_val_equal_p): New static inline function.
2611 (lra_update_reg_val_offset): New static inline function.
2612 (lra_assign_reg_val): New static inline function.
2613 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
2614 to assign register content record.
2615 (initialize_lra_reg_info_element): Initial offset to zero.
2617 2013-04-23 Catherine Moore <clm@codesourcery.com>
2619 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
2620 operands. Record compression.
2622 2013-04-23 Xinliang David Li <davidxl@google.com>
2624 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
2626 2013-04-23 Richard Biener <rguenther@suse.de>
2629 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
2630 parameter, only add abnormal goto edges from the copied body
2631 if the call could perform abnormal gotos.
2632 (copy_cfg_body): Adjust.
2634 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
2636 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
2638 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
2640 * coretypes.h (gimple_stmt_iterator): Add struct to make
2643 2013-04-23 Richard Biener <rguenther@suse.de>
2645 PR tree-optimization/57026
2646 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
2647 from SSA names occuring in abnormal PHI nodes.
2649 2013-04-22 Andi Kleen <ak@linux.intel.com>
2651 * lto/lto.c (print_lto_report_1): Fix LTO report names.
2653 2013-04-22 Andi Kleen <ak@linux.intel.com>
2655 * lto/lto.c (print_lto_report_1): Declare early.
2656 (read_cgraph_and_symbols): Call print_lto_report_1 early.
2658 2013-04-22 Andi Kleen <ak@linux.intel.com>
2660 * common.opt (-flto-report-wpa): Add.
2661 * doc/invoke.texi (-flto-report-wpa): Add.
2662 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
2665 2013-04-22 Xinliang David Li <davidxl@google.com>
2667 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
2668 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
2669 * Makefile.in: New dependency
2671 David Daney <ddaney.cavm@gmail.com>
2673 * configure.ac (gcc_cv_as_micromips_support): Use the
2674 --fatal-warnings option.
2675 * configure: Regenerate.
2677 2013-04-22 Marek Polacek <polacek@redhat.com>
2680 * tsan.c (instrument_expr): Don't instrument expression
2681 in case its size is zero.
2683 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
2687 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
2689 * config/alpha/alpha.c (TARGET_LRA_P): New define.
2691 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
2693 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
2694 (gimple_stmt_iterator): New typedef.
2695 * gimple.h (gimple_stmt_iterator): Rename to...
2696 (gimple_stmt_iterator_d): ... This.
2697 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
2698 trees be valid for GIMPLE and GENERIC.
2699 (TARGET_GIMPLE_FOLD_BUILTIN): New.
2700 * gimple-fold.c (gimple_fold_call): Call target hook
2701 gimple_fold_builtin.
2702 * hooks.c (hook_bool_gsiptr_false): New.
2703 * hooks.h (hook_bool_gsiptr_false): New.
2704 * target.def (fold_stmt): New.
2705 * doc/tm.texi: Regenerate.
2707 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
2710 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
2711 a set sp if no stack realignment.
2713 2013-04-22 Nick Clifton <nickc@redhat.com>
2715 * config.gcc (tilegx-linux): Extend extra_objs rather than
2717 (tilepro-linux): Likewise.
2719 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
2721 * config/aarch64/aarch64-builtins.c
2723 (CF0, CF1, CF2, CF3, CF4, CF10): New.
2724 (VAR<1-12>): Add MAP parameter.
2725 (BUILTIN_*): Likewise.
2726 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
2727 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
2728 (aarch64_ushl_n<mode>): Likewise.
2729 (aarch64_sshr_n<mode>): Likewise.
2730 (aarch64_ushr_n<mode>): Likewise.
2731 (aarch64_<maxmin><mode>): Likewise.
2732 (aarch64_sqrt<mode>): Likewise.
2733 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
2734 (vshr<q>_n_*): Likewise.
2736 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
2738 * config/aarch64/aarch64-builtins.c
2739 (aarch64_simd_builtin_type_mode): Handle SF types.
2741 (BUILTIN_GPF): Define.
2742 (aarch64_init_simd_builtins): Handle SF types.
2743 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
2746 * config/aarch64/aarch64-simd.md
2747 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
2748 (aarch64_frecpe<mode>): New.
2749 (aarch64_frecps<mode>): Likewise.
2750 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
2751 (v8type): Add frecp<esx>.
2752 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
2753 (aarch64_frecps<mode>): Likewise.
2754 * config/aarch64/iterators.md (FRECP): New.
2755 (frecp_suffix): Likewise.
2756 * config/aarch64/arm_neon.h
2757 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
2759 2013-04-22 Christian Bruel <christian.bruel@st.com>
2762 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
2763 (REG_CLASS_NAMES): Idem.
2764 (REG_CLASS_CONTENTS): Idem.
2765 (REGCLASS_HAS_FP_REG): Idem.
2766 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
2767 (sh_conditional_register_usage): Idem.
2769 2013-04-21 Jeff Law <law@redhat.com>
2771 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
2772 (ssa_forward_propagate_and_combine): Use it.
2774 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
2776 * lra.c: Update the flow chart diagram.
2778 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
2780 PR rtl-optimization/56847
2781 * lra-constraints.c (process_alt_operands): Discourage alternative
2782 with non-matche doffsettable memory constraint fro memory with
2785 2013-04-19 Richard Biener <rguenther@suse.de>
2787 PR tree-optimization/56982
2788 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
2790 * gimplify.c (gimplify_call_expr): Notice special calls.
2791 (gimplify_modify_expr): Likewise.
2792 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
2793 abnormal control flow receivers.
2794 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
2795 in the same way as cfun->has_nonlocal_labels.
2796 (gimple_purge_dead_abnormal_call_edges): Likewise.
2797 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
2798 receivers start a basic-block.
2800 2013-04-19 Richard Biener <rguenther@suse.de>
2802 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
2804 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
2805 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
2806 (SLP_TREE_LOAD_PERMUTATION): Add.
2807 (vect_transform_slp_perm_load): Adjust prototype.
2808 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
2809 (vect_free_slp_instance): Likewise.
2810 (vect_create_new_slp_node): Likewise.
2811 (vect_supported_slp_permutation_p): Remove.
2812 (vect_slp_rearrange_stmts): Adjust.
2813 (vect_supported_load_permutation_p): Likewise. Inline
2814 vect_supported_slp_permutation_p here.
2815 (vect_analyze_slp_instance): Compute load permutations per
2816 slp node instead of per instance.
2817 (vect_get_slp_defs): Adjust.
2818 (vect_transform_slp_perm_load): Likewise.
2819 (vect_schedule_slp_instance): Remove redundant code.
2820 (vect_schedule_slp): Remove hack for PR56270, add it ...
2821 * tree-vect-stmts.c (vectorizable_load): ... here, do not
2822 CSE loads for SLP. Adjust.
2824 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
2826 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
2827 spelling in two comments.
2829 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
2832 * config/arm/arm.c (load_multiple_sequence): Require SP
2833 as base register for loads if SP is in the register list.
2835 2013-04-19 Martin Jambor <mjambor@suse.cz>
2837 PR tree-optimization/56718
2838 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
2839 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
2840 and made public. Adjusted all callers.
2841 (ipa_intraprocedural_devirtualization): New function.
2842 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
2843 (ipa_intraprocedural_devirtualization): Likewise.
2844 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
2846 2013-04-19 Richard Biener <rguenther@suse.de>
2848 PR tree-optimization/57000
2849 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
2851 2013-04-19 Terry Guo <terry.guo@arm.com>
2853 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
2855 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
2856 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
2857 (cortex_m4_fmacs): Use new reservations.
2858 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
2860 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
2862 PR rtl-optimization/56999
2863 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
2865 (lra_coalesce): Remove split_origin_bitmap and related code.
2866 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
2867 ranges if necessary.
2869 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
2871 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
2873 (ix86_expand_call): Remove clobbered_registers array and use
2874 x86_64_ms_sysv_extra_clobbered_registers instead.
2875 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
2877 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
2879 * config/i386/i386.md (*call_rex64_ms_sysv): Use
2880 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
2881 (*call_value_rex64_ms_sysv): Ditto.
2883 2013-04-18 Cary Coutant <ccoutant@google.com>
2885 * dwarf2out.c (output_pubnames): Check die_perennial_p of
2886 parent instead of die_mark.
2888 2013-04-18 Diego Novillo <dnovillo@google.com>
2890 * gimple.c (create_gimple_tmp): New.
2891 (get_expr_type): New.
2892 (build_assign): New.
2893 (build_type_cast): New.
2894 * gimple.h (enum ssa_mode): Define.
2895 (gimple_seq_set_location): New.
2896 * asan.c (build_check_stmt): Change some gimple_build_* calls
2897 to use build_assign and build_type_cast.
2899 2013-04-18 Richard Biener <rguenther@suse.de>
2901 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
2902 handle negative step. Remove redundant checks.
2903 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
2904 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
2905 for negative step and grouped loads fail to vectorize.
2907 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
2909 * emit-rtl.c (reset_insn_used_flags): New function.
2910 (reset_all_used_flags): Use it.
2911 (verify_insn_sharing): New function.
2912 (verify_rtl_sharing): Fix verification for SEQUENCEs.
2914 2013-04-18 Jakub Jelinek <jakub@redhat.com>
2916 PR tree-optimization/56984
2917 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
2918 and (x >> M) >= N don't register any assertion if N << M is the
2921 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
2923 * lower-subreg.c (resolve_simple_move): If called self-recursive,
2924 do not delete_insn insns that have not yet been emitted, only
2925 unlink them with remove_insn.
2926 * df-scan.c (df_insn_delete): Revert r197492.
2928 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
2930 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
2931 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
2933 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
2935 * config/arm/arm.md (movsicc_insn): Convert define_insn into
2936 define_insn_and_split.
2937 (and_scc,ior_scc,negscc): Likewise.
2938 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
2940 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
2942 * config/arm/arm.c (use_return_insn): Return 0 for targets that
2943 can benefit from using a sequence of LDRD instructions in epilogue
2944 instead of a single LDM instruction.
2946 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
2949 * doc/extend.texi: Fix typo.
2951 2013-04-17 Richard Biener <rguenther@suse.de>
2953 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
2954 (vect_build_slp_tree): ... here.
2955 (vect_build_slp_tree_1): Compute which stmts of the SLP group
2956 match. Remove special-casing of mismatched complex loads.
2957 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
2958 re-try the match with swapped commutative operands.
2959 (vect_supported_load_permutation_p): Remove special-casing of
2960 mismatched complex loads.
2961 (vect_analyze_slp_instance): Adjust.
2963 2013-04-17 Richard Biener <rguenther@suse.de>
2965 PR rtl-optimization/56921
2966 * cfgloop.h (struct loop): Add simple_loop_desc member.
2967 (struct niter_desc): Mark with GTY(()).
2968 (simple_loop_desc): Do not use aux field but simple_loop_desc.
2969 * loop-iv.c (get_simple_loop_desc): Likewise.
2970 (free_simple_loop_desc): Likewise.
2973 2013-04-16 Richard Biener <rguenther@suse.de>
2975 PR rtl-optimization/56921
2976 * loop-init.c (pass_rtl_move_loop_invariants): Add
2977 TODO_do_not_ggc_collect to todo_flags_finish.
2978 (pass_rtl_unswitch): Same.
2979 (pass_rtl_unroll_and_peel_loops): Same.
2980 (pass_rtl_doloop): Same.
2982 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
2984 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
2985 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
2986 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
2988 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
2989 * tree-streamer.c (record_common_node): Adjust reference in comment.
2991 2013-04-17 Terry Guo <terry.guo@arm.com>
2993 * config/arm/cortex-m4.md: Add a new bypass.
2995 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2997 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
2999 (*subs_<optab><mode>_multp2): New pattern.
3000 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
3001 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
3003 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3005 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
3006 (*subs_mul_imm_<mode>): New pattern.
3008 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
3011 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
3012 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
3013 (vsx_movti_32bit): Change j->wa to O->wa.
3015 2013-04-16 Richard Biener <rguenther@suse.de>
3017 PR rtl-optimization/56921
3018 * loop-init.c (pass_rtl_move_loop_invariants): Add
3019 TODO_do_not_ggc_collect to todo_flags_finish.
3020 (pass_rtl_unswitch): Same.
3021 (pass_rtl_unroll_and_peel_loops): Same.
3022 (pass_rtl_doloop): Same.
3024 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
3026 * config/arm/arm.c (emit_multi_reg_push): New declaration
3027 for an existing function.
3028 (arm_emit_strd_push): New function.
3029 (arm_expand_prologue): Used here.
3030 (arm_emit_ldrd_pop): New function.
3031 (arm_expand_epilogue): Used here.
3032 (arm_get_frame_offsets): Update condition.
3033 (arm_emit_multi_reg_pop): Add a special case for load of a single
3034 register with writeback.
3036 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
3038 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
3041 2013-04-16 Richard Biener <rguenther@suse.de>
3043 PR tree-optimization/56756
3044 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
3045 (first_mem_ref_loc): New.
3046 (execute_sm): Place the load temporarily before a previous
3047 access instead of in the latch edge to ensure its SSA dependencies
3048 are defined at points dominating the load.
3050 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
3052 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
3053 correct fix by moving header and footer insn to the footer of
3054 the merged basic block. Clear BB_END of the merged-away block.
3057 * emit-rtl.c (make_note_raw): New function.
3058 (link_insn_into_chain): New static inline function.
3060 (add_insn_before, add_insn_after): Factor insn chain linking code...
3061 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
3062 using link_insn_into_chain.
3063 (note_outside_basic_block_p): New helper function for emit_note_after
3064 and emit_note_before.
3065 (emit_note_after): Use nobb variant of add_insn_after if the note
3066 should not be contained in a basic block.
3067 (emit_note_before): Use nobb variant of add_insn_before if the note
3068 should not be contained in a basic block.
3069 (emit_note_copy): Use make_note_raw.
3070 (emit_note): Likewise.
3071 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
3072 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
3073 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
3074 the moved barrier the tail of the basic block it follows.
3075 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
3077 2013-04-15 Jakub Jelinek <jakub@redhat.com>
3079 PR tree-optimization/56962
3080 * gimple-ssa-strength-reduction.c (record_increment): Only set
3081 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
3082 either rhs1 or rhs2 is equal to c->base_expr.
3084 2013-04-15 Richard Biener <rguenther@suse.de>
3086 PR tree-optimization/56933
3087 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
3089 (GROUP_READ_WRITE_DEPENDENCE): Remove.
3090 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
3091 * tree-vect-data-refs.c (vect_analyze_group_access): Move
3092 dependence check ...
3093 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
3095 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
3096 GROUP_READ_WRITE_DEPENDENCE.
3098 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3100 * emit-rtl.c (reset_all_used_flags): New function.
3101 (verify_rtl_sharing): Call reset_all_used_flags before and after
3102 performing the checks.
3104 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3106 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
3107 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
3108 * config/arm/constraints.md (De): New constraint.
3109 * config/arm/neon.md (anddi3_neon): Delete.
3110 (neon_vand<mode>): Expand to standard anddi3 pattern.
3111 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
3112 Move earlier in the file.
3113 (neon_inv_logic_op2): Likewise.
3114 (arm_anddi_operand_neon): New predicate.
3116 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3118 * configure.ac (gcc_cv_ld_as_needed): Set
3119 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
3120 Use -z ignore, -z record on *-*-solaris2*.
3121 (HAVE_LD_AS_NEEDED): Update comment.
3122 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
3123 * configure: Regenerate.
3124 * config.in: Regenerate.
3125 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
3126 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
3127 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
3128 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
3129 equivalents. Fix markup.
3130 * doc/tm.texi: Regenerate.
3132 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
3134 * config/i386/i386.opt: New option mstack-protector-guard=.
3135 * config/i386/i386-opts.h: Add enum stack_protector_guard.
3136 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
3137 TARGET_SSP_TLS_GUARD.
3138 * config/i386/i386.c (ix86_option_override_internal): Set
3139 ix86_stack_protector_guard.
3140 * config/i386/i386.md (stack_protect_set): Enable for
3141 TARGET_SSP_TLS_GUARD only.
3142 (stack_protect_set_<mode>): Ditto.
3143 (stack_protect_test): Ditto.
3144 (stack_protect_test_<mode>): Ditto.
3145 * doc/invoke.texi (i386 Option): Document.
3147 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
3150 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
3151 (S_MODES): Set H_MODE bit.
3152 (SF_MODES): Set only S_MODE and SF_MODE bits.
3153 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
3154 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
3155 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
3156 <MODE_FLOAT>: Likewise.
3158 2013-04-15 Joey Ye <joey.ye@arm.com>
3160 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
3162 2013-04-15 Joey Ye <joey.ye@arm.com>
3164 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
3166 (thumb_far_jump_used_p): Count instruction size and set
3169 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
3171 * reorg.c (fill_simple_delay_slots): Reindent block of code.
3172 * resource.c (mark_target_live_regs): Reformat conditional block.
3174 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
3176 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
3177 notes, they are emitted only just before final.
3178 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
3180 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
3182 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
3183 * cfgrtl.c (delete_insn): Call it here instead.
3184 * lra-spills.c (lra_final_code_change): Use delete_insn.
3185 * haifa-sched.c (sched_remove_insn): Likewise.
3186 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
3187 returning to the nop pool.
3188 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
3189 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
3191 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
3193 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
3194 * doc/tm.texi: Regenerated.
3196 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
3198 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
3201 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
3203 * df-core.c (df_find_def): Compare register numbers.
3204 (df_find_use): Likewise.
3206 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
3209 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
3210 lra_in_progress for return.
3212 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
3214 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
3215 define_insn into define_insn_and_split and emit movsicc patterns.
3217 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
3219 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
3221 2013-04-12 Richard Biener <rguenther@suse.de>
3223 * tree-pass.h (TODO_do_not_ggc_collect): New.
3224 * passes.c (execute_one_ipa_transform_pass): Honor
3225 TODO_do_not_ggc_collect.
3226 (execute_one_pass): Likewise.
3229 2013-04-10 Richard Biener <rguenther@suse.de>
3231 * passes.c (init_optimization_passes): Remove reload pass.
3232 * ira.c (do_reload): Merge into ...
3234 (rest_of_handle_reload): Remove.
3235 (pass_reload): Likewise.
3236 * config/i386/i386.c (ix86_option_override): Refer to ira instead
3237 of reload for vzeroupper pass placement.
3239 2013-04-12 Jakub Jelinek <jakub@redhat.com>
3241 PR tree-optimization/56918
3242 PR tree-optimization/56920
3243 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
3244 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
3245 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
3246 use wide_mul_with_sign method.
3248 2013-04-12 Richard Biener <rguenther@suse.de>
3250 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
3251 not be considered a gimple constant.
3253 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
3255 * fold-const.c (const_binop): Handle vector shifts by a scalar.
3256 (fold_binary_loc): Call const_binop also for mixed vector-scalar
3259 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
3260 Jakub Jelinek <jakub@redhat.com>
3262 * opts.c: Include diagnostic-color.h.
3263 (common_handle_option): Handle OPT_fdiagnostics_color_.
3264 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
3265 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
3266 (diagnostic-color.o): New.
3267 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
3268 (diagnostic_color_rule): New enum.
3269 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
3270 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
3271 the location string.
3272 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
3273 either NULL, or color kind.
3274 * diagnostic-color.c: New file.
3275 * diagnostic-color.h: New file.
3276 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
3278 * doc/invoke.texi (-fdiagnostics-color): Document.
3279 * pretty-print.h (pp_show_color): Define.
3280 (struct pretty_print_info): Add show_color field.
3281 * diagnostic.c: Include diagnostic-color.h.
3282 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
3283 macros. Colorize error:, warning: etc. strings and also the location
3285 (diagnostic_show_locus): Colorize the caret line.
3286 * pretty-print.c: Include diagnostic-color.h.
3287 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
3288 inside of %< %> quotes or quoted through q format modifier.
3290 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3292 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
3294 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3296 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
3298 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
3301 2013-04-11 Marek Polacek <polacek@redhat.com>
3303 PR tree-optimization/48184
3304 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
3306 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
3308 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
3309 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
3310 (skip_simple_arithmetic): Tidy up.
3311 * tree.h (skip_simple_constant_arithmetic): Declare.
3313 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3315 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
3317 2013-04-11 Richard Biener <rguenther@suse.de>
3319 * tree-vect-loop.c (get_initial_def_for_induction): Properly
3320 generate vector constants.
3322 2013-04-11 Richard Biener <rguenther@suse.de>
3324 PR tree-optimization/56878
3325 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
3326 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
3328 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3329 Prefer to align the DR with the most invariant base address.
3331 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3333 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
3336 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
3338 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
3339 floating-point vector comparisons against 0.
3341 2013-04-11 Jakub Jelinek <jakub@redhat.com>
3343 PR tree-optimization/56899
3344 * fold-const.c (extract_muldiv_1): Apply distributive law
3345 only if TYPE_OVERFLOW_WRAPS (ctype).
3347 2013-04-11 Bin Cheng <bin.cheng@arm.com>
3350 * ira-costs.c (scan_one_insn): Check whether the source rtx of
3351 loading has side effect.
3353 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
3355 * config/sparc/sparc.c: Include tree-pass.h.
3356 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
3357 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
3358 head of file. Change return type. Split off gate function.
3359 (sparc_gate_work_around_errata): New function.
3360 (pass_work_around_errata): New pass definition.
3361 (insert_pass_work_around_errata) New pass insert definition to
3362 insert pass_work_around_errata just after delayed-branch scheduling.
3363 (sparc_option_override): Insert the pass.
3364 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
3366 2013-04-10 David S. Miller <davem@davemloft.net>
3368 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
3369 or -mcpu=hypersparc.
3371 * target.def (cstore_mode): New hook.
3372 * target.h: Include insn-codes.h
3373 * targhooks.c: Likewise.
3374 (default_cstore_mode): New function.
3375 * targhooks.h: Declare it.
3376 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
3377 * doc/tm.texi: Rebuild.
3378 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
3379 target hook, rather than inspecting the insn_data.
3380 * config/sparc/sparc.c (sparc_cstore_mode): New function.
3381 (TARGET_CSTORE_MODE): Redefine.
3382 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
3384 * config/sparc/predicates.md (cstore_result_operand): New special
3386 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
3387 Use it for operand 0.
3388 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
3389 (*snesi_special): Likewise.
3390 (*snesi_zero): Likewise.
3391 (*seqsi_zero): Likewise.
3392 (*sltu_insn): Likewise.
3393 (*sgeu_insn): Likewise.
3394 (*seqdi_special): Make operand 0 and comparison operation be of
3396 (*snedi_special): Likewise.
3397 (*snedi_special_vis3): Likewise.
3398 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
3399 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
3400 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
3401 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
3402 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
3403 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
3404 (*sltu_extend_sp64): Likewise.
3405 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
3406 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
3407 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
3408 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
3409 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
3411 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
3413 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
3414 (aarch64_start_file): Use the new function.
3416 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3417 Jason Merrill <jason@redhat.com>
3419 * common.opt: Add -gdwarf.
3420 * opts.c (common_handle_option): Handle it.
3421 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
3423 2013-04-10 Richard Biener <rguenther@suse.de>
3425 * passes.c (execute_todo): Do not call ggc_collect conditional here.
3426 (execute_one_ipa_transform_pass): But unconditionally here.
3427 (execute_one_pass): And here.
3428 (init_optimization_passes): Remove reload pass.
3429 * tree-pass.h (TODO_ggc_collect): Remove.
3430 (pass_reload): Likewise.
3431 * ira.c (do_reload): Merge into ...
3433 (rest_of_handle_reload): Remove.
3434 (pass_reload): Likewise.
3435 * config/i386/i386.c (ix86_option_override): Refer to ira instead
3436 of reload for vzeroupper pass placement.
3437 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
3438 and todo_flags_finish of all passes.
3440 2013-04-10 Richard Biener <rguenther@suse.de>
3442 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
3443 first_const_oprnd field, rename first_def_type to first_op_type.
3444 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
3445 (vect_get_and_check_slp_defs): Always use the type of the
3446 operand. Allow mixed vect_external_def, vect_constant_def types.
3447 (vect_get_constant_vectors): Handle mixed vect_external_def,
3448 vect_constant_def types.
3450 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
3452 PR tree-optimization/55524
3453 * tree-ssa-math-opts.c
3454 (convert_mult_to_fma): Don't use an fms construct
3455 when we don't have an fms operation, but fnma, and it looks
3456 likely that we'll be able to use the latter.
3458 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
3460 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
3462 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
3463 inline fail caused by overwritable functions.
3465 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
3467 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
3468 unnecessary bits in the constant power of two case.
3470 2013-04-10 Richard Biener <rguenther@suse.de>
3472 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
3473 broken code swapping operands.
3474 (vect_build_slp_tree): Do not compute load permutations here.
3475 (vect_analyze_slp_instance): Compute load permutations here,
3476 after building the SLP tree.
3478 2013-04-09 Christian Bruel <christian.bruel@st.com>
3480 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
3481 of next/prev_real_insn.
3483 2013-04-09 Jan Hubicka <jh@suse.cz>
3485 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
3486 Drop aliased parameter.
3487 (function_and_variable_visibility): Do not handle alias pairs.
3488 * cgraph.c (varpool_externally_visible_p): Update prototype.
3489 * varpool.c (varpool_add_new_variable): Update.
3491 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3493 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
3495 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
3497 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
3499 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
3501 2013-04-09 Marek Polacek <polacek@redhat.com>
3503 PR tree-optimization/48762
3504 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
3506 2013-04-09 Richard Biener <rguenther@suse.de>
3508 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
3510 (vect_build_slp_tree): Likewise.
3511 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
3512 calculating the cost of a SLP instance.
3513 (vect_analyze_slp_instance): Use it from here, after building
3516 2013-04-09 Jakub Jelinek <jakub@redhat.com>
3519 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
3520 expand_omp_for_static_chunk): Use simple_p = true in
3521 force_gimple_operand_gsi calls when assigning to addressable decls.
3523 2013-04-09 Jeff Law <law@redhat.com>
3525 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
3526 when the boolean was created by converting a wider object which
3527 had a boolean range.
3529 2013-04-09 Richard Biener <rguenther@suse.de>
3531 * tree-vectorizer.h (slp_void_p): Remove.
3532 (slp_tree): Typedef before _slp_tree declaration.
3533 (struct _slp_tree): Use a vector of slp_tree as children.
3534 (vect_get_place_in_interleaving_chain): Remove.
3535 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
3537 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
3539 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
3540 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
3541 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
3542 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
3543 Use slp_node instead of slp_void_p and adjust.
3545 2013-04-09 Richard Biener <rguenther@suse.de>
3547 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
3548 work that is not necessary.
3550 2013-04-09 Jakub Jelinek <jakub@redhat.com>
3552 PR tree-optimization/56854
3553 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
3554 forward into clobber stmts if it would change MEM_REF lhs into
3557 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
3559 * tree.c (type_hash_lookup, type_hash_add): Make static.
3560 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
3562 2013-04-09 Richard Biener <rguenther@suse.de>
3564 * tree.h (unsave_expr_now): Remove.
3565 * tree-inline.c (mark_local_for_remap_r): Remove.
3566 (unsave_expr_1): Likewise.
3567 (unsave_r): Likewise.
3568 (unsave_expr_now): Likewise.
3569 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
3570 (propagate_tree_value): Likewise.
3572 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
3574 * doc/rtl.texi (sequence): Rewrite documentation to match the
3575 current use of SEQUENCE rtl objects.
3576 * rtl.def (SEQUENCE): Likewise.
3578 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
3579 Update documentation.
3580 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
3581 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
3583 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
3585 2013-04-08 Teresa Johnson <tejohnson@google.com>
3587 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
3588 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
3590 (estimate_edge_size_and_time): Add comment to suggest using rounding
3592 (estimate_node_size_and_time): Ditto.
3593 (remap_edge_change_prob): Use helper rounding divide methods.
3594 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
3595 (gimple_mod_pow2_value_transform): Ditto.
3596 (gimple_mod_subtract_transform): Ditto.
3597 (gimple_ic_transform): Ditto.
3598 (gimple_stringops_transform): Ditto.
3599 * stmt.c (conditional_probability): Ditto.
3600 (emit_case_dispatch_table): Ditto.
3601 * lto-cgraph.c (merge_profile_summaries): Ditto.
3602 * tree-optimize.c (execute_fixup_cfg): Ditto.
3603 * cfgcleanup.c (try_forward_edges): Ditto.
3604 * cfgloopmanip.c (scale_loop_profile): Ditto.
3606 (duplicate_loop_to_header_edge): Ditto.
3607 (lv_adjust_loop_entry_edge): Ditto.
3608 * tree-vect-loop.c (vect_transform_loop): Ditto.
3609 * profile.c (compute_branch_probabilities): Ditto.
3610 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
3611 * lto-streamer-in.c (input_cfg): Ditto.
3612 * gimple-streamer-in.c (input_bb): Ditto.
3613 * ipa-cp.c (update_profiling_info): Ditto.
3614 (update_specialized_profile): Ditto.
3615 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
3616 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
3618 * sched-rgn.c (compute_dom_prob_ps): Ditto.
3619 (compute_trg_info): Ditto.
3620 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
3621 (purge_dead_edges): Ditto.
3622 * loop-unswitch.c (unswitch_loop): Ditto.
3623 * cgraphclones.c (cgraph_clone_edge): Ditto.
3624 (cgraph_clone_node): Ditto.
3625 * tree-inline.c (copy_bb): Ditto.
3626 (copy_edges_for_bb): Ditto.
3627 (initialize_cfun): Ditto.
3628 (copy_cfg_body): Ditto.
3629 (expand_call_inline): Ditto.
3631 2013-04-08 Kai Tietz <ktietz@redhat.com>
3633 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
3634 TARGET_CYGWIN64 by TARGET_64BIT.
3636 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
3638 * config/epiphany/epiphany.md (GPR_1): New constant.
3639 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
3640 * config/epiphany/epiphany.c (gen_compare_reg):
3641 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
3642 is already in place.
3643 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
3644 Don't require being called during rtl expansion; If y operlaps r0,
3646 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
3647 (epiphany_expand_epilogue): Likewise.
3649 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
3650 Don't use CC_FPmode for ORDERED / UNORDERED.
3651 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
3653 * config/epiphany/constraints.md (CnL): New constraint.
3654 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
3655 * config/epiphany/predicates.md (add_operand): Allow 1024.
3657 * config/epiphany/epiphany.md (logical_op): New code iterator.
3658 (op_mnc): New code attribute.
3659 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
3660 (mov_f+1, mov_f+2): New peephole2 patterns.
3662 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
3663 (cstoresi4): Also allow re-use of zero result when doing a NE
3664 comparison to a non-zero operand.
3665 Use (clobber (scratch)) for first insn if the gpr output is not needed.
3667 * config/epiphany/epiphany.md (<insn_opname>v2si3):
3668 Use gen_addsi3_i / gen_subsi3_i.
3670 2013-04-08 Jakub Jelinek <jakub@redhat.com>
3674 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
3675 contain anything but clobbers, at most one __builtin_stack_restore,
3676 optionally debug stmts and final resx, and if it has at least one
3677 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
3678 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
3679 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
3680 which isn't defaut definition, remove them.
3681 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
3682 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
3683 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
3684 with MEM_REF LHS with SSA_NAME address.
3686 2013-04-08 Jeff Law <law@redhat.com>
3688 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
3690 2013-04-08 Richard Biener <rguenther@suse.de>
3692 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
3694 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
3695 determined vector type.
3696 (vect_analyze_data_refs): Likewise.
3697 (vect_get_new_vect_var): Adjust.
3698 (vect_create_destination_var): Preserve SSA name versions.
3699 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
3700 not dump anything here.
3702 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
3704 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
3705 Add member lr_slot_known.
3706 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
3708 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
3709 Remove code that sets lr_slot_offset according to what a previous
3710 version of epiphany_emit_save_restore used to do.
3711 (epiphany_emit_save_restore): When doing an lr save or restore,
3712 set/verify lr_slot_known and lr_slot_offset.
3714 2013-04-08 Xinyu Qi <xyqi@marvell.com>
3717 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
3720 2013-04-08 Richard Biener <rguenther@suse.de>
3722 * alias.c (find_base_term): Fix thinko in previous change.
3724 2013-04-08 Jakub Jelinek <jakub@redhat.com>
3726 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
3727 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
3728 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
3729 if possible to compute val.
3730 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
3731 For QImode integers don't require anything about precision. Use
3732 const_with_all_bytes_same to find out if the constant doesn't have
3733 repeated bytes in it.
3735 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3737 * config/s390/s390.c (s390_expand_insv): Only accept insertions
3740 2013-04-08 Marek Polacek <polacek@redhat.com>
3742 PR rtl-optimization/48182
3743 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
3746 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3749 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
3750 nuses, make sure we have a label.
3752 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3755 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
3756 (rs6000_emit_swdiv_low_precision): Remove.
3757 (rs6000_emit_swdiv): Rewrite to handle between one and four
3758 iterations of Newton-Raphson generally; modify required number of
3759 iterations for some cases.
3760 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
3762 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
3764 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
3765 set-but-unused variable.
3767 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
3768 basic blocks of released function bodies garbage-collectable.
3770 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
3771 (struct rtl_opt_pass): Add TODO_df_finish.
3773 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
3775 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3777 * config/arm/constraints.md (q): New constraint.
3778 * config/arm/ldrdstrd.md: New file.
3779 * config/arm/arm.md (ldrdstrd.md) New include.
3780 (arm_movdi): Use "q" instead of "r" constraint
3781 for double-word memory access.
3782 (movdf_soft_insn): Likewise.
3783 * config/arm/vfp.md (movdi_vfp): Likewise.
3784 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
3785 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
3786 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
3787 (mem_ok_for_ldrd_strd): Likewise.
3788 (output_move_double): Update assertion.
3790 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3792 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
3794 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3796 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
3797 define_insn_and_split.
3798 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
3800 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3802 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
3803 define_insn_and_split.
3804 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
3805 (shiftsi3_compare): New pattern.
3807 * config/arm/unspecs.md (UNSPEC_RRX): New.
3809 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3811 * config/arm/arm.md (negdi_extendsidi): New pattern.
3812 (negdi_zero_extendsidi): Likewise.
3814 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3816 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
3817 define_insn_and_split.
3818 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
3819 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
3821 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3823 * config/arm/arm.md (arm_subdi3): Convert define_insn into
3824 define_insn_and_split.
3825 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
3826 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
3828 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3830 * config/arm/arm.md (subsi3_carryin): New pattern.
3831 (subsi3_carryin_const): Likewise.
3832 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
3833 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
3835 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3837 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
3839 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3841 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
3842 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
3844 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3846 * config/arm/arm.c (arm_expand_builtin): Change fcode
3847 type to unsigned int.
3849 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3851 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
3853 2013-04-04 Ian Lance Taylor <iant@google.com>
3855 * doc/standards.texi (Standards): The Go frontend supports the Go 1
3858 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
3861 * df-scan.c (df_insn_delete): Disable failing assert.
3863 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3865 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
3866 New function prototype.
3867 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
3868 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
3869 (arm_builtin_vectorized_function): New function.
3871 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3873 * config/arm/arm_neon_builtins.def: New file.
3874 * config/arm/arm.c (neon_builtin_data): Move contents to
3875 arm_neon_builtins.def.
3876 (enum arm_builtins): Include neon builtin definitions.
3877 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
3878 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
3880 2013-04-04 Marek Polacek <polacek@redhat.com>
3882 PR tree-optimization/48186
3883 * predict.c (maybe_hot_frequency_p): Return false if
3884 HOT_BB_FREQUENCY_FRACTION is 0.
3885 (cgraph_maybe_hot_edge_p): Likewise.
3887 2013-04-04 Richard Biener <rguenther@suse.de>
3889 PR tree-optimization/56826
3890 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
3893 2013-04-04 Richard Biener <rguenther@suse.de>
3895 PR tree-optimization/56213
3896 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
3897 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
3899 2013-04-04 Richard Biener <rguenther@suse.de>
3901 PR tree-optimization/56837
3902 * tree-loop-distribution.c (classify_partition): For non-zero
3903 values require that the value has the same precision as its
3904 mode to be useful as memset value.
3906 2013-04-03 Nick Clifton <nickc@redhat.com>
3908 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
3909 (fmssf4): Use fmsf.s on E3V5 architectures.
3910 (fnmasf4): Use fnmaf.s on E3V5 architectures.
3911 (fnmssf4): Use fnmsf.s on E3V5 architectures.
3913 2013-04-03 Jeff Law <law@redhat.com>
3915 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
3916 (lra-eliminations.o): Likewise.
3918 2013-04-03 Teresa Johnson <tejohnson@google.com>
3920 * gcov-io.c (compute_working_sets): Moved most of body of old
3921 compute_working_sets here from profile.c.
3922 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
3923 (gcov_working_set_t): Moved typedef here from basic-block.h
3924 (compute_working_set): Declare.
3925 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
3926 (get_working_sets): Renamed from compute_working_set,
3927 replace most of body with call to new compute_working_sets.
3928 (get_exec_counts): Replace call to compute_working_sets
3929 to get_working_sets.
3930 * profile.h (get_working_sets): Renamed from compute_working_set.
3931 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
3932 to get_working_sets.
3933 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
3934 * gcov-dump.c (dump_working_sets): New function.
3936 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
3938 * hwint.c (sext_hwi, zext_hwi): New functions.
3939 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
3940 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
3941 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
3942 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
3943 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
3944 (sext_hwi, zext_hwi): New functions.
3946 2013-04-03 Jeff Law <law@redhat.com>
3948 PR tree-optimization/56799
3949 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
3950 back test for widening conversion erroneously dropped in prior change.
3952 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3955 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
3956 instead of next_real_insn.
3958 2013-04-03 Marek Polacek <polacek@redhat.com>
3961 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
3963 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3966 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
3968 (thumb1_output_casesi): Likewise.
3969 (thumb2_output_casesi): Likewise.
3971 2013-04-03 Richard Biener <rguenther@suse.de>
3973 PR tree-optimization/56817
3974 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
3976 (tree_unroll_loops_completely_1): ... new function to manually
3977 walk the loop tree, properly defering outer loops of unrolled
3978 loops to later iterations.
3980 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
3982 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
3983 (vectorizable_load): Likewise.
3984 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
3985 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
3987 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
3989 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
3992 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3994 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
3996 2013-04-03 Bin Cheng <bin.cheng@arm.com>
3998 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
4000 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
4002 PR tree-optimization/56790
4003 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
4006 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
4008 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
4010 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
4011 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
4014 2013-04-03 Jakub Jelinek <jakub@redhat.com>
4017 * tree.h (force_folding_builtin_constant_p): New decl.
4018 * builtins.c (force_folding_builtin_constant_p): New variable.
4019 (fold_builtin_constant_p): Fold immediately also if
4020 force_folding_builtin_constant_p.
4022 2013-04-03 Richard Biener <rguenther@suse.de>
4024 PR tree-optimization/56812
4025 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
4026 DRs of the same interleaving chain are independent.
4028 2013-04-02 Jason Merrill <jason@redhat.com>
4030 * gdbinit.in (pbb): Use debug fn.
4032 2013-04-02 Lawrence Crowl <crowl@google.com>
4034 * sese.h (struct ivtype_map_elt_s): Remove unused.
4035 (extern debug_ivtype_map): Remove unused.
4036 (extern eq_ivtype_map_elts): Remove unused.
4037 * sese.c (debug_ivtype_map): Removed unused.
4038 (debug_ivtype_map_1): Removed unused.
4039 (debug_ivtype_elt): Remove unused.
4040 (eq_ivtype_map_elts): Remove unused.
4043 2013-04-02 Kai Tietz <ktietz@redhat.com>
4046 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
4047 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
4048 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
4050 (legitimize_pe_coff_symbol): Likewise.
4051 (is_imported_p): New helper-function.
4052 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
4053 for Windows x64 targets.
4054 (ix86_expand_prologue): Optimize for pe-coff targets.
4055 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
4056 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
4057 medium/large code-model.
4058 (legitimize_pic_address): Likewise.
4059 (legitimize_tls_address): Likewise.
4060 (ix86_expand_call): Likewise.
4061 (x86_output_mi_thunk): Likewise.
4062 (get_dllimport_decl): Add new beimport argument.
4063 (construct_plt_address): Don't assert for x64 pe-coff targets.
4064 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
4066 (SYMBOL_FLAG_STUBVAR): New macro.
4067 (SYMBOL_REF_STUBVAR_P): Likewise.
4068 * config/i386/winnt.c (stub_list): New structure.
4069 (stub_head): New local variable.
4070 (i386_pe_record_stub): New function.
4071 (i386_pe_file_end): Emit refptr-stubs.
4073 2013-04-02 Jakub Jelinek <jakub@redhat.com>
4075 PR rtl-optimization/56745
4076 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
4077 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
4080 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
4081 and both of them are MEM_REFs, just compare first argument for
4082 equality and attempt to deal even with differing offsets.
4085 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
4086 of gimple_clobber_p to be MEM_REF.
4087 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
4088 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
4089 after gimplification.
4090 * asan.c (get_mem_ref_of_assignment): Don't instrument
4091 gimple_clobber_p stmts.
4092 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
4093 gimple_clobber_p stmt if they have MEM_REF lhs and
4094 are dead because of another gimple_clobber_p stmt.
4095 * tree-ssa-live.c (clear_unused_block_pointer): Treat
4096 gimple_clobber_p stmts like debug stmts.
4097 (remove_unused_locals): Remove clobbers with MEM_REF lhs
4098 that refer to unused VAR_DECLs or uninitialized values.
4099 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
4100 gimple_clobber_p stmts if they refer to removed parameters.
4101 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
4104 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
4106 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
4107 using SWI48 mode attribute.
4109 2013-04-02 Wei Mi <wmi@google.com>
4111 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
4112 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
4113 *<rotate_insn><mode>3_mask in i386.md.
4115 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
4117 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
4119 2013-04-02 Richard Biener <rguenther@suse.de>
4121 PR tree-optimization/56778
4122 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
4123 Runtime alias tests are not supported for gather loads.
4124 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
4125 stmts referenced from SSA operands before updating SSA form.
4127 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
4128 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4130 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
4131 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
4132 * config/arm/cortex-a53.md: New file.
4133 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
4134 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
4135 * config/arm/arm.c (arm_issue_rate): Likewise.
4136 * config/arm/arm-tune.md: Regenerate
4137 * config/arm/arm-tables.opt: Regenerate.
4138 * config/arm/arm-cores.def: Add cortex-a53.
4140 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
4142 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
4145 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
4147 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
4148 scalar load/store operations using B/H registers.
4149 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
4151 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
4153 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
4155 * config/aarch64/aarch64.c
4156 (aarch64_simd_scalar_immediate_valid_for_move): New.
4157 * config/aarch64/aarch64-protos.h
4158 (aarch64_simd_scalar_immediate_valid_for_move): New.
4159 * config/aarch64/constraints.md (Dh, Dq): New.
4160 * config/aarch64/iterators.md (hq): New.
4162 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
4164 * reorg.c (get_branch_condition): Deal with conditional returns.
4165 (fill_simple_delay_slots): Remove dead code dealing with jumps.
4167 2013-04-01 Wei Mi <wmi@google.com>
4169 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
4170 Truncate operand 2 using %b asm operand modifier.
4171 (*<shift_insn><mode>3_mask): Ditto.
4172 (*<rotate_insn><mode>3_mask): Ditto.
4174 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
4177 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
4179 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
4181 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
4183 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
4185 2013-03-30 Lawrence Crowl <crowl@google.com>
4187 * dse.c (clear_alias_sets): Remove never set.
4188 (disqualified_clear_alias_sets): Remove never set.
4189 (clear_alias_mode_pool): Remove never set.
4190 (dse_step0): Remove condition that is never true.
4191 (canon_address): Remove condition that is never true.
4192 (dse_step7): Remove condition that is never true.
4193 (rest_of_handle_dse): Remove condition that is never true.
4194 (rest_of_handle_dse::did_global): Remove never read from above.
4195 (dse_step2_spill): Remove never called from above.
4196 (dse_step5_spill): Remove never called from above.
4198 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
4200 * doc/md.texi (Standard Names) <casesi>: Update documentation for
4201 JUMP_TABLE_DATA changes.
4202 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
4203 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
4204 (Insns) <jump_table_data>: New entry.
4205 * doc/tm.texi: Regenerate.
4207 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
4209 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
4210 for table jump at the end of a basic block using tablejump_p.
4211 * targhooks.c (default_invalid_within_doloop): Likewise.
4212 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
4213 target hook implementation that is identical to the default hook.
4214 (rs6000_invalid_within_doloop): Remove.
4216 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
4217 unused variable from tablejump_p call.
4219 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
4220 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
4221 (INSN_DELETED_P): Likewise.
4222 (emit_jump_table_data): New prototype.
4223 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
4224 after 4th as unused.
4225 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
4226 * sched-vis.c (print_insn): Likewise.
4227 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
4228 insn for compatibility with back ends that use next_active_insn to
4229 identify jump table data.
4230 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
4231 (remove_insn): Likewise.
4232 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
4234 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
4235 (emit_jump_table_data): New function.
4237 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
4238 basic block, a JUMP_TABLE_DATA never is.
4239 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
4240 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
4241 off from code handling real insns.
4242 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
4243 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
4244 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
4245 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
4246 is not a NONDEBUG_INSN_P.
4247 * ira-costs.c (scan_one_insn): Likewise.
4248 * jump.c (mark_all_labels): Likewise.
4249 (mark_jump_label_1): Likewise.
4250 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
4251 * lra.c (get_insn_freq): Expect all insns reaching here to be in
4253 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
4254 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
4255 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
4256 JUMP_TABLE_DATA_P insns.
4257 (calculate_elim_costs_all_insns): Likewise.
4258 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
4259 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
4260 (delete_output_reload): Code style fixups.
4261 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
4262 insn flags on this non-insn.
4263 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
4264 as scheduling barriers, for pre-change compatibility.
4265 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
4266 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
4268 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
4269 redundant JUMP_TABLE_DATA_P test.
4270 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
4271 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
4272 (frv_for_each_packet): Likewise.
4273 * config/i386/i386.c (min_insn_size): Likewise.
4274 (ix86_avoid_jump_mispredicts): Likewise.
4275 * config/m32r/m32r.c (m32r_is_insn): Likewise.
4276 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
4277 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
4278 (mips16_insn_length): Robustify.
4279 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
4280 (mips16_split_long_branches): Likewise.
4281 * config/pa/pa.c (pa_combine_instructions): Likewise.
4282 * config/rs6000/rs6000.c (get_next_active_insn): Treat
4283 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
4284 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
4285 as contributing to pool range lengths.
4286 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
4287 Remove redundant JUMP_TABLE_DATA_P test.
4288 (sh_loop_align): Likewise.
4289 (split_branches): Likewise.
4290 (sh_insn_length_adjustment): Likewise.
4291 * config/spu/spu.c (get_branch_target): Likewise.
4293 2013-03-29 Jan Hubicka <jh@suse.cz>
4295 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
4296 gcov streaming; stream hot bb threshold to ltrans.
4297 * predict.c (get_hot_bb_threshold): Break out from ....
4298 (maybe_hot_count_p): ... here.
4299 (set_hot_bb_threshold): New function.
4300 * lto-section-in.c (lto_section_name): Add profile.
4301 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
4302 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
4304 (histogram_entry): New structure.
4305 (histogram, histogram_pool): New global vars.
4306 (histogram_hash): New structure.
4307 (histogram_hash::hash): New method.
4308 (histogram_hash::equal): Likewise.
4309 (account_time_size): New function.
4310 (cmp_counts): New function.
4311 (dump_histogram): New function.
4312 (ipa_profile_generate_summary): New function.
4313 (ipa_profile_write_summary): New function.
4314 (ipa_profile_read_summary): New function.
4315 (ipa_profile): Decide on threshold.
4316 (pass_ipa_profile): Add ipa_profile_write_summary and
4317 ipa_profile_read_summary.
4318 * Makefile.in (ipa.o): Update dependencies.
4319 * lto-streamer.h (LTO_section_ipa_profile): New section.
4321 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
4323 * tree.h (VAR_P): New.
4325 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
4328 * doc/invoke.texi ([-fwhole-program]): Fix typo.
4330 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
4332 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
4333 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
4334 (control_flow_insn_p): Likewise.
4335 * cfgrtl.c (duplicate_insn_chain): Likewise.
4336 * final.c (get_attr_length_1): Likewise.
4337 (shorten_branches): Likewise.
4338 (final_scan_insn): Likewise.
4339 * function.c (instantiate_virtual_regs): Likewise.
4340 * gcse.c (insert_insn_end_basic_block): Likewise.
4341 * ira-costs.c (scan_one_insn): Likewise.
4342 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
4343 * lra.c (check_rtl): Likewise.
4344 * reload1.c (elimination_costs_in_insn): Likewise.
4345 * reorg.c (follow_jumps): Likewise.
4347 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
4348 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
4349 (thumb_far_jump_used_p): Likewise.
4350 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
4351 (workaround_speculation): Likewise.
4352 (add_sched_insns_for_speculation): Likewise.
4353 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
4354 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
4355 (frv_for_each_packet): Likewise.
4356 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
4357 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
4358 (final_emit_insn_group_barriers): Likewise.
4359 * config/m32r/m32r.c (m32r_is_insn): Likewise.
4360 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
4361 (mips16_insn_length): Likewise.
4362 * config/pa/pa.c (pa_reorg): Likewise.
4363 (pa_combine_instructions): Likewise.
4364 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
4365 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
4366 (sh_reorg): Likewise.
4367 (split_branches): Likewise.
4368 * config/spu/spu.c (get_branch_target): Likewise.
4370 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
4373 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
4375 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
4376 Fix declaration name.
4378 2013-03-28 Lawrence Crowl <crowl@google.com>
4380 * graphds.h (struct graph.indicies): Remove unused.
4381 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
4382 (SCOP_ORIGINAL_PDDRS): Remove unused.
4383 * sese.h (extern insert_loop_close_phis): Removed unused.
4384 (extern insert_guard_phis): Removed unused.
4385 (extern ivtype_map_elt_info): Removed unused.
4386 (new_ivtype_map_elt): Removed unused.
4387 * sese.c (ivtype_map_elt_info): Removed unused.
4389 2013-03-28 Lawrence Crowl <crowl@google.com>
4391 * Makefile.in: Add several missing include dependences.
4393 (test-dump.o): New. This object is not added to any executable,
4394 but is present for ad-hoc testing.
4396 (debug (const bitmap_head_def &)): New.
4397 (debug (const bitmap_head_def *)): New.
4399 (extern debug (const bitmap_head_def &)): New.
4400 (extern debug (const bitmap_head_def *)): New.
4402 (debug (edge_def &)): New.
4403 (debug (edge_def *)): New.
4405 (debug (basic_block_def &)): New.
4406 (debug (basic_block_def *)): New.
4408 (dump_node (const_tree, int, FILE *)): Correct source file.
4410 (debug (die_struct &)): New.
4411 (debug (die_struct *)): New.
4413 (extern debug (die_struct &)): New.
4414 (extern debug (die_struct *)): New.
4415 * gimple-pretty-print.c
4416 (debug (gimple_statement_d &)): New.
4417 (debug (gimple_statement_d *)): New.
4418 * gimple-pretty-print.h
4419 (extern debug (gimple_statement_d &)): New.
4420 (extern debug (gimple_statement_d *)): New.
4422 (debug (ira_allocno_copy &)): New.
4423 (debug (ira_allocno_copy *)): New.
4424 (debug (ira_allocno &)): New.
4425 (debug (ira_allocno *)): New.
4427 (extern debug (ira_allocno_copy &)): New.
4428 (extern debug (ira_allocno_copy *)): New.
4429 (extern debug (ira_allocno &)): New.
4430 (extern debug (ira_allocno *)): New.
4432 (debug (live_range &)): New.
4433 (debug (live_range *)): New.
4435 (debug (lra_live_range &)): New.
4436 (debug (lra_live_range *)): New.
4438 (debug (lra_live_range &)): New.
4439 (debug (lra_live_range *)): New.
4441 (debug (omega_pb_d &)): New.
4442 (debug (omega_pb_d *)): New.
4444 (extern debug (omega_pb_d &)): New.
4445 (extern debug (omega_pb_d *)): New.
4447 (debug (const rtx_def &)): New.
4448 (debug (const rtx_def *)): New.
4450 (debug_tree (tree): Move within file.
4451 (debug_raw (const tree_node &)): New.
4452 (debug_raw (const tree_node *)): New.
4453 (dump_tree_via_hooks (const tree_node *, int)): New.
4454 (debug (const tree_node &)): New.
4455 (debug (const tree_node *)): New.
4456 (debug_verbose (const tree_node &)): New.
4457 (debug_verbose (const tree_node *)): New.
4458 (debug_head (const tree_node &)): New.
4459 (debug_head (const tree_node *)): New.
4460 (debug_body (const tree_node &)): New.
4461 (debug_body (const tree_node *)): New.
4462 (debug_vec_tree (tree): Move and reimplement in terms of dump.
4463 (debug (vec<tree, va_gc> &)): New.
4464 (debug (vec<tree, va_gc> *)): New.
4466 (extern debug (const rtx_def &)): New.
4467 (extern debug (const rtx_def *)): New.
4469 (debug_raw (simple_bitmap_def &)): New.
4470 (debug_raw (simple_bitmap_def *)): New.
4471 (debug (simple_bitmap_def &)): New.
4472 (debug (simple_bitmap_def *)): New.
4474 (extern debug (simple_bitmap_def &)): New.
4475 (extern debug (simple_bitmap_def *)): New.
4476 (extern debug_raw (simple_bitmap_def &)): New.
4477 (extern debug_raw (simple_bitmap_def *)): New.
4479 (debug (vinsn_def &)): New.
4480 (debug (vinsn_def *)): New.
4481 (debug_verbose (vinsn_def &)): New.
4482 (debug_verbose (vinsn_def *)): New.
4483 (debug (expr_def &)): New.
4484 (debug (expr_def *)): New.
4485 (debug_verbose (expr_def &)): New.
4486 (debug_verbose (expr_def *)): New.
4487 (debug (vec<rtx> &)): New.
4488 (debug (vec<rtx> *)): New.
4490 (extern debug (vinsn_def &)): New.
4491 (extern debug (vinsn_def *)): New.
4492 (extern debug_verbose (vinsn_def &)): New.
4493 (extern debug_verbose (vinsn_def *)): New.
4494 (extern debug (expr_def &)): New.
4495 (extern debug (expr_def *)): New.
4496 (extern debug_verbose (expr_def &)): New.
4497 (extern debug_verbose (expr_def *)): New.
4498 (extern debug (vec<rtx> &)): New.
4499 (extern debug (vec<rtx> *)): New.
4501 (_list_iter_cond_expr): Make inline instead of static.
4503 (debug (sreal &)): New.
4504 (debug (sreal *)): New.
4506 (extern debug (sreal &)): New.
4507 (extern debug (sreal *)): New.
4509 (extern debug_raw (const tree_node &)): New.
4510 (extern debug_raw (const tree_node *)): New.
4511 (extern debug (const tree_node &)): New.
4512 (extern debug (const tree_node *)): New.
4513 (extern debug_verbose (const tree_node &)): New.
4514 (extern debug_verbose (const tree_node *)): New.
4515 (extern debug_head (const tree_node &)): New.
4516 (extern debug_head (const tree_node *)): New.
4517 (extern debug_body (const tree_node &)): New.
4518 (extern debug_body (const tree_node *)): New.
4519 (extern debug (vec<tree, va_gc> &)): New.
4520 (extern debug (vec<tree, va_gc> *)): New.
4522 (debug (struct loop &)): New.
4523 (debug (struct loop *)): New.
4524 (debug_verbose (struct loop &)): New.
4525 (debug_verbose (struct loop *)): New.
4526 * tree-dump.c: Add header dependence.
4528 (extern debug (struct loop &)): New.
4529 (extern debug (struct loop *)): New.
4530 (extern debug_verbose (struct loop &)): New.
4531 (extern debug_verbose (struct loop *)): New.
4533 (debug (data_reference &)): New.
4534 (debug (data_reference *)): New.
4535 (debug (vec<data_reference_p> &)): New.
4536 (debug (vec<data_reference_p> *)): New.
4537 (debug (vec<ddr_p> &)): New.
4538 (debug (vec<ddr_p> *)): New.
4540 (extern debug (data_reference &)): New.
4541 (extern debug (data_reference *)): New.
4542 (extern debug (vec<data_reference_p> &)): New.
4543 (extern debug (vec<data_reference_p> *)): New.
4544 (extern debug (vec<ddr_p> &)): New.
4545 (extern debug (vec<ddr_p> *)): New.
4547 (debug (pt_solution &)): New.
4548 (debug (pt_solution *)): New.
4550 (extern debug (pt_solution &)): New.
4551 (extern debug (pt_solution *)): New.
4553 (debug (_var_map &)): New.
4554 (debug (_var_map *)): New.
4555 (debug (tree_live_info_d &)): New.
4556 (debug (tree_live_info_d *)): New.
4558 (extern debug (_var_map &)): New.
4559 (extern debug (_var_map *)): New.
4560 (extern debug (tree_live_info_d &)): New.
4561 (extern debug (tree_live_info_d *)): New.
4563 2013-03-28 Jan Hubicka <jh@suse.cz>
4565 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
4567 2013-03-28 Ian Bolton <ian.bolton@arm.com>
4569 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
4570 record only when desired or required.
4572 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
4574 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
4575 *vec_extractv2di_1_rex64. Use x64 isa attribute.
4577 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4579 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
4580 (*andsi3_compare0_uxtw): New pattern.
4581 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
4582 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
4584 2013-03-28 Jan Hubicka <jh@suse.cz>
4586 * data-streamer-in.c (streamer_read_gcov_count): New function.
4587 * gimple-streamer-out.c: Include value-prof.h.
4588 (output_gimple_stmt): Output histogram.
4589 (output_bb): Use streamer_write_gcov_count.
4590 * value-prof.c: Include data-streamer.h
4591 (dump_histogram_value): Add HIST_TYPE_MAX.
4592 (stream_out_histogram_value): New function.
4593 (stream_in_histogram_value): New function.
4594 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
4595 (stream_out_histogram_value, stream_in_histogram_value): Declare.
4596 * data-streamer-out.c (streamer_write_gcov_count): New function.
4597 (streamer_write_gcov_count_stream): New function.
4598 * lto-cgraph.c (lto_output_edge): Update counter streaming.
4599 (lto_output_node): Likewise.
4600 (input_node, input_edge): Likewise.
4601 * lto-streamer-out.c (output_cfg): Update streaming.
4602 * lto-streamer-in.c (input_cfg): Likewise.
4603 * data-streamer.h (streamer_write_gcov_count,
4604 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
4605 * gimple-streamer-in.c: Include value-prof.h
4606 (input_gimple_stmt): Input histograms.
4607 (input_bb): Update profile streaming.
4609 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
4611 * genmodes.c (emit_max_int): New function.
4612 (emit_insn_modes_h): Added call to emit_max_function.
4613 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
4615 * machmode.def: Fixed comment.
4617 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
4619 * combine.c (try_combine): Removed useless assert.
4620 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
4622 2013-03-28 Marek Polacek <polacek@redhat.com>
4623 Richard Biener <rguenther@suse.de>
4625 PR tree-optimization/56695
4626 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
4627 build signed result of a vector comparison.
4628 * tree-cfg.c (verify_gimple_comparison): Check that a result
4629 of a vector comparison has signed type.
4631 2013-03-28 Richard Biener <rguenther@suse.de>
4633 PR tree-optimization/37021
4634 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
4635 do not restrict gaps between groups.
4636 * tree-vect-stmts.c (vectorizable_load): Properly account for
4637 a gap between groups.
4639 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
4641 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
4642 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
4645 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
4647 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
4648 * doc/extend.texi (Named Address Spaces): Ditto.
4649 (Variable Attributes): Ditto.
4651 2013-03-27 Kai Tietz <ktietz@redhat.com>
4653 * config.build: Add support for cygwin x64 target.
4654 * config.gcc: Likewise.
4655 * config.host: Likewise.
4656 * configure.ac: Likewise
4657 * configure: Regenerated.
4659 2013-03-27 Kai Tietz <ktietz@redhat.com>
4661 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
4662 * config/i386/t-cygwin-w64: New file.
4663 * config/i386/cygwin-w64.h: New file.
4664 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
4665 and add support for x64-cygwin target.
4666 (CPP_SPEC): Likewise.
4667 (CXX_WRAP_SPEC_LIST): Undefine before define.
4668 (LIBGCJ_SONAME): Use 15 as version.
4670 2013-03-27 Richard Biener <rguenther@suse.de>
4672 PR tree-optimization/56716
4673 * tree-ssa-structalias.c (perform_var_substitution): Adjust
4674 dumping for ref nodes.
4676 2013-03-27 Martin Jambor <mjambor@suse.cz>
4678 PR tree-optimization/55334
4679 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
4680 restricted pointers to arrays.
4682 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4684 * Makefile.in (.SUFFIXES): Add .cc.
4685 (.c.o): Apply same recipe for implicit rule .cc.o.
4687 2013-03-27 Richard Biener <rguenther@suse.de>
4689 PR tree-optimization/37021
4690 * tree-vect-data-refs.c (vect_check_strided_load): Allow
4691 REALPART/IMAGPART_EXPRs around the supported refs.
4692 * tree-ssa-structalias.c (find_func_aliases): Assume that
4693 floating-point values are not used to transfer pointers.
4695 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4697 * target.def (TARGET_HAS_IFUNC_P): New target hook.
4698 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
4699 * doc/tm.texi: Regenerate.
4700 * targhooks.h (default_has_ifunc_p): New.
4701 * targhooks.c (default_has_ifunc_p): Ditto.
4702 * config/linux-protos.h: New file.
4703 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
4704 this hook for linux which disables support of indirect functions in
4706 * config/linux-android.c: New file.
4707 * config/t-linux-android.c: Ditto.
4708 * config.gcc: Added new object file linux-android.o.
4709 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
4710 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
4711 * varasm.c (do_assemble_alias): Likewise.
4712 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
4713 doesn't support indirect functions.
4714 * configure: Regenerate.
4716 2013-03-27 Bin Cheng <bin.cheng@arm.com>
4719 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
4720 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
4723 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4725 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
4727 2013-03-27 Terry Guo <terry.guo@arm.com>
4729 * config/arm/arm-cores.def: Added core cortex-r7.
4730 * config/arm/arm-tune.md: Regenerated.
4731 * config/arm/arm-tables.opt: Regenerated.
4732 * doc/invoke.texi: Added entry for core cortex-r7.
4734 2013-03-27 Walter Lee <walt@tilera.com>
4736 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
4737 double-decrement of next_scratch_regno.
4739 2013-03-27 Walter Lee <walt@tilera.com>
4741 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
4743 (insn_v1mulus): Ditto.
4744 (insn_v2muls): Ditto.
4746 2013-03-27 Walter Lee <walt@tilera.com>
4748 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
4749 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
4751 2013-03-27 Walter Lee <walt@tilera.com>
4753 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
4754 (*sibcall_value): Ditto.
4756 2013-03-27 Walter Lee <walt@tilera.com>
4758 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
4759 (insn_mnz_v8qi): ... this ...
4760 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
4762 (insn_v<n>mnz): Replaced by ...
4763 (insn_v1mnz): ... this ...
4764 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
4766 (insn_mz_<mode>): Replaced by ...
4767 (insn_mz_v8qi): ... this ...
4768 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
4770 (insn_v<n>mz): Replaced by ...
4771 (insn_v1mz): ... this ...
4772 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
4775 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
4777 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
4779 2013-03-26 Roland McGrath <mcgrathr@google.com>
4781 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
4782 than fprintf with a non-constant, non-format string.
4784 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
4786 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
4787 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
4788 operand 0 predicate.
4789 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
4790 attribute. Use general_x64nomem_operand as operand 1 predicate.
4791 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
4792 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
4793 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
4794 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
4795 (mov<mode>_insv_1): Remove expander. Merge insn with
4796 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
4797 Use general_x64nomem_operand as operand 1 predicate.
4798 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
4799 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
4800 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
4801 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
4802 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
4803 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
4804 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
4805 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
4806 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
4807 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
4808 (general_x64nomem_operand): Ditto.
4810 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
4812 * config/rtems.opt: Add -pthread option.
4814 2013-03-26 Richard Biener <rguenther@suse.de>
4816 * alias.c (find_base_term): Avoid redundant and not used recursion.
4817 (base_alias_check): Get the initial base term from the caller.
4818 (true_dependence_1): Compute and pass base terms to base_alias_check.
4819 (write_dependence_p): Likewise.
4820 (may_alias_p): Likewise.
4822 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
4824 * config/aarch64/aarch64.c (aarch64_classify_address): Support
4825 PC-relative load in SI modes and above only.
4827 2013-03-26 Xinyu Qi <xyqi@marvell.com>
4829 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
4830 * config/arm/iwmmxt.md (WCGR0): Update.
4831 (WCGR1, WCGR2, WCGR3): Likewise.
4833 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
4835 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
4836 Use x64 and nox64 isa attributes.
4838 2013-03-26 Richard Biener <rguenther@suse.de>
4840 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
4841 alignment computations and rely on get_object_alignment_1
4842 for the !TYPE_P case.
4843 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
4845 2013-03-26 Walter Lee <walt@tilera.com>
4847 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
4848 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
4850 2013-03-25 Jeff Law <law@redhat.com>
4852 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
4853 check for INTEGRAL_TYPE_P that was missing due to checking in
4854 wrong version of prior patch.
4856 2013-03-25 Walter Lee <walt@tilera.com>
4858 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
4859 TILEGX_INSN_SHUFFLEBYTES1.
4860 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
4862 (tilegx_builtins): Ditto.
4863 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
4865 2013-03-25 Walter Lee <walt@tilera.com>
4867 * config/tilegx/tilegx.md (floatsisf2): New pattern.
4868 (floatunssisf2): New pattern.
4869 (floatsidf2): New pattern.
4870 (floatunssidf2): New pattern.
4872 2013-03-25 Walter Lee <walt@tilera.com>
4874 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
4875 tests for constraint J, K, N, P.
4877 2013-03-25 Walter Lee <walt@tilera.com>
4879 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
4880 Use indirect/pcrel encoding.
4881 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
4884 2013-03-25 Steve Ellcey <sellcey@mips.com>
4886 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
4887 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
4888 * config/mips/mips.c (mips_option_override): Set IMADD default.
4889 * config/mips/mips.h (PTF_AVOID_IMADD): New.
4890 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
4891 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
4892 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
4893 * doc/invoke.texi (-mimadd/-mno-imadd): New.
4895 2013-03-25 Jeff Law <law@redhat.com>
4897 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
4898 slightly to avoid creating and folding useless trees. Simplify
4899 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
4901 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
4903 * config/i386/i386.md (*zero_extendsidi2): Merge with
4904 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
4905 * config/i386/predicates.md (x86_64_zext_operand): Rename from
4906 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
4907 targets. Clarify comment.
4909 2013-03-25 Martin Jambor <mjambor@suse.cz>
4911 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
4912 pass-through jump functions differently.
4913 (ipa_read_jump_function): Likewise. Also use setter functions to set
4916 2013-03-25 Martin Jambor <mjambor@suse.cz>
4918 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
4919 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
4921 (ipa_get_indirect_edge_target): New function.
4922 (devirtualization_time_bonus): New parameter known_aggs, pass it to
4923 ipa_get_indirect_edge_target. Update all callers.
4924 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
4925 ipa_get_indirect_edge_target_1 instead of calling
4926 ipa_get_indirect_edge_target.
4927 (create_specialized_node): Pass aggvlas to
4928 ipcp_discover_new_direct_edges.
4930 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4932 * config/arm/arm.md (f_sels, f_seld): New types.
4933 (*cmov<mode>): New pattern.
4934 * config/arm/predicates.md (arm_vsel_comparison_operator): New
4937 2013-03-25 Kai Tietz <ktietz@redhat.com>
4939 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
4940 POSIX-printf for mingw-hosted builds.
4942 2013-03-25 Richard Biener <rguenther@suse.de>
4945 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
4946 must-not-throw stmt location.
4948 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4950 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
4951 Emit load-acquire versions when acq is true.
4952 (arm_emit_store_exclusive): Add rel parameter.
4953 Emit store-release versions when rel is true.
4954 (arm_split_compare_and_swap): Use acquire-release instructions
4956 of barriers when appropriate.
4957 (arm_split_atomic_op): Likewise.
4958 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
4959 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
4960 (VUNSPEC_SLX): Likewise.
4961 (VUNSPEC_LDA): Likewise.
4962 (VUNSPEC_STL): Likewise.
4963 * config/arm/sync.md (atomic_load<mode>): New pattern.
4964 (atomic_store<mode>): Likewise.
4965 (arm_load_acquire_exclusive<mode>): Likewise.
4966 (arm_load_acquire_exclusivesi): Likewise.
4967 (arm_load_acquire_exclusivedi): Likewise.
4968 (arm_store_release_exclusive<mode>): Likewise.
4970 2013-03-25 Catherine Moore <clm@codesourcery.com>
4972 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
4973 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
4974 * config/mip/predicates.md (lwsp_swsp_operand,
4975 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
4976 sb16_operand, db4_operand, db7_operand, ib3_operand,
4977 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
4978 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
4979 andi16_operand): New predicates.
4980 * config/mips/mips.md (compression): New attribute.
4981 (enabled): New attribute.
4982 (length): Consider compression in computing length.
4983 (shift_compression): New code attribute.
4984 (*add<mode>3): New operands. Record compression.
4985 (sub<mode>3): Likewise.
4986 (one_cmpl<mode>2): Likewise.
4987 (*and<mode>3): Likewise.
4988 (*ior<mode>3): Likewise.
4989 (unnamed pattern for xor): Likewise.
4990 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
4991 (*<optab><mode>3): Likewise.
4992 (*mov<mode>_internal: Likewise.
4993 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
4994 (mips_unsigned_immediate_p): New.
4995 (umips_lwsp_swsp_address_p): New.
4996 (m16_based_address_p): New.
4997 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
4998 (mips_unsigned_immediate_p): New prototype.
4999 (lwsp_swsp_address_p): New prototype.
5000 (m16_based_address_p): New prototype.
5001 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
5002 (mips_signed_immediate_p): New function.
5003 (m16_based_address_p): New function.
5004 (lwsp_swsp_address_p): New function.
5005 (mips_print_operand_punctuation): Recognize short delay slot insns
5006 for microMIPS.add<mode>3"
5008 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5011 * config/arm/iterators.md (v_cmp_result): New mode attribute.
5012 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
5014 2013-03-25 Richard Biener <rguenther@suse.de>
5016 PR tree-optimization/56689
5017 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
5020 2013-03-25 Richard Biener <rguenther@suse.de>
5022 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
5024 (memory_references): Likewise.
5025 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
5026 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
5027 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
5028 (gather_mem_refs_in_loops): Fold into ...
5029 (analyze_memory_references): ... this. Move initialization
5030 to tree_ssa_lim_initialize.
5031 (fill_always_executed_in): Rename to ...
5032 (fill_always_executed_in_1): ... this.
5033 (fill_always_executed_in): Move contains_call computation to
5034 this new function from ...
5035 (tree_ssa_lim_initialize): ... here.
5036 (tree_ssa_lim): Call fill_always_executed_in.
5038 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
5040 * postreload.c (reload_combine): Fix code detecting returns.
5042 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
5044 * function.c (emit_use_return_register_into_block): On cc0 targets,
5045 do not emit the sequence between cc0 setter and user.
5047 2013-03-25 Kai Tietz <ktietz@redhat.com>
5049 * config/i386/predicates.md (local_symbolic_operand): Interpret
5050 dll-imported symbols as none-local.
5052 2013-03-25 Richard Biener <rguenther@suse.de>
5054 * tree-ssa-loop-im.c (struct depend): Remove.
5055 (struct lim_aux_data): Make depends a vec of gimples.
5056 (free_lim_aux_data): Adjust.
5057 (add_dependency): Likewise.
5058 (set_level): Likewise.
5060 2013-03-25 Richard Biener <rguenther@suse.de>
5063 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
5064 the pointer returned by calls with ECF_MALLOC set.
5066 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
5068 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
5070 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
5072 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
5073 using MMXMODE mode iterator.
5074 (*move<mode>_internal): Merge with *movv2sf_internal and
5075 *movv2sf_internal_rex64 using MMXMODE mode iterator.
5077 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
5079 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
5080 (record_last_mem_set_info): Likewise.
5082 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
5083 of XNEWVEC followed by memset.
5084 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
5086 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
5088 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
5089 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
5090 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
5091 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
5092 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
5093 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
5094 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
5095 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
5096 BARRIER_P instead of GET_CODE.
5098 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
5100 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
5101 inaccuracy in the probing code.
5103 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
5104 (ctrapdi4): Likewise.
5106 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
5108 * calls.c (expand_call): Add missing guard to code handling return
5109 of non-BLKmode structures in MSB.
5110 * function.c (expand_function_end): Likewise.
5112 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
5114 * combine.c (try_combine): Adjust comment. Do not add the set of
5115 insn #0 if the destination indirectly is set or dies in insn #2.
5116 Tidy up code to distribute a new note.
5118 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
5120 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
5121 also for alternatives 16 and 17.
5123 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
5125 * config/i386/sse.md (*mov<mode>_internal): Merge with
5126 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
5127 Emit insn template depending on type attribute. Use
5128 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
5129 movd instead of movq mnemonic for interunit moves. Rewrite mode
5130 attribute calculation. Remove unit attribute calculation.
5131 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
5132 Set prefix_data16 attribute for DImode ssemov types.
5133 Use Ym instead of y for SSE-MMX conversion alternatives.
5134 Reorder operand constraints.
5136 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
5138 * df.h (df_insn_delete): Adjust prototype.
5139 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
5140 and let it decide whether mark the basic block dirty.
5141 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
5142 * df-scan.c (df_insn_info_delete): New helper function, split
5143 off from df_insn_delete.
5144 (df_scan_free_bb_info): Use it.
5145 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
5147 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
5148 that the insn is actually an insn and it has a non-NULL basic block.
5149 Do not mark basic block dirty if only deleting a DEBUG_INSN.
5151 2013-03-22 Richard Biener <rguenther@suse.de>
5153 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
5155 (mem_ref_alloc): Do not allocate them.
5156 (refs_independent_p): Do not query or maintain a cache.
5158 2013-03-22 Richard Biener <rguenther@suse.de>
5160 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
5161 (gather_mem_refs_in_loops): Do not compute it.
5162 (analyze_memory_references): Do not allocate it.
5163 (tree_ssa_lim_finalize): Do not free it.
5164 (for_all_locs_in_loop): Do not query all_refs_in_loop.
5166 2013-03-22 Richard Biener <rguenther@suse.de>
5168 * is-a.h (as_a): Use gcc_checking_assert.
5170 2013-03-22 Ian Bolton <ian.bolton@arm.com>
5172 * config/aarch64/aarch64.c (aarch64_print_operand): New
5173 format specifier for printing a constant in hex.
5174 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
5175 format specifier for printing second operand.
5177 2013-03-22 Richard Biener <rguenther@suse.de>
5179 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
5181 (gather_mem_refs_in_loops): Perform store accumulation here.
5182 (create_vop_ref_mapping_loop): Remove.
5183 (create_vop_ref_mapping): Likewise.
5184 (analyze_memory_references): Initialize refs_stored_in_loop.
5185 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
5186 (record_indep_loop): Remove.
5187 (record_dep_loop): New function.
5188 (ref_indep_loop_p_1): Adjust to only walk over references
5189 in the loop, not its subloops.
5190 (ref_indep_loop_p): Rename to ...
5191 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
5192 maintaining a more fine-grained cache.
5193 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
5194 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
5196 2013-03-22 Richard Biener <rguenther@suse.de>
5198 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
5199 (struct mem_ref): Make accesses_in_loop a vec of a vec of
5200 aggregate mem_ref_loc.
5201 (free_mem_ref_locs): Inline into ...
5202 (memref_free): ... this and adjust.
5203 (mem_ref_alloc): Adjust.
5204 (mem_ref_locs_alloc): Remove.
5205 (record_mem_ref_loc): Adjust.
5206 (get_all_locs_in_loop): Rewrite into ...
5207 (for_all_locs_in_loop): ... this iterator.
5208 (rewrite_mem_ref_loc): New functor.
5209 (rewrite_mem_refs): Use for_all_locs_in_loop.
5210 (sm_set_flag_if_changed): New functor.
5211 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
5212 (ref_always_accessed): New functor.
5213 (ref_always_accessed_p): Use for_all_locs_in_loop.
5215 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
5217 * tree-pass.h (PROP_gimple_lvec): New.
5218 * passes.c (dump_properties): Handle PROP_gimple_lvec.
5219 (init_optimization_passes): Move pass_lower_vector.
5220 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
5222 (pass_lower_vector): Provide PROP_gimple_lvec.
5223 (pass_lower_vector_ssa): Likewise.
5224 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
5226 2013-03-21 Mark Wielaard <mjw@redhat.com>
5228 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
5230 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
5232 * config/i386/i386.md (*movdi_internal): Disparage slightly
5233 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
5234 conversion alternatives.
5236 2013-03-21 Jakub Jelinek <jakub@redhat.com>
5239 * diagnostic.def (DK_WERROR): New kind.
5240 * diagnostic.h (werrorcount): Define.
5241 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
5242 promoted to DK_ERROR, increment DK_WERROR counter instead of
5244 * toplev.c (toplev_main): Call print_ignored_options even if
5245 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
5246 even if just werrorcount is non-zero.
5249 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
5251 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
5252 (string_cst_pool_decl): New function.
5253 (optimize_one_addr_into_implicit_ptr): New function.
5254 (resolve_addr_in_expr): Optimize DWARF location expression
5255 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
5256 which doesn't live in memory, but has DW_AT_location or
5257 DW_AT_const_value, or refers to a string literal, into
5258 DW_OP_GNU_implicit_pointer.
5259 (optimize_location_into_implicit_ptr): New function.
5260 (resolve_addr): If removing DW_AT_location of a variable because
5261 it was DW_OP_addr of address of the variable, but the variable doesn't
5262 live in memory, try to emit const value attribute for the initializer.
5264 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
5266 * tree.h (VECTOR_TYPE_P): New macro.
5267 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
5269 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
5270 VEC_COND_EXPR cannot be lvalues.
5271 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
5273 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
5275 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
5276 Restrict the transformation to equal modes.
5278 2013-03-21 Richard Biener <rguenther@suse.de>
5280 PR tree-optimization/39326
5281 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
5282 (MEM_ANALYZABLE): Adjust.
5283 (record_mem_ref_loc): Move bitmap ops ...
5284 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
5285 unanalyzable refs, do not record locations for it.
5286 (analyze_memory_references): Allocate ref zero as shared
5288 (refs_independent_p): Do not test for unanalyzed mems here.
5289 (ref_indep_loop_p_1): Special-case disambiguation against
5291 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
5293 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
5295 * config/arm/arm-protos.h (tune_params): Add
5296 prefer_neon_for_64bits field.
5297 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
5298 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
5299 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
5300 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
5301 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
5302 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
5303 (arm_option_override): Handle -mneon-for-64bits new option.
5304 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
5305 (prefer_neon_for_64bits): Declare new variable.
5306 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
5307 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
5308 (arch_enabled): Handle new arch types. Remove support for onlya8
5310 (one_cmpldi2): Use new arch names.
5311 (zero_extend<mode>di2, extend<mode>di2): Ditto.
5312 * config/arm/arm.opt (mneon-for-64bits): Add option.
5313 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
5314 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
5315 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
5317 * doc/invoke.texi (-mneon-for-64bits): Document.
5319 2013-03-21 Richard Biener <rguenther@suse.de>
5321 PR tree-optimization/39326
5322 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
5323 (sort_bbs_in_loop_postorder_cmp): New function.
5324 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
5326 2013-03-21 Richard Biener <rguenther@suse.de>
5328 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
5329 (vect_insert_into_interleaving_chain): Likewise.
5330 (vect_drs_dependent_in_basic_block): Inline ...
5331 (vect_slp_analyze_data_ref_dependence): ... here. New function,
5333 (vect_analyze_data_ref_dependence): ... here. Simplify.
5334 (vect_check_interleaving): Simplify.
5335 (vect_analyze_data_ref_dependences): Likewise. Split out ...
5336 (vect_slp_analyze_data_ref_dependences): ... this new function.
5337 (dr_group_sort_cmp): New function.
5338 (vect_analyze_data_ref_accesses): Compute data-reference groups
5339 here instead of in vect_analyze_data_ref_dependence. Use
5340 a more efficient algorithm.
5341 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
5342 vect_slp_analyze_data_ref_dependences. Call
5343 vect_analyze_data_ref_accesses earlier.
5344 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
5345 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
5346 (vect_slp_analyze_data_ref_dependences): New prototype.
5348 2013-03-21 Richard Biener <rguenther@suse.de>
5350 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
5351 ref is stored in the loop.
5352 (find_refs_for_sm): Walk only over all stores.
5353 (store_motion_loop): Allocate from lim_bitmap_obstack.
5354 (store_motion): Likewise.
5356 2013-03-21 Richard Biener <rguenther@suse.de>
5358 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
5359 Update virtual SSA form.
5361 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5363 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
5364 * configure: Regenerate.
5365 * config.in: Regenerate.
5366 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
5367 if !HAVE_LD_EH_FRAME_CIEV3.
5369 2013-03-21 Richard Biener <rguenther@suse.de>
5371 * tree-cfg.c (verify_expr_no_block): New function.
5372 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
5373 nor DECL_VALUE_EXPR have locations with associated blocks.
5374 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
5375 (clear_unused_block_pointer): Remove code dealing with
5376 blocks in DECL_DEBUG_EXPR locations.
5378 2013-03-21 Richard Biener <rguenther@suse.de>
5380 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
5381 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
5382 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
5383 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
5384 instead of DECL_DEBUG_EXPR_IS_FROM.
5385 * gimplify.c (gimplify_modify_expr): Likewise.
5386 * tree-cfg.c (verify_expr_location_1): Likewise.
5387 * tree-complex.c (create_one_component_var): Likewise.
5388 * tree-sra.c (create_access_replacement): Likewise.
5389 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
5390 (clear_unused_block_pointer): Likewise.
5391 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
5392 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
5393 * var-tracking.c (var_debug_decl): Likewise.
5394 (track_expr_p): Likewise.
5395 * tree-inline.c (add_local_variables): Likewise. Set
5396 DECL_HAS_DEBUG_EXPR_P after copying it.
5397 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
5398 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
5400 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
5403 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
5404 * configure: Regenerate.
5405 * config.in: Regenerate.
5406 * config/i386/i386.md (*movdf_internal): Use
5407 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
5408 movd instead of movq mnemonic for interunit moves.
5409 (*movdi_internal): Ditto.
5411 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5413 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
5414 (abd<mode>_3): New pattern.
5415 (aba<mode>_3): New pattern.
5416 (fabd<mode>_3): New pattern.
5418 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5420 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
5421 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
5422 occurrence of REGISTER_PREFIX as its empty string.
5424 2013-03-20 Jeff Law <law@redhat.com>
5426 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
5427 addititional equivalences for equality comparisons between an SSA_NAME
5428 and a constant where the SSA_NAME was set from a widening conversion.
5430 2013-03-20 Walter Lee <walt@tilera.com>
5432 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
5434 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
5436 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
5437 depending on type attribute.
5438 (*movti_internal): Ditto.
5439 (*movtf_internal): Ditto.
5440 (*movxf_internal): Ditto.
5441 (*movdf_internal): Ditto.
5442 (*movsf_internal): Ditto.
5444 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
5446 * config/i386/i386.md (*movti_internal): Set prefix attribute to
5447 maybe_vex for sselog1 and ssemov types.
5448 (*movdi_internal): Reorder operand constraints.
5449 (*movsi_internal): Ditto. Set prefix attribute to
5450 maybe_vex for sselog1 and ssemov types.
5451 (*movtf_internal): Set prefix attribute to maybe_vex
5452 for sselog1 and ssemov types.
5453 (*movdf_internal): Ditto. Set prefix_data16 attribute for
5454 DImode ssemov types. Reorder operand constraints.
5455 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
5456 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
5457 attribute for SImode ssemov types. Reorder operand constraints.
5459 2013-03-20 Martin Jambor <mjambor@suse.cz>
5461 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
5462 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
5464 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
5466 * config/rs6000/predicates.md (indexed_address, update_address_mem
5467 update_indexed_address_mem): New predicates.
5468 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
5469 attribute for load/store instructions.
5470 * config/rs6000/dfp.md (movsd_store): Likewise.
5471 (movsd_load): Likewise.
5472 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
5473 (unnamed HI->DI extend define_insn): Likewise.
5474 (unnamed SI->DI extend define_insn): Likewise.
5475 (unnamed QI->SI extend define_insn): Likewise.
5476 (unnamed QI->HI extend define_insn): Likewise.
5477 (unnamed HI->SI extend define_insn): Likewise.
5478 (unnamed HI->SI extend define_insn): Likewise.
5479 (extendsfdf2_fpr): Likewise.
5480 (movsi_internal1): Likewise.
5481 (movsi_internal1_single): Likewise.
5482 (movhi_internal): Likewise.
5483 (movqi_internal): Likewise.
5484 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
5485 attribute for load/store instructions.
5486 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
5488 (mov<mode>_softfloat): Likewise.
5489 (mov<mode>_hardfloat32): Likewise.
5490 (mov<mode>_hardfloat64): Likewise.
5491 (mov<mode>_softfloat64): Likewise.
5492 (movdi_internal32): Likewise.
5493 (movdi_internal64): Likewise.
5494 (probe_stack_<mode>): Likewise.
5496 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
5498 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
5499 floating point, and decimal floating point to reload iterator.
5501 * config/rs6000/constraints.md (wl constraint): New constraints to
5502 return FLOAT_REGS if certain options are used to reduce the number
5503 of separate patterns that exist in the file.
5504 (wx constraint): Likewise.
5505 (wz constraint): Likewise.
5507 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
5508 -mdebug=reg, print wg, wl, wx, and wz constraints.
5509 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
5510 Initialize the reload functions for 64-bit binary/decimal floating
5512 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
5513 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
5514 create the buffer on the stack to overcome not having a 32-bit
5516 (rs6000_emit_move): Likewise.
5517 (rs6000_secondary_memory_needed_rtx): Likewise.
5518 (rs6000_alloc_sdmode_stack_slot): Likewise.
5519 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
5520 via xxlxor, just like DFmode 0.0.
5522 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
5523 define as 1 if we are running on a power7 or newer.
5524 (enum r6000_reg_class_enum): Add new constraints.
5526 * config/rs6000/dfp.md (movsd): Delete, combine with binary
5527 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
5528 with other moves by using conditional constraits (wg). Use LFIWZX
5529 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
5530 (movsd splitter): Likewise.
5531 (movsd_hardfloat): Likewise.
5532 (movsd_softfloat): Likewise.
5534 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
5535 binary and decimal floating point moves.
5536 (fmove_ok): New attributes to combine binary and decimal floating
5537 point moves, and to combine power6x (mfpgpr) moves along normal
5539 (real_value_to_target): Likewise.
5546 (movsf): Combine binary and decimal floating point moves. Combine
5547 power6x (mfpgpr) moves with other moves by using conditional
5548 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
5549 (mov<mode> for SFmode/SDmode); Likewise.
5550 (SFmode/SDmode splitters): Likewise.
5551 (movsf_hardfloat): Likewise.
5552 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
5553 (movsf_softfloat): Likewise.
5554 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
5556 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
5557 wx and wz constraints.
5559 * config/rs6000/constraints.md (wg constraint): New constraint to
5560 return FLOAT_REGS if -mmfpgpr (power6x) was used.
5562 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
5565 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
5566 -mdebug=reg, print wg, wl, wx, and wz constraints.
5567 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
5568 Initialize the reload functions for 64-bit binary/decimal floating
5570 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
5571 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
5572 create the buffer on the stack to overcome not having a 32-bit
5574 (rs6000_emit_move): Likewise.
5575 (rs6000_secondary_memory_needed_rtx): Likewise.
5576 (rs6000_alloc_sdmode_stack_slot): Likewise.
5577 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
5578 via xxlxor, just like DFmode 0.0.
5580 * config/rs6000/dfp.md (movdd): Delete, combine with binary
5581 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
5582 with other moves by using conditional constraits (wg). Use LFIWZX
5583 and STFIWX for loading SDmode on power7.
5584 (movdd splitters): Likewise.
5585 (movdd_hardfloat32): Likewise.
5586 (movdd_softfloat32): Likewise.
5587 (movdd_hardfloat64_mfpgpr): Likewise.
5588 (movdd_hardfloat64): Likewise.
5589 (movdd_softfloat64): Likewise.
5591 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
5592 64-bit binary and decimal floating point moves.
5593 (FMOVE64X): Likewise.
5594 (movdf): Combine 64-bit binary and decimal floating point moves.
5595 Combine power6x (mfpgpr) moves with other moves by using
5596 conditional constraits (wg).
5597 (mov<mode> for DFmode/DDmode): Likewise.
5598 (DFmode/DDmode splitters): Likewise.
5599 (movdf_hardfloat32): Likewise.
5600 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
5601 (movdf_softfloat32): Likewise.
5602 (movdf_hardfloat64_mfpgpr): Likewise.
5603 (movdf_hardfloat64): Likewise.
5604 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
5605 (movdf_softfloat64): Likewise.
5606 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
5607 (reload_<mode>_load): Move to later in the file so they aren't in
5608 the middle of the floating point move insns.
5609 (reload_<mode>_store): Likewise.
5611 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
5614 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
5615 constraint if -mdebug=reg.
5616 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
5617 Enable using dd reload support if needed.
5619 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
5620 binary and decimal floating point moves in rs6000.md.
5621 (movtd_internal): Likewise.
5623 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
5624 decimal floating point moves.
5626 (movtf_internal): Likewise.
5627 (mov<mode>_internal, TDmode/TFmode): Likewise.
5628 (movtf_softfloat): Likewise.
5629 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
5631 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
5632 movdi_internal64, using wg constraint for move direct operations.
5633 (movdi_internal64): Likewise.
5635 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
5636 MODES_TIEABLE_P for selected modes. Print the numerical value of
5637 the various virtual registers. Use GPR/FPR first/last values,
5638 instead of hard coding the register numbers. Print which modes
5639 have reload functions registered.
5640 (rs6000_option_override_internal): If -mdebug=reg, trace the options
5641 settings before/after setting cpu, target and subtarget settings.
5642 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
5643 and for secondary reload failures in rs6000_secondary_reload_inner.
5644 (rs6000_secondary_reload_fail): Likewise.
5645 (rs6000_secondary_reload_inner): Likewise.
5647 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
5648 macros for first/last GPR and FPR registers.
5649 (LAST_GPR_REGNO): Likewise.
5650 (FIRST_FPR_REGNO): Likewise.
5651 (LAST_FPR_REGNO): Likewise.
5653 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
5654 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
5655 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
5656 (vcond<mode><mode>): Likewise.
5657 (vcondu<mode><mode>): Likewise.
5658 (vector_gtu<mode>): Likewise.
5659 (vector_gte<mode>): Likewise.
5660 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
5661 to prevent the compiler from converting DImode operations to TImode.
5662 (ior<mode>3): Likewise.
5663 (and<mode>3): Likewise.
5664 (one_cmpl<mode>2): Likewise.
5665 (nor<mode>3): Likewise.
5666 (andc<mode>3): Likewise.
5668 * config/rs6000/constraints.md (wt constraint): New constraint
5669 that returns VSX_REGS if TImode is allowed in VSX registers.
5671 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
5674 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
5675 similar to TImode, but it is restricted to being in the GPRs.
5677 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
5678 TImode to occupy a single VSX register.
5680 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
5681 -mvsx-timode for power7/power8.
5682 (power7 cpu): Likewise.
5683 (power8 cpu): Likewise.
5685 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
5686 sure that TFmode/TDmode take up two registers if they are ever
5687 allowed in the upper VSX registers.
5688 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
5690 (rs6000_init_hard_regno_mode_ok): Likewise.
5691 (rs6000_debug_reg_global): Add debugging for PTImode and wt
5692 constraint. Print if LRA is turned on.
5693 (rs6000_option_override_internal): Give an error if -mvsx-timode
5694 and VSX is not enabled.
5695 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
5696 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
5697 to reg+offset addressing. Use PTImode when checking offset
5698 addresses for validity.
5699 (reg_offset_addressing_ok_p): Likewise.
5700 (rs6000_legitimate_offset_address_p): Likewise.
5701 (rs6000_legitimize_address): Likewise.
5702 (rs6000_legitimize_reload_address): Likewise.
5703 (rs6000_legitimate_address_p): Likewise.
5704 (rs6000_eliminate_indexed_memrefs): Likewise.
5705 (rs6000_emit_move): Likewise.
5706 (rs6000_secondary_reload): Likewise.
5707 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
5708 reloads to fpr registers to continue to use reg+offset addressing,
5709 but 64-bit reloads to altivec registers need reg+reg addressing.
5710 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
5711 it. Treat LO_SUM like a PLUS operation.
5712 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
5713 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
5714 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
5715 registers to share a register with a smaller sized type, since VSX
5716 puts scalars in the upper 64-bits.
5717 (print_operand): Add support for PTImode.
5718 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
5719 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
5720 registers, but don't have arithmetic support.
5721 (rs6000_memory_move_cost): Add test for VSX.
5722 (rs6000_opt_masks): Add -mvsx-timode.
5724 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
5727 (VSr): Use wt constraint for TImode.
5728 (VSv): Drop TImode support.
5729 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
5730 (vsx_movti_64bit): Likewise.
5731 (vsx_movti_32bit): Likewise.
5732 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
5733 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
5734 one '?' on the appropriate output constraint. Do not allow TImode
5735 logical operations on 32-bit systems.
5736 (vsx_ior<mode>3): Likewise.
5737 (vsx_xor<mode>3): Likewise.
5738 (vsx_one_cmpl<mode>2): Likewise.
5739 (vsx_nor<mode>3): Likewise.
5740 (vsx_andc<mode>3): Likewise.
5741 (vsx_concat_<mode>): Likewise.
5742 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
5744 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
5745 OPTION_MASK_VSX_TIMODE.
5746 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
5747 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
5749 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
5750 (TI2 iterator): New iterator for TImode, PTImode.
5751 (wd mode attribute): Add values for vector types.
5752 (movti_string): Replace TI move operations with operations for TImode
5753 and PTImode. Add support for TImode being allowed in VSX registers.
5754 (mov<mode>_string, TImode/PTImode): Likewise.
5755 (movti_ppc64): Likewise.
5756 (mov<mode>_ppc64, TImode/PTImode): Likewise.
5757 (TI mode splitters): Likewise.
5759 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
5762 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
5764 PR tree-optimization/56355
5765 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
5766 Also handle integers with undefined overflow.
5768 2013-03-20 Catherine Moore <clm@codesourcery.com>
5769 Maciej W. Rozycki <macro@codesourcery.com>
5770 Tom de Vries <tom@codesourcery.com>
5771 Nathan Sidwell <nathan@codesourcery.com>
5772 Iain Sandoe <iain@codesourcery.com>
5773 Nathan Froyd <froydnj@codesourcery.com>
5774 Chao-ying Fu <fu@mips.com>
5776 * doc/extend.texi: (micromips, nomicromips, nocompression):
5777 Document new function attributes.
5778 * doc/invoke.texi (minterlink-compressed, mmicromips,
5779 m14k, m14ke, m14kec): Document new options.
5780 (minterlink-mips16): Update documentation.
5781 * doc/md.texi (ZC, ZD): Document new constraints.
5782 * configure.ac (gcc_cv_as_micromips): Check if linker
5783 supports the .set micromips directive.
5784 * configure: Regenerate.
5785 * config.in: Regenerate.
5786 * config/mips/mips-tables.opt: Regenerate.
5787 * config/mips/micromips.md: New file.
5788 * constraints.md (ZC, ZD): New constraints.
5789 * config/mips/predicates.md (movep_src_register): New predicate.
5790 (movep_src_operand): New predicate.
5791 (non_volatile_mem_operand): New predicate.
5792 * config/mips/mips.md (multimem): New type.
5793 (length): Differentiate between 17-bit and 18-bit branch offsets.
5794 (MOVEP1, MOVEP2): New mode iterator.
5795 (mov_<load>l): Use ZC constraint.
5796 (mov_<load>r): Likewise.
5797 (mov_<store>l): Likewise.
5798 (mov_<store>r): Likewise.
5799 (*branch_equality<mode>_inverted): Add microMIPS support.
5800 (*branch_equality<mode>): Likewise.
5801 (*jump_absolute): Likewise.
5802 (indirect_jump_<mode>): Likewise.
5803 (tablejump_<mode>): Likewise.
5804 (<optab>_internal): Likewise.
5805 (sibcall_internal): Likewise.
5806 (sibcall_value_internal): Likewise.
5807 (prefetch): Use constraint ZD.
5808 * config/mips/mips.opt (minterlink-compressed): New option.
5809 (minterlink-mips16): Now an alias for minterlink-compressed.
5810 (mmicromips): New option.
5811 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
5812 (compare_and_swap_12): Likewise.
5813 (sync_add<mode>): Likewise.
5814 (sync_<optab>_12): Likewise.
5815 (sync_old_<optab>_12): Likewise.
5816 (sync_new_<optab>_12): Likewise.
5817 (sync_nand_12): Likewise.
5818 (sync_old_nand_12): Likewise.
5819 (sync_new_nand_12): Likewise.
5820 (sync_sub<mode>): Likewise.
5821 (sync_old_add<mode>): Likewise.
5822 (sync_old_sub<mode>): Likewise.
5823 (sync_new_add<mode>): Likewise.
5824 (sync_new_sub<mode>): Likewise.
5825 (sync_<optab><mode>): Likewise.
5826 (sync_old_<optab><mode>): Likewise.
5827 (sync_new_<optab><mode>): Likewise.
5828 (sync_nand<mode>): Likewise.
5829 (sync_old_nand<mode>): Likewise.
5830 (sync_new_nand<mode>): Likewise.
5831 (sync_lock_test_and_set<mode>): Likewise.
5832 (test_and_set_12): Likewise.
5833 (atomic_compare_and_swap<mode>): Likewise.
5834 (atomic_exchange<mode>_llsc): Likewise.
5835 (atomic_fetch_add<mode>_llsc): Likewise.
5836 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
5837 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
5838 (umips_save_restore_pattern_p): Likewise.
5839 (umips_load_store_pair_p): Likewise.
5840 (umips_output_load_store_pair): Likewise.
5841 (umips_movep_target_p): Likewise.
5842 (umips_12bit_offset_address_p): Likewise.
5843 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
5844 (mips_base_mips16): Rename this...
5845 (mips_base_compression_flags): ...to this. Update all uses.
5846 (mips_attribute_table): Add micromips, nomicromips and nocompression.
5847 (mips_mips16_decl_p): Delete.
5848 (mips_nomips16_decl_p): Delete.
5849 (mips_get_compress_on_flags): New function.
5850 (mips_get_compress_off_flags): New function.
5851 (mips_get_compress_mode): New function.
5852 (mips_get_compress_on_name): New function.
5853 (mips_get_compress_off_name): New function.
5854 (mips_insert_attributes): Support multiple compression types.
5855 (mips_merge_decl_attributes): Likewise.
5856 (umips_12bit_offset_address_p): New function.
5857 (mips_start_function_definition): Emit .set micromips directive.
5858 (mips_call_may_need_jalx_p): New function.
5859 (mips_function_ok_for_sibcall): Add microMIPS support.
5860 (mips_print_operand_punctuation): Support short delay slots and
5862 (umips_swm_mask, umips_swm_encoding): New.
5863 (umips_build_save_restore): New function.
5864 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
5865 (was_mips16_p): Remove.
5866 (old_compression_mode): New.
5867 (mips_set_compression_mode): New function.
5868 (mips_set_current_function): Add microMIPS support.
5869 (mips_option_override): Likewise.
5870 (umips_save_restore_pattern_p): New function.
5871 (umips_output_save_restore): New function.
5872 (umips_load_store_pair_p_1): New function.
5873 (umips_load_store_pair_p): New function.
5874 (umips_output_load_store_pair_1): New function.
5875 (umips_output_load_store_pair): New function.
5876 (umips_movep_target_p) New function.
5877 (mips_prepare_pch_save): Add microMIPS support.
5878 * config/mips/mips.h (TARGET_COMPRESSION): New.
5879 (TARGET_CPU_CPP_BUILTINS): Update macro
5880 to use new compression flags and to support microMIPS.
5881 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
5882 (MIPS_ARCH_FLOAT_SPEC): Likewise.
5883 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
5884 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
5885 (ASM_SPEC): Support mmicromips and mno-micromips.
5886 (M16STORE_REG_P): New macro.
5887 (MIPS_CALL): Support TARGET_MICROMIPS.
5888 (MICROMIPS_J): New macro.
5889 (mips_base_mips16): Rename this...
5890 (mips_base_compression_flags): ...to this.
5891 (UMIPS_12BIT_OFFSET_P): New macro.
5892 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
5893 (MULTILIB_DIRNAMES): Likewise.
5894 2013-03-20 Richard Biener <rguenther@suse.de>
5896 PR tree-optimization/56661
5897 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
5898 the result does not have to be distinct.
5900 2013-03-20 Richard Biener <rguenther@suse.de>
5902 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
5905 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5906 Steven Bosscher <steven@gcc.gnu.org>
5908 PR rtl-optimization/56605
5909 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
5911 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
5914 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
5915 that require movd instead of movq.
5917 2013-03-20 Richard Biener <rguenther@suse.de>
5919 * tree-ssa-structalias.c (struct variable_info): Add pointer
5920 to the first field of an aggregate with sub-vars. Make
5921 this and the pointer to the next subfield its ID.
5922 (vi_next): New function.
5923 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
5924 storedanything_id, integer_id): Increment by one.
5925 (new_var_info, get_call_vi, lookup_call_clobber_vi,
5926 get_call_clobber_vi): Adjust.
5927 (solution_set_expand): Simplify and speedup.
5928 (solution_set_add): Inline into ...
5929 (set_union_with_increment): ... this. Adjust accordingly.
5930 (do_sd_constraint): Likewise.
5931 (do_ds_constraint): Likewise.
5932 (do_complex_constraint): Simplify.
5933 (build_pred_graph): Adjust.
5934 (solve_graph): Likewise. Simplify and speedup.
5935 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
5936 get_constraint_for_component_ref, get_constraint_for_1,
5937 first_vi_for_offset, first_or_preceding_vi_for_offset,
5938 create_function_info_for, create_variable_info_for_1,
5939 create_variable_info_for, intra_create_variable_infos): Adjust.
5940 (init_base_vars): Push NULL for ID zero.
5941 (compute_points_to_sets): Adjust.
5943 2013-03-20 Richard Biener <rguenther@suse.de>
5945 * cfgloop.c (verify_loop_structure): Streamline and avoid
5946 ICEing on corrupt loop tree.
5947 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
5950 2013-03-20 Richard Biener <rguenther@suse.de>
5952 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
5953 check whether an SSA update is needed.
5955 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
5957 * config/mips/constraints.md (T): Rename to...
5961 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
5962 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
5964 2013-03-19 Ian Bolton <ian.bolton@arm.com>
5966 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
5967 (*subsi3_carryin_uxtw): Likewise.
5969 2013-03-19 Ian Bolton <ian.bolton@arm.com>
5971 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
5972 (*rorsi3_insn_uxtw): Likewise.
5974 2013-03-19 Ian Bolton <ian.bolton@arm.com>
5976 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
5977 (*extrsi5_insn_uxtw): Likewise.
5979 2013-03-19 Richard Biener <rguenther@suse.de>
5981 PR tree-optimization/56273
5982 * passes.c (init_optimization_passes): Move second VRP after DOM.
5984 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
5986 * config/i386/i386.md (*movti_internal): Merge from
5987 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
5988 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
5989 nox64 isa attributes.
5991 2013-03-18 Richard Biener <rguenther@suse.de>
5993 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
5995 (merge_node_constraints): Likewise.
5996 (build_succ_graph): Likewise.
5997 (valid_graph_edge): Inline into single caller.
5998 (unify_nodes): Likewise. Use bitmap_set_bit return value
6000 (scc_visit): Fix formatting and variable use.
6001 (do_sd_constraint): Use gcc_checking_assert.
6002 (do_ds_constraint): Likewise.
6003 (do_complex_constraint): Likewise.
6004 (condense_visit): Likewise. Cleanup.
6005 (dump_pred_graph): New function.
6006 (perform_var_substitution): Dump the pred-graph before
6007 variable substitution.
6008 (find_equivalent_node): Use gcc_checking_assert.
6009 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
6011 2013-03-18 Richard Biener <rguenther@suse.de>
6013 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
6014 Remove cond_expr_stmt_list argument and do not gimplify the
6016 (vect_loop_versioning): Adjust.
6017 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
6018 Cleanup to use less temporaries.
6019 (vect_create_data_ref_ptr): Cleanup.
6021 2013-03-18 Jakub Jelinek <jakub@redhat.com>
6023 PR tree-optimization/56635
6024 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
6025 require types_compatible_p types.
6027 2013-03-18 Nick Clifton <nickc@redhat.com>
6029 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
6032 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
6033 Add missing line to comment describing function.
6035 2013-03-18 Richard Biener <rguenther@suse.de>
6037 PR tree-optimization/56210
6038 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
6039 Handle string / character search functions.
6040 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
6042 2013-03-18 Richard Biener <rguenther@suse.de>
6045 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
6046 and implement properly.
6047 * gimple.h (gimple_cond_single_var_p): Remove.
6049 2013-03-18 Richard Biener <rguenther@suse.de>
6051 * tree-data-ref.h (find_data_references_in_loop): Declare.
6052 * tree-data-ref.c (get_references_in_stmt): Use a stack
6053 vector pre-allocated in the callers.
6054 (find_data_references_in_stmt): Adjust.
6055 (graphite_find_data_references_in_stmt): Likewise.
6056 (create_rdg_vertices): Likewise.
6057 (find_data_references_in_loop): Export.
6058 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
6059 Compute dependences here...
6060 (vect_analyze_data_refs): ...not here. When we encounter
6061 a non-vectorizable data reference in basic-block vectorization
6062 truncate the data reference vector. Do not bother to
6063 fixup data-dependence information for gather loads.
6064 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
6065 of data references, as reported.
6067 2013-03-18 Richard Biener <rguenther@suse.de>
6069 PR tree-optimization/3713
6070 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
6071 has_constants and expr.
6072 (stmt_has_constants): Properly valueize SSA names when deciding
6073 whether the stmt has constants.
6075 2013-03-18 Richard Biener <rguenther@suse.de>
6077 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
6078 whole function when there is nothing to do.
6079 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
6080 * tree-vectorizer.c (vectorize_loops): Update virtual and
6081 loop-closed SSA once.
6082 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
6084 2013-03-18 Richard Biener <rguenther@suse.de>
6087 * domwalk.c (bb_postorder): New global static.
6088 (cmp_bb_postorder): New function.
6089 (walk_dominator_tree): Replace scheme imposing an order for
6090 visiting dominator sons by one sorting them at the time they
6091 are pushed on the stack.
6093 2013-03-18 Richard Biener <rguenther@suse.de>
6095 PR tree-optimization/39326
6096 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
6097 (struct mem_ref): Replace mem member with ao_ref typed member.
6098 (MEM_ANALYZABLE): Adjust.
6099 (memref_eq): Likewise.
6100 (mem_ref_alloc): Likewise.
6101 (gather_mem_refs_stmt): Likewise.
6102 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
6103 (execute_sm_if_changed_flag_set): Adjust.
6104 (execute_sm): Likewise.
6105 (ref_always_accessed_p): Likewise.
6106 (refs_independent_p): Likewise.
6107 (can_sm_ref_p): Likewise.
6109 2013-03-18 Jakub Jelinek <jakub@redhat.com>
6112 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
6113 return 1 even for !unsignedp.
6115 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
6117 * config/i386/i386.md (isa): Add x64 and nox64.
6118 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
6119 (*pushtf): Enable *roF alternative for x64 isa only.
6120 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
6121 mode attribute of integer alternatives to DImode for TARGET_64BIT.
6122 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
6123 (*movtf_internal): Merge from *movtf_internal_rex64 and
6124 *movtf_internal_sse. Use x64 and nox64 isa attributes.
6125 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
6126 nox64 isa attributes.
6127 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
6128 nox64 isa attributes.
6129 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
6131 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
6133 * config/alpha/alpha.c (TARGET_LRA_P): New define.
6135 2013-03-17 Jakub Jelinek <jakub@redhat.com>
6138 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
6139 class names. Remove trailing comma after "ALL_REGS".
6141 2013-03-16 Jan Hubicka <jh@suse.cz>
6143 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
6144 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
6145 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
6146 of cgraph_get_create_node.
6147 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6149 2013-03-16 Jason Merrill <jason@redhat.com>
6152 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
6153 with DW_AT_default_value.
6155 2013-03-16 Jakub Jelinek <jakub@redhat.com>
6157 * BASE-VER: Set to 4.9.0.
6159 2013-03-14 Andi Kleen <ak@linux.intel.com>
6162 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
6163 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
6164 Document _x* TSX intrinsics.
6166 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
6167 David Holsgrove <david.holsgrove@xilinx.com>
6169 * configure.ac: Add MicroBlaze TLS support detection.
6170 * configure: Regenerate.
6171 * config/microblaze/microblaze-protos.h
6172 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
6173 symbol_mentioned_p, label_mentioned_p): Add prototypes.
6174 * config/microblaze/microblaze.c (microblaze_address_type): Add
6175 ADDRESS_TLS and tls_reloc address types.
6176 (microblaze_address_info): Add tls_reloc.
6177 (TARGET_HAVE_TLS): Define.
6178 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
6179 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
6180 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
6181 load_tls_operand, microblaze_call_tls_get_addr,
6182 microblaze_legitimize_tls_address): New functions.
6183 (microblaze_classify_unspec): Handle UNSPEC_TLS.
6184 (get_base_reg): Use microblaze_tls_symbol_p.
6185 (microblaze_classify_address): Handle TLS.
6186 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
6187 label_mentioned_p and microblaze_tls_referenced_p.
6188 (microblaze_legitimize_address): Handle TLS.
6189 (microblaze_address_insns): Handle ADDRESS_TLS.
6190 (pic_address_needs_scratch): Handle TLS.
6191 (print_operand_address): Handle TLS.
6192 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
6193 (microblaze_expand_move): Handle TLS.
6194 (microblaze_legitimate_constant_p): Check
6195 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
6196 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
6197 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
6198 (PIC_OFFSET_TABLE_REGNUM): Set.
6199 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
6200 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
6201 (addsi3, movsi_internal2, movdf_internal): Update constraints
6202 * config/microblaze/predicates.md (arith_plus_operand): Define
6203 (move_operand): Redefine as move_src_operand,
6204 check microblaze_tls_referenced_p.
6206 2013-03-14 Ian Bolton <ian.bolton@arm.com>
6208 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
6209 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
6211 2013-03-14 Ian Bolton <ian.bolton@arm.com>
6213 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
6216 2013-03-14 Jakub Jelinek <jakub@redhat.com>
6218 PR tree-optimization/53265
6219 * common.opt (Waggressive-loop-optimizations): New option.
6220 * tree-ssa-loop-niter.c: Include tree-pass.h.
6221 (do_warn_aggressive_loop_optimizations): New function.
6222 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
6223 if number_of_latch_executions returned constant.
6224 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
6225 early. If number_of_latch_executions returned constant, set
6226 nb_iterations_upper_bound back to it.
6227 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
6229 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
6230 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
6232 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
6233 (MULTILIB_OSDIRNAMES): Set.
6234 * genmultilib: If defaultosdirname doesn't start with :: , set
6235 defaultosdirname2 instead, clear it and emit two . multilib_raw
6236 entries instead of just one.
6238 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
6240 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
6241 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
6242 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
6243 (SUBTARGET_OVERRIDE_OPTIONS): New.
6245 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
6248 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
6249 (musermode): Convert to Var(TARGET_USERMODE).
6250 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
6251 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
6252 * config/sh/sh.c (sh_option_override): Use
6253 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
6254 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
6256 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
6258 (udivsi3_i4_single, divsi3_i4_single): Use
6259 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
6261 2013-03-13 Dave Korn <dave.korn.cygwin@....>
6263 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
6266 2013-03-13 Richard Biener <rguenther@suse.de>
6268 PR tree-optimization/56608
6269 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
6270 calls when vectorizing basic-blocks.
6272 2013-03-13 Jakub Jelinek <jakub@redhat.com>
6275 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
6278 2013-03-12 Jakub Jelinek <jakub@redhat.com>
6280 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
6282 2013-03-11 Jan Hubicka <jh@suse.cz>
6285 * lto-streamer-out.c (output_symbol_p): Skip references from
6286 constructors of external variables.
6288 2013-03-11 Jan Hubicka <jh@suse.cz>
6291 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
6293 * emit-rtl.c (verify_rtx_sharing): Likewise.
6294 (copy_insn_1): Likewise.
6295 * rtl.c (copy_rtx): Likewise.
6297 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
6300 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
6301 output_operand_lossage message.
6303 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
6306 * arm.c (shift_op): Validate RTL pattern on the fly.
6307 (arm_print_operand, case 'S'): Don't use shift_operator to validate
6310 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6313 * config/pa/pa.md (call_value): Check for calls to powf and direct to
6314 new call patterns that clobber %fr12.
6315 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
6316 split and postreload patterns.
6317 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
6318 registers %fr12 and %fr12R as call used.
6320 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
6322 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
6323 (canon_address, record_store, replace_read, check_mem_read_rtx,
6324 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
6325 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
6326 rest_of_handle_dse): Likewise.
6328 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
6331 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
6333 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
6334 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
6335 (save_optabs_if_changed): Replace with...
6336 (init_tree_optimization_optabs): ...this.
6337 * optabs.c (save_optabs_if_changed): Rename to...
6338 (init_tree_optimization_optabs): ...this. Take the optimization node
6339 as argument. Do nothing if the base optabs are already correct.
6340 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
6341 to recompute optabs.
6342 * function.h (function): Remove optabs field.
6343 * function.c (invoke_set_current_function_hook): Call
6344 init_tree_optimization_optabs. Use the result to initialize
6347 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
6349 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
6350 if GTMA_HAS_NO_INSTRUMENTATION.
6351 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
6352 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
6353 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
6354 * gimple-pretty-print.c (dump_gimple_transaction): Handle
6355 GTMA_HAS_NO_INSTRUMENTATION.
6357 2013-03-08 Jakub Jelinek <jakub@redhat.com>
6359 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
6362 2013-03-08 Marek Polacek <polacek@redhat.com>
6363 Jakub Jelinek <jakub@redhat.com>
6365 PR tree-optimization/56478
6366 * predict.c (is_comparison_with_loop_invariant_p): Change the
6367 type of loop_step to tree.
6368 (predict_loops): Adjust.
6369 (predict_iv_comparison): Perform the computations on double_ints.
6371 2013-03-08 Richard Biener <rguenther@suse.de>
6373 PR tree-optimization/56570
6374 * tree-cfg.c (verify_expr_location_1): Verify locations for
6376 * tree-sra.c (create_access_replacement): Strip locations
6377 from DECL_DEBUG_EXPRs.
6379 2013-03-08 Richard Biener <rguenther@suse.de>
6381 * tree-inline.c (expand_call_inline): Do not associate
6382 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
6383 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
6385 2013-03-08 Richard Biener <rguenther@suse.de>
6387 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
6388 or block changes with -Og. Fix for location / block encoding
6389 changes and PHI arguments with locations.
6391 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
6393 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
6395 (struct output_info): Likewise.
6396 (register_overhead): Remove bad gcc_assert.
6397 (bitmap_find_bit): If there is only a single bitmap element, do not
6398 count a miss as a search.
6399 (print_statistics): Update for counter type changes.
6400 (dump_bitmap_statistics): Likewise. Print headers such that they
6401 are properly lined up with the printed counters.
6403 2013-03-07 Jakub Jelinek <jakub@redhat.com>
6405 PR tree-optimization/56559
6406 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
6407 check that it has only a single use.
6409 2013-03-07 Richard Biener <rguenther@suse.de>
6411 * doc/invoke.texi (fwhole-program): Discourage use in combination
6414 2013-03-06 Jakub Jelinek <jakub@redhat.com>
6416 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
6418 PR tree-optimization/56539
6419 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
6420 instead of GSI_CONTINUE_LINKING as last argument to
6421 force_gimple_operand_gsi. Adjust function comment.
6423 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
6427 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
6428 promoted mode, convert the result back to the original mode.
6430 2013-03-06 Richard Biener <rguenther@suse.de>
6433 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
6434 (insert_updated_phi_nodes_compare_uids): New function.
6435 (update_ssa): Sort symbols_to_rename after UID before
6436 traversing it to insert PHI nodes.
6438 2013-03-06 Richard Biener <rguenther@suse.de>
6441 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
6442 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
6445 2013-02-13 Richard Biener <rguenther@suse.de>
6448 * varasm.c (output_constant_def_1): Get the decl representing
6449 the constant as argument.
6450 (output_constant_def): Wrap output_constant_def_1.
6451 (make_decl_rtl): Use output_constant_def_1 with the decl
6452 representing the constant.
6453 (build_constant_desc): Optionally re-use a decl already
6454 representing the constant.
6455 (tree_output_constant_def): Adjust.
6457 2013-03-06 Joey Ye <joey.ye@arm.com>
6460 * gcc.c (convert_white_space): New function.
6461 (main): Handles white space in function name.
6463 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
6466 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
6467 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
6468 to SH_DIV_CALL_TABLE for TARGET_SH2.
6469 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
6471 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
6474 2013-03-05 Sterling Augustine <saugustine@google.com>
6475 Cary Coutant <ccoutant@google.com>
6478 * dwarf2out.c (resolve_addr): Don't call
6479 remove_loc_list_addr_table_entries a second time for the same
6482 2013-03-05 Jakub Jelinek <jakub@redhat.com>
6485 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
6486 (avoid_complex_debug_insns): New function.
6487 (expand_debug_locations): Call it.
6489 PR rtl-optimization/56484
6490 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
6491 lifetimes of hard registers on small register class machines.
6493 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
6495 * config/microblaze/microblaze-protos.h: Rename
6496 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6497 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
6499 (microblaze_fast_interrupt_function_p): New function.
6500 (microblaze_is_interrupt_handler): Rename to
6501 microblaze_is_interrupt_variant and add fast_interrupt check.
6502 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
6503 (save_restore_insns): Likewise.
6504 (compute_frame_size): Likewise.
6505 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
6506 (microblaze_globalize_label): Likewise.
6507 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
6508 * config/microblaze/microblaze.md: Use wrapper
6509 microblaze_is_interrupt_variant.
6511 2013-03-05 Kai Tietz <ktietz@redhat.com>
6513 * sdbout.c (sdbout_one_type): Switch to current function's section
6514 supporting cold/hot.
6516 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
6518 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
6521 2013-03-05 Jakub Jelinek <jakub@redhat.com>
6524 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
6525 if VALGRIND_GET_VBITS is defined, temporarily make object
6526 memory all defined, and restore previous valgrind addressability
6527 and definability afterwards. Free this_object at the end.
6530 * lra.c (lra): Call lra_clear_live_ranges if live_p,
6531 right before calling lra_create_live_ranges, also call it
6532 when clearing live_p. Only call lra_clear_live_ranges
6533 at the end if live_p.
6536 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
6538 2013-03-05 Richard Biener <rguenther@suse.de>
6540 PR tree-optimization/56521
6541 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
6544 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
6547 * except.h (remove_unreachable_eh_regions): New prototype.
6548 * except.c (remove_eh_handler_splicer): New function, split out
6549 of remove_eh_handler.
6550 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
6551 warning about running it on many EH regions one at a time.
6552 (remove_unreachable_eh_regions_worker): New function, walk the
6553 EH tree in depth-first order and remove non-marked regions.
6554 (remove_unreachable_eh_regions): New function.
6555 * tree-eh.c (mark_reachable_handlers): New function, split out
6556 from remove_unreachable_handlers.
6557 (remove_unreachable_handlers): Use mark_reachable_handlers and
6558 remove_unreachable_eh_regions.
6559 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
6560 and remove_unreachable_eh_regions.
6562 2013-03-05 Richard Biener <rguenther@suse.de>
6565 * loop-init.c (fix_loop_structure): Remove loops in two stages,
6566 not freeing them until the end.
6568 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6570 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
6572 2013-03-05 Richard Biener <rguenther@suse.de>
6574 PR tree-optimization/56270
6575 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
6576 of loads after scheduling an SLP instance.
6578 2013-03-05 Jakub Jelinek <jakub@redhat.com>
6580 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
6582 (check_gcc_parallelize): Run guality.exp as a separate job from
6583 vect.exp with unsorted.exp and $(dg_target_exps) separately from
6584 struct-layout-1.exp with stackalign.exp.
6586 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
6589 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
6590 load_index sbitmap even if some bit in it isn't set.
6593 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
6594 (discover_iteration_bound_by_body_walk): Change queues to
6595 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
6596 spelling in comment. Call safe_push on queues[bound_index] directly.
6597 Release queues[queue_index] in every iteration unconditionally.
6598 Release bounds vector.
6601 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
6602 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
6603 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
6606 2013-03-05 Richard Biener <rguenther@suse.de>
6609 * tree-inline.c (remap_blocks_to_null): New function.
6610 (expand_call_inline): When expanding a call stmt without
6611 an associated block inline remap all callee blocks to NULL.
6613 2013-03-05 Jakub Jelinek <jakub@redhat.com>
6615 PR rtl-optimization/56494
6616 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
6617 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
6618 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
6621 * sel-sched-ir.c (free_sched_pools): Release
6622 succs_info_pool.stack[succs_info_pool.max_top] vectors too
6623 if succs_info_pool.max_top isn't -1.
6626 * opts.c (opts_obstack, opts_concat): Moved to...
6627 * opts-common.c (opts_obstack, opts_concat): ... here.
6629 2013-03-04 Jakub Jelinek <jakub@redhat.com>
6632 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
6634 2013-03-04 Martin Jambor <mjambor@suse.cz>
6636 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
6637 all appropriate places.
6639 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
6641 PR tree-optimization/56424
6642 * ipa-split.c (split_function): Do not set the RSO flag if result is
6643 not by reference and its type is a register type.
6645 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
6647 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
6648 (microblaze_legitimate_pic_operand): Likewise
6649 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
6650 new function microblaze_legitimate_pic_operand
6651 * config/microblaze/microblaze-protos.h
6652 (microblaze_legitimate_pic_operand): Declare.
6654 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6656 * config/microblaze/predicates.md (call_insn_simple_operand):
6657 New predicate for supported rtx code types.
6658 * config/microblaze/microblaze.md (call_internal1): Use
6659 call_insn_simple_operand predicate.
6661 2013-03-04 Jakub Jelinek <jakub@redhat.com>
6664 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
6665 partitions.ordered_remove.
6668 * tree-vect-stmts.c (vectorizable_conversion): Don't call
6669 vec_oprnds0.create (1) for modifier == NONE.
6672 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
6673 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
6674 vec_oprnds1 right before pushing anything to it for
6678 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
6679 set nbbs to 0 instead of having separate code path.
6680 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
6681 instead of false as last argument if returning NULL.
6683 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
6685 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
6686 the attribute is now called "target" instead of "option".
6687 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
6688 * doc/tm.texi.in (Target Attributes): Likewise document the correct
6689 attribute/pragma name for TARGET_OPTION_VALID_P and
6690 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
6691 * doc/tm.texi: Regenerated.
6693 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
6695 * config/microblaze/microblaze.c:
6696 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
6697 * config/microblaze/microblaze.h: Add -mxl-reorder to
6699 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
6700 instructions emitted if TARGET_REORDER.
6701 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
6702 or 0 for -m/-mno case, but initialises as 2 to detect default use case
6705 2013-03-01 Xinliang David Li <davidxl@google.com>
6707 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
6710 2013-03-01 Jakub Jelinek <jakub@redhat.com>
6713 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
6714 vector even when returning true. Fix up function comment formatting.
6717 * ira-build.c (ira_loop_nodes_count): New variable.
6718 (create_loop_tree_nodes): Initialize it.
6719 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
6722 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
6723 method on dr_chain and result_chain.
6724 * tree-vect-stmts.c (vectorizable_store): Only call
6725 result_chain.create if j == 0.
6728 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
6729 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
6730 before overwriting it.
6732 2013-03-01 Tobias Burnus <burnus@net-b.de>
6734 * doc/extended.texi (C Extensions): Change order in @menu
6736 (Other MIPS Built-in Functions): Move last MIPS entry before
6737 "picoChip Built-in Functions".
6738 (SH Built-in Functions): Move after RX Built-in Functions.
6739 * doc/gcc.texi (Introduction): Change order in @menu
6741 * doc/md.texi (Constraints): Ditto.
6742 * gty.texi (Type Information): Ditto.
6743 (User-provided marking routines for template types): Make
6745 * doc/invoke.texi (AArch64 Options): Move before
6746 "Adapteva Epiphany Options".
6748 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
6749 Jakub Jelinek <jakub@redhat.com>
6752 * asan.c (gate_asan): Lookup no_sanitize_address instead of
6753 no_address_safety_analysis attribute.
6754 * doc/extend.texi (no_address_safety_attribute): Rename to
6755 no_sanitize_address attribute, mention no_address_safety_analysis
6756 attribute as deprecated alias.
6758 2013-02-28 Jakub Jelinek <jakub@redhat.com>
6761 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
6762 type to vec<vec<tree> > *.
6763 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
6764 to be vec<tree> instead of vec<tree> *, set vec_defs
6765 to vNULL and call vec_defs.create (number_of_vects), adjust other
6767 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
6768 vectorizable_condition): Adjust vect_get_slp_defs callers.
6770 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
6772 * config/aarch64/aarch64.c
6773 (aarch64_float_const_representable): Remove unused variable.
6775 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
6777 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
6779 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
6781 * config/aarch64/aarch64-builtins.c
6782 (aarch64_init_simd_builtins): Make static.
6784 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
6786 * config/aarch64/aarch64.c
6787 (aarch64_simd_make_constant): Make static.
6789 2013-02-28 Martin Jambor <mjambor@suse.cz>
6791 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
6792 with no initialization to the RHS of debug statements.
6794 2013-02-28 Martin Jambor <mjambor@suse.cz>
6796 PR tree-optimization/56294
6797 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
6799 (get_access_replacement): Do not call create_access_replacement.
6800 Assert a replacement exists.
6801 (get_repl_default_def_ssa_name): Create the replacement declaration
6804 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6806 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
6809 2013-02-28 Marek Polacek <polacek@redhat.com>
6811 PR rtl-optimization/56466
6812 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
6813 if we're changing a loop.
6814 (peel_loops_completely): Likewise.
6816 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
6819 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
6821 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
6824 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
6825 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
6826 INTX_FTYPE_FX, FX_FTYPE_INTX.
6827 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
6829 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
6831 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
6832 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
6833 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
6834 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
6835 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
6836 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
6837 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
6838 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
6839 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
6840 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
6841 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
6842 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
6843 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
6844 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
6845 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
6846 (avrxmega6): Increase max flash segments from 5 to 6.
6847 * config/avr/t-multilib: Regenerate.
6848 * config/avr/avr-tables.opt: Regenerate.
6849 * doc/avr-mmcu.texi: Regenerate.
6851 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
6853 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
6854 (avr_device_to_arch): Rename to avr_device_to_ld.
6855 (avr_device_to_as): New prototype.
6856 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
6857 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
6858 * config/avr/driver-avr.c (avr_device_to_as): New.
6859 (avr_device_to_arch): Rename to avr_device_to_ld.
6861 2013-02-27 Jakub Jelinek <jakub@redhat.com>
6864 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
6865 method on dr_chain and result_chain.
6868 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
6869 pointer_set_destroy on not_executed_last_iteration.
6872 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
6875 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
6876 FOR_EACH_DEFINED_FUNCTION when freeing state.
6879 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
6881 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
6885 * ipa-cp.c (decide_whether_version_node): Call vec_free on
6886 known_aggs[i].items and release known_aggs vector.
6889 * ipa-reference.c (propagate): Free node_info even for alias nodes.
6891 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6893 * config/microblaze/microblaze.c (microblaze_emit_compare):
6894 Use xor for EQ/NE comparisions.
6895 * config/microblaze/microblaze.md (cstoresf4): Add constraints
6896 (cbranchsf4): Adjust operator to comparison_operator.
6898 2013-02-27 Jakub Jelinek <jakub@redhat.com>
6901 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
6903 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
6904 vec_safe_push, always update *slot.
6905 (redirect_edge_var_map_clear): Use vec_free.
6906 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
6907 (free_var_map_entry): Use vec_free.
6908 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
6909 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
6911 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
6914 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
6915 when the may_trap_p bit of the exprs being merged differs.
6916 Reorder tests for speculativeness in the logical and operator.
6918 2013-02-27 Jakub Jelinek <jakub@redhat.com>
6920 * incpath.c (add_standard_paths): Use reconcat instead of concat
6921 where appropriate and avoid leaking memory.
6923 * opts.h: Include obstack.h.
6924 (opts_concat): New prototype.
6925 (opts_obstack): New declaration.
6926 * opts.c (opts_concat): New function.
6927 (opts_obstack): New variable.
6928 (init_options_struct): Call gcc_init_obstack on opts_obstack.
6929 (finish_options): Use opts_concat instead of concat
6930 and XOBNEWVEC instead of XNEWVEC.
6931 * opts-common.c (generate_canonical_option, decode_cmdline_option,
6932 generate_option): Likewise.
6933 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
6934 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
6937 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
6938 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
6940 2013-02-26 Jakub Jelinek <jakub@redhat.com>
6943 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
6945 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
6947 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
6948 (arm_block_move_unaligned_straight): Likewise.
6949 (arm_adjust_block_mem): Likewise.
6951 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
6954 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
6955 temp, cond and label.
6956 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
6959 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
6960 * config/c6x/c6x.h (dbx_register_map): Update declaration.
6963 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
6964 of prologue/epilogue functions.
6967 * config/tilegx/tilegx.c (tilegx_expand_prologue):
6968 Remove unused variable cfa_offset.
6969 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
6972 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
6973 type promotion to unsigned.
6976 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
6977 for HOST_WIDE_INT of 32 bit / same size as int.
6978 (arm_block_move_unaligned_straight): Likewise.
6979 (arm_adjust_block_mem): Likewise.
6982 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
6985 2013-02-26 Marek Polacek <polacek@redhat.com>
6987 PR tree-optimization/56426
6988 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
6990 2013-02-26 Richard Biener <rguenther@suse.de>
6993 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
6994 unused variable loops.
6996 2013-02-26 Jakub Jelinek <jakub@redhat.com>
6998 PR tree-optimization/56448
6999 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
7000 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
7001 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
7002 later operands of the references, or even first operand for
7003 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
7005 PR tree-optimization/56443
7006 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
7007 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
7008 to type_for_mode langhook.
7010 2013-02-25 Matt Turner <mattst88@gmail.com>
7012 * doc/invoke.texi: Document r4700.
7014 2013-02-25 Richard Biener <rguenther@suse.de>
7016 PR tree-optimization/56175
7017 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
7019 (simplify_bitwise_binary): ... here. Also guard the conversion
7020 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
7022 2013-02-25 Catherine Moore <clm@codesourcery.com>
7025 2013-02-24 Catherine Moore <clm@codesourcery.com>
7026 Maciej W. Rozycki <macro@codesourcery.com>
7027 Tom de Vries <tom@codesourcery.com>
7028 Nathan Sidwell <nathan@codesourcery.com>
7029 Iain Sandoe <iain@codesourcery.com>
7030 Nathan Froyd <froydnj@codesourcery.com>
7031 Chao-ying Fu <fu@mips.com>
7033 * doc/extend.texi: (micromips, nomicromips, nocompression):
7034 Document new function attributes.
7035 * doc/invoke.texi (minterlink-compressed, mmicromips,
7036 m14k, m14ke, m14kec): Document new options.
7037 (minterlink-mips16): Update documentation.
7038 * doc/md.texi (ZC, ZD): Document new constraints.
7039 * configure.ac (gcc_cv_as_micromips): Check if linker
7040 supports the .set micromips directive.
7041 * configure: Regenerate.
7042 * config.in: Regenerate.
7043 * config/mips/mips-tables.opt: Regenerate.
7044 * config/mips/micromips.md: New file.
7045 * constraints.md (ZC, AD): New constraints.
7046 * config/mips/predicates.md (movep_src_register): New predicate.
7047 (movep_src_operand): New predicate.
7048 (non_volatile_mem_operand): New predicate.
7049 * config/mips/mips.md (multimem): New type.
7050 (length): Differentiate between 17-bit and 18-bit branch offsets.
7051 (MOVEP1, MOVEP2): New mode iterator.
7052 (mov_<load>l): Use ZC constraint.
7053 (mov_<load>r): Likewise.
7054 (mov_<store>l): Likewise.
7055 (mov_<store>r): Likewise.
7056 (*branch_equality<mode>_inverted): Add microMIPS support.
7057 (*branch_equality<mode>): Likewise.
7058 (*jump_absolute): Likewise.
7059 (indirect_jump_<mode>): Likewise.
7060 (tablejump_<mode>): Likewise.
7061 (<optab>_internal): Likewise.
7062 (sibcall_internal): Likewise.
7063 (sibcall_value_internal): Likewise.
7064 (prefetch): Use constraint ZD.
7065 * config/mips/mips.opt (minterlink-compressed): New option.
7066 (minterlink-mips16): Now an alias for minterlink-compressed.
7067 (mmicromips): New option.
7068 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
7069 (compare_and_swap_12): Likewise.
7070 (sync_add<mode>): Likewise.
7071 (sync_<optab>_12): Likewise.
7072 (sync_old_<optab>_12): Likewise.
7073 (sync_new_<optab>_12): Likewise.
7074 (sync_nand_12): Likewise.
7075 (sync_old_nand_12): Likewise.
7076 (sync_new_nand_12): Likewise.
7077 (sync_sub<mode>): Likewise.
7078 (sync_old_add<mode>): Likewise.
7079 (sync_old_sub<mode>): Likewise.
7080 (sync_new_add<mode>): Likewise.
7081 (sync_new_sub<mode>): Likewise.
7082 (sync_<optab><mode>): Likewise.
7083 (sync_old_<optab><mode>): Likewise.
7084 (sync_new_<optab><mode>): Likewise.
7085 (sync_nand<mode>): Likewise.
7086 (sync_old_nand<mode>): Likewise.
7087 (sync_new_nand<mode>): Likewise.
7088 (sync_lock_test_and_set<mode>): Likewise.
7089 (test_and_set_12): Likewise.
7090 (atomic_compare_and_swap<mode>): Likewise.
7091 (atomic_exchange<mode>_llsc): Likewise.
7092 (atomic_fetch_add<mode>_llsc): Likewise.
7093 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
7094 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
7095 (umips_save_restore_pattern_p): Likewise.
7096 (umips_load_store_pair_p): Likewise.
7097 (umips_output_load_store_pair): Likewise.
7098 (umips_movep_target_p): Likewise.
7099 (umips_12bit_offset_address_p): Likewise.
7100 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
7101 (mips_base_mips16): Rename this...
7102 (mips_base_compression_flags): ...to this. Update all uses.
7103 (mips_attribute_table): Add micromips, nomicromips and nocompression.
7104 (mips_mips16_decl_p): Delete.
7105 (mips_nomips16_decl_p): Delete.
7106 (mips_get_compress_on_flags): New function.
7107 (mips_get_compress_off_flags): New function.
7108 (mips_get_compress_mode): New function.
7109 (mips_get_compress_on_name): New function.
7110 (mips_get_compress_off_name): New function.
7111 (mips_insert_attributes): Support multiple compression types.
7112 (mips_merge_decl_attributes): Likewise.
7113 (umips_12bit_offset_address_p): New function.
7114 (mips_start_function_definition): Emit .set micromips directive.
7115 (mips_call_may_need_jalx_p): New function.
7116 (mips_function_ok_for_sibcall): Add microMIPS support.
7117 (mips_print_operand_punctuation): Support short delay slots and
7119 (umips_swm_mask, umips_swm_encoding): New.
7120 (umips_build_save_restore): New function.
7121 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
7122 (was_mips16_p): Remove.
7123 (old_compression_mode): New.
7124 (mips_set_compression_mode): New function.
7125 (mips_set_current_function): Add microMIPS support.
7126 (mips_option_override): Likewise.
7127 (umips_save_restore_pattern_p): New function.
7128 (umips_output_save_restore): New function.
7129 (umips_load_store_pair_p_1): New function.
7130 (umips_load_store_pair_p): New function.
7131 (umips_output_load_store_pair_1): New function.
7132 (umips_output_load_store_pair): New function.
7133 (umips_movep_target_p) New function.
7134 (mips_prepare_pch_save): Add microMIPS support.
7135 * config/mips/mips.h (TARGET_COMPRESSION): New.
7136 (TARGET_CPU_CPP_BUILTINS): Update macro
7137 to use new compression flags and to support microMIPS.
7138 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
7139 (MIPS_ARCH_FLOAT_SPEC): Likewise.
7140 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
7141 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
7142 (ASM_SPEC): Support mmicromips and mno-micromips.
7143 (M16STORE_REG_P): New macro.
7144 (MIPS_CALL): Support TARGET_MICROMIPS.
7145 (MICROMIPS_J): New macro.
7146 (mips_base_mips16): Rename this...
7147 (mips_base_compression_flags): ...to this.
7148 (UMIPS_12BIT_OFFSET_P): New macro.
7149 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
7150 (MULTILIB_DIRNAMES): Likewise.
7152 2013-02-25 Tom de Vries <tom@codesourcery.com>
7154 PR rtl-optimization/56131
7155 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
7156 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
7157 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
7159 2013-02-25 Tobias Burnus <burnus@net-b.de>
7161 * doc/invoke.texi (-fsanitize=): Move from optimization
7162 to debugging options.
7164 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
7166 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
7168 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
7169 Alexander Monakov <amonakov@ispras.ru>
7172 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
7173 flush pending lists also on non-jumps. Adjust comment.
7175 2013-02-24 Catherine Moore <clm@codesourcery.com>
7176 Maciej W. Rozycki <macro@codesourcery.com>
7177 Tom de Vries <tom@codesourcery.com>
7178 Nathan Sidwell <nathan@codesourcery.com>
7179 Iain Sandoe <iain@codesourcery.com>
7180 Nathan Froyd <froydnj@codesourcery.com>
7181 Chao-ying Fu <fu@mips.com>
7183 * doc/extend.texi: (micromips, nomicromips, nocompression):
7184 Document new function attributes.
7185 * doc/invoke.texi (minterlink-compressed, mmicromips,
7186 m14k, m14ke, m14kec): Document new options.
7187 (minterlink-mips16): Update documentation.
7188 * doc/md.texi (ZC, ZD): Document new constraints.
7189 * configure.ac (gcc_cv_as_micromips): Check if linker
7190 supports the .set micromips directive.
7191 * configure: Regenerate.
7192 * config.in: Regenerate.
7193 * config/mips/mips-tables.opt: Regenerate.
7194 * config/mips/micromips.md: New file.
7195 * constraints.md (ZC, AD): New constraints.
7196 * config/mips/predicates.md (movep_src_register): New predicate.
7197 (movep_src_operand): New predicate.
7198 (non_volatile_mem_operand): New predicate.
7199 * config/mips/mips.md (multimem): New type.
7200 (length): Differentiate between 17-bit and 18-bit branch offsets.
7201 (MOVEP1, MOVEP2): New mode iterator.
7202 (mov_<load>l): Use ZC constraint.
7203 (mov_<load>r): Likewise.
7204 (mov_<store>l): Likewise.
7205 (mov_<store>r): Likewise.
7206 (*branch_equality<mode>_inverted): Add microMIPS support.
7207 (*branch_equality<mode>): Likewise.
7208 (*jump_absolute): Likewise.
7209 (indirect_jump_<mode>): Likewise.
7210 (tablejump_<mode>): Likewise.
7211 (<optab>_internal): Likewise.
7212 (sibcall_internal): Likewise.
7213 (sibcall_value_internal): Likewise.
7214 (prefetch): Use constraint ZD.
7215 * config/mips/mips.opt (minterlink-compressed): New option.
7216 (minterlink-mips16): Now an alias for minterlink-compressed.
7217 (mmicromips): New option.
7218 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
7219 (compare_and_swap_12): Likewise.
7220 (sync_add<mode>): Likewise.
7221 (sync_<optab>_12): Likewise.
7222 (sync_old_<optab>_12): Likewise.
7223 (sync_new_<optab>_12): Likewise.
7224 (sync_nand_12): Likewise.
7225 (sync_old_nand_12): Likewise.
7226 (sync_new_nand_12): Likewise.
7227 (sync_sub<mode>): Likewise.
7228 (sync_old_add<mode>): Likewise.
7229 (sync_old_sub<mode>): Likewise.
7230 (sync_new_add<mode>): Likewise.
7231 (sync_new_sub<mode>): Likewise.
7232 (sync_<optab><mode>): Likewise.
7233 (sync_old_<optab><mode>): Likewise.
7234 (sync_new_<optab><mode>): Likewise.
7235 (sync_nand<mode>): Likewise.
7236 (sync_old_nand<mode>): Likewise.
7237 (sync_new_nand<mode>): Likewise.
7238 (sync_lock_test_and_set<mode>): Likewise.
7239 (test_and_set_12): Likewise.
7240 (atomic_compare_and_swap<mode>): Likewise.
7241 (atomic_exchange<mode>_llsc): Likewise.
7242 (atomic_fetch_add<mode>_llsc): Likewise.
7243 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
7244 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
7245 (umips_save_restore_pattern_p): Likewise.
7246 (umips_load_store_pair_p): Likewise.
7247 (umips_output_load_store_pair): Likewise.
7248 (umips_movep_target_p): Likewise.
7249 (umips_12bit_offset_address_p): Likewise.
7250 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
7251 (mips_base_mips16): Rename this...
7252 (mips_base_compression_flags): ...to this. Update all uses.
7253 (mips_attribute_table): Add micromips, nomicromips and nocompression.
7254 (mips_mips16_decl_p): Delete.
7255 (mips_nomips16_decl_p): Delete.
7256 (mips_get_compress_on_flags): New function.
7257 (mips_get_compress_off_flags): New function.
7258 (mips_get_compress_mode): New function.
7259 (mips_get_compress_on_name): New function.
7260 (mips_get_compress_off_name): New function.
7261 (mips_insert_attributes): Support multiple compression types.
7262 (mips_merge_decl_attributes): Likewise.
7263 (umips_12bit_offset_address_p): New function.
7264 (mips_start_function_definition): Emit .set micromips directive.
7265 (mips_call_may_need_jalx_p): New function.
7266 (mips_function_ok_for_sibcall): Add microMIPS support.
7267 (mips_print_operand_punctuation): Support short delay slots and
7269 (umips_swm_mask, umips_swm_encoding): New.
7270 (umips_build_save_restore): New function.
7271 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
7272 (was_mips16_p): Remove.
7273 (old_compression_mode): New.
7274 (mips_set_compression_mode): New function.
7275 (mips_set_current_function): Add microMIPS support.
7276 (mips_option_override): Likewise.
7277 (umips_save_restore_pattern_p): New function.
7278 (umips_output_save_restore): New function.
7279 (umips_load_store_pair_p_1): New function.
7280 (umips_load_store_pair_p): New function.
7281 (umips_output_load_store_pair_1): New function.
7282 (umips_output_load_store_pair): New function.
7283 (umips_movep_target_p) New function.
7284 (mips_prepare_pch_save): Add microMIPS support.
7285 * config/mips/mips.h (TARGET_COMPRESSION): New.
7286 (TARGET_CPU_CPP_BUILTINS): Update macro
7287 to use new compression flags and to support microMIPS.
7288 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
7289 (MIPS_ARCH_FLOAT_SPEC): Likewise.
7290 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
7291 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
7292 (ASM_SPEC): Support mmicromips and mno-micromips.
7293 (M16STORE_REG_P): New macro.
7294 (MIPS_CALL): Support TARGET_MICROMIPS.
7295 (MICROMIPS_J): New macro.
7296 (mips_base_mips16): Rename this...
7297 (mips_base_compression_flags): ...to this.
7298 (UMIPS_12BIT_OFFSET_P): New macro.
7299 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
7300 (MULTILIB_DIRNAMES): Likewise.
7302 2013-02-24 Jakub Jelinek <jakub@redhat.com>
7305 * target-globals.c (save_target_globals): For init_reg_sets and
7306 target_reinit remporarily set this_fn_optabs to this_target_optabs.
7308 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
7310 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
7311 * config/aarch64/t-aarch64
7312 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
7314 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
7317 * lra-constraints.c (process_alt_operands): Reload operand
7318 conflicting with earlier clobber only if no more other conflicting
7321 2013-02-22 Jakub Jelinek <jakub@redhat.com>
7324 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
7325 if not linking a shared library.
7327 2013-02-22 Seth LaForge <sethml@google.com>
7329 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
7331 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
7333 * config/arm/arm.md (split for extendsidi): Update condition.
7334 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
7335 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
7336 (qhs_zextenddi_cstr): Likewise.
7338 2013-02-21 Jakub Jelinek <jakub@redhat.com>
7341 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
7342 avoid signed wrapping.
7343 (expand_mult): Handle properly multiplication by
7344 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
7345 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
7346 in the compiler if coeff is HOST_WIDE_INT_MIN.
7347 (expand_divmod): Don't make ext_op1 static, change it's type to
7348 uhwi. Avoid undefined behavior in -INTVAL (op1).
7350 PR rtl-optimization/50339
7351 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
7353 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
7354 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
7355 into splitting_ashiftrt field.
7356 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
7358 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
7361 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
7364 * trans-mem.c (execute_tm_mark): Do not expand transactions that
7365 are sure to go irrevocable.
7367 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
7369 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
7370 scalars are valid operands.
7372 2013-02-21 Martin Jambor <mjambor@suse.cz>
7374 PR tree-optimization/56310
7375 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
7376 only matching indices and non-negative final offsets.
7377 (intersect_aggregates_with_edge): Pass src_idx to
7378 agg_replacements_to_vector. Pass src_idx insstead of index to
7379 intersect_with_agg_replacements.
7381 2013-02-21 Martin Jambor <mjambor@suse.cz>
7383 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
7384 instead of hard-wired defaults.
7386 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
7388 * doc/invoke.texi (MIPS Options): Update documentation of the
7389 floating-point multiply-accumulate instruction restrictions.
7391 2013-02-21 Kostya Serebryany <kcc@google.com>
7393 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
7394 asan_shadow_offset on x86_64 linux.
7396 2013-02-21 Richard Biener <rguenther@suse.de>
7398 PR tree-optimization/56415
7400 2013-02-11 Richard Biener <rguenther@suse.de>
7402 PR tree-optimization/56273
7403 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
7406 2013-02-21 Jakub Jelinek <jakub@redhat.com>
7409 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
7413 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
7414 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
7416 2013-02-20 Jan Hubicka <jh@suse.cz>
7418 PR tree-optimization/56265
7419 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
7420 when target is referenced for first time.
7422 2013-02-20 Richard Biener <rguenther@suse.de>
7424 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
7425 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
7426 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
7427 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
7428 not return anything.
7429 (rename_ssa_copies): Do not remove unused locals.
7430 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
7431 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
7432 * passes.c (execute_function_todo): Do not schedule unused locals
7433 removal if cleanup_tree_cfg did something.
7434 * tree-ssa-live.c (remove_unused_locals): Dump statistics
7435 about the number of removed locals.
7437 2013-02-20 Richard Biener <rguenther@suse.de>
7439 PR tree-optimization/56398
7440 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
7442 2013-02-20 Martin Jambor <mjambor@suse.cz>
7444 PR tree-optimization/55334
7445 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
7446 restricted pointers to arrays.
7448 2013-02-20 Richard Biener <rguenther@suse.de>
7449 Jakub Jelinek <jakub@redhat.com>
7451 PR tree-optimization/56396
7452 * tree-ssa-ccp.c (n_const_val): New static variable.
7453 (get_value): Return NULL for SSA names we don't have a lattice
7455 (ccp_initialize): Initialize n_const_val.
7456 * tree-ssa-copy.c (n_copy_of): New static variable.
7457 (init_copy_prop): Initialize n_copy_of.
7458 (get_value): Return NULL_TREE for SSA names we don't have a
7461 2013-02-20 Martin Jambor <mjambor@suse.cz>
7463 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
7465 2013-02-20 Richard Biener <rguenther@suse.de>
7467 * genpreds.c (write_lookup_constraint): Do not compare first
7468 letter of the constraint again.
7470 2013-02-20 Richard Biener <rguenther@suse.de>
7472 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
7474 (get_use_iv_cost): Terminate hashtable walk when coming across
7477 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
7479 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
7480 reassociation for avx2 targets.
7482 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7484 * config/microblaze/microblaze.c: microblaze_has_clz = 0
7485 Add version check for v8.10.a to enable microblaze_has_clz
7486 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
7487 version and TARGET_PATTERN_COMPARE check
7488 * config/microblaze/microblaze.md: New clzsi2 instruction
7490 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7492 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
7493 function before branching.
7495 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
7497 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
7499 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
7501 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
7504 * sel-sched.c: Include ira.h.
7505 (implicit_clobber_conflict_p): New function.
7506 (moveup_expr): Use it.
7507 * Makefile.in (sel-sched.o): Depend on ira.h.
7509 2013-02-19 Richard Biener <rguenther@suse.de>
7511 PR tree-optimization/56384
7512 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
7513 (vn_hash_type): Split out from ...
7514 (vn_hash_constant_with_type): ... here.
7515 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
7516 (vn_phi_eq): Compare types from vn_phi_s structure.
7517 (vn_phi_lookup): Populate vn_phi_s type.
7518 (vn_phi_insert): Likewise.
7520 2013-02-19 Jakub Jelinek <jakub@redhat.com>
7522 PR tree-optimization/56350
7523 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
7524 if haven't found reduction or nested cycle operand, rather than
7525 asserting we must find it.
7527 PR tree-optimization/56381
7528 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
7531 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
7532 Jakub Jelinek <jakub@redhat.com>
7535 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
7536 (swap_optab_enable): Same.
7537 (init_all_optabs): Use argument instead of global.
7538 * tree.h (struct tree_optimization_option): New field target_optabs.
7539 * expr.h (init_all_optabs): Add argument to prototype.
7540 (TREE_OPTIMIZATION_OPTABS): New.
7541 (save_optabs_if_changed): Protoize.
7542 * optabs.h: Declare this_fn_optabs.
7543 * optabs.c (save_optabs_if_changed): New.
7544 Declare this_fn_optabs.
7545 (init_optabs): Add argument to init_all_optabs() call.
7546 * function.c (invoke_set_current_function_hook): Handle per
7548 * function.h (struct function): New field optabs.
7549 * config/mips/mips.c (mips_set_mips16_mode): Handle when
7550 optimization_current_node has changed.
7551 * target-globals.h (save_target_globals_default_opts): Protoize.
7552 * target-globals.c (save_target_globals_default_opts): New.
7554 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7557 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
7558 registers %fr12 and %fr12R as call used.
7561 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
7562 and HImode, require all displacements to be an integer multiple of
7564 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
7565 only allow QImode and HImode when reload is in progress and strict is
7566 true. Likewise for symbolic addresses. Use base14_operand to check
7567 displacements in REG+BASE addresses.
7569 2013-02-18 Richard Biener <rguenther@suse.de>
7571 PR tree-optimization/56366
7572 * tree-vect-loop.c (get_initial_def_for_induction): Properly
7573 handle sign-conversion of outer-loop initial induction value.
7575 2013-02-18 Richard Biener <rguenther@suse.de>
7578 * cfghooks.c (merge_blocks): If we merge a latch into another
7579 block adjust references to it.
7580 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
7581 (verify_loop_structure): Verify that a recorded latch is in fact
7584 2013-02-18 Richard Biener <rguenther@suse.de>
7586 PR tree-optimization/56321
7587 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
7588 order SSA name release and virtual operand unlinking.
7590 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7592 * config/microblaze/microblaze.md (save_stack_block): Define.
7593 (restore_stack_block): Likewise.
7595 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7597 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
7598 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
7599 * config/microblaze/microblaze.c (microblaze_option_override):
7600 Bail out early for PIC modes when target does not support PIC.
7602 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7604 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
7605 Replace with a microblaze version.
7606 (microblaze_trampoline_init): Adapt for microblaze.
7607 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
7610 2013-02-16 Jakub Jelinek <jakub@redhat.com>
7611 Dodji Seketeli <dodji@redhat.com>
7614 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
7615 (instrument_mem_region_access): Do not forget to always put
7616 instrumentation of the of 'base' and 'base + len' in a "if (len !=
7617 0) statement, even for cases where either 'base' or 'base + len'
7618 are not instrumented -- because they have been previously
7619 instrumented. Simplify the logic by putting all the statements
7620 instrument 'base + len' inside a sequence, and then insert that
7621 sequence right before the current insertion point. Then, to
7622 instrument 'base + len', just get an iterator on that statement.
7623 And do not forget to update the pointer to iterator the function
7624 received as argument.
7626 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
7628 PR rtl-optimization/56348
7629 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
7631 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
7633 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
7634 (clean_graph_dump_file): Pass base to start_graph_dump.
7636 2013-02-14 Richard Henderson <rth@redhat.com>
7639 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
7641 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
7643 * collect2-aix.h: Define F_LOADONLY.
7645 2013-02-14 Richard Biener <rguenther@suse.de>
7648 * varasm.c (output_constant_def_1): Get the decl representing
7649 the constant as argument.
7650 (output_constant_def): Wrap output_constant_def_1.
7651 (make_decl_rtl): Use output_constant_def_1 with the decl
7652 representing the constant.
7653 (build_constant_desc): Optionally re-use a decl already
7654 representing the constant.
7655 (tree_output_constant_def): Adjust.
7657 2013-02-14 Dodji Seketeli <dodji@redhat.com>
7660 * asan.c (instrument_builtin_call): Really put the length of the
7661 second source argument into src1_len.
7663 2013-02-13 Jakub Jelinek <jakub@redhat.com>
7665 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
7666 argument. If it is false, don't create edge from then_bb to
7668 (insert_if_then_before_iter): Pass true to it.
7669 (build_check_stmt): Pass false to it.
7670 (transform_statements): Flush hash table only on extended basic
7671 block boundaries, rather than at the beginning of every bb.
7672 Don't flush hash table on nonfreeing_call_p calls.
7673 * tree-flow.h (nonfreeing_call_p): New prototype.
7674 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
7676 2013-02-13 David S. Miller <davem@davemloft.net>
7678 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
7680 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
7683 * ira.c (max_regno_before_ira): Move from ...
7685 (fix_reg_equiv_init): Use max_regno_before_ira instead of
7688 2013-02-13 Jakub Jelinek <jakub@redhat.com>
7690 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
7692 2013-02-13 Richard Biener <rguenther@suse.de>
7695 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
7696 globals in MEM_REFs.
7698 2013-02-13 Richard Biener <rguenther@suse.de>
7700 * loop-init.c (loop_optimizer_init): Clear loop state when
7701 re-initializing preserved loops.
7702 * loop-unswitch.c (unswitch_single_loop): Return whether
7703 we unswitched the loop. Do not verify loop state here.
7704 (unswitch_loops): When we unswitched a loop discover new loops.
7706 2013-02-13 Kostya Serebryany <kcc@google.com>
7708 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
7710 * sanitizer.def: Rename __asan_init to __asan_init_v1.
7712 2013-02-12 Dodji Seketeli <dodji@redhat.com>
7714 Avoid instrumenting duplicated memory access in the same basic block
7715 * Makefile.in (asan.o): Add new dependency on hash-table.h
7716 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
7717 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
7718 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
7719 (free_mem_ref_resources, has_mem_ref_been_instrumented)
7720 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
7721 (get_mem_ref_of_assignment): New functions.
7722 (get_mem_refs_of_builtin_call): Extract from
7723 instrument_builtin_call and tweak a little bit to make it fit with
7725 (instrument_builtin_call): Use the new
7726 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
7727 of is_gimple_builtin_call.
7728 (instrument_derefs, instrument_mem_region_access): Insert the
7729 instrumented memory reference into the hash table.
7730 (maybe_instrument_assignment): Renamed instrument_assignment into
7731 this, and change it to advance the iterator when instrumentation
7732 actually happened and return true in that case. This makes it
7733 homogeneous with maybe_instrument_assignment, and thus give a
7734 chance to callers to be more 'regular'.
7735 (transform_statements): Clear the memory reference hash table
7736 whenever we enter a new BB, when we cross a function call, or when
7737 we are done transforming statements. Use
7738 maybe_instrument_assignment instead of instrumentation. No more
7739 need to special case maybe_instrument_assignment and advance the
7740 iterator after calling it; it's now handled just like
7741 maybe_instrument_call. Update comment.
7743 2013-02-13 Richard Biener <rguenther@suse.de>
7745 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
7746 Fix loop discovery code.
7748 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
7751 * lra-constraints.c (process_alt_operands): Match early clobber
7752 operand with itself. Check conflicts with earlyclobber only if
7753 the operand is not reloaded. Prefer to reload conflicting operand
7754 if earlyclobber and matching operands are the same.
7756 2013-02-12 Richard Biener <rguenther@suse.de>
7759 * lto-streamer-out.c (write_symbol): Do not output symbols
7760 for hard register variables.
7762 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
7765 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
7766 (umulsidi3_insn, mulsidi3_insn): New insns.
7768 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
7770 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
7771 (struct tune_params): Add vec_costs field.
7772 * config/arm/arm.c (arm_builtin_vectorization_cost)
7773 (arm_add_stmt_cost): New functions.
7774 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
7775 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
7776 (arm_default_vec_cost): New struct of type cpu_vec_costs.
7777 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
7778 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
7779 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
7780 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
7782 2013-02-12 Richard Biener <rguenther@suse.de>
7785 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
7786 decls again if possible.
7788 2013-02-12 Richard Biener <rguenther@suse.de>
7791 * tree-ssa.c (verify_ssa_name): Fix check, move
7792 SSA_NAME_IN_FREE_LIST check up.
7794 2013-02-12 Jakub Jelinek <jakub@redhat.com>
7795 Steven Bosscher <steven@gcc.gnu.org>
7797 PR rtl-optimization/56151
7798 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
7799 equal to op0 or op1, and last_insn pattern is CODE operation
7800 with MEM dest and one of the operands matches that MEM.
7802 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
7804 * doc/extend.texi: Document Function Multiversioning and "default"
7805 parameter string to target attribute.
7806 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
7807 target attribute parameter is "default".
7808 (ix86_compare_version_priority): Remove checks for target attribute.
7809 (ix86_mangle_function_version_assembler_name): Change error to sorry.
7810 Remove check for target attribute equal to NULL. Add assert.
7811 (ix86_generate_version_dispatcher_body): Change error to sorry.
7813 2013-02-11 Iain Sandoe <iain@codesourcery.com>
7814 Jack Howarth <howarth@bromo.med.uc.edu>
7815 Patrick Marlier <patrick.marlier@gmail.com>
7818 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
7819 define ENDFILE_SPEC as TM_DESTRUCTOR.
7820 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
7822 2013-02-11 Alexander Potapenko <glider@google.com>
7823 Jack Howarth <howarth@bromo.med.uc.edu>
7824 Jakub Jelinek <jakub@redhat.com>
7827 * config/darwin.c (cdtor_record): Rename ctor_record.
7828 (sort_cdtor_records): Rename sort_ctor_records.
7829 (finalize_dtors): New routine to sort destructors by
7830 priority before use in assemble_integer.
7831 (machopic_asm_out_destructor): Use finalize_dtors if needed.
7833 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
7835 PR rtl-optimization/56275
7836 * simplify-rtx.c (avoid_constant_pool_reference): Check that
7837 offset is non-negative and less than cmode size before
7838 calling simplify_subreg.
7840 2013-02-11 Richard Biener <rguenther@suse.de>
7842 PR tree-optimization/56264
7843 * cfgloop.h (fix_loop_structure): Adjust prototype.
7844 * loop-init.c (fix_loop_structure): Return the number of
7845 newly discovered loops.
7846 * tree-cfgcleanup.c (repair_loop_structures): When new loops
7847 are discovered, do a full loop-closed SSA rewrite.
7849 2013-02-11 Richard Biener <rguenther@suse.de>
7851 PR tree-optimization/56273
7852 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
7854 (check_array_ref): Fix missing newline in dumps.
7855 (search_for_addr_array): Likewise.
7857 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
7859 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
7861 2013-02-09 Jakub Jelinek <jakub@redhat.com>
7864 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
7866 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
7868 PR rtl-optimization/56246
7869 * lra-constraints.c (simplify_operand_subreg): Try to reuse
7871 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
7872 constraints are satisfied.
7874 2013-02-08 Jeff Law <law@redhat.com>
7877 * emit-rtl.c (reg_is_parm_p): New function.
7878 * regs.h (reg_is_parm_p): New prototype.
7879 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
7880 callee-clobbered registers.
7882 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
7885 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
7886 If there is no implicit builtin declaration, just return NULL.
7888 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
7890 * config/i386/sse.md (FMAMODEM): New mode iterator.
7891 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
7892 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
7894 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
7896 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
7897 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
7898 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
7900 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7902 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
7903 (microblaze*-*-elf): Likewise.
7904 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
7906 * config/microblaze/microblaze-c.c: Add builtin defines for
7907 _LITTLE_ENDIAN and _BIG_ENDIAN.
7908 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
7909 add to TARGET_DEFAULT flags.
7910 Expand ASM_SPEC and LINK_SPEC.
7911 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
7912 * config/microblaze/microblaze.md: Update extendsidi2 and
7913 movdi_internal instructions to use low-order / high-order reg
7915 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
7916 options and inversemask / mask of LITTLE_ENDIAN.
7917 * config/microblaze/t-microblaze: Expand multilib options to
7918 include mlittle-endian (le) and update exceptions patterns.
7920 2013-02-08 Jakub Jelinek <jakub@redhat.com>
7922 PR rtl-optimization/56195
7923 * lra-constraints.c (get_reload_reg): Don't reuse regs
7924 if they have smaller mode than requested, if they have
7925 wider mode than requested, try to return a SUBREG.
7927 PR tree-optimization/56250
7928 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
7929 if type is unsigned and code isn't MULT_EXPR.
7931 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
7933 PR tree-optimization/56064
7934 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
7935 bits according to mode.
7936 * fixed-value.h (fixed_from_double_int)
7937 (const_fixed_from_double_int): Adjust comments.
7939 2013-02-08 Richard Biener <rguenther@suse.de>
7942 * lto-streamer.h (struct data_in): Remove current_file, current_line
7943 and current_col members.
7944 * lto-streamer-out.c (lto_output_location): Stream changed bits
7945 en-block for efficiency.
7946 * lto-streamer-in.c (clear_line_info): Remove.
7947 (lto_input_location): Cache current file, line and column
7948 globally via local statics. Read changed bits en-block.
7949 (input_function): Do not call clear_line_info.
7950 (lto_read_body): Likewise.
7951 (lto_input_toplevel_asms): Likewise.
7953 2013-02-08 Michael Matz <matz@suse.de>
7955 PR tree-optimization/52448
7956 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
7957 (nt_call_phase): New static.
7958 (add_or_mark_expr): Only mark accesses with newer phase than any
7960 (nonfreeing_call_p): New.
7961 (nt_init_block): Update nt_call_phase, mark blocks as visited.
7962 (nt_fini_block): Keep blocks marked as visited.
7963 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
7965 2013-02-08 Richard Biener <rguenther@suse.de>
7967 * ira.c (ira): Free broken dominator information.
7969 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
7971 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
7973 2013-02-08 Marek Polacek <polacek@redhat.com>
7975 * cfgloop.c (verify_loop_structure): Add more checking of headers.
7977 2013-02-08 Richard Biener <rguenther@suse.de>
7980 * cfgloop.h (flow_loops_find): Adjust.
7981 (bb_loop_header_p): Declare.
7982 * cfgloop.c (bb_loop_header_p): New function split out from ...
7983 (flow_loops_find): ... here. Adjust function signature,
7984 support incremental loop structure update.
7985 (verify_loop_structure): Cleanup. Verify a loop is a loop.
7986 * cfgloopmanip.c (fix_loop_structure): Move ...
7987 * loop-init.c (fix_loop_structure): ... here.
7988 (apply_loop_flags): Split out from ...
7989 (loop_optimizer_init): ... here.
7990 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
7991 in incremental mode, only remove dead loops here.
7993 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
7996 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
7997 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
7998 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
7999 (*round<mode>3.libgcc): New insns for fixed-modes.
8000 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
8001 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
8002 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
8003 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
8004 implementations. Define to __builtin_avr_absFX,
8005 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
8006 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
8007 __builtin_avr_countlsFX, respectively.
8008 * config/avr/avr-c.c (target.h): Include it.
8009 (enum avr_builtin_id): New enum.
8010 (avr_resolve_overloaded_builtin): New static function.
8011 (avr_register_target_pragmas): Use it to set
8012 targetm.resolve_overloaded_builtin.
8013 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
8014 tree nodes used by DEF_BUILTIN.
8015 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
8016 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
8017 <AVR_BUILTIN_xxBITS>: Same.
8019 2013-02-08 Richard Biener <rguenther@suse.de>
8021 * cfgloop.c (verify_loop_structure): Properly handle
8022 a loop exiting to another loop header.
8023 * ira-int.h (ira_loops): Remove.
8024 * ira.c (ira_loops): Remove.
8025 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
8026 (do_reload): Use loop_optimizer_finalize.
8027 * ira-build.c (create_loop_tree_nodes): Use get_loops and
8028 number_of_loops to access the loop tree.
8029 (more_one_region_p): Likewise.
8030 (finish_loop_tree_nodes): Likewise.
8031 (rebuild_regno_allocno_maps): Likewise.
8032 (mark_loops_for_removal): Likewise.
8033 (mark_all_loops_for_removal): Likewise.
8034 (remove_unnecessary_regions): Likewise.
8035 (ira_build): Likewise.
8036 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
8038 2013-02-08 Richard Biener <rguenther@suse.de>
8040 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
8041 * ipa-pure-const.c (analyze_function): Avoid calling
8042 mark_irreducible_loops twice.
8043 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
8045 2013-02-07 David S. Miller <davem@davemloft.net>
8047 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
8049 * var-tracking.c (vt_add_function_parameter): Test the presence of
8050 HAVE_window_save properly and do not remap argument registers when
8051 we have a leaf function.
8053 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
8056 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
8058 * config/i386/i386.c (ix86_print_operand): Ditto.
8060 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
8062 * lra-constraints.c (process_alt_operands): Fix recently added comment.
8064 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
8066 PR rtl-optimization/56225
8067 * lra-constraints.c (process_alt_operands): Check that reload hard
8068 reg can hold value for strict_low_part.
8070 2013-02-07 Jakub Jelinek <jakub@redhat.com>
8073 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
8074 dwarf2out_end_function.
8075 (in_first_function_p, maybe_at_text_label_p,
8076 first_loclabel_num_not_at_text_label): New variables.
8077 (dwarf2out_var_location): In the first function find out
8078 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
8079 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
8082 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
8084 PR rtl-optimization/56178
8085 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
8086 SUBREG of a register. Tidy up related block of code.
8087 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
8088 note if the source is a register or a SUBREG of a register.
8090 2013-02-07 Jakub Jelinek <jakub@redhat.com>
8093 * config/rs6000/rs6000.md (ptrm): New mode attr.
8094 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
8095 call_value_indirect_aix<pttrsize>,
8096 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
8099 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
8101 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
8102 if -bnortl. Convert to strcmp and strncmp.
8104 2013-02-07 Alan Modra <amodra@gmail.com>
8107 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
8108 addresses won't wrap when offsetting.
8109 (rs6000_secondary_reload): Provide secondary reloads needed for
8110 wrapping LO_SUM addresses.
8112 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
8114 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
8115 MACH, just __MACH__.
8117 2013-02-06 Richard Biener <rguenther@suse.de>
8119 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
8120 instead of calling fix_loop_structure.
8122 2013-02-06 Jakub Jelinek <jakub@redhat.com>
8125 * omp-low.c (use_pointer_for_field): Return false if
8126 lower_send_shared_vars doesn't generate any copy-out code.
8128 2013-02-06 Tom de Vries <tom@codesourcery.com>
8130 PR rtl-optimization/56131
8131 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
8132 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
8133 of the label is NULL. Add comment.
8135 2013-02-05 Jakub Jelinek <jakub@redhat.com>
8137 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
8140 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
8141 (STATIC_LIBTSAN_LIBS): Likewise.
8142 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
8143 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
8144 is defined, don't add anything else beyond that.
8145 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
8146 (LINK_COMMAND_SPEC): Use them.
8148 PR tree-optimization/56205
8149 * tree-stdarg.c (check_all_va_list_escapes): Return true if
8150 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
8151 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
8153 2013-02-05 Richard Biener <rguenther@suse.de>
8155 PR tree-optimization/53342
8156 PR tree-optimization/53185
8157 * tree-vectorizer.h (vect_check_strided_load): Remove.
8158 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
8159 not disallow peeling for vectorized strided loads.
8160 (vect_check_strided_load): Make static and simplify.
8161 (vect_analyze_data_refs): Adjust.
8162 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
8163 correctly when vectorizing strided loads.
8165 2013-02-05 Richard Biener <rguenther@suse.de>
8167 * doc/install.texi: Refer to ISL, not PPL.
8169 2013-02-05 Jan Hubicka <jh@suse.cz>
8171 PR tree-optimization/55789
8172 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
8174 2013-02-05 Jan Hubicka <jh@suse.cz>
8176 PR tree-optimization/55789
8177 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
8178 the dead call anyway.
8180 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
8183 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
8185 2013-02-04 Alexander Potapenko <glider@google.com>
8186 Jack Howarth <howarth@bromo.med.uc.edu>
8187 Jakub Jelinek <jakub@redhat.com>
8190 * config/darwin.c (sort_ctor_records): Stabilized qsort
8191 on constructor priority by using original position.
8192 (finalize_ctors): New routine to sort constructors by
8193 priority before use in assemble_integer.
8194 (machopic_asm_out_constructor): Use finalize_ctors if needed.
8196 2013-02-04 Jakub Jelinek <jakub@redhat.com>
8199 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
8200 about visibility on artificial decls.
8201 * config/sol2.c (solaris_assemble_visibility): Likewise.
8203 2013-02-04 Kai Tietz <ktietz@redhat.com>
8206 * config/i386/i386.c (function_value_ms_64): Add additional valtype
8207 argument and improve checking of return-argument types for 16-byte
8209 (ix86_function_value_1): Add additional valtype argument on call
8210 of function_value_64.
8211 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
8212 handling infunction_value_64 function.
8214 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
8216 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
8218 2013-02-04 Richard Biener <rguenther@suse.de>
8220 PR tree-optimization/56188
8221 * tree-ssa-structalias.c (label_visit): Consider case with
8222 initially non-empty points-to set.
8223 (perform_var_substitution): Dump node mapping and clean up.
8225 2013-02-04 Richard Guenther <rguenther@suse.de>
8228 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
8229 node prevail as last resort.
8230 (lto_symtab_merge_decls): Remove guard on LTRANS here.
8231 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
8233 2013-02-04 Richard Biener <rguenther@suse.de>
8235 PR tree-optimization/56113
8236 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
8238 (equiv_class_lookup_or_add): ... this.
8239 (label_visit): Adjust and fix error in previous patch.
8240 (perform_var_substitution): Adjust.
8242 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
8244 * config/sh/divtab.c: Fix formatting and comments throughout the file.
8245 * config/sh/sh4-300.md: Likewise.
8246 * config/sh/sh4a.md: Likewise.
8247 * config/sh/constraints.md: Likewise.
8248 * config/sh/sh.md: Likewise.
8249 * config/sh/netbsd-elf.h: Likewise.
8250 * config/sh/predicates.md: Likewise.
8251 * config/sh/sh-protos.h: Likewise.
8252 * config/sh/ushmedia.h: Likewise.
8253 * config/sh/linux.h: Likewise.
8254 * config/sh/sh.c: Likewise.
8255 * config/sh/superh.h: Likewise.
8256 * config/sh/elf.h: Likewise.
8257 * config/sh/sh4.md: Likewise.
8258 * config/sh/sh.h: Likewise.
8260 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8262 * config/pa/constraints.md: Adjust unused letters. Change "T"
8263 constraint to match_test floating_point_store_memory_operand().
8264 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
8265 (base14_operand): New.
8266 (floating_point_store_memory_operand): New.
8267 (integer_store_memory_operand): Revise to use base14_operand and
8268 reg_plus_base_memory_operand.
8269 (move_dest_operand): Allow symbolic_memory_operands.
8270 (symbolic_memory_operand): Check for LO_SOM.
8271 (symbolic_operand): Change default case to break.
8272 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
8273 CONST_DOUBLE values to be reloaded by putting them into memory when
8274 the destination is a floating point register.
8275 (movdf): Remove code to handle CONST_DOUBLE.
8277 (reload_indf_r1): New.
8278 (reload_insf_r1): New.
8279 Consistently use "Q" and "T" constraints with integer and floating
8280 point move instructions, respectively.
8281 (movdi): Remove FAIL.
8282 Change predicate for source operand unamed DImode move from
8283 general_operand to move_src_operand.
8284 (umulsidi3): Change predicate for destination operand to
8286 Likewise for similar unamed patterns.
8287 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
8288 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
8289 (hppa_legitimize_address): Simplify mask calculation.
8290 (pa_emit_move_sequence): Revised handling of secondary reloads from
8291 REG+D addresses for floating point loads and stores. Directly handle
8292 loading CONST0_RTX (mode) to a floating point register.
8293 (pa_secondary_reload): Handle reloading DF and SFmode constant values
8294 to floating point registers. Don't restrict secondary reloads to
8295 floating point registers to integer modes. Revise some comments and
8297 (TARGET_LEGITIMATE_ADDRESS_P): Define.
8298 (pa_legitimate_address_p): New.
8299 (pa_legitimize_reload_address): New.
8300 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
8301 (STRICT_REG_OK_FOR_BASE_P): New.
8302 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
8303 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
8305 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
8306 Andrew Dixie <andrewd@gentrack.com>
8308 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
8311 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
8313 * expmed.c (extract_bit_field_1): Pass the full width of the
8314 structure to get_best_reg_extraction_insn.
8316 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
8319 * configure.ac (use_cxa_atexit): Add AIX.
8320 * configure: Regenerate.
8322 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
8324 2013-02-01 Jakub Jelinek <jakub@redhat.com>
8327 * final.c (need_profile_function): New variable.
8328 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
8329 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
8330 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
8331 notes, targetm.asm_out.function_prologue doesn't emit anything,
8332 HAVE_prologue and profiler should be emitted before prologue,
8333 set need_profile_function instead of emitting it.
8334 (final_scan_insn): If need_profile_function, emit
8335 profile_function on the first NOTE_INSN_BASIC_BLOCK or
8336 NOTE_INSN_FUNCTION_BEG note.
8338 2013-02-01 Richard Henderson <rth@redhat.com>
8340 * config/rs6000/rs6000.md (smulditi3): New.
8343 * config/alpha/alpha.md (umulditi3): New.
8345 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
8347 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
8348 (ASM_OUTPUT_ALIGNED_LOCAL): New.
8350 2013-02-01 Richard Biener <rguenther@suse.de>
8352 PR tree-optimization/56113
8353 * tree-ssa-structalias.c (label_visit): Reduce work for
8354 single-predecessor nodes.
8356 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
8358 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
8359 range isn't testing for zero.
8361 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
8364 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
8366 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
8367 Nick Clifton <nickc@redhat.com>
8369 * config/v850/constraints.md (Q): Define as a memory constraint.
8370 * config/v850/predicates.md (label_ref_operand): New predicate.
8371 (e3v5_shift_operand): New predicate.
8372 (ior_operator): New predicate.
8373 * config/v850/t-v850: Add e3v5 multilib.
8374 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
8375 (v850_gen_movdi): Prototype.
8376 * config/v850/v850.c: Add support for e3v5 architecture.
8377 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
8379 (construct_save_jarl): Add e3v5 long JARL support.
8380 (v850_adjust_insn_length): New function. Adjust length of call
8381 insns when using e3v5 instructions.
8382 (v850_gen_movdi): New function: Generate instructions to move a
8384 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
8385 (CPP_SPEC): Define __v850e3v5__ as appropriate.
8386 (TARGET_USE_FPU): Enable for e3v5.
8387 (CONST_OK_FOR_W): New macro.
8388 (ADJUST_INSN_LENGTH): Define.
8389 * config/v850/v850.md (UNSPEC_LOOP): Define.
8390 (attr cpu): Add v850e3v5.
8391 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
8392 (movdi): New pattern.
8393 (movdi_internal): New pattern.
8394 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
8395 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
8396 (cstoresf4): Likewise.
8397 (cstoredf4): Likewise.
8398 (insv): New pattern.
8399 (rotlso3_a): New pattern.
8400 (rotlsi3_b): New pattern
8401 (rotlsi3_v850e3v5): New pattern.
8402 (doloop_begin): New pattern.
8403 (fix_loop_counter): New pattern.
8404 (doloop_end): New pattern.
8405 (branch_normal): Add e3v5 long branch support.
8406 (branch_invert): Likewise.
8407 (branch_z_normal): Likewise.
8408 (branch_z_invert): Likewise.
8409 (branch_nz_normal): Likewise.
8410 (branch_nz_invert): Likewise.
8411 (call_internal_short): Add e3v5 register-indirect JARL support.
8412 (call_internal_long): Likewise.
8413 (call_value_internal_short): Likewise.
8414 (call_value_internal_long): Likewise.
8415 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
8416 (mloop): New option.
8417 * config.gcc: Add support for configuring v840e3v5 target.
8418 * doc/invoke.texi: Document new v850 specific command line options.
8420 2013-01-31 Paul Koning <ni1d@arrl.net>
8424 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
8425 children if parent is a class.
8426 (prune_unused_types_prune): Don't add DW_AT_declaration.
8428 2013-01-31 Richard Biener <rguenther@suse.de>
8430 PR tree-optimization/56157
8431 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
8432 match up operand with SLP child.
8434 2013-01-31 Jason Merrill <jason@redhat.com>
8437 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
8438 parameters the first time.
8439 (gen_scheduled_generic_parms_dies): Check completeness here.
8441 2013-01-31 Richard Biener <rguenther@suse.de>
8444 * common.opt (faggressive-loop-optimizations): New flag,
8446 * doc/invoke.texi (faggressive-loop-optimizations): Document.
8447 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
8448 infer_loop_bounds_from_undefined by it.
8450 2013-01-31 Richard Biener <rguenther@suse.de>
8452 PR tree-optimization/56150
8453 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
8454 visit virtual operands.
8455 (find_uses_to_rename_bb): Likewise.
8457 2013-01-31 Richard Biener <rguenther@suse.de>
8459 PR tree-optimization/56150
8460 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
8461 mixed store non-store stmts.
8463 2013-01-30 Jakub Jelinek <jakub@redhat.com>
8466 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
8467 LIBASAN_EARLY_SPEC is defined.
8468 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
8469 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
8471 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
8474 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
8475 invalid args instead of ICEing on it.
8476 (ix86_valid_target_attribute_tree): Return error_mark_node if
8477 ix86_valid_target_attribute_inner_p failed.
8478 (ix86_valid_target_attribute_p): Return false only if
8479 ix86_valid_target_attribute_tree returned error_mark_node. Allow
8480 target("default") attribute.
8481 (sorted_attr_string): Change argument from const char * to tree,
8482 merge in all target attribute arguments rather than just one.
8483 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
8484 instead of free. Avoid using strcat.
8485 (ix86_mangle_function_version_assembler_name): Mangle
8486 target("default") as if no target attribute is present. Adjust
8487 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
8488 instead of xmalloc and XDELETEVEC instead of free.
8489 (ix86_function_versions): Don't return true if one of the decls
8490 doesn't have target attribute. If they don't and one of the decls
8491 is DECL_FUNCTION_VERSIONED, report an error. Adjust
8492 sorted_attr_string caller. Use XDELETEVEC instead of free.
8493 (ix86_supports_function_versions): Remove.
8494 (make_name): Fix up formatting.
8495 (make_dispatcher_decl): Remove resolver_name and its initialization.
8496 Avoid leaking memory.
8497 (is_function_default_version): Return true if there is
8498 target("default") attribute rather than no target attribute at all.
8499 (make_resolver_func): Avoid leaking memory.
8500 (ix86_generate_version_dispatcher_body): Likewise.
8501 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
8502 * target.def (supports_function_versions): Remove.
8503 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
8504 * doc/tm.texi: Regenerated.
8506 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
8508 PR rtl-optimization/56144
8509 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
8510 for values with side effects.
8512 2013-01-30 Richard Biener <rguenther@suse.de>
8514 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
8515 (sparseset_pop): Likewise.
8516 * cfganal.c (compute_idf): Likewise. Increase work-stack size
8517 to be able to use quick_push in the worker loop.
8519 2013-01-30 Marek Polacek <polacek@redhat.com>
8521 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
8523 2013-01-30 Richard Biener <rguenther@suse.de>
8526 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
8528 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
8530 PR tree-optimization/56064
8531 * fixed-value.c (fixed_from_double_int): New function.
8532 * fixed-value.h (fixed_from_double_int): New prototype.
8533 (const_fixed_from_double_int): New static inline function.
8534 * fold-const.c (native_interpret_fixed): New static function.
8535 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
8536 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
8537 (native_encode_fixed): New static function.
8538 (native_encode_expr) <FIXED_CST>: Use it.
8539 (native_interpret_int): Move double_int worker code to...
8540 * double-int.c (double_int::from_buffer): ...this new static method.
8541 * double-int.h (double_int::from_buffer): Prototype it.
8543 2013-01-30 Richard Biener <rguenther@suse.de>
8545 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
8546 New pointer-map and obstack.
8547 (init_alias_vars): Allocate pointer-map and obstack.
8548 (delete_points_to_sets): Free them.
8549 (find_what_var_points_to): Cache result.
8550 (find_what_p_points_to): Adjust for changed interface of
8551 find_what_var_points_to.
8552 (compute_points_to_sets): Likewise.
8553 (ipa_pta_execute): Likewise.
8555 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8557 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
8558 * configure: Regenerate.
8559 * config.in: Regenerate.
8560 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
8561 #nobits/#progbits if supported.
8563 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
8566 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
8567 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
8568 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
8570 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
8572 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
8573 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
8575 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
8577 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
8578 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
8580 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
8582 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
8584 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
8585 * config/arm/cortex-a7.md: New bypasses using
8586 arm_mac_accumulator_is_result.
8588 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
8590 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
8591 (cortex_a7_neon_mla): Likewise.
8592 (cortex_a7_fpfmad): New reservation.
8593 (cortex_a7_fpmacs): Use ffmas and update required units.
8594 (cortex_a7_fpmuld): Update required units and latency.
8595 (cortex_a7_fpmacd): Likewise.
8596 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
8597 (cortex_a7_neon). Likewise.
8598 (bypass) Update participating units.
8600 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
8602 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
8603 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
8605 * config/arm/vfp11.md (vfp_farith): Use ffmas.
8606 (vfp_fmul): Use ffmad.
8607 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
8608 (cortex_r4_fmacd): Use ffmad.
8609 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
8610 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
8611 (cortex_a9_fmacd): Use ffmad.
8612 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
8613 (cortex_a8_vfp_macd): Use ffmad.
8614 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
8615 (cortex_a5_fpmacd): Use ffmad.
8616 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
8617 (cortex_a15_vfp_macd): Use ffmad.
8618 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
8620 2013-01-29 Jason Merrill <jason@redhat.com>
8623 * varasm.c (default_assemble_visibility): Don't warn about
8624 visibility on artificial decls.
8626 2013-01-29 Richard Biener <rguenther@suse.de>
8628 PR tree-optimization/56113
8629 * tree-ssa-structalias.c (equiv_class_lookup): Also return
8631 (label_visit): Free duplicate bitmaps and record the leader instead.
8632 (perform_var_substitution): Adjust.
8634 2013-01-29 Richard Biener <rguenther@suse.de>
8636 PR tree-optimization/55270
8637 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
8638 the CFG, schedule loops for fixup.
8640 2013-01-29 Nick Clifton <nickc@redhat.com>
8642 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
8645 2013-01-28 Leif Ekblad <leif@rdos.net>
8647 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
8648 * config/i386/i386.h (TARGET_RDOS): New macro.
8649 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
8650 * config/i386/i386.c (ix86_option_override_internal): For 64bit
8651 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
8652 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
8653 DEFAULT_LARGE_SECTION_THRESHOLD.
8654 * config/i386/i386.md (R14_REG, R15_REG): New constants.
8655 * config/i386/rdos.h: New file.
8656 * config/i386/rdos64.h: New file.
8658 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
8661 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
8664 2013-01-28 Jakub Jelinek <jakub@redhat.com>
8666 PR rtl-optimization/56117
8667 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
8668 call cselib_lookup_from_insn on the MEM before calling
8669 add_insn_mem_dependence.
8671 2013-01-28 Richard Biener <rguenther@suse.de>
8673 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
8674 to a stmt that didn't have one.
8675 (copy_phis_for_bb): Likewise for PHI arguments.
8676 (copy_debug_stmt): Likewise for debug stmts.
8678 2013-01-28 Richard Biener <rguenther@suse.de>
8680 PR tree-optimization/56034
8681 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
8682 (partition_builtin_p): Adjust.
8683 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
8684 it is the last partition.
8685 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
8686 up the vertex for the definition.
8687 (classify_partition): Classify whether a partition is a
8688 PKIND_REDUCTION, thus has uses outside of the loop.
8689 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
8690 Merge all PKIND_REDUCTION partitions into the last partition.
8691 (tree_loop_distribution): Seed partitions from reductions as well.
8693 2013-01-28 Jakub Jelinek <jakub@redhat.com>
8695 PR tree-optimization/56125
8696 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
8697 pow(x,c) into sqrt(x) * powi(x, n/2) or
8698 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
8699 optimizing for size.
8700 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
8701 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
8704 PR tree-optimization/56094
8705 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
8706 to UNKNOWN_LOCATION while gimplifying expr.
8708 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
8711 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
8712 operand 0 in movabs insn template for -masm=intel asm alternative.
8713 (*movabs<mode>_2): Ditto for operand 1.
8715 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
8718 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
8721 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8723 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
8726 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8728 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
8729 Undef to avoid warning.
8731 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
8733 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
8734 * configure: Regenerate.
8736 2013-01-25 Jakub Jelinek <jakub@redhat.com>
8738 PR tree-optimization/56098
8739 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
8740 for stmts with volatile ops.
8741 (cond_store_replacement): Don't optimize if assign has volatile ops.
8742 (cond_if_else_store_replacement_1): Don't optimize if either
8743 then_assign or else_assign have volatile ops.
8744 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
8747 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
8749 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
8751 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
8753 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
8754 missing ':' in asm example.
8756 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
8758 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
8759 entries into lane and laneq entries.
8760 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
8761 Remove AdvSIMD scalar modes.
8762 (aarch64_sq<r>dmulh_laneq<mode>): New.
8763 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
8765 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
8766 builtin implementations to relfect changes in RTL in aarch64-simd.md.
8767 * config/aarch64/iterators.md (VCOND): New.
8770 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
8773 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
8774 Add NULL LIBNAME argument to existing definitions.
8775 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
8776 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
8777 * config/avr/avr.c (DEF_BUILTIN): Same.
8778 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
8779 (avr_expand_builtin): Expand to a vanilla call if a libgcc
8780 implementation is available (DECL_ASSEMBLER_NAME is set).
8781 (avr_fold_absfx): New static function.
8782 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
8783 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
8784 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
8786 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
8787 (abshk, absk, abslk, absllk): Provide as static inline functions.
8789 2013-01-25 Marek Polacek <polacek@redhat.com>
8791 PR tree-optimization/56035
8792 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
8794 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
8796 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
8797 (*movtf_internal_rex64): Add (!o,C) alternative
8798 (*movxf_internal_rex64): Ditto.
8799 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
8801 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
8803 * doc/invoke.texi: fix typo.
8804 * doc/objc.texi: fix typo.
8806 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
8808 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
8809 for the first two alternatives.
8811 2013-01-24 Diego Novillo <dnovillo@google.com>
8813 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
8814 (ggc-zone.o): Remove.
8815 * configure.ac: Remove option --with-gc.
8816 * configure: Re-generate.
8817 * doc/install.texi: Remove documentation for --with-gc.
8818 * gengtype.c (write_enum_defn): Remove. Update all users.
8819 (write_Types_process_field): Remove generation of gt_e_* argument.
8820 (output_type_enum): Remove. Update all users.
8821 (write_enum_defn): Remove. Update all users.
8822 (enum alloc_zone): Remove. Update all users.
8823 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
8824 * ggc-common.c (ggc_splay_alloc): Remove first argument.
8826 (struct ptr_data): Remove field TYPE. Update all users.
8827 (gt_pch_note_object): Remove argument TYPE. Update all users.
8828 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
8830 * ggc-none.c (ggc_alloc_typed_stat): Remove.
8831 (struct alloc_zone): Remove.
8832 (ggc_internal_alloc_zone_stat): Remove.
8833 (ggc_internal_cleared_alloc_zone_stat): Remove.
8834 * ggc-page.c (ggc_alloc_typed_stat): Remove.
8835 (ggc_pch_count_object): Remove last argument. Update all users.
8836 (ggc_pch_alloc_object): Remove last argument. Update all users.
8837 (struct alloc_zone): Remove.
8838 * ggc-zone.c: Remove.
8839 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
8840 (struct alloc_zone): Remove.
8841 (ggc_alloc_typed_stat): Remove.
8842 (ggc_alloc_typed): Remove.
8843 (ggc_splay_alloc): Remove first argument.
8844 (rtl_zone): Remove. Update all users.
8845 (tree_zone): Remove. Update all users.
8846 (tree_id_zone): Remove. Update all users.
8847 (ggc_internal_zone_alloc_stat): Remove. Update all users.
8848 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
8849 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
8850 * tree-ssanames.c: Remove references to zone allocator in comments.
8852 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
8854 * config/avr/avr.c (avr_out_fract): Make register numbers that
8855 might be outside of source operand signed.
8857 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
8859 * config/i386/constraints.md (Yf): New constraint.
8860 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
8861 of f constraint to conditionaly disable x87 register preferences.
8862 (*movdf_internal): Ditto.
8863 (*movsf_internal): Ditto.
8865 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
8868 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
8869 that have operands with impossible constraints.
8870 Add a FIXME for a speed-up opportunity.
8871 * lra-constraints.c (process_alt_operands): Verify that a class
8872 selected from constraints on asms is valid for the operand mode.
8873 (curr_insn_transform): Remove incorrect comment.
8875 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
8877 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
8878 TOC operand is a valid symbol ref in the constant pool.
8880 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8882 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
8884 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
8887 * config/avr/stdfix.h: New file.
8888 * t-avr (stdfix-gcc.h): New rule to build it.
8889 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
8891 2013-01-23 Kostya Serebryany <kcc@google.com>
8893 * config/darwin.h: remove dependency on
8894 CoreFoundation (asan on Mac OS).
8896 2013-01-23 Jakub Jelinek <jakub@redhat.com>
8899 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
8900 instead of cmpdi_operand for first comparison operand.
8901 Don't assert that comparison operands aren't both constants.
8903 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
8905 * doc/install.texi (Downloading the Source): Update references to
8906 downloading separate components.
8908 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
8910 * doc/extend.texi (__int128): Improve grammar.
8912 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
8915 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
8916 alternative to (o,r).
8917 (*movdi_internal_rex64): Remove (!o,n) alternative.
8918 (DImode immediate->memory splitter): Remove.
8919 (DImode immediate->memory peephole2): Remove.
8920 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
8921 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
8922 alternative to (!o,*r).
8923 (*movtf_internal_sse): New pattern.
8924 (*movxf_internal_rex64): New pattern.
8925 (*movxf_internal): Disable for TARGET_64BIT.
8926 (*movdf_internal_rex64): Remove (!o,F) alternative.
8928 2013-01-22 Jakub Jelinek <jakub@redhat.com>
8931 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
8932 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
8933 * tree-vect-loop-manip.c (find_loop_location): Also ignore
8934 stmt locations where LOCATION_LOCUS of the stmt location is
8935 UNKNOWN_LOCATION or BUILTINS_LOCATION.
8938 * config/i386/i386.md (UNSPEC_STOS): New.
8939 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
8940 *strsetqi_1): Add UNSPEC_STOS.
8942 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
8945 * doc/invoke.texi: Remove left over -Wsynth example.
8947 2013-01-21 Jakub Jelinek <jakub@redhat.com>
8949 PR tree-optimization/56051
8950 * fold-const.c (fold_binary_loc): Don't fold
8951 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
8952 a narrowing conversion, or widening conversion from signed
8955 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
8957 PR rtl-optimization/56023
8958 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
8959 dependent on debug instruction.
8961 2013-01-21 Martin Jambor <mjambor@suse.cz>
8964 * function.c (allocate_struct_function): Call
8965 invoke_set_current_function_hook earlier.
8967 2013-01-21 Jakub Jelinek <jakub@redhat.com>
8969 * reload1.c (init_reload): Only initialize reload_obstack
8970 during the first call.
8972 2013-01-21 Marek Polacek <polacek@redhat.com>
8974 * cfgloop.c (verify_loop_structure): Fix up grammar.
8976 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
8978 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
8979 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
8981 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8984 * config/arm/marvell-pj4.md: Update copyright year.
8985 Fix up use of alu to alu_reg and simple_alu_imm.
8987 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
8989 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
8991 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
8994 * lra-constraints.c (curr_insn_transform): Don't reuse original
8995 insn for secondary memory move when memory mode should be different.
8997 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8999 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
9000 atomic_storedi_1): New patterns.
9002 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
9004 btver2 pipeline descriptions.
9005 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
9007 * config/i386/i386.md (btver2_decode): New type attributes.
9008 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
9010 * config/i386/btver2.md: New file describing btver2 pipelines.
9012 2013-01-19 Andrew Pinski <apinski@cavium.com>
9014 PR tree-optimization/52631
9015 * tree-ssa-sccvn (visit_use): Before looking up the original
9016 statement, try looking up the simplified expression.
9018 2013-01-19 Anthony Green <green@moxielogic.com>
9020 * config/moxie/moxie.c (moxie_expand_prologue): Set
9021 current_function_static_stack_size.
9023 2013-01-18 Jakub Jelinek <jakub@redhat.com>
9025 PR tree-optimization/56029
9026 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
9027 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
9029 2013-01-18 Sharad Singhai <singhai@google.com>
9031 PR tree-optimization/55995
9032 * dumpfile.c (dump_loc): Print location only if available.
9033 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
9035 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
9038 * lra-constraints.c (curr_insn_transform): Reuse original insn for
9039 secondary memory move.
9040 (inherit_reload_reg): Use rclass instead of cl for
9041 check_secondary_memory_needed_p.
9043 2013-01-18 Jakub Jelinek <jakub@redhat.com>
9046 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
9047 the case where writing real complex part of target modifies op1.
9049 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
9051 * config/aarch64/aarch64-simd.md
9052 (aarch64_vcond_internal<mode>): Handle unordered cases.
9053 * config/aarch64/iterators.md (v_cmp_result): New.
9055 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
9056 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9058 * config/arm/marvell-pj4.md: New file.
9059 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
9060 * config/arm/arm.md (generic_sched): Add marvell_pj4.
9061 (generic_vfp): Likewise.
9062 * config/arm/arm-cores.def: Add marvell-pj4.
9063 * config/arm/arm-tune.md: Regenerate.
9064 * config/arm/arm-tables.opt: Regenerate.
9065 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
9066 * doc/invoke.texi: Document marvell-pj4.
9068 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
9070 * config/aarch64/arm_neon.h: Map scalar types to standard types.
9072 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
9077 * var-tracking.c (negative_power_of_two_p): New.
9078 (global_get_addr_cache, local_get_addr_cache): New.
9079 (get_addr_from_global_cache, get_addr_from_local_cache): New.
9080 (vt_canonicalize_addr): Rewrite using the above. Adjust the
9082 (vt_stack_offset_p): Remove.
9083 (vt_canon_true_dep): Always canonicalize loc's address.
9084 (clobber_overlapping_mems): Make sure we have a MEM.
9085 (local_get_addr_clear_given_value): New.
9086 (val_reset): Clear local cached entries.
9087 (compute_bb_dataflow): Create and release the local cache.
9088 Disable duplicate MEMs clobbering.
9089 (emit_notes_in_bb): Clobber MEMs likewise.
9090 (vt_emit_notes): Create and release the local cache.
9091 (vt_initialize, vt_finalize): Create and release the global
9092 cache, respectively.
9093 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
9095 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
9098 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
9099 not found in the symtab.
9101 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
9104 PR rtl-optimization/55547
9105 PR rtl-optimization/53827
9108 * alias.c (offset_overlap_p): New, factored out of...
9109 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
9110 the conservative special case for symbolic constants. Don't
9111 adjust zero sizes on alignment.
9113 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
9115 PR rtl-optimization/52573
9116 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
9117 REG_UNUSED for the same register.
9119 2013-01-17 Richard Biener <rguenther@suse.de>
9120 Marek Polacek <polacek@redhat.com>
9122 PR rtl-optimization/55833
9123 * loop-unswitch.c (unswitch_loops): Move loop verification...
9124 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
9125 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
9126 Set it to true when we're removing a loop from hierarchy tree in
9127 an irreducible region.
9128 (fix_bb_placements): Adjust caller.
9129 (fix_loop_placements): Likewise.
9131 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
9133 * config/avr/builtins.def (DEF_BUILTIN): Factor out
9134 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
9135 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
9136 Remove ID. Adjust comments.
9137 * config/avr/avr-c.c (avr_builtin_name): Remove.
9138 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
9139 * config/avr/avr.c (avr_tolower): New static function.
9140 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
9141 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
9142 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
9145 2013-01-17 Jan Hubicka <jh@suse.cz>
9147 PR tree-optimization/55273
9148 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
9150 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
9153 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
9154 store through atomic_store<mode>_1.
9155 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
9157 2013-01-17 Martin Jambor <mjambor@suse.cz>
9159 PR tree-optimizations/55264
9160 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
9161 for virtual methods.
9162 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
9163 virtual methods before inlining is over.
9164 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
9166 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
9169 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
9171 PR rtl-optimization/56005
9172 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
9173 pending reads for prefetch.
9175 2013-01-16 Ian Bolton <ian.bolton@arm.com>
9177 * config/aarch64/aarch64.md
9178 (*cstoresi_neg_uxtw): New pattern.
9179 (*cmovsi_insn_uxtw): New pattern.
9180 (*<optab>si3_uxtw): New pattern.
9181 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
9182 (*<optab>si3_insn_uxtw): New pattern.
9183 (*bswapsi2_uxtw): New pattern.
9185 2013-01-16 Richard Biener <rguenther@suse.de>
9187 * tree-inline.c (tree_function_versioning): Remove set but
9188 never used variable.
9190 2013-01-16 Richard Biener <rguenther@suse.de>
9192 PR tree-optimization/55964
9193 * tree-flow.h (rename_variables_in_loop): Remove.
9194 (rename_variables_in_bb): Likewise.
9195 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
9196 (copy_loop_before): Adjust and delete update-ssa status.
9197 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
9198 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
9199 (rename_variables_in_loop): Remove.
9200 (slpeel_update_phis_for_duplicate_loop): Likewise.
9201 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
9202 use available cfg machinery instead of duplicating it.
9203 Update PHI nodes and perform poor-mans SSA update here.
9204 (slpeel_tree_peel_loop_to_edge): Adjust.
9206 2013-01-16 Richard Biener <rguenther@suse.de>
9208 PR tree-optimization/54767
9209 PR tree-optimization/53465
9210 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
9211 (vrp_visit_phi_node): For PHI arguments coming via backedges
9212 drop all symbolical range information.
9213 (execute_vrp): Compute backedges.
9215 2013-01-16 Richard Biener <rguenther@suse.de>
9217 * doc/install.texi: Update CLooG and ISL requirements to
9220 2013-01-16 Christian Bruel <christian.bruel@st.com>
9223 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
9224 (broken_move): Handle UNSPECV_SP_SWITCH_B.
9225 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
9227 2013-01-16 DJ Delorie <dj@redhat.com>
9229 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
9230 (UNSPECV_SP_SWITCH_E): New.
9231 (sp_switch_1): Change to an unspec.
9232 (sp_switch_2): Change to an unspec. Don't use post-inc when we
9235 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
9237 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
9238 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
9239 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
9240 (expand_mem_thread_fence): Ditto.
9241 (expand_mem_signal_fence): Ditto.
9242 (expand_atomic_load): Ditto.
9243 (expand_atomic_store): Ditto.
9245 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
9247 PR rtl-optimization/55547
9248 PR rtl-optimization/53827
9251 * alias.c (memrefs_conflict_p): Set sizes to negative after
9254 2013-01-15 Jakub Jelinek <jakub@redhat.com>
9257 * function.c (thread_prologue_and_epilogue_insns): Always
9258 add crtl->drap_reg to set_up_by_prologue.set, even if
9259 stack_realign_drap is false.
9261 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9263 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
9264 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
9265 *call): Fix indention.
9267 2013-01-15 Tom de Vries <tom@codesourcery.com>
9270 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
9273 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
9275 PR rtl-optimization/55153
9276 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
9278 2013-01-15 Martin Jambor <mjambor@suse.cz>
9280 PR tree-optimization/55920
9281 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
9282 accesses as grp_to_be_debug_replaced.
9284 2013-01-15 Jakub Jelinek <jakub@redhat.com>
9286 PR tree-optimization/55920
9287 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
9288 there is non-useless type conversion needed from debug rhs to lhs,
9289 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
9291 2013-01-15 Joseph Myers <joseph@codesourcery.com>
9292 Mikael Pettersson <mikpe@it.uu.se>
9295 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
9297 (ASM_OUTPUT_CASE_LABEL): Remove.
9298 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
9299 * final.c (shorten_branches): Update alignment of labels before
9300 jump tables if CASE_VECTOR_SHORTEN_MODE.
9302 2013-01-15 Richard Biener <rguenther@suse.de>
9305 * system.h: Do not include gmp.h for building host tools.
9307 2013-01-15 Richard Biener <rguenther@suse.de>
9310 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
9311 account for bitpos when computing alignment.
9313 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
9315 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
9316 (ix86_target_macros_internal): Likewise.
9318 * config/i386/i386.c (m_CORE2I7): Removed.
9319 (m_CORE_HASWELL): New macro.
9320 (m_CORE_ALL): Likewise.
9321 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
9322 (initial_ix86_arch_features): Likewise.
9323 (processor_target_table): Initializations for Core avx2.
9324 (cpu_names): New names "core-avx2".
9325 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
9326 PROCESSOR_CORE_HASWELL.
9327 (ix86_issue_rate): New case.
9328 (ia32_multipass_dfa_lookahead): Likewise.
9329 (ix86_sched_init_global): Likewise.
9331 * config/i386/i386.h (TARGET_HASWELL): New macro.
9332 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
9333 (processor_type): New PROCESSOR_HASWELL.
9335 2013-01-15 Jakub Jelinek <jakub@redhat.com>
9337 PR tree-optimization/55955
9338 * tree-vect-loop.c (vectorizable_reduction): Give up early on
9339 *SHIFT_EXPR and *ROTATE_EXPR codes.
9341 PR tree-optimization/48766
9342 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
9343 -ftrapv disable -fwrapv.
9345 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
9348 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
9349 etc. to 1 and not to __flash.
9350 Use LL suffix for __INT24_MAX__ with -mint8.
9351 Use ULL suffix for __UINT24_MAX__ with -mint8.
9353 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
9355 * config/avr/avr-arch.h
9356 (struct base_arch_s): Use typedef avr_arch_t instead.
9357 (struct arch_info_s): Use typedef avr_arch_info_t instead.
9358 (struct mcu_type_s): Use typedef avr_mcu_t instead.
9359 * config/avr/avr.c: Same.
9360 * config/avr/avr-devices.c: Same.
9361 * config/avr/driver-avr.c: Same.
9362 * config/avr/gen-avr-mmcu-texi.c: Same.
9363 * config/avr/avr-mcus.def: Adjust comment.
9365 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
9367 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
9368 * config/aarch64/iterators.md (VALLDI): New.
9370 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
9371 Andi Kleen <ak@linux.intel.com>
9374 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
9375 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
9378 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
9380 * config/avr/avr-stdint.h: Remove trailing blanks.
9381 * config/avr/avr-log.h: Same.
9382 * config/avr/avr-arch.h: Same.
9383 * config/avr/avr-devices.c: Same.
9384 * config/avr/avr-dimode.md: Same.
9385 * config/avr/predicates.md: Same.
9386 * config/avr/avr-c.c: Same. And fix typo.
9388 * config/avr/avr-protos.h: Same. And:
9389 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
9390 (init_cumulative_args): Rename to avr_init_cumulative_args.
9391 (expand_prologue): Rename to avr_expand_prologue.
9392 (expand_epilogue): Rename to avr_expand_epilogue.
9393 (adjust_insn_length): Rename to avr_adjust_insn_length.
9394 (notice_update_cc): Rename to avr_notice_update_cc.
9395 (final_prescan_insn): Rename to avr_final_prescan_insn.
9396 * config/avr/avr.c: Same.
9397 * config/avr/avr.h: Same.
9398 * config/avr/avr.md: Remove trailing blanks.
9399 (prologue): Use avr_expand_prologue.
9400 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
9402 2013-01-14 Richard Biener <rguenther@suse.de>
9404 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
9405 verify_location, collect_subblocks): New functions.
9406 (verify_gimple_in_cfg): Verify that locations only reference
9407 BLOCKs in the functions BLOCK tree.
9409 2013-01-14 Richard Biener <rguenther@suse.de>
9411 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
9413 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
9415 (insert_out_of_ssa_copy_on_edge): Likewise.
9416 (rewrite_close_phi_out_of_ssa): Likewise.
9417 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
9419 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
9420 propagated constants.
9421 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
9424 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
9426 * config/avr/avr-modes.def: Add GPL copyright notice.
9428 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
9430 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
9431 MEMMODEL_MASK to determine memory model.
9432 (atomic_store<mode>): Ditto from operands[2].
9433 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
9435 2013-01-13 Jakub Jelinek <jakub@redhat.com>
9438 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
9439 (fold_gimple_assign): Don't call unshare_expr here.
9440 (fold_ctor_reference): Call unshare_expr.
9442 2013-01-13 Terry Guo <terry.guo@arm.com>
9444 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
9445 * doc/fragments.texi: Document MULTILIB_REUSE.
9446 * gcc.c (multilib_reuse): New internal spec.
9447 (set_multilib_dir): Also search multilib from multilib_reuse.
9448 * genmultilib (tmpmultilib3): Refactor code.
9449 (tmpmultilib4): Ditto.
9450 (multilib_reuse): New multilib argument.
9452 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
9454 * Makefile.in: Update copyright.
9456 2013-01-12 Tom de Vries <tom@codesourcery.com>
9459 * calls.c (expand_call): Check if arg_nr is valid.
9461 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
9463 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
9464 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
9465 documentation. Add missing '__' in front of
9466 __builtin_ia32_packssdw256.
9468 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9471 * config/s390/s390.c (s390_preferred_reload_class): Do not return
9472 NO_REGS for larl operands.
9473 (s390_reload_larl_operand): Use s390_load_address instead of
9476 2013-01-11 Richard Biener <rguenther@suse.de>
9478 * tree-cfg.c (verify_node_sharing_1): Split out from ...
9479 (verify_node_sharing): ... here.
9480 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
9482 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
9484 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
9485 Substitute TREECHECKING.
9486 * configure: Regenerate.
9487 * Makefile.in (TREECHECKING): New.
9489 2013-01-11 Richard Guenther <rguenther@suse.de>
9491 PR tree-optimization/44061
9492 * tree-vrp.c (extract_range_basic): Compute zero as
9493 value-range for __builtin_constant_p of function parameters.
9495 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
9497 Update copyright years.
9499 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
9501 PR rtl-optimization/55672
9502 * lra-eliminations.c (mark_not_eliminable): Permit addition with
9503 const to be eliminable.
9505 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
9507 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
9508 * configure: Regenerate.
9510 2013-01-10 Richard Biener <rguenther@suse.de>
9512 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
9514 2013-01-10 Richard Biener <rguenther@suse.de>
9517 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
9518 locations for virtual PHI arguments.
9519 (rewrite_update_phi_arguments): Likewise.
9521 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
9523 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
9526 2013-01-10 Jakub Jelinek <jakub@redhat.com>
9528 PR tree-optimization/55921
9529 * tree-complex.c (expand_complex_asm): New function.
9530 (expand_complex_operations_1): Call it for GIMPLE_ASM.
9532 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9535 * config/s390/s390.c (s390_symref_operand_p)
9536 (s390_loadrelative_operand_p): Merge the two functions.
9537 (s390_check_qrst_address, print_operand_address): Add parameters
9538 to s390_loadrelative_operand_p invokation.
9539 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
9540 (s390_reload_larl_operand, s390_secondary_reload): Use
9541 s390_loadrelative_operand_p instead of s390_symref_operand_p.
9542 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
9544 2013-01-09 Mike Stump <mikestump@comcast.net>
9546 * dse.c (record_store): Remove unnecessary assert.
9548 2013-01-09 Jan Hubicka <jh@suse.cz>
9550 PR tree-optimization/55569
9551 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
9552 * cfgloop.h (scale_loop_profile): Likewise.
9554 2013-01-09 Jan Hubicka <jh@suse.cz>
9557 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
9559 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
9561 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
9564 * expr.h (maybe_emit_group_store): Declare.
9565 * expr.c (maybe_emit_group_store): New function.
9566 * builtins.c (expand_builtin_int_roundingfn): Call it.
9567 (expand_builtin_int_roundingfn_2): Likewise.
9569 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
9571 PR rtl-optimization/55829
9572 * lra-constraints.c (match_reload): Add code for absent output.
9573 (curr_insn_transform): Add code for reloads of matched inputs
9576 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
9578 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
9579 attribute of movddup insn to DF.
9580 (*vec_interleave_lowv2df): Ditto.
9581 (vec_dupv2df): Ditto.
9583 2013-01-09 Jan Hubicka <jh@suse.cz>
9585 PR tree-optimiation/55875
9586 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
9587 EVERY_ITERATION parameter.
9588 (number_of_iterations_exit): Check if exit is executed every iteration.
9589 (idx_infer_loop_bounds): Similarly here.
9590 (n_of_executions_at_most): Simplify
9591 to only test for cases where statement is dominated by the
9592 particular bound; handle correctly the "postdominance" test.
9593 (scev_probably_wraps_p): Use max loop iterations info
9594 as a global bound first.
9596 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
9597 Nick Clifton <nickc@redhat.com>
9599 * config/v850/v850.md (cbranchsf4): New pattern.
9600 (cstoresf4): New pattern.
9601 (cbranchdf4): New pattern.
9602 (cstoredf4): New pattern.
9603 (movsicc): Disallow floating point comparisons.
9604 (cmpsf_le_insn): Fix order of operators.
9605 (cmpsf_lt_insn): Likewise.
9606 (cmpsf_eq_insn): Likewise.
9607 (cmpdf_le_insn): Likewise.
9608 (cmpdf_lt_insn): Likewise.
9609 (cmpdf_eq_insn): Likewise.
9610 (cmpsf_ge_insn): Use LE comparison.
9611 (cmpdf_ge_insn): Likewise.
9612 (cmpsf_gt_insn): Use LT comparison.
9613 (cmpdf_gt_insn): Likewise.
9614 (cmpsf_ne_insn): Delete pattern.
9615 (cmpdf_ne_insn): Delete pattern.
9616 * config/v850/v850.c (v850_gen_float_compare): Use
9617 gen_cmpdf_eq_insn for NE comparison.
9618 (v850_float_z_comparison_operator)
9619 (v850_float_nz_comparison_operator): Move from here ...
9620 * config/v850/predicates.md: ... to here. Move GT and GE
9621 comparisons into v850_float_z_comparison_operator.
9622 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
9624 (v850_float_nz_comparison_operator): Likewise.
9626 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9628 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
9629 with calls to gen_insvsi/gen_insvdi.
9631 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
9633 * config/i386/i386.c (initial_ix86_tune_features): Set up
9634 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
9636 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
9637 Jakub Jelinek <jakub@redhat.com>
9639 PR tree-optimization/48189
9640 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
9641 If nitercst is 0, don't predict the exit edge.
9643 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9645 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
9646 in asm_fprintf with reg_names.
9647 (aarch64_print_operand_address): Likewise.
9648 (aarch64_return_addr): Likewise.
9649 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
9651 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9653 * config/pa/pa.h (VAL_U6_BITS_P): Define.
9654 (INT_U6_BITS): Likewise.
9655 * config/pa/predicates.md (uint6_operand): New predicate.
9656 (shift5_operand, shift6_operand): Likewise.
9657 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
9659 (lshrdi3): Use shift6_operand.
9660 (shrpsi4, shrpdi4): New insn patterns.
9661 (extzv): Delete expander.
9662 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
9663 predicates in unamed zero extract patterns. Tighten common constraint.
9664 (extv): Delete expander.
9665 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
9666 predicates in unamed sign extract patterns. Tighten common constraint.
9667 (insv): Delete expander.
9668 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
9669 predicates in unamed insert patterns. Tighten common constraint.
9670 Change uint32_operand predicate to uint6_operand predicate in unamed
9671 DImode pattern to insert constant values of type 1...1xxxx.
9673 2013-01-04 Jan Hubicka <jh@suse.cz>
9675 PR tree-optimization/55823
9676 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
9679 2013-01-08 Jakub Jelinek <jakub@redhat.com>
9680 Uros Bizjak <ubizjak@gmail.com>
9682 PR rtl-optimization/55845
9683 * df-problems.c (can_move_insns_across): Stop scanning at
9684 volatile_insn_p source instruction or give up if
9685 across_from .. across_to range contains any volatile_insn_p
9688 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
9690 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
9691 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
9693 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
9694 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
9696 2013-01-08 Jakub Jelinek <jakub@redhat.com>
9699 * asan.c (asan_clear_shadow): New function.
9700 (asan_emit_stack_protection): Use it.
9702 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
9704 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
9705 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
9706 with tab instead of space.
9708 2013-01-08 Nick Clifton <nickc@redhat.com>
9710 * config/rl78/rl78.c (rl78_expand_prologue): Always select
9711 register bank 0 at the start of an interrupt handler.
9712 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
9715 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
9717 * config/aarch64/aarch64-simd.md
9718 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
9719 (aarch64_simd_bsl): Likewise.
9720 (aarch64_vcond_internal<mode>): Likewise.
9721 (vcond<mode><mode>): Likewise.
9722 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
9723 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
9725 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
9727 * config/aarch64/aarch64-builtins.c
9728 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
9730 2013-01-08 Martin Jambor <mjambor@suse.cz>
9733 * tree-sra.c (analyze_access_subtree): Return true also after
9734 potentially creating a debug-only replacement.
9736 2013-01-08 Jakub Jelinek <jakub@redhat.com>
9739 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
9741 PR tree-optimization/54120
9742 * tree-vrp.c (range_fits_type_p): Don't allow
9743 src_precision < precision from signed vr to unsigned_p
9744 if vr->min or vr->max is negative.
9745 (simplify_float_conversion_using_ranges): Test can_float_p
9746 against CODE_FOR_nothing.
9748 2013-01-08 Jakub Jelinek <jakub@redhat.com>
9749 Richard Biener <rguenther@suse.de>
9752 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
9753 types instead of just INTEGER_TYPE types.
9755 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
9757 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
9760 2013-01-07 Steve Ellcey <sellcey@mips.com>
9763 * config/mips/mips.opt: Change mad to mmad to match documentation.
9765 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
9768 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
9771 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
9774 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
9775 (avr_addrspace_t): Add .section_name field.
9776 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
9778 (avr_addrspace): Same. Initialize .section_name. Remove last
9779 NULL entry. Put __memx into .progmemx.data.
9780 (progmem_section_prefix): Remove.
9781 (avr_asm_init_sections): No need to initialize progmem_section.
9782 (avr_asm_named_section): Use avr_addrspace[].section_name to get
9783 section name prefix.
9784 (avr_asm_select_section): Ditto. And use get_unnamed_section to
9785 retrieve the progmem section.
9786 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
9787 boundary to run over avr_addrspace[].
9788 (avr_register_target_pragmas): Ditto.
9790 2013-01-06 Jakub Jelinek <jakub@redhat.com>
9792 * varasm.c (output_constant_def_contents): For asan_protect_global
9793 protected strings, adjust DECL_ALIGN if needed, before testing for
9795 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
9796 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
9798 (output_object_block): For asan protected decls, emit asan padding
9799 after their contents.
9800 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
9801 (asan_finish_file): Test it here instead.
9803 2013-01-07 Nick Clifton <nickc@redhat.com>
9804 Matthias Klose <doko@debian.org>
9805 Doug Kwan <dougkwan@google.com>
9806 H.J. Lu <hongjiu.lu@intel.com>
9809 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
9811 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
9813 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
9815 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
9817 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
9819 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
9822 * doc/install.texi (Cross-Compiler-Specific Options): Document
9825 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
9827 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
9828 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
9829 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
9830 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
9831 vqmovun_high_s64): Fix source operand number and update copyright.
9833 2013-01-07 Richard Biener <rguenther@suse.de>
9836 * gimple.h (gimple_call_builtin_p): New overload.
9837 * gimple.c (validate_call): New function.
9838 (gimple_call_builtin_p): Likewise.
9839 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9840 Use gimple_call_builtin_p.
9841 (find_func_clobbers): Likewise.
9842 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
9843 (strlen_optimize_stmt): Likewise.
9845 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
9847 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
9848 (vld1q_dup_*): Likewise.
9850 (vld1q_*): Likewise.
9851 (vld1_lane_*): Likewise.
9852 (vld1q_lane_*): Likewise.
9854 2013-01-07 Richard Biener <rguenther@suse.de>
9856 * lto-streamer.h (LTO_minor_version): Bump to 2.
9858 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
9860 * config/aarch64/aarch64-protos.h
9861 (aarch64_const_double_zero_rtx_p): Rename to...
9862 (aarch64_float_const_zero_rtx_p): ...this.
9863 (aarch64_float_const_representable_p): New.
9864 (aarch64_output_simd_mov_immediate): Likewise.
9865 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
9866 move immediate case.
9867 * config/aarch64/aarch64.c
9868 (aarch64_const_double_zero_rtx_p): Rename to...
9869 (aarch64_float_const_zero_rtx_p): ...this.
9870 (aarch64_print_operand): Allow printing of new constants.
9871 (aarch64_valid_floating_const): New.
9872 (aarch64_legitimate_constant_p): Check for valid floating-point
9874 (aarch64_simd_valid_immediate): Likewise.
9875 (aarch64_vect_float_const_representable_p): New.
9876 (aarch64_float_const_representable_p): Likewise.
9877 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
9878 (aarch64_output_simd_mov_immediate): New.
9879 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
9880 (*movdf_aarch64): Likewise.
9881 * config/aarch64/constraints.md (Ufc): New.
9882 (Y): call aarch64_float_const_zero_rtx.
9883 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
9885 2013-01-07 Richard Biener <rguenther@suse.de>
9887 PR tree-optimization/55888
9888 PR tree-optimization/55862
9889 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
9890 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
9891 not if it is contained therein.
9893 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
9895 * config/avr/t-avr: Typo.
9897 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
9900 * config/avr/t-avr: Don't automatically rebuild
9901 $(srcdir)/config/avr/t-multilib
9902 $(srcdir)/config/avr/avr-tables.opt
9903 $(srcdir)/doc/avr-mmcu.texi
9904 (avr-mcus): New phony target to build them on request.
9905 (s-avr-mlib, s-avr-mmcu-texi): Remove.
9906 * avr/avr-mcus.def: Adjust comments.
9908 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
9910 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
9912 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
9914 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
9916 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
9918 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
9920 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
9922 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
9923 to generate profiling.
9924 * config/rs6000/aix64.h (LIB_SPEC): Same.
9926 2013-01-04 Andrew Pinski <apinski@cavium.com>
9928 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
9930 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
9932 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
9934 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
9936 (ix86_expand_move): Ditto.
9937 (ix86_zero_extend_to_Pmode): Ditto.
9938 (ix86_expand_call): Ditto.
9939 (ix86_expand_special_args_builtin): Ditto.
9940 (ix86_expand_builtin): Ditto.
9942 2013-01-04 Richard Biener <rguenther@suse.de>
9944 PR tree-optimization/55862
9945 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
9946 translating them through PHI nodes.
9948 2013-01-04 Martin Jambor <mjambor@suse.cz>
9950 PR tree-optimization/55755
9951 * tree-sra.c (sra_modify_assign): Do not check that an access has no
9952 children when trying to avoid producing a VIEW_CONVERT_EXPR.
9954 2013-01-04 Marek Polacek <polacek@redhat.com>
9957 * opts.c (default_options_optimization): Clarify error message.
9959 2013-01-04 Richard Biener <rguenther@suse.de>
9962 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
9965 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9968 * config/pa/pa.md (movsi): Revert previous change.
9969 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
9972 2013-01-03 Richard Henderson <rth@redhat.com>
9974 * config/i386/i386.c (ix86_expand_move): Always assign to op1
9975 after eliminating TLS symbols.
9977 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
9980 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
9981 * graphite-poly.c (debug_gmp_value): Likewise.
9983 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
9986 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
9987 selected code model, define __code_mode_small__, __code_model_medium__,
9988 __code_model_large__, __code_model_32__ or __code_model_kernel__.
9989 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
9990 xchg temporary register with %k. Declare temporary register as
9992 [__x86_64__]: For medium and large code models, preserve %rbx register.
9994 2013-01-03 Richard Biener <rguenther@suse.de>
9996 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
9997 (dump_subscript): Adjust.
9998 (finalize_ddr_dependent): Do not dump redundant info.
9999 (analyze_siv_subscript): Adjust.
10000 (subscript_dependence_tester): Likewise.
10001 (compute_affine_dependence): Likewise.
10003 2013-01-03 Richard Biener <rguenther@suse.de>
10006 2013-01-03 Richard Biener <rguenther@suse.de>
10008 PR tree-optimization/55857
10009 * tree-vect-stmts.c (vectorizable_load): Do not setup
10010 re-alignment for invariant loads.
10012 2013-01-02 Richard Biener <rguenther@suse.de>
10014 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
10015 invariant load do not generate a vector load from the scalar location.
10017 2013-01-03 Richard Biener <rguenther@suse.de>
10019 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
10020 for not vectorizing.
10021 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
10022 not build INDIRECT_REFs, call get_name once only.
10023 (vect_create_data_ref_ptr): Likewise. Dump base object kind
10024 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
10026 2013-01-03 Richard Biener <rguenther@suse.de>
10028 PR tree-optimization/55857
10029 * tree-vect-stmts.c (vectorizable_load): Do not setup
10030 re-alignment for invariant loads.
10032 2013-01-03 Richard Biener <rguenther@suse.de>
10035 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
10036 prefer a built-in decl.
10038 2013-01-03 Jakub Jelinek <jakub@redhat.com>
10040 * gcc.c (process_command): Update copyright notice dates.
10041 * gcov.c (print_version): Likewise.
10042 * gcov-dump.c (print_version): Likewise.
10044 PR rtl-optimization/55838
10045 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
10046 iv0.step, iv1.step and step.
10048 2013-01-03 Jakub Jelinek <jakub@redhat.com>
10049 Marc Glisse <marc.glisse@inria.fr>
10051 PR tree-optimization/55832
10052 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
10053 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
10054 integer_{one,zero}_node.
10056 2013-01-03 Jakub Jelinek <jakub@redhat.com>
10059 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
10060 * var-tracking.c (reverse_op): Don't add reverse ops to
10061 VALUEs that have already
10062 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
10064 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
10066 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
10068 2013-01-02 Teresa Johnson <tejohnson@google.com>
10070 * dumpfile.c (dump_loc): Print filename with location.
10071 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
10072 new location_t parameter to emit complete unroll message with
10073 new dump framework.
10074 (canonicalize_loop_induction_variables): Compute loops location
10075 and pass to try_unroll_loop_completely.
10076 * loop-unroll.c (report_unroll_peel): New function.
10077 (peel_loops_completely): Use new dump format with location
10078 for main dumpfile message, and invoke report_unroll_peel on success.
10079 (decide_unrolling_and_peeling): Ditto.
10080 (decide_peel_once_rolling): Remove old dumpfile message subsumed
10081 by report_unroll_peel.
10082 (decide_peel_completely): Ditto.
10083 (decide_unroll_constant_iterations): Ditto.
10084 (decide_unroll_runtime_iterations): Ditto.
10085 (decide_peel_simple): Ditto.
10086 (decide_unroll_stupid): Ditto.
10087 * cfgloop.c (get_loop_location): New function.
10088 * cfgloop.h (get_loop_location): Declare.
10090 2013-01-02 Sriraman Tallam <tmsriram@google.com>
10092 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
10095 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10097 PR middle-end/55198
10098 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
10099 BLKmode objects when EXPAND_MEMORY is specified.
10101 2013-01-02 Sriraman Tallam <tmsriram@google.com>
10103 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
10105 (fold_builtin_cpu): Do not share cpu model decls across statements.
10107 2013-01-02 Jason Merrill <jason@redhat.com>
10110 * tree.c (build_array_type_1): Revert earlier change.
10112 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
10114 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
10116 * config/aarch64/aarch64-tune.md: Re-generate.
10118 2013-01-02 Richard Biener <rguenther@suse.de>
10120 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
10121 invariant load do not generate a vector load from the scalar location.
10123 2013-01-02 Richard Biener <rguenther@suse.de>
10126 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
10127 * configure: Regenerate.
10129 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
10131 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
10132 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
10133 (expand_builtin_int_roundingfn_2): Keep the original target around
10134 for the fallback case.
10136 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
10138 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
10139 to be clear for sign changes.
10141 2013-01-01 Jan Hubicka <jh@suse.cz>
10143 * ipa-inline-analysis.c: Fix formatting.
10145 2013-01-01 Jakub Jelinek <jakub@redhat.com>
10147 PR tree-optimization/55831
10148 * tree-vect-loop.c (get_initial_def_for_induction): Use
10149 gsi_after_labels instead of gsi_start_bb.
10151 Copyright (C) 2013 Free Software Foundation, Inc.
10153 Copying and distribution of this file, with or without modification,
10154 are permitted in any medium without royalty provided the copyright
10155 notice and this notice are preserved.