1 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
3 * config/mips/mips.c (r10k_needs_protection_p_call): Take a const_rtx
4 and return a bool. Iterate over all subrtxes here.
5 (r10k_needs_protection_p): Update accordingly.
7 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
9 * config/mips/mips.c (r10k_needs_protection_p_1): Take an rtx
10 rather than an rtx pointer. Change type of insn from "void *"
11 to its real type. Return bool rather than int. Iterate over
13 (r10k_needs_protection_p_store): Update accordingly.
14 (r10k_needs_protection_p): Likewise.
16 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
18 * config/mips/mips.c (mips16_rewrite_pool_refs_info): Delete.
19 (mips16_rewrite_pool_refs): Take the insn and constant pool as
20 parameters. Iterate over the instruction's pattern and return void.
21 (mips16_lay_out_constants): Update accordingly.
23 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
25 * config/mips/mips.c (mips_kernel_reg_p): Replace with...
26 (mips_refers_to_kernel_reg_p): ...this new function.
27 (mips_expand_prologue): Update accordingly.
29 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
31 * config/mips/mips.c (mips_rewrite_small_data_1): Take the context
32 as a parameter instead of the containing MEM. Iterate over all
33 subrtxes. Don't return a value.
34 (mips_rewrite_small_data): Update call accordingly.
36 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
38 * config/mips/mips.c: Include rtl-iter.h.
39 (mips_small_data_pattern_1): Take an rtx rather than an rtx pointer.
40 Take the context as a parameter instead of the containing MEM.
41 Iterate over all subrtxes.
42 (mips_small_data_pattern_p): Update call accordingly.
44 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
46 * config/mep/mep.c (mep_mul_hilo_bypass_1): Delete.
47 (mep_mul_hilo_bypass_p): Use FOR_EACH_SUBRTX.
49 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
51 * config/mep/mep.c (mep_store_find_set): Take a const_rtx and
52 return a bool. Replace "void *" with specific type. Iterate
54 (mep_store_data_bypass_1): Update calls accordingly.
56 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
58 * config/mep/mep.c: Include rtl-iter.h.
59 (global_reg_mentioned_p_1): Take a const_rtx and return a bool.
60 (xtensa_tls_referenced_p): Return a bool. Use FOR_EACH_SUBRTX.
62 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
64 * config/xtensa/xtensa.c: Include rtl-iter.h.
65 (xtensa_tls_referenced_p_1): Delete.
66 (xtensa_tls_referenced_p): Use FOR_EACH_SUBRTX.
68 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
70 * config/sh/sh.c (sh_contains_memref_p_1): Delete.
71 (sh_contains_memref_p): Use FOR_EACH_SUBRTX.
73 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
75 * config/sh/sh-protos.h (shmedia_cleanup_truncate): Take an
76 rtx as argument and return the number of changes.
77 * config/sh/sh.c: Include rtl-iter.h.
78 (shmedia_cleanup_truncate): Take an rtx as argument and iterate
79 over all subrtxes. Return the number of changes made.
80 * config/sh/sh.md: Update caller accordingly.
82 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
84 * config/m68k/m68k.c (m68k_tls_reference_p_1): Delete.
85 (m68k_tls_reference_p): Use FOR_EACH_SUBRTX_VAR.
87 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
89 * config/m68k/m68k.c: Include rtl-iter.h.
90 (m68k_final_prescan_insn_1): Delete.
91 (m68k_final_prescan_insn): Use FOR_EACH_SUBRTX_VAR.
93 2014-10-25 Jakub Jelinek <jakub@redhat.com>
95 PR tree-optimization/63641
96 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Set high
97 to low + prec - 1 - clz (mask) instead of low + prec - clz (mask).
99 2014-10-25 Alan Modra <amodra@gmail.com>
101 PR rtl-optimization/63615
102 * simplify-rtx.c (simplify_plus_minus): Set "canonicalized" on
103 decomposing PLUS or MINUS if operands are not placed adjacent
106 2014-10-25 Joseph Myers <joseph@codesourcery.com>
108 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Do
109 not allow e500 double in registers not satisyfing
112 2014-10-24 Aldy Hernandez <aldyh@redhat.com>
114 * dwarf2out.c (declare_in_namespace): Only emit external
115 declarations in the local scope once.
117 2014-10-24 Jonathan Wakely <jwakely@redhat.com>
119 * ginclude/stdbool.h: Do not define bool, true or false in C++11.
121 2014-10-24 Charles Baylis <charles.baylis@linaro.org>
123 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rewrite using builtins,
124 update uses to use new macro arguments.
125 (__LD3_LANE_FUNC): Likewise.
126 (__LD4_LANE_FUNC): Likewise.
128 2014-10-24 Charles Baylis <charles.baylis@linaro.org>
130 * config/aarch64/aarch64-builtins.c
131 (aarch64_types_loadstruct_lane_qualifiers): Define.
132 * config/aarch64/aarch64-simd-builtins.def (ld2_lane, ld3_lane,
133 ld4_lane): New builtins.
134 * config/aarch64/aarch64-simd.md (aarch64_vec_load_lanesoi_lane<mode>):
136 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
137 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
138 (aarch64_ld2_lane<mode>): New expand.
139 (aarch64_ld3_lane<mode>): Likewise.
140 (aarch64_ld4_lane<mode>): Likewise.
141 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
142 UNSPEC_LD2_LANE, UNSPEC_LD3_LANE, UNSPEC_LD4_LANE.
144 2014-10-24 Georg-Johann Lay <avr@gjlay.de>
146 * avr-protos.h (avr_out_sign_extend): New.
147 * avr.c (avr_adjust_insn_length) [ADJUST_LEN_SEXT]: Handle.
148 (avr_out_sign_extend): New function.
149 * avr.md (extendqihi2, extendqipsi2, extendqisi2, extendhipsi2)
150 (extendhisi2, extendpsisi2): Use it.
151 (adjust_len) [sext]: New.
153 2014-10-24 Martin Liska <mliska@suse.cz>
155 * ipa-icf.c (sem_function::compare_phi_node): PHI result comparison
158 2014-10-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
160 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Define.
161 (LINK_SPEC): Include CA53_ERR_835769_SPEC.
162 * config/aarch64/aarch64-linux.h (CA53_ERR_835769_SPEC): Define.
163 (LINK_SPEC): Include CA53_ERR_835769_SPEC.
165 2014-10-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
167 * config/aarch64/aarch64.h (ADJUST_INSN_LENGTH): Wrap definition in
169 * config/aarch64/aarch64.c (is_mem_p): Delete.
170 (is_memory_op): Rename to...
171 (has_memory_op): ... This. Use FOR_EACH_SUBRTX.
172 (dep_between_memop_and_curr): Assert that the input is a SET.
173 (aarch64_madd_needs_nop): Add comment. Do not call
174 dep_between_memop_and_curr on NULL body.
175 (aarch64_final_prescan_insn): Add comment.
178 2014-10-24 Richard Biener <rguenther@suse.de>
180 * Makefile.in (BUILD_CPPLIB): Move $(LIBINTL) $(LIBICONV)
181 to genmatch BUILD_LIBS instead.
183 2014-10-24 Richard Biener <rguenther@suse.de>
185 * genmatch.c (expr::gen_transform): Use fold_buildN_loc
186 and build_call_expr_loc.
187 (dt_simplify::gen): Drop non_lvalue for GIMPLE, use
188 non_lvalue_loc to build it for GENERIC.
189 (decision_tree::gen_generic): Add location argument to
190 generic_simplify prototype.
191 (capture_info): New class.
192 (capture_info::capture_info): New constructor.
193 (capture_info::walk_match): New method.
194 (capture_info::walk_result): New method.
195 (capture_info::walk_c_expr): New method.
196 (dt_simplify::gen): Handle preserving side-effects for
197 GENERIC code generation.
198 (decision_tree::gen_generic): Do not reject operands
199 with TREE_SIDE_EFFECTS.
200 * generic-match.h: New file.
201 * generic-match-head.c: Include generic-match.h, not gimple-match.h.
202 * match.pd: Add some constant folding patterns from fold-const.c.
203 * fold-const.c: Include generic-match.h.
204 (fold_unary_loc): Dispatch to generic_simplify.
205 (fold_ternary_loc): Likewise.
206 (fold_binary_loc): Likewise. Remove patterns now implemented
208 * gimple-fold.c (replace_stmt_with_simplification): New function.
209 (fold_stmt_1): Add valueize parameter, dispatch to gimple_simplify.
210 (no_follow_ssa_edges): New function.
211 (fold_stmt): New overload with valueization hook. Use
212 no_follow_ssa_edges for the overload without hook.
213 (fold_stmt_inplace): Likewise.
214 * gimple-fold.h (no_follow_ssa_edges): Declare.
216 2014-10-24 Felix Yang <felix.yang@huawei.com>
217 Jiji Jiang <jiangjiji@huawei.com>
220 * config/aarch64/arm_neon.h (__LD2R_FUNC): Remove macro.
221 (__LD3R_FUNC): Ditto.
222 (__LD4R_FUNC): Ditto.
223 (vld2_dup_s8, vld2_dup_s16, vld2_dup_s32, vld2_dup_f32, vld2_dup_f64,
224 vld2_dup_u8, vld2_dup_u16, vld2_dup_u32, vld2_dup_p8, vld2_dup_p16
225 vld2_dup_s64, vld2_dup_u64, vld2q_dup_s8, vld2q_dup_p8,
226 vld2q_dup_s16, vld2q_dup_p16, vld2q_dup_s32, vld2q_dup_s64,
227 vld2q_dup_u8, vld2q_dup_u16, vld2q_dup_u32, vld2q_dup_u64
228 vld2q_dup_f32, vld2q_dup_f64): Rewrite using builtin functions.
229 (vld3_dup_s64, vld3_dup_u64, vld3_dup_f64, vld3_dup_s8
230 vld3_dup_p8, vld3_dup_s16, vld3_dup_p16, vld3_dup_s32
231 vld3_dup_u8, vld3_dup_u16, vld3_dup_u32, vld3_dup_f32
232 vld3q_dup_s8, vld3q_dup_p8, vld3q_dup_s16, vld3q_dup_p16
233 vld3q_dup_s32, vld3q_dup_s64, vld3q_dup_u8, vld3q_dup_u16
234 vld3q_dup_u32, vld3q_dup_u64, vld3q_dup_f32, vld3q_dup_f64): Likewise.
235 (vld4_dup_s64, vld4_dup_u64, vld4_dup_f64, vld4_dup_s8
236 vld4_dup_p8, vld4_dup_s16, vld4_dup_p16, vld4_dup_s32
237 vld4_dup_u8, vld4_dup_u16, vld4_dup_u32, vld4_dup_f32
238 vld4q_dup_s8, vld4q_dup_p8, vld4q_dup_s16, vld4q_dup_p16
239 vld4q_dup_s32, vld4q_dup_s64, vld4q_dup_u8, vld4q_dup_u16
240 vld4q_dup_u32, vld4q_dup_u64, vld4q_dup_f32, vld4q_dup_f64): Likewise.
241 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
242 UNSPEC_LD2_DUP, UNSPEC_LD3_DUP, UNSPEC_LD4_DUP.
243 * config/aarch64/aarch64-simd-builtins.def (ld2r, ld3r, ld4r): New
245 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>): New pattern.
246 (aarch64_simd_ld3r<mode>): Likewise.
247 (aarch64_simd_ld4r<mode>): Likewise.
248 (aarch64_ld2r<mode>): New expand.
249 (aarch64_ld3r<mode>): Likewise.
250 (aarch64_ld4r<mode>): Likewise.
252 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
254 * rtlanal.c (get_base_term): Handle SCRATCH.
256 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
258 * haifa-sched.c (sched_init): Disable max_issue when scheduling for
261 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
263 * haifa-sched.c (cached_first_cycle_multipass_dfa_lookahead,)
264 (cached_issue_rate): Remove. Use dfa_lookahead and issue_rate instead.
265 (max_issue, choose_ready, sched_init): Update.
267 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
269 * sched-int.h (struct _haifa_insn_data:last_rfs_win): New field.
270 * haifa-sched.c (INSN_LAST_RFS_WIN): New access macro.
271 (rfs_result): Set INSN_LAST_RFS_WIN. Update signature.
272 (rank_for_schedule): Update calls to rfs_result to pass new parameters.
273 (print_rank_for_schedule_stats): Print out elements of ready list that
274 ended up on their respective places due to each of the sorting
276 (ready_sort): Update.
277 (debug_ready_list_1): Improve printout for SCHED_PRESSURE_MODEL.
278 (schedule_block): Update.
280 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
282 * haifa-sched.c (sched_class_regs_num, call_used_regs_num): New static
283 arrays. Use sched_class_regs_num instead of ira_class_hard_regs_num.
284 (print_curr_reg_pressure, setup_insn_reg_pressure_info,)
285 (model_update_pressure, model_spill_cost): Use sched_class_regs_num.
286 (model_start_schedule): Update.
287 (sched_pressure_start_bb): New static function. Calculate
288 sched_class_regs_num.
289 (schedule_block): Use it.
290 (alloc_global_sched_pressure_data): Calculate call_used_regs_num.
292 2014-10-24 Richard Biener <rguenther@suse.de>
294 * Makefile.in (BUILD_CPPLIB): When in stage2+ use the
295 host library and make sure to pull in the required libintl
296 and libiconv dependencies.
298 2014-10-24 Richard Biener <rguenther@suse.de>
300 * fold-const.c (fold_binary_loc): Fix copy-and-pasto.
302 2014-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
305 * collect2.c (main): Filter out -fno-lto.
307 2014-10-24 Martin Liska <mliska@suse.cz>
309 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes): Guard
310 division by zero in dumps.
311 (sem_item_optimizer::merge_classes): Ditto.
313 2014-10-23 John David Anglin <danglin@gcc.gnu.org>
315 * config/pa/pa.c (pa_can_combine_p): Fix typo in last change.
317 2014-10-23 Ian Lance Taylor <iant@google.com>
319 * tree-vrp.c (extract_range_from_assert): Fix typo in comment.
321 2014-10-23 Ian Lance Taylor <iant@google.com>
323 * config/mep/mep.h (TARGET_HAS_F_SETLKW): Don't undefine.
325 2014-10-23 Jakub Jelinek <jakub@redhat.com>
328 * var-tracking.c (stack_adjust_offset_pre_post_cb): New function.
329 (stack_adjust_offset_pre_post): Use it through for_each_inc_dec,
330 instead of only handling autoinc in dest if it is a MEM.
331 (vt_stack_adjustments): Fix up formatting.
333 2014-10-23 DJ Delorie <dj@redhat.com>
335 * config/msp430/msp430.c (msp430_print_operand): 'x' modifier is
336 independend of -mlarge.
337 * config/msp430/constraints.md (Ys): Update comment.
339 2014-10-23 Evgeny Stupachenko <evstupac@gmail.com>
343 * cse.c (delete_trivially_dead_insns): Consider PIC register is used
345 * dse.c (deletable_insn_p): Likewise.
347 2014-10-23 Georg-Johann Lay <avr@gjlay.de>
349 * config/avr/avr.c: Fix GNU coding rules and typos.
350 * config/avr/avr.h: Dito.
351 * config/avr/avr-c.c: Dito.
352 * config/avr/avr.md: Dito.
354 2014-10-23 Kirill Yukhin <kirill.yukhin@intel.com>
356 * config/i386/sse.md (define_mode_iterator VI1248_AVX512VL_AVX512BW):
358 (define_insn "*abs<mode>2"): Use VI1248_AVX512VL_AVX512BW mode
360 (define_expand "abs<mode>2"): Ditto.
362 2014-10-23 Kirill Yukhin <kirill.yukhin@intel.com>
364 * tree-core.h (tree_var_decl): Extend `function_code' field
365 by one bit, move `regdecl_flag' field to ...
366 (tree_decl_with_vis): Here.
367 * tree.h (DECL_STATIC_CHAIN): Update struct name.
369 2014-10-23 Richard Biener <rguenther@suse.de>
371 * Makefile.in (BUILD_CPPLIB): Add.
372 (build/genmatch$(build_exeext)): Use BUILD_CPPLIB, not CPPLIB.
375 2014-10-23 Richard Biener <rguenther@suse.de>
377 * fold-const.c (fold_binary_loc): Preserve side-effects of
378 X - X when simplifying to 0.
379 * stor-layout.c (finish_bitfield_representative): Strip
380 side-effects of evaluating the difference of two DECL_FIELD_OFFSET.
382 2014-10-22 Richard Biener <rguenther@suse.de>
383 Tobias Burnus <burnus@net-b.de>
386 * gcc.c (LINK_COMMAND_SPEC): Add %{fno-lto}.
388 2014-10-22 Dehao Chen <dehao@google.com>
390 * auto-profile.c: Change order of header files.
392 2014-10-22 Guozhi Wei <carrot@google.com>
394 PR tree-optimization/63530
395 tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Set
396 pointer alignment according to DR_MISALIGNMENT.
398 2014-10-22 David Malcolm <dmalcolm@redhat.com>
400 * ipa-icf.c (ipa_icf_driver): Set optimizer to NULL when done.
402 2014-10-22 Andrew MacLeod <amacleod@redhat.com>
404 * cfgbuild.h: New. Add prototypes for cfgbuild.c.
405 * cfgcleanup.h: New. Add prototypes for cfgcleanup.c.
406 * cfgloopmanip.h: New. Add prototypes for cfgloopmanip.c.
407 * dominance.h: New. Add prototypes for dominance.c.
408 * cfgloop.h: Move some prototypes/enum to cfgloopmanip.h and include it.
409 * cfghooks.h: (struct profile_record) Relocate here.
410 Relocate 2 prototypes from basic-block.h.
411 * basic-block.h: Move prototypes and struct to new header files.
412 Include cfgbuild.h, cfgcleanup.h, and dominance.h.
413 * rtl.h: Move a few prototypes to new header files.
414 * cfgcleanup.c (merge_memattrs): Make static.
415 * genopinit.c (main): Add predict.h to list of includes.
416 * predict.h: Update prototype list to match predict.c.
417 * predict.c (maybe_hot_count_p): Export.
418 (cgraph_edge::maybe_hot_p): Move to cgraph.c.
419 (cgraph_node::optimize_for_size_p): Move to cgraph.h.
420 * cgraph.h (cgraph_node::optimize_for_size_p): Relocate here.
421 * cgraph.c (cgraph_edge::maybe_hot_p): Relocate here.
422 * profile.h: Adjust prototypes.
423 * ifcvt.h: New. Relocate struct ce_if_block here.
424 * ifcvt.c: Include ifcvt.h.
425 * config/frv/frv.c: Include ifcvt.h.
426 * config/frv/frv-protos.h: Add 'struct' to ce_if_block * parameters.
428 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
430 * lra.c (lra): Remove call to recog_init.
431 * config/i386/i386.md (preferred_for_speed): New attribute
432 (*float<SWI48:mode><MODEF:mode>2_sse): Override it instead of
433 "enabled". Remove check for sched1.
435 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
437 * recog.h (recog_data_d): Remove enabled_alternatives.
438 * recog.c (extract_insn): Don't set it.
439 * reload.c (find_reloads): Call get_enabled_alternatives.
441 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
443 * recog.h (constrain_operands): Add an alternative_mask parameter.
444 (constrain_operands_cached): Likewise.
445 (get_preferred_alternatives): Declare new form.
446 * recog.c (get_preferred_alternatives): New bb-taking instance.
447 (constrain_operands): Take the set of available alternatives as
449 (check_asm_operands, insn_invalid_p, extract_constrain_insn)
450 (extract_constrain_insn_cached): Update calls to constrain_operands.
451 * caller-save.c (reg_save_code): Likewise.
452 * ira.c (setup_prohibited_mode_move_regs): Likewise.
453 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
454 * ree.c (combine_reaching_defs): Likewise.
455 * reload.c (can_reload_into): Likewise.
456 * reload1.c (reload, reload_as_needed, inc_for_reload): Likewise.
457 (gen_reload_chain_without_interm_reg_p, emit_input_reload_insns)
458 (emit_insn_if_valid_for_reload): Likewise.
459 * reorg.c (fill_slots_from_thread): Likewise.
460 * config/i386/i386.c (ix86_attr_length_address_default): Likewise.
461 * config/pa/pa.c (pa_can_combine_p): Likewise.
462 * config/rl78/rl78.c (insn_ok_now): Likewise.
463 * config/sh/sh.md (define_peephole2): Likewise.
464 * final.c (final_scan_insn): Update call to constrain_operands_cached.
466 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
468 * doc/md.texi: Document "preferred_for_size" and "preferred_for_speed"
470 * genattr.c (main): Handle "preferred_for_size" and
471 "preferred_for_speed" in the same way as "enabled".
472 * recog.h (bool_attr): New enum.
473 (target_recog): Replace x_enabled_alternatives with x_bool_attr_masks.
474 (get_preferred_alternatives, check_bool_attrs): Declare.
475 * recog.c (have_bool_attr, get_bool_attr, get_bool_attr_mask_uncached)
476 (get_bool_attr_mask, get_preferred_alternatives, check_bool_attrs):
478 (get_enabled_alternatives): Use get_bool_attr_mask.
479 * ira-costs.c (record_reg_classes): Use get_preferred_alternatives
480 instead of recog_data.enabled_alternatives.
481 * ira.c (ira_setup_alts): Likewise.
482 * postreload.c (reload_cse_simplify_operands): Likewise.
483 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
484 * ira-lives.c (preferred_alternatives): New variable.
485 (process_bb_node_lives): Set it.
486 (check_and_make_def_conflict, make_early_clobber_and_input_conflicts)
487 (single_reg_class, ira_implicitly_set_insn_hard_regs): Use it instead
488 of recog_data.enabled_alternatives.
489 * lra-int.h (lra_insn_recog_data): Replace enabled_alternatives
490 to preferred_alternatives.
491 * lra-constraints.c (process_alt_operands): Update accordingly.
492 * lra.c (lra_set_insn_recog_data): Likewise.
493 (lra_update_insn_recog_data): Assert check_bool_attrs.
495 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
497 * recog.h (extract_constrain_insn): Declare.
498 * recog.c (extract_constrain_insn): New function.
499 * lra.c (check_rtl): Use it.
500 * postreload.c (reload_cse_simplify_operands): Likewise.
501 * reg-stack.c (check_asm_stack_operands): Likewise.
502 (subst_asm_stack_regs): Likewise.
503 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
504 * regrename.c (build_def_use): Likewise.
505 * sel-sched.c (get_reg_class): Likewise.
506 * config/arm/arm.c (note_invalid_constants): Likewise.
507 * config/s390/predicates.md (execute_operation): Likewise.
509 2014-10-22 Jakub Jelinek <jakub@redhat.com>
510 Yury Gribov <y.gribov@samsung.com>
512 * common.opt (flag_sanitize_recover): New variable.
513 (fsanitize-recover): Remove Var/Init, deprecate.
514 (fsanitize-recover=): New option.
515 * doc/invoke.texi (fsanitize-recover): Update docs.
516 * opts.c (finish_options): Use opts->x_flag_sanitize
517 instead of flag_sanitize. Prohibit -fsanitize-recover
518 for anything besides UBSan. Formatting.
519 (common_handle_option): Handle OPT_fsanitize_recover_
520 and OPT_fsanitize_recover. Use opts->x_flag_sanitize
521 instead of flag_sanitize.
522 * asan.c (pass_sanopt::execute): Fix up formatting.
523 * ubsan.c (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn,
524 ubsan_expand_objsize_ifn, ubsan_build_overflow_builtin,
525 instrument_bool_enum_load, ubsan_instrument_float_cast,
526 instrument_nonnull_arg, instrument_nonnull_return): Check
527 bits in flag_sanitize_recover bitmask instead of
528 flag_sanitize_recover as bool flag.
530 2014-10-22 Jiong Wang <jiong.wang@arm.com>
532 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add missing '\'.
534 2014-10-22 Renlin Li <renlin.li@arm.com>
536 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
537 __ARM_FEATURE_IDIV__.
539 2014-10-22 Richard Biener <rguenther@suse.de>
541 * Makefile.in (s-match): Adjust dependencies to only catch
544 2014-10-22 Richard Biener <rguenther@suse.de>
545 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
547 * Makefile.in (OBJS): Add gimple-match.o and generic-match.o.
548 (MOSTLYCLEANFILES): Add gimple-match.c and generic-match.c.
549 (gimple-match.c): Generate by triggering s-match.
550 (generic-match.c): Likewise.
551 (s-match): Rule to build gimple-match.c and generic-match.c
552 by running the genmatch generator program.
553 (build/hash-table.o): Dependencies to build hash-table.c for the host.
554 (build/genmatch.o): Dependencies to build genmatch.
555 (genprog): Add match.
556 (build/genmatch): Likewise.
557 (TEXI_GCCINT_FILES): Add match-and-simplify.texi.
558 * generic-match-head.c: New file.
559 * gimple-match-head.c: Likewise.
560 * gimple-match.h: Likewise.
561 * genmatch.c: Likewise.
562 * match.pd: Likewise.
563 * builtins.h (fold_builtin_n): Export.
564 * builtins.c (fold_builtin_n): Likewise.
565 * gimple-fold.h (gimple_build): Declare various overloads.
566 (gimple_simplify): Likewise.
567 (gimple_convert): Re-implement in terms of gimple_build.
568 * gimple-fold.c (gimple_convert): Remove.
569 (gimple_build): New functions.
570 * doc/match-and-simplify.texi: New file.
571 * doc/gccint.texi: Add menu item Match and Simplify and include
572 match-and-simplify.texi.
574 2014-10-22 Jakub Jelinek <jakub@redhat.com>
577 * config/i386/i386.c (ix86_expand_vector_init_duplicate): For
578 V{8HI,16QI,16HI,32QI}mode call ix86_vector_duplicate_value
579 even for just TARGET_AVX2, not only for
580 TARGET_AVX512VL && TARGET_AVX512BW. For V{32HI,64QI}mode,
581 call ix86_vector_duplicate_value only if TARGET_AVX512BW,
582 otherwise build it using concatenation of 256-bit
584 * config/i386/sse.md (AVX_VEC_DUP_MODE): Moved after
585 avx512 broadcast patterns.
586 (vec_dup<mode>): Likewise. For avx2 use
587 v<sseintprefix>broadcast<bcstscalarsuff> instead of
588 vbroadcast<ssescalarmodesuffix>.
589 (AVX2_VEC_DUP_MODE): New mode iterator.
590 (*vec_dup<mode>): New TARGET_AVX2 define_insn with
591 AVX2_VEC_DUP_MODE iterator, add a splitter for that.
594 * config/i386/i386.c (ix86_pic_register_p): Also return
595 true if x is a hard register with ORIGINAL_REGNO equal to
596 pic_offset_table_rtx pseudo REGNO.
597 (ix86_delegitimize_address): For ix86_use_pseudo_pic_reg ()
598 after reload, subtract GOT_SYMBOL_NAME symbol if possible.
600 2014-10-22 Alan Modra <amodra@gmail.com>
602 * gengtype.h (obstack_chunk_alloc, obstack_chunk_free): Remove cast.
603 * coretypes.h (obstack_chunk_alloc, obstack_chunk_free): Likewise.
604 (gcc_obstack_init): Use obstack_specify_allocation in place of
606 * genautomata.c (next_sep_el): Cast result of obstack_base to (char *).
607 (regexp_representation): Likewise.
608 * godump.c (go_output_type): Likewise.
610 2014-10-21 John David Anglin <danglin@gcc.gnu.org>
612 * config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
613 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_JUMP_IN_DELAY.
614 * config/pa/pa.opt (mjump-in-delay): Ignore option. Update comment.
616 2014-10-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
618 * doc/invoke.texi (pedantic-errors): Explain better.
620 2014-10-21 Joern Rennecke <joern.rennecke@embecosm.com>
621 Vidya Praveen <vidya.praveen@atmel.com>
622 Praveen Kumar Kaushik <Praveen_Kumar.Kaushik@atmel.com>
623 Senthil Kumar Selvaraj <Senthil_Kumar.Selvaraj@atmel.com>
624 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
626 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Don't define
628 * config/avr/avr.c (avr_insert_attributes): Reject __memx for avrtiny.
629 (avr_nonconst_pointer_addrspace): Likewise.
630 * config/avr/avr.h (AVR_HAVE_LPM): Define.
632 Added AVRTINY architecture to avr target.
633 * config/avr/avr-arch.h (avr_arch): Added AVRTINY architecture.
634 (base_arch_s): member added for AVRTINY architecture.
635 * config/avr/avr.c: Added TINY_ADIW, TINY_SBIW macros as AVRTINY
636 alternate for adiw/sbiw instructions. Added AVR_TMP_REGNO and
637 AVR_ZERO_REGNO macros for tmp and zero registers. Replaced TMP_REGNO
638 and ZERO_REGNO occurrences by AVR_TMP_REGNO and AVR_ZERO_REGNO
639 respectively. LAST_CALLEE_SAVED_REG macro added for the last register
640 in callee saved register list.
641 (avr_option_override): CCP address updated for AVRTINY.
642 (avr_init_expanders): tmp and zero rtx initialized as per arch.
643 Reset avr_have_dimode if AVRTINY.
644 (sequent_regs_live): Use LAST_CALLEE_SAVED_REG instead magic number.
645 (emit_push_sfr): Use AVR_TMP_REGNO for tmp register number.
646 (avr_prologue_setup_frame): Don't minimize prologue if AVRTINY.
647 Use LAST_CALLEE_SAVED_REG to refer last callee saved register.
648 (expand_epilogue): Likewise.
649 (avr_print_operand): Print CCP address in case of AVRTINY also.
651 (function_arg_regno_p): Check different register list for arguments
653 (init_cumulative_args): Check for AVRTINY to update number of argument
655 (tiny_valid_direct_memory_access_range): New function. Return false if
656 direct memory access range is not in accepted range for AVRTINY.
657 (avr_out_movqi_r_mr_reg_disp_tiny): New function to handle register
658 indirect load (with displacement) for AVRTINY.
659 (out_movqi_r_mr): Updated instruction length for AVRTINY. Call
660 avr_out_movqi_r_mr_reg_disp_tiny for load from reg+displacement.
661 (avr_out_movhi_r_mr_reg_no_disp_tiny): New function to handle register
662 indirect load (no displacement) for AVRTINY.
663 (avr_out_movhi_r_mr_reg_disp_tiny): New function to handle register
664 indirect load (with displacement) for AVRTINY.
665 (avr_out_movhi_r_mr_pre_dec_tiny): New function to handle register
666 indirect load for pre-decrement address.
667 (out_movhi_r_mr): In case of AVRTINY, call tiny register indirect load
668 functions. Update instruction length for AVRTINY.
669 (avr_out_movsi_r_mr_reg_no_disp_tiny): New function. Likewise, for
671 (avr_out_movsi_r_mr_reg_disp_tiny): New function. Likewise, for SImode.
672 (out_movsi_r_mr): Likewise, for SImode.
673 (avr_out_movsi_mr_r_reg_no_disp_tiny): New function to handle register
674 indirect store (no displacement) for AVRTINY.
675 (avr_out_movsi_mr_r_reg_disp_tiny): New function to handle register
676 indirect store (with displacement) for AVRTINY.
677 (out_movsi_mr_r): Emit out insn for IO address store. Update store
678 instruction's size for AVRTINY. For AVRTINY, call tiny SImode indirect
680 (avr_out_load_psi_reg_no_disp_tiny): New function to handle register
681 indirect load (no displacement) for PSImode in AVRTINY.
682 (avr_out_load_psi_reg_disp_tiny): New function to handle register
683 indirect load (with displacement) for PSImode in AVRTINY.
684 (avr_out_load_psi): Call PSImode register indirect load functions for
685 AVRTINY. Update instruction length for AVRTINY.
686 (avr_out_store_psi_reg_no_disp_tiny): New function to handle register
687 indirect store (no displacement) for PSImode in AVRTINY.
688 (avr_out_store_psi_reg_disp_tiny): New function to handle register
689 indirect store (with displacement) for PSImode in AVRTINY.
690 (avr_out_store_psi): Update instruction length for AVRTINY. Call tiny
691 register indirect store functions for AVRTINY.
692 (avr_out_movqi_mr_r_reg_disp_tiny): New function to handle QImode
693 register indirect store (with displacement) for AVRTINY.
694 (out_movqi_mr_r): Update instruction length for AVRTINY. Call tiny
695 register indirect store function for QImode in AVRTINY.
696 (avr_out_movhi_mr_r_xmega): Update instruction length for AVRTINY.
697 (avr_out_movhi_mr_r_reg_no_disp_tiny): New function to handle register
698 indirect store (no displacement) for HImode in AVRTINY.
699 (avr_out_movhi_mr_r_reg_disp_tiny): New function to handle register
700 indirect store (with displacement) for HImode in AVRTINY.
701 (avr_out_movhi_mr_r_post_inc_tiny): New function to handle register
702 indirect store for post-increment address in HImode.
703 (out_movhi_mr_r): Update instruction length for AVRTINY. Call tiny
704 register indirect store function for HImode in AVRTINY.
705 (avr_out_compare): Use TINY_SBIW/ TINY_ADIW in place of sbiw/adiw
707 (order_regs_for_local_alloc): Updated register allocation order for
709 (avr_conditional_register_usage): New function. It is a target hook
710 (TARGET_CONDITIONAL_REGISTER_USAGE) function which updates fixed, call
711 used registers list and register allocation order for AVRTINY.
712 (avr_return_in_memory): Update return value size for AVRTINY.
713 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Added builtin macros
714 for AVRTINY arch and tiny program memory base address.
715 * config/avr/avr-devices.c (avr_arch_types): Added AVRTINY arch.
716 (avr_texinfo): Added description for AVRTINY arch.
717 * config/avr/avr.h: Added macro to identify AVRTINY arch. Updated
718 STATIC_CHAIN_REGNUM for AVRTINY.
719 * config/avr/avr-mcus.def: Added AVRTINY arch devices.
720 * config/avr/avr.md: Added constants for tmp/ zero registers in
721 AVRTINY. Attributes for AVRTINY added.
722 (mov<mode>): Move src/ dest address to register if it is not in AVRTINY
724 (mov<mode>_insn): Avoid QImode direct load for AVRTINY if address not
725 in AVRTINY memory access range.
726 (*mov<mode>): Likewise for HImode and SImode.
727 (*movsf): Likewise for SFmode.
728 (delay_cycles_2): Updated instructions to be emitted as AVRTINY does
730 * config/avr/avr-protos.h: Added function prototype for
731 tiny_valid_direct_memory_access_range.
732 * config/avr/avr-tables.opt: Regenerate.
733 * gcc/config/avr/t-multilib: Regenerate.
734 * doc/avr-mmcu.texi: Regenerate.
736 2014-10-21 Andrew Pinski <apinski@cavium.com>
738 * doc/invoke.texi (AARCH64/mtune): Document thunderx as an
739 available option also.
740 * config/aarch64/aarch64-cost-tables.h: New file.
741 * config/aarch64/aarch64-cores.def (thunderx): New core.
742 * config/aarch64/aarch64-tune.md: Regenerate.
743 * config/aarch64/aarch64.c: Include aarch64-cost-tables.h instead
744 of config/arm/aarch-cost-tables.h.
745 (thunderx_regmove_cost): New variable.
746 (thunderx_tunings): New variable.
748 2014-10-21 Dehao Chen <dehao@google.com>
750 * auto-profile.c: New file.
751 * auto-profile.h: New file.
752 * basic-block.h (maybe_hot_count_p): New export func.
753 (add_working_set): New export func.
754 * gcov-io.h (GCOV_TAG_AFDO_FILE_NAMES): New tag.
755 (GCOV_TAG_AFDO_FUNCTION): Likewise.
756 (GCOV_TAG_AFDO_WORKING_SET): Likewise.
757 * opts.c (enable_fdo_optimizations): New func.
758 (common_handle_option): Handle -fauto-profile flag.
759 * ipa-inline.c (want_early_inline_function_p): Iterative-einline.
760 (class pass_early_inline): Export early_inliner.
761 (early_inliner): Likewise.
762 (pass_early_inline::execute): Likewise.
763 * ipa-inline.h (early_inliner): Likewise.
764 * predict.c (maybe_hot_count_p): New export func.
765 (counts_to_freqs): AutoFDO logic.
766 (rebuild_frequencies): Likewise.
767 * tree-profile.c (pass_ipa_tree_profile::gate): Likewise.
768 * profile.c (add_working_set): New func.
769 * Makefile.in (auto-profile.o): New object file.
770 * passes.def (pass_ipa_auto_profile): New pass.
771 * tree-ssa-live.c (remove_unused_scope_block_p): AutoFDO logic.
772 * tree-pass.h (make_pass_ipa_auto_profile): New pass.
773 * toplev.c (compile_file): AutoFDO logic.
774 * doc/invoke.texi (-fauto-profile): New doc.
775 * coverage.c (coverage_init): AutoFDO logic.
776 * common.opt (-fauto-profile): New flag.
777 * timevar.def (TV_IPA_AUTOFDO): New tag.
778 * value-prof.c (gimple_alloc_histogram_value): New export func.
779 (check_ic_target): Likewise.
780 * value-prof.h (gimple_alloc_histogram_value): Likewise.
781 (check_ic_target): Likewise.
783 2014-10-21 David Malcolm <dmalcolm@redhat.com>
785 * cgraph.c (cgraph_c_finalize): New function.
786 * cgraph.h (cgraph_c_finalize): New prototype.
787 (cgraphunit_c_finalize): New prototype.
788 * cgraphunit.c (first_analyzed): Move from analyze_functions
790 (first_analyzed_var): Likewise.
791 (analyze_functions): Move static variables into file-scope.
792 (cgraphunit_c_finalize): New function.
793 * diagnostic.c (diagnostic_finish): Free the memory for
794 context->classify_diagnostic and context->printer, running the
795 destructor for the latter.
796 (bt_stop): Use toplev::main.
797 * dwarf2out.c (dwarf2out_finalize): New function.
798 * dwarf2out.h (dwarf2out_c_finalize): New prototype.
799 * gcse.c (gcse_c_finalize): New function.
800 * gcse.h (gcse_c_finalize): New prototype.
801 * ggc-page.c (init_ggc): Make idempotent.
802 * input.c (input_location): Initialize to UNKNOWN_LOCATION.
803 * ipa-cp.c (ipa_cp_c_finalize): New function.
804 * ipa-prop.h (ipa_cp_c_finalize): New prototype.
805 * ipa-pure-const.c (function_insertion_hook_holder): Move to be
806 a field of class pass_ipa_pure_const.
807 (node_duplication_hook_holder): Likewise.
808 (node_removal_hook_holder): Likewise.
809 (register_hooks): Convert to method...
810 (pass_ipa_pure_const::register_hooks): ...here, converting
811 static variable init_p into...
812 (pass_ipa_pure_const::init_p): ...new field.
813 (pure_const_generate_summary): Update invocation of
814 register_hooks to invoke as a method of current_pass.
815 (pure_const_read_summary): Likewise.
816 (propagate): Convert to...
817 (pass_ipa_pure_const::execute): ...method.
818 * ipa-reference.c (ipa_init): Move static bool init_p from here
820 (ipa_init_p): New file-scope variable, so that it can be reset
821 when repeatedly invoking the compiler within one process by...
822 (ipa_reference_c_finalize): New function.
823 * ipa-reference.h (ipa_reference_c_finalize): New.
824 * main.c (main): Replace invocation of toplev_main with
825 construction of a toplev instance, and call its "main" method.
826 * params.c (global_init_params): Add an assert that
827 params_finished is false.
828 (params_c_finalize): New.
829 * params.h (params_c_finalize): New.
830 * passes.c (execute_ipa_summary_passes): Set "current_pass" before
831 invoking generate_summary, for the benefit of pass_ipa_pure_const.
832 (ipa_write_summaries_2): Assign "pass" to "current_pass" global
833 before calling write_summary hook.
834 (ipa_write_optimization_summaries_1): Likewise when calling
835 write_optimization_summary hook.
836 (ipa_read_summaries_1): Likewise for read_summary hook.
837 (ipa_read_optimization_summaries_1): Likewise for
838 read_optimization_summary hook.
839 (execute_ipa_stmt_fixups): Likewise.
840 * stringpool.c (init_stringpool): Clean up if we're called more
842 * timevar.c (timevar_init): Ignore repeated calls.
843 * toplev.c: Include "dwarf2out.h", "ipa-reference.h", "gcse.h",
845 (general_init): Reset "input_location" to UNKNOWN_LOCATION.
846 (initialize_rtl): Move static local "initialized_once"
847 into file scope, and rename to...
848 (rtl_initialized): New variable.
849 (do_compile): Move timevar initialization from here to
850 toplev::start_timevars.
851 (toplev::toplev, toplev::~toplev, toplev::start_timevars,
852 toplev::finalize): New functions.
853 (toplev_main): Rename to...
854 (toplev::main): ...this.
855 * toplev.h (class toplev): New class.
857 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
859 * loop-doloop.c: Include loop-unroll.h.
861 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
863 * cfg.h: New. Header file for cfg.c.
864 * cfganal.h: New. Header file for cfganal.c.
865 * lcm.h: New. Header file for lcm.c.
866 * loop-unroll.h: New. Header file for loop-unroll.h.
867 * cfgloop.h: (unroll_loops): Remove prototype.
868 * basic-block.h: Move prototypes and structs to new header files.
869 Include cfg.h, cfganal.h, and lcm.h.
870 * loop-init.c: Include loop-unroll.h.
871 * loop-unroll.c: (referenced_in_one_insn_in_loop_p): Make static.
872 * modulo-sched.c: Include loop-unroll.h.
874 2014-10-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
876 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Fix creation of
877 MARKER_BYTE_UNKNOWN markers when handling casts.
879 2014-10-21 Richard Biener <rguenther@suse.de>
881 * tree-ssa-phiopt.c (value_replacement): Properly verify we
882 are the non-singleton PHI.
884 2014-10-21 Jakub Jelinek <jakub@redhat.com>
886 PR tree-optimization/63563
887 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Bail out
888 if either dra or drb stmts are not normal loads/stores.
890 2014-10-21 Ilya Tocar <ilya.tocar@intel.com>
892 * config/i386/i386.c (expand_vec_perm_1): Fix
893 expand_vec_perm_palignr case.
894 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>_mask): Use
897 2014-10-21 Zhenqiang Chen <zhenqiang.chen@arm.com>
899 * cfgloopanal.c (seq_cost): Delete.
900 * rtl.h (seq_cost): New prototype.
901 * rtlanal.c (seq_cost): New function.
902 * tree-ssa-loop-ivopts.c (seq_cost): Delete.
904 2014-10-20 Andrew MacLeod <amacleod@redhat.com>
906 * cfgrtl.h: New. Add prototypes for cfgrtl.c.
907 * basic-block.h: Remove prototypes for cfgrtl.c.
908 * cfghooks.h (cfg_layout_initialize, cfg_layout_finalize): Move
909 prototypes to cfgrtl.h.
910 * profile.h (profile_info): Add extern export declaration.
911 * rtl.h: Remove prototypes for cfgrtl.h.
912 * tree-cfg.h (gt_ggc_mx, gt_pch_nx): Move prototypes to here.
913 * ipa-inline.c: Include profile.h.
914 * loop-unroll.c: Ditto.
915 * modulo-sched.c: Ditto.
916 * postreload-gcse.c: Ditto.
918 * sched-ebb.c: Ditto.
919 * sched-rgn.c: Ditto.
921 * tree-ssa-loop-ivcanon.c: Ditto.
923 2014-10-20 Richard Biener <rguenther@suse.de>
925 * tree-vect-slp.c (vect_get_and_check_slp_defs): Try swapping
926 operands to get a def operand kind match. Signal mismatches
927 to the parent so we can try swapping its operands.
928 (vect_build_slp_tree): Try swapping operands if they have
929 a mismatched operand kind.
931 2014-10-20 Alan Modra <amodra@gmail.com>
934 * simplify-rtx.c (simplify_plus_minus): Delete unused "input_ops".
935 Increase "ops" array size. Correct array size tests. Init
936 n_constants in loop. Break out of innermost loop when finding
937 a trivial CONST expression.
939 2014-10-20 Martin Liska <mliska@suse.cz>
942 * ipa-icf-gimple.c (func_checker::compare_gimple_asm):
943 Gimple tempate string is compared.
945 2014-10-20 Uros Bizjak <ubizjak@gmail.com>
947 * varasm.c (const_alias_set): Remove.
948 (init_varasm_once): Remove initialization of const_alias_set.
949 (build_constant_desc): Do not set alias set to const_alias_set.
951 2014-10-19 Ilya Verbin <ilya.verbin@intel.com>
953 * configure: Regenerate.
954 * configure.ac: Move the test for section attribute specifier "e" in GAS
955 out to all i[34567]86-*-* | x86_64-*-* targets and add --fatal-warnings.
956 * langhooks.c (lhd_begin_section): Set SECTION_EXCLUDE flag.
957 * varasm.c (default_elf_asm_named_section): Guard SECTION_EXCLUDE with
958 ifdef HAVE_GAS_SECTION_EXCLUDE.
960 2014-10-19 Andreas Schwab <schwab@linux-m68k.org>
962 * doc/md.texi (RTL Template) [match_scratch]: Correct equivalent
963 match_operand expression.
965 2014-10-19 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
966 David Edelsohn <dje.gcc@gmail.com>
968 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): New
970 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
972 2014-10-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
974 * doc/invoke.texi (Options to Request or Suppress Warnings):
975 Explain options precedence.
976 (Wtrampolines): Do not indent paragraph.
978 2014-10-18 John David Anglin <danglin@gcc.gnu.org>
980 * doc/invoke.texi: Update documentation of hppa -mjump-in-delay option.
981 * config/pa/pa-protos.h (pa_following_call): Delete declaration.
982 (pa_jump_in_call_delay): Likewise.
983 * config/pa/pa.c (pa_option_override): Remove jump in call delay
985 (pa_output_millicode_call): Remove support for jump in call delay.
986 (pa_output_call): Likewise.
987 (pa_jump_in_call_delay): Delete.
988 (pa_following_call): Likewise.
989 * config/pa/pa.md (in_call_delay): Remove jump in delay check.
990 (uncond_branch): Remove following call check from attribute length.
992 2014-10-18 Oleg Endo <olegendo@gcc.gnu.org>
995 * config/sh/sh-modes.def (PSI): Remove.
996 * config/sh/sh-protos.h (get_fpscr_rtx): Remove.
997 * config/sh/sh.c (fpscr_rtx, get_fpscr_rtx): Remove.
998 (sh_reorg): Remove commented out FPSCR code.
999 (fpscr_set_from_mem): Use SImode instead of PSImode. Emit lds_fpscr
1000 insn instead of move insn.
1001 (sh_hard_regno_mode_ok): Return SImode for FPSCR.
1002 (sh_legitimate_address_p, sh_legitimize_reload_address): Remove PSImode
1004 (sh_emit_mode_set): Emit lds_fpscr and sts_fpscr insns.
1005 (sh1_builtin_p): Uncomment.
1006 (SH_BLTIN_UV 25, SH_BLTIN_VU 26): New macros.
1007 (bdesc): Add __builtin_sh_get_fpscr and __builtin_sh_set_fpscr.
1008 * config/sh/sh/predicates.md (fpscr_operand): Simplify.
1009 (fpscr_movsrc_operand, fpscr_movdst_operand): New predicates.
1010 (general_movsrc_operand, general_movdst_operand): Disallow
1012 * config/sh/sh.md (FPSCR_FR): New constant.
1013 (push_fpscr): Emit sts_fpscr insn.
1014 (pop_fpscr): Emit lds_fpscr_insn.
1015 (movsi_ie): Disallow FPSCR operands.
1016 (fpu_switch, unnamed related split, extend_psi_si,
1017 truncate_si_psi): Remove insns.
1018 (lds_fpscr, sts_fpscr): New insns.
1019 (toggle_sz, toggle_pr): Use SImode for FPSCR_REG instead of PSImode.
1021 2014-10-17 Eric Botcazou <ebotcazou@adacore.com>
1023 * ipa-inline-transform.c (master_clone_with_noninline_clones_p): New.
1024 (clone_inlined_nodes): Do not overwrite the clone if above predicate
1027 2014-10-17 Ilya Tocar <ilya.tocar@intel.com>
1029 * config/i386/i386.c (MAX_VECT_LEN): Move earlier.
1030 (expand_vec_perm_d): Ditto.
1031 (ix86_expand_vec_perm_vpermi2): Handle V8HImode, V16HImode, V32HImode,
1032 V32HImode, V4SImode, V8SImode, V4SFmode, V8SFmode, V2DImode, V4DImode,
1034 (ix86_expand_vec_perm): Update call to ix86_expand_vec_perm_vpermi2.
1035 (ix86_expand_sse_unpack): Handle V64QImode.
1036 (expand_vec_perm_blend): Update conditions for TARGET, handle
1037 V8DFmode, V16SFmode, V32HImode, V64QImode, V16SImode, V8DImode.
1038 (expand_vec_perm_pshufb): Handle V64QImode.
1039 (expand_vec_perm_1): Handle V64QImode, V32HImode, V16SImode, V16SFmode,
1040 V8DFmode, V8DImode, V4DFmode, V2DFmode, V8SFmode, V4SFmode.
1041 (ix86_expand_vec_perm_const_1): Call ix86_expand_vec_perm_vpermi2.
1042 (ix86_vectorize_vec_perm_const_ok): Handle V32HImode, V64QImode.
1043 (ix86_expand_vecop_qihi): Handle V64QImode.
1044 * config/i386/sse.md (define_mode_iterator VI1_AVX512): New.
1045 (define_mode_iterator VEC_PERM_AVX2): Add V32HI.
1046 (define_mode_iterator VEC_PERM_CONST): Add V32HI.
1047 (define_insn "<ssse3_avx2>_pshufb<mode>3<mask_name>"): Add masking.
1048 (mul<mode>3): Use VI1_AVX512.
1049 (<sse2_avx2>_packsswb): Ditto.
1050 (<sse2_avx2>_packuswb): Ditto.
1051 (<ssse3_avx2>_pshufb<mode>3): Ditto.
1052 (<shift_insn><mode>3): Ditto.
1054 2014-10-17 Kirill Yukhin <kirill.yukhin@intel.com>
1056 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Refactor
1057 conditions to fix bootstrap.
1059 2014-10-17 Andrew MacLeod <amacleod@redhat.com>
1061 gcc-plugin.h: Add tm.h and flattened includes from function.h.
1063 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
1064 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1065 Anna Tikhonova <anna.tikhonova@intel.com>
1066 Ilya Tocar <ilya.tocar@intel.com>
1067 Andrey Turetskiy <andrey.turetskiy@intel.com>
1068 Ilya Verbin <ilya.verbin@intel.com>
1069 Kirill Yukhin <kirill.yukhin@intel.com>
1070 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1072 * config/i386/i386.c (ix86_expand_vector_init_duplicate): Handle V64QI
1073 and V32HI modes, update V8HI, V16QI, V32QI modes handling.
1074 (ix86_expand_vector_init_general): Handle V64QI and V32HI modes.
1075 * config/i386/sse.md (define_mode_iterator VI48F_512): Rename to ...
1076 (define_mode_iterator VF48_I1248): ... this. Extend to AVX-512 modes.
1077 (define_expand "vec_init<mode>"): Use VF48_I1248.
1079 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
1080 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1081 Anna Tikhonova <anna.tikhonova@intel.com>
1082 Ilya Tocar <ilya.tocar@intel.com>
1083 Andrey Turetskiy <andrey.turetskiy@intel.com>
1084 Ilya Verbin <ilya.verbin@intel.com>
1085 Kirill Yukhin <kirill.yukhin@intel.com>
1086 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1088 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Extend
1089 expand_sse2_mulvxdi3.
1091 2014-10-17 Richard Biener <rguenther@suse.de>
1093 * fold-const.c (fold_comparison): Remove redundant constant
1094 folding and operand swapping.
1095 (fold_binary_loc): Do comparison operand swapping here.
1096 (fold_ternary_loc): Canonicalize operand order for
1097 commutative ternary operations.
1098 * tree.c (commutative_ternary_tree_code): Add DOT_PROD_EXPR
1101 2014-10-17 Jakub Jelinek <jakub@redhat.com>
1103 PR tree-optimization/63464
1104 * gimple.h (gimple_seq_discard): New prototype.
1105 * gimple.c: Include stringpool.h and tree-ssanames.h.
1106 (gimple_seq_discard): New function.
1107 * optabs.h (lshift_cheap_p): New prototype.
1108 * optabs.c (lshift_cheap_p): New function, moved from...
1109 * tree-switch-conversion.c (lshift_cheap_p): ... here.
1110 * tree-ssa-reassoc.c: Include gimplify.h and optabs.h.
1111 (reassoc_branch_fixups): New variable.
1112 (update_range_test): Add otherrangep and seq arguments.
1113 Unshare exp. If otherrange is NULL, use for other ranges
1114 array of pointers pointed by otherrangep instead.
1115 Emit seq before gimplified statements for tem.
1116 (optimize_range_tests_diff): Adjust update_range_test
1118 (optimize_range_tests_xor): Likewise. Fix up comment.
1119 (extract_bit_test_mask, optimize_range_tests_to_bit_test): New
1121 (optimize_range_tests): Adjust update_range_test caller.
1122 Call optimize_range_tests_to_bit_test.
1123 (branch_fixup): New function.
1124 (execute_reassoc): Call branch_fixup.
1126 PR tree-optimization/63302
1127 * tree-ssa-reassoc.c (optimize_range_tests_xor,
1128 optimize_range_tests_diff): Use !integer_pow2p () instead of
1131 2014-10-17 Martin Liska <mliska@suse.cz>
1133 * ipa-icf.c (sem_function::merge): Local flags are set to false
1134 to enforce equal calling convention to be used.
1135 * opts.c (common_handle_option): Indentation fix.
1137 2014-10-17 Marc Glisse <marc.glisse@inria.fr>
1139 * tree-into-ssa.c (is_old_name): Replace "new" with "old".
1141 2014-10-17 Tom de Vries <tom@codesourcery.com>
1143 PR rtl-optimization/61605
1144 * regcprop.c (copyprop_hardreg_forward_1): Use
1145 regs_invalidated_by_this_call instead of regs_invalidated_by_call.
1147 2014-10-17 Tom de Vries <tom@codesourcery.com>
1149 PR rtl-optimization/61605
1150 * regcprop.c (copyprop_hardreg_forward_1): Add copy_p and noop_p. Don't
1151 notice stores for noops. Don't regard noops as copies.
1153 2014-10-17 Uros Bizjak <ubizjak@gmail.com>
1155 * config/i386/cpuid.h (__cpuid): Remove definitions that handle %ebx
1156 register in a special way.
1157 (__cpuid_count): Ditto.
1158 * config/i386/driver-i386.h: Protect with
1159 "#if defined(__GNUC__) && (__GNUC__ >= 5 || !defined(__PIC__))".
1160 (host_detect_local_cpu): Mention that GCC with non-fixed %ebx
1161 is required to compile the function.
1163 2014-10-16 DJ Delorie <dj@redhat.com>
1165 * flag-types.h (sanitize_code): Don't assume targets have 32-bit
1168 * config/rs6000/rs6000-c.c (rid_int128): New.
1169 (rs6000_macro_to_expand): Use instead of RID_INT128.
1171 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
1173 * function.h: Flatten file. Remove includes, adjust prototypes to
1174 reflect only what is in function.h.
1175 (enum direction, struct args_size, struct locate_and_pad_arg_data,
1176 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Relocate
1178 (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Relocate from rtl.h.
1179 (optimize_function_for_size_p, optimize_function_for_speed_p): Move
1180 prototypes to predict.h.
1181 (init_varasm_status): Move prototype to varasm.h.
1182 * expr.h: Adjust include files.
1183 (enum direction, struct args_size, struct locate_and_pad_arg_data,
1184 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Move
1186 (locate_and_pad_parm): Move prototype to function.h.
1187 * rtl.h: (assign_stack_local, ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD,
1188 assign_stack_local_1, assign_stack_temp, assign_stack_temp_for_type,
1189 assign_temp, reposition_prologue_and_epilogue_notes,
1190 prologue_epilogue_contains, sibcall_epilogue_contains,
1191 update_temp_slot_address, maybe_copy_prologue_epilogue_insn,
1192 set_return_jump_label): Move prototypes to function.h.
1193 * predict.h (optimize_function_for_size_p,
1194 optimize_function_for_speed_p): Relocate prototypes from function.h.
1195 * shrink-wrap.h (emit_return_into_block, active_insn_between,
1196 convert_jumps_to_returns, emit_return_for_exit): Move prototypes to
1198 * varasm.h (init_varasm_status): Relocate prototype from function.h.
1199 * genattrtab.c (write_header): Add predict.h to include list.
1200 * genconditions.c (write_header): Add predict.h to include list.
1201 * genemit.c (main): Adjust header file includes.
1202 * gengtype.c (ifiles): Add flattened function.h header files.
1203 * genoutput.c (output_prologue): Add predict.h to include list.
1204 * genpreds.c (write_insn_preds_c): Adjust header file includes.
1205 * genrecog.c (write_header): Add flattened function.h header files.
1206 * alias.c: Adjust include files.
1207 * auto-inc-dec.c: Likewise.
1208 * basic-block.h: Likewise.
1209 * bb-reorder.c: Likewise.
1210 * bt-load.c: Likewise.
1211 * builtins.c: Likewise.
1212 * caller-save.c: Likewise.
1213 * calls.c: Likewise.
1214 * cfgbuild.c: Likewise.
1215 * cfgcleanup.c: Likewise.
1216 * cfgexpand.c: Likewise.
1217 * cfgloop.c: Likewise.
1218 * cfgloop.h: Likewise.
1219 * cfgrtl.c: Likewise.
1220 * cgraph.h: Likewise.
1221 * cgraphclones.c: Likewise.
1222 * cgraphunit.c: Likewise.
1223 * combine-stack-adj.c: Likewise.
1224 * combine.c: Likewise.
1225 * coverage.c: Likewise.
1226 * cprop.c: Likewise.
1228 * cselib.c: Likewise.
1229 * dbxout.c: Likewise.
1231 * df-core.c: Likewise.
1232 * df-problems.c: Likewise.
1233 * df-scan.c: Likewise.
1234 * dojump.c: Likewise.
1235 * dwarf2cfi.c: Likewise.
1236 * dwarf2out.c: Likewise.
1237 * emit-rtl.c: Likewise.
1238 * except.c: Likewise.
1239 * explow.c: Likewise.
1241 * final.c: Likewise.
1242 * function.c: Likewise.
1244 * gimple-fold.c: Likewise.
1245 * gimple-low.c: Likewise.
1246 * gimple-streamer.h: Likewise.
1247 * haifa-sched.c: Likewise.
1248 * ifcvt.c: Likewise.
1252 * loop-invariant.c: Likewise.
1253 * lra-assigns.c: Likewise.
1254 * lra-coalesce.c: Likewise.
1255 * lra-constraints.c: Likewise.
1256 * lra-eliminations.c: Likewise.
1257 * lra-lives.c: Likewise.
1258 * lra-spills.c: Likewise.
1260 * lto-cgraph.c: Likewise.
1261 * lto-section-in.c: Likewise.
1262 * lto-section-out.c: Likewise.
1263 * lto-streamer-in.c: Likewise.
1264 * lto-streamer-out.c: Likewise.
1265 * mode-switching.c: Likewise.
1266 * modulo-sched.c: Likewise.
1267 * omp-low.c: Likewise.
1268 * optabs.c: Likewise.
1269 * passes.c: Likewise.
1270 * postreload-gcse.c: Likewise.
1271 * postreload.c: Likewise.
1272 * predict.c: Likewise.
1273 * profile.c: Likewise.
1274 * recog.c: Likewise.
1276 * reg-stack.c: Likewise.
1277 * regcprop.c: Likewise.
1278 * reginfo.c: Likewise.
1279 * regrename.c: Likewise.
1280 * reload.c: Likewise.
1281 * reload1.c: Likewise.
1282 * reorg.c: Likewise.
1283 * resource.c: Likewise.
1284 * rtlanal.c: Likewise.
1285 * sched-deps.c: Likewise.
1286 * sched-ebb.c: Likewise.
1287 * sched-rgn.c: Likewise.
1288 * sel-sched-dump.c: Likewise.
1289 * sel-sched-ir.c: Likewise.
1290 * sel-sched.c: Likewise.
1291 * shrink-wrap.c: Likewise.
1292 * simplify-rtx.c: Likewise.
1293 * statistics.c: Likewise.
1295 * stor-layout.c: Likewise.
1296 * store-motion.c: Likewise.
1297 * symtab.c: Likewise.
1298 * targhooks.c: Likewise.
1299 * toplev.c: Likewise.
1300 * trans-mem.c: Likewise.
1301 * tree-cfg.c: Likewise.
1302 * tree-cfgcleanup.c: Likewise.
1303 * tree-dfa.c: Likewise.
1304 * tree-eh.c: Likewise.
1305 * tree-inline.c: Likewise.
1306 * tree-into-ssa.c: Likewise.
1307 * tree-nested.c: Likewise.
1308 * tree-nrv.c: Likewise.
1309 * tree-profile.c: Likewise.
1310 * tree-ssa-alias.c: Likewise.
1311 * tree-ssa-ccp.c: Likewise.
1312 * tree-ssa-copy.c: Likewise.
1313 * tree-ssa-copyrename.c: Likewise.
1314 * tree-ssa-dom.c: Likewise.
1315 * tree-ssa-operands.c: Likewise.
1316 * tree-ssa-propagate.c: Likewise.
1317 * tree-ssa-structalias.c: Likewise.
1318 * tree-ssa-tail-merge.c: Likewise.
1319 * tree-ssa-threadedge.c: Likewise.
1320 * tree-ssa-threadupdate.c: Likewise.
1321 * tree-ssa-uncprop.c: Likewise.
1322 * tree-ssa-uninit.c: Likewise.
1323 * tree-ssa.c: Likewise.
1324 * tree-stdarg.c: Likewise.
1325 * tree-tailcall.c: Likewise.
1328 * valtrack.c: Likewise.
1329 * varasm.c: Likewise.
1330 * vmsdbgout.c: Likewise.
1332 * config/aarch64/aarch64.c: Add flattened includes from function.h.
1333 * config/alpha/alpha.c: Likewise.
1334 * config/arc/arc.c: Likewise.
1335 * config/arm/arm.c: Likewise.
1336 * config/avr/avr-log.c: Likewise.
1337 * config/avr/avr.c: Likewise.
1338 * config/bfin/bfin.c: Likewise.
1339 * config/c6x/c6x.c: Likewise.
1340 * config/cr16/cr16.c: Likewise.
1341 * config/cris/cris.c: Likewise.
1342 * config/darwin.c: Likewise.
1343 * config/epiphany/epiphany.c: Likewise.
1344 * config/epiphany/mode-switch-use.c: Likewise.
1345 * config/epiphany/resolve-sw-modes.c: Likewise.
1346 * config/fr30/fr30.c: Likewise.
1347 * config/frv/frv.c: Likewise.
1348 * config/h8300/h8300.c: Likewise.
1349 * config/i386/i386.c: Likewise.
1350 * config/ia64/ia64.c: Likewise.
1351 * config/iq2000/iq2000.c: Likewise.
1352 * config/lm32/lm32.c: Likewise.
1353 * config/m32c/m32c.c: Likewise.
1354 * config/m32r/m32r.c: Likewise.
1355 * config/m68k/m68k.c: Likewise.
1356 * config/mcore/mcore.c: Likewise.
1357 * config/mep/mep-pragma.c: Likewise.
1358 * config/mep/mep.c: Likewise.
1359 * config/microblaze/microblaze.c: Likewise.
1360 * config/mips/mips.c: Likewise.
1361 * config/mmix/mmix.c: Likewise.
1362 * config/mn10300/mn10300.c: Likewise.
1363 * config/moxie/moxie.c: Likewise.
1364 * config/msp430/msp430.c: Likewise.
1365 * config/nds32/nds32-cost.c: Likewise.
1366 * config/nds32/nds32-fp-as-gp.c: Likewise.
1367 * config/nds32/nds32-intrinsic.c: Likewise.
1368 * config/nds32/nds32-isr.c: Likewise.
1369 * config/nds32/nds32-md-auxiliary.c: Likewise.
1370 * config/nds32/nds32-memory-manipulation.c: Likewise.
1371 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1372 * config/nds32/nds32-predicates.c: Likewise.
1373 * config/nds32/nds32.c: Likewise.
1374 * config/nios2/nios2.c: Likewise.
1375 * config/pa/pa.c: Likewise.
1376 * config/pdp11/pdp11.c: Likewise.
1377 * config/rl78/rl78.c: Likewise.
1378 * config/rs6000/rs6000.c: Likewise.
1379 * config/rx/rx.c: Likewise.
1380 * config/s390/s390.c: Likewise.
1381 * config/score/score.c: Likewise.
1382 * config/sh/sh.c: Likewise.
1383 * config/sparc/sparc.c: Likewise.
1384 * config/spu/spu.c: Likewise.
1385 * config/stormy16/stormy16.c: Likewise.
1386 * config/tilegx/tilegx.c: Likewise.
1387 * config/tilepro/tilepro.c: Likewise.
1388 * config/v850/v850.c: Likewise.
1389 * config/vax/vax.c: Likewise.
1390 * config/xtensa/xtensa.c: Likewise.
1392 2014-10-16 Richard Earnshaw <rearnsha@arm.com>
1394 * config/aarch64/aarch64.c (aarch64_legitimize_address): New function.
1395 (TARGET_LEGITIMIZE_ADDRESS): Redefine.
1397 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
1399 * config/sh/sh-protos.h (fldi_ok): Remove.
1400 * config/sh/sh.c (fldi_ok): Likewise.
1401 (sh_secondary_reload): Don't use fldi_ok.
1402 * config/sh/constraints.md (G constraint, H constraint): Don't use
1405 2014-10-16 Martin Liska <mliska@suse.cz>
1407 * ipa-icf.c (sem_item_optimizer::process_cong_reduction):
1408 Cast to unsigned long.
1409 (sem_item_optimizer::dump_cong_classes): Likewise.
1411 2014-10-16 Tom de Vries <tom@codesourcery.com>
1413 * tree-into-ssa.c (update_ssa): Assert that there's no ssa use operand
1414 with SSA_NAME_IN_FREELIST.
1416 2014-10-16 Richard Biener <rguenther@suse.de>
1419 * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
1420 (fold_builtin_strncat_chk): Move ...
1421 * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
1422 (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.
1424 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
1427 * config/sh/sh.h (CALL_REALLY_USED_REGISTERS): Expand macro and set
1430 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
1431 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1432 Anna Tikhonova <anna.tikhonova@intel.com>
1433 Ilya Tocar <ilya.tocar@intel.com>
1434 Andrey Turetskiy <andrey.turetskiy@intel.com>
1435 Ilya Verbin <ilya.verbin@intel.com>
1436 Kirill Yukhin <kirill.yukhin@intel.com>
1437 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1439 * config/i386/i386.c (ix86_expand_mul_widen_hilo): Handle V32HI, V16SI,
1442 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
1443 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1444 Anna Tikhonova <anna.tikhonova@intel.com>
1445 Ilya Tocar <ilya.tocar@intel.com>
1446 Andrey Turetskiy <andrey.turetskiy@intel.com>
1447 Ilya Verbin <ilya.verbin@intel.com>
1448 Kirill Yukhin <kirill.yukhin@intel.com>
1449 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1451 * config/i386/i386.c (ix86_expand_vector_set): Handle V8DF, V8DI, V16SF,
1452 V16SI, V32HI, V64QI modes.
1454 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
1457 * config/sh/sh-protos.h (emit_sf_insn, emit_df_insn, expand_sf_unop,
1458 expand_sf_binop, expand_df_unop, expand_df_binop): Remove.
1460 * config/sh/sh.c (sh_emit_set_t_insn): Adjust generated insn pattern
1461 to match fp insn patterns.
1462 (calc_live_regs): Add FPSCR_MODES_REG and FPSCR_STAT_REG to the ignore
1464 (emit_sf_insn, emit_df_insn, expand_sf_unop, expand_sf_binop,
1465 expand_df_unop, expand_df_binop): Remove.
1466 (sh_conditional_register_usage): Mark FPSCR_MODES_REG and
1467 FPSCR_STAT_REG as not call clobbered.
1468 (sh_emit_mode_set): Emit fpscr store-modify-load sequence instead of
1469 invoking fpscr_set_from_mem.
1471 * config/sh/sh.h (MAX_REGISTER_NAME_LENGTH): Increase to 6.
1472 (SH_REGISTER_NAMES_INITIALIZER): Add names for FPSCR_MODES_REG and
1474 (REGISTER_NAMES): Adjust.
1475 (SPECIAL_REGISTER_P): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
1476 (FIRST_PSEUDO_REGISTER): Increase to 156.
1477 (DWARF_FRAME_REGISTERS): Define as 153 to keep the original value.
1478 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add FPSCR_MODES_REG and
1480 (REG_CLASS_CONTENTS): Adjust ALL_REGS bit mask to include
1481 FPSCR_MODES_REG and FPSCR_STAT_REG.
1482 (REG_ALLOC_ORDER): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
1484 * config/sh/sh.md (FPSCR_MODES_REG, FPSCR_STAT_REG, FPSCR_PR,
1485 FPSCR_SZ): Add new constants.
1486 (UNSPECV_FPSCR_MODES, UNSPECV_FPSCR_STAT): Add new unspecv constants.
1488 (movpsi): Use TARGET_FPU_ANY condition, invoke gen_fpu_switch.
1489 (fpu_switch): Add use and set of FPSCR_STAT_REG and FPSCR_MODES_REG.
1490 Use TARGET_FPU_ANY condition.
1491 (fpu_switch peephole2): Remove.
1492 (fpu_switch split): Use simple_mem_operand to capture the mem and
1493 adjust split implementation.
1494 (extend_psi_si, truncate_si_psi): New insns.
1495 (toggle_sz, toggle_pr): Use FPSCR_SZ, FPSCR_PR constants. Add
1496 set of FPSCR_MODES_REG.
1498 (push_e, push_4, pop_e, pop_4, movdf_i4, reload_indf__frn, movsf_ie,
1499 reload_insf__frn, force_mode_for_call, calli, calli_tbr_rel,
1500 calli_pcrel, call_pcrel, call_compact, call_compact_rettramp,
1501 call_valuei, call_valuei_tbr_rel, call_valuei_pcrel, call_value_pcrel,
1502 call_value_compact, call_value_compact_rettramp, call,
1503 call_pop_compact, call_pop_compact_rettramp, call_value, sibcalli,
1504 sibcalli_pcrel, sibcalli_thunk, sibcall_pcrel, sibcall_compact,
1505 sibcall, sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
1506 sibcall_value_compact, sibcall_value, call_value_pop_compact,
1507 call_value_pop_compact_rettramp, various unnamed splits):
1508 Replace use of FPSCR_REG with use of FPSCR_MODES_REG. Adjust gen_*
1511 (floatsisf2_i4, *floatsisf2_ie): Merge into floatsisf2_i4.
1512 (fix_truncsfsi2_i4, *fixsfsi): Merge into fix_truncsfsi2_i4.
1513 (cmpgtsf_t, cmpgtsf_t_i4): Merge into cmpgtsf_t.
1514 (cmpeqsf_t, cmpeqsf_t_i4): Merge into cmpeqsf_t.
1515 (ieee_ccmpeqsf_t, *ieee_ccmpeqsf_t_4): Merge into ieee_ccmpeqsf_t.
1517 (udivsi3_i4, divsi3_i4, addsf3_i, subsf3_i, mulsf3_i, fmasf4_i,
1518 *fmasf4, divsf3_i, floatsisf2_i4, fix_truncsfsi2_i4, cmpgtsf_t,
1519 cmpeqsf_t, ieee_ccmpeqsf_t, sqrtsf2_i, rsqrtsf2, fsca, adddf3_i,
1520 subdf3_i, muldf3_i, divdf3_i, floatsidf2_i, fix_truncdfsi2_i,
1521 cmpgtdf_t, cmpeqdf_t, *ieee_ccmpeqdf_t, sqrtdf2_i, extendsfdf2_i4,
1522 truncdfsf2_i4): Replace use of FPSCR_REG with clobber of FPSCR_STAT_REG
1523 and use of FPSCR_MODES_REG. Adjust gen_* function uses.
1525 2014-10-16 Martin Liska <mliska@suse.cz>
1526 Jan Hubicka <hubicka@ucw.cz>
1528 * Makefile.in: New object files included.
1529 * cgraph.c (cgraph_node::dump): New cgraph_node flag icf_merged
1531 (verify_edge_corresponds_to_fndecl): More sensitive verification
1532 of nodes that are merged by IPA ICF.
1533 * cgraph.h (cgraph_node::num_references): New function.
1534 * cgraphunit.c (cgraph_node::expand_thunk): White space fixed.
1535 * common.opt: New options ipa-icf, ipa-icf-functions and
1536 ipa-icf-variables introduced.
1537 * doc/invoke.texi: Documentation of new options introduced.
1538 * ipa-icf-gimple.c: New file.
1539 * ipa-icf-gimple.h: New file.
1540 * ipa-icf.c: New file.
1541 * ipa-icf.h: New file.
1542 * lto-cgraph.c (lto_output_node): Streaming of icf_merged flag added.
1543 (input_overwrite_node): Likewise.
1544 * lto-section-in.c: New icf section added.
1545 * lto-streamer.h (enum lto_section_type): Likewise.
1546 * opts.c (common_handle_option): New option added.
1547 * passes.def: New pass included.
1548 * timevar.def: Time variable for IPA ICF added.
1549 * tree-pass.h: New IPA ICF pass entry point added.
1551 2014-10-16 Richard Biener <rguenther@suse.de>
1553 PR tree-optimization/63168
1554 * tree-cfg.c (gimple_can_merge_blocks_p): Only protect
1555 latches if after merging they are no longer simple.
1556 * cfghooks.c (merge_blocks): Handle merging a latch block
1559 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
1560 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1561 Anna Tikhonova <anna.tikhonova@intel.com>
1562 Ilya Tocar <ilya.tocar@intel.com>
1563 Andrey Turetskiy <andrey.turetskiy@intel.com>
1564 Ilya Verbin <ilya.verbin@intel.com>
1565 Kirill Yukhin <kirill.yukhin@intel.com>
1566 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1568 * config/i386/sse.md
1569 (define_expand "floatuns<sseintvecmodelower><mode>2"): Extend to
1570 support AVX-512VL instructions.
1572 2014-10-16 DJ Delorie <dj@redhat.com>
1574 * tree-core.h: Fix comment to not assume pointers are multiples of
1577 2014-10-15 Tom Tromey <tromey@redhat.com>
1579 * timevar.h (class auto_timevar): New class.
1581 2014-10-15 Uros Bizjak <ubizjak@gmail.com>
1584 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
1585 Remove the second alternative.
1586 (regprefix): Remove mode attribute.
1587 (atomic_compare_and_swap<mode>): Do not fixup operand 2.
1588 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Remove.
1591 2013-11-05 Ian Lance Taylor <iant@google.com>
1593 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
1594 If possible, add .cfi directives to record change to bx.
1595 * config/i386/i386.c (ix86_emit_cfi): New function.
1596 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
1598 2014-10-15 Jan Hubicka <hubicka@ucw.cz>
1601 * cgraphclones.c (duplicate_thunk_for_node): Get body to have args
1603 * lto-streamer-out.c (lto_output): Handle correctly thunks that was born
1606 2014-10-15 Vladimir Makarov <vmakarov@redhat.com>
1608 PR rtl-optimization/63448
1609 * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
1610 (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
1611 (LRA_MAX_INHERITANCE_PASSES): Use it.
1612 (lra_constraint_iter_after_spill): Remove.
1613 (lra_assignment_iter): New.
1614 (lra_assignment_iter_after_spill): New.
1615 * lra-assigns.c (lra_assignment_iter): New.
1616 (lra_assignment_iter_after_spill): New.
1617 (former_reload_pseudo_spill_p): New.
1618 (spill_for): Set up former_reload_pseudo_spill_p.
1619 (setup_live_pseudos_and_spill_after_risky): Ditto.
1620 (assign_by_spills): Ditto.
1621 (lra_assign): Increment lra_assignment_iter. Print the iteration
1622 number. Reset former_reload_pseudo_spill_p. Check
1623 lra_assignment_iter_after_spill.
1624 * lra.c (lra): Remove lra_constraint_iter_after_spill. Initialize
1625 lra_assignment_iter and lra_assignment_iter_after_spill.
1626 * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
1627 (lra_constraints): Remove code with
1628 lra_assignment_iter_after_spill.
1630 2014-10-15 Teresa Johnson <tejohnson@google.com>
1633 * tree-ssa-threadupdate.c (recompute_probabilities): Better
1636 2014-10-15 Renlin Li <renlin.li@arm.com>
1638 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
1639 __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
1640 __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
1641 __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
1643 2014-10-15 Richard Biener <rguenther@suse.de>
1645 * gimple-fold.c (gimple_fold_call): Properly keep virtual
1646 SSA form up-to-date when devirtualizing a call to
1647 __builtin_unreachable and avoid fixing up EH info here.
1649 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
1650 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1651 Anna Tikhonova <anna.tikhonova@intel.com>
1652 Ilya Tocar <ilya.tocar@intel.com>
1653 Andrey Turetskiy <andrey.turetskiy@intel.com>
1654 Ilya Verbin <ilya.verbin@intel.com>
1655 Kirill Yukhin <kirill.yukhin@intel.com>
1656 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1658 * config/i386/sse.md (define_mode_iterator VI_AVX2): Extend
1659 to support AVX-512BW.
1660 (define_mode_iterator VI124_AVX2_48_AVX512F): Remove.
1661 (define_expand "<plusminus_insn><mode>3"): Remove masking support.
1662 (define_insn "*<plusminus_insn><mode>3"): Ditto.
1663 (define_expand "<plusminus_insn><VI48_AVX512VL:mode>3_mask"): New.
1664 (define_expand "<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
1665 (define_insn "*<plusminus_insn><VI48_AVX512VL:mode>3_mask"): Ditto.
1666 (define_insn "*<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
1667 (define_expand "<sse2_avx2>_andnot<mode>3"): Remove masking support.
1668 (define_insn "*andnot<mode>3"): Ditto.
1669 (define_expand "<sse2_avx2>_andnot<VI48_AVX512VL:mode>3_mask"): New.
1670 (define_expand "<sse2_avx2>_andnot<VI12_AVX512VL:mode>3_mask"): Ditto.
1671 (define_insn "*andnot<VI48_AVX512VL:mode>3<mask_name>"): Ditto.
1672 (define_insn "*andnot<VI12_AVX512VL:mode>3<mask_name>"): Ditto.
1673 (define_insn "*abs<mode>2"): Remove masking support.
1674 (define_insn "abs<VI48_AVX512VL:mode>2_mask"): New.
1675 (define_insn "abs<VI12_AVX512VL:mode>2_mask"): Ditto.
1676 (define_expand "abs<mode>2"): Use VI_AVX2 mode iterator.
1678 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
1679 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1680 Anna Tikhonova <anna.tikhonova@intel.com>
1681 Ilya Tocar <ilya.tocar@intel.com>
1682 Andrey Turetskiy <andrey.turetskiy@intel.com>
1683 Ilya Verbin <ilya.verbin@intel.com>
1684 Kirill Yukhin <kirill.yukhin@intel.com>
1685 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1687 * config/i386/predicates.md (define_predicate "constm1_operand"): New.
1688 * config/i386/sse.md
1689 (define_c_enum "unspec"): Add UNSPEC_CVTINT2MASK.
1690 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI12_AVX512VL:mode>"): New.
1691 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI48_AVX512VL:mode>"): Ditto.
1692 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
1693 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
1694 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
1695 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
1697 2014-10-15 Renlin Li <renlin.li@arm.com>
1699 * config/aarch64/aarch64.h (ARM_DEFAULT_PCS, arm_pcs_variant): Delete.
1701 2014-10-15 Jakub Jelinek <jakub@redhat.com>
1703 * tree-ssa-reassoc.c (optimize_range_tests_diff): Perform
1704 MINUS_EXPR in unsigned type to avoid undefined behavior.
1706 2014-10-15 Eric Botcazou <ebotcazou@adacore.com>
1708 * stor-layout.c (self_referential_size): Do not promote arguments.
1710 2014-10-15 Marek Polacek <polacek@redhat.com>
1712 * doc/invoke.texi: Update to reflect that GNU11 is the default
1714 * c-common.h (c_language_kind): Update comment.
1716 2014-10-15 Richard Biener <rguenther@suse.de>
1718 * hash-table.c: Include bconfig.h if building for the host.
1719 * hash-table.h: Do not include ggc.h on the host but just declare
1720 a few ggc allocation templates.
1722 2014-10-15 Joern Rennecke <joern.rennecke@embecosm.com>
1723 Jeff Law <law@redhat.com>
1725 * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
1726 multiple hard registers, use smaller mode derived from MODE.
1728 2014-10-15 Andreas Schwab <schwab@suse.de>
1730 * explow.c (convert_memory_address_addr_space_1): Mark in_const
1731 as ATTRIBUTE_UNUSED.
1733 2014-10-14 Jan Hubicka <hubicka@ucw.cz>
1735 * loop-unroll.c: (decide_unrolling_and_peeling): Rename to
1736 (decide_unrolling): ... this one.
1737 (peel_loops_completely): Remove.
1738 (decide_peel_simple): Remove.
1739 (decide_peel_once_rolling): Remove.
1740 (decide_peel_completely): Remove.
1741 (peel_loop_simple): Remove.
1742 (peel_loop_completely): Remove.
1743 (unroll_and_peel_loops): Rename to ...
1744 (unroll_loops): ... this one; handle only unrolling.
1745 * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and
1748 (unroll_and_peel_loops): Remove.
1749 (unroll_loops): New.
1750 * passes.def: Replace
1751 pass_rtl_unroll_and_peel_loops by pass_rtl_unroll_loops.
1752 * loop-init.c (gate_rtl_unroll_and_peel_loops,
1753 rtl_unroll_and_peel_loops): Rename to ...
1754 (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
1755 (pass_rtl_unroll_and_peel_loops): Rename to ...
1756 (pass_rtl_unroll_loops): ... this one.
1757 * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
1758 (make_pass_rtl_unroll_loops): New.
1759 * tree-ssa-loop-ivcanon.c: (estimated_peeled_sequence_size, try_peel_loop): New.
1760 (canonicalize_loop_induction_variables): Update.
1762 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
1764 * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
1765 * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
1766 !TARGET_HARD_FLOAT_POSTINC.
1767 (*lsip, *ssip): new instructions.
1769 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
1771 * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
1774 2014-10-14 Andrew Pinski <apinski@cavium.com>
1776 * explow.c (convert_memory_address_addr_space): Rename to ...
1777 (convert_memory_address_addr_space_1): This. Add in_const argument.
1778 Inside a CONST RTL, permute the conversion and addition of constant
1779 for zero and sign extended pointers.
1780 (convert_memory_address_addr_space): New function.
1782 2014-10-14 Andrew Pinski <apinski@cavium.com>
1785 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
1788 * explow.c (convert_memory_address_addr_space): Also permute the
1789 conversion and addition of constant for zero-extend.
1791 2014-10-14 DJ Delorie <dj@redhat.com>
1793 * config/msp430/msp430-modes.def (PSI): Add.
1795 * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding): New.
1796 (msp430_hard_regno_nregs_with_padding): New.
1797 * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
1798 (msp430_hard_regno_nregs_has_padding): New.
1799 (msp430_hard_regno_nregs_with_padding): New.
1800 (msp430_unwind_word_mode): Use PSImode instead of SImode.
1801 (msp430_addr_space_legitimate_address_p): New.
1802 (msp430_asm_integer): New.
1803 (msp430_init_dwarf_reg_sizes_extra): New.
1804 (msp430_print_operand): Use X suffix for PSImode even in small model.
1805 * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
1806 (PTR_SIZE): ...but 4 bytes for EH.
1807 (SIZE_TYPE): Use __int20.
1808 (PTRDIFF_TYPE): Likewise.
1809 (INCOMING_FRAME_SP_OFFSET): Adjust.
1810 * config/msp430/msp430.md (movqi_topbyte): New.
1811 (movpsi): Use fixed suffixes.
1812 (movsipsi2): Enable for 430X, not large model.
1813 (extendhipsi2): Likewise.
1814 (zero_extendhisi2): Likewise.
1815 (zero_extendhisipsi2): Likewise.
1816 (extend_and_shift1_hipsi2): Likewise.
1817 (extendpsisi2): Likewise.
1818 (*bitbranch<mode>4_z): Fix suffix logic.
1820 2014-10-14 Eric Botcazou <ebotcazou@adacore.com>
1823 * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
1824 do not choke on null node.
1825 <VAR_DECL>: Likewise.
1827 2014-10-14 DJ Delorie <dj@redhat.com>
1829 * machmode.h (int_n_data_t): New.
1830 (int_n_enabled_p): New.
1832 * tree.c (int_n_enabled_p): New.
1834 (make_or_reuse_type): Check for all __intN types, not just
1836 (build_common_tree_nodes): Likewise. Also fill in integer_typs[]
1838 * tree.h (int128_integer_type_node): Remove.
1839 (int128_unsigned_type_node): Remove.
1840 (int_n_trees_t): New.
1841 (int_n_enabled_p): New.
1843 * toplev.c (standard_type_bitsize): New.
1844 (do_compile): Check which __intN types are enabled for the current
1846 * builtin-types.def (BT_INT128): Remove.
1847 (BT_UINT128): Remove.
1848 * machmode.def: Add macro to create __int128 for all targets.
1849 * stor-layout.c (mode_for_size): Support __intN types.
1850 (smallest_mode_for_size): Likewise.
1851 (initialize_sizetypes): Support __intN types.
1852 * genmodes.c (struct mode_data): Add int_n field.
1853 (blank_mode): Likewise.
1856 (emit_insn_modes_h): Count __intN entries and define
1858 (emit_mode_int_n): New.
1859 (emit_insn_modes_c): Call it.
1860 * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
1861 types, not just __int128.
1862 * tree-core.h (integer_type_kind): Remove __int128-specific
1863 entries, reserve spots for __intN entries.
1865 * config/msp430/msp430-modes.def (PSI): Add.
1867 2014-10-14 Kito Cheng <kito@0xlab.org>
1869 * ira.c: Fix typo in comment.
1871 * ira-build.c: Ditto.
1872 * ira-color.c: Ditto.
1873 * ira-emit.c: Ditto.
1875 * ira-lives.c: Ditto.
1877 2014-10-14 Uros Bizjak <ubizjak@gmail.com>
1879 PR rtl-optimization/63475
1880 * alias.c (true_dependence_1): Always use get_addr to extract
1881 true address operands from x_addr and mem_addr. Use extracted
1882 address operands to check for references with alignment ANDs.
1883 Use extracted address operands with find_base_term and
1884 base_alias_check. For noncanonicalized operands call canon_rtx with
1885 extracted address operand.
1886 (write_dependence_1): Ditto.
1887 (may_alias_p): Ditto. Remove unused calls to canon_rtx.
1889 2014-10-14 Evgeny Stupachenko <evstupac@gmail.com>
1892 * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
1895 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1896 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1897 Anna Tikhonova <anna.tikhonova@intel.com>
1898 Ilya Tocar <ilya.tocar@intel.com>
1899 Andrey Turetskiy <andrey.turetskiy@intel.com>
1900 Ilya Verbin <ilya.verbin@intel.com>
1901 Kirill Yukhin <kirill.yukhin@intel.com>
1902 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1904 * config/i386/i386.c
1905 (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
1906 (ix86_expand_int_vcond): Ditto.
1908 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1909 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1910 Anna Tikhonova <anna.tikhonova@intel.com>
1911 Ilya Tocar <ilya.tocar@intel.com>
1912 Andrey Turetskiy <andrey.turetskiy@intel.com>
1913 Ilya Verbin <ilya.verbin@intel.com>
1914 Kirill Yukhin <kirill.yukhin@intel.com>
1915 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1917 * config/i386/i386.c
1918 (emit_reduc_half): Handle V64QI and V32HI mode.
1919 * config/i386/sse.md
1920 (define_mode_iterator VI_AVX512BW): New.
1921 (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
1923 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1924 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1925 Anna Tikhonova <anna.tikhonova@intel.com>
1926 Ilya Tocar <ilya.tocar@intel.com>
1927 Andrey Turetskiy <andrey.turetskiy@intel.com>
1928 Ilya Verbin <ilya.verbin@intel.com>
1929 Kirill Yukhin <kirill.yukhin@intel.com>
1930 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1932 * config/i386/sse.md
1933 (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
1935 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1936 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1937 Anna Tikhonova <anna.tikhonova@intel.com>
1938 Ilya Tocar <ilya.tocar@intel.com>
1939 Andrey Turetskiy <andrey.turetskiy@intel.com>
1940 Ilya Verbin <ilya.verbin@intel.com>
1941 Kirill Yukhin <kirill.yukhin@intel.com>
1942 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1944 * config/i386/i386.c
1945 (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
1946 * config/i386/sse.md
1947 (define_mode_iterator VI): Add V64QI and V32HI modes.
1949 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1950 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1951 Anna Tikhonova <anna.tikhonova@intel.com>
1952 Ilya Tocar <ilya.tocar@intel.com>
1953 Andrey Turetskiy <andrey.turetskiy@intel.com>
1954 Ilya Verbin <ilya.verbin@intel.com>
1955 Kirill Yukhin <kirill.yukhin@intel.com>
1956 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1958 * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
1960 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1961 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1962 Anna Tikhonova <anna.tikhonova@intel.com>
1963 Ilya Tocar <ilya.tocar@intel.com>
1964 Andrey Turetskiy <andrey.turetskiy@intel.com>
1965 Ilya Verbin <ilya.verbin@intel.com>
1966 Kirill Yukhin <kirill.yukhin@intel.com>
1967 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1969 * config/i386/sse.md
1970 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
1971 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
1973 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1974 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1975 Anna Tikhonova <anna.tikhonova@intel.com>
1976 Ilya Tocar <ilya.tocar@intel.com>
1977 Andrey Turetskiy <andrey.turetskiy@intel.com>
1978 Ilya Verbin <ilya.verbin@intel.com>
1979 Kirill Yukhin <kirill.yukhin@intel.com>
1980 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1982 * config/i386/sse.md
1983 (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
1984 (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
1986 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1987 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1988 Anna Tikhonova <anna.tikhonova@intel.com>
1989 Ilya Tocar <ilya.tocar@intel.com>
1990 Andrey Turetskiy <andrey.turetskiy@intel.com>
1991 Ilya Verbin <ilya.verbin@intel.com>
1992 Kirill Yukhin <kirill.yukhin@intel.com>
1993 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1995 * config/i386/sse.md
1996 (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
1997 (define_mode_iterator VI2_AVX2): Add V32HI mode.
1998 (define_expand "mul<mode>3<mask_name>"): Add masking.
1999 (define_insn "*mul<mode>3<mask_name>"): Ditto.
2000 (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
2001 (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
2002 (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
2003 (define_mode_attr SDOT_PMADD_SUF): Ditto.
2004 (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
2005 (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
2006 (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
2007 (define_insn "avx2_packusdw"): Delete.
2008 (define_insn "sse4_1_packusdw"): Ditto.
2009 (define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
2011 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2012 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2013 Anna Tikhonova <anna.tikhonova@intel.com>
2014 Ilya Tocar <ilya.tocar@intel.com>
2015 Andrey Turetskiy <andrey.turetskiy@intel.com>
2016 Ilya Verbin <ilya.verbin@intel.com>
2017 Kirill Yukhin <kirill.yukhin@intel.com>
2018 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2020 * config/i386/sse.md
2021 (define_insn "vec_dup<mode>"): Update constraints.
2023 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2024 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2025 Anna Tikhonova <anna.tikhonova@intel.com>
2026 Ilya Tocar <ilya.tocar@intel.com>
2027 Andrey Turetskiy <andrey.turetskiy@intel.com>
2028 Ilya Verbin <ilya.verbin@intel.com>
2029 Kirill Yukhin <kirill.yukhin@intel.com>
2030 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2032 * config/i386/sse.md
2033 (define_mode_iterator SSESCALARMODE): Add V4TI mode.
2034 (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
2035 (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
2037 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2038 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2039 Anna Tikhonova <anna.tikhonova@intel.com>
2040 Ilya Tocar <ilya.tocar@intel.com>
2041 Andrey Turetskiy <andrey.turetskiy@intel.com>
2042 Ilya Verbin <ilya.verbin@intel.com>
2043 Kirill Yukhin <kirill.yukhin@intel.com>
2044 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2046 * config/i386/sse.md
2047 (define_expand "mul<mode>3<mask_name>"): Add masking.
2049 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2050 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2051 Anna Tikhonova <anna.tikhonova@intel.com>
2052 Ilya Tocar <ilya.tocar@intel.com>
2053 Andrey Turetskiy <andrey.turetskiy@intel.com>
2054 Ilya Verbin <ilya.verbin@intel.com>
2055 Kirill Yukhin <kirill.yukhin@intel.com>
2056 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2058 * config/i386/sse.md
2059 (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
2060 (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
2062 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2063 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2064 Anna Tikhonova <anna.tikhonova@intel.com>
2065 Ilya Tocar <ilya.tocar@intel.com>
2066 Andrey Turetskiy <andrey.turetskiy@intel.com>
2067 Ilya Verbin <ilya.verbin@intel.com>
2068 Kirill Yukhin <kirill.yukhin@intel.com>
2069 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2071 * config/i386/sse.md
2072 (define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
2073 (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
2074 (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
2077 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2078 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2079 Anna Tikhonova <anna.tikhonova@intel.com>
2080 Ilya Tocar <ilya.tocar@intel.com>
2081 Andrey Turetskiy <andrey.turetskiy@intel.com>
2082 Ilya Verbin <ilya.verbin@intel.com>
2083 Kirill Yukhin <kirill.yukhin@intel.com>
2084 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2086 * config/i386/sse.md
2087 (define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
2088 use VF_128_256 mode iterator and update assembler emit code.
2089 (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
2090 (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
2091 Add masking, use VF_128_256 mode iterator.
2092 (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
2093 (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
2094 Add masking, use VF_128_256 mode iterator and update assembler emit
2096 (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
2097 (define_mode_attr avx512flogicsuff): Delete.
2098 (define_insn "avx512f_<logic><mode>"): Ditto.
2099 (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
2101 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
2103 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2104 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2105 Anna Tikhonova <anna.tikhonova@intel.com>
2106 Ilya Tocar <ilya.tocar@intel.com>
2107 Andrey Turetskiy <andrey.turetskiy@intel.com>
2108 Ilya Verbin <ilya.verbin@intel.com>
2109 Kirill Yukhin <kirill.yukhin@intel.com>
2110 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2112 * config/i386/sse.md
2113 (define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
2114 (define_expand "vashr<mode>3<mask_name>"): Add masking,
2115 use VI12_128 mode iterator.
2116 (define_expand "ashrv2di3<mask_name>"): New.
2118 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2119 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2120 Anna Tikhonova <anna.tikhonova@intel.com>
2121 Ilya Tocar <ilya.tocar@intel.com>
2122 Andrey Turetskiy <andrey.turetskiy@intel.com>
2123 Ilya Verbin <ilya.verbin@intel.com>
2124 Kirill Yukhin <kirill.yukhin@intel.com>
2125 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2127 * config/i386/i386.c
2128 (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
2129 CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
2130 CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
2131 CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
2132 CODE_FOR_avx512vl_ucmpv4si3_mask.
2133 * config/i386/sse.md
2134 (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
2135 "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
2137 "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
2138 (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
2139 (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
2140 (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
2141 (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
2142 (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
2144 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2145 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2146 Anna Tikhonova <anna.tikhonova@intel.com>
2147 Ilya Tocar <ilya.tocar@intel.com>
2148 Andrey Turetskiy <andrey.turetskiy@intel.com>
2149 Ilya Verbin <ilya.verbin@intel.com>
2150 Kirill Yukhin <kirill.yukhin@intel.com>
2151 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2153 * config/i386/sse.md
2154 (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
2155 (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
2156 (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
2157 (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
2158 (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
2159 (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
2160 (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
2161 (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
2162 (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
2164 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2165 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2166 Anna Tikhonova <anna.tikhonova@intel.com>
2167 Ilya Tocar <ilya.tocar@intel.com>
2168 Andrey Turetskiy <andrey.turetskiy@intel.com>
2169 Ilya Verbin <ilya.verbin@intel.com>
2170 Kirill Yukhin <kirill.yukhin@intel.com>
2171 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2173 * config/i386/sse.md
2174 (define_insn "avx512f_blendm<mode>"): Delete.
2175 (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
2176 (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
2177 (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
2178 V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
2180 "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
2183 "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
2186 "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
2188 (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
2189 (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
2190 (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
2191 (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
2194 "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
2197 "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
2199 (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
2202 "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
2205 "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
2208 2014-10-14 Richard Biener <rguenther@suse.de>
2210 PR tree-optimization/63512
2211 * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
2214 2014-10-14 Oleg Endo <olegendo@gcc.gnu.org>
2217 * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
2218 abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute. Remove use
2220 (negsf2_i): Rename to *negsf2_i.
2221 (abssf2_i): Rename to *abssf2_i.
2222 (negdf2_i): Rename to *negdf2_i.
2223 (absdf2_i): Rename to *absdf2_i.
2225 2014-10-14 Felix Yang <felix.yang@huawei.com>
2226 Jeff Law <law@redhat.com>
2228 * ira.c (struct equivalence): Change member "is_arg_equivalence" and
2229 "replace" into boolean bitfields; turn member "loop_depth" into a short
2230 integer; add new member "no_equiv" and "reserved".
2231 (no_equiv): Set no_equiv of struct equivalence if register is marked
2232 as having no known equivalence.
2233 (update_equiv_regs): Check all definitions for a multiple-set
2234 register to make sure that the RHS have the same value.
2236 2014-10-13 Richard Henderson <rth@redhat.com>
2238 * combine-stack-adj.c (no_unhandled_cfa): New.
2239 (maybe_merge_cfa_adjust): New.
2240 (combine_stack_adjustments_for_block): Use them.
2242 2014-10-13 Aldy Hernandez <aldyh@redhat.com>
2244 * Makefile.in (TAGS): Tag ../include files.
2246 2014-10-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2248 * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
2249 to rs6000_dbx_register_number.
2250 (DWARF_FRAME_REGNUM): Redefine as identity map.
2251 (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
2252 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
2253 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
2254 argument to handle .debug_frame and .eh_frame directly. Always
2255 translate SPE high register numbers. Add special treatment for CR,
2256 but only in .debug_frame. Respect RS6000_USE_DWARF_NUMBERING.
2258 * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
2259 * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
2260 (RS6000_USE_DWARF_NUMBERING): Define.
2261 * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
2262 (RS6000_USE_DWARF_NUMBERING): Define.
2263 * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
2264 (RS6000_USE_DWARF_NUMBERING): Define.
2265 * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
2266 (RS6000_USE_DWARF_NUMBERING): Define.
2267 * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
2268 * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
2270 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
2272 * config/i386/i386.c (ix86_address_cost): Lower cost for
2273 when address contains GOT register.
2275 2014-10-13 Ilya Enkovich <ilya.enkovich@intel.com>
2276 Vladimir Makarov <vmakarov@redhat.com>
2280 PR rtl-optimization/55458
2281 * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
2282 (ix86_init_pic_reg): New.
2283 (ix86_select_alt_pic_regnum): Add check on pseudo register.
2284 (ix86_save_reg): Likewise.
2285 (ix86_expand_prologue): Remove PIC register initialization
2286 now performed in ix86_init_pic_reg.
2287 (ix86_output_function_epilogue): Add check on pseudo register.
2288 (set_pic_reg_ever_alive): New.
2289 (legitimize_pic_address): Replace df_set_regs_ever_live with new
2290 set_pic_reg_ever_alive.
2291 (legitimize_tls_address): Likewise.
2292 (ix86_pic_register_p): New check.
2293 (ix86_delegitimize_address): Add check on pseudo register.
2294 (ix86_expand_call): Insert move from pseudo PIC register to ABI
2295 defined REAL_PIC_OFFSET_TABLE_REGNUM.
2296 (TARGET_INIT_PIC_REG): New.
2297 (TARGET_USE_PSEUDO_PIC_REG): New.
2298 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
2299 if pic_offset_table_rtx exists.
2300 * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
2302 * doc/tm.texi: Regenerate.
2303 * function.c (assign_parms): Generate pseudo register for PIC.
2304 * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
2306 * ira-color.c (color_pass): Add check on pseudo register.
2307 * ira-emit.c (change_loop): Don't create copies for PIC pseudo
2309 * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
2311 (ira): Add target specific PIC register initialization.
2312 (do_reload): Keep PIC pseudo register.
2313 * lra-assigns.c (spill_for): Add checks on pseudo register.
2314 * lra-constraints.c (contains_symbol_ref_p): New.
2315 (lra_constraints): Enable lra risky transformations when PIC is pseudo
2317 * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
2318 * target.def (use_pseudo_pic_reg): New.
2319 (init_pic_reg): New.
2321 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
2323 * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
2324 Remove m_SILVERMONT and m_INTEL from the tune.
2326 2014-10-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2329 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
2330 when _HPUX_SOURCE is defined.
2332 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
2334 PR tree-optimization/62127
2335 * tree.c (remap_type_1): When remapping array, remap
2338 2014-10-13 Christophe Lyon <christophe.lyon@linaro.org>
2340 * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
2341 longer impact parallelization.
2343 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
2346 * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
2348 2014-10-13 Marat Zakirov <m.zakirov@samsung.com>
2350 * asan.c (instrument_derefs): BIT_FIELD_REF added.
2352 2014-10-13 Richard Biener <rguenther@suse.de>
2354 PR tree-optimization/63419
2355 * gimple-fold.h (gimple_convert): New function.
2356 * gimple-fold.c (gimple_convert): Likewise.
2357 * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
2358 to split out required conversions early.
2360 2014-10-13 Richard Sandiford <richard.sandiford@arm.com>
2362 * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
2363 Add the parts of an insn in reverse order, with the pattern at
2364 the top of the queue. Detect when we're iterating over a SEQUENCE
2365 pattern and in that case just consider patterns of subinstructions.
2367 2014-10-12 Oleg Endo <olegendo@gcc.gnu.org>
2370 * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
2372 * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
2374 (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
2375 address. Use def chains to handle GBR clobbering call insns.
2377 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
2379 * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
2380 config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
2381 config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
2382 function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
2383 output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
2384 tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
2385 * doc/gty.texi (for_user): Document new option.
2386 * gengtype.c (create_user_defined_type): Don't try to get a struct for
2388 (walk_type): Don't error out on for_user option.
2389 (write_func_for_structure): Emit user marking routines if requested by
2391 (write_local_func_for_structure): Likewise.
2392 (main): Mark types with for_user option as used.
2393 * ggc.h (gt_pch_nx): Add overload for unsigned int.
2394 * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
2395 * hash-table.h (ggc_hasher): New struct.
2396 (hash_table::create_ggc): New function.
2397 (gt_pch_nx): New overload for hash_table.
2399 2014-10-11 Oleg Endo <olegendo@gcc.gnu.org>
2401 * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
2402 * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
2403 * config/sh/sh.c: Likewise.
2404 * config/sh/sh-mem.cc: Likewise.
2405 * config/sh/sh.md: Likewise.
2406 * config/sh/predicates.md: Likewise.
2407 * config/sh/sync.md: Likewise.
2409 2014-10-11 Martin Liska <mliska@suse.cz>
2412 * cgraphunit.c (symbol_table::process_new_functions): Missing call
2413 for call_cgraph_insertion_hooks added.
2415 2014-10-10 Jakub Jelinek <jakub@redhat.com>
2418 * stor-layout.c (min_align_of_type): Don't decrease alignment
2419 through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
2420 TYPE_USER_ALIGN is set.
2422 2014-10-10 Uros Bizjak <ubizjak@gmail.com>
2424 PR rtl-optimization/63483
2425 * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
2426 references when alignment ANDs are involved.
2427 (write_dependence_p): Ditto.
2428 (may_alias_p): Ditto.
2430 2014-10-10 Marek Polacek <polacek@redhat.com>
2432 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
2433 * doc/invoke.texi: Document -fsanitize=object-size.
2434 * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
2435 or it into SANITIZE_UNDEFINED.
2436 * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
2437 * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
2438 * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
2439 * opts.c (common_handle_option): Handle -fsanitize=object-size.
2440 * ubsan.c: Include tree-object-size.h.
2441 (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi.
2442 (ubsan_expand_bounds_ifn): Use false instead of 0.
2443 (ubsan_expand_objsize_ifn): New function.
2444 (instrument_object_size): New function.
2445 (pass_ubsan::execute): Add object size instrumentation.
2446 * ubsan.h (ubsan_expand_objsize_ifn): Declare.
2448 2014-10-10 Richard Henderson <rth@redhat.com>
2451 * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
2452 Restrict the set of expressions we're willing to move.
2454 2014-10-10 Jeff Law <law@redhat.com>
2456 * ira.c (struct equivalence): Promote INIT_INSNs field to
2457 an rtx_insn_list. Add comments.
2458 (no_equiv): Promote LIST to an rtx_insn_list. Update
2459 testing for and creating the special marker. Use methods
2460 to extract the insn and next pointers. Promote INSN to an
2462 (update_equiv_regs): Update test for special marker in the
2465 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2467 * configure.ac: Add --enable-fix-cortex-a53-835769 option.
2468 * configure: Regenerate.
2469 * config/aarch64/aarch64.c (aarch64_override_options): Handle
2470 TARGET_FIX_ERR_A53_835769_DEFAULT.
2471 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
2473 * doc/install.texi (aarch64*-*-*): Document
2474 new --enable-fix-cortex-a53-835769 option.
2476 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2477 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2479 * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
2480 (ADJUST_INSN_LENGTH): Define.
2481 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
2482 * config/aarch64/aarch64.c (is_mem_p): New function.
2483 (is_memory_op): Likewise.
2484 (aarch64_prev_real_insn): Likewise.
2485 (is_madd_op): Likewise.
2486 (dep_between_memop_and_curr): Likewise.
2487 (aarch64_madd_needs_nop): Likewise.
2488 (aarch64_final_prescan_insn): Likewise.
2489 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
2490 and -mno-fix-cortex-a53-835769 options.
2492 2014-10-10 Jakub Jelinek <jakub@redhat.com>
2494 PR tree-optimization/63464
2495 * tree-switch-conversion.c (struct case_bit_test): Remove
2496 hi and lo fields, add wide_int mask field.
2497 (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
2498 hi/lo fields into wide_int mask operations, optimize by pretending
2499 minval to be 0 if maxval is small enough.
2500 (process_switch): Adjust caller.
2502 2014-10-10 Richard Biener <rguenther@suse.de>
2504 PR tree-optimization/63379
2505 * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
2506 a neutral operand for min/max when it is not a reduction chain.
2508 2014-10-10 Richard Biener <rguenther@suse.de>
2510 PR tree-optimization/63476
2511 * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
2512 (BB_LIVE_VOP_ON_EXIT): New define.
2513 (create_expression_by_pieces): Assign VUSEs to stmts.
2514 (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
2515 (pass_pre::execute): Assert virtual SSA form is up-to-date
2518 2014-10-10 Eric Botcazou <ebotcazou@adacore.com>
2520 * lra-assigns.c (assign_by_spills): Error out on spill failure.
2522 2014-10-09 Markus Trippelsdorf <markus@trippelsdorf.de>
2524 * pa-polymorphic-call.c (check_stmt_for_type_change): Move
2527 2014-10-09 Richard Biener <rguenther@suse.de>
2529 PR tree-optimization/63380
2530 * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
2533 2014-10-09 Joern Rennecke <joern.rennecke@embecosm.com>
2535 * config/avr/avr.opt (mmcu=): Change to have a string value.
2536 (mn-flash=, mskip-bug, march=, mrmw): New options.
2537 (HeaderInclude): New.
2538 (mmcu=): Remove Var / Init clauses.
2539 * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
2541 (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
2542 (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
2543 (SYMBOL_FLAG_IO_LOW): Define.
2544 (avr_device_to_as, avr_device_to_ld): Don't declare.
2545 (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
2546 (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
2547 (EXTRA_SPEC_FUNCTIONS): Don't define.
2548 (ASM_SPEC): Translate -arch= option to -mmcu= option.
2549 (LINK_SPEC): Translate -arch= option to -m= option.
2550 Don't use device_to_ld / device_to_data_start.
2551 (STARTFILE_SPEC): Now empty.
2552 (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
2553 * config/avr/gen-avr-mmcu-specs.c: New file.
2554 * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
2555 (s-device-specs): Likewise.
2556 (GCC_PASSES): Add s-device-specs.
2557 (install-driver): Depend on install-device-specs.
2558 (install-device-specs): New rule.
2559 * config/avr/avr.c (avr_option_override): Look up mcu arch by
2560 avr_arch_index and provide fallback initialization for avr_n_flash.
2561 (varasm.h): #include.
2562 (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
2563 (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
2564 (avr_attribute_table): Add "io", "address" and "io_low".
2565 (avr_asm_output_aligned_decl_common): Change type of decl to tree.
2566 Add special handling for symbols with "io" and/or "address" attributes.
2567 (avr_asm_asm_output_aligned_bss): New function.
2568 (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
2569 as appropriate. Handle io_low attribute.
2570 (avr_out_sbxx_branch): Handle symbolic io addresses.
2571 (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
2572 avr_n_flash instead of avr_current_device->n_flash.
2573 (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
2574 (avr_emit_movmemhi): Likewise.
2575 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
2576 Use TARGET_RMW instead of avr_current_device->dev_attributes.
2577 Don't define avr_current_device->macro (that's the specfile's job).
2578 Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
2579 * config/avr/avr.c (avr_2word_insn_p): Likewise.
2580 * config/avr/avr.md (*cpse.ne): Likewise.
2581 (mov<mode>): Use avr_eval_addr_attrib.
2582 (cbi): Change constraint for low_io_address_operand operand to "i".
2583 (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
2584 * config/avr/predicates.md (io_address_operand):
2585 Allow SYMBOL_REF with SYMBOL_FLAG_IO.
2586 (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
2587 * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
2589 (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
2590 * config/avr/genmultilib.awk: Use -march=.
2591 Remove Multilib matches processing.
2592 * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
2593 * config/avr/avr-arch.h: Add double include guard.
2594 (avr_mcu_t) <library_name>: Update comment.
2595 * config/avr/driver-avr.c (avr_device_to_as): Delete.
2596 (avr_device_to_ld, avr_device_to_data_start): Likewise.
2597 (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
2598 (avr_device_to_sp8): Likewise.
2599 * config/avr/genopt.sh: Instead avr_mcu, emit an Enum for avr_arch.
2601 * doc/extend.texi (io, address): Document new AVR variable attributes.
2604 2014-10-09 Marek Polacek <polacek@redhat.com>
2606 * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
2608 2014-10-08 Richard Biener <rguenther@suse.de>
2610 PR tree-optimization/61969
2611 * tree-nrv.c (pass_nrv::execute): Properly test for automatic
2614 2014-10-09 Richard Biener <rguenther@suse.de>
2616 PR tree-optimization/63445
2617 * tree-vrp.c (simplify_cond_using_ranges): Only warn about
2618 overflow for non-equality compares.
2620 2014-10-09 Uros Bizjak <ubizjak@gmail.com>
2622 PR rtl-optimization/57003
2623 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
2624 also check CALL_INSN_FUNCTION_USAGE for clobbers again after
2625 killing regs_invalidated_by_call.
2627 2014-10-08 Teresa Johnson <tejohnson@google.com>
2630 * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
2631 (ssa_fix_duplicate_block_edges): Invoke it.
2632 (mark_threaded_blocks): Make two passes to avoid ordering dependences.
2634 2014-10-08 Oleg Endo <olegendo@gcc.gnu.org>
2637 * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
2638 atomic_fetch_<fetchop_name>si_hard,
2639 atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
2640 atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
2641 atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
2642 atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
2644 2014-10-08 Rong Xu <xur@google.com>
2646 * gcov-tool.c (profile_overlap): New driver function
2647 to compute profile overlap.
2648 (print_overlap_usage_message): New.
2649 (overlap_usage): New.
2651 (print_usage): Add calls to overlap function.
2653 * doc/gcov-tool.texi: Add documentation.
2655 2014-10-08 Steve Ellcey <sellcey@mips.com>
2657 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
2658 LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
2660 2014-10-08 Jan Hubicka <hubicka@ucw.cz>
2662 * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
2663 pattern matching of MEM_REF.
2664 (check_stmt_for_type_change): Update.
2666 2014-10-08 Steve Ellcey <sellcey@mips.com>
2668 * config/mips/linux64.h: Remove.
2669 * config/mips/gnu-user64.h: Remove.
2670 * gcc.config (mips*-*-*): Remove references to linux64.h and
2672 * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
2673 with modified version from gnu-user64.h.
2674 (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
2675 (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
2676 * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
2678 (GNU_USER_LINK_EMULATION64): Ditto.
2679 (GNU_USER_LINK_EMULATIONN32): Ditto.
2680 (GLIBC_DYNAMIC_LINKER32): Ditto.
2681 (GLIBC_DYNAMIC_LINKER64): Ditto.
2682 (GLIBC_DYNAMIC_LINKERN32): Ditto.
2683 (UCLIBC_DYNAMIC_LINKER32): Ditto.
2684 (UCLIBC_DYNAMIC_LINKER64): Ditto.
2685 (UCLIBC_DYNAMIC_LINKERN32): Ditto.
2686 (BIONIC_DYNAMIC_LINKERN32): Ditto.
2687 (GNU_USER_DYNAMIC_LINKERN32): Ditto.
2688 (GLIBC_DYNAMIC_LINKER): Delete.
2689 (UCLIBC_DYNAMIC_LINKER): Delete.
2691 2014-10-08 Joern Rennecke <joern.rennecke@embecosm.com>
2692 Richard Biener <rguenther@suse.de>
2694 * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
2695 Get address space from operand 0 (BASE).
2697 2014-10-07 Iain Sandoe <iain@codesourcery.com>
2700 * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
2702 2014-10-07 Aldy Hernandez <aldyh@redhat.com>
2704 * dwarf2out.c: Remove current_function_has_inlines.
2705 (gen_subprogram_die): Same.
2706 (gen_inlined_subroutine_die): Same.
2708 2014-10-07 Ilya Tocar <ilya.tocar@intel.com>
2710 * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
2712 (_addcarry_u64): Ditto.
2713 (_addcarryx_u64): Ditto.
2715 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
2717 * cgraph.h (cgraph_node::get_fun): Declare.
2718 * cgraph.c (cgraph_node::get_fun): New method.
2719 * ipa-inline.c (can_inline_edge_p): Use it.
2721 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
2723 * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
2724 and -ftrapping-math.
2725 * lto-wrapper.c (merge_and_complain): Likewise.
2726 (run_gcc): Likewise.
2728 2014-10-06 Rong Xu <xur@google.com>
2730 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
2731 * tree-profile.c: (params.h): New include.
2732 (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
2733 and __gcov_indirect_call_topn_counters for
2734 indirect_call_topn_profile.
2735 (gimple_init_edge_profiler): New decls for
2736 __gcov_indirect_call_topn_profiler.
2737 (gimple_gen_ic_profiler): Generate the correct profiler call.
2738 (gimple_gen_ic_func_profiler): Fix format.
2739 * value-prof.c (params.h): New include.
2740 (dump_histogram_value): Hanlde indirect_call_topn counters.
2741 (stream_in_histogram_value): Ditto.
2742 (gimple_indirect_call_to_profile): Use indirect_call_topn
2743 profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
2744 (gimple_find_values_to_profile): Hanlde indirect_call_topn
2746 * value-prof.h (enum hist_type): Histrogram type for
2747 indirect_call_topn counters.
2748 * profile.c (instrument_values): Instrument
2749 indirect_call_topn counters.
2751 2014-10-06 Rong Xu <xur@google.com>
2753 * Makefile.in: Fix dependence.
2754 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
2755 indirect call topn profiler.
2758 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
2760 * calls.c (expand_call): Do not use the target as the return slot if
2761 it is not sufficiently aligned.
2763 2014-10-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2765 * config/rs6000/rs6000.c (analyze_swaps commentary): Add
2766 discussion of permutes and why we don't handle them.
2768 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
2770 * config/sparc/predicates.md (int_register_operand): Delete.
2772 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
2774 * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
2776 2014-10-06 Jakub Jelinek <jakub@redhat.com>
2778 * ubsan.h (ubsan_get_source_location): New prototype.
2779 * ubsan.c (ubsan_source_location_type): New variable.
2780 Function renamed to ...
2781 (ubsan_get_source_location_type): ... this. Cache
2782 return value in ubsan_source_location_type variable.
2783 (ubsan_source_location, ubsan_create_data): Use
2784 ubsan_get_source_location_type instead of
2785 ubsan_source_location_type.
2786 * asan.c (asan_protect_global): Don't protect globals
2787 with ubsan_get_source_location_type () type.
2788 (asan_add_global): Provide global decl location info
2791 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
2793 * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
2796 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
2798 * ipa-polymorphic-call.c (possible_placement_new): Fix condition
2800 (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
2802 (ipa_polymorphic_call_context::dump): Fix formating.
2803 (walk_ssa_copies): Add logic avoiding loops; update uses.
2804 * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
2806 2014-10-02 Mark Wielaard <mjw@redhat.com>
2809 * dwarf2out.c (gen_subprogram_die): When a member function is
2810 explicitly deleted then add a DW_AT_GNU_deleted attribute.
2811 * langhooks.h (struct lang_hooks_for_decls): Add
2812 function_decl_deleted_p langhook.
2813 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
2814 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
2816 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
2818 * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
2819 NULL pointer checks.
2820 (ipa_polymorphic_call_context::get_dynamic_type): Return true
2821 if type doesn't change.
2822 * cgraph.h (cgraph_indirect_call_info): New flag.
2823 * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
2824 (cgraph_node::dump): Dump it.
2825 * ipa-prop.c (ipa_analyze_call_uses): Ignore return valud
2826 of context.get_dynamic_type.
2827 (ipa_make_edge_direct_to_target): Do not speculate
2828 edge that is already speuclative.
2829 (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
2830 speculate to __builtin_unreachable
2831 (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
2833 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
2835 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
2837 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
2838 get_dynamic_type; drop TODO.
2839 * ipa-polymorphic-call.c
2840 (ipa_polymorphic_call_context::get_dynamic_type): Be ready
2841 for otr_type to be unknown.
2843 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
2845 * common/config/score/score-common.c: Remove.
2846 * config.gcc: Remove support for score-*.
2847 * config/score/constraints.md: Remove.
2848 * config/score/elf.h: Remove.
2849 * config/score/predicates.md: Remove.
2850 * config/score/score-conv.h: Remove.
2851 * config/score/score-generic.md: Remove.
2852 * config/score/score-modes.def: Remove.
2853 * config/score/score-protos.h: Remove.
2854 * config/score/score.c: Remove.
2855 * config/score/score.h: Remove.
2856 * config/score/score.md: Remove.
2857 * config/score/score.opt: Remove.
2858 * doc/md.texi: Don't document score-*.
2860 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
2863 * genconditions.c: Directly include ggc.h before rtl.h.
2865 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
2867 * ipa-polymorphic-call.c
2868 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
2869 code determining speculative type.
2870 (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
2872 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2874 * altivec.md (altivec_lvsl): New define_expand.
2875 (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
2876 (altivec_lvsr): New define_expand.
2877 (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
2878 * rs6000.c (rs6000_expand_builtin): Change to use
2879 altivec_lvs[lr]_direct; remove commented-out code.
2881 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2883 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2884 Issue a warning message when vec_lvsl or vec_lvsr is used with a
2885 little endian target.
2887 2014-10-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2889 * tree-pretty-print.c (dump_location): Make it extern. Dump also
2891 * tree-pretty-print.h (dump_location): Declare.
2892 * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
2893 (pp_gimple_stmt_1): Likewise.
2894 (dump_implicit_edges): Likewise.
2895 * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
2899 2014-10-03 David Malcolm <dmalcolm@redhat.com>
2901 * gcc.c (driver::global_initializations): Remove "const" so
2902 that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
2903 and decoded_options_count.
2905 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2907 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
2909 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
2910 TARGET_E500_DOUBLE case here.
2912 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
2917 * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
2919 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
2921 * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
2922 * lto-cgraph.c (lto_output_edge, input_edge): Stream
2923 in_polymorphic_cdtor
2924 * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
2925 (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
2926 * cgraphclones.c (cgraph_edge::clone): Likewise.
2927 * ipa-prop.c (update_jump_functions_after_inlining,
2928 try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
2929 to possible_dynamic_type_change.
2930 (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
2931 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
2932 IN_POLY_CDOTR argument.
2934 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
2935 for BASE and OUTER_TYPE being NULL.
2936 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
2937 in_poly_cdtor parameter.
2939 2014-10-03 Jakub Jelinek <jakub@redhat.com>
2941 * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
2942 (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
2944 (expand_vec_perm_1): Likewise.
2946 2014-10-03 Jakub Jelinek <jakub@redhat.com>
2947 Uros Bizjak <ubizjak@gmail.com>
2949 PR tree-optimization/61403
2950 * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
2951 error in comment. Also optimize 256-bit vectors for AVX2
2952 or AVX (floating vectors only), provided the first permutation
2953 can be performed in one insn.
2955 2014-10-03 David Malcolm <dmalcolm@redhat.com>
2957 * gcc.c (class driver): New class.
2958 (main): Reimplement in terms of driver::main, moving most of the
2959 locals to be locals within individual methods of class driver.
2960 The remaining locals "explicit_link_files", "decoded_options" and
2961 "decoded_options_count" are used by multiple driver:: methods, and
2962 so become member data. Doing so isolates the argc/argv reads and
2963 writes. Replace "goto out" with a special exit code from
2964 new method driver::prepare_infiles. Split out the old
2965 implementation of main into the following...
2966 (driver::main): New function, corresponding to the old "main"
2968 (driver::set_progname): New function, taken from the old
2969 "main" implementation.
2970 (driver::expand_at_files): Likewise.
2971 (driver::decode_argv): Likewise.
2972 (driver::global_initializations): Likewise.
2973 (driver::build_multilib_strings): Likewise.
2974 (driver::set_up_specs): Likewise.
2975 (driver::putenv_COLLECT_GCC): Likewise.
2976 (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
2977 (driver::handle_unrecognized_options): Likewise.
2978 (driver::maybe_print_and_exit): Likewise.
2979 (driver::prepare_infiles): Likewise.
2980 (driver::do_spec_on_infiles): Likewise.
2981 (driver::maybe_run_linker): Likewise.
2982 (driver::final_actions): Likewise.
2983 (driver::get_exit_code): Likewise.
2985 2014-10-03 Yury Gribov <y.gribov@samsung.com>
2987 * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
2988 don't emit empty ctors.
2990 2014-10-03 Eric Botcazou <ebotcazou@adacore.com>
2992 * convert.c (convert_to_integer): Do not introduce useless conversions
2993 between integral types.
2995 2014-10-03 David Sherwood <david.sherwood@arm.com>
2997 * ira-int.h (ira_allocno): Mark hard_regno as signed.
2999 2014-10-03 Ilya Enkovich <ilya.enkovich@intel.com>
3001 * lra-constraints.c (inherit_in_ebb): Handle calls with
3002 multiple return values.
3003 * caller-save.c (save_call_clobbered_regs): Likewise.
3005 2014-10-03 Jakub Jelinek <jakub@redhat.com>
3007 * tree-vect-data-refs.c (vect_permute_load_chain,
3008 vect_shift_permute_load_chain): Fix a typo in temporary var names,
3009 suffle3 to shuffle3.
3012 * omp-low.c (taskreg_contexts): New variable.
3013 (scan_omp_parallel): Push newly created context into taskreg_contexts
3014 vector and move record layout code to finish_taskreg_scan.
3015 (scan_omp_task): Likewise.
3016 (finish_taskreg_scan): New function.
3017 (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
3018 vector elements and release it.
3021 * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
3022 of palignr arguments can't be used due to min 0 or max - min
3023 too high, try also op0, op1 order of palignr arguments.
3025 2014-10-02 Jan Hubicka <hubicka@ucw.cz>
3027 * cgraph.h (ipa_polymorphic_call_context):
3028 Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
3029 private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
3030 * ipa-polymorphic-call.c
3031 (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
3032 past end of dynamic types.
3033 (ipa_polymorphic_call_context::stream_out,
3034 speculative_outer_type): Stream dynamic flag.
3035 (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
3036 (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
3038 (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
3040 (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
3041 * ipa-prop.c (update_jump_functions_after_inlining,
3042 try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
3044 2014-10-02 Teresa Johnson <tejohnson@google.com>
3046 * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
3047 up when synthesizing counts to avoid rounding errors.
3049 2014-10-02 Teresa Johnson <tejohnson@google.com>
3052 * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
3053 asserts to handle incoming insanities.
3055 2014-10-02 Martin Jambor <mjambor@suse.cz>
3057 PR tree-optimization/63375
3058 * tree-sra.c (build_access_from_expr_1): Disqualify volatile
3061 2014-10-02 Olivier Hainque <hainque@adacore.com>
3063 * Makefile.in (CROSS): Define, to @CROSS.
3065 2014-10-02 Jakub Jelinek <jakub@redhat.com>
3068 * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
3069 if it expands to a single insn only.
3070 (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument. If true,
3071 fail unless in_order is true. Add forward declaration.
3072 (expand_vec_perm_vperm2f128): Fix up comment about which permutation
3073 is useful for one_operand_p.
3074 (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
3076 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
3078 * cgraphclones.c (build_function_type_skip_args): Do not make new
3079 type variant of old.
3081 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
3083 * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
3084 when speculation is added.
3085 (ipa_edge_args): Add polymorphic_call_contexts.
3086 (ipa_get_ith_polymorhic_call_context): New accesor.
3087 (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
3088 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
3089 (ipa_compute_jump_functions_for_edge): Compute contexts.
3090 (update_jump_functions_after_inlining): Update contexts.
3091 (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
3092 update dumping; add speculative edge creation.
3093 (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
3095 (update_indirect_edges_after_inlining): Pass down context.
3096 (ipa_edge_duplication_hook): Duplicate contexts.
3097 (ipa_write_node_info): Stream out contexts.
3098 (ipa_read_node_info): Stream in contexts.
3099 * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
3101 (try_speculative_devirtualization): New function.
3102 * ipa-utils.h (try_speculative_devirtualization): Declare.
3104 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
3106 * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
3109 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
3111 * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
3114 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
3116 * ipa-polymorphic-call.c
3117 (ipa_polymorphic_call_context::restrict_to_inner_class):
3118 Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
3119 use speculation_consistent_p to do so; Add CONSDER_BASES
3120 and CONSIDER_PLACEMENT_NEW parameters.
3121 (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
3122 short circuit obvious cases.
3123 (ipa_polymorphic_call_context::dump): Improve formatting.
3124 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
3125 combine_speculation_with to record speculations; Do not ICE when
3126 object is located in pointer type decl; do not ICE for methods
3127 of UNION_TYPE; do not record nonpolymorphic types.
3128 (ipa_polymorphic_call_context::speculation_consistent_p): New method.
3129 (ipa_polymorphic_call_context::combine_speculation_with): New method.
3130 (ipa_polymorphic_call_context::combine_with): New method.
3131 (ipa_polymorphic_call_context::make_speculative): Move here; use
3132 combine speculation.
3133 * cgraph.h (ipa_polymorphic_call_context): Update
3134 restrict_to_inner_class prototype; add offset_by, make_speculative,
3135 combine_with, useless_p, combine_speculation_with and
3136 speculation_consistent_p methods.
3137 (ipa_polymorphic_call_context::offset_by): New method.
3138 (ipa_polymorphic_call_context::useless_p): New method.
3140 2014-10-01 Segher Boessenkool <segher@kernel.crashing.org>
3142 PR rtl-optimization/62151
3143 * combine.c (can_combine_p): Allow the destination register of INSN
3144 to be clobbered in I3.
3145 (subst): Do not substitute into clobbers of registers.
3147 2014-10-01 Jakub Jelinek <jakub@redhat.com>
3150 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
3151 offset, TARGET_MEM_REF and SSA_NAME.
3153 * config/i386/i386.c (expand_vec_perm_palignr): Handle
3154 256-bit vectors for TARGET_AVX2.
3156 * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
3160 * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
3161 argument to avx2_permv2ti.
3163 2014-10-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3165 * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
3167 2014-09-30 Uros Bizjak <ubizjak@gmail.com>
3169 * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
3170 (fmod<mode>3): Ditto.
3171 (fpremxf4_i387): Ditto.
3172 (reminderxf3): Ditto.
3173 (reminder<mode>3): Ditto.
3174 (fprem1xf4_i387): Ditto.
3176 2014-09-30 Teresa Johnson <tejohnson@google.com>
3178 * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
3179 duplicate_blocks bitmap.
3180 (remove_ctrl_stmt_and_useless_edges): Ditto.
3181 (create_block_for_threading): Ditto.
3182 (compute_path_counts): New function.
3183 (update_profile): Ditto.
3184 (recompute_probabilities): Ditto.
3185 (update_joiner_offpath_counts): Ditto.
3186 (freqs_to_counts_path): Ditto.
3187 (clear_counts_path): Ditto.
3188 (ssa_fix_duplicate_block_edges): Update profile info.
3189 (ssa_create_duplicates): Pass new parameter.
3190 (ssa_redirect_edges): Remove old profile update.
3191 (thread_block_1): New duplicate_blocks bitmap,
3192 remove old profile update.
3193 (thread_single_edge): Pass new parameter.
3195 2014-09-30 Ilya Tocar <ilya.tocar@intel.com>
3198 * varasm.c (decode_reg_name_and_count): Check availability for
3199 registers from ADDITIONAL_REGISTER_NAMES.
3201 2014-09-30 David Malcolm <dmalcolm@redhat.com>
3204 * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
3205 (PLUGIN_HEADERS): Add pass-instances.def.
3207 2014-09-30 James Greenhalgh <james.greenhalgh@arm.com>
3209 * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
3211 * config/aarch64/aarch64-simd.md
3212 (aarch64_sqdmull_laneq<mode>): Expand iterator.
3213 * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
3214 (vqdmulls_lane_s32): Fix return type.
3215 (vqdmulls_laneq_s32): New.
3217 2014-09-30 Jakub Jelinek <jakub@redhat.com>
3220 * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
3221 or invert_jump_1 if jump isn't any_condjump_p.
3223 2014-09-30 Terry Guo <terry.guo@arm.com>
3225 * config/arm/arm-cores.def (cortex-m7): New core name.
3226 * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
3228 * config/arm/arm-tables.opt: Regenerated.
3229 * config/arm/arm-tune.md: Regenerated.
3230 * config/arm/arm.h (TARGET_VFP5): New macro.
3231 * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
3232 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
3233 smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
3234 * doc/invoke.texi: Document new cpu and fpu names.
3236 2014-09-30 Jiong Wang <jiong.wang@arm.com>
3238 * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
3239 before sinking insn.
3241 2014-09-30 David Sherwood <david.sherwood@arm.com>
3243 * ira-int.h (ira_allocno): Add "wmode" field.
3244 * ira-build.c (create_insn_allocnos): Add new "parent" function
3246 * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
3247 that cannot be accessed in wmode.
3249 2014-09-30 Markus Trippelsdorf <markus@trippelsdorf.de>
3251 * data-streamer.c (bp_unpack_var_len_int): Avoid signed
3254 2014-09-29 Andi Kleen <ak@linux.intel.com>
3256 * opts.c (print_filtered_help): Print --param min/max/default
3259 2014-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
3261 * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
3263 2014-09-29 Eric Botcazou <ebotcazou@adacore.com>
3265 * tree-vrp.c (get_single_symbol): New function.
3266 (build_symbolic_expr): Likewise.
3267 (symbolic_range_based_on_p): New predicate.
3268 (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
3269 for PLUS and MINUS. Do not drop symbolic ranges at the end.
3270 (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
3271 operand is symbolic and based on the other operand.
3273 2014-09-29 Chen Gang <gang.chen.5i5j@gmail.com>
3275 * config/microblaze/microblaze.md (call_internal1): Use VOID
3276 instead of SI to fix "((void (*)(void)) 0)()" issue
3278 2014-09-29 Nick Clifton <nickc@redhat.com>
3280 * config/msp430/msp430.c (msp430_expand_prologue): Return a
3281 CLOBBER rtx for naked functions.
3282 (msp430_expand_epilogue): Likewise.
3283 (msp430_use_f5_series_hwmult): Cache result.
3284 (use_32bit_hwmult): Cache result.
3285 (msp430_no_hwmult): New function.
3286 (msp430_output_labelref): Use it.
3288 2014-09-29 Jakub Jelinek <jakub@redhat.com>
3291 * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
3292 of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
3293 use the alignment of avar rather than ovar.
3295 2014-09-28 John David Anglin <danglin@gcc.gnu.org>
3297 * config/pa/pa.c (pa_output_function_epilogue): Only update
3298 last_address when a nonnote insn is found.
3300 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
3303 * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
3305 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
3308 * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
3309 fix pasto in checking array size.
3311 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
3314 * passes.def (pass_tracer): Move before last dominator pass.
3316 2014-09-26 Thomas Schwinge <thomas@codesourcery.com>
3318 * gcc.c (try_generate_repro): Remove argument "prog". Change all
3320 (run_attempt): Handle errors of "pex_run" invocation.
3322 2014-09-26 Christophe Lyon <christophe.lyon@linaro.org>
3324 * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
3326 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
3327 (TARGET_ASAN_SHADOW_OFFSET): Define.
3329 2014-09-26 Martin Liska <mliska@suse.cz>
3331 * cgraph.c (cgraph_node::release_body): New argument keep_arguments
3333 * cgraph.h: Likewise.
3334 * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
3335 * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
3336 * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
3337 * tree-ssa-alias.h: Likewise.
3339 2014-09-26 Jakub Jelinek <jakub@redhat.com>
3340 Max Ostapenko <m.ostapenko@partner.samsung.com>
3342 * common.opt: New option.
3343 * doc/invoke.texi: Describe new option.
3344 * gcc.c (execute): Don't free first string early, but at the end
3345 of the function. Call retry_ice if compiler exited with
3347 (main): Factor out common code.
3348 (print_configuration): New function.
3349 (files_equal_p): Likewise.
3350 (check_repro): Likewise.
3351 (run_attempt): Likewise.
3352 (do_report_bug): Likewise.
3353 (append_text): Likewise.
3354 (try_generate_repro): Likewise
3356 2014-09-25 Andi Kleen <ak@linux.intel.com>
3358 * config/i386/i386.c (x86_print_call_or_nop): New function.
3359 (x86_function_profiler): Support -mnop-mcount and
3361 * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
3362 * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
3364 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
3366 * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
3367 * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
3368 * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
3371 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
3373 * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
3374 type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
3375 types_odr_comparable): Declare.
3376 (polymorphic_type_binfo_p): Move here from ipa-devirt.c
3377 * ipa-polymorphic-call.c: New file.
3378 (contains_polymorphic_type_p, possible_placement_new,
3379 ipa_polymorphic_call_context::restrict_to_inner_class,
3380 contains_type_p, decl_maybe_in_construction_p,
3381 ipa_polymorphic_call_context::stream_out,
3382 ipa_polymorphic_call_context::debug,
3383 ipa_polymorphic_call_context::stream_in,
3384 ipa_polymorphic_call_context::set_by_decl,
3385 ipa_polymorphic_call_context::set_by_invariant,
3387 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3388 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
3389 extr_type_from_vtbl_ptr_store, record_known_type
3390 check_stmt_for_type_change,
3391 ipa_polymorphic_call_context::get_dynamic_type): Move here from
3393 * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
3394 and streamer-hooks.h
3395 (contains_polymorphic_type_p, possible_placement_new,
3396 ipa_polymorphic_call_context::restrict_to_inner_class,
3397 contains_type_p, decl_maybe_in_construction_p,
3398 ipa_polymorphic_call_context::stream_out,
3399 ipa_polymorphic_call_context::debug,
3400 ipa_polymorphic_call_context::stream_in,
3401 ipa_polymorphic_call_context::set_by_decl,
3402 ipa_polymorphic_call_context::set_by_invariant,
3404 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3405 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
3406 extr_type_from_vtbl_ptr_store, record_known_type
3407 check_stmt_for_type_change,
3408 ipa_polymorphic_call_context::get_dynamic_type): Move to
3409 ipa-polymorphic-call.c
3410 (type_all_derivations_known_p, types_odr_comparable,
3411 types_must_be_same_for_odr): Export.
3412 (type_known_to_have_no_deriavations_p): New function.
3413 * Makefile.in: Add ipa-polymorphic-call.c
3415 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
3417 * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
3419 (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
3420 (possible_polymorphic_call_targets): Instead of computing both
3421 speculative and non-speculative answers, do just one at a time.
3422 Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
3423 (dump_targets): Break out from ...
3424 (dump_possible_polymorphic_call_targets): ... here; dump both speculative
3425 and non-speculative lists.
3426 (ipa_devirt): Update for new possible_polymorphic_call_targets API.
3427 * ipa-utils.h (possible_polymorphic_call_targets): Update.
3429 2014-09-25 Uros Bizjak <ubizjak@gmail.com>
3431 PR rtl-optimization/63348
3432 * emit-rtl.c (try_split): Do not emit extra barrier.
3434 2014-09-25 James Greenhalgh <james.greenhalgh@arm.com>
3436 * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
3437 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
3439 (aarch64_<sur>shll2_n<mode>): Likewise.
3440 (aarch64_<sur>shr_n<mode>): Likewise.
3441 (aarch64_<sur>sra_n<mode>: Likewise.
3442 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
3443 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
3444 * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
3445 * config/aarch64/iterators.md (ve_mode): New.
3446 (offsetlr): Remap to infix text for use in new predicates.
3447 * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
3448 (aarch64_simd_shift_imm_hi): Likewise.
3449 (aarch64_simd_shift_imm_si): Likewise.
3450 (aarch64_simd_shift_imm_di): Likewise.
3451 (aarch64_simd_shift_imm_offset_qi): Likewise.
3452 (aarch64_simd_shift_imm_offset_hi): Likewise.
3453 (aarch64_simd_shift_imm_offset_si): Likewise.
3454 (aarch64_simd_shift_imm_offset_di): Likewise.
3455 (aarch64_simd_shift_imm_bitsize_qi): Likewise.
3456 (aarch64_simd_shift_imm_bitsize_hi): Likewise.
3457 (aarch64_simd_shift_imm_bitsize_si): Likewise.
3458 (aarch64_simd_shift_imm_bitsize_di): Likewise.
3460 2014-09-25 Jiong Wang <jiong.wang@arm.com>
3462 * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
3463 new created BB as the intersection of live-in from "old_dest" and
3466 2014-09-25 Felix Yang <felix.yang@huawei.com>
3468 * lra.c (lra_set_insn_recog_data): Fix typo in comment.
3469 * genautomata.c (merge_states): Ditto.
3471 2014-09-25 Oleg Endo <olegendo@gcc.gnu.org>
3474 * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
3475 in instruction sequence.
3477 2014-09-25 Nick Clifton <nickc@redhat.com>
3480 * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
3481 in instruction sequence.
3483 2014-09-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3486 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
3487 Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
3489 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3490 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3491 Anna Tikhonova <anna.tikhonova@intel.com>
3492 Ilya Tocar <ilya.tocar@intel.com>
3493 Andrey Turetskiy <andrey.turetskiy@intel.com>
3494 Ilya Verbin <ilya.verbin@intel.com>
3495 Kirill Yukhin <kirill.yukhin@intel.com>
3496 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3498 * config/i386/sse.md
3499 (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
3500 (define_expand "<avx2_avx512>_perm<mode>"): ... this.
3501 (define_expand "avx512f_perm<mode>_mask"): Rename to ...
3502 (define_expand "<avx512>_perm<mode>_mask"): ... this.
3503 Use VI8F_256_512 mode iterator.
3504 (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
3505 (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
3507 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3508 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3509 Anna Tikhonova <anna.tikhonova@intel.com>
3510 Ilya Tocar <ilya.tocar@intel.com>
3511 Andrey Turetskiy <andrey.turetskiy@intel.com>
3512 Ilya Verbin <ilya.verbin@intel.com>
3513 Kirill Yukhin <kirill.yukhin@intel.com>
3514 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3516 * config/i386/sse.md
3517 (define_insn "avx_movshdup256<mask_name>"): Add masking.
3518 (define_insn "sse3_movshdup<mask_name>"): Ditto.
3519 (define_insn "avx_movsldup256<mask_name>"): Ditto.
3520 (define_insn "sse3_movsldup<mask_name>"): Ditto.
3521 (define_insn "vec_dupv2df<mask_name>"): Ditto.
3522 (define_insn "*vec_concatv2df"): Add EVEX version.
3524 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3525 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3526 Anna Tikhonova <anna.tikhonova@intel.com>
3527 Ilya Tocar <ilya.tocar@intel.com>
3528 Andrey Turetskiy <andrey.turetskiy@intel.com>
3529 Ilya Verbin <ilya.verbin@intel.com>
3530 Kirill Yukhin <kirill.yukhin@intel.com>
3531 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3533 * config/i386/sse.md
3534 (define_insn "vec_set<mode>_0"): Add EVEX version.
3536 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3537 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3538 Anna Tikhonova <anna.tikhonova@intel.com>
3539 Ilya Tocar <ilya.tocar@intel.com>
3540 Andrey Turetskiy <andrey.turetskiy@intel.com>
3541 Ilya Verbin <ilya.verbin@intel.com>
3542 Kirill Yukhin <kirill.yukhin@intel.com>
3543 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3545 * config/i386/sse.md
3547 "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
3549 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
3550 (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
3551 (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
3552 "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
3553 (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
3554 (define_expand "sse2_cvtpd2ps_mask): New.
3555 (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
3556 (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
3558 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3559 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3560 Anna Tikhonova <anna.tikhonova@intel.com>
3561 Ilya Tocar <ilya.tocar@intel.com>
3562 Andrey Turetskiy <andrey.turetskiy@intel.com>
3563 Ilya Verbin <ilya.verbin@intel.com>
3564 Kirill Yukhin <kirill.yukhin@intel.com>
3565 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3567 * config/i386/i386.c
3568 (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
3569 (ufix_notruncv8dfv8si2_mask_round): ... this.
3570 * config/i386/sse.md
3571 (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
3572 (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
3573 (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
3574 (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
3575 (define_expand "sse2_cvtpd2dq"): Delete.
3576 (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
3577 make 2nd operand const0 vector.
3578 (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
3580 (define_mode_attr pd2udqsuff): New.
3582 "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
3583 (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
3584 (define_insn "*avx_cvttpd2dq256_2"): Delete.
3585 (define_expand "sse2_cvttpd2dq"): Ditto.
3586 (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
3587 make 2nd operand const0 vector.
3589 2014-09-25 Jakub Jelinek <jakub@redhat.com>
3591 PR tree-optimization/63341
3592 * tree-vectorizer.h (vect_create_data_ref_ptr,
3593 vect_create_addr_base_for_vector_ref): Add another tree argument
3594 defaulting to NULL_TREE.
3595 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
3596 argument, pass it down to vect_create_addr_base_for_vector_ref.
3597 (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
3598 add that to base_offset too if non-NULL.
3599 * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
3600 for dr_explicit_realign_optimized set it to vector byte size
3601 - 1 instead of setting offset, pass byte_offset down to
3602 vect_create_data_ref_ptr.
3604 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
3606 * ipa-devirt.c (possible_polymorphic_call_targets): Remove
3607 forgotten debug output; canonicalize querries more wtih LTO.
3609 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
3611 * cgraph.h (class ipa_polymorphic_call_context): Move here from
3612 ipa-utils.h; add stream_int and stream_out methods.
3613 (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
3614 OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
3615 MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
3617 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3618 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3619 ipa_polymorphic_call_context::clear_speculation,
3620 ipa_polymorphic_call_context::clear_outer_type): Move here from
3622 * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
3623 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3624 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3625 ipa_polymorphic_call_context::clear_speculation,
3626 ipa_polymorphic_call_context::clear_outer_type): Likewise.
3627 * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
3629 (ipa_polymorphic_call_context::stream_out): New method.
3630 (ipa_polymorphic_call_context::stream_in): New method.
3631 (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
3632 * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
3634 (ipa_analyze_call_uses): Simplify.
3635 (update_indirect_edges_after_inlining): Do not care about outer_type.
3636 (ipa_write_indirect_edge_info): Update.
3637 (ipa_write_indirect_edge_info): Likewise.
3638 * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
3639 (dump_edge_flags): Break out from ...
3640 (cgraph_node::dump): ... here; dump indirect edges.
3642 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
3644 * ipa-utils.h (polymorphic_call_context): Add
3645 metdhos dump, debug and clear_outer_type.
3646 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
3647 (ipa_polymorphic_call_context::clear_outer_type): New method.
3648 * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
3649 * ipa-devirt.c (types_odr_comparable): New function.
3650 (types_must_be_same_for_odr): New function.
3651 (odr_subtypes_equivalent_p): Simplify.
3652 (possible_placement_new): Break out from ...
3653 (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
3654 be more cuatious about returning false in cases the context may be
3655 valid in derived type or via placement new.
3656 (contains_type_p): Clear maybe_derived_type
3657 (ipa_polymorphic_call_context::dump): New method.
3658 (ipa_polymorphic_call_context::debug): New method.
3659 (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
3660 (ipa_polymorphic_call_context::set_by_invariant): Simplify.
3661 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
3662 (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
3663 to suceed on all valid cases; remove confused sanity check.
3664 (dump_possible_polymorphic_call_targets): Simplify.
3666 2014-09-24 Aldy Hernandez <aldyh@redhat.com>
3668 * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
3669 lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
3670 tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
3671 varpool.c: Rename all instances of DECL_ABSTRACT to
3674 2014-09-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3676 * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
3677 special handling for stores whose SET_SRC is an UNSPEC (such as
3680 2014-09-24 Jiong Wang <jiong.wang@arm.com>
3682 * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
3683 !REG_P (src) to release more instruction sink opportunities.
3685 2014-09-24 Wilco Dijkstra <wilco.dijkstra@arm.com>
3687 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
3688 move costs for 128-bit types.
3690 2014-09-24 Martin Jambor <mjambor@suse.cz>
3692 * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
3693 when duplicating a PASS_THROUGH jump function when creating a
3696 2014-09-24 Marek Polacek <polacek@redhat.com>
3700 * asan.c (maybe_instrument_call): Add default case.
3701 * ipa-pure-const.c (special_builtin_state): Likewise.
3702 * predict.c (expr_expected_value_1): Likewise.
3703 * lto-streamer-out.c (write_symbol): Initialize variable.
3705 2014-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3707 * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
3709 (vmuld_laneq_f64): Likewise.
3710 (vmuls_lane_f32): Likewise.
3711 (vmuls_laneq_f32): Likewise.
3713 2014-09-24 Kirill Yukhin <kirill.yukhin@intel.com>
3716 * varpool.c (varpool_node::add): Pass decl attributes
3717 to lookup_attribute.
3719 2014-09-24 Jakub Jelinek <jakub@redhat.com>
3722 * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
3724 2014-09-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
3726 PR tree-optimization/63266
3727 * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
3728 marker for unknown byte value.
3729 (MARKER_MASK): New macro.
3730 (MARKER_BYTE_UNKNOWN): New macro.
3731 (HEAD_MARKER): New macro.
3732 (do_shift_rotate): Mark bytes with unknown values due to sign
3733 extension when doing an arithmetic right shift. Replace hardcoded
3734 mask for marker by new MARKER_MASK macro.
3735 (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
3736 numbers accordingly.
3738 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3739 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3740 Anna Tikhonova <anna.tikhonova@intel.com>
3741 Ilya Tocar <ilya.tocar@intel.com>
3742 Andrey Turetskiy <andrey.turetskiy@intel.com>
3743 Ilya Verbin <ilya.verbin@intel.com>
3744 Kirill Yukhin <kirill.yukhin@intel.com>
3745 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3747 * config/i386/sse.md
3749 "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
3751 (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
3752 (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
3754 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3755 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3756 Anna Tikhonova <anna.tikhonova@intel.com>
3757 Ilya Tocar <ilya.tocar@intel.com>
3758 Andrey Turetskiy <andrey.turetskiy@intel.com>
3759 Ilya Verbin <ilya.verbin@intel.com>
3760 Kirill Yukhin <kirill.yukhin@intel.com>
3761 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3763 * config/i386/sse.md
3764 (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
3765 (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
3766 (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
3767 (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
3768 (define_expand "avx512vl_pshuflw_mask"): New.
3769 (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
3770 (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
3771 (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
3772 (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
3773 (define_expand "avx512vl_pshufhw_mask"): New.
3774 (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
3776 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3777 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3778 Anna Tikhonova <anna.tikhonova@intel.com>
3779 Ilya Tocar <ilya.tocar@intel.com>
3780 Andrey Turetskiy <andrey.turetskiy@intel.com>
3781 Ilya Verbin <ilya.verbin@intel.com>
3782 Kirill Yukhin <kirill.yukhin@intel.com>
3783 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3785 * config/i386/i386.c
3786 (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
3787 CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
3788 CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
3789 CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
3790 CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
3791 * config/i386/sse.md
3792 (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
3794 "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
3795 (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
3797 "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
3798 (define_expand "avx512vl_pshufdv3_mask"): Ditto.
3799 (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
3800 (define_expand "avx512vl_pshufd_mask"): New.
3801 (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
3803 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3804 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3805 Anna Tikhonova <anna.tikhonova@intel.com>
3806 Ilya Tocar <ilya.tocar@intel.com>
3807 Andrey Turetskiy <andrey.turetskiy@intel.com>
3808 Ilya Verbin <ilya.verbin@intel.com>
3809 Kirill Yukhin <kirill.yukhin@intel.com>
3810 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3812 * config/i386/i386.c
3813 (CODE_FOR_avx2_extracti128): Rename to ...
3814 (CODE_FOR_avx_vextractf128v4di): this.
3815 (CODE_FOR_avx2_inserti128): Rename to ...
3816 (CODE_FOR_avx_vinsertf128v4di): this.
3817 (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
3818 CODE_FOR_avx_vextractf128v4di.
3819 (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
3820 CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
3821 CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
3822 CODE_FOR_avx512vl_vinsertv8si.
3823 * config/i386/sse.md
3825 "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
3826 AVX512_VEC mode iterator.
3828 "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
3831 "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
3832 AVX512_VEC_2 mode iterator.
3833 (define_insn "vec_set_lo_<mode><mask_name>"): New.
3834 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
3835 (define_expand "avx512vl_vinsert<mode>"): Ditto.
3836 (define_insn "avx2_vec_set_lo_v4di"): Delete.
3837 (define_insn "avx2_vec_set_hi_v4di"): Ditto.
3838 (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
3839 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
3840 (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
3841 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
3842 (define_expand "avx2_extracti128"): Delete.
3843 (define_expand "avx2_inserti128"): Ditto.
3845 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3846 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3847 Anna Tikhonova <anna.tikhonova@intel.com>
3848 Ilya Tocar <ilya.tocar@intel.com>
3849 Andrey Turetskiy <andrey.turetskiy@intel.com>
3850 Ilya Verbin <ilya.verbin@intel.com>
3851 Kirill Yukhin <kirill.yukhin@intel.com>
3852 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3854 * config/i386/sse.md
3855 (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
3856 (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
3857 (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
3858 (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
3859 (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
3860 (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
3861 (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
3862 (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
3863 (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
3864 (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
3865 (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
3866 (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
3867 (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
3869 2014-09-24 Zhenqiang Chen <zhenqiang.chen@arm.com>
3871 PR rtl-optimization/63210
3872 * ira-color.c (assign_hard_reg): Ignore conflict cost if the
3873 HARD_REGNO is not available for CONFLICT_A.
3875 2014-09-23 Andi Kleen <ak@linux.intel.com>
3877 * cgraph.h (symtab_node): Add no_reorder attribute.
3878 (symbol_table::output_asm_statements): Remove.
3879 * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
3880 (cgraph_node::create_version_clone): Dito.
3881 (symbol_table::output_asm_statements): Remove.
3882 * trans-mem.c (ipa_tm_create_version_alias): Dito.
3883 * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
3884 (output_in_order): Add no_reorder flag. Only handle no_reorder
3886 (symbol_table::compile): Add separate pass for no_reorder nodes.
3887 (process_common_attributes): Set no_reorder flag in symtab node.
3889 (process_function_and_variable_attributes): Pass symtab nodes to
3890 process_common_attributes.
3891 * doc/extend.texi (no_reorder): Document no_reorder attribute.
3892 * lto-cgraph.c (lto_output_node): Serialize no_reorder.
3893 (lto_output_varpool_node): Dito.
3894 (input_overwrite_node): Dito.
3895 (input_varpool_node): Dito.
3896 * varpool.c (varpool_node::add): Set no_reorder attribute.
3897 (symbol_table::remove_unreferenced_decls): Handle no_reorder.
3898 (symbol_table::output_variables): Dito.
3899 * symtab.c (symtab_node::dump_base): Print no_reorder.
3901 2014-09-23 Jiong Wang <jiong.wang@arm.com>
3903 * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
3906 2014-09-23 Thomas Schwinge <thomas@codesourcery.com>
3908 * configure: Regenerate.
3910 2014-09-23 Alan Lawrence <alan.lawrence@arm.com>
3912 * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
3913 when result_mode == shift_mode.
3915 2014-09-23 Kostya Serebryany <kcc@google.com>
3917 Update to match the changed asan API.
3918 * asan.c (asan_global_struct): Update the __asan_global definition
3919 to match the new API.
3920 (asan_add_global): Ditto.
3921 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
3924 2014-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
3926 * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
3927 refine the constraints used on 32/64-bit floating point moves.
3929 (f64_vsx): Likewise.
3932 (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
3933 (BOOL_REGS_OP1): Likewise.
3934 (BOOL_REGS_OP2): Likewise.
3935 (BOOL_REGS_UNARY): Likewise.
3936 (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
3937 32/64-bit floating point moves. Do not use wa, instead use ww/ws
3938 for moves involving VSX registers. Do not use constraints that
3939 target VSX registers for decimal types.
3940 (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
3941 (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
3943 2014-09-23 Jan Hubicka <hubicka@ucw.cz>
3945 * tree.h (int_bit_position): Turn into inline function;
3946 implement using wide int.
3947 * tree.c (int_bit_position): Remove.
3949 2014-09-23 Richard Sandiford <richard.sandiford@arm.com>
3952 * target-globals.c (target_globals::~target_globals): Fix location
3953 of ira_int destruction.
3955 2014-09-23 Renlin Li <renlin.li@arm.com>
3957 * config/aarch64/aarch64.md (return): New.
3958 (simple_return): Likewise.
3959 * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
3960 * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
3962 2014-09-23 Wilco Dijkstra <wdijkstr@arm.com>
3964 * common/config/aarch64/aarch64-common.c:
3965 (default_options aarch_option_optimization_table):
3966 Default to -fsched-pressure.
3968 2014-09-23 Ilya Enkovich <ilya.enkovich@intel.com>
3970 * cfgcleanup.c (try_optimize_cfg): Do not remove label
3971 with LABEL_PRESERVE_P flag set.
3973 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
3974 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3975 Anna Tikhonova <anna.tikhonova@intel.com>
3976 Ilya Tocar <ilya.tocar@intel.com>
3977 Andrey Turetskiy <andrey.turetskiy@intel.com>
3978 Ilya Verbin <ilya.verbin@intel.com>
3979 Kirill Yukhin <kirill.yukhin@intel.com>
3980 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3982 * config/i386/sse.md
3983 (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
3984 (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
3985 (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
3986 (define_insn "sse2_shufpd_v2df_mask"): New.
3988 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
3989 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3990 Anna Tikhonova <anna.tikhonova@intel.com>
3991 Ilya Tocar <ilya.tocar@intel.com>
3992 Andrey Turetskiy <andrey.turetskiy@intel.com>
3993 Ilya Verbin <ilya.verbin@intel.com>
3994 Kirill Yukhin <kirill.yukhin@intel.com>
3995 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3997 * config/i386/sse.md
3998 (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
3999 (define_insn "avx_shufps256_1<mask_name>"): Ditto.
4000 (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
4001 (define_insn "sse_shufps_v4sf_mask"): New.
4003 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
4004 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4005 Anna Tikhonova <anna.tikhonova@intel.com>
4006 Ilya Tocar <ilya.tocar@intel.com>
4007 Andrey Turetskiy <andrey.turetskiy@intel.com>
4008 Ilya Verbin <ilya.verbin@intel.com>
4009 Kirill Yukhin <kirill.yukhin@intel.com>
4010 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4012 * config/i386/sse.md
4013 (define_insn "avx_unpckhps256<mask_name>"): Add masking.
4014 (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
4015 (define_insn "avx_unpcklps256<mask_name>"): Ditto.
4016 (define_insn "unpcklps128_mask"): New.
4018 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
4019 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4020 Anna Tikhonova <anna.tikhonova@intel.com>
4021 Ilya Tocar <ilya.tocar@intel.com>
4022 Andrey Turetskiy <andrey.turetskiy@intel.com>
4023 Ilya Verbin <ilya.verbin@intel.com>
4024 Kirill Yukhin <kirill.yukhin@intel.com>
4025 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4027 * config/i386/sse.md
4028 (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
4029 (define_insn "avx512vl_unpckhpd128_mask"): New.
4030 (define_expand "avx_movddup256<mask_name>"): Add masking.
4031 (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
4032 (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
4033 (define_insn "avx512vl_unpcklpd128_mask"): New.
4035 2014-09-22 Joseph Myers <joseph@codesourcery.com>
4037 * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4038 * doc/tm.texi: Regenerate.
4039 * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
4040 * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4041 * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
4043 * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4044 * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4045 * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4046 * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4047 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
4049 * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4050 * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4051 * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4052 * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4053 * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4054 * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4055 * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4056 * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4057 * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4058 * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4059 * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
4062 2014-09-22 Jan Hubicka <hubicka@ucw.cz>
4064 * tree-ssa-ccp.c (prop_value_d): Rename to ...
4065 (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
4066 * ipa-prop.c (struct type_change_info): Rename to ...
4067 (prop_type_change_info): ... this; update uses.
4068 * ggc-page.c (globals): Rename to ...
4069 (static struct ggc_globals): ... this; update uses.
4070 * tree-ssa-loop-im.c (mem_ref): Rename to ...
4071 (im_mem_ref): ... this; update uses.
4072 * ggc-common.c (loc_descriptor): Rename to ...
4073 (ggc_loc_descriptor): ... this; update uses.
4074 * lra-eliminations.c (elim_table): Rename to ...
4075 (lra_elim_table): ... this; update uses.
4076 * bitmap.c (output_info): Rename to ...
4077 (bitmap_output_info): ... this; update uses.
4078 * gcse.c (expr): Rename to ...
4079 (gcse_expr) ... this; update uses.
4080 (occr): Rename to ...
4081 (gcse_occr): .. this; update uses.
4082 * tree-ssa-copy.c (prop_value_d): Rename to ...
4083 (prop_value_t): ... this.
4084 * predict.c (block_info_def): Rename to ...
4085 (block_info): ... this; update uses.
4086 (edge_info_def): Rename to ...
4087 (edge_info): ... this; update uses.
4088 * profile.c (bb_info): Rename to ...
4089 (bb_profile_info): ... this; update uses.
4090 * alloc-pool.c (output_info): Rename to ...
4091 (pool_output_info): ... this; update uses.
4092 * ipa-cp.c (topo_info): Rename to ..
4093 (ipa_topo_info): ... this; update uses.
4094 * tree-nrv.c (nrv_data): Rename to ...
4095 (nrv_data_t): ... this; update uses.
4096 * ipa-split.c (bb_info): Rename to ...
4097 (split_bb_info): ... this one.
4098 * profile.h (edge_info): Rename to ...
4099 (edge_profile_info): ... this one; update uses.
4100 * dse.c (bb_info): Rename to ...
4101 (dse_bb_info): ... this one; update uses.
4102 * cprop.c (occr): Rename to ...
4103 (cprop_occr): ... this one; update uses.
4104 (expr): Rename to ...
4105 (cprop_expr): ... this one; update uses.
4107 2014-09-22 Jason Merrill <jason@redhat.com>
4109 * Makefile.in (check-parallel-%): Add @.
4111 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
4113 * config/aarch64/geniterators.sh: New.
4114 * config/aarch64/iterators.md (VDQF_DF): New.
4115 * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
4116 * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
4118 2014-09-22 Peter A. Bigot <pab@pabigot.com>
4120 * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
4121 -lnosys when -msim absent.
4123 2014-09-22 Alan Lawrence <alan.lawrence@arm.com>
4125 * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
4127 2014-09-22 Richard Biener <rguenther@suse.de>
4129 * gimplify.c (gimplify_init_constructor): Do not leave
4130 non-GIMPLE vector constructors around.
4131 * tree-cfg.c (verify_gimple_assign_single): Verify that
4132 CONSTRUCTORs have gimple elements.
4134 2014-09-22 Jakub Jelinek <jakub@redhat.com>
4137 * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
4138 insert a debug source bind stmt setting DEBUG_EXPR_DECL
4139 instead of a normal gimple assignment stmt.
4141 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
4143 * config/bfin/bfin.md: Fix use of constraints in define_split.
4145 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
4147 * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
4148 GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
4150 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
4152 * hard-reg-set.h: Include hash-table.h.
4153 (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
4155 * target-globals.c (target_globals::~target_globals): Call
4156 hard_regs->finalize.
4157 * rtl.h (subreg_shape): New structure.
4158 (shape_of_subreg): New function.
4159 (simplifiable_subregs): Declare.
4160 * reginfo.c (simplifiable_subreg): New structure.
4161 (simplifiable_subregs_hasher): Likewise.
4162 (simplifiable_subregs): New function.
4163 (invalid_mode_changes): Delete.
4164 (alid_mode_changes, valid_mode_changes_obstack): New variables.
4165 (record_subregs_of_mode): Remove subregs_of_mode parameter.
4166 Record valid mode changes in valid_mode_changes.
4167 (find_subregs_of_mode): Remove subregs_of_mode parameter.
4168 Update calls to record_subregs_of_mode.
4169 (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
4170 handling. Initialize new variables. Update call to
4171 find_subregs_of_mode.
4172 (invalid_mode_change_p): Check new variables instead of
4173 invalid_mode_changes.
4174 (finish_subregs_of_mode): Finalize new variables instead of
4175 invalid_mode_changes.
4176 (target_hard_regs::finalize): New function.
4177 * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
4178 even when CLASS_CANNOT_CHANGE_MODE is undefined.
4180 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
4182 * combine.c (subst): Use simplify_subreg_regno rather than
4183 REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
4185 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
4187 * rtl.h (subreg_info): Expand commentary
4188 * rtlanal.c (subreg_get_info): Likewise.
4190 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
4192 * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
4193 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
4194 (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
4196 2014-09-22 Zhenqiang Chen <zhenqiang.chen@arm.com>
4198 * config/arm/arm.c: #include "tm-constrs.h"
4199 (thumb1_size_rtx_costs): Adjust rtx costs.
4201 2014-09-22 Hans-Peter Nilsson <hp@axis.com>
4203 * configure.ac (target_header_dir): Move block defining
4204 this to before the block setting inhibit_libc.
4205 (inhibit_libc): When considering $with_headers, just
4206 check it it's explicitly "no". If not, also check if
4207 $target_header_dir/stdio.h is present. If not, set
4209 * configure: Regenerate.
4211 2014-09-21 Patrick Oppenlander <pattyo.lists@gmail.com>
4213 * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
4215 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4217 * config/rs6000/rs6000.md (div<mode>3): Fix comment. Use a different
4218 insn for divides by integer powers of two.
4219 (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
4220 (mod<mode>3): Fix formatting.
4221 (three anonymous define_insn and two define_split): Delete.
4223 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4225 * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
4226 *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
4227 (floatdisf2_internal2): Ditto.
4228 (ashrdi3_no_power): Ditto. Fix formatting.
4230 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4232 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
4233 popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
4236 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4238 * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
4239 constant, use addsi3 directly.
4240 (three anonymous define_insn, two define_split): Delete.
4241 (sub<mode>3): Move. Do not allow constant second operand.
4242 Generate different insn for constant first operand.
4243 (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
4244 (subf<mode>3_imm): New.
4245 (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
4246 (*plus_ltu<mode>): Only handle registers.
4247 (*plus_ltu<mode>_1): New. Handle integer third operand.
4248 (*plus_gtu<mode>): Only handle registers.
4249 (*plus_gtu<mode>_1): New. Handle integer third operand.
4251 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4253 * config/rs6000/rs6000.md (iorxor): New code_iterator.
4254 (iorxor): New code_attr.
4255 (IORXOR): New code_attr.
4256 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
4257 (ior<mode>3, xor<mode>3): Delete.
4258 (<iorxor><mode>3): New.
4259 (splitter for "big" integer ior, xor): New.
4260 (*bool<mode>3): Move. Also handle AND.
4261 (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
4262 (splitter for "big" integer ior, xor): Delete.
4264 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4266 * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
4267 (two anonymous define_insn and two define_split): Delete.
4268 (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
4270 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4272 * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
4273 (two anonymous define_insn and two define_split): Delete.
4274 (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
4276 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4278 * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
4280 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4282 * config/rs6000/predicates.md (ca_operand): Allow subregs.
4283 (input_operand): Do not allow ca_operand.
4284 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
4285 carry bit, allow SImode and Pmode.
4286 (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
4288 2014-09-21 Uros Bizjak <ubizjak@gmail.com>
4290 * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
4291 clobbered registers using clobber_reg. Remove UNSPEC decoration.
4292 * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
4293 (*call_rex64_ms_sysv): Remove.
4294 (*call_value_rex64_ms_sysv): Ditto.
4295 * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
4297 2014-09-20 Joern Rennecke <joern.rennecke@embecosm.com>
4299 * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
4302 2014-09-20 Andreas Schwab <schwab@suse.de>
4304 * config/ia64/ia64.md: Remove constraints from define_split
4307 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4309 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
4310 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
4311 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
4312 (get_dynamic_type): Remove.
4313 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
4314 (clear_speculation): Bring to ipa-deivrt.h
4315 (get_class_context): Rename to ...
4316 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
4317 (contains_type_p): Update.
4318 (get_dynamic_type): Rename to ...
4319 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
4320 (possible_polymorphic_call_targets): UPdate.
4321 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
4322 * ipa-prop.c (ipa_analyze_call_uses): Update.
4324 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4326 * ipa-visibility.c (varpool_node::externally_visible_p): Do not
4327 privatize dynamic TLS variables.
4329 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4331 * diagnostic.c (warning_n): New function.
4332 * diagnostic-core.h (warning_n): Declare.
4333 * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
4334 output dynamic counts when available.
4336 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4338 PR tree-optimization/63255
4339 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
4340 issue in setting body_removed flag.
4342 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4345 * c-family/c-common.c (handle_alias_ifunc_attribute): Check
4346 that visibility change is possible
4347 (handle_weakref_attribute): Likewise.
4348 * cgraph.h (symtab_node): Add method get_create and
4349 field refuse_visibility_changes.
4350 (symtab_node::get_create): New method.
4351 * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
4352 * varasm.c (mark_weak): Verify that visibility change is
4355 2014-09-19 Michael Meissner <meissner@linux.vnet.ibm.com>
4357 * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
4358 for base_reg_operand to be common between LO_SUM and PLUS.
4359 (fusion_gpr_mem_combo): New predicate to match a fused address
4360 that combines the addis and memory offset address.
4362 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
4364 (emit_fusion_gpr_load): Likewise.
4366 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
4367 signature to pass each argument separately, rather than
4368 using an operands array. Rewrite the insns found by peephole2 to
4369 be a single insn, rather than hoping the insns will still be
4370 together when the peephole pass is done. Drop being called via a
4372 (emit_fusion_gpr_load): Change calling signature to be called from
4373 the fusion_gpr_load_<mode> insns with a combined memory address
4374 instead of the peephole pass passing the addis and offset
4377 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
4379 (power8 fusion peephole): Drop support for doing power8 via a
4380 normal peephole that was created by the peephole2 pass.
4381 (power8 fusion peephole2): Create a new insn with the fused
4382 address, so that the fused operation is kept together after
4383 register allocation is done.
4384 (fusion_gpr_load_<mode>): Likewise.
4386 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4389 * tree.c (need_assembler_name_p): Do not mangle variadic types.
4391 2014-09-19 Segher Boessenkool <segher@kernel.crashing.org>
4393 * recog.c (scratch_operand): Do not simply allow all hard registers:
4394 only allow those that are allocatable.
4396 2014-09-19 Felix Yang <felix.yang@huawei.com>
4398 * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
4399 comments and fix spacing to conform to coding style.
4401 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
4403 * genrecog.c (validate_pattern): Allow empty constraints in
4406 2014-09-19 Aldy Hernandez <aldyh@redhat.com>
4408 * dwarf2out.c (decl_ultimate_origin): Update comment.
4409 * tree.c (block_ultimate_origin): Same.
4411 2014-09-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4413 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
4414 Update GCC version name to GCC 5.
4415 (rs6000_function_arg_boundary): Likewise.
4416 (rs6000_function_arg): Likewise.
4418 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
4420 * config/sh/sh.md: Fix use of constraints in define_split.
4422 2014-09-19 Markus Trippelsdorf <markus@trippelsdorf.de>
4425 * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
4427 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
4429 * doc/md.texi (Modifiers): Consistently use "read/write"
4430 nomenclature rather than "input/output".
4431 * genrecog.c (constraints_supported_in_insn_p): New.
4432 (validate_pattern): If needed, also check constraints on
4433 MATCH_SCRATCH operands.
4434 * genoutput.c (validate_insn_alternatives): Catch earlyclobber
4435 operands with no '=' or '+' modifier.
4437 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
4439 * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
4440 scratch register as written.
4442 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4444 * config/s390/s390.c (s390_emit_epilogue): Remove bogus
4447 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4449 * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
4452 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4455 * config/s390/s390.c (s390_emit_epilogue): When doing the return
4456 address load optimization force s390_optimize_prologue to leave it
4457 that way. Only do the optimization if we already decided to push
4458 r14 into a stack slot.
4460 2014-09-19 Marat Zakirov <m.zakirov@samsung.com>
4462 * asan.c (build_check_stmt): Alignment arg was added.
4463 (asan_expand_check_ifn): Optimization for alignment >= 8.
4465 2014-09-19 Olivier Hainque <hainque@adacore.com>
4467 * config/i386/vxworksae.h: Remove obsolete definitions.
4468 (STACK_CHECK_PROTECT): Define.
4469 * config/i386/vx-common.h: Remove. Merge contents within
4470 config/i386/vxworks.h.
4471 * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
4474 2014-09-19 Olivier Hainque <hainque@adacore.com>
4476 * config.gcc (powerpc-wrs-vxworksmils): New configuration.
4477 * config/rs6000/t-vxworksmils: New file.
4478 * config/rs6000/vxworksmils.h: New file.
4480 2014-09-19 Olivier Hainque <hainque@adacore.com>
4482 * varasm.c (default_section_type_flags): Flag .persistent.bss
4483 sections as SECTION_BSS.
4485 2014-09-19 Nick Clifton <nickc@redhat.com>
4487 * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
4488 pop'ed registers so that DCE does not eliminate them.
4490 2014-09-18 Jan Hubicka <hubicka@ucw.cz>
4493 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
4495 2014-09-18 Joseph Myers <joseph@codesourcery.com>
4497 * system.h (LIBGCC2_TF_CEXT): Poison.
4498 * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
4499 * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
4500 * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
4501 * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
4502 * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
4503 * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
4504 * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
4505 * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
4506 * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
4508 2014-09-19 Kito Cheng <kito@0xlab.org>
4510 * except.h: Fix header guard.
4511 * addresses.h: Add missing header guard.
4512 * cfghooks.h: Likewise.
4513 * collect-utils.h: Likewise.
4514 * collect2-aix.h: Likewise.
4515 * conditions.h: Likewise.
4516 * cselib.h: Likewise.
4517 * dwarf2asm.h: Likewise.
4518 * graphds.h: Likewise.
4519 * graphite-scop-detection.h: Likewise.
4520 * gsyms.h: Likewise.
4521 * hw-doloop.h: Likewise.
4522 * incpath.h: Likewise.
4523 * ipa-inline.h: Likewise.
4524 * ipa-ref.h: Likewise.
4525 * ira-int.h: Likewise.
4527 * lra-int.h: Likewise.
4529 * lto-section-names.h: Likewise.
4530 * read-md.h: Likewise.
4531 * reload.h: Likewise.
4532 * rtl-error.h: Likewise.
4533 * sdbout.h: Likewise.
4534 * targhooks.h: Likewise.
4535 * tree-affine.h: Likewise.
4536 * xcoff.h: Likewise.
4537 * xcoffout.h: Likewise.
4539 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
4542 * haifa-sched.c (schedule_block): Advance cycle at the end of BB
4545 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
4548 * lra.c (lra): Call recog_init.
4550 2014-09-18 Jakub Jelinek <jakub@redhat.com>
4553 * asan.c (transform_statements): Don't instrument clobber statements.
4555 2014-09-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4557 * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
4558 to neon_load1_1reg<q>.
4560 2014-09-17 Jakub Jelinek <jakub@redhat.com>
4563 * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
4564 if there are only debug stmts after the noreturn call, instead
4565 remove the debug stmts.
4567 2014-09-17 Jan Hubicka <hubicka@ucw.cz>
4569 * ipa-devirt.c (type_pair, default_hashset_traits): New types.
4570 (odr_types_equivalent_p): Use pair hash.
4571 (odr_subtypes_equivalent_p): Likewise, do structural compare
4572 on ODR types that may be mismatched.
4573 (warn_odr): Support warning when only one field is given.
4574 (odr_types_equivalent_p): Strenghten comparsions made;
4576 (add_type_duplicate): Update VISITED hash set.
4578 2014-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
4580 * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
4581 Enable selection of 'posix' or no thread model.
4583 2014-09-17 Andrew Stubbs <ams@codesourcery.com>
4585 * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
4586 when architecture is older than ARMv7.
4588 2014-09-16 John David Anglin <danglin@gcc.gnu.org>
4591 * config/pa/pa.c (pa_function_value): Directly handle aggregates
4592 that fit exactly in a word or double word.
4594 2014-09-16 Ilya Tocar <ilya.tocar@intel.com>
4596 * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
4599 2014-09-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
4600 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4601 Anna Tikhonova <anna.tikhonova@intel.com>
4602 Ilya Tocar <ilya.tocar@intel.com>
4603 Andrey Turetskiy <andrey.turetskiy@intel.com>
4604 Ilya Verbin <ilya.verbin@intel.com>
4605 Kirill Yukhin <kirill.yukhin@intel.com>
4606 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4608 * config/i386/i386.c
4609 (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
4610 * config/i386/sse.md
4611 (define_mode_iterator VI48F_256): New.
4612 (define_mode_attr extract_type): Ditto.
4613 (define_mode_attr extract_suf): Ditto.
4614 (define_mode_iterator AVX512_VEC): Ditto.
4616 "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
4618 (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
4620 "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
4622 (define_mode_attr extract_type_2): Ditto.
4623 (define_mode_attr extract_suf_2): Ditto.
4624 (define_mode_iterator AVX512_VEC_2): Ditto.
4626 "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
4627 AVX512_VEC_2 mode iterator.
4628 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
4629 (define_expand "avx512vl_vextractf128<mode>"): Ditto.
4630 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
4631 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
4632 (define_split for V16FI mode): Ditto.
4633 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
4634 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
4635 (define_split for VI8F_256 mode): Ditto.
4636 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
4637 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
4638 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
4639 (define_split for VI4F_256 mode): Ditto.
4640 (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
4641 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
4642 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
4643 (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
4644 (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
4645 (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
4646 (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
4647 Update `type' attribute, remove explicit `memory' attribute calculation.
4649 2014-09-16 Kito Cheng <kito@0xlab.org>
4651 * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
4652 ira_spilled_reg_stack_slots_num if using lra.
4653 (do_reload): Remove release ira_spilled_reg_stack_slots part.
4654 * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
4655 make sure not using lra.
4656 (ira_reuse_stack_slot): Likewise.
4657 (ira_mark_new_stack_slot): Likewise.
4659 2014-09-15 Andi Kleen <ak@linux.intel.com>
4661 * function.c (allocate_struct_function): Force
4662 DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
4663 profiling is disabled.
4665 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
4667 * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
4668 config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
4669 emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
4670 reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
4671 macro with statically checked member functions.
4672 * rtl.h (rtx_insn::deleted): New method.
4673 (rtx_insn::set_deleted): Likewise.
4674 (rtx_insn::set_undeleted): Likewise.
4675 (INSN_DELETED_P): Remove.
4677 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
4679 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
4680 result of emit_jump_insn_before to a new variable.
4681 * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
4682 (mark_jump_label_1): Likewise.
4683 (mark_jump_label_asm): Likewise.
4684 * reload1.c (gen_reload): Change type of tem to rtx_insn *.
4685 * rtl.h (mark_jump_label): Adjust.
4687 2014-09-15 Jakub Jelinek <jakub@redhat.com>
4689 * Makefile.in (dg_target_exps): Remove.
4690 (check_gcc_parallelize): Change to just an upper bound number.
4691 (check-%-subtargets): Always print the non-parallelized goals.
4692 (check_p_vars, check_p_comma, check_p_subwork): Remove.
4693 (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
4694 check_p_numbers3, check_p_numbers4, check_p_numbers5,
4695 check_p_numbers6): New variables.
4696 (check_p_numbers): Set to sequence from 1 to 9999.
4697 (check_p_subdirs): Set to sequence from 1 to minimum of
4698 $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
4700 (check-%, check-parallel-%): Rewritten so that for parallelized
4701 testing each job runs all the *.exp files, with
4702 GCC_RUNTEST_PARALLELIZE_DIR set in environment.
4704 2014-09-15 David Malcolm <dmalcolm@redhat.com>
4706 * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
4708 (arc_sets_cc_p): Likewise.
4709 * config/arc/arc.c (arc_print_operand): Use methods of
4710 "final_sequence" for clarity, and to enable strengthening of
4711 locals "jump" and "delay" from rtx to rtx_insn *.
4712 (arc_adjust_insn_length): Strengthen local "prev" from rtx to
4713 rtx_insn *; use method of rtx_sequence for typesafety.
4714 (arc_get_insn_variants): Use insn method of rtx_sequence for
4716 (arc_pad_return): Likewise.
4717 (arc_attr_type): Strengthen param from rtx to rtx_insn *.
4718 (arc_sets_cc_p): Likewise. Also, convert a GET_CODE check to a
4719 dyn_cast to rtx_sequence *, using insn method for typesafety.
4720 * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
4721 rtx_sequence * and use insn method when invoking get_attr_length.
4722 * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
4723 to rtx_insn *. Replace a GET_CODE check with a dyn_cast to
4724 rtx_sequence *, introducing a local "seq", using its insn method
4725 from typesafety and clarity.
4726 (add_sched_insns_for_speculation): Strengthen local "next" from
4728 * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
4729 (predicate_insn): Likewise.
4730 * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
4732 * config/cris/cris.c (cris_notice_update_cc): Likewise.
4733 * config/epiphany/epiphany-protos.h
4734 (extern void epiphany_insert_mode_switch_use): Likewise for param
4736 (get_attr_sched_use_fpu): Likewise for param.
4737 * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
4738 Likewise for param "insn".
4739 * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
4740 param "insn" of "target_insert_mode_switch_use" callback.
4741 * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
4742 (frv_issues_to_branch_unit_p): Likewise.
4743 (frv_pack_insn_p): Likewise.
4744 (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
4745 const rtx * (i.e. mutable rtx_def * const *) to
4747 * config/i386/i386-protos.h (standard_sse_constant_opcode):
4748 Strengthen first param from rtx to rtx_insn *.
4749 (output_fix_trunc): Likewise.
4750 * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
4751 (output_fix_trunc): Likewise.
4752 (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
4754 (min_insn_size): Likewise for param "insn".
4755 (get_mem_group): Likewise.
4757 (get_insn_path): Likewise.
4758 (get_insn_group): Likewise.
4759 (count_num_restricted): Likewise.
4760 (fits_dispatch_window): Likewise.
4761 (add_insn_window): Likewise.
4762 (add_to_dispatch_window): Likewise.
4763 (debug_insn_dispatch_info_file): Likewise.
4764 * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
4766 * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
4767 "cmp" and local "prev".
4768 (m32c_output_compare): Likewise for param "insn".
4769 * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
4770 a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
4771 (define_predicate "large_insn_p"): Likewise.
4772 * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
4773 param from rtx to rtx_insn *.
4774 (attr_op_mem m68k_sched_attr_op_mem): Likewise.
4775 * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
4776 (m68k_sched_attr_size): Likewise.
4777 (sched_get_opxy_mem_type): Likewise for param "insn".
4778 (m68k_sched_attr_op_mem): Likewise.
4779 (sched_mem_operand_p): Likewise.
4780 * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
4781 * config/mep/mep.c (mep_multi_slot): Likewise.
4782 * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
4784 (mips_sync_loop_insns): Likewise.
4785 * config/mips/mips.c (mips_print_operand_punctuation): Use insn
4786 method of "final_sequence" for typesafety.
4787 (mips_process_sync_loop): Strengthen param "insn" from rtx to
4789 (mips_output_sync_loop): Likewise.
4790 (mips_sync_loop_insns): Likewise.
4791 (mips_74k_agen_init): Likewise.
4792 (mips_sched_init): Use NULL rather than NULL_RTX when working with
4794 * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
4795 Strengthen param "insn" from rtx to rtx_insn *.
4796 * config/nds32/nds32.c (nds32_target_alignment): Likewise for
4798 * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
4800 * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
4801 "insn". Use method of rtx_sequence for typesafety.
4802 (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
4804 (branch_needs_nop_p): Likewise.
4805 (use_skip_p): Likewise.
4806 (pa_insn_refs_are_delayed): Likewise.
4807 * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
4808 for locals "insn", "ninsn".
4809 * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
4811 (is_cracked_insn): Likewise.
4812 (is_branch_slot_insn): Likewise.
4813 (is_nonpipeline_insn): Likewise.
4814 (insn_terminates_group_p): Likewise.
4815 (insn_must_be_first_in_group): Likewise.
4816 (insn_must_be_last_in_group): Likewise.
4817 (force_new_group): Likewise for param "next_insn".
4818 * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
4820 (s390_sched_score): Likewise.
4821 * config/sh/sh-protos.h (output_branch): Likewise for param 2.
4822 (rtx sfunc_uses_reg): Likewise for sole param.
4823 * config/sh/sh.c (sh_print_operand): Use insn method of
4824 final_sequence for typesafety.
4825 (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
4826 Use insn method of final_sequence for typesafety.
4827 (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
4828 * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
4830 (eligible_for_return_delay): Likewise.
4831 (eligible_for_sibcall_delay): Likewise.
4832 * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
4833 (eligible_for_return_delay): Likewise.
4834 (eligible_for_sibcall_delay): Likewise.
4835 * config/stormy16/stormy16-protos.h
4836 (xstormy16_output_cbranch_hi): Likewise for final param.
4837 (xstormy16_output_cbranch_si): Likewise.
4838 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
4839 (xstormy16_output_cbranch_si): Likewise.
4840 * config/v850/v850-protos.h (notice_update_cc): Likewise.
4841 * config/v850/v850.c (notice_update_cc): Likewise.
4843 * final.c (get_attr_length_1): Strengthen param "insn" and param
4844 of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
4845 (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
4846 (get_attr_min_length): Likewise.
4847 (shorten_branches): Likewise for signature of locals "length_fun"
4848 and "inner_length_fun". Introduce local rtx_sequence * "seqn"
4849 from a checked cast and use its methods for clarity and to enable
4850 strengthening local "inner_insn" from rtx to rtx_insn *.
4851 * genattr.c (gen_attr): When writing out the prototypes of the
4852 various generated "get_attr_" functions, strengthen the params of
4853 the non-const functions from rtx to rtx_insn *.
4854 Similarly, strengthen the params of insn_default_length,
4855 insn_min_length, insn_variable_length_p, insn_current_length.
4856 (main): Similarly, strengthen the param of num_delay_slots,
4857 internal_dfa_insn_code, insn_default_latency, bypass_p,
4858 insn_latency, min_issue_delay, print_reservation,
4859 insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
4860 "insn_default_latency" callbacks. Rename hook_int_rtx_unreachable
4861 to hook_int_rtx_insn_unreachable.
4862 * genattrtab.c (write_attr_get): When writing out the generated
4863 "get_attr_" functions, strengthen the param "insn" from rtx to
4864 rtx_insn *, eliminating a checked cast.
4865 (make_automaton_attrs): When writing out prototypes of
4866 "internal_dfa_insn_code_", "insn_default_latency_" functions
4867 and the "internal_dfa_insn_code" and "insn_default_latency"
4868 callbacks, strengthen their params from rtx to rtx_insn *
4869 * genautomata.c (output_internal_insn_code_evaluation): When
4870 writing out code, add a checked cast from rtx to rtx_insn * when
4871 invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
4872 (output_dfa_insn_code_func): Strengthen param of generated
4873 function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
4874 (output_trans_func): Likewise for generated function
4876 (output_internal_insn_latency_func): When writing out generated
4877 function "internal_insn_latency", rename params from "insn" and
4878 "insn2" to "insn_or_const0" and "insn2_or_const0". Reintroduce
4879 locals "insn" and "insn2" as rtx_insn * with checked casts once
4880 we've proven that we're not dealing with const0_rtx.
4881 (output_insn_latency_func): Strengthen param of generated
4882 function "insn_latency" from rtx to rtx_insn *.
4883 (output_print_reservation_func): Likewise for generated function
4884 "print_reservation".
4885 (output_insn_has_dfa_reservation_p): Likewise for generated
4886 function "insn_has_dfa_reservation_p".
4887 * hooks.c (hook_int_rtx_unreachable): Rename to...
4888 (hook_int_rtx_insn_unreachable): ...this, and strengthen param
4889 from rtx to rtx_insn *.
4890 * hooks.h (hook_int_rtx_unreachable): Likewise.
4891 (extern int hook_int_rtx_insn_unreachable): Likewise.
4892 * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
4893 (get_attr_min_length): Likewise.
4894 * recog.c (get_enabled_alternatives): Likewise.
4895 * recog.h (alternative_mask get_enabled_alternatives): Likewise.
4896 * reorg.c (find_end_label): Introduce local rtx "pat" and
4897 strengthen local "insn" from rtx to rtx_insn *.
4898 (redundant_insn): Use insn method of "seq" rather than element for
4899 typesafety; strengthen local "control" from rtx to rtx_insn *.
4900 * resource.c (mark_referenced_resources): Add checked cast to
4901 rtx_insn * within INSN/JUMP_INSN case.
4902 (mark_set_resources): Likewise.
4903 * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
4906 2014-09-15 David Malcolm <dmalcolm@redhat.com>
4908 * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
4909 param "label" from rtx to rtx_insn *.
4910 * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
4912 * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
4913 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
4914 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
4915 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
4916 * final.c (default_label_align_after_barrier_max_skip): Strengthen
4917 param from rtx to rtx_insn *.
4918 (default_loop_align_max_skip): Likewise.
4919 (default_label_align_max_skip): Likewise.
4920 (default_jump_align_max_skip): Likewise.
4921 * target.def (label_align_after_barrier_max_skip): Likewise.
4922 (loop_align_max_skip): Likewise.
4923 (label_align_max_skip): Likewise.
4924 (jump_align_max_skip): Likewise.
4925 * targhooks.h (default_label_align_after_barrier_max_skip):
4927 (default_loop_align_max_skip): Likewise.
4928 (default_label_align_max_skip): Likewise.
4929 (default_jump_align_max_skip): Likewise.
4931 2014-09-15 David Malcolm <dmalcolm@redhat.com>
4933 * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
4934 from const_rtx to const rtx_insn *. Update union members from rtx
4936 * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
4937 * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
4938 (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
4939 strengthen both params from const_rtx to const rtx_insn *.
4940 * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
4941 (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
4942 * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
4944 * target.def (can_follow_jump): Strengthen both params from
4945 const_rtx to const rtx_insn *, and update default implementation
4946 from hook_bool_const_rtx_const_rtx_true to
4947 hook_bool_const_rtx_insn_const_rtx_insn_true.
4949 2014-09-15 David Malcolm <dmalcolm@redhat.com>
4951 * sched-deps.c (deps_start_bb): Strengthen param "head" and local
4952 "insn" from rtx to rtx_insn *.
4953 * sched-int.h (deps_start_bb): Likewise for 2nd param.
4955 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
4956 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4957 Anna Tikhonova <anna.tikhonova@intel.com>
4958 Ilya Tocar <ilya.tocar@intel.com>
4959 Andrey Turetskiy <andrey.turetskiy@intel.com>
4960 Ilya Verbin <ilya.verbin@intel.com>
4961 Kirill Yukhin <kirill.yukhin@intel.com>
4962 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4964 * config/i386/sse.md
4965 (define_insn "vcvtph2ps<mask_name>"): Add masking.
4966 (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
4967 (define_insn "vcvtph2ps256<mask_name>"): Ditto.
4968 (define_expand "vcvtps2ph_mask"): New.
4969 (define_insn "*vcvtps2ph<mask_name>"): Add masking.
4970 (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
4971 (define_insn "vcvtps2ph256<mask_name>"): Ditto.
4973 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
4974 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4975 Anna Tikhonova <anna.tikhonova@intel.com>
4976 Ilya Tocar <ilya.tocar@intel.com>
4977 Andrey Turetskiy <andrey.turetskiy@intel.com>
4978 Ilya Verbin <ilya.verbin@intel.com>
4979 Kirill Yukhin <kirill.yukhin@intel.com>
4980 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4982 * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
4984 (define_mode_iterator VI24_AVX512BW_1): Ditto.
4985 (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
4986 (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
4987 (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
4988 also for TARGET_AVX512VL.
4989 (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
4991 2014-09-15 Markus Trippelsdorf <markus@trippelsdorf.de>
4993 * doc/install.texi (Options specification): add
4994 --disable-libsanitizer item.
4996 2014-09-14 James Clarke <jrtc27@jrtc27.com>
4997 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5000 * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
5002 * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
5003 kernel version check to avoid incrementing it after every major OS X
5005 (darwin_default_min_version): Avoid static memory buffer.
5007 2014-09-13 Jan Hubicka <hubicka@ucw.cz>
5009 * tree.c (need_assembler_name_p): Store C++ type mangling only
5012 2014-09-13 Marek Polacek <polacek@redhat.com>
5014 * tree.c (protected_set_expr_location): Don't check whether T is
5017 2014-09-12 DJ Delorie <dj@redhat.com>
5019 * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
5020 (extend_and_shift1_hipsi2): Likewise.
5021 (extend_and_shift2_hipsi2): Likewise.
5023 2014-09-12 David Malcolm <dmalcolm@redhat.com>
5025 * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
5026 with NULL when dealing with an insn.
5027 * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
5028 from rtx to rtx_insn *.
5029 * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
5030 const_rtx to const rtx_insn *.
5031 * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
5033 2014-09-12 Trevor Saunders <tsaunders@mozilla.com>
5035 * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
5038 2014-09-12 Joseph Myers <joseph@codesourcery.com>
5040 * target.def (libgcc_floating_mode_supported_p): New hook.
5041 * targhooks.c (default_libgcc_floating_mode_supported_p): New
5043 * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
5044 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
5045 (LIBGCC2_HAS_TF_MODE): Remove.
5046 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
5047 * doc/tm.texi: Regenerate.
5048 * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
5050 * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
5051 (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
5052 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
5053 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
5054 * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5055 * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
5056 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
5057 * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
5058 * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
5059 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
5061 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
5062 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5063 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5064 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5065 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5066 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5067 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5068 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
5069 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
5070 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
5071 * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5072 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
5073 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
5074 * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
5076 * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
5078 (ia64_libgcc_floating_mode_supported_p): New function.
5079 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
5080 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
5081 (IA64_NO_LIBGCC_TFMODE): Define.
5082 * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
5083 * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
5085 (pdp11_scalar_mode_supported_p): New function.
5086 * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
5087 * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
5089 2014-09-12 Richard Biener <rguenther@suse.de>
5092 * gimple-fold.c (get_maxval_strlen): Gimplify string length.
5094 2014-09-12 Marc Glisse <marc.glisse@inria.fr>
5096 * tree.c (integer_each_onep): New function.
5097 * tree.h (integer_each_onep): Declare it.
5098 * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
5099 -A - 1 to ~A. Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
5100 (X & 1) == 0 for vector and complex.
5102 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
5104 * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
5106 (cortexa53_regmove_cost): New cost table for A53. Increase GP2FP/FP2GP
5107 cost to spilling from integer to FP registers.
5109 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
5111 * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
5113 (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
5114 are now handled correctly.
5116 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
5118 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
5119 handling of CALLER_SAVE_REGS and POINTER_REGS.
5121 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
5123 * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
5124 the number of hard registers.
5126 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
5127 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5128 Anna Tikhonova <anna.tikhonova@intel.com>
5129 Ilya Tocar <ilya.tocar@intel.com>
5130 Andrey Turetskiy <andrey.turetskiy@intel.com>
5131 Ilya Verbin <ilya.verbin@intel.com>
5132 Kirill Yukhin <kirill.yukhin@intel.com>
5133 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5135 * config/i386/sse.md
5136 (define_mode_iterator VI48_AVX512VL): New.
5137 (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
5138 "avx512f_vternlog<mode>_maskz" and update mode iterator.
5139 (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
5140 from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
5141 (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
5142 "avx512f_vternlog<mode>_mask" and update mode iterator.
5143 (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
5144 from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
5146 (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
5147 "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
5148 (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
5149 "avx512f_<rotate><mode><mask_name>" and update mode iterator.
5150 (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
5151 (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
5153 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
5154 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5155 Anna Tikhonova <anna.tikhonova@intel.com>
5156 Ilya Tocar <ilya.tocar@intel.com>
5157 Andrey Turetskiy <andrey.turetskiy@intel.com>
5158 Ilya Verbin <ilya.verbin@intel.com>
5159 Kirill Yukhin <kirill.yukhin@intel.com>
5160 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5162 * config/i386/sse.md (VI128_256): Delete.
5163 (define_mode_iterator VI124_256): New.
5164 (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
5165 (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
5166 (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
5167 (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
5168 "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
5169 (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
5170 (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
5171 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
5173 (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
5174 in presence of AVX-512.
5176 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
5177 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5178 Anna Tikhonova <anna.tikhonova@intel.com>
5179 Ilya Tocar <ilya.tocar@intel.com>
5180 Andrey Turetskiy <andrey.turetskiy@intel.com>
5181 Ilya Verbin <ilya.verbin@intel.com>
5182 Kirill Yukhin <kirill.yukhin@intel.com>
5183 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5185 * config/i386/sse.md
5186 (define_expand "<avx512>_gathersi<mode>"): Rename from
5187 "avx512f_gathersi<mode>".
5188 (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
5189 (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
5190 (define_expand "<avx512>_gatherdi<mode>"): Rename from
5191 "avx512f_gatherdi<mode>".
5192 (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
5193 (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
5195 (define_expand "<avx512>_scattersi<mode>"): Rename from
5196 "avx512f_scattersi<mode>".
5197 (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
5198 (define_expand "<avx512>_scatterdi<mode>"): Rename from
5199 "avx512f_scatterdi<mode>".
5200 (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
5202 2014-09-12 Richard Sandiford <richard.sandiford@arm.com>
5204 * ira.h (ira_finish_once): Delete.
5205 * ira-int.h (target_ira_int::~target_ira_int): Declare.
5206 (target_ira_int::free_ira_costs): Likewise.
5207 (target_ira_int::free_register_move_costs): Likewise.
5208 (ira_finish_costs_once): Delete.
5209 * ira.c (free_register_move_costs): Replace with...
5210 (target_ira_int::free_register_move_costs): ...this new function.
5211 (target_ira_int::~target_ira_int): Define.
5212 (ira_init): Call free_register_move_costs as a member function rather
5213 than a global function.
5214 (ira_finish_once): Delete.
5215 * ira-costs.c (free_ira_costs): Replace with...
5216 (target_ira_int::free_ira_costs): ...this new function.
5217 (ira_init_costs): Call free_ira_costs as a member function rather
5218 than a global function.
5219 (ira_finish_costs_once): Delete.
5220 * target-globals.c (target_globals::~target_globals): Call the
5221 target_ira_int destructor.
5222 * toplev.c: Include lra.h.
5223 (finalize): Call lra_finish_once rather than ira_finish_once.
5225 2014-09-11 Jan Hubicka <hubicka@ucw.cz>
5227 * common.opt (flto-odr-type-merging): New flag.
5228 * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
5229 (types_same_for_odr): Likewise.
5230 (odr_subtypes_equivalent_p): Likewise.
5231 (add_type_duplicate): Do not walk type variants.
5232 (register_odr_type): New function.
5233 * ipa-utils.h (register_odr_type): Declare.
5234 (odr_type_p): New function.
5235 * langhooks.c (lhd_set_decl_assembler_name): Do not compute
5237 * doc/invoke.texi (-flto-odr-type-merging): Document.
5238 * tree.c (need_assembler_name_p): Compute ODR names when asked
5240 * tree.h (DECL_ASSEMBLER_NAME): Update comment.
5242 2014-09-11 H.J. Lu <hongjiu.lu@intel.com>
5245 * config/i386/i386.c (ix86_option_override_internal): Also turn
5246 off OPTION_MASK_ABI_X32 for -m16.
5248 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
5250 * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
5253 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
5256 * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
5257 Directly forward to __*_DENORM_MIN__.
5259 2014-09-11 David Malcolm <dmalcolm@redhat.com>
5261 * rtl.h (LABEL_REF_LABEL): New macro.
5263 * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
5264 of XEXP (, 0), where we know that we have a LABEL_REF.
5265 * cfgbuild.c (make_edges): Likewise.
5266 (purge_dead_tablejump_edges): Likewise.
5267 * cfgexpand.c (convert_debug_memory_address): Likewise.
5268 * cfgrtl.c (patch_jump_insn): Likewise.
5269 * combine.c (distribute_notes): Likewise.
5270 * cse.c (hash_rtx_cb): Likewise.
5271 (exp_equiv_p): Likewise.
5272 (fold_rtx): Likewise.
5273 (check_for_label_ref): Likewise.
5274 * cselib.c (rtx_equal_for_cselib_1): Likewise.
5275 (cselib_hash_rtx): Likewise.
5276 * emit-rtl.c (mark_label_nuses): Likewise.
5277 * explow.c (convert_memory_address_addr_space): Likewise.
5278 * final.c (output_asm_label): Likewise.
5279 (output_addr_const): Likewise.
5280 * gcse.c (add_label_notes): Likewise.
5281 * genconfig.c (walk_insn_part): Likewise.
5282 * genrecog.c (validate_pattern): Likewise.
5283 * ifcvt.c (cond_exec_get_condition): Likewise.
5284 (noce_emit_store_flag): Likewise.
5285 (noce_get_alt_condition): Likewise.
5286 (noce_get_condition): Likewise.
5287 * jump.c (maybe_propagate_label_ref): Likewise.
5288 (mark_jump_label_1): Likewise.
5289 (redirect_exp_1): Likewise.
5290 (rtx_renumbered_equal_p): Likewise.
5291 * lra-constraints.c (operands_match_p): Likewise.
5292 * reload.c (operands_match_p): Likewise.
5293 (find_reloads): Likewise.
5294 * reload1.c (set_label_offsets): Likewise.
5295 * reorg.c (get_branch_condition): Likewise.
5296 * rtl.c (rtx_equal_p_cb): Likewise.
5297 (rtx_equal_p): Likewise.
5298 * rtlanal.c (reg_mentioned_p): Likewise.
5299 (rtx_referenced_p): Likewise.
5300 (get_condition): Likewise.
5301 * sched-vis.c (print_value): Likewise.
5302 * varasm.c (const_hash_1): Likewise.
5303 (compare_constant): Likewise.
5304 (const_rtx_hash_1): Likewise.
5305 (output_constant_pool_1): Likewise.
5307 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
5309 * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
5310 tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
5312 * config/rs6000/vector.md (cr6_test_for_zero_reverse,
5313 cr6_test_for_lt_reverse): Ditto.
5315 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
5318 * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
5320 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
5322 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
5323 TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
5324 aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
5325 aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
5328 (aarch64_fold_builtin): Remove all reinterpret cases.
5330 * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
5332 * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
5334 * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
5335 aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
5336 aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
5337 aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
5338 aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
5339 aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
5340 aarch64_reinterpretv2df<mode>): Delete.
5342 * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
5344 * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
5345 vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
5346 vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
5347 vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
5348 vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
5349 vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
5350 vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
5351 vreinterpret_u32_f64): Use cast.
5353 * config/aarch64/iterators.md (VD_RE): Delete.
5355 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
5357 * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
5358 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
5359 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
5360 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
5361 vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
5362 vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
5363 vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
5364 Replace inline assembler with __aarch64_vset_lane_any.
5366 2014-09-11 James Greenhalgh <james.greenhalgh@arm.com>
5368 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
5370 (vmull_high_lane_s32): Likewise.
5371 (vmull_high_lane_u16): Likewise.
5372 (vmull_high_lane_u32): Likewise.
5374 2014-09-11 Jason Merrill <jason@redhat.com>
5377 * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
5379 2014-09-11 Georg-Johann Lay <avr@gjlay.de>
5382 * config/avr/avr.md (*tablejump.3byte-pc): New insn.
5383 (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL. Add void clobber.
5384 (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
5386 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
5387 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5388 Anna Tikhonova <anna.tikhonova@intel.com>
5389 Ilya Tocar <ilya.tocar@intel.com>
5390 Andrey Turetskiy <andrey.turetskiy@intel.com>
5391 Ilya Verbin <ilya.verbin@intel.com>
5392 Kirill Yukhin <kirill.yukhin@intel.com>
5393 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5395 * config/i386/sse.md
5396 (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
5397 "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
5398 (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
5400 (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
5401 from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
5403 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
5405 (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
5406 "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
5407 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
5408 (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
5409 "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
5410 (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
5411 (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
5412 from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
5414 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
5416 (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
5417 "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
5418 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
5420 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
5422 * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
5423 to access removed nodes.
5425 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
5427 PR tree-optimization/63186
5428 * ipa-split.c (test_nonssa_use): Skip nonforced labels.
5429 (mark_nonssa_use): Likewise.
5430 (verify_non_ssa_vars): Verify all header blocks for label
5433 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
5434 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5435 Anna Tikhonova <anna.tikhonova@intel.com>
5436 Ilya Tocar <ilya.tocar@intel.com>
5437 Andrey Turetskiy <andrey.turetskiy@intel.com>
5438 Ilya Verbin <ilya.verbin@intel.com>
5439 Kirill Yukhin <kirill.yukhin@intel.com>
5440 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5442 * config/i386/sse.md
5443 (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
5444 (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
5445 (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
5446 "<avx2_avx512f>_permvar<mode><mask_name>".
5447 (define_insn "<avx512>_permvar<mode><mask_name>"): New.
5448 (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
5449 Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
5450 (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
5452 (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
5453 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
5454 (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
5455 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
5457 2014-09-10 Michael Meissner <meissner@linux.vnet.ibm.com>
5459 * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
5460 V2DF, V4SF, DF, and DI modes.
5461 (vsx_fmav2df2): Likewise.
5462 (vsx_float_fix_<mode>2): Likewise.
5463 (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
5465 2014-09-10 Xinliang David Li <davidxl@google.com>
5468 * config/arm/arm.md (movcond_addsi): Handle case where source
5469 and target operands are the same.
5471 2014-09-10 David Malcolm <dmalcolm@redhat.com>
5473 * final.c (this_is_asm_operands): Strengthen this variable from
5474 rtx to const rtx_insn *.
5475 * output.h (this_is_asm_operands): Likewise.
5476 * rtl-error.c (location_for_asm): Strengthen param "insn" from
5477 const_rtx to const rtx_insn *.
5478 (diagnostic_for_asm): Likewise.
5479 * rtl-error.h (error_for_asm): Likewise.
5480 (warning_for_asm): Likewise.
5482 2014-09-10 David Malcolm <dmalcolm@redhat.com>
5484 * genextract.c (print_header): When writing out insn_extract to
5485 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
5486 * recog.h (insn_extract): Strengthen the param from rtx to
5489 2014-09-10 Mike Stump <mikestump@comcast.net>
5491 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
5494 2014-09-10 Martin Jambor <mjambor@suse.cz>
5496 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
5497 (analyze): Do not set analyze flag if expand_thunk returns false;.
5498 (create_wrapper): Likewise.
5499 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
5501 2014-09-10 Martin Jambor <mjambor@suse.cz>
5504 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
5505 new decl properly. Analyze the new thunk if it is expanded.
5507 2014-09-10 Andreas Schwab <schwab@suse.de>
5509 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
5510 [USED_FOR_TARGET]: Define.
5512 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
5514 * config/mips/mips.c (mips_secondary_reload_class): Handle
5517 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
5519 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
5522 2014-09-10 Jakub Jelinek <jakub@redhat.com>
5524 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
5525 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
5526 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
5527 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
5528 flag_delete_null_pointer_checks for them.
5529 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
5530 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
5531 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
5532 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
5533 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
5535 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
5536 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
5537 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
5538 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
5539 * doc/invoke.texi (-fsanitize=nonnull-attribute,
5540 -fsanitize=returns-nonnull-attribute): Document.
5542 * ubsan.h (struct ubsan_mismatch_data): Removed.
5543 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
5544 * ubsan.c (ubsan_source_location): For unknown locations,
5545 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
5546 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
5547 Allow more than one location and arbitrary extra arguments passed
5548 in ... instead of through MISMATCH pointer.
5549 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
5550 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
5551 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
5554 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
5555 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5556 Anna Tikhonova <anna.tikhonova@intel.com>
5557 Ilya Tocar <ilya.tocar@intel.com>
5558 Andrey Turetskiy <andrey.turetskiy@intel.com>
5559 Ilya Verbin <ilya.verbin@intel.com>
5560 Kirill Yukhin <kirill.yukhin@intel.com>
5561 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5563 * config/i386/sse.md
5564 (define_mode_iterator VI48F): New.
5565 (define_insn "<avx512>_compress<mode>_mask"): Rename from
5566 "avx512f_compress<mode>_mask" and update mode iterator.
5567 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
5568 "avx512f_compressstore<mode>_mask" and update mode iterator.
5569 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
5570 "avx512f_expand<mode>_maskz" and update mode iterator.
5571 (define_insn "<avx512>_expand<mode>_mask"): Rename from
5572 "avx512f_expand<mode>_mask" and update mode iterator.
5574 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
5575 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5576 Anna Tikhonova <anna.tikhonova@intel.com>
5577 Ilya Tocar <ilya.tocar@intel.com>
5578 Andrey Turetskiy <andrey.turetskiy@intel.com>
5579 Ilya Verbin <ilya.verbin@intel.com>
5580 Kirill Yukhin <kirill.yukhin@intel.com>
5581 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5583 * config/i386/i386.c
5584 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
5585 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
5586 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
5587 avx512dq_rangepv4sf_mask.
5588 * config/i386/sse.md
5589 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
5591 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
5592 (define_insn "reduces<mode>"): Ditto.
5593 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
5595 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
5596 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
5597 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
5599 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
5600 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5601 Anna Tikhonova <anna.tikhonova@intel.com>
5602 Ilya Tocar <ilya.tocar@intel.com>
5603 Andrey Turetskiy <andrey.turetskiy@intel.com>
5604 Ilya Verbin <ilya.verbin@intel.com>
5605 Kirill Yukhin <kirill.yukhin@intel.com>
5606 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5608 * config/i386/i386.c
5609 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
5610 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
5611 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
5612 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
5613 avx512vl_getmantv2df_mask.
5614 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
5615 avx512f_vgetmantv4sf_round.
5616 * config/i386/sse.md
5617 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
5618 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
5620 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
5621 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
5622 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
5623 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
5625 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
5626 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
5627 update mode iterator.
5629 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
5630 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
5633 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
5634 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
5635 update mode iterator.
5636 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
5637 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
5640 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
5641 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
5643 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
5644 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
5645 update mode iterator.
5646 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
5647 "avx512f_getmant<mode><round_saeonly_name>".
5649 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
5652 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
5654 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
5655 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5656 Anna Tikhonova <anna.tikhonova@intel.com>
5657 Ilya Tocar <ilya.tocar@intel.com>
5658 Andrey Turetskiy <andrey.turetskiy@intel.com>
5659 Ilya Verbin <ilya.verbin@intel.com>
5660 Kirill Yukhin <kirill.yukhin@intel.com>
5661 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5663 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
5664 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
5665 (define_mode_iterator FMAMODE_AVX512): New.
5666 (define_mode_iterator FMAMODE): Remove conditions.
5667 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
5668 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
5669 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
5671 (define_mode_iterator FMAMODE_NOVF512): Remove.
5672 (define_insn "*fma_fmadd_<mode>"): Rename from
5673 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
5674 FMAMODE mode iterator.
5675 (define_mode_iterator VF_SF_AVX512VL): New.
5676 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
5677 Use VF_SF_AVX512VL mode iterator.
5678 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
5679 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
5681 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
5682 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5684 (define_insn "*fma_fmsub_<mode>"): Rename from
5685 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
5686 FMAMODE mode iterator.
5687 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
5688 Use VF_SF_AVX512VL mode iterator.
5689 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
5690 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
5692 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
5693 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5695 (define_insn "*fma_fnmadd_<mode>"): Rename from
5696 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
5697 use FMAMODE mode iterator.
5698 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
5699 Use VF_SF_AVX512VL mode iterator.
5700 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
5701 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
5703 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
5704 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5706 (define_insn "*fma_fnmsub_<mode>"): Rename from
5707 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
5708 FMAMODE mode iterator.
5709 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
5710 Use VF_SF_AVX512VL mode iterator.
5711 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
5712 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
5714 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
5715 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5717 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
5718 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
5719 use VF_AVX512VL mode iterator.
5720 (define_insn "*fma_fmaddsub_<mode>"): Rename from
5721 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
5723 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
5724 Use VF_SF_AVX512VL mode iterator.
5725 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
5726 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
5728 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
5729 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5731 (define_insn "*fma_fmsubadd_<mode>"): Rename from
5732 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
5733 remove usage of subst.
5734 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
5735 Use VF_SF_AVX512VL mode iterator.
5736 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
5737 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
5739 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
5740 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5743 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
5746 * calls.c (precompute_arguments): Check
5747 promoted_for_signed_and_unsigned_p and set the promoted mode.
5748 (promoted_for_signed_and_unsigned_p): New function.
5749 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
5750 and set the promoted mode.
5751 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
5752 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
5753 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
5755 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5757 * opth-gen.awk: Generate mapping from cpp message reasons to the
5758 options that enable them.
5759 * doc/options.texi (CppReason): Document.
5761 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5763 * doc/invoke.texi (Wnormalized=): Update.
5765 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
5768 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
5769 operands. Split off the constant operand alternative to ...
5770 (*bool<mode>3_imm): New.
5772 2014-09-09 David Malcolm <dmalcolm@redhat.com>
5774 * rtl.h (single_set_2): Strengthen first param from const_rtx to
5775 const rtx_insn *, and move prototype to above...
5776 (single_set): ...this. Convert this from a macro to an inline
5777 function, enforcing the requirement that the param is a const
5779 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
5781 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
5782 Strengthen both params from rtx to rtx_insn *.
5783 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
5784 Likewise; introduce locals "producer_set", "consumer_set", using
5785 them in place of "producer" and "consumer" when dealing with SET
5787 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
5788 when invoking single_set in region guarded by INSN_P.
5789 (avr_out_bitop): Likewise.
5790 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
5791 region guarded by GET_CODE check, using methods to strengthen
5792 local "this_insn" from rtx to rtx_insn *, and for clarity.
5793 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
5794 Strengthen local "insn" from rtx to rtx_insn *.
5795 (define_insn_and_split "xload<mode>_A"): Likewise.
5796 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
5798 (find_load): Likewise for return type.
5799 (workaround_speculation): Likewise for both locals named
5801 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
5803 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
5805 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
5807 * config/h8300/h8300.c (notice_update_cc): Likewise.
5808 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
5809 "insn" and "dep_insn".
5810 (exact_store_load_dependency): Likewise for both params.
5811 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
5812 since this now clashes with inline function. Instead, delay
5813 calling single_set until the point where its needed, and then
5814 assign the result to "compare_set" and rework the conditional that
5816 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
5817 local "last" from rtx to rtx_insn *.
5818 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
5820 (mips_store_data_bypass_p): Likewise for both params.
5821 * config/mips/mips.c (mips_load_store_insns): Likewise for second
5823 (mips_store_data_bypass_p): Likewise for both params.
5824 (mips_orphaned_high_part_p): Likewise for param "insn".
5825 * config/mn10300/mn10300.c (extract_bundle): Likewise.
5826 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
5827 Introduce local rtx "insn2_pat".
5828 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
5830 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
5831 Introduce local rtx "set", using it in place of "insn" for the
5832 result of single_set. This appears to fix a bug, since the call
5833 to find_regno_note on a SET does nothing.
5834 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
5835 params from rtx to rtx_insn *.
5836 (set_to_load_agen): Likewise.
5837 * config/s390/s390.c (s390_label_align): Likewise for local
5838 "prev_insn". Introduce new rtx locals "set" and "src", using
5839 them in place of "prev_insn" for the results of single_set
5840 and SET_SRC respectively.
5841 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
5842 Introduce new rtx local "set" using in place of "jump" for the
5843 result of single_set. Use SET_SRC (set) rather than plain
5845 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
5847 (noncall_uses_reg): Likewise.
5848 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
5849 guarded by GET_CODE check, using its methods for clarity, and to
5850 enable strengthening local "this_insn" from rtx to rtx_insn *.
5851 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
5852 "insn" from rtx to rtx_insn *.
5853 (define_expand "umulhisi3"): Likewise.
5854 (define_expand "smulsi3_highpart"): Likewise.
5855 (define_expand "umulsi3_highpart"): Likewise.
5856 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
5857 local "after". Replace GET_CODE check with a dyn_cast,
5858 introducing new local rtx_sequence * "seq", using insn method for
5861 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
5862 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
5863 place of "insn" once we're dealing with patterns rather than the
5865 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
5866 (scan_trace): Likewise for local "elt", updating lookups within
5867 sequence to use insn method rather than element method.
5868 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
5870 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
5871 * ifcvt.c (noce_try_abs): Likewise for local "insn".
5872 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
5873 invoking single_set.
5874 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
5875 "insn" from rtx to rtx_insn *.
5876 (skip_usage_debug_insns): Likewise for return type, adding a
5878 (check_secondary_memory_needed_p): Likewise for local "insn".
5879 (inherit_reload_reg): Likewise.
5880 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
5881 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
5883 (store_data_bypass_p): Likewise for both params.
5884 (if_test_bypass_p): Likewise.
5885 * recog.h (store_data_bypass_p): Likewise for both params.
5886 (if_test_bypass_p): Likewise.
5887 * reload.c (find_equiv_reg): Likewise for local "where".
5888 * reorg.c (delete_jump): Likewise for param "insn".
5889 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
5890 to const rtx_insn *.
5891 * store-motion.c (replace_store_insn): Likewise for param "del".
5892 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
5893 and use its methods for clarity, and to strengthen local "del"
5894 from rtx to rtx_insn *.
5895 (build_store_vectors): Use insn method of "st" when calling
5896 replace_store_insn for typesafety and clarity.
5898 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5900 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
5901 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
5902 on how to make it legal in future.
5904 2014-09-09 David Malcolm <dmalcolm@redhat.com>
5906 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
5908 (restinsn): Likewise.
5909 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
5911 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
5913 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
5915 (arc_hazard): Likewise for both params.
5916 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
5917 checked casts to rtx_sequence * and uses of the insn method for
5919 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
5920 (arc_adjust_insn_length): Likewise for param "insn".
5921 (struct insn_length_parameters_s): Likewise for first param of
5922 "get_variants" callback field.
5923 (arc_get_insn_variants): Likewise for first param and local
5924 "inner". Replace a check of GET_CODE with a dyn_cast to
5925 rtx_sequence *, using methods for type-safety and clarity.
5926 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
5927 rtx_sequence * and uses of the insn method for type-safety when
5928 invoking arc_adjust_insn_length.
5929 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
5931 (arm_address_offset_is_imm): Likewise.
5932 (struct tune_params): Likewise for params 1 and 3 of the
5933 "sched_adjust_cost" callback field.
5934 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
5935 params 1 and 3 ("insn" and "dep").
5936 (xscale_sched_adjust_cost): Likewise.
5937 (fa726te_sched_adjust_cost): Likewise.
5938 (cortexa7_older_only): Likewise for param "insn".
5939 (cortexa7_younger): Likewise.
5940 (arm_attr_length_move_neon): Likewise.
5941 (arm_address_offset_is_imm): Likewise.
5942 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
5943 * config/avr/avr.c (avr_notice_update_cc): Likewise.
5944 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
5945 (workaround_speculation): Likewise for local "last_condjump".
5946 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
5947 (shadow_or_blockage_p): Likewise.
5948 (get_unit_reqs): Likewise.
5949 (get_unit_operand_masks): Likewise.
5950 (c6x_registers_update): Likewise.
5951 (returning_call_p): Likewise.
5952 (can_use_callp): Likewise.
5953 (convert_to_callp): Likewise.
5954 (find_last_same_clock): Likwise for local "t".
5955 (reorg_split_calls): Likewise for local "shadow".
5956 (hwloop_pattern_reg): Likewise for param "insn".
5957 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
5958 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
5959 (frv_extract_membar): Likewise.
5960 (frv_optimize_membar_local): Strengthen param "last_membar" from
5961 rtx * to rtx_insn **.
5962 (frv_optimize_membar_global): Strengthen param "membar" from rtx
5964 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
5966 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
5967 both params from rtx to rtx_insn *.
5968 (ia64_ld_address_bypass_p): Likewise.
5969 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
5971 (ia64_safe_type): Likewise.
5972 (group_barrier_needed): Likewise.
5973 (safe_group_barrier_needed): Likewise.
5974 (ia64_single_set): Likewise.
5975 (is_load_p): Likewise.
5976 (record_memory_reference): Likewise.
5977 (get_mode_no_for_insn): Likewise.
5978 (important_for_bundling_p): Likewise.
5979 (unknown_for_bundling_p): Likewise.
5980 (ia64_st_address_bypass_p): Likewise for both params.
5981 (ia64_ld_address_bypass_p): Likewise.
5982 (expand_vselect): Introduce new local rtx_insn * "insn", using it
5983 in place of rtx "x" after the emit_insn call.
5984 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
5985 Strengthen param from rtx to rtx_insn *.
5986 (ix86_agi_dependent): Likewise for both params.
5987 (ix86_attr_length_immediate_default): Likewise for param 1.
5988 (ix86_attr_length_address_default): Likewise for param.
5989 (ix86_attr_length_vex_default): Likewise for param 1.
5990 * config/i386/i386.c (ix86_attr_length_immediate_default):
5991 Likewise for param "insn".
5992 (ix86_attr_length_address_default): Likewise.
5993 (ix86_attr_length_vex_default): Likewise.
5994 (ix86_agi_dependent): Likewise for both params.
5995 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
5996 (vselect_insn): Likewise for this variable.
5997 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
5999 (m68k_sched_attr_opy_type): Likewise.
6000 * config/m68k/m68k.c (sched_get_operand): Likewise.
6001 (sched_attr_op_type): Likewise.
6002 (m68k_sched_attr_opx_type): Likewise.
6003 (m68k_sched_attr_opy_type): Likewise.
6004 (sched_get_reg_operand): Likewise.
6005 (sched_get_mem_operand): Likewise.
6006 (m68k_sched_address_bypass_p): Likewise for both params.
6007 (sched_get_indexed_address_scale): Likewise.
6008 (m68k_sched_indexed_address_bypass_p): Likewise.
6009 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
6010 (m68k_sched_indexed_address_bypass_p): Likewise.
6011 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
6012 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
6014 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
6015 params from rtx to rtx_insn *.
6016 (mips_fmadd_bypass): Likewise.
6017 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
6018 (mips_linked_madd_p): Likewise.
6019 (mips_macc_chains_last_hilo): Likewise for this variable.
6020 (mips_macc_chains_record): Likewise for param.
6021 (vr4130_last_insn): Likewise for this variable.
6022 (vr4130_swap_insns_p): Likewise for both params.
6023 (mips_ls2_variable_issue): Likewise for param.
6024 (mips_need_noat_wrapper_p): Likewise for param "insn".
6025 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
6026 in place of "x" after the emit_insn.
6027 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
6028 params from rtx to rtx_insn *.
6029 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
6030 (pa_combine_instructions): Introduce local "par" for result of
6031 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
6033 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
6034 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
6035 (rl78_alloc_physical_registers_op1): Likewise.
6036 (rl78_alloc_physical_registers_op2): Likewise.
6037 (rl78_alloc_physical_registers_ro1): Likewise.
6038 (rl78_alloc_physical_registers_cmp): Likewise.
6039 (rl78_alloc_physical_registers_umul): Likewise.
6040 (rl78_alloc_address_registers_macax): Likewise.
6041 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
6042 * config/s390/predicates.md (execute_operation): Likewise for
6044 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
6046 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
6047 (addr_generation_dependency_p): Likewise for param "insn".
6048 (s390_agen_dep_p): Likewise for both params.
6049 (s390_fpload_toreg): Likewise for param "insn".
6050 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
6051 * config/sh/sh.c (sh_loop_align): Likewise for param and local
6053 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
6054 * config/sh/sh_treg_combine.cc
6055 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
6057 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
6058 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
6059 "and_insn", "load", "shift".
6060 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
6062 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
6063 for XEXP (note, 0) of the REG_CC_SETTER note.
6064 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
6065 rtx_insn *, eliminating a checked cast made redundant by this.
6066 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
6068 * genattr.c (main): When writing out the prototype to
6069 const_num_delay_slots, strengthen the param from rtx to
6071 * genattrtab.c (write_const_num_delay_slots): Likewise when
6072 writing out the implementation of const_num_delay_slots.
6073 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
6074 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
6075 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
6076 favor of new rtx locals "src" and "set" and new local rtx_insn *
6078 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
6080 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
6081 locals "cond", "if_then_else", "set" and new rtx_insn * locals
6083 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
6084 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
6085 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
6086 the top-level scope, replacing with new more tightly-scoped rtx
6087 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
6088 "new_insn", "copy_of_insn_b", and make local rtx "set" more
6090 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
6092 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
6094 (ira_setup_alts): Likewise for param "insn".
6095 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
6096 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
6098 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
6099 new more-tightly scoped rtx locals "add3_insn", "insn",
6100 "add2_insn" and rtx_insn * "move_insn".
6101 * postreload-gcse.c (eliminate_partially_redundant_load): Add
6102 checked cast on result of gen_move_insn when invoking
6104 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
6106 (verify_changes): Add a checked cast on "object" when invoking
6108 (extract_insn_cached): Strengthen param "insn" from rtx to
6110 (extract_constrain_insn_cached): Likewise.
6111 (extract_insn): Likewise.
6112 * recog.h (insn_invalid_p): Likewise for param 1.
6113 (recog_memoized): Likewise for param.
6114 (extract_insn): Likewise.
6115 (extract_constrain_insn_cached): Likewise.
6116 (extract_insn_cached): Likewise.
6117 * reload.c (can_reload_into): Likewise for local "test_insn".
6118 * reload.h (cleanup_subreg_operands): Likewise for param.
6119 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
6120 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
6121 result of emit_insn. Remove a checked cast made redundant by this
6123 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
6125 * sel-sched.c (get_reg_class): Likewise.
6127 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
6128 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6130 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
6131 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
6133 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
6135 2014-09-09 David Malcolm <dmalcolm@redhat.com>
6137 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
6138 const rtx_insn *, and from rtx to rtx_insn * for the other
6140 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
6141 INSN_LOCATION, since we know INSN_P holds.
6142 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
6143 (insn_file): Likewise.
6144 (insn_scope): Likewise.
6145 (insn_location): Likewise.
6147 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
6148 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
6149 for the result of gen_load_const_gp.
6150 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
6151 param from rtx to rtx_insn *.
6152 * config/rs6000/rs6000.c (output_call): Likewise.
6153 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
6154 introducing a checked cast to rtx_sequence * and use of the insn
6156 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
6157 from rtx to rtx_insn *.
6158 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
6159 (insn_line): Likewise.
6160 (insn_file): Likewise.
6161 (insn_location): Likewise.
6162 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
6163 from rtx to rtx_insn *.
6164 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
6165 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
6166 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
6168 * reorg.c (relax_delay_slots): Strengthen locals named "after"
6169 from rtx to rtx_insn *; use methods of "pat" for type-safety.
6171 2014-09-09 David Malcolm <dmalcolm@redhat.com>
6173 * combine.c (try_combine): Eliminate checked cast on result of
6175 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
6176 autogenerated one by strengthening the return type and params 2 and 3
6177 from rtx to rtx_insn *, and by naming the params.
6178 * gengenrtl.c (special_rtx): Add INSN to those that are
6180 * rtl.h (gen_rtx_INSN): New prototype.
6182 2014-09-09 David Malcolm <dmalcolm@redhat.com>
6184 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
6186 (no_equiv): Likewise.
6187 (update_equiv_regs): Likewise.
6188 (setup_reg_equiv): Likewise. Strengthen locals "elem",
6189 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
6190 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
6192 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
6193 from rtx to rtx_insn_list *.
6194 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
6195 rtx_insn_list * and use methods for clarity and typesafety.
6196 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
6198 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
6199 redundant check on INSN_P (insns): this cannot hold, as "insns" is
6200 an INSN_LIST, not an insn.
6201 (reverse_equiv_p): Strengthen local "insns" from rtx to
6202 rtx_insn_list * and use methods for clarity and typesafety.
6203 (contains_reloaded_insn_p): Likewise for local "list".
6205 2014-09-09 Jiong Wang <jiong.wang@arm.com>
6207 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
6208 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
6209 (arm_builtin_vectorized_function): Likewise.
6210 * config/arm/arm_neon_builtins.def: New macro for copysignf.
6211 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
6213 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
6215 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
6216 * builtins.h (default_target_builtins): Likewise.
6217 * gcse.h (default_target_gcse): Likewise.
6218 * target-globals.h (target_globals): Add a destructor. Convert
6219 void-pointer fields back to their real type and change from
6220 GTY((atomic)) to GTY((skip)).
6221 (restore_target_globals): Remove casts accordingly.
6222 * target-globals.c (save_target_globals): Use XCNEW rather than
6223 ggc_internal_cleared_alloc to allocate non-GC structures.
6224 Use ggc_cleared_alloc to allocate the target_globals structure
6226 (target_globals::~target_globals): Define.
6228 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6230 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
6231 mnemonic instead of fldmfdd.
6232 * config/arm/arm.c (vfp_output_fstmd): Rename to...
6233 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
6234 Output vpush when address register is SP.
6235 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
6236 (vfp_output_vstmd): ... This.
6237 * config/arm/vfp.md (push_multi_vfp): Update call to
6240 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6242 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
6244 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6246 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
6247 (*sqrtdf2_vfp): Likewise.
6248 (*cmpsf_vfp): Likewise.
6249 (*cmpsf_trap_vfp): Likewise.
6250 (*cmpdf_vfp): Likewise.
6251 (*cmpdf_trap_vfp): Likewise.
6253 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6255 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
6256 (*truncdfsf2_vfp): Likewise.
6257 (*truncsisf2_vfp): Likewise.
6258 (*truncsidf2_vfp): Likewise.
6259 (fixuns_truncsfsi2): Likewise.
6260 (fixuns_truncdfsi2): Likewise.
6261 (*floatsisf2_vfp): Likewise.
6262 (*floatsidf2_vfp): Likewise.
6263 (floatunssisf2): Likewise.
6264 (floatunssidf2): Likewise.
6266 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6268 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
6269 (*muldf3_vfp): Likewise.
6270 (*mulsf3negsf_vfp): Likewise.
6271 (*muldf3negdf_vfp): Likewise.
6272 (*mulsf3addsf_vfp): Likewise.
6273 (*muldf3adddf_vfp): Likewise.
6274 (*mulsf3subsf_vfp): Likewise.
6275 (*muldf3subdf_vfp): Likewise.
6276 (*mulsf3negsfaddsf_vfp): Likewise.
6277 (*fmuldf3negdfadddf_vfp): Likewise.
6278 (*mulsf3negsfsubsf_vfp): Likewise.
6279 (*muldf3negdfsubdf_vfp): Likewise.
6281 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6283 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
6284 (*absdf2_vfp): Likewise.
6285 (*negsf2_vfp): Likewise.
6286 (*negdf2_vfp): Likewise.
6287 (*addsf3_vfp): Likewise.
6288 (*adddf3_vfp): Likewise.
6289 (*subsf3_vfp): Likewise.
6290 (*subdf3_vfp): Likewise.
6291 (*divsf3_vfp): Likewise.
6292 (*divdf3_vfp): Likewise.
6294 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6296 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
6298 (arm_print_operand): Don't convert real values to decimal
6299 representation in default case.
6300 (fp_immediate_constant): Delete.
6301 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
6302 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
6304 (*thumb2_movsi_vfp): Likewise.
6305 (*movdi_vfp): Likewise.
6306 (*movdi_vfp_cortexa8): Likewise.
6307 (*movhf_vfp_neon): Likewise.
6308 (*movhf_vfp): Likewise.
6309 (*movsf_vfp): Likewise.
6310 (*thumb2_movsf_vfp): Likewise.
6311 (*movdf_vfp): Likewise.
6312 (*thumb2_movdf_vfp): Likewise.
6313 (*movsfcc_vfp): Likewise.
6314 (*thumb2_movsfcc_vfp): Likewise.
6315 (*movdfcc_vfp): Likewise.
6316 (*thumb2_movdfcc_vfp): Likewise.
6318 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
6320 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
6324 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6327 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
6328 Use qualifier_immediate for last operand. Rename to...
6329 (aarch64_types_ternop_lane_qualifiers): ... This.
6330 (TYPES_QUADOP): Rename to...
6331 (TYPES_TERNOP_LANE): ... This.
6332 (aarch64_simd_expand_args): Return const0_rtx when encountering user
6333 error. Change return of 0 to return of NULL_RTX.
6334 (aarch64_crc32_expand_builtin): Likewise.
6335 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
6336 ICE when expanding unknown builtin.
6337 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
6338 TERNOP_LANE qualifiers.
6339 (sqdmlsl_lane): Likewise.
6340 (sqdmlal_laneq): Likewise.
6341 (sqdmlsl_laneq): Likewise.
6342 (sqdmlal2_lane): Likewise.
6343 (sqdmlsl2_lane): Likewise.
6344 (sqdmlal2_laneq): Likewise.
6345 (sqdmlsl2_laneq): Likewise.
6347 2014-09-09 Nick Clifton <nickc@redhat.com>
6349 * doc/invoke.texi (Optimization Options): Add missing @gol to the
6351 (S/390 and zSeries Options): Remove superfluous word from the
6352 description of the -mhotpatch option.
6354 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
6356 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
6357 * ira.c: #include "shrink-wrap.h"
6358 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
6359 * ifcvt.c: #include "shrink-wrap.h"
6360 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
6362 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
6364 * common/config/picochip/picochip-common.c: Remove.
6365 * config.gcc: Remove support for picochip.
6366 * config/picochip/constraints.md: Remove.
6367 * config/picochip/dfa_space.md: Remove.
6368 * config/picochip/dfa_speed.md: Remove.
6369 * config/picochip/picochip-protos.h: Remove.
6370 * config/picochip/picochip.c: Remove.
6371 * config/picochip/picochip.h: Remove.
6372 * config/picochip/picochip.md: Remove.
6373 * config/picochip/picochip.opt: Remove.
6374 * config/picochip/predicates.md: Remove.
6375 * config/picochip/t-picochip: Remove.
6376 * doc/md.texi: Don't document picochi.
6378 2014-09-08 David Malcolm <dmalcolm@redhat.com>
6380 * basic-block.h (control_flow_insn_p): Strengthen param from
6381 const_rtx to const rtx_insn *.
6382 * cfgbuild.c (control_flow_insn_p): Likewise.
6384 2014-09-08 David Malcolm <dmalcolm@redhat.com>
6386 * gcse.c (modify_mem_list): Strengthen this variable from
6387 vec<rtx> * to vec<rtx_insn *> *.
6388 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
6390 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
6391 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
6392 (record_last_mem_set_info): Strengthen param "insn" from rtx to
6394 (record_last_set_info): Likewise for local "last_set_insn".
6396 2014-09-08 DJ Delorie <dj@redhat.com>
6398 * doc/invoke.texi (MSP430 Options): Add -minrt.
6400 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6402 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
6403 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
6404 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
6406 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
6408 (adjust_splat): New function.
6409 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
6410 (dump_swap_insn_table): Add case for SH_SPLAT.
6412 2014-09-08 Richard Biener <rguenther@suse.de>
6415 * tree-inline.c (copy_loops): The source loop header should
6417 (tree_function_versioning): If loops need fixup after removing
6418 unreachable blocks fix them.
6419 * omp-low.c (simd_clone_adjust): Do not add incr block to
6420 loop under construction.
6422 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
6424 * config/aarch64/aarch64-builtins.c
6425 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
6427 2014-09-08 Joseph Myers <joseph@codesourcery.com>
6429 * config/i386/cygming.h (TF_SIZE): Remove.
6430 * config/i386/darwin.h (TF_SIZE): Remove.
6431 * config/i386/dragonfly.h (TF_SIZE): Remove.
6432 * config/i386/freebsd.h (TF_SIZE): Remove.
6433 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
6434 * config/i386/openbsdelf.h (TF_SIZE): Remove.
6435 * config/i386/sol2.h (TF_SIZE): Remove.
6436 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
6437 * config/ia64/linux.h (TF_SIZE): Remove.
6438 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
6439 * doc/tm.texi: Regenerate.
6440 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
6442 2014-09-08 Joseph Myers <joseph@codesourcery.com>
6444 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
6446 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
6448 * doc/tm.texi: Regenerate.
6449 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
6451 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
6452 * config/cris/cris.h (__make_dp): Remove.
6454 2014-09-08 Richard Biener <rguenther@suse.de>
6457 * cfgloop.c (mark_loop_for_removal): Track former header
6459 * cfgloop.h (struct loop): Add former_header member unconditionally.
6460 * loop-init.c (fix_loop_structure): Enable bogus loop removal
6461 diagnostic unconditionally.
6463 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
6466 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
6467 constraint for operand0 and remove write only modifier from operand3.
6469 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
6471 PR rtl-optimization/62208
6472 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
6473 rather than const0_rtx in eq/ne-xor simplifications.
6475 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
6477 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
6478 (arc_output_mi_thunk): Likewise.
6480 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
6481 arguments to silence bogus warning.
6483 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
6486 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
6488 2014-09-06 Tom de Vries <tom@codesourcery.com>
6490 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
6491 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
6492 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
6494 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
6497 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
6498 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
6500 2014-09-05 Easwaran Raman <eraman@google.com>
6502 PR rtl-optimization/62146
6503 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
6504 hoisted instruction unconditional.
6506 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
6509 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
6510 Do not allow any_mask_operand for operands[2].
6511 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
6513 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6515 * config/arc/arc.c (arc_print_operand): Use insn method of
6516 final_sequence for type-safety.
6517 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
6518 "insn" from rtx to rtx_insn *.
6519 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
6520 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
6521 Likewise for locals "branch", "label".
6522 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
6523 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
6524 (same_cmp_following_p): Likewise for locals "i2", "i3".
6525 * config/sh/sh_optimize_sett_clrt.cc
6526 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
6527 param "cbranch_insn".
6528 * function.c (convert_jumps_to_returns): Likewis for local "jump".
6529 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
6530 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
6532 (condjump_p): Likewise.
6533 (condjump_in_parallel_p): Likewise.
6535 (any_uncondjump_p): Likewise.
6536 (any_condjump_p): Likewise.
6537 (condjump_label): Likewise.
6538 (returnjump_p): Strengthen param "insn" from rtx to
6540 (onlyjump_p): Strengthen param "insn" from const_rtx to
6542 (jump_to_label_p): Likewise.
6543 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
6544 (invert_jump): Likewise.
6545 * reorg.c (simplejump_or_return_p): Add checked cast when calling
6547 (get_jump_flags): Strengthen param "insn" from rtx to
6549 (get_branch_condition): Likewise.
6550 (condition_dominates_p): Likewise.
6551 (make_return_insns): Move declaration of local "pat" earlier, to
6552 after we've handled NONJUMP_INSN_P and non-sequences, using its
6553 methods to simplify the code and for type-safety.
6554 * rtl.h (find_constant_src): Strengthen param from const_rtx to
6556 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
6557 (condjump_p): Strengthen param from const_rtx to
6559 (any_condjump_p): Likewise.
6560 (any_uncondjump_p): Likewise.
6562 (condjump_label): Likewise.
6563 (simplejump_p): Likewise.
6564 (returnjump_p): Likewise.
6565 (onlyjump_p): Likewise.
6566 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
6567 (invert_jump): Likewise.
6568 (condjump_in_parallel_p): Strengthen param from const_rtx to
6570 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
6571 to const rtx_insn *.
6572 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
6573 to const rtx_insn *.
6574 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
6576 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6578 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
6579 above the conditional, and convert the check on GET_CODE to a
6580 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
6581 the conditional. Simplify the conditional by using methods of
6584 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6586 * haifa-sched.c (check_clobbered_conditions): Strengthen local
6587 "link" from rtx to rtx_insn_list *, and use its methods for
6588 clarity and type-safety.
6589 (toggle_cancelled_flags): Likewise.
6590 (restore_last_backtrack_point): Likewise.
6591 (queue_to_ready): Use insn method of "link" in one place.
6592 (schedule_block): Strengthen local "link" from rtx to
6593 rtx_insn_list *, and use its methods for clarity and type-safety.
6595 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6597 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
6598 param "insn" from const_rtx to const rtx_insn *.
6599 (sched_get_reverse_condition_uncached): Likewise.
6600 (sched_get_condition_with_rev): Likewise.
6601 (sched_has_condition_p): Likewise.
6602 (sched_insns_conditions_mutex_p): Likewise for both params.
6603 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
6604 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
6605 (setup_insn_reg_uses): Move local "list" to be more tightly
6606 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
6607 its methods for clarity and type-safety.
6608 (sched_analyze_1): Strengthen local "pending" from rtx to
6609 rtx_insn_list *, and local "pending_mem" from rtx to
6610 rtx_expr_list *. Use methods of each for clarity and type-safety.
6611 (sched_analyze_2): Likewise.
6612 (sched_analyze_insn): Likewise.
6614 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
6615 param from const_rtx to const rtx_insn *.
6616 (sched_insns_conditions_mutex_p): Likewise for both params.
6617 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
6620 * system.h (CONST_CAST_RTX_INSN): New macro.
6622 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6624 * recog.c (peep2_attempt): Strengthen return type from rtx to
6626 (peep2_update_life): Likewise for params "last", "prev", removing
6627 a checked cast made redundant by this.
6628 (peephole2_optimize): Likewise for local "last".
6630 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6632 * basic-block.h (set_block_for_insn): Eliminate this macro in
6634 * rtl.h (set_block_for_insn): New inline function, imposing the
6635 requirement that the "insn" param is an rtx_insn *.
6637 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6639 * caller-save.c (setup_save_areas): Strengthen local "insn" from
6641 * final.c (get_call_reg_set_usage): Likewise for first param,
6642 eliminating a checked cast.
6643 * regs.h (get_call_reg_set_usage): Likewise for first param.
6644 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
6645 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
6646 cast, replacing references to "x" with "call_insn" where
6648 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
6649 rtx_insn *, adding a checked cast.
6651 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6653 * output.h (final_scan_insn): Strengthen first param from rtx to
6656 * final.c (final_scan_insn): Likewise, renaming it back from
6657 "uncast_insn" to "insn", eliminating the checked cast.
6659 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
6660 "vec" with an rtx_sequence * "seq", taking a copy of
6661 "final_sequence", and using methods of "seq" for clarity, and for
6662 type-safety in the calls to final_scan_insn.
6663 * config/mips/mips.c (mips_output_conditional_branch): Use methods
6664 of "final_sequence" for clarity, and for type-safety in the call to
6666 * config/sh/sh.c (print_slot): Strengthen param from rtx to
6667 rtx_sequence * and rename from "insn" to "seq".
6669 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6671 * jump.c (delete_related_insns): Introduce a new local "table" by
6672 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
6673 get_labels method of "table" to simplify access to the labels in
6676 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6678 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
6679 f_minmaxs, f_minmaxd types.
6681 2014-09-05 Richard Biener <rguenther@suse.de>
6683 * cfgloop.c (mark_loop_for_removal): Record former header
6684 when ENABLE_CHECKING.
6685 * cfgloop.h (strut loop): Add former_header member when
6687 * loop-init.c (fix_loop_structure): Sanity check loops
6688 marked for removal if they re-appeared.
6690 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6692 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
6693 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
6695 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
6696 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
6697 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
6698 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
6699 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
6700 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
6701 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
6702 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
6703 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
6704 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
6705 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
6706 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
6707 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
6708 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
6709 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
6710 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
6711 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
6712 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
6713 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
6714 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
6715 with int{32,16,8}_t.
6717 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6719 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
6720 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
6721 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
6722 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
6723 Remove temporary __asm__ and reimplement.
6725 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6727 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
6728 handling cmge, cmgt, cmeq, cmtst.
6730 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
6731 cmlt, cmgeu, cmgtu, cmtst): Remove.
6733 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
6734 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
6735 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
6736 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
6738 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6740 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
6742 (aarch64_fold_builtin): Update pattern for cmtst.
6744 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
6747 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
6749 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
6750 Switch operands, separate out more cases, refactor.
6752 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
6754 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
6755 argument; rename old version to...
6756 (aarch64_const_vec_all_same_in_range_p): ...this.
6757 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
6759 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
6761 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6763 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
6764 Remove qualifier_const_pointer, update comment.
6766 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6768 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
6770 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6772 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
6773 varargs with pointer parameter.
6774 (aarch64_simd_expand_builtin): pass pointer into previous.
6776 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6778 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
6781 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6783 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
6784 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
6785 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
6786 Replace temporary asm with call to builtin.
6787 (vrbit_p8, vrbitq_p8): New functions.
6789 2014-09-05 Richard Biener <rguenther@suse.de>
6791 * cfgloop.c (mark_loop_for_removal): New function.
6792 * cfgloop.h (mark_loop_for_removal): Declare.
6793 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
6794 (merge_blocks): Likewise.
6795 (duplicate_block): Likewise.
6796 * except.c (sjlj_emit_dispatch_table): Likewise.
6797 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
6798 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
6799 (thread_through_loop_header): Likewise.
6801 2014-09-05 Richard Biener <rguenther@suse.de>
6804 * fold-const.c (try_move_mult_to_index): Remove.
6805 (fold_binary_loc): Do not call it.
6806 * tree-data-ref.c (dr_analyze_indices): Strip conversions
6807 from the base object again.
6809 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
6811 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
6814 2014-09-05 Bin Cheng <bin.cheng@arm.com>
6817 * config/arm/arm.md (setmem): New pattern.
6818 * config/arm/arm-protos.h (struct tune_params): New fields.
6819 (arm_gen_setmem): New prototype.
6820 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
6821 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
6822 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
6823 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
6824 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
6825 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
6826 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
6827 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
6828 (arm_const_inline_cost): New function.
6829 (arm_block_set_max_insns): New function.
6830 (arm_block_set_non_vect_profit_p): New function.
6831 (arm_block_set_vect_profit_p): New function.
6832 (arm_block_set_unaligned_vect): New function.
6833 (arm_block_set_aligned_vect): New function.
6834 (arm_block_set_unaligned_non_vect): New function.
6835 (arm_block_set_aligned_non_vect): New function.
6836 (arm_block_set_vect, arm_gen_setmem): New functions.
6838 2014-09-05 Bin Cheng <bin.cheng@arm.com>
6840 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
6842 2014-09-05 Bin Cheng <bin.cheng@arm.com>
6844 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
6846 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
6848 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
6850 * valtrack.h: Adjust.
6852 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
6854 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
6856 (emit_jump_insn_before_noloc): Likewise.
6857 (emit_call_insn_before_noloc): Likewise.
6858 (emit_label_before): Likewise.
6859 (emit_label_after): Likewise.
6860 (emit_insn_before_setloc): Likewise.
6861 (emit_jump_insn_before_setloc): Likewise.
6862 (emit_call_insn_before_setloc): Likewise.
6863 (emit_call_insn_before): Likewise.
6866 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6868 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
6869 rtx_insn *, eliminating a checked cast.
6871 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6873 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
6874 const_rtx to const rtx_insn *.
6875 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
6878 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6880 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
6881 fixup_args_size_notes.
6882 * expr.c (fixup_args_size_notes): Strengthen first two params from
6883 rtx to rtx_insn *, eliminating a checked cast.
6884 * rtl.h (fixup_args_size_notes): Strengthen first two params from
6887 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6889 * haifa-sched.c (get_ready_element): Strengthen return type from
6891 * sched-int.h (get_ready_element): Likewise.
6893 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
6896 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
6897 indexed_or_indirect_operand instead of memory_operand.
6898 (floatsi<mode>2_lfiwzx_mem): Ditto.
6900 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
6902 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
6903 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
6904 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
6906 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
6908 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
6910 (get_last_nonnote_insn): Likewise.
6911 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
6912 * resource.c (find_basic_block): Likewise.
6914 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
6917 2014-09-04 David Malcolm <dmalcolm@redhat.com>
6919 * genattr.c (main): Within the prototype of insn_latency written
6920 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
6921 * genautomata.c (output_internal_maximal_insn_latency_func):
6922 Within the implementation of insn_latency written out to
6923 insn-automata.c, strengthen both params from rtx to rtx_insn *,
6924 eliminating a pair of checked casts.
6926 2014-09-04 David Malcolm <dmalcolm@redhat.com>
6928 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
6931 * rtl.h (eh_returnjump_p): Likewise.
6933 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
6935 * Makefile.in (TAGS): Handle constructs in timevar.def.
6937 2014-09-04 Guozhi Wei <carrot@google.com>
6940 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
6941 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
6942 it into two patterns.
6943 (move_lo_quad_internal_be_<mode>): Likewise.
6945 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
6947 * doc/options.texi: Document that Var and Init are required if CPP
6949 * optc-gen.awk: Require Var and Init if CPP is given.
6950 * common.opt (Wpedantic): Use Init.
6952 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6954 * config/rs6000/rs6000.c (special_handling_values): Add
6956 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
6957 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
6958 as swappable with special handling SH_EXTRACT. Remove
6959 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
6961 (adjust_extract): New function.
6962 (handle_special_swappables): Add default to case statement; add
6963 case for SH_EXTRACT that calls adjust_extract.
6964 (dump_swap_insn_table): Handle SH_EXTRACT.
6966 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6968 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
6969 selection of 0th memory doubleword, regardless of endianness.
6971 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6973 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
6975 2014-09-04 Alan Modra <amodra@gmail.com>
6978 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
6981 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
6983 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
6984 * targhooks.c (default_dwarf_frame_reg_mode): New function.
6985 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
6986 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
6987 * doc/tm.texi: Regenerate.
6988 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
6989 selection logic to default_dwarf_frame_reg_mode.
6991 2014-09-03 Marek Polacek <polacek@redhat.com>
6993 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
6996 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
6998 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
6999 the automodified register.
7001 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
7003 * output.h (get_some_local_dynamic_name): Declare.
7004 * final.c (some_local_dynamic_name): New variable.
7005 (get_some_local_dynamic_name): New function.
7006 (final_end_function): Clear some_local_dynamic_name.
7007 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
7008 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
7009 (print_operand): Report an error if '%&' is used inappropriately.
7010 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
7011 (get_some_local_dynamic_name_1): Delete.
7012 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
7013 (rs6000_get_some_local_dynamic_name): Delete.
7014 (rs6000_get_some_local_dynamic_name_1): Delete.
7015 (print_operand): Report an error if '%&' is used inappropriately.
7016 * config/s390/s390.c (machine_function): Remove some_ld_name.
7017 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
7018 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
7019 * config/sparc/sparc.c: Include rtl-iter.h.
7020 (machine_function): Remove some_ld_name.
7021 (sparc_print_operand): Report an error if '%&' is used inappropriately.
7022 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
7024 2014-09-03 Richard Henderson <rth@redhat.com>
7026 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
7027 (aarch64_popwb_pair_reg): Remove.
7028 (aarch64_set_frame_expr): Remove.
7029 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
7030 the restore ops performed by the insns generated.
7031 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
7032 insn. Perform the calls_eh_return addition later; do not attempt to
7033 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
7034 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
7035 special markup at all. Load cfun->machine->frame.hard_fp_offset
7036 into a local variable.
7037 (aarch64_frame_pointer_required): Don't check calls_alloca.
7039 2014-09-03 Richard Biener <rguenther@suse.de>
7041 * opts.c (default_options_optimization): Adjust
7042 max-combine-insns to 2 for -Og.
7044 2014-09-03 Martin Jambor <mjambor@suse.cz>
7047 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
7048 pass-trough jump functions correctly.
7050 2014-09-03 Martin Jambor <mjambor@suse.cz>
7053 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
7054 created replacements in ascending order of offsets.
7055 (known_aggs_to_agg_replacement_list): Likewise.
7057 2014-09-03 Martin Liska <mliska@suse.cz>
7059 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
7060 is set to set uninitialized value for vnresult.
7062 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7064 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
7065 for TARGET_MUST_PASS_IN_STACK.
7067 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7069 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
7070 for TARGET_ARG_PARTIAL_BYTES.
7072 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7074 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
7075 instructions for varargs implementation.
7076 (nds32_expand_epilogue): Emit stack adjustment instructions for
7077 varargs implementation.
7079 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7081 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
7082 optimization detection.
7084 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7086 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
7088 (nds32_function_arg_advance): Deal with nameless arguments.
7089 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
7090 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
7091 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
7093 2014-09-03 Richard Biener <rguenther@suse.de>
7095 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
7096 (struct bb_bitmap_sets): Remove deferred member.
7097 (BB_DEFERRED): Remove.
7098 (defer_or_phi_translate_block): Remove.
7099 (compute_antic_aux): Remove deferring of blocks, assert
7100 proper iteration order.
7101 (compute_antic): Do not set BB_DEFERRED.
7102 (eliminate): Allocate el_avail of proper size initially.
7104 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7106 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
7107 according to the value of crtl->args.pretend_args_size.
7109 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7111 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
7112 varargs information.
7114 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7116 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
7117 implementation for TARGET_SETUP_INCOMING_VARARGS.
7118 (nds32_strict_argument_naming): Refine comment.
7119 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
7120 Define for future implementation.
7122 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
7124 * config/i386/adxintrin.h (_subborrow_u32): New.
7125 (_addcarry_u32): Ditto.
7126 (_subborrow_u64): Ditto.
7127 (_addcarry_u64): Ditto.
7128 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
7130 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
7131 __builtin_ia32_sbb_u64
7133 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7135 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
7137 (nds32_function_arg_advance): Likewise.
7138 (nds32_init_cumulative_args): Likewise.
7139 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
7140 (NDS32_FIRST_GPR_REGNUM): Define.
7141 (NDS32_LAST_GPR_REGNUM): Define.
7142 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
7143 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
7144 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
7145 (machine_function): Use GRP-specific stuff.
7147 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7149 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
7150 (nds32_expand_epilogue): Likewise.
7151 (nds32_expand_prologue_v3push): Likewise.
7152 (nds32_expand_epilogue_v3pop): Likewise.
7154 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7156 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
7157 v3push/v3pop for variadic function.
7158 * config/nds32/nds32.md (prologue, epilogue): Likewise.
7160 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7162 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
7163 Check rtx for varargs implementation.
7164 (nds32_output_stack_pop): Likewise.
7165 * config/nds32/nds32-protos.h: Have a rtx argument for
7166 nds32_output_stack_push and nds32_output_stack_pop.
7167 * config/nds32/nds32.md: Likewise.
7169 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7171 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
7172 to check if FUNC is an interrupt service routine.
7173 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
7175 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7177 * config/nds32/nds32.h (machine_function): Add some fields for variadic
7178 arguments implementation.
7180 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7182 * config/nds32/nds32-predicates.c
7183 (nds32_valid_stack_push_pop): Rename to ...
7184 (nds32_valid_stack_push_pop_p): ... this.
7185 * config/nds32/nds32-protos.h: Likewise.
7186 * config/nds32/predicates.md: Likewise.
7188 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7190 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
7191 (nds32_emit_stack_v3push): ... this.
7192 (nds32_gen_stack_v3pop): Rename to ...
7193 (nds32_emit_stack_v3pop): ... this and consider CFA restore
7196 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7198 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
7199 (nds32_emit_stack_push_multiple): ... this.
7200 (nds32_gen_stack_pop_multiple): Rename to ...
7201 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
7204 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7207 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
7208 and add a second splitter to handle the remaining cases.
7210 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7212 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
7214 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
7216 * cfgexpand.c (label_rtx_for_bb): Change type to
7217 hash_map<basic_block, rtx_code_label *> *.
7218 (expand_gimple_basic_block): Adjust.
7219 (pass_expand::execute): Likewise.
7221 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
7223 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
7224 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
7225 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
7226 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
7227 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
7228 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
7229 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
7232 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
7234 * alloc-pool.c: Include coretypes.h.
7235 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
7236 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
7237 hash_set instead of htab.
7238 * ggc-page.c (in_gc): New variable.
7239 (ggc_free): Do nothing if a collection is taking place.
7240 (ggc_collect): Set in_gc appropriately.
7241 * ggc.h (gt_ggc_mx(const char *)): New function.
7242 (gt_pch_nx(const char *)): Likewise.
7243 (gt_ggc_mx(int)): Likewise.
7244 (gt_pch_nx(int)): Likewise.
7245 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
7246 (hash_map::hash_entry::pch_nx): Likewise.
7247 (hash_map::hash_entry::pch_nx_helper): Likewise.
7248 (hash_map::hash_map): Adjust.
7249 (hash_map::create_ggc): New function.
7250 (gt_ggc_mx): Likewise.
7251 (gt_pch_nx): Likewise.
7252 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
7253 (default_hashset_traits::pch_nx): Likewise.
7254 (hash_set::hash_entry::ggc_mx): Likewise.
7255 (hash_set::hash_entry::pch_nx): Likewise.
7256 (hash_set::hash_entry::pch_nx_helper): Likewise.
7257 (hash_set::hash_set): Adjust.
7258 (hash_set::create_ggc): New function.
7259 (hash_set::elements): Likewise.
7260 (gt_ggc_mx): Likewise.
7261 (gt_pch_nx): Likewise.
7262 * hash-table.h (hash_table::hash_table): Adjust.
7263 (hash_table::m_ggc): New member.
7264 (hash_table::~hash_table): Adjust.
7265 (hash_table::expand): Likewise.
7266 (hash_table::empty): Likewise.
7267 (gt_ggc_mx): New function.
7268 (hashtab_entry_note_pointers): Likewise.
7269 (gt_pch_nx): Likewise.
7271 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7273 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
7274 built-in definition.
7275 (XVCVUXDDP_SCALE): Likewise.
7276 (XVCVDPSXDS_SCALE): Likewise.
7277 (XVCVDPUXDS_SCALE): Likewise.
7278 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7279 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
7280 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
7281 VSX_BUILTIN_XVCVDPUXDS_SCALE.
7282 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
7284 * config/rs6000/rs6000.c (real.h): New include.
7285 (rs6000_scale_v2df): New function.
7286 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
7287 (UNSPEC_VSX_XVCVUXDDP): Likewise.
7288 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
7289 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
7290 (vsx_xvcvsxddp_scale): New define_expand.
7291 (vsx_xvcvsxddp): New define_insn.
7292 (vsx_xvcvuxddp_scale): New define_expand.
7293 (vsx_xvcvuxddp): New define_insn.
7294 (vsx_xvcvdpsxds_scale): New define_expand.
7295 (vsx_xvcvdpsxds): New define_insn.
7296 (vsx_xvcvdpuxds_scale): New define_expand.
7297 (vsx_xvcvdpuxds): New define_insn.
7298 * doc/extend.texi (vec_ctf): Add new prototypes.
7299 (vec_cts): Likewise.
7300 (vec_ctu): Likewise.
7301 (vec_splat): Likewise.
7302 (vec_div): Likewise.
7303 (vec_mul): Likewise.
7305 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7308 * config/arm/neon.md
7309 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
7310 <v_cmp_result>): New pattern.
7311 * config/arm/iterators.md (NEON_VCVT): New int iterator.
7312 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
7313 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
7314 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
7315 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
7316 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
7318 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7321 * config/arm/iterators.md (FIXUORS): New code iterator.
7322 (VCVT): New int iterator.
7323 (su_optab): New code attribute.
7325 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
7327 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7329 * config/aarch64/predicates.md (aarch64_comparison_operation):
7330 New special predicate.
7331 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
7332 aarch64_comparison_operation instead of matching an operator.
7333 Update operand numbers.
7334 (csinc3<mode>_insn): Likewise.
7335 (*csinv3<mode>_insn): Likewise.
7336 (*csneg3<mode>_insn): Likewise.
7337 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
7338 * config/aarch64/aarch64.c (aarch64_get_condition_code):
7339 Return -1 instead of aborting on invalid condition codes.
7340 (aarch64_print_operand): Update aarch64_get_condition_code callsites
7341 to assert that the returned condition code is valid.
7342 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
7344 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
7346 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
7347 tree.def, and gimple.def
7349 2014-09-02 Jakub Jelinek <jakub@redhat.com>
7350 Balaji V. Iyer <balaji.v.iyer@intel.com>
7351 Igor Zamyatin <igor.zamyatin@intel.com>
7353 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
7354 (__cilkrts_cilk_for_64): Likewise.
7355 * cilk-common.c (declare_cilk_for_builtin): New function.
7356 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
7357 __cilkrts_cilk_for_64 bultins.
7358 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
7360 (cilk_for_32_fndecl): New define.
7361 (cilk_for_64_fndecl): Likewise.
7362 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
7363 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
7364 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
7365 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
7366 GF_OMP_FOR_COMBINED_INTO.
7367 * gimplify.c (gimplify_scan_omp_clauses): Added
7368 OMP_CLAUSE__CILK_FOR_COUNT_ case.
7369 (gimplify_adjust_omp_clauses): Ditto.
7370 (gimplify_omp_for): Added CILK_FOR case.
7371 (gimplify_expr): Ditto.
7372 * omp-low.c: Include cilk.h.
7373 (extract_omp_for_data): Set appropriate kind for
7374 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
7375 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
7376 (create_omp_child_function_name): Added second argument to handle
7378 (cilk_for_check_loop_diff_type): New function.
7379 (expand_cilk_for_call): Likewise.
7380 (expand_cilk_for): Likewise.
7381 (create_omp_child_function): Set cilk_for_count; handle the cases when
7382 it is true; call create_omp_child_function_name with second argument.
7383 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
7384 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
7385 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
7386 * tree-nested.c (convert_nonlocal_omp_clauses): Added
7387 OMP_CLAUSE__CILK_FOR_COUNT_ case.
7388 (convert_local_omp_clauses): Ditto.
7389 * tree-pretty-print.c (dump_omp_clause): Added
7390 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
7391 (dump_generic_node): Added CILK_FOR case.
7392 * tree.c (omp_clause_num_ops): New element
7393 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
7394 (omp_clause_code_name): New element _Cilk_for_count_.
7395 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
7396 * tree.def: Add tree code for CILK_FOR.
7398 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
7400 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
7401 (ppc403-compare): Add "exts with dot" case.
7402 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
7403 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
7404 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
7405 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
7406 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
7407 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
7408 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
7409 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
7410 cell-cmp-microcoded): Similarly.
7411 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
7412 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
7413 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
7414 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
7415 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
7416 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
7417 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
7418 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
7419 (power6-compare): Add "exts with dot" case.
7420 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
7421 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
7422 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
7424 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
7425 if avoiding Cell microcode.
7426 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
7427 (is_cracked_insn): Ditto.
7428 (insn_must_be_first_in_group): Ditto.
7429 * config/rs6000/rs6000.md (dot): Adjust comment.
7430 (cell_micro): Handle exts+dot.
7431 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
7432 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
7433 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
7434 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
7435 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
7436 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
7437 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
7439 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
7441 * config/rs6000/rs6000.md (QHSI): Delete.
7442 (EXTQI, EXTHI, EXTSI): New mode iterators.
7443 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
7444 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
7445 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
7446 9 anonymous instructions, and 8 splitters): Delete.
7447 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
7448 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
7449 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
7450 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
7451 *zero_extendsi<mode>2_dot2): New.
7453 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
7455 * config/rs6000/rs6000.md (any_extend): New code iterator.
7456 (u, su): New code attributes.
7457 (dmode, DMODE): New mode attributes.
7458 (<su>mul<mode>3_highpart): New.
7459 (*<su>mul<mode>3_highpart): New.
7460 (<su>mulsi3_highpart_le): New.
7461 (<su>muldi3_highpart_le): New.
7462 (<su>mulsi3_highpart_64): New.
7463 (<u>mul<mode><dmode>3): New.
7464 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
7466 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
7469 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
7471 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
7472 *mulsi3_internal2, and two splitters): Delete.
7473 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
7475 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
7477 2014-09-02 Richard Biener <rguenther@suse.de>
7479 PR tree-optimization/62695
7480 * tree-ssa-structalias.c (find_func_clobbers): Add missing
7483 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
7486 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
7488 2014-09-01 Andi Kleen <ak@linux.intel.com>
7490 * file-find.c (add_prefix_begin): Add.
7491 (do_add_prefix): Rename from add_prefix with first argument.
7492 (add_prefix): Add new wrapper.
7493 * file-find.h (add_prefix_begin): Add.
7494 * gcc-ar.c (main): Support -B option.
7496 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
7498 * genemit.c: Include dumpfile.h.
7499 (gen_split): Print name of splitter function to dump file.
7501 2014-09-01 Richard Biener <rguenther@suse.de>
7503 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
7504 Use stack auto_vecs for constraint expressions.
7505 (find_func_aliases_for_call): Likewise.
7506 (find_func_aliases): Likewise.
7507 (find_func_clobbers): Likewise.
7509 2014-09-01 Richard Biener <rguenther@suse.de>
7511 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
7512 operands vector in most cases. Remove redundant code.
7514 2014-09-01 Olivier Hainque <hainque@adacore.com>
7516 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
7517 $WIND_BASE instead of designating a harcoded arbitrary home dir.
7518 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
7520 2014-09-01 Richard Biener <rguenther@suse.de>
7522 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
7523 copy_reference_ops_from_call, vn_nary_op_compute_hash,
7524 vn_reference_compute_hash, vn_reference_insert): Remove.
7525 (vn_reference_lookup_call): New function.
7526 * tree-ssa-sccvn.c (vn_reference_compute_hash,
7527 copy_reference_ops_from_ref, copy_reference_ops_from_call,
7528 vn_reference_insert, vn_nary_op_compute_hash): Make static.
7529 (create_reference_ops_from_call): Remove.
7530 (vn_reference_lookup_3): Properly update shared_lookup_references.
7531 (vn_reference_lookup_pieces): Assert that we updated
7532 shared_lookup_references properly.
7533 (vn_reference_lookup): Likewise.
7534 (vn_reference_lookup_call): New function.
7535 (visit_reference_op_call): Use it. Avoid re-building the
7537 (visit_reference_op_load): Remove redundant lookup.
7538 (visit_reference_op_store): Perform special tail-merging work
7539 only when possibly doing tail-merging.
7540 (visit_use): Likewise.
7541 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
7543 2014-09-01 Jakub Jelinek <jakub@redhat.com>
7546 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
7547 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
7548 (find_inc): Revert 2014-08-13 change.
7550 2014-09-01 Marek Polacek <polacek@redhat.com>
7553 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
7554 Change the type of V to unsigned HOST_WIDE_INT.
7556 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
7558 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
7559 the size of byte markers.
7560 (do_shift_rotate): Fix confusion between host, target and marker byte
7562 (verify_symbolic_number_p): Likewise.
7563 (find_bswap_or_nop_1): Likewise.
7564 (find_bswap_or_nop): Likewise.
7566 2014-09-01 Olivier Hainque <hainque@adacore.com>
7568 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
7569 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
7571 2014-09-01 Jakub Jelinek <jakub@redhat.com>
7573 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
7574 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
7575 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
7577 2014-09-01 Yury Gribov <y.gribov@samsung.com>
7581 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
7582 (build_check_stmt): Likewise.
7583 (instrument_strlen_call): Likewise.
7584 (asan_expand_check_ifn): Likewise and fix types.
7585 (maybe_cast_to_ptrmode): New function.
7587 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7589 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
7591 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
7593 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
7595 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
7597 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
7598 prefix to function labels when generating fast indirect calls.
7600 2014-08-30 David Malcolm <dmalcolm@redhat.com>
7604 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
7605 param back from rtx_insn * to rtx. Rename param from "label" to
7606 "label_or_return", reintroducing "label" as an rtx_insn * after
7607 we've ensured it's not a RETURN.
7608 (first_active_target_insn): Likewise for return type and param;
7609 add a checked cast to rtx_insn * once we've ensured "insn" is not
7611 (steal_delay_list_from_target): Convert param "pnew_thread" back
7612 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
7614 (own_thread_p): Convert param "thread" back from an rtx_insn * to
7615 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
7616 cast once we've established we're not dealing with a RETURN,
7617 renaming subsequent uses of "thread" to "thread_insn".
7618 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
7620 (follow_jumps): Convert return type and param "label" from
7621 rtx_insn * back to rtx. Move initialization of "value" to after
7622 the handling for ANY_RETURN_P, adding a checked cast there to
7623 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
7624 rename to "this_label_or_return", reintroducing "this_label" as
7625 an rtx_insn * once we've handled the case where it could be an
7627 (fill_slots_from_thread): Rename param "thread" to
7628 "thread_or_return", converting from an rtx_insn * back to an rtx.
7629 Reintroduce name "thread" as an rtx_insn * local with a checked
7630 cast once we've handled the case of it being an ANY_RETURN_P.
7631 Convert local "new_thread" from an rtx_insn * back to an rtx.
7632 Add a checked cast when assigning to "trial" from "new_thread".
7633 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
7634 checked cast to rtx_insn * from "new_thread" when invoking
7636 (fill_eager_delay_slots): Convert locals "target_label",
7637 "insn_at_target" from rtx_insn * back to rtx.
7638 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
7639 (relax_delay_slots): Convert locals "trial", "target_label" from
7640 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
7641 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
7642 invoking update_block.
7643 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
7644 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
7646 * resource.h (mark_target_live_regs): Undo erroneous conversion
7647 of second param of r214693, converting it back from rtx_insn * to
7648 rtx, since it could be a RETURN.
7650 * resource.c (find_dead_or_set_registers): Similarly, convert
7651 param "jump_target" back from an rtx_insn ** to an rtx *, as we
7652 could be writing back a RETURN. Rename local rtx_insn * "next" to
7653 "next_insn", and introduce "lab_or_return" as a local rtx,
7654 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
7655 (mark_target_live_regs): Undo erroneous conversion
7656 of second param of r214693, converting it back from rtx_insn * to
7657 rtx, since it could be a RETURN. Rename it from "target" to
7658 "target_maybe_return", reintroducing the name "target" as a local
7659 rtx_insn * with a checked cast, after we've handled the case of
7662 2014-08-29 DJ Delorie <dj@redhat.com>
7664 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
7665 pointer size up to a power of two.
7666 * defaults.h (DWARF2_ADDR_SIZE): Round up.
7667 (POINTER_SIZE_UNITS): New, rounded up value.
7668 * dwarf2asm.c (size_of_encoded_value): Use it.
7669 (dw2_output_indirect_constant_1): Likewise.
7670 * expmed.c (init_expmed_one_conv): We now know the sizes of
7672 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
7673 * optabs.c (expand_float): Use precision, not size.
7674 (expand_fix): Likewise.
7675 * simplify-rtx (simplify_unary_operation_1): Likewise.
7676 * tree-dfa.c (get_ref_base_and_extent): Likewise.
7677 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
7678 (default_assemble_integer) Likewise.
7679 (dump_tm_clone_pairs): Likewise.
7680 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
7681 * var-tracking.c (adjust_mems): Allow partial-int modes also.
7682 (prepare_call_arguments): Likewise.
7683 * stor-layout.c (finalize_type_size): Preserve precision.
7684 (layout_type): Use precision, not size.
7686 * expr.c (convert_move): If the target has an explicit converter,
7689 2014-08-29 David Malcolm <dmalcolm@redhat.com>
7691 * gdbinit.in: Skip various inline functions in rtl.h when
7694 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
7697 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
7699 2014-08-29 Richard Biener <rguenther@suse.de>
7701 PR tree-optimization/62291
7702 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
7703 exactly the vector size needed and use quick_push.
7704 (phi_translate_1): Adjust comment.
7705 (valid_in_sets): Remove block argument and remove pointless
7707 (dependent_clean): Adjust for removal of block argument.
7709 (compute_antic_aux): Likewise.
7710 (compute_partial_antic_aux): Likewise.
7712 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
7713 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7714 Anna Tikhonova <anna.tikhonova@intel.com>
7715 Ilya Tocar <ilya.tocar@intel.com>
7716 Andrey Turetskiy <andrey.turetskiy@intel.com>
7717 Ilya Verbin <ilya.verbin@intel.com>
7718 Kirill Yukhin <kirill.yukhin@intel.com>
7719 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7721 * config/i386/sse.md
7722 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
7723 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
7724 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
7725 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
7727 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
7728 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7729 Anna Tikhonova <anna.tikhonova@intel.com>
7730 Ilya Tocar <ilya.tocar@intel.com>
7731 Andrey Turetskiy <andrey.turetskiy@intel.com>
7732 Ilya Verbin <ilya.verbin@intel.com>
7733 Kirill Yukhin <kirill.yukhin@intel.com>
7734 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7736 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
7737 * config/i386/sse.md
7738 (define_mode_iterator VI4_128_8_256): New.
7739 (define_mode_iterator VI2_128_4_256): Ditto.
7740 (define_mode_iterator PMOV_DST_MODE): Rename into
7741 (define_mode_iterator PMOV_DST_MODE_1): this.
7742 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
7743 Use PMOV_DST_MODE_1 mode iterator.
7744 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
7746 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
7748 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
7749 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
7750 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
7751 (define_mode_iterator PMOV_DST_MODE_2): New.
7752 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
7753 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
7754 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
7756 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
7757 (define_mode_attr pmov_dst_3): Ditto.
7758 (define_mode_attr pmov_dst_zeroed_3): Ditto.
7759 (define_mode_attr pmov_suff_3): Ditto.
7760 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
7761 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
7762 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
7763 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
7764 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
7765 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
7766 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
7767 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
7768 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
7769 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
7770 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
7771 (define_mode_attr pmov_dst_4): Ditto.
7772 (define_mode_attr pmov_dst_zeroed_4): Ditto.
7773 (define_mode_attr pmov_suff_4): Ditto.
7774 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
7775 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
7776 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
7777 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
7778 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
7779 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
7780 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
7781 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
7782 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
7783 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
7784 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
7786 2014-08-29 Richard Biener <rguenther@suse.de>
7788 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
7789 NON_LVALUE_EXPR in gimple.
7791 2014-08-29 Richard Biener <rguenther@suse.de>
7794 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
7795 from previous refactoring.
7796 (gimple_fold_builtin_strncpy): Likewise.
7798 2014-08-29 David Malcolm <dmalcolm@redhat.com>
7801 * function.c (assign_parm_setup_reg): Remove erroneous checked
7802 cast to rtx_insn * on result of gen_extend_insn in favor of
7803 introducing a new local rtx "pat".
7805 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7807 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
7809 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
7811 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7813 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
7814 (next_insn): Likewise.
7815 * emit-rtl.c (next_insn): Likewise.
7816 (previous_insn): Likewise.
7817 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
7818 "insn" and "next" from rtx to rtx_insn *.
7819 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
7820 "insn", "insn1", "vliw_start", "prologue_end_note",
7821 "last_insn_in_packet".
7823 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7825 * shrink-wrap.h (active_insn_between): Strengthen both params from
7827 * function.c (active_insn_between): Likewise.
7829 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7831 * genattr.c (main): When writing out insn-attr.h, strengthen param
7832 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
7833 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
7834 writing out the definition of dfa_clear_single_insn_cache to the
7835 generated insn-automata.c
7837 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7839 * resource.h (clear_hashed_info_for_insn): Strengthen param from
7841 (incr_ticks_for_insn): Likewise.
7842 (init_resource_info): Likewise.
7844 * resource.c (init_resource_info): Likewise.
7845 (clear_hashed_info_for_insn): Likewise.
7846 (incr_ticks_for_insn): Likewise.
7848 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
7850 (steal_delay_list_from_target): Use methods of "seq".
7851 (try_merge_delay_insns): Use methods of "merged_insns".
7852 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
7853 (reorg_redirect_jump): Likewise for param "jump".
7855 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7857 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
7859 * config/s390/s390.c (s390_split_branches): Eliminate top-level
7860 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
7862 (s390_mainpool_finish): In three places, split out a local rtx
7863 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
7864 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
7865 and split another local rtx "insn" out into rtx "pat" and
7867 * config/sh/sh.c (output_branchy_insn): Rather than working
7868 directly on operands[9], introduce local rtx_code_label *
7869 variables named "lab" in two places, working on them, and then
7870 assigning them to operands[9], so that the intervening operations
7871 are known by the type system to be on insns.
7873 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7875 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
7878 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
7879 in invocation of INSN_HAS_LOCATION.
7881 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7883 * config/rs6000/altivec.h (vec_xl): New #define.
7884 (vec_xst): Likewise.
7885 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
7886 (XXSPLTD_V2DI): Likewise.
7887 (DIV_V2DI): Likewise.
7888 (UDIV_V2DI): Likewise.
7889 (MUL_V2DI): Likewise.
7890 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7891 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
7892 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
7893 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
7894 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
7895 (UNSPEC_VSX_DIVSD): Likewise.
7896 (UNSPEC_VSX_DIVUD): Likewise.
7897 (UNSPEC_VSX_MULSD): Likewise.
7898 (vsx_mul_v2di): New insn-and-split.
7899 (vsx_div_v2di): Likewise.
7900 (vsx_udiv_v2di): Likewise.
7901 (vsx_xxspltd_<mode>): New insn.
7903 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7905 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
7907 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
7908 (NEXT_INSN): Likewise.
7909 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
7910 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
7912 (no_labels_between_p): Likewise for both params.
7914 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
7915 cast when using NEXT_INSN on operands[2].
7916 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
7917 "insn" from rtx to rtx_insn *, adding a checked cast.
7918 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
7920 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
7922 (arc_text_label): Likewise for param "insn".
7923 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
7925 (arc_ccfsm_record_condition): Likewise for param "jump".
7926 (arc_text_label): Likewise for local "label".
7927 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
7928 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
7929 a method for typesafety. Add a checked cast.
7930 * config/arc/constraints.md (Clb): Add a checked cast when getting
7931 the CODE_LABEL from a LABEL_REF.
7932 * config/arm/arm.c (require_pic_register): Strengthen locals
7933 "seq", "insn" from rtx to rtx_insn *.
7934 (create_fix_barrier): Likewise for locals "selected", "next".
7935 (thumb1_reorg): Likewise for locals "prev", "insn".
7936 (arm_expand_prologue): Likewise for local "last".
7937 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
7939 (thumb2_output_casesi): Likewise for operands[2].
7940 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
7941 strengthen local "insn" from rtx to rtx_insn *.
7942 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
7943 type and param "insn".
7944 (find_prev_insn_start): Likewise.
7945 (hwloop_optimize): Likewise for locals "insn", "last_insn",
7947 (gen_one_bundle): Likewise for loal "t".
7948 (find_load): Likewise for param "insn".
7949 (workaround_speculation): Likewise for locals "insn", "next",
7950 "target", "next_tgt".
7951 * config/c6x/c6x.c (assign_reservations): Likewise for both params
7952 and for locals "insn", "within", "last".
7953 (count_unit_reqs): Likewise for params "head", "tail" and local
7955 (try_rename_operands): Likewise for params "head", "tail".
7956 (reshuffle_units): Likewise for locals "head", "tail", "insn".
7957 (struct c6x_sched_context): Likewise for fields
7958 "last_scheduled_insn", "last_scheduled_iter0".
7959 (init_sched_state): Replace NULL_RTX with NULL.
7960 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
7962 (undo_split_delayed_nonbranch): Likewise for param and for local
7964 (conditionalize_after_sched): Likewise for local "insn".
7965 (bb_earliest_end_cycle): Likewise.
7966 (filter_insns_above): Likewise for locals "insn", "next".
7967 (hwloop_optimize): Remove redundant checked cast.
7968 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
7969 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
7971 (cris_simple_epilogue): Likewise.
7972 (cris_expand_prologue): Likewise.
7973 (cris_expand_epilogue): Likewise.
7974 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
7975 local "insn" from rtx to rtx_insn *.
7976 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
7977 (struct frv_packet_group): Likewise for the elements within array
7978 fields "insns", "sorted", and for field "nop".
7979 (frv_packet): Likewise for the elements within array field
7981 (frv_add_insn_to_packet): Likewise for param "insn".
7982 (frv_insert_nop_in_packet): Likewise for param "insn" and local
7984 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
7985 (frv_sort_insn_group_1): Likewise for local "insn".
7986 (frv_optimize_membar_local): Likewise.
7987 (frv_align_label): Likewise for locals "x", "last", "barrier",
7989 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
7991 (ia64_sched_init): Likewise for local "insn".
7992 (scheduled_good_insn): Likewise for param "last".
7993 (struct _ia64_sched_context): Likewise for field
7994 "last_scheduled_insn".
7995 (ia64_init_sched_context): Replace NULL_RTX with NULL.
7996 (struct bundle_state): Likewise for field "insn".
7997 (issue_nops_and_insn): Likewise for param "insn".
7998 (get_next_important_insn): Likewise for return type and both
8000 (ia64_add_bundle_selector_before): Likewise for param "insn".
8001 (bundling): Likewise for params "prev_head_insn", "tail" and
8002 locals "insn", "next_insn", "b". Eliminate top-level local rtx
8003 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
8004 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
8005 Strengthen final param from rtx to rtx_insn *.
8006 (iq2000_move_1word): Likewise for second param.
8007 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
8008 param "cur_insn" and local "next_insn".
8009 (iq2000_move_1word): Likewise for param "insn".
8010 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
8011 casts when using NEXT_INSN on operands[1].
8012 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
8013 "insn" from rtx to rtx_insn *.
8014 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
8015 "x", introducing local rtx_insn * "insn" for when working with the
8016 CODE_LABEL of the LABEL_REF.
8017 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
8019 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
8021 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
8023 (conditionalize_block): Likewise for return type and param.
8024 (mcore_is_dead): Likewise for param "first" and local "insn".
8025 (emit_new_cond_insn): Likewise for return type.
8026 (conditionalize_block): Likewise for return type, param, and
8027 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
8029 (conditionalize_optimization): Likewise for local "insn".
8030 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
8032 * config/microblaze/microblaze.md: Add checked casts when using
8034 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
8035 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
8036 and rtx_insn * "insn".
8037 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
8038 checked cast when using NEXT_INSN on operands[2].
8039 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
8040 local "insn" from rtx to rtx_insn *.
8041 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
8043 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
8044 Add a checked cast when using NEXT_INSN on operands[1].
8045 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
8047 (pa_output_cbranch): Likewise for final param.
8048 (pa_output_lbranch): Likewise for second param.
8049 (pa_output_bb): Likewise for third param.
8050 (pa_output_bvb): Likewise.
8051 (pa_output_dbra): Likewise for second param.
8052 (pa_output_movb): Likewise.
8053 (pa_output_parallel_movb): Likewise.
8054 (pa_output_parallel_addb): Likewise.
8055 (pa_output_millicode_call): Likewise for first param.
8056 (pa_output_mul_insn): Likewise for second param.
8057 (pa_output_div_insn): Likewise for third param.
8058 (pa_output_mod_insn): Likewise for second param.
8059 (pa_jump_in_call_delay): Likewise for param.
8060 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
8061 (pa_output_div_insn): Likewise.
8062 (pa_output_mod_insn): Likewise.
8063 (pa_output_cbranch): Likewise.
8064 (pa_output_lbranch): Likewise.
8065 (pa_output_bb): Likewise.
8066 (pa_output_bvb): Likewise.
8067 (pa_output_dbra): Likewise.
8068 (pa_output_movb): Likewise.
8069 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
8070 to simplify and for typesafety.
8071 (pa_output_call): Use method of rtx_sequence *.
8072 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
8073 (pa_jump_in_call_delay): Likewise.
8074 (pa_output_parallel_movb): Likewise.
8075 (pa_output_parallel_addb): Likewise.
8076 (pa_following_call): Likewise.
8077 (pa_combine_instructions): Likewise for locals "anchor",
8079 (pa_can_combine_p): Likewise for params "anchor", "floater" and
8080 locals "start", "end".
8081 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
8082 param "insn" and local "local_insn".
8083 (picochip_final_prescan_insn): Likewise for local "local_insn".
8084 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
8086 (uses_TOC): Likewise.
8087 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
8088 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
8089 splitting out to more tightly-scoped locals, 3 as rtx and one as
8091 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
8093 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
8095 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
8097 (fixup_addr_diff_vecs): Likewise.
8098 (reg_unused_after): Likewise for param 2.
8099 (sh_can_redirect_branch): Likewise for both params.
8100 (check_use_sfunc_addr): Likewise for param 1.
8101 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
8102 (find_barrier): Likewise for local "last_got".
8103 (gen_block_redirect): Likewise for return type, param "jump" and
8104 locals "prev", "scan", "next", "insn".
8105 (struct far_branch): Likewise for fields "near_label",
8106 "insert_place", "far_label".
8107 (gen_far_branch): Likewise for local "jump".
8108 (fixup_addr_diff_vecs): Likewise for param "first" and locals
8110 (barrier_align): Likewise for param and for locals "prev", "x".
8111 Introduce local rtx_sequence * "prev_seq" and use insn method for
8112 typesafety and clarity.
8113 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
8114 (get_dest_uid): Likewise for local "dest".
8115 (split_branches): Likewise for locals "next", "beyond", "label",
8116 "block", "far_label". Add checked casts when assigning to
8117 bp->far_label and "far_label".
8118 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
8119 (sequence_insn_p): Likewise.
8120 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
8121 more loop-scoped rtx "insn" when walking LABEL_REFS.
8122 (sh_can_redirect_branch): Strengthen both params from rtx to
8124 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
8125 new local rtx_sequence * "seq" via a dyn_cast, and use a method
8126 for clarity and typesafety.
8127 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
8128 "insn" from rtx to rtx_insn *.
8129 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
8130 when using NEXT_INSN on the CODE_LABEL in operands[2].
8131 (define_insn "casesi_worker_2"): Likewise.
8132 (define_insn "casesi_shift_media"): Likewise.
8133 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
8135 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
8136 Strengthen field "insn" from rtx to rtx_insn *.
8137 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
8138 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
8139 param "start_insn" and local "start_insn".
8140 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
8142 (find_set_of_reg_bb): Likewise for param "insn".
8143 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
8144 (trace_reg_uses): Likewise for param "start_insn".
8145 (sh_treg_combine::cbranch_trace): Likewise for field
8147 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
8149 (sh_treg_combine::record_set_of_reg): Likewise for param
8150 "start_insn" and local "i".
8151 (sh_treg_combine::can_remove_cstore): Likewise for local
8153 (sh_treg_combine::try_optimize_cbranch): Likewise for param
8155 (sh_treg_combine::execute): Likewise for local "i".
8156 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
8158 (sparc_check_64): Likewise for second param.
8159 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
8160 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
8161 dyn_cast, using its insn method for typesafety and clarity.
8162 (empty_delay_slot): Strengthen param "insn" from rtx to
8164 (set_extends): Likewise.
8165 (sparc_check_64): Likewise.
8166 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
8167 for locals "seq", "last_insn".
8168 (combine_bnp): Likewise for param "insn".
8169 (xstormy16_reorg): Likewise for local "insn".
8170 * config/v850/v850.c (substitute_ep_register): Likewise for params
8171 "first_insn", "last_insn" and local "insn".
8172 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
8173 elements of "regs" array, and local "insn".
8174 * except.c (emit_note_eh_region_end): Likewise for param "insn".
8175 * final.c (final_sequence): Strengthen this global from rtx to
8177 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
8179 (final_scan_insn): Update assignment to "final_sequence" to be
8180 from "seq", the cast version of "body", for type-safety.
8181 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
8182 "insns" from rtx to rtx_insn *.
8183 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
8184 * genattr.c (main): When writing out generated insn-attr.h,
8185 strengthen params 1 and 3 of eligible_for_delay,
8186 eligible_for_annul_true, eligible_for_annul_false from rtx to
8188 * genattrtab.c (write_eligible_delay): Likewise when writing out
8189 generated insn-attrtab.c; also local "insn" the generated
8191 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
8193 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
8194 "start_label" from rtx to rtx_insn *.
8195 * ira.c (decrease_live_ranges_number): Likewise for local "p".
8196 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
8197 "insns" and local "insn".
8198 (validate_equiv_mem): Likewise for param "start" and local "insn".
8199 (memref_used_between_p): Likewise for params "start", "end" and
8201 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
8203 * loop-doloop.c (doloop_optimize): Within region guarded by
8204 INSN_P (doloop_pat), introduce a new local rtx_insn *
8205 "doloop_insn" via a checked cast, and use it for typesafety,
8206 eventually writing the value back into doloop_pat.
8207 * output.h (final_sequence): Strengthen this global from rtx to
8209 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
8210 reintroducing "insn" as an rtx_insn * via a checked cast.
8211 Strengthen param "attempt" and local "new_insn"from rtx to
8213 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
8215 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
8216 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
8217 "p" in favor of more tightly-scoped replacements, sometimes rtx
8218 and sometimes rtx_insn *, as appropriate.
8219 (delete_output_reload): Eliminate top-level rtx "i1", splitting
8220 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
8221 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
8222 local "trial" from rtx to rtx_insn *.
8223 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
8224 rtx to rtx_insn *. Strenghten local "pat" from rtx to
8225 rtx_sequence * and use methods for clarity and typesafety.
8226 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
8227 rtx to rtx_insn *. Strenghten local "li" from rtx to
8228 rtx_insn_list * and use its methods for clarity and typesafety.
8229 (steal_delay_list_from_target): Strengthen param "insn" from rtx
8231 (steal_delay_list_from_fallthrough): Likewise.
8232 (try_merge_delay_insns): Likewise for param "thread" and locals
8233 "trial", "next_trial", "delay_insn".
8234 (redundant_insn): Likewise for param "target" and local "trial".
8235 (own_thread_p): Likewise for param "thread" and locals
8236 "active_insn", "insn".
8237 (get_label_before): Likewise for param "insn".
8238 (fill_simple_delay_slots): Likewise for local "new_label"; use
8239 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
8240 (label_before_next_insn): Strengthen return type and local "insn"
8241 from rtx to rtx_insn *.
8242 (relax_delay_slots): Likewise for locals "other", "tmp".
8243 (make_return_insns): Likewise for param "first" and locals "insn",
8244 "jump_insn", "prev". Move declaration of "pat" to its assignment
8245 and strengthen from rtx to rtx_sequence *. Use its methods for
8246 clarity and typesafety.
8247 * rtlanal.c (no_labels_between_p): Strengthen params from
8248 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
8250 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
8251 from const_rtx to const rtx_insn *.
8252 (reg_set_between_p): Rename param "from_insn" to
8253 "uncast_from_insn", and reintroduce "from_insn" as a
8254 const rtx_insn * via a checked cast.
8255 (modified_between_p): Likewise for param "start" as "uncast_start".
8256 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
8257 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
8258 "tmp", head" from rtx to rtx_insn *.
8259 (recompute_rev_top_order): Likewise for local "insn".
8260 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
8261 * store-motion.c (build_store_vectors): Likewise for local "insn".
8262 Strengthen local "st" from rtx to rtx_insn_list * and use methods
8263 for clarity and typesafety.
8264 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
8266 (computation_cost): Likewise for local "seq".
8267 (get_address_cost): Likewise.
8269 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8271 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
8273 (label_is_jump_target_p): Likewise for second param.
8275 * rtlanal.c (tablejump_p): Likewise for param "insn".
8276 (label_is_jump_target_p): Likewise for param "jump_insn".
8278 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8280 * rtl.h (find_first_parameter_load): Strengthen return type and
8281 both params from rtx to rtx_insn *.
8282 * rtlanal.c (find_first_parameter_load): Strengthen return type,
8283 both params and locals "before", "first_set" from rtx to
8284 rtx_insn *. Remove now-redundant cast.
8285 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
8287 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8289 * rtl.h (find_last_value): Delete.
8290 * rtlanal.c (find_last_value): Delete.
8292 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8294 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
8295 from rtx to rtx_insn *.
8296 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
8297 rtx "note" with new local rtx_insn * "new_head" when calculating
8298 head insn of new basic block.
8299 * combine.c (combine_split_insns): Strengthen return type and local
8300 "ret" from rtx to rtx_insn *.
8301 (likely_spilled_retval_p): Likewise for locals "use" and "p".
8302 (try_combine): Eliminate local "m_split", splitting into new
8303 locals "m_split_insn" and "m_split_pat".
8304 (find_split_point): Strengthen local "seq" from rtx into
8306 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
8307 locals "label", "branch".
8308 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
8310 (define_expand "umulsi3_highpart"): Likewise for local "insn".
8311 * dse.c (note_add_store_info): Likewise for fields "first",
8313 (note_add_store): Likewise for local "insn".
8314 (emit_inc_dec_insn_before): Likewise for locals "insn",
8316 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
8317 (replace_read): Likewise for locals "insns", "this_insn".
8318 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
8319 (notice_eh_throw): Likewise for param "insn".
8320 (before_next_cfi_note): Likewise for return type, param, and local
8322 (connect_traces): Likewise for local "note".
8323 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
8324 (verify_rtl_sharing): Likewise.
8325 (unshare_all_rtl_in_chain): Likewise for param "insn".
8326 (get_first_nonnote_insn): Likewise for local "insn".
8327 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
8328 "seq" and use its methods to clarify things.
8329 (next_insn): Strengthen return type from rtx to rtx_insn *.
8330 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
8331 local rtx_insn * using a checked cast, dropping a checked cast
8332 made redundant by this change. Use a cast to and method of
8333 rtx_sequence to clarify the code.
8334 (previous_insn): Rename param "insn" to "uncast_insn" and
8335 reintroduce "insn" as a local rtx_insn * using a checked cast,
8336 dropping a checked cast made redundant by this change. Use a cast
8337 to and method of rtx_sequence to clarify the code.
8338 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
8339 reintroduce "insn" as a local rtx_insn * using a checked cast,
8340 dropping a checked cast made redundant by this change.
8341 (next_nonnote_insn_bb): Likewise.
8342 (prev_nonnote_insn): Likewise.
8343 (prev_nonnote_insn_bb): Likewise.
8344 (next_nondebug_insn): Likewise.
8345 (prev_nondebug_insn): Likewise.
8346 (next_nonnote_nondebug_insn): Likewise.
8347 (prev_nonnote_nondebug_insn): Likewise.
8348 (next_real_insn): Likewise.
8349 (prev_real_insn): Likewise.
8350 (next_active_insn): Likewise.
8351 (prev_active_insn): Likewise.
8352 (next_cc0_user): Likewise. Use rtx_sequence and a method for
8354 (prev_cc0_setter): Likewise.
8355 (try_split): Rename param "trial" to "uncast_trial" and
8356 reintroduce "insn" as a local rtx_insn * using a checked cast,
8357 dropping checked casts made redundant by this change.
8358 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
8360 (remove_insn): Rename param "insn" to "uncast_insn" and
8361 reintroduce "insn" as a local rtx_insn * using a checked cast.
8362 (emit_pattern_after_setloc): Likewise for param "after", as
8364 (emit_pattern_after): Likewise. Strengthen local "prev" from
8366 (emit_pattern_before_setloc): Rename param "before" to
8367 "uncast_before" and reintroduce "before" as a local rtx_insn *
8368 using a checked cast. Strengthen locals "first", "last" from
8370 (emit_pattern_before): Likewise rename/cast param "before" to
8371 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
8372 * except.c (copy_reg_eh_region_note_forward): Strengthen param
8373 "first" and local "insn" from rtx to rtx_insn *.
8374 (copy_reg_eh_region_note_backward): Likewise for param "last"
8376 * expr.c (fixup_args_size_notes): Rename param "last" to
8377 "uncast_last" and reintroduce "last" as a local rtx_insn *
8378 using a checked cast. Strengthen local "insn" from rtx to
8380 * function.c (set_insn_locations): Strengthen param "insn" from
8382 (record_insns): Likewise for param "insns" and local "tmp".
8383 (active_insn_between): Rename param "tail" to
8384 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
8385 using a checked cast.
8386 (thread_prologue_and_epilogue_insns): Split out top-level local
8387 rtx "seq" into three different rtx_insn * locals. Strengthen
8388 local "prologue_seq" from rtx to rtx_insn *.
8389 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
8390 from rtx to rtx_insn *.
8391 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
8392 (priority): Likewise for locals "prev_first", "twin".
8393 (setup_insn_max_reg_pressure): Likewise for param "after".
8394 (sched_setup_bb_reg_pressure_info): Likewise.
8395 (no_real_insns_p): Strengthen params from const_rtx to
8397 (schedule_block): Strengthen local "next_tail" from rtx to
8399 * ifcvt.c (find_active_insn_before): Strengthen return type and
8400 param "insn" from rtx to rtx_insn *.
8401 (find_active_insn_after): Likewise.
8402 (cond_exec_process_insns): Likewise for param "start" and local "insn".
8403 (cond_exec_process_if_block): Likewise for locals "then_start",
8404 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
8405 (noce_process_if_block): Likewise for local "jump".
8406 (merge_if_block): Likewise for two locals named "end".
8407 (cond_exec_find_if_block): Likewise for local "last_insn".
8408 * jump.c (delete_related_insns): Rename param "insn" to
8409 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
8410 checked cast. Strengthen local "p" from rtx to rtx_insn *.
8411 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
8413 (split_reg): Likewise.
8414 * lra.c (lra_process_new_insns): Likewise.
8415 * modulo-sched.c (permute_partial_schedule): Strengthen param
8416 "last" from rtx to rtx_insn *.
8417 * optabs.c (add_equal_note): Likewise for param "insns" and local
8419 (expand_binop_directly): Add checked casts to rtx_insn * within
8420 NEXT_INSN (pat) uses.
8421 (expand_unop_direct): Likewise.
8422 (maybe_emit_unop_insn): Likewise.
8423 * recog.c (peep2_attempt): Strengthen locals "last",
8424 "before_try", "x" from rtx to rtx_insn *.
8425 * reorg.c (optimize_skip): Strengthen return type and local
8426 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
8427 and locals "trial", "next_trial" from rtx to rtx_insn *.
8428 * resource.c (next_insn_no_annul): Strengthen return type and
8429 param "insn" from rtx to rtx_insn *. Use a cast to and method of
8430 rtx_sequence to clarify the code.
8431 (mark_referenced_resources): Add a checked cast to rtx_insn *
8432 within PREV_INSN (x).
8433 (find_dead_or_set_registers): Strengthen return type, param
8434 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
8435 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
8437 (mark_target_live_regs): Strengthen params "insns" and "target",
8438 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
8439 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
8441 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
8442 from rtx to rtx_insn *.
8443 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
8444 from rtx to rtx_insn *.
8445 (copy_reg_eh_region_note_backward): Likewise.
8446 (unshare_all_rtl_in_chain): Likewise for sole param.
8447 (dump_rtl_slim): Strengthen second and third params from const_rtx
8448 to const rtx_insn *.
8449 * sched-deps.c (sched_free_deps): Strengthen params "head" and
8450 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
8451 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
8452 "next_tail" from rtx to rtx_insn *.
8453 (begin_move_insn): Likewise for local "next".
8454 * sched-int.h (sched_free_deps): Likewise for first and second
8456 (no_real_insns_p): Strengthen both params from const_rtx to
8458 (sched_setup_bb_reg_pressure_info): Strengthen second params from
8460 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
8462 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
8463 and locals "insn", "tail" from const_rtx to const rtx_insn *.
8464 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
8466 (debug_rtl_slim): Strengthen params "first" and "last" from
8467 const_rtx to const rtx_insn *.
8468 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
8469 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
8470 (convert_to_simple_return): Likewise for param "returnjump".
8471 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
8473 (convert_to_simple_return): Likewise for param "returnjump".
8474 * valtrack.c (propagate_for_debug): Likewise for params
8476 * valtrack.h (propagate_for_debug): Likewise for second param.
8478 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8480 * output.h (insn_current_reference_address): Strengthen param
8481 from rtx to rtx_insn *.
8482 * final.c (insn_current_reference_address): Likewise.
8484 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8486 * basic-block.h (inside_basic_block_p): Strengthen param from
8487 const_rtx to const rtx_insn *.
8488 * cfgbuild.c (inside_basic_block_p): Likewise.
8490 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8492 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
8494 (get_trace_info): Likewise for param "insn".
8495 (save_point_p): Likewise.
8496 (maybe_record_trace_start): Likewise for both params.
8497 (maybe_record_trace_start_abnormal): Likewise.
8498 (create_trace_edges): Likewise for sole param and for three of the
8500 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
8501 to rtx_insn *, and update a call to pat->element to pat->insn.
8503 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8505 * function.h (struct expr_status): Convert field "x_forced_labels"
8506 from rtx_expr_list * to rtx_insn_list *.
8508 * cfgbuild.c (make_edges): Convert local "x" from an
8509 rtx_expr_list * to an rtx_insn_list *, replacing use of
8510 "element" method with "insn" method.
8511 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
8512 * except.c (sjlj_emit_dispatch_table): Replace use of
8513 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
8515 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
8516 rtx_expr_list * to an rtx_insn_list *, replacing use of
8517 "element" method with "insn" method.
8518 * reload1.c (set_initial_label_offsets): Likewise for local "x".
8519 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
8520 rtx_insn *, adding a checked cast. Replace use of
8521 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
8523 (expand_label): Likewise for local "label_r".
8525 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8527 * function.h (struct rtl_data): Convert field
8528 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
8530 * rtl.h (remove_node_from_insn_list): New prototype.
8532 * builtins.c (expand_builtin): When prepending to
8533 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
8535 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
8536 to rtx_insn_list *, and use its "insn" method rather than
8538 * cfgrtl.c (delete_insn): Use new function
8539 remove_node_from_insn_list rather than
8540 remove_node_from_expr_list.
8541 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
8542 to rtx_insn_list *, and use its "insn" method rather than
8544 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
8545 * reload1.c (set_initial_label_offsets): Likewise for local "x".
8546 * rtlanal.c (remove_node_from_insn_list): New function, adapted
8547 from remove_node_from_expr_list.
8548 * stmt.c (expand_label): When prepending to
8549 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
8552 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8554 * function.h (struct rtl_data): Strengthen fields "x_return_label"
8555 and "x_naked_return_label" from rtx to rtx_code_label *.
8557 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8559 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
8560 (SET_NEXT_INSN): Likewise.
8561 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
8563 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
8564 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
8565 to split out the SEQUENCE from local "bundle", strengthening the
8566 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
8567 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
8568 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
8569 and the type of the elements of the "slot" array from rtx to
8571 (reorg_split_calls): Likewise for locals "insn" and "next", and
8572 the type of the elements of the "slot" array.
8574 * config/frv/frv.c (frv_nops): Likewise for the elements of this
8576 (frv_function_prologue): Likewise for locals "insn", "next",
8578 (frv_register_nop): Introduce a local "nop_insn" to be the
8579 rtx_insn * containing rtx "nop".
8581 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
8582 used as an insn and sometimes as a pattern, so rename it to
8583 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
8584 using it where dealing with the core insn.
8586 * config/picochip/picochip.c (reorder_var_tracking_notes):
8587 Strengthen locals "insn", "next", "last_insn", "queue",
8588 "next_queue", "prev" from rtx to rtx_insn *.
8590 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
8591 the second param is an rtx_insn ** rather than an rtx **.
8592 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
8593 from rtx to rtx_sequence *, and introduce local named "sequence",
8594 using methods of rtx_sequence to clarify the code.
8595 (remove_insn): Introduce local rtx_sequence * named "sequence" and
8597 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
8598 Rename param "after" to "uncast_after", reintroducing "after" as a
8599 local rtx_insn * with a checked cast.
8600 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
8601 reintroducing "after" as a local rtx_insn * with a checked cast.
8602 Strengthen local "last" from rtx to rtx_insn * and remove the
8603 now-redundant checked casts.
8604 (copy_delay_slot_insn): Strengthen return type and param from rtx
8607 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
8608 "last" from rtx to rtx_insn *.
8610 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8612 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
8613 param from rtx to rtx_insn *.
8615 * emit-rtl.c (copy_delay_slot_insn): Likewise.
8617 * reorg.c (skip_consecutive_labels): Strengthen return type, param
8618 and local "insn" from rtx to rtx_insn *.
8619 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
8620 (unfilled_slots_next): Likewise.
8621 (function_return_label): Strengthen from rtx to rtx_code_label *.
8622 (function_simple_return_label): Likewise.
8623 (first_active_target_insn): Strengthen return type and param from
8625 (find_end_label): Strengthen return type from rtx to
8626 rtx_code_label *; strengthen locals as appropriate.
8627 (emit_delay_sequence): Strengthen return type, param "insn" and
8628 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
8629 and local "li" from rtx to rtx_insn_list *, using methods of
8630 rtx_insn_list for clarity and typesafety.
8631 (add_to_delay_list): Strengthen return type and param "insn" from
8632 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
8633 rtx_insn_list * and use methods of rtx_insn_list.
8634 (delete_from_delay_slot): Strengthen return type, param "insn",
8635 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
8636 Strengthen local "seq" from rtx to rtx_sequence *, and local
8637 "delay_list" from rtx to rtx_insn_list *, using methods of
8638 rtx_sequence for clarity and type-safety.
8639 (delete_scheduled_jump): Add checked cast when invoking
8640 delete_from_delay_slot. Strengthen local "trial" from rtx to
8642 (optimize_skip): Strengthen return type and local "delay_list"
8643 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
8645 (steal_delay_list_from_target): Strengthen return type, param
8646 "delay_list" and local "new_delay_list" from rtx to
8647 rtx_insn_list *. Strengthen param "seq" from rtx to
8648 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
8650 Split out local "temp" into multiple more-tightly scoped locals:
8651 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
8652 of rtx_insn_list and rtx_sequence for clarity and typesafety.
8653 Strengthen locals named "trial" from rtx to rtx_insn *.
8654 (steal_delay_list_from_fallthrough): Strengthen return type and
8655 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
8656 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
8657 Strengthen local "trial" from rtx to rtx_insn *.
8658 (try_merge_delay_insns): Strength local "merged_insns" from rtx
8659 to rtx_insn_list * and use its methods. Strengthen local "pat"
8660 from rtx to rtx_sequence * and use its methods. Strengthen locals
8661 "dtrial" and "new_rtx" from rtx to rtx_insn *.
8662 (get_label_before): Strengthen return type and local "label" from
8664 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
8665 "next_trial", "next", prev". Strengthen local "delay_list" from
8666 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
8668 (follow_jumps): Strengthen return type, param "label" and locals
8669 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
8670 (fill_slots_from_thread): Strengthen return type, param
8671 "delay_list" from rtx to rtx_insn_list *. Strengthen params
8672 "insn", "thread", "opposite_thread" and locals "new_thread",
8673 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
8674 "sequence" from a checked cast to rtx_sequence so that we can call
8675 steal_delay_list_from_target and steal_delay_list_from_fallthrough
8676 with an rtx_sequence *.
8677 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
8678 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
8679 Strengthen local "delay_list" from rtx to rtx_insn_list *.
8680 (relax_delay_slots): Strengthen param "first" and locals "insn",
8681 "next", "trial", "delay_insn", "target_label" from rtx to
8682 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
8683 Introduce a local "trial_seq" for PATTERN (trial) of type
8684 rtx_sequence *, in both cases using methods of rtx_sequence.
8685 (dbr_schedule): Strengthen param "first" and locals "insn",
8686 "next", "epilogue_insn" from rtx to rtx_insn *.
8688 2014-08-28 Richard Biener <rguenther@suse.de>
8690 PR tree-optimization/62283
8691 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8692 Do not peel loops for alignment where the vector loop likely
8693 doesn't run at least VF times.
8695 2014-08-28 Bin Cheng <bin.cheng@arm.com>
8697 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
8698 important_candidates. Consider all important candidates if
8699 IVS doesn't give any result. Remove check on ivs->upto.
8700 (try_add_cand_for): Call iv_ca_add_use only once.
8702 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8703 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8704 Anna Tikhonova <anna.tikhonova@intel.com>
8705 Ilya Tocar <ilya.tocar@intel.com>
8706 Andrey Turetskiy <andrey.turetskiy@intel.com>
8707 Ilya Verbin <ilya.verbin@intel.com>
8708 Kirill Yukhin <kirill.yukhin@intel.com>
8709 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8711 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
8712 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
8714 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
8715 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
8716 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
8717 (define_insn "*mul<mode>3"): Add EVEX version.
8719 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8720 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8721 Anna Tikhonova <anna.tikhonova@intel.com>
8722 Ilya Tocar <ilya.tocar@intel.com>
8723 Andrey Turetskiy <andrey.turetskiy@intel.com>
8724 Ilya Verbin <ilya.verbin@intel.com>
8725 Kirill Yukhin <kirill.yukhin@intel.com>
8726 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8728 * config/i386/sse.md
8729 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
8730 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
8731 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
8732 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
8733 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
8734 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
8735 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
8736 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
8737 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
8738 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
8739 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
8740 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
8741 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
8742 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
8743 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
8744 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
8746 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8747 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8748 Anna Tikhonova <anna.tikhonova@intel.com>
8749 Ilya Tocar <ilya.tocar@intel.com>
8750 Andrey Turetskiy <andrey.turetskiy@intel.com>
8751 Ilya Verbin <ilya.verbin@intel.com>
8752 Kirill Yukhin <kirill.yukhin@intel.com>
8753 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8755 * config/i386/sse.md
8756 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
8757 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
8758 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
8760 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8761 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8762 Anna Tikhonova <anna.tikhonova@intel.com>
8763 Ilya Tocar <ilya.tocar@intel.com>
8764 Andrey Turetskiy <andrey.turetskiy@intel.com>
8765 Ilya Verbin <ilya.verbin@intel.com>
8766 Kirill Yukhin <kirill.yukhin@intel.com>
8767 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8769 * config/i386/sse.md
8770 (define_mode_iterator VI128_256): New.
8771 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
8773 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8774 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8775 Anna Tikhonova <anna.tikhonova@intel.com>
8776 Ilya Tocar <ilya.tocar@intel.com>
8777 Andrey Turetskiy <andrey.turetskiy@intel.com>
8778 Ilya Verbin <ilya.verbin@intel.com>
8779 Kirill Yukhin <kirill.yukhin@intel.com>
8780 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8782 * config/i386/sse.md
8783 (define_mode_iterator VI8_256_512): New.
8784 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
8786 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
8787 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
8789 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
8791 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8793 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
8794 pointer to the cumulative reloc value and return the value for
8796 (compute_reloc_for_rtx): Take a const_rtx. Call
8797 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
8798 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
8799 for_each_rtx for the CONST case.
8801 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8803 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
8804 (mark_constants_in_pattern): ...this new function to iterate over
8806 (mark_constants): Update accordingly.
8808 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8810 * varasm.c: Include rtl-iter.h.
8811 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
8812 Remove the pointer to the cumulative hashval_t and just return
8813 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
8814 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8815 Accumulate the hashval_ts here instead of const_rtx_hash_1.
8817 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8819 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
8820 Give real type of data parameter. Remove return value.
8821 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
8822 to iterate over subrtxes.
8824 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8826 * var-tracking.c (use_narrower_mode_test): Turn from being a
8827 for_each_rtx callback to being a function that examines each
8829 (adjust_mems): Update accordingly.
8831 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8833 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
8834 callback to being a function that examines each subrtx itself.
8835 Remove handling of null rtxes.
8836 (add_uses): Update accordingly.
8838 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8840 * var-tracking.c: Include rtl-iter.h.
8841 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
8842 to being a function that examines each subrtx itself.
8843 (use_type): Update accordingly.
8845 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8847 * store-motion.c: Include rtl-iter.h.
8848 (extract_mentioned_regs_1): Delete.
8849 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
8850 for_each_rtx to iterate over subrtxes.
8852 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8854 * sel-sched.c: Include rtl-iter.h
8855 (count_occurrences_1): Delete.
8856 (count_occurrences_equiv): Turn rtxes into const_rtxes.
8857 Use FOR_EACH_SUBRTX rather than for_each_rtx.
8859 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8861 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
8862 * rtlanal.c (tls_referenced_p_1): Delete.
8863 (tls_referenced_p): Take a const_rtx rather than an rtx.
8864 Use FOR_EACH_SUBRTX rather than for_each_rtx.
8866 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8868 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
8869 (for_each_inc_dec): Take an rtx rather than an rtx *.
8870 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
8871 (cselib_record_sets): Likewise.
8872 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
8873 (check_for_inc_dec): Likewise.
8874 * rtlanal.c (for_each_inc_dec_ops): Delete.
8875 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
8876 rather than a pointer to the memory address. Replace
8877 for_each_inc_dec_ops argument with separate function and data
8878 arguments. Abort on non-autoinc addresses.
8879 (for_each_inc_dec_find_mem): Delete.
8880 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
8881 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
8883 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8885 * rtl.h (find_all_hard_regs): Declare.
8886 * rtlanal.c (find_all_hard_regs): New function.
8887 (record_hard_reg_uses_1): Delete.
8888 (record_hard_reg_uses): Use find_all_hard_regs.
8890 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8892 * rtl.h (replace_label_data): Delete.
8893 (replace_label): Take the old label, new label and update-nuses flag
8894 as direct arguments. Return void.
8895 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
8896 * rtlanal.c (replace_label): Update interface as above. Handle
8897 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
8898 iterator. Use FOR_EACH_SUBRTX_PTR.
8900 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8902 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
8903 with const_rtx parameters.
8904 * varasm.c (get_pool_constant): Likewise.
8905 * rtlanal.c (rtx_referenced_p_1): Delete.
8906 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8907 Assert that the rtx we're looking for is nonnull. Allow searches
8908 for constant pool SYMBOL_REFs.
8910 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8912 * reload1.c: Include rtl-iter.h.
8913 (note_reg_elim_costly): Turn from being a for_each_rtx callback
8914 to being a function that examines each subrtx itself.
8915 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
8917 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8919 * regcprop.c (cprop_find_used_regs_1): Delete.
8920 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8922 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8924 * regcprop.c: Include rtl-iter.h.
8925 (kill_value): Take a const_rtx.
8926 (kill_autoinc_value): Turn from being a for_each_rtx callback
8927 to being a function that examines each subrtx itself.
8928 (copyprop_hardreg_forward_1): Update accordingly.
8930 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8932 * reg-stack.c: Include rtl-iter.h.
8933 (subst_stack_regs_in_debug_insn): Delete.
8934 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
8935 instead of for_each_rtx.
8937 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8939 * lower-subreg.c (find_decomposable_subregs): Turn from being
8940 a for_each_rtx callback to being a function that examines each
8941 subrtx itself. Remove handling of null rtxes.
8942 (decompose_multiword_subregs): Update accordingly.
8944 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8946 * lower-subreg.c (adjust_decomposed_uses): Delete.
8947 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
8948 Remove handling of null rtxes.
8950 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8952 * lower-subreg.c: Include rtl-iter.h.
8953 (resolve_subreg_use): Turn from being a for_each_rtx callback
8954 to being a function that examines each subrtx itself. Remove
8955 handling of null rtxes.
8956 (resolve_reg_notes, resolve_simple_move): Update accordingly.
8957 (decompose_multiword_subregs): Likewise.
8959 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8961 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
8962 to being a function that examines each subrtx itself.
8963 (simplify_using_condition, simplify_using_initial_values): Update
8966 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8968 * loop-iv.c: Include rtl-iter.h.
8969 (find_single_def_src): New function.
8970 (replace_single_def_regs): Turn from being a for_each_rtx callback
8971 to being a function that examines each subrtx itself.
8972 (replace_in_expr, simplify_using_initial_values): Update accordingly.
8974 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8976 * jump.c (eh_returnjump_p_1): Delete.
8977 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
8978 Remove handling of null rtxes.
8980 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8982 * jump.c: Include rtl-iter.h.
8983 (returnjump_p_1): Delete.
8984 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
8985 Remove handling of null rtxes.
8987 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8989 * ira.c: Include rtl-iter.h.
8990 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
8991 to being a function that examines each subrtx itself. Remove
8992 handling of null rtxes.
8993 (update_equiv_regs): Update call accordingly.
8995 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8997 * fwprop.c: Include rtl-iter.h.
8998 (varying_mem_p): Turn from being a for_each_rtx callback to being
8999 a function that examines each subrtx itself.
9000 (propagate_rtx): Update accordingly.
9002 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9004 * function.c: Include rtl-iter.h
9005 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
9006 callback to being a function that examines each subrtx itself.
9007 Return the changed flag.
9008 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
9009 (instantiate_virtual_regs): Update calls accordingly.
9011 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9013 * final.c: Include rtl-iter.h.
9014 (mark_symbol_ref_as_used): Delete.
9015 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
9018 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9020 * emit-rtl.c: Include rtl-iter.h.
9021 (find_auto_inc): Turn from being a for_each_rtx callback to being
9022 a function that examines each subrtx itself. Assume the first operand
9023 to an RTX_AUTOINC is the automodified register.
9024 (try_split): Update call accordingly.
9026 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9028 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
9029 Return a bool, inverting the result so that 0/false means "not ok".
9030 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
9031 subrtxes of a CONST.
9032 (mem_loc_descriptor, add_const_value_attribute)
9033 (resolve_addr_in_expr): Update calls accordingly.
9035 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9037 * dwarf2out.c: Include rtl-iter.h.
9038 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
9039 Remove unused data parameter. Return a bool, inverting the result
9040 so that 0/false means "not ok".
9041 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
9042 instead of for_each_rtx.
9044 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9046 * dse.c: Include rtl-iter.h.
9047 (check_mem_read_rtx): Change void * parameter to real type.
9048 Remove return value.
9049 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
9050 for_each_rtx. Don't handle null rtxes.
9052 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9054 * df-problems.c: Include rtl-iter.h.
9055 (find_memory): Turn from being a for_each_rtx callback to being
9056 a function that examines each subrtx itself. Continue to look for
9057 volatile references even after a nonvolatile one has been found.
9058 (can_move_insns_across): Update calls accordingly.
9060 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9062 * ddg.c (walk_mems_2, walk_mems_1): Delete.
9063 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
9064 to iterate over subrtxes. Return a bool rather than an int.
9066 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9068 * ddg.c: Include rtl-iter.h.
9069 (mark_mem_use_1): Rename to...
9070 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
9071 instead of for_each_rtx.
9072 (mem_read_insn_p): Update accordingly.
9074 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9076 * cse.c (change_cc_mode_args): Delete.
9077 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
9078 a function that examines each subrtx itself. Take the fields of
9079 change_cc_mode_args as argument and return void.
9080 (cse_change_cc_mode_insn): Update calls accordingly.
9082 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9084 * cse.c (is_dead_reg): Change argument to const_rtx.
9085 (dead_debug_insn_data): Delete.
9086 (is_dead_debug_insn): Expand commentary. Turn from being a
9087 for_each_rtx callback to being a function that examines
9088 each subrtx itself. Take the fields of dead_debug_insn_data
9090 (delete_trivially_dead_insns): Update call accordingly.
9092 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9094 * cse.c (check_for_label_ref): Move earlier in file. Turn from
9095 being a for_each_rtx callback to being a function that examines
9097 (cse_extended_basic_block): Update call accordingly.
9099 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9101 * cse.c (check_dependence_data): Delete.
9102 (check_dependence): Change from being a for_each_rtx callback to being
9103 a function that examines all subrtxes itself. Don't handle null rtxes.
9104 (invalidate): Update call accordingly.
9106 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9108 * cse.c: Include rtl-iter.h.
9109 (approx_reg_cost_1): Delete.
9110 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9111 Don't handle null rtxes.
9113 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9115 * cfgcleanup.c: Include rtl-iter.h.
9116 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
9117 to being a function that examines each subrtx itself.
9118 (thread_jump): Update accordingly.
9120 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9122 * combine-stack-adj.c: Include rtl-iter.h.
9123 (record_stack_refs_data): Delete.
9124 (record_stack_refs): Turn from being a for_each_rtx callback
9125 to being a function that examines each subrtx itself.
9126 Take a pointer to the reflist. Invert sense of return value
9127 so that true means success and false means failure. Don't
9129 (combine_stack_adjustments_for_block): Update accordingly.
9131 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9133 * combine.c (record_truncated_value): Turn from being a for_each_rtx
9134 callback to a function that takes an rtx and returns a bool
9135 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
9138 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9140 * combine.c: Include rtl-iter.h.
9141 (unmentioned_reg_p_1): Delete.
9142 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
9143 Don't handle null rtxes.
9145 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9147 * calls.c: Include rtl-iter.h.
9148 (internal_arg_pointer_based_exp_1): Delete.
9149 (internal_arg_pointer_based_exp): Take a const_rtx.
9150 Use FOR_EACH_SUBRTX to iterate over subrtxes.
9152 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9154 * caller-save.c: Include rtl-iter.h.
9155 (add_used_regs_1): Delete.
9156 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
9157 to iterate over subrtxes. Assert that any remaining pseudos
9160 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9162 * bt-load.c: Include rtl-iter.h.
9163 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
9164 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
9165 to iterate over subrtxes.
9166 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
9167 find_btr_use rather than btr_referenced_p.
9169 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9171 * alias.c: Include rtl-iter.h.
9172 (refs_newer_value_cb): Delete.
9173 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9175 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9177 * rtl-iter.h: New file.
9178 * rtlanal.c: Include it.
9179 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
9180 (generic_subrtx_iterator <T>::add_single_to_queue)
9181 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
9182 (generic_subrtx_iterator <T>::free_array): New functions.
9183 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
9184 (generic_subrtx_iterator <const_rtx_accessor>)
9185 (generic_subrtx_iterator <rtx_var_accessor>
9186 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
9187 (setup_reg_subrtx_bounds): New function.
9188 (init_rtlanal): Call it.
9190 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
9193 * config/sh/sh.md (ashlsi3): Handle negative shift count for
9195 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
9197 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
9199 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
9201 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9203 * rtl.h (JUMP_LABEL_AS_INSN): New.
9205 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9207 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
9209 (alloc_EXPR_LIST): Strengthen return type from rtx to
9211 (remove_free_EXPR_LIST_node): Likewise for param.
9212 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
9213 from rtx to rtx_expr_list *.
9214 * sched-int.h (struct deps_desc): Strengthen fields
9215 "pending_read_mems" and "pending_write_mems" from rtx to
9218 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
9219 rtx to rtx_expr_list *.
9220 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
9221 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
9223 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
9224 from rtx to rtx_expr_list *.
9225 * loop-iv.c (simplify_using_initial_values): Strengthen local
9226 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
9227 "pnote_next" from rtx * to rtx_expr_list **.
9228 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
9229 param "exprp" from rtx * to rtx_expr_list **.
9230 (add_insn_mem_dependence): Strengthen local "mem_list" from
9231 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
9233 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
9234 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
9235 param "old_mems_p" from rtx * to rtx_expr_list **.
9236 * var-tracking.c (struct adjust_mem_data): Strengthen field
9237 "side_effects" from rtx to rtx_expr_list *.
9238 (adjust_insn): Replace NULL_RTX with NULL when assigning to
9240 (prepare_call_arguments): Likewise.
9242 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9244 * function.h (struct rtl_data): Strengthen field
9245 "x_stack_slot_list" from rtx to rtx_expr_list *.
9247 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
9248 when assigning to stack_slot_list.
9250 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9252 * function.h (struct rtl_data): Strengthen field
9253 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
9254 * rtl.h (remove_node_from_expr_list): Strengthen second param from
9255 rtx * to rtx_expr_list **.
9257 * cfgbuild.c (make_edges): In loop over
9258 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
9259 rtx_expr_list *, and use methods of the latter class to clarify
9261 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
9262 rtx_expr_list *, and use methods of the latter class to clarify
9264 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
9265 * reload1.c (set_initial_label_offsets): Likewise for local "x".
9266 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
9267 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
9268 to rtx_expr_list *. Use methods of the latter class to clarify
9271 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9273 * function.h (struct expr_status): Strengthen field
9274 "x_forced_labels" from rtx to rtx_expr_list *.
9276 * cfgbuild.c (make_edges): Split local "x" into two locals,
9277 strengthening one from rtx to rtx_expr_list *, and using methods
9279 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
9280 loop over forced_labels, introduce strengthen it from rtx to
9281 rtx_expr_list *, using methods to clarify the code.
9282 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
9283 to rtx_expr_list *, using methods of said class to clarify the
9285 * reload1.c (set_initial_label_offsets): Split local "x" into two
9286 per-loop variables, strengthening the first from rtx to
9287 rtx_expr_list * and using methods.
9289 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9291 * coretypes.h (class rtx_expr_list): Add forward declaration.
9292 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
9293 * gengenrtl.c (special_rtx): Add EXPR_LIST.
9294 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
9295 invariant: GET_CODE (X) == EXPR_LIST.
9296 (is_a_helper <rtx_expr_list *>::test): New.
9297 (rtx_expr_list::next): New.
9298 (rtx_expr_list::element): New.
9299 (gen_rtx_EXPR_LIST): New.
9301 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9303 * varasm.c (mark_constants): Convert a GET_CODE check into a
9304 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
9305 Use methods of rtx_sequence to clarify the code.
9307 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9309 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
9310 local "seq" via a checked cast, and use methods of rtx_sequence
9311 to simplify the code.
9313 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9315 * resource.c (mark_referenced_resources): Strengthen local
9316 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
9317 using methods of rtx_sequence to clarify the code.
9318 (find_dead_or_set_registers): Within the switch statement, convert
9319 a GET_CODE check to a dyn_cast, introducing local "seq". Within
9320 the JUMP_P handling, introduce another local "seq", adding a
9321 checked cast to rtx_sequence *. In both cases, use methods of
9322 rtx_sequence to clarify the code.
9323 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
9324 via a checked cast, and use methods of rtx_sequence to simplify
9327 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9329 * reorg.c (redundant_insn): In two places in the function, replace
9330 a check of GET_CODE with a dyn_cast, introducing local "seq", and
9331 usings methods of rtx_sequence to clarify the code.
9333 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9335 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
9336 local "seq" with a checked cast, and use methods of rtx_sequence
9337 to clarify the code.
9339 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9341 * function.c (contains): Introduce local "seq" for PATTERN (insn),
9342 with a checked cast, in the region for where we know it's a
9343 SEQUENCE. Use methods of rtx_sequence.
9345 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9347 * final.c (get_attr_length_1): Replace GET_CODE check with a
9348 dyn_cast, introducing local "seq" and the use of methods of
9350 (shorten_branches): Likewise, introducing local "body_seq".
9351 Strengthen local "inner_insn" from rtx to rtx_insn *.
9352 (reemit_insn_block_notes): Replace GET_CODE check with a
9353 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
9354 Use methods of rtx_sequence.
9355 (final_scan_insn): Likewise, introducing local "seq" for when
9356 "body" is known to be a SEQUENCE, using its methods.
9358 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9360 * except.c (can_throw_external): Strengthen local "seq" from rtx
9361 to rtx_sequence *. Use methods of rtx_sequence.
9362 (insn_nothrow_p): Likewise.
9364 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9366 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
9367 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
9368 Use methods of rtx_sequence.
9369 (scan_trace): Likewise for local "pat".
9371 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9373 * coretypes.h (class rtx_sequence): Add forward declaration.
9374 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
9375 invariant: GET_CODE (X) == SEQUENCE.
9376 (is_a_helper <rtx_sequence *>::test): New.
9377 (is_a_helper <const rtx_sequence *>::test): New.
9378 (rtx_sequence::len): New.
9379 (rtx_sequence::element): New.
9380 (rtx_sequence::insn): New.
9382 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9384 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
9386 (alloc_INSN_LIST): Strengthen return type from rtx to
9388 (copy_INSN_LIST): Likewise for return type and param.
9389 (concat_INSN_LIST): Likewise for both params and return type.
9390 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
9391 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
9392 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
9393 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
9395 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
9396 "implicit_sets", "control_uses", "clobbers" from rtx to
9398 (struct deps_desc): Likewise for fields "pending_read_insns",
9399 "pending_write_insns", "pending_jump_insns",
9400 "last_pending_memory_flush", "last_function_call",
9401 "last_function_call_may_noreturn", "sched_before_next_call",
9402 "sched_before_next_jump".
9403 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
9404 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
9406 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
9407 from rtx to rtx_insn_list *.
9408 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
9411 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
9412 to rtx_insn_list **.
9413 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
9415 (queue_insn): Likewise for local "link".
9416 (struct haifa_saved_data): Strengthen field "insn_queue" from
9417 rtx * to rtx_insn_list **.
9418 (save_backtrack_point): Update allocation of save->insn_queue to
9419 reflect the strengthening of elements from rtx to rtx_insn_list *.
9420 (queue_to_ready): Strengthen local "link" from rtx to
9421 rtx_insn_list *; use methods "next" and "insn" when traversing the
9423 (early_queue_to_ready): Likewise for locals "link", "next_link",
9425 (schedule_block): Update allocation of insn_queue to reflect the
9426 strengthening of elements from rtx to rtx_insn_list *. Strengthen
9427 local "link" from rtx to rtx_insn_list *, and use methods when
9429 (add_to_speculative_block): Strengthen locals "twins" and
9430 "next_node" from rtx to rtx_insn_list *, and use methods when
9431 working with them. Strengthen local "twin" from rtx to
9432 rtx_insn *, eliminating a checked cast.
9433 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
9434 from rtx to rtx_insn_list *, and use methods when working with
9437 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
9438 from rtx to rtx_insn_list *, adding a checked cast.
9439 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
9441 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
9442 "newlink" from rtx to rtx_insn_list *. Strengthen local
9443 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
9444 from rtx to rtx_insn *.
9445 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
9446 from rtx to rtx_insn_list *. Use methods of the latter class.
9447 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
9448 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
9449 (remove_free_INSN_LIST_node): Strengthen return type and local
9450 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
9451 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
9452 rtx_insn_list *, using "insn" method.
9454 * sched-deps.c (add_dependence_list): Strengthen param "list"
9455 from rtx to rtx_insn_list *, and use methods when working with it.
9456 (add_dependence_list_and_free): Strengthen param "listp" from
9457 rtx * to rtx_insn_list **.
9458 (remove_from_dependence_list): Strenghten param "listp" from rtx *
9459 to rtx_insn_list **, and use methods when working with *listp.
9460 (remove_from_both_dependence_lists): Strengthen param "listp" from
9461 rtx * to rtx_insn_list **
9462 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
9463 to rtx_insn_list **. Eliminate local "link", in favor of two new
9464 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
9466 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
9467 by introducing local "cond_deps".
9468 (remove_from_deps): Strengthen param "insn" from rtx to
9471 * sched-rgn.c (concat_insn_mem_list): Strengthen param
9472 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
9473 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
9474 Use methods of rtx_insn_list.
9476 * store-motion.c (struct st_expr): Strengthen fields
9477 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
9478 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
9480 (find_moveable_store): Split out "tmp" into multiple more-tightly
9481 scoped locals. Use methods of rtx_insn_list *.
9482 (compute_store_table): Strengthen local "tmp" from rtx to
9483 rtx_insn *. Use methods of rtx_insn_list *.
9485 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9487 * coretypes.h (class rtx_insn_list): Add forward declaration.
9488 * rtl.h (class rtx_insn_list): New subclass of rtx_def
9489 (is_a_helper <rtx_insn_list *>::test): New.
9490 (rtx_insn_list::next): New.
9491 (rtx_insn_list::insn): New.
9492 (gen_rtx_INSN_LIST): Add prototype.
9493 * emit-rtl.c (gen_rtx_INSN_LIST): New.
9494 * gengenrtl.c (special_rtx): Add INSN_LIST.
9496 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9498 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
9499 "prev" from rtx to rtx_insn *.
9501 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9503 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
9504 functions. Require merely an rtx for now, not an rtx_insn *.
9505 (BLOCK_FOR_INSN): Likewise.
9506 (INSN_LOCATION): Likewise.
9507 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
9509 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9511 * rtl.h (PATTERN): Convert this macro into a pair of inline
9512 functions, for now, requiring const_rtx and rtx.
9514 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9516 * target.def (unwind_emit): Strengthen param "insn" from rtx to
9518 (final_postscan_insn): Likewise.
9519 (adjust_cost): Likewise.
9520 (adjust_priority): Likewise.
9521 (variable_issue): Likewise.
9522 (macro_fusion_pair_p): Likewise.
9523 (dfa_post_cycle_insn): Likewise.
9524 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
9525 (first_cycle_multipass_issue): Likewise.
9526 (dfa_new_cycle): Likewise.
9527 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
9528 (speculate_insn): Likewise for param "insn".
9529 (gen_spec_check): Likewise for params "insn" and "label".
9530 (get_insn_spec_ds): Likewise for param "insn".
9531 (get_insn_checked_ds): Likewise.
9532 (dispatch_do): Likewise.
9533 (dispatch): Likewise.
9534 (cannot_copy_insn_p): Likewise.
9535 (invalid_within_doloop): Likewise.
9536 (legitimate_combined_insn): Likewise.
9540 * doc/tm.texi: Automatically updated to reflect changes to
9543 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
9545 (schedule_block): Likewise.
9546 (sched_init): Likewise.
9547 (sched_speculate_insn): Strengthen param "insn" from rtx to
9549 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
9551 * hooks.c (hook_bool_rtx_true): Rename to...
9552 hook_bool_rtx_insn_true): ...this, and strengthen first param from
9554 (hook_constcharptr_const_rtx_null): Rename to...
9555 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
9556 first param from const_rtx to const rtx_insn *.
9557 (hook_bool_rtx_int_false): Rename to...
9558 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
9559 param from rtx to rtx_insn *.
9560 (hook_void_rtx_int): Rename to...
9561 (hook_void_rtx_insn_int): ...this, and strengthen first param from
9564 * hooks.h (hook_bool_rtx_true): Rename to...
9565 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
9567 (hook_bool_rtx_int_false): Rename to...
9568 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
9569 param from rtx to rtx_insn *.
9570 (hook_void_rtx_int): Rename to...
9571 (hook_void_rtx_insn_int): ...this, and strengthen first param from
9573 (hook_constcharptr_const_rtx_null): Rename to...
9574 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
9575 first param from const_rtx to const rtx_insn *.
9577 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
9578 and local "prev" from rtx to rtx_insn *.
9580 * sched-int.h (sched_speculate_insn): Strengthen first param from
9583 * sel-sched.c (create_speculation_check): Likewise for local "label".
9584 * targhooks.c (default_invalid_within_doloop): Strengthen param
9585 "insn" from const_rtx to const rtx_insn *.
9586 * targhooks.h (default_invalid_within_doloop): Strengthen param
9587 from const_rtx to const rtx_insn *.
9589 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
9590 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
9592 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
9594 (arc_invalid_within_doloop): Likewise, with const.
9596 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
9597 (arm_cannot_copy_insn_p): Likewise for param "insn".
9598 (arm_unwind_emit): Likewise.
9600 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
9603 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
9604 (c6x_variable_issue): Likewise. Removed now-redundant checked
9606 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
9608 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
9609 Likewise for param "insn".
9610 (epiphany_mode_after): Likewise.
9611 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
9612 params "insn", "dep_insn".
9613 (epiphany_mode_needed): Likewise for param "insn".
9614 (epiphany_mode_after): Likewise.
9616 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
9617 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
9618 (ix86_avx_u128_mode_needed): Likewise.
9619 (ix86_i387_mode_needed): Likewise.
9620 (ix86_mode_needed): Likewise.
9621 (ix86_avx_u128_mode_after): Likewise.
9622 (ix86_mode_after): Likewise.
9623 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
9624 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
9625 (ix86_adjust_priority): Likewise for param "insn".
9626 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
9627 (do_dispatch): Likewise.
9628 (has_dispatch): Likewise.
9629 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
9631 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
9632 reflect renaming of default hook implementation from
9633 hook_constcharptr_const_rtx_null to
9634 hook_constcharptr_const_rtx_insn_null.
9635 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
9637 (ia64_variable_issue): Likewise for param "insn".
9638 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
9639 (ia64_dfa_new_cycle): Likewise.
9640 (ia64_get_insn_spec_ds): Likewise.
9641 (ia64_get_insn_checked_ds): Likewise.
9642 (ia64_speculate_insn): Likewise.
9643 (ia64_gen_spec_check): Likewise for params "insn", "label".
9644 (ia64_asm_unwind_emit): Likewise for param "insn".
9646 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
9648 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
9650 (m68k_sched_variable_issue): Likewise for param "insn".
9652 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
9655 * config/microblaze/microblaze.c (microblaze_adjust_cost):
9656 Likewise for params "insn", "dep".
9658 * config/mips/mips.c (mips_adjust_cost): Likewise.
9659 (mips_variable_issue): Likewise for param "insn".
9660 (mips_final_postscan_insn): Likewise.
9662 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
9663 for params "insn", "dep".
9665 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
9667 (pa_adjust_priority): Likewise for param "insn".
9669 * config/picochip/picochip.c (picochip_sched_adjust_cost):
9670 Likewise for params "insn", "dep_insn".
9672 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
9674 (rs6000_variable_issue): Likewise.
9675 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
9676 (rs6000_debug_adjust_cost): Likewise.
9677 (rs6000_adjust_priority): Likewise for param "insn".
9678 (rs6000_use_sched_lookahead_guard): Likewise.
9679 (get_next_active_insn): Likewise for return type and both params.
9680 (redefine_groups): Likewise for params "prev_head_insn", "tail"
9681 and locals "insn", "next_insn".
9682 (pad_groups): Likewise.
9684 * config/s390/s390.c (s390_adjust_priority): Likewise for param
9686 (s390_cannot_copy_insn_p): Likewise.
9687 (s390_sched_variable_issue): Likewise for third param, eliminating
9689 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
9690 default hook implementation from hook_constcharptr_const_rtx_null
9691 to hook_constcharptr_const_rtx_insn_null.
9693 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
9694 from rtx to rtx_insn *.
9695 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
9696 (sh_variable_issue): Likewise for param "insn".
9697 (sh_dfa_new_cycle): Likewise.
9698 (sh_mode_needed): Likewise.
9699 (sh_mode_after): Likewise.
9701 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
9702 params "insn", "dep_insn".
9703 (hypersparc_adjust_cost): Likewise.
9704 (sparc_adjust_cost): Likewise.
9706 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
9707 param, eliminated checked cast.
9708 (spu_sched_adjust_cost): Likewise for first and third params.
9710 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
9711 params "insn" and "dep_insn" from rtx to rtx_insn *.
9713 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
9715 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9717 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
9718 (set_is_load_p): ...this, updating to work on a SET pattern rather
9720 (is_store_insn): Rename to...
9721 (set_is_store_p): ...this, updating to work on a SET pattern
9722 rather than an insn.
9723 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
9724 top of function to where it is needed. Rewrite the bogus
9725 condition that checks for "insn" and "dep" being PARALLEL to
9726 instead use single_set, introducing locals "insn_set" and
9727 "dep_set". Given that we only ever returned "cost" for a non-pair
9728 of SETs, bail out early if we don't have a pair of SET.
9729 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
9730 use the new locals "insn_set" and "dep_set", and update calls to
9731 is_load_insn and is_store_insn to be calls to set_is_load_p and
9734 2014-08-27 Guozhi Wei <carrot@google.com>
9737 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
9738 amount before using it.
9740 2014-08-27 Richard Biener <rguenther@suse.de>
9742 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
9743 get_maxval_strlen inside a more useful API.
9744 (gimple_fold_builtin_with_strlen): Remove and fold into ...
9745 (gimple_fold_builtin): ... caller.
9746 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
9747 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
9748 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
9749 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
9750 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
9751 gimple_fold_builtin_sprintf): Adjust to compute maxval
9754 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
9757 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
9759 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
9760 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9761 Anna Tikhonova <anna.tikhonova@intel.com>
9762 Ilya Tocar <ilya.tocar@intel.com>
9763 Andrey Turetskiy <andrey.turetskiy@intel.com>
9764 Ilya Verbin <ilya.verbin@intel.com>
9765 Kirill Yukhin <kirill.yukhin@intel.com>
9766 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9768 * config/i386/sse.md
9769 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
9770 Use `concat_tg_mode' attribute to determine asm register size.
9772 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
9773 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9774 Anna Tikhonova <anna.tikhonova@intel.com>
9775 Ilya Tocar <ilya.tocar@intel.com>
9776 Andrey Turetskiy <andrey.turetskiy@intel.com>
9777 Ilya Verbin <ilya.verbin@intel.com>
9778 Kirill Yukhin <kirill.yukhin@intel.com>
9779 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9781 * config/i386/sse.md
9782 (define_mode_iterator VI48_AVX512VL): New.
9783 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
9784 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
9785 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
9786 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9787 with VI1): Change mode iterator.
9788 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9789 with VI_ULOADSTORE_BW_AVX512VL): New.
9790 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9791 with VI_ULOADSTORE_F_AVX512VL): Ditto.
9792 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9793 with VI1): Change mode iterator.
9794 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9795 with VI_ULOADSTORE_BW_AVX512VL): New.
9796 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9797 with VI_ULOADSTORE_F_AVX512VL): Ditto.
9798 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
9799 with VI1): Change mode iterator.
9800 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
9801 with VI_ULOADSTORE_BW_AVX512VL): New.
9802 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
9803 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
9804 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
9805 (define_insn "<avx512>_storedqu<mode>_mask" with
9806 VI48_AVX512VL): New.
9807 (define_insn "<avx512>_storedqu<mode>_mask" with
9808 VI12_AVX512VL): Ditto.
9810 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
9811 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9812 Anna Tikhonova <anna.tikhonova@intel.com>
9813 Ilya Tocar <ilya.tocar@intel.com>
9814 Andrey Turetskiy <andrey.turetskiy@intel.com>
9815 Ilya Verbin <ilya.verbin@intel.com>
9816 Kirill Yukhin <kirill.yukhin@intel.com>
9817 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9819 * config/i386/sse.md
9820 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
9821 (define_mode_iterator VI48_AVX512BW): New.
9822 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
9823 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
9824 with VI48_AVX2_48_AVX512F): New.
9825 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
9826 with VI2_AVX512VL): Ditto.
9828 2014-08-27 Richard Biener <rguenther@suse.de>
9831 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
9832 (fold_builtin_3): Do not fold strcat_chk here.
9833 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
9835 (gimple_fold_builtin): Fold strcat_chk here.
9837 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
9839 * dwarf2out.h (dwarf2out_decl): Remove prototype.
9840 * dwarf2out.c (dwarf2out_decl): Make static.
9842 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
9844 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
9846 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9848 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
9849 from rtx to rtx_insn *.
9850 (cselib_lookup_from_insn): Likewise for final param.
9851 (cselib_subst_to_values_from_insn): Likewise.
9852 (cselib_add_permanent_equiv): Likewise.
9854 * cselib.c (cselib_current_insn): Likewise for this variable.
9855 (cselib_subst_to_values_from_insn): Likewise for param "insn".
9856 (cselib_lookup_from_insn): Likewise.
9857 (cselib_add_permanent_equiv): Likewise for param "insn" and local
9858 "save_cselib_current_insn".
9859 (cselib_process_insn): Replace use of NULL_RTX with NULL.
9861 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
9862 from rtx to rtx_insn *.
9864 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9866 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
9869 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9871 * df.h (df_dump_insn_problem_function): Strengthen first param of
9872 this callback from const_rtx to const rtx_insn *.
9873 (struct df_insn_info): Strengthen field "insn" from rtx to
9875 (DF_REF_INSN): Eliminate this function, reinstating the older
9877 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
9878 (df_reg_defined): Likewise.
9879 (df_find_use): Likewise.
9880 (df_reg_used): Likewise.
9881 (df_dump_insn_top): Strengthen param 1 from const_rtx to
9883 (df_dump_insn_bottom): Likewise.
9884 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
9885 (df_insn_debug_regno): Likewise.
9886 (debug_df_insn): Likewise.
9887 (df_rd_simulate_one_insn): Likewise for param 2.
9888 (df_word_lr_simulate_defs): Likewise for param 1.
9889 (df_word_lr_simulate_uses): Likewise.
9890 (df_md_simulate_one_insn): Likewise for param 2.
9891 (df_simulate_find_noclobber_defs): Likewise for param 1.
9892 (df_simulate_find_defs): Likewise.
9893 (df_simulate_defs): Likewise.
9894 (df_simulate_uses): Likewise.
9895 (df_simulate_one_insn_backwards): Likewise for param 2.
9896 (df_simulate_one_insn_forwards): Likewise.
9897 (df_uses_create): Likewise for param 2.
9898 (df_insn_create_insn_record): Likewise for param 1.
9899 (df_insn_delete): Likewise.
9900 (df_insn_rescan): Likewise.
9901 (df_insn_rescan_debug_internal): Likewise.
9902 (df_insn_change_bb): Likewise.
9903 (df_notes_rescan): Likewise.
9904 * rtl.h (remove_death): Likewise for param 2.
9905 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
9907 * sched-int.h (reemit_notes): Strengthen param from rtx to
9909 * valtrack.h (propagate_for_debug): Likewise for param 1.
9911 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
9912 local "tmp_rtx" from const_rtx to const rtx_insn *.
9913 * combine.c (remove_death): Strengthen param "insn" from rtx to
9915 (move_deaths): Likewise for local "where_dead".
9916 * cse.c (delete_trivially_dead_insns): Introduce local
9917 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
9918 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
9920 (df_reg_defined): Likewise.
9921 (df_find_use): Likewise.
9922 (df_reg_used): Likewise.
9923 (df_dump_insn_problem_data): Strengthen param "insn" from
9924 const_rtx to const rtx_insn *.
9925 (df_dump_insn_top): Likewise.
9926 (df_dump_insn_bottom): Likewise.
9927 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
9928 (df_insn_debug_regno): Likewise.
9929 (debug_df_insn): Likewise.
9930 (DF_REF_INSN): Delete.
9931 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
9932 from rtx to rtx_insn *.
9933 (df_chain_insn_top_dump): Strengthen param "insn" from
9934 const_rtx to const rtx_insn *.
9935 (df_chain_insn_bottom_dump): Likewise.
9936 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
9938 (df_word_lr_simulate_uses): Likewise.
9939 (df_print_note): Likewise.
9940 (df_remove_dead_and_unused_notes): Likewise.
9941 (df_set_unused_notes_for_mw): Likewise.
9942 (df_set_dead_notes_for_mw): Likewise.
9943 (df_create_unused_note): Likewise.
9944 (df_simulate_find_defs): Likewise.
9945 (df_simulate_find_uses): Likewise.
9946 (df_simulate_find_noclobber_defs): Likewise.
9947 (df_simulate_defs): Likewise.
9948 (df_simulate_uses): Likewise.
9949 (df_simulate_one_insn_backwards): Likewise.
9950 (df_simulate_one_insn_forwards): Likewise.
9951 (df_md_simulate_one_insn): Likewise.
9952 * df-scan.c (df_uses_create): Likewise.
9953 (df_insn_create_insn_record): Likewise.
9954 (df_insn_delete): Likewise.
9955 (df_insn_rescan): Likewise.
9956 (df_insn_rescan_debug_internal): Likewise.
9957 (df_insn_change_bb): Likewise.
9958 (df_notes_rescan): Likewise.
9959 (df_refs_add_to_chains): Likewise.
9960 (df_insn_refs_verify): Likewise.
9961 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
9962 when invoking df_insn_delete.
9963 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
9964 (set_unique_reg_note): Add checked cast.
9965 * final.c (cleanup_subreg_operands): Likewise.
9966 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
9967 "insn" from rtx to rtx_insn *.
9968 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
9969 "last" from rtx to rtx_insn *.
9970 * ira-emit.c (change_regs_in_insn): New function.
9971 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
9972 Invoke change_regs_in_insn rather than change_regs.
9973 * ira.c (update_equiv_regs): Strengthen locals "insn",
9974 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
9975 for_each_rtx_in_insn rather than for_each_rtx.
9976 * recog.c (confirm_change_group): Add checked casts.
9977 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
9979 (peep2_fill_buffer): Add checked cast.
9980 * rtlanal.c (remove_note): Likewise.
9981 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
9982 locals "next" "end" from rtx to rtx_insn *.
9984 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9986 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
9988 (struct reg_use_data): Likewise for field "insn".
9989 (insn_cost): Likewise for param.
9990 (real_insn_for_shadow): Likewise for return type and param.
9991 (increase_insn_priority): Likewise for param 1.
9992 (debug_dependencies): Likewise for both params.
9994 * haifa-sched.c (insn_delay): Likewise for param "insn".
9995 (real_insn_for_shadow): Likewise for return type and param "insn".
9996 (update_insn_after_change): Likewise for param "insn".
9997 (recompute_todo_spec): Likewise for param "next" and locals "pro",
9999 (insn_cost): Likewise for param "insn".
10000 (increase_insn_priority): Likewise.
10001 (calculate_reg_deaths): Likewise.
10002 (setup_insn_reg_pressure_info): Likewise.
10003 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
10004 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
10005 (model_recompute): Likewise.
10006 (must_restore_pattern_p): Likewise for param "next".
10007 (model_excess_cost): Likewise for param "insn".
10008 (queue_remove): Likewise.
10009 (adjust_priority): Likewise for param "prev".
10010 (update_register_pressure): Likewise for param "insn".
10011 (setup_insn_max_reg_pressure): Likewise for local "insn".
10012 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
10013 (model_add_to_schedule): Likewise.
10014 (model_reset_queue_indices): Likewise for local "insn".
10015 (unschedule_insns_until): Strengthen local "recompute_vec" from
10016 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
10017 "con" from rtx to rtx_insn *.
10018 (restore_last_backtrack_point): Likewise for both locals "x". Add
10020 (estimate_insn_tick): Likewise for param "insn".
10021 (commit_schedule): Likewise for params "prev_head", "tail" and
10023 (verify_shadows): Likewise for locals "i1", "i2".
10024 (dump_insn_stream): Likewise for params "head", "tail" and locals
10025 "next_tail", "insn".
10026 (schedule_block): Likewise for locals "insn", "x". Add a checked
10028 (fix_inter_tick): Likewise for params "head", "tail".
10029 (create_check_block_twin): Likewise for local "jump".
10030 (haifa_change_pattern): Likewise for param "insn".
10031 (haifa_speculate_insn): Likewise.
10032 (dump_new_block_header): Likewise for params "head", "tail".
10033 (fix_jump_move): Likewise for param "jump".
10034 (move_block_after_check): Likewise.
10035 (sched_init_insn_luid): Likewise for param "insn".
10036 (sched_init_luids): Likewise for local "insn".
10037 (insn_luid): Likewise for param "insn".
10038 (init_h_i_d): Likewise.
10039 (haifa_init_h_i_d): Likewise for local "insn".
10040 (haifa_init_insn): Likewise for param "insn".
10041 * sched-deps.c (add_dependence): Likewise for local "real_pro",
10043 (create_insn_reg_use): Likewise for param "insn".
10044 (setup_insn_reg_uses): Likewise. Add a checked cast.
10045 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
10046 "tail" from rtx to rtx_insn *.
10047 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
10048 "insn", "next_tail".
10050 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10052 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
10053 from rtx to rtx_insn *.
10054 (model_add_to_schedule): Likewise for locals "start", "end",
10057 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10059 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
10061 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
10062 "to" and locals "insn", "next", "copy". Remove now-redundant
10065 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10067 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
10068 rtx_insn * and param 4 from rtx * to rtx_insn **.
10069 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
10070 param 2 from rtx * to rtx_insn **.
10072 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
10073 rtx_insn * and final param from rtx * to rtx_insn **.
10075 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
10076 from rtx to rtx_insn *.
10077 (try_head_merge_bb): Likewise for both locals named "move_upto".
10078 * df-problems.c (can_move_insns_across): Likewise for params
10079 "from", "to", "across_from", "across_to" and locals "insn",
10080 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
10082 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
10083 from rtx to rtx_insn *.
10084 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
10085 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
10086 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
10088 (noce_try_abs): Likewise.
10089 (noce_get_condition): Likewise for param "jump". Strengthen param
10090 "earliest" from rtx * to rtx_insn **.
10091 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
10093 (find_cond_trap): Likewise.
10094 (dead_or_predicable): Likewise for local "earliest".
10095 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
10097 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
10098 and local "prev". Strengthen param "earliest" from rtx * to
10100 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
10101 Strengthen param "earliest" from rtx * to rtx_insn **.
10103 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10105 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
10106 "to" and local "insn" from rtx to rtx_insn *.
10108 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10110 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
10111 from rtx to rtx_insn *.
10112 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
10113 (code_motion_path_driver): Likewise for local "last_insn".
10114 (simplify_changed_insns): Likewise for local "insn".
10116 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10118 * rtl.h (push_to_sequence): Strengthen param from rtx to
10120 (push_to_sequence2): Likewise for both params.
10121 (delete_insns_since): Likewise for param.
10122 (reorder_insns_nobb): Likewise for all three params.
10123 (set_new_first_and_last_insn): Likewise for both params.
10125 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
10126 rtx_insn *. Remove now-redundant cast.
10127 (set_last_insn): Likewise.
10129 * builtins.c (expand_builtin_return): Strengthen local
10130 "call_fusage" from rtx to rtx_insn *.
10131 * cfgrtl.c (create_basic_block_structure): Likewise for local
10133 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
10134 "first", "last" and local "insn".
10135 (delete_insns_since): Likewise for param "from".
10136 (reorder_insns_nobb): Likewise for params "from", "to", "after"
10138 (push_to_sequence): Likewise for param "first" and local "last".
10139 (push_to_sequence2): Likewise for params "first" and "last".
10140 * lra.c (emit_add3_insn): Likewise for local "last".
10141 (lra_emit_add): Likewise.
10142 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
10144 (process_address_1): Likewise for locals "insn", last".
10145 * modulo-sched.c (ps_first_note): Likewise for return type.
10146 * optabs.c (expand_binop_directly): Likewise for param "last".
10148 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10150 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
10152 * emit-rtl.c (get_last_insn_anywhere): Likewise.
10154 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10156 * function.h (struct sequence_stack): Strengthen fields "first"
10157 and "last" from rtx to rtx_insn *.
10158 (struct emit_status): Likewise for fields "x_first_insn" and
10161 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
10162 (set_first_insn): Add checked cast.
10163 (get_last_insn): Remove now-redundant checked cast.
10164 (set_last_insn): Add checked cast.
10166 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
10167 "saved_first" and "saved_last" from rtx to rtx_insn *.
10169 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10171 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
10172 (unlink_insn_chain): Strengthen both params from rtx to
10175 * cfgrtl.c (cfg_layout_function_header): Likewise for this
10177 (unlink_insn_chain): Likewise for params "first" and "last".
10178 Remove now-redundant checked cast.
10179 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
10180 (fixup_reorder_chain): Strengthen local "insn" from rtx to
10182 * emit-rtl.c (link_insn_into_chain): Likewise for all three
10184 (add_insn): Likewise for param "insn" and local "prev".
10185 (add_insn_after_nobb): Likewise for both params and local "next".
10186 (add_insn_before_nobb): Likewise for both params and local "prev".
10187 (add_insn_after): Rename param "after" to "uncast_after",
10188 introducing local "after" with another checked cast.
10189 (add_insn_before): Rename params "insn" and "before", giving them
10190 "uncast_" prefixes, adding the old names back using checked casts.
10191 (emit_note_after): Likewise for param "after".
10192 (emit_note_before): Likewise for param "before".
10193 (emit_label): Add a checked cast.
10195 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10197 * cselib.h (cselib_record_sets_hook): Strengthen initial param
10198 "insn" from rtx to rtx_insn *.
10200 * cselib.c (cselib_record_sets_hook): Likewise.
10202 * var-tracking.c (add_with_sets): Likewise, renaming back from
10203 "uncast_insn" to "insn" and eliminating the checked cast from rtx
10206 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10208 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
10209 and "header_" from rtx to rtx_insn *.
10210 (struct basic_block_d): Likewise for field "head_" within "x"
10211 field of union basic_block_il_dependent.
10212 (BB_HEAD): Drop function...
10213 (SET_BB_HEAD): ...and this function in favor of...
10214 (BB_HEAD): ...reinstate macro.
10215 (BB_END): Drop function...
10216 (SET_BB_END): ...and this function in favor of...
10217 (BB_END): ...reinstate macro.
10218 (BB_HEADER): Drop function...
10219 (SET_BB_HEADER): ...and this function in favor of...
10220 (BB_HEADER): ...reinstate macro.
10222 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
10223 (fix_crossing_unconditional_branches): Likewise.
10224 * caller-save.c (save_call_clobbered_regs): Likewise.
10225 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
10226 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
10227 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
10228 (merge_blocks_move_successor_nojumps): Likewise.
10229 (outgoing_edges_match): Update use of for_each_rtx to
10230 for_each_rtx_in_insn.
10231 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
10232 (expand_gimple_cond): Likewise.
10233 (expand_gimple_tailcall): Likewise.
10234 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
10236 (construct_exit_block): Drop use of SET_BB_END.
10237 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
10239 (delete_insn): Rename param "insn" to "uncast_insn", introducing
10240 a new local "insn" with a checked cast to rtx_insn *. Drop use of
10241 SET_BB_HEAD and SET_BB_END.
10242 (create_basic_block_structure): Drop use of SET_BB_HEAD and
10244 (rtl_delete_block): Drop use of SET_BB_HEAD.
10245 (rtl_split_block): Drop use of SET_BB_END.
10246 (emit_nop_for_unique_locus_between): Likewise.
10247 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
10248 (block_label): Drop use of SET_BB_HEAD.
10249 (fixup_abnormal_edges): Drop use of SET_BB_END.
10250 (record_effective_endpoints): Drop use of SET_BB_HEADER.
10251 (relink_block_chain): Likewise.
10252 (fixup_reorder_chain): Drop use of SET_BB_END.
10253 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
10254 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
10255 rtx_insn **. Drop use of SET_BB_HEADER.
10256 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
10258 (BB_HEAD): Delete this function.
10259 (SET_BB_HEAD): Likewise.
10260 (BB_END): Likewise.
10261 (SET_BB_END): Likewise.
10262 (BB_HEADER): Likewise.
10263 (SET_BB_HEADER): Likewise.
10264 * emit-rtl.c (add_insn_after): Rename param "insn" to
10265 "uncast_insn", adding a new local "insn" and a checked cast to
10266 rtx_insn *. Drop use of SET_BB_END.
10267 (remove_insn): Strengthen locals "next" and "prev" from rtx to
10268 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
10269 (reorder_insns): Drop use of SET_BB_END.
10270 (emit_insn_after_1): Strengthen param "first" and locals "last",
10271 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
10272 (emit_pattern_after_noloc): Add checked cast.
10273 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
10274 (restore_other_notes): Likewise.
10275 (move_insn): Likewise.
10276 (sched_extend_bb): Likewise.
10277 (fix_jump_move): Likewise.
10278 * ifcvt.c (noce_process_if_block): Likewise.
10279 (dead_or_predicable): Likewise.
10280 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
10281 * reg-stack.c (change_stack): Drop use of SET_BB_END.
10282 * sel-sched-ir.c (sel_move_insn): Likewise.
10283 * sel-sched.c (move_nop_to_previous_block): Likewise.
10285 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
10287 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
10289 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10291 * basic-block.h (create_basic_block_structure): Strengthen params
10292 1 "head" and 2 "end" from rtx to rtx_insn *.
10293 * cfgrtl.c (create_basic_block_structure): Likewise.
10294 (rtl_create_basic_block): Update casts from void * to rtx to
10295 rtx_insn *, so that we can pass them as rtx_insn * to
10296 create_basic_block_structure.
10297 * sel-sched-ir.c (sel_create_basic_block): Likewise.
10299 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10301 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
10303 (check_for_inc_dec): Strengthen param "insn" from rtx to
10306 * cselib.h (cselib_process_insn): Likewise.
10308 * cselib.c (cselib_record_sets): Likewise.
10309 (cselib_process_insn): Likewise.
10311 * dse.c (struct insn_info): Likewise for field "insn".
10312 (check_for_inc_dec_1): Likewise for local "insn".
10313 (check_for_inc_dec): Likewise for param "insn".
10314 (scan_insn): Likewise.
10315 (dse_step1): Likewise for local "insn".
10317 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
10318 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
10320 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10322 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
10323 from rtx to rtx_insn *.
10324 (DEP_PRO): Delete this function and...
10325 (SET_DEP_PRO): ...this function in favor of...
10326 (DEP_PRO): ...reinstate this macro.
10327 (DEP_CON): Delete this function and...
10328 (SET_DEP_CON): ...this function in favor of...
10329 (DEP_CON): ...reinstate this old macro.
10330 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
10331 (init_dep): Likewise.
10332 (set_priorities): Likewise for both params.
10333 (sd_copy_back_deps): Likewise for params 1 and 2.
10335 * haifa-sched.c (priority): Likewise for param "insn" and local
10337 (set_priorities): Likewise for params "head" and "tail" and local
10339 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
10341 (add_to_speculative_block): Add a checked cast.
10342 (create_check_block_twin): Drop use of SET_DEP_CON.
10343 (add_jump_dependencies): Strengthen params "insn" and "jump" from
10346 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
10347 Drop use of SET_DEP_PRO
10348 (init_dep): Strengthen params "pro" and "con" from rtx to
10350 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
10351 use of SET_DEP_CON.
10354 (SET_DEP_PRO): Delete.
10355 (SET_DEP_CON): Delete.
10357 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10359 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
10360 from rtx to rtx_insn *.
10361 (VINSN_INSN_RTX): Eliminate rvalue function and...
10362 (SET_VINSN_INSN): ...lvalue function in favor of...
10363 (VINSN_INSN_RTX): reinstate this old macro.
10365 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
10366 in favor of VINSN_INSN_RTX.
10367 (VINSN_INSN_RTX): Delete this function.
10368 (SET_VINSN_INSN_RTX): Likewise.
10370 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10372 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
10373 (BND_TO): Delete this function and...
10374 (SET_BND_TO): ...this functions in favor of...
10375 (BND_TO): ...reinstating this macro.
10376 (struct _fence): Strengthen field "executing_insns" from
10377 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
10378 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
10379 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
10380 and param "insn" from rtx to insn_t.
10381 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
10384 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
10386 (rtx_vec_t): Likewise.
10387 (struct sched_deps_info_def): Strengthen param of "start_insn"
10388 callback from rtx to rtx_insn *. Likewise for param "insn2" of
10389 "note_mem_dep" callback and first param of "note_dep" callback.
10391 * haifa-sched.c (add_to_speculative_block): Strengthen param
10392 "insn" from rtx to rtx_insn *.
10393 (clear_priorities): Likewise.
10394 (calc_priorities): Likewise for local "insn".
10396 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
10397 Remove redundant checked cast.
10398 (haifa_note_mem_dep): Likewise for param "pending_insn".
10399 (haifa_note_dep): Likewise for param "elem".
10400 (note_mem_dep): Likewise for param "e".
10401 (sched_analyze_1): Add checked casts.
10402 (sched_analyze_2): Likewise.
10404 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
10405 from rtx to rtx_insn *.
10406 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
10407 from vec<rtx> * to vec<rtx_insn *> *.
10409 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
10411 (flist_add): Strengthen param "executing_insns" from
10412 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
10413 (advance_deps_context): Remove now-redundant checked cast.
10414 (init_fences): Replace uses of NULL_RTX with NULL.
10415 (merge_fences): Strengthen params "last_scheduled_insn" and
10416 "sched_next" from rtx to rtx_insn * and "executing_insns" from
10417 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
10418 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
10419 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
10420 an instruction, rather than doing double-duty as a pattern.
10421 (return_nop_to_pool): Update for change of insn_t.
10422 (deps_init_id): Remove now-redundant checked cast.
10423 (struct sched_scan_info_def): Strengthen param of "init_insn"
10424 callback from rtx to insn_t.
10425 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
10426 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
10428 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
10429 "end" from rtx to rtx_insn *.
10430 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
10431 (rtx insn_rtx, bool force_unique_p)
10432 (BND_TO): Delete function.
10433 (SET_BND_TO): Delete function.
10435 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
10437 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
10438 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
10440 (undo_transformations): Likewise for param "insn".
10441 (update_liveness_on_insn): Likewise.
10442 (compute_live_below_insn): Likewise for param "insn" and local
10444 (update_data_sets): Likewise for param "insn".
10445 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
10446 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
10447 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
10449 (move_cond_jump): Likewise for param "insn".
10450 (move_cond_jump): Drop use of SET_BND_TO.
10451 (compute_av_set_on_boundaries): Likewise.
10452 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
10453 (update_and_record_unavailable_insns): Strengthen local "bb_end"
10454 from rtx to rtx_insn *.
10455 (maybe_emit_renaming_copy): Likewise for param "insn".
10456 (maybe_emit_speculative_check): Likewise.
10457 (handle_emitting_transformations): Likewise.
10458 (remove_insn_from_stream): Likewise.
10459 (code_motion_process_successors): Strengthen local "succ" from rtx
10462 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10464 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
10465 ilist_t, not _xlist_t;
10466 (ILIST_INSN): Define in terms of new union field "insn".
10467 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
10469 (struct _list_node): Add new field "insn" to the union, of type
10471 (ilist_add): Replace macro with an inline function, requiring an
10473 (ilist_remove): Define this macro directly in terms of
10474 _list_remove, rather than indirectly via _xlist_remove.
10475 (ilist_clear): Likewise, in terms of _list_clear rather than
10477 (ilist_is_in_p): Replace macro with an inline function, requiring
10479 (_list_iter_cond_insn): New function.
10480 (ilist_iter_remove): Define this macro directly in terms of
10481 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
10482 (ilist_iterator): Define directly in terms of _list_iterator
10483 rather than indirectly through _xlist_iterator.
10484 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
10485 than in terms of _FOR_EACH_X.
10486 (FOR_EACH_INSN_1): Likewise.
10488 2014-08-26 Joseph Myers <joseph@codesourcery.com>
10492 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
10493 DECL_HARD_REGISTER and return for invalid register specifications.
10494 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
10495 DECL_HARD_REGISTER, call expand_one_error_var.
10496 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
10497 CC_REGNUM with non-MODE_CC modes.
10498 (arm_regno_class): Return NO_REGS for PC_REGNUM.
10500 2014-08-26 Marek Polacek <polacek@redhat.com>
10503 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
10505 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
10507 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
10508 qi cost; add di cost.
10509 (cortexa57_addrcost_table): Likewise.
10511 2014-08-26 Marek Polacek <polacek@redhat.com>
10514 * expr.c (is_aligning_offset): Remove logical not.
10516 2014-08-26 Marek Polacek <polacek@redhat.com>
10519 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
10520 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
10522 2014-08-26 Richard Biener <rguenther@suse.de>
10524 PR tree-optimization/62175
10525 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
10526 expand possibly trapping operations.
10528 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10530 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
10531 "insn" from rtx to rtx_insn *.
10532 (permute_load): Likewise for param "insn".
10533 (permute_store): Likewise.
10534 (handle_special_swappables): Likewise for local "insn".
10535 (replace_swap_with_copy): Likewise for locals "insn" and
10537 (rs6000_analyze_swaps): Likewise for local "insn".
10539 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10541 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
10544 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10546 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
10547 "note_list" from rtx to rtx_insn *.
10548 (BB_NOTE_LIST): Replace this function and...
10549 (SET_BB_NOTE_LIST): ...this function with...
10550 (BB_NOTE_LIST): ...the former macro implementation.
10552 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
10553 local "from_start" from rtx to rtx_insn *. Strengthen param
10554 "to_endp" from rtx * to rtx_insn **.
10556 * haifa-sched.c (concat_note_lists): Likewise.
10557 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
10559 (sel_restore_notes): Likewise.
10560 (move_bb_info): Likewise.
10561 (BB_NOTE_LIST): Delete this function.
10562 (SET_BB_NOTE_LIST): Delete this function.
10563 * sel-sched.c (create_block_for_bookkeeping): Eliminate
10564 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
10566 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10568 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
10569 from rtx * to rtx_insn **.
10570 (reorder2): Likewise.
10571 (dependencies_evaluation_hook): Strengthen params "head", "tail"
10572 from rtx to rtx_insn *.
10574 * doc/tm.texi: Update mechanically for above change to target.def.
10576 * sched-int.h (note_list): Strengthen this variable from rtx to
10578 (remove_notes): Likewise for both params.
10579 (restore_other_notes): Likewise for return type and first param.
10580 (struct ready_list): Strengthen field "vec" from rtx * to
10582 (struct dep_replacement): Strenghten field "insn" from rtx to
10584 (struct deps_desc): Likewise for fields "last_debug_insn",
10586 (struct haifa_sched_info): Likewise for callback field
10587 "can_schedule_ready_p"'s param, for first param of "new_ready"
10588 callback field, for both params of "rank" callback field, for
10589 first field of "print_insn" callback field (with a const), for
10590 both params of "contributes_to_priority" callback, for param
10591 of "insn_finishes_block_p" callback, for fields "prev_head",
10592 "next_tail", "head", "tail", for first param of "add_remove_insn"
10593 callback, for first param of "begin_schedule_ready" callback, for
10594 both params of "begin_move_insn" callback, and for second param
10595 of "advance_target_bb" callback.
10596 (add_dependence): Likewise for params 1 and 2.
10597 (sched_analyze): Likewise for params 2 and 3.
10598 (deps_analyze_insn): Likewise for param 2.
10599 (ready_element): Likewise for return type.
10600 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
10601 (try_ready): Strenghten param from rtx to rtx_insn *.
10602 (sched_emit_insn): Likewise for return type.
10603 (record_delay_slot_pair): Likewise for params 1 and 2.
10604 (add_delay_dependencies): Likewise for param.
10605 (contributes_to_priority): Likewise for both params.
10606 (find_modifiable_mems): Likewise.
10608 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
10609 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
10610 "first_older_only_insn" from rtx to rtx_insn *.
10611 (arm_sched_reorder): Strengthen param "ready" from rtx * to
10614 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
10615 "last_scheduled_iter0" from rtx to rtx_insn *.
10616 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
10617 (c6x_sched_reorder_1): Strengthen param "ready" and locals
10618 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
10619 "insn" from rtx to rtx_insn *.
10620 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
10622 (c6x_sched_reorder2): Strengthen param "ready" and locals
10623 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
10624 "insn" from rtx to rtx_insn *.
10625 (c6x_variable_issue): Add a checked cast when assigning from insn
10626 to ss.last_scheduled_iter0.
10627 (split_delayed_branch): Strengthen param "insn" and local "i1"
10628 from rtx to rtx_insn *.
10629 (split_delayed_nonbranch): Likewise.
10630 (undo_split_delayed_nonbranch): Likewise for local "insn".
10631 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
10632 "entry_after", "end_packet", "head_insn", "tail_insn",
10633 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
10634 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
10635 to rtx_insn **. Remove now-redundant checked cast on last_insn,
10636 but add a checked cast on loop->start_label. Consolidate calls to
10637 avoid assigning result of gen_spkernel to "insn", now an
10640 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
10641 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
10643 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
10644 rtx_insn **. Strengthen locals "top", "next" from rtx to
10646 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
10647 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
10648 (add_parameter_dependencies): Strengthen params "call", "head" and
10649 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
10650 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
10651 (add_dependee_for_func_arg): Likewise for param "arg" and local
10653 (ix86_dependencies_evaluation_hook): Likewise for params "head",
10654 "tail" and locals "insn", "first_arg".
10656 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
10657 for params "head", "tail" and locals "insn", "next", "next_tail".
10658 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
10659 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
10660 "insn", "lowest", "highest" from rtx to rtx_insn *.
10661 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
10663 (ia64_sched_reorder2): Likewise.
10665 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
10666 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
10667 from rtx * to rtx_insn **.
10668 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
10670 (mep_print_sched_insn): Strengthen param "insn" from rtx to
10672 (mep_sched_reorder): Strengthen param "ready" from rtx * to
10673 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
10676 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
10677 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
10679 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
10680 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
10681 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
10683 (vr4130_reorder): Likewise.
10684 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
10686 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
10688 (mips_sched_reorder): Likewise.
10689 (mips_sched_reorder2): Likewise.
10691 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
10693 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
10694 Strengthen local "tmp" from rtx to rtx_insn *.
10695 (rs6000_sched_reorder2): Likewise.
10697 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
10698 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
10699 (s390_sched_reorder): Strengthen param "ready" from rtx * to
10700 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
10702 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
10703 "tmp2" from rtx to rtx_insn *.
10704 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
10705 Strengthen local "insn" from rtx to rtx_insn *.
10706 (ready_reorder): Strengthen param "ready" from rtx * to
10707 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
10708 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
10709 (sh_reorder2): Likewise.
10711 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
10712 local "insn" from rtx to rtx_insn *.
10714 * haifa-sched.c (note_list): Strengthen this variable from rtx to
10716 (scheduled_insns): Strengthen this variable from vec<rtx> to
10718 (set_modulo_params): Likewise for locals "i1", "i2".
10719 (record_delay_slot_pair): Likewise for params "i1", "i2".
10720 (add_delay_dependencies): Likewise for param "insn".
10721 (cond_clobbered_p): Likewise.
10722 (recompute_todo_spec): Likewise for local "prev".
10723 (last_scheduled_insn): Likewise for this variable.
10724 (nonscheduled_insns_begin): Likewise.
10725 (model_set_excess_costs): Strengthen param "insns" from rtx * to
10727 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
10729 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
10730 Strengthen local "insn" from rtx to rtx_insn *.
10731 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
10732 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
10733 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
10734 (ready_remove_first): Likewise for return type and local "t".
10735 (ready_element): Likewise for return type.
10736 (ready_remove): Likewise for return type and local "t".
10737 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
10738 (check_clobbered_conditions): Strengthen local "x" from rtx to
10739 rtx_insn *, adding a checked cast.
10740 (schedule_insn): Likewise for param "insn".
10741 (remove_notes): Likewise for params "head", "tail" and locals
10742 "next_tail", "insn", "next".
10743 (struct haifa_saved_data): Likewise for fields
10744 "last_scheduled_insn", "nonscheduled_insns_begin".
10745 (save_backtrack_point): Update for change to field "vec" of
10747 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
10749 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
10750 from rtx to rtx_insn *
10751 (resolve_dependencies): Strengthen param "insn" from rtx to
10753 (restore_other_notes): Likewise for return type, for param "head"
10754 and local "note_head".
10755 (undo_all_replacements): Likewise for local "insn".
10756 (first_nonscheduled_insn): Likewise for return type and local "insn".
10757 (queue_to_ready): Likewise for local "insn", adding checked casts.
10758 (early_queue_to_ready): Likewise for local "insn".
10759 (debug_ready_list_1): Strengthen local "p" from rtx * to
10761 (move_insn): Strengthen param "insn" and local "note" from rtx to
10763 (insn_finishes_cycle_p): Likewise for param "insn".
10764 (max_issue): Likewise for local "insn".
10765 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
10767 (commit_schedule): Strengthen param "prev_head" and local "insn"
10768 from rtx to rtx_insn *
10769 (prune_ready_list): Likewise for local "insn".
10770 (schedule_block): Likewise for locals "prev_head", "head", "tail",
10771 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
10772 (set_priorities): Likewise for local "prev_head".
10773 (try_ready): Likewise for param "next".
10774 (fix_tick_ready): Likewise.
10775 (change_queue_index): Likewise.
10776 (sched_extend_ready_list): Update for change to field "vec" of
10778 (generate_recovery_code): Strengthen param "insn" from rtx to
10780 (begin_speculative_block): Likewise.
10781 (create_check_block_twin): Likewise for param "insn" and locals
10782 "label", "check", "twin". Introduce local "check_pat" to avoid
10783 "check" being used as a plain rtx before being used as an insn.
10784 (fix_recovery_deps): Add a checked cast to rtx_insn * when
10785 extracting elements from ready_list.
10786 (sched_remove_insn): Strengthen param "insn" from rtx to
10788 (sched_emit_insn): Likewise for return type.
10789 (ready_remove_first_dispatch): Likewise for return type and local
10792 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
10794 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
10797 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
10798 from rtx to rtx_insn *.
10799 (add_dependence_list): Likewise for param "insn". Add a checked
10801 (add_dependence_list_and_free): Strengthen param "insn" from rtx
10802 to rtx_insn *. Strengthen param "list_p" from rtx * to
10804 (chain_to_prev_insn): Strengthen param "insn" and locals
10805 "prec_nonnote", "i" from rtx to rtx_insn *.
10806 (flush_pending_lists): Likewise for param "insn".
10807 (cur_insn): Likewise for this variable.
10808 (haifa_start_insn): Add a checked cast.
10809 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
10810 (sched_analyze_reg): Likewise for param "insn".
10811 (sched_analyze_1): Likewise.
10812 (sched_analyze_2): Likewise. Add checked casts.
10813 (sched_analyze_insn): Likewise. Also for local "prev".
10814 (deps_analyze_insn): Likewise for param "insn".
10815 (sched_analyze): Likewise for params "head", "tail" and local "insn".
10816 (add_dependence_1): Likewise for params "insn", "elem".
10817 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
10818 (parse_add_or_inc): Likewise for param "insn".
10819 (find_inc): Likewise for local "inc_cand".
10820 (find_modifiable_mems): Likewise for params "head", "tail" and
10821 locals "insn", "next_tail".
10823 * sched-ebb.c (init_ready_list): Likewise for local "insn".
10824 (begin_schedule_ready): Likewise for param "insn".
10825 (begin_move_insn): Likewise for params "insn" and "last".
10826 (ebb_print_insn): Strengthen param "insn" from const_rtx to
10828 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
10829 (ebb_contributes_to_priority): Likewise for params "next", "insn".
10830 (ebb_add_remove_insn): Likewise for param "insn".
10831 (advance_target_bb): Likewise.
10833 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
10835 (check_live): Likewise for param "insn".
10836 (init_ready_list): Likewise for local "insn".
10837 (can_schedule_ready_p): Likewise for param "insn".
10838 (begin_schedule_ready): Likewise.
10839 (new_ready): Likewise for param "next".
10840 (rgn_print_insn): Likewise for param "insn".
10841 (rgn_rank): Likewise for params "insn1", "insn2".
10842 (contributes_to_priority): Likewise for params "next", "insn".
10843 (rgn_insn_finishes_block_p): Likewise for param "insn".
10844 (add_branch_dependences): Likewise for params "head", "tail" and
10845 locals "insn", "last".
10846 (rgn_add_remove_insn): Likewise for param "insn".
10847 (advance_target_bb): Likewise.
10849 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
10850 const_rtx to const rtx_insn *.
10852 * sel-sched-dump.h (sel_print_insn): Likewise.
10854 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
10855 (deps_init_id): Likewise.
10857 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
10858 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
10861 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10863 * output.h (final_start_function): Strengthen param 1 from rtx to
10866 * final.c (final_start_function): Likewise, renaming back from
10867 "uncast_first" to "first", and dropping the checked cast from rtx
10870 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10872 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
10873 * final.c (final): Likewise. Rename param back from
10874 "uncast_first" to "first" and eliminate the checked cast from rtx
10877 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10879 * output.h (shorten_branches): Strengthen param from rtx to
10882 * final.c (shorten_branches): Likewise, renaming param back from
10883 "uncast_first" to "first", and dropping the checked cast from rtx
10886 * genattr.c (gen_attr): Likewise when writing out the prototype of
10889 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10891 * sched-int.h (struct haifa_sched_info): Strengthen fields
10892 "prev_head" and "next_tail" from rtx to rtx_insn *.
10894 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10896 * rtl.h (rtx_jump_table_data::get_labels): New method.
10897 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
10898 with use of the new rtx_jump_table_data::get_labels method.
10899 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
10900 to rtx_jump_table_data *. Simplify by using get_labels method.
10901 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
10902 a dyn_cast, introducing local "table", using it to replace
10903 label-lookup logic with a get_labels method call.
10904 (patch_jump_insn): Simplify using get_labels method.
10905 * dwarf2cfi.c (create_trace_edges): Likewise.
10906 * rtlanal.c (label_is_jump_target_p): Likewise.
10908 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10910 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
10913 * emit-rtl.c (unshare_all_rtl_1): Likewise.
10914 (unshare_all_rtl_again): Likewise, also for local "p".
10916 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10918 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
10920 * cfgrtl.c (delete_insn_and_edges): Likewise.
10922 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10924 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
10925 from rtx to rtx_insn *.
10927 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
10929 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10931 * function.c (thread_prologue_and_epilogue_insns): Likewise for
10932 locals "returnjump", "epilogue_end", "insn", "next".
10934 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
10935 "returnjump" from rtx * to rtx_insn **.
10936 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
10938 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10940 * basic-block.h (struct edge_def). Strengthen "r" within
10941 union edge_def_insns from rtx to rtx_insn *.
10943 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
10944 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
10946 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
10947 from rtx to rtx_insn *.
10948 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
10950 * postreload-gcse.c (reg_killed_on_edge): Likewise.
10951 (reg_used_on_edge): Likewise.
10952 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
10953 (gt_pch_nx): New overload for rtx_insn *&.
10954 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
10955 from rtx to rtx_insn *.
10957 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10959 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
10960 from rtx to rtx_insn *.
10961 (BB_FOOTER): Replace function with access macro.
10962 (SET_BB_FOOTER): Delete.
10964 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
10966 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
10967 (emit_barrier_after_bb): Likewise.
10968 (record_effective_endpoints): Likewise.
10969 (relink_block_chain): Likewise.
10970 (fixup_fallthru_exit_predecessor): Likewise.
10971 (cfg_layout_duplicate_bb): Likewise.
10972 (cfg_layout_split_block): Likewise.
10973 (cfg_layout_delete_block): Likewise.
10974 (cfg_layout_merge_blocks): Likewise.
10975 (BB_FOOTER): Delete function.
10976 (SET_BB_FOOTER): Delete function.
10977 * combine.c (update_cfg_for_uncondjump): Replace uses of
10978 SET_BB_FOOTER with BB_FOOTER.
10980 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10982 * except.h (struct eh_landing_pad_d): Strengthen field
10983 "landing_pad" from rtx to rtx_code_label *.
10985 * except.c (sjlj_emit_dispatch_table): Likewise for param
10987 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
10989 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10991 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
10992 first param from rtx to rtx_insn *.
10993 * config/xtensa/xtensa.c (struct machine_function): Likewise for
10994 field "set_frame_ptr_insn".
10995 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
10996 "csend" from rtx to rtx_code_label *.
10997 (xtensa_expand_atomic): Likewise for local "csloop".
10998 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
11000 (xtensa_call_tls_desc): Likewise for return type and locals
11001 "call_insn", "insns".
11002 (xtensa_legitimize_tls_address): Likewise for local "insns".
11003 (xtensa_expand_prologue): Likewise for locals "insn", "first".
11005 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11007 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
11008 first param from rtx to rtx_insn *.
11009 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
11012 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11014 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
11015 Strengthen param 1 from rtx to rtx_insn *.
11016 (tilepro_output_cbranch): Likewise.
11017 (tilepro_adjust_insn_length): Likewise.
11018 (tilepro_final_prescan_insn): Likewise for sole param.
11020 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
11021 Likewise for local "last".
11022 (cbranch_predicted_p): Likewise for param "insn".
11023 (tilepro_output_simple_cbranch_with_opcode): Likewise.
11024 (tilepro_output_cbranch_with_opcode): Likewise.
11025 (tilepro_output_cbranch): Likewise.
11026 (frame_emit_load): Likewise for return type and locals "seq",
11028 (emit_sp_adjust): Likewise for return type and local "insn".
11029 (tilepro_expand_epilogue): Likewise for locals "last_insn",
11031 (tilepro_adjust_insn_length): Likewise for param "insn".
11032 (next_insn_to_bundle): Likewise for return type and params
11034 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
11035 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
11037 (match_addli_pcrel): Likewise for param "insn".
11038 (replace_addli_pcrel): Likewise.
11039 (match_auli_pcrel): Likewise.
11040 (replace_auli_pcrel): Likewise.
11041 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
11043 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
11044 "queue", "next_queue", "prev".
11045 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
11046 (tilepro_final_prescan_insn): Likewise for param "insn".
11048 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11050 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
11051 Strengthen param 1 from rtx to rtx_insn *.
11052 (tilegx_output_cbranch): Likewise.
11053 (tilegx_adjust_insn_length): Likewise.
11054 (tilegx_final_prescan_insn): Likewise for sole param.
11056 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
11058 (cbranch_predicted_p): Likewise for param "insn".
11059 (tilegx_output_simple_cbranch_with_opcode): Likewise.
11060 (tilegx_output_cbranch_with_opcode): Likewise.
11061 (tilegx_output_cbranch): Likewise.
11062 (frame_emit_load): Likewise for return type.
11063 (set_frame_related_p): Likewise for locals "seq", "insn".
11064 (emit_sp_adjust): Likewise for return type, and for local "insn".
11065 Introduce local "pat" for use in place of "insn" where the latter
11066 isn't an instruction.
11067 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
11068 from rtx to rtx_insn *.
11069 (tilegx_adjust_insn_length): Likewise for param "insn".
11070 (next_insn_to_bundle): Likewise for return type and params "r" and
11072 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
11074 (replace_insns): Likewise for params "old_insn", "new_insns".
11075 (replace_mov_pcrel_step1): Likewise for param "insn" and local
11077 (replace_mov_pcrel_step2): Likewise.
11078 (replace_mov_pcrel_step3): Likewise.
11079 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
11081 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
11082 "queue", "next_queue", "prev".
11083 (tilegx_output_mi_thunk): Likewise for local "insn".
11084 (tilegx_final_prescan_insn): Likewise for param "insn".
11086 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11088 * config/spu/spu.c (frame_emit_store): Strengthen return type from
11090 (frame_emit_load): Likewise.
11091 (frame_emit_add_imm): Likewise, also for local "insn".
11092 (spu_expand_prologue): Likewise for local "insn".
11093 (struct spu_bb_info): Likewise for field "prop_jump".
11094 (emit_nop_for_insn): Likewise for param "insn" and local
11096 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
11098 (spu_emit_branch_hint): Likewise for params "before", "branch" and
11099 locals "hint", "insn".
11100 (get_branch_target): Likewise for param "branch".
11101 (insn_clobbers_hbr): Likewise for param "insn".
11102 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
11103 locals "insn", "before_4", "before_16".
11104 (insert_hbrp): Likewise for local "insn".
11105 (spu_machine_dependent_reorg): Likewise for locals "branch",
11106 "insn", "next", "bbend".
11107 (uses_ls_unit): Likewise for param "insn".
11108 (get_pipe): Likewise.
11109 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
11110 introducing a checked cast.
11111 (spu_sched_adjust_cost): Likewise for params "insn" and
11113 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
11114 (spu_sms_res_mii): Likewise.
11116 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11118 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
11119 from rtx to rtx_insn *.
11120 (output_cbranch): Likewise for param 6.
11121 (output_return): Likewise for param 1.
11122 (output_sibcall): Likewise.
11123 (output_v8plus_shift): Likewise.
11124 (output_v8plus_mult): Likewise.
11125 (output_v9branch): Likewise for param 7.
11126 (output_cbcond): Likewise for param 3.
11128 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
11130 (sparc_legitimize_pic_address): Likewise.
11131 (sparc_emit_call_insn): Likewise.
11132 (emit_save_or_restore_regs): Likewise.
11133 (emit_window_save): Likewise for return type and local "insn".
11134 (sparc_expand_prologue): Likewise for local "insn".
11135 (sparc_flat_expand_prologue): Likewise.
11136 (output_return): Likewise for param "insn".
11137 (output_sibcall): Likewise for param "insn" and local "delay".
11138 (output_ubranch): Likewise for param "insn".
11139 (output_cbranch): Likewise.
11140 (output_cbcond): Likewise.
11141 (output_v9branch): Likewise.
11142 (output_v8plus_shift): Likewise.
11143 (sparc_output_mi_thunk): Likewise for local "insn".
11144 (get_some_local_dynamic_name): Likewise.
11145 (output_v8plus_mult): Likewise for param "insn".
11147 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11149 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
11150 from rtx to rtx_insn *.
11151 (output_branchy_insn): Likewise for param 3.
11152 (output_far_jump): Likewise for param 1.
11153 (final_prescan_insn): Likewise.
11154 (sh_insn_length_adjustment): Likewise for sole param.
11156 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
11157 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
11159 (sh_emit_compare_and_set): Likewise for local "lab".
11160 (output_far_jump): Strengthen param "insn" and local "prev" from
11162 (output_branchy_insn): Likewise for param "insn" and local
11164 (output_ieee_ccmpeq): Likewise for param "insn".
11165 (struct label_ref_list_d): Strengthen field "label" from rtx to
11167 (pool_node): Likewise.
11168 (pool_window_label): Likewise for this global.
11169 (add_constant): Likewise for return type and locals "lab", "new_rtx".
11170 (dump_table): Strengthen params "start", "barrier" and local
11171 "scan" from rtx to rtx_insn *.
11172 (broken_move): Likewise for param "insn".
11173 (untangle_mova): Likewise for params "first_mova" and "new_mova".
11174 Strengthen param "first_mova" from rtx * to rtx_insn **.
11175 (mova_p): Likewise for param "insn".
11176 (fixup_mova): Likewise for param "mova".
11177 (find_barrier): Likewise for return type, params "mova" and
11178 "from", and locals "barrier_before_mova", "found_barrier",
11179 "good_barrier", "orig", "last_symoff", "next". Strengthen local
11180 "label" from rtx to rtx_code_label *.
11181 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
11183 (sh_reorg): Likewise for locals "link", "scan", "barrier".
11184 (split_branches): Likewise for param "first" and local "insn".
11185 (final_prescan_insn): Likewise for param "insn".
11186 (sequence_insn_p): Likewise for locals "prev", "next".
11187 (sh_insn_length_adjustment): Likewise for param "insn".
11188 (sh_can_redirect_branch): Likewise for local "insn".
11189 (find_r0_life_regions): Likewise for locals "end", "insn".
11190 (sh_output_mi_thunk): Likewise for local "insns".
11192 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11194 * config/score/score.c (score_output_mi_thunk): Strengthen local
11195 "insn" from rtx to rtx_insn *.
11196 (score_prologue): Likewise.
11198 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11200 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
11201 1 from rtx to rtx_insn *.
11202 (s390_emit_jump): Likewise for return type.
11203 (s390_emit_call): Likewise.
11204 (s390_load_got): Likewise.
11206 * config/s390/s390.c (last_scheduled_insn): Likewise for this
11208 (s390_match_ccmode): Likewise for param "insn".
11209 (s390_emit_jump): Likewise for return type.
11210 (s390_split_branches): Likewise for local "label".
11211 (struct constant): Strengthen field "label" from rtx to
11213 (struct constant_pool): Likewise for field "label". Strengthen
11214 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
11216 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
11218 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
11219 (s390_end_pool): Likewise.
11220 (s390_dump_pool): Likewise for local "insn".
11221 (s390_mainpool_start): Likewise.
11222 (s390_chunkify_start): Likewise.
11223 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
11224 with insns. Strengthen locals "label", "jump", "barrier", "next",
11225 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
11226 (s390_chunkify_finish): Strengthen local "insn" from rtx to
11228 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
11229 "jump", "label", "next_insn".
11230 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
11231 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
11233 (s390_load_got): Likewise for return type and local "insns".
11234 (s390_save_gprs_to_fprs): Likewise for local "insn".
11235 (s390_restore_gprs_from_fprs): Likewise.
11236 (pass_s390_early_mach::execute): Likewise.
11237 (s390_emit_prologue): Likewise for local "insns".
11238 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
11240 (s390_emit_call): Strengthen return type and local "insn" from
11242 (s390_emit_tpf_eh_return): Likewise for local "insn".
11243 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
11244 "next_insn", introducing locals "s_pat", "rpat" to allow this.
11245 (s390_fix_long_loop_prediction): Likewise for param "insn" and
11247 (s390_non_addr_reg_read_p): Likewise for param "insn".
11248 (find_cond_jump): Likewise for return type and param "insn".
11249 (s390_swap_cmp): Likewise for param "insn".
11250 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
11251 "prev_insn", "next_insn".
11252 (s390_reorg): Likewise for locals "insn", "target".
11253 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
11254 (s390_sched_variable_issue): For now, rename param "insn" to
11255 "uncast_insn", introducing a checked cast.
11256 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
11258 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
11259 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
11261 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11263 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
11264 param from rtx to rtx_insn *.
11265 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
11267 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11269 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
11270 4 from rtx to rtx_insn *.
11271 (rs6000_final_prescan_insn): Likewise for first param.
11272 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
11274 (rs6000_get_some_local_dynamic_name): Likewise.
11275 (output_cbranch): Likewise for param "insn".
11276 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
11277 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
11278 (rs6000_emit_allocate_stack): Likewise for local "insn".
11279 (load_cr_save): Likewise.
11280 (restore_saved_cr): Likewise.
11281 (restore_saved_lr): Likewise.
11282 (emit_cfa_restores): Likewise.
11283 (rs6000_output_function_epilogue): Likewise for locals "insn" and
11284 "deleted_debug_label".
11285 (rs6000_output_mi_thunk): Likewise for local "insn".
11286 (rs6000_final_prescan_insn): Likewise for param "insn".
11288 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11290 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
11291 Strengthen param "insn" from rtx to rtx_insn *.
11292 * config/picochip/picochip.c (picochip_current_prescan_insn):
11293 Likewise for this variable.
11294 (picochip_final_prescan_insn): Likewise for param "insn".
11296 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11298 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
11299 from rtx to rtx_insn *.
11300 (pa_output_indirect_call): Likewise.
11301 (pa_adjust_insn_length): Likewise.
11302 (pa_attr_length_millicode_call): Likewise.
11303 (pa_attr_length_call): Likewise.
11304 (pa_attr_length_indirect_call): Likewise.
11306 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
11308 (pa_attr_length_millicode_call): Likewise.
11309 (pa_attr_length_call): Likewise.
11310 (pa_output_call): Likewise.
11311 (pa_attr_length_indirect_call): Likewise.
11312 (pa_output_indirect_call): Likewise.
11314 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11316 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
11317 Strengthen first param from rtx to rtx_insn *.
11318 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
11321 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11323 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
11324 type from rtx to rtx_insn *.
11325 (mips_expand_call): Likewise.
11326 (mips_adjust_insn_length): Likewise for first param.
11327 (mips_output_conditional_branch): Likewise.
11328 (mips_output_order_conditional_branch): Likewise.
11329 (mips_final_prescan_insn): Likewise.
11331 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
11332 rtx_insn * for the SEQUENCE case.
11333 (SEQ_END): Likewise.
11334 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
11335 (mips_emit_call_insn): Likewise, also for local "insn".
11336 (mips16_gp_pseudo_reg): Likewise for local "scan".
11337 (mips16_build_call_stub): Likewise for return type and for local
11338 "insn". Introduce a new local "pattern" so that "insn" can indeed
11340 (mips_expand_call): Strengthen return type and local "insn" from
11342 (mips_block_move_loop): Strengthen local "label" from rtx to
11344 (mips_expand_synci_loop): Likewise for locals "label",
11346 (mips_set_frame_expr): Strengthen local "insn" from rtx to
11348 (mips16e_collect_argument_saves): Likewise for locals "insn",
11350 (mips_find_gp_ref): Likewise for param of callback for "pred"
11351 param, and for local "insn".
11352 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
11353 (mips_insn_has_flexible_gp_ref_p): Likewise.
11354 (mips_epilogue_emit_cfa_restores): Likewise for return type and
11356 (mips_epilogue_set_cfa): Likewise for local "insn".
11357 (mips_expand_epilogue): Likewise.
11358 (mips_adjust_insn_length): Likewise for param "insn".
11359 (mips_output_conditional_branch): Likewise.
11360 (mips_output_order_conditional_branch): Likewise.
11361 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
11362 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
11363 "falu2_turn_enabled_insn".
11364 (mips_builtin_branch_and_move): Strengthen locals "true_label",
11365 "done_label" from rtx to rtx_code_label *.
11366 (struct mips16_constant): Likewise for field "label".
11367 (mips16_add_constant): Likewise for return type.
11368 (mips16_emit_constants_1): Strengthen return type and param "insn"
11369 from rtx to rtx_insn *.
11370 (mips16_emit_constants): Likewise for param "insn".
11371 (mips16_insn_length): Likewise.
11372 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
11373 to rtx_code_label *.
11374 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
11375 from rtx to rtx_insn *.
11376 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
11377 "jump". Strengthen local "label" from rtx to rtx_code_label *.
11378 (r10k_simplify_address): Strengthen param "insn" and local
11379 "def_insn" from rtx to rtx_insn *.
11380 (r10k_safe_address_p): Strengthen param "insn" from rtx to
11382 (r10k_needs_protection_p_1): Update target type of cast of data
11383 from to rtx to rtx_insn *.
11384 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
11385 rtx * to rtx_insn **.
11386 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
11388 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
11389 (mips_call_expr_from_insn): Likewise for param "insn".
11390 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
11391 (mips_find_pic_call_symbol): Likewise for param "insn".
11392 (mips_annotate_pic_calls): Likewise for local "insn".
11393 (mips_sim_insn): Likewise for this variable.
11394 (struct mips_sim): Likewise for field "insn" within elements of
11396 (mips_sim_wait_reg): Likewise for param "insn".
11397 (mips_sim_wait_regs): Likewise.
11398 (mips_sim_wait_units): Likewise.
11399 (mips_sim_wait_insn): Likewise.
11400 (mips_sim_issue_insn): Likewise.
11401 (mips_sim_finish_insn): Likewise.
11402 (mips_seq_time): Likewise for param "seq" and local "insn".
11403 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
11404 locals "first", "second".
11405 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
11406 "last", "last2", "next".
11407 (mips_avoid_hazard): Likewise for params "after", "insn".
11408 (mips_reorg_process_insns): Likewise for locals "insn",
11409 "last_insn", "subinsn", "next_insn".
11410 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
11411 (mips16_split_long_branches): Likewise for locals "insn" "jump",
11413 (mips_output_mi_thunk): Likewise for local "insn".
11414 (mips_final_prescan_insn): Likewise for param "insn".
11416 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11418 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
11419 Strengthen return type and local "insns" from rtx to rtx_insn *.
11420 (microblaze_legitimize_tls_address): Likewise for local "insns".
11421 (microblaze_block_move_loop): Strengthen local "label" from rtx
11422 to rtx_code_label *.
11423 (microblaze_expand_prologue): Strengthen two locals named "insn"
11424 from rtx to rtx_insn *.
11425 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
11426 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
11427 "insn". Strengthen locals "div_label", "div_end_label" from rtx
11428 to rtx_code_label *.
11430 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11432 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
11433 param from rtx to rtx_insn *.
11434 (mep_reuse_lo): Likewise for third param.
11435 (mep_use_post_modify_p): Likewise for first param.
11436 (mep_core_address_length): Likewise.
11437 (mep_cop_address_length): Likewise.
11438 (mep_final_prescan_insn): Likewise.
11439 (mep_store_data_bypass_p): Likewise for both params.
11440 (mep_mul_hilo_bypass_p): Likewise.
11441 (mep_ipipe_ldc_p): Likewise for param.
11443 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
11444 (mep_rewrite_mult): Likewise.
11445 (mep_rewrite_mulsi3): Likewise.
11446 (mep_rewrite_maddsi3): Likewise.
11447 (mep_reuse_lo_p_1): Likewise.
11448 (mep_reuse_lo_p): Likewise.
11449 (mep_frame_expr): Likewise.
11450 (mep_make_parallel): Likewise for both params.
11451 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
11453 (mep_use_post_modify_p): Likewise for param "insn".
11454 (mep_core_address_length): Likewise.
11455 (mep_cop_address_length): Likewise.
11456 (mep_reg_set_in_function): Likewise for local "insn".
11457 (mep_asm_without_operands_p): Likewise.
11458 (F): Likewise for return type and param "x".
11459 (add_constant): Likewise for local "insn".
11460 (maybe_dead_move): Likewise for return type and local "insn".
11461 (mep_expand_prologue): Likewise for local "insn".
11462 (mep_final_prescan_insn): Likewise for param "insn".
11463 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
11464 "next", "follow", "x".
11465 (mep_insert_repeat_label_last): Likewise for return type, param
11466 "last_insn", and locals "next", "prev". Strengthen param "label"
11467 from rtx to rtx_code_label *.
11468 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
11470 (struct mep_doloop_end): Likewise for fields "insn" and
11472 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
11473 Strengthen local "repeat_label" from rtx to rtx_code_label *.
11474 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
11476 (mep_invert_branch): Likewise for params "insn" and "after".
11477 (mep_reorg_erepeat): Likewise for param "insns" and locals
11478 "insn", "prev", "new_last", "barrier", "user". Strengthen local
11479 "l" from rtx to rtx_code_label *.
11480 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
11481 from rtx to rtx_insn *.
11482 (mep_reorg_addcombine): Likewise for param "insns" and locals
11484 (add_sp_insn_p): Likewise for param "insn".
11485 (mep_reorg_noframe): Likewise for param "insns" and locals
11486 "start_frame_insn", "end_frame_insn", "next".
11487 (mep_reorg): Likewise for local "insns".
11488 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
11490 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
11491 (mep_mul_hilo_bypass_p): Likewise.
11492 (mep_ipipe_ldc_p): Likewise for param "insn".
11493 (mep_make_bundle): Likewise for return type, param "cop" and local
11494 "insn", splitting out the latter into a new local "seq" for when it
11495 is a SEQUENCE rather than an insn.
11496 (core_insn_p): Likewise for param "insn".
11497 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
11498 "last", "first", "note", "prev", "core_insn".
11500 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11502 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
11504 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
11505 (m68k_final_prescan_insn): Likewise for first param.
11507 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
11508 (m68k_set_frame_related): Likewise for param "insn".
11509 (output_btst): Likewise for param "insn".
11510 (m68k_final_prescan_insn): Likewise.
11511 (m68k_move_to_reg): Likewise for local "insn".
11512 (m68k_call_tls_get_addr): Likewise for local "insns".
11513 (m68k_call_m68k_read_tp): Likewise.
11514 (strict_low_part_peephole_ok): Likewise for param "first_insn".
11515 (m68k_output_mi_thunk): Likewise for local "insn".
11517 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11519 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
11520 first param from rtx to rtx_insn *.
11521 (iq2000_adjust_insn_length): Likewise.
11522 (iq2000_output_conditional_branch): Likewise.
11523 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
11524 "insn" and local "nop_insn".
11525 (iq2000_annotate_frame_insn): Likewise for param "insn".
11526 (iq2000_expand_prologue): Likewise for both locals "insn".
11527 (iq2000_adjust_insn_length): Likewise for param "insn".
11528 (iq2000_output_conditional_branch): Likewise.
11530 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11532 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
11533 "insns" from rtx to rtx_insn *.
11534 (ia64_emit_cond_move): Likewise for locals "insn", "first".
11535 (struct spill_fill_data): Likewise for field "init_after" and for
11536 elements of array field "prev_insn".
11537 (spill_restore_mem): Likewise for locals "insn", "first".
11538 (do_spill): Likewise for local "insn".
11539 (do_restore): Likewise.
11540 (ia64_expand_prologue): Likewise.
11541 (ia64_expand_epilogue): Likewise.
11542 (emit_insn_group_barriers): Likewise for locals "insn",
11544 (emit_all_insn_group_barriers): Likewise for locals "insn",
11546 (dfa_stop_insn): Likewise for this global.
11547 (dfa_pre_cycle_insn): Likewise.
11548 (ia64_nop): Likewise.
11549 (final_emit_insn_group_barriers): Likewise for locals "insn",
11551 (emit_predicate_relation_info): Likewise for locals "head", "n",
11553 (ia64_reorg): Likewise for local "insn".
11554 (ia64_output_mi_thunk): Likewise.
11555 (expand_vec_perm_interleave_2): Likewise for local "seq".
11557 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11559 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
11560 param 1 "insn" from rtx to rtx_insn *.
11561 (ix86_use_lea_for_mov): Likewise.
11562 (ix86_avoid_lea_for_addr): Likewise.
11563 (ix86_split_lea_for_addr): Likewise.
11564 (ix86_lea_for_add_ok): Likewise.
11565 (ix86_output_call_insn): Likewise.
11567 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
11568 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
11569 (ix86_output_function_epilogue): Likewise for locals "insn",
11570 "deleted_debug_label".
11571 (legitimize_tls_address): Likewise for local "insn".
11572 (get_some_local_dynamic_name): Likewise.
11573 (increase_distance): Likewise for params "prev", "next".
11574 (distance_non_agu_define_in_bb): Likewise for params "insn",
11575 "start" and locals "prev", "next".
11576 (distance_non_agu_define): Likewise for param "insn".
11577 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
11578 locals "next", "prev".
11579 (distance_agu_use): Likewise for param "insn".
11580 (ix86_lea_outperforms): Likewise.
11581 (ix86_ok_to_clobber_flags): Likewise.
11582 (ix86_avoid_lea_for_add): Likewise.
11583 (ix86_use_lea_for_mov): Likewise.
11584 (ix86_avoid_lea_for_addr): Likewise.
11585 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
11586 (ix86_split_lea_for_addr): Likewise for param "insn".
11587 (ix86_lea_for_add_ok): Likewise for param "insn".
11588 (ix86_expand_carry_flag_compare): Likewise for local
11590 (ix86_expand_int_movcc): Likewise.
11591 (ix86_output_call_insn): Likewise for param "insn".
11592 (ix86_output_call_insn): Likewise for local "i".
11593 (x86_output_mi_thunk): Introduce local "insn", using it in place
11594 of "tmp" when dealing with insns.
11595 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
11597 (ix86_pad_returns): Likewise for locals "ret", "prev".
11598 (ix86_count_insn_bb): Likewise for local "insn".
11599 (ix86_pad_short_function): Likewise for locals "ret", "insn".
11600 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
11601 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
11602 (expand_vec_perm_interleave2): Likewise for local "seq".
11603 (expand_vec_perm_vperm2f128_vblend): Likewise.
11604 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
11605 call to for_each_rtx with for_each_rtx_in_insn.
11607 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11609 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
11610 "label" from rtx to rtx_code_label *.
11611 (ix86_expand_prologue): Likewise.
11612 (ix86_expand_split_stack_prologue): Likewise for locals "label",
11614 (ix86_split_idivmod): Likewise for locals "end_label" and
11616 (ix86_expand_branch): Likewise for local "label2".
11617 (ix86_expand_aligntest): Likewise for return type and local "label".
11618 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
11620 (expand_movmem_epilogue): Likewise for the various locals named
11622 (expand_setmem_epilogue): Likewise.
11623 (expand_small_movmem_or_setmem): Likewise for local "label".
11624 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
11625 Strengthen param "done_label" from rtx * to rtx_code_label **.
11626 Strengthen locals "loop_label" and "label" from rtx to
11628 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
11629 Likewise for locals "loop_label", "label".
11630 (ix86_expand_set_or_movmem): Likewise for locals "label",
11631 "jump_around_label", "hot_label".
11632 (ix86_expand_strlensi_unroll_1): Likewise for locals
11633 "align_2_label", align_3_label", "align_4_label", "end_0_label",
11635 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
11636 (void ix86_emit_i387_log1p): Likewise for locals "label1",
11637 "label2", "jump_label".
11638 (ix86_expand_sse_compare_and_jump): Likewise for return type and
11640 (ix86_expand_lfloorceil): Likewise for local "label".
11641 (ix86_expand_rint): Likewise.
11642 (ix86_expand_floorceildf_32): Likewise.
11643 (ix86_expand_floorceil): Likewise.
11644 (ix86_expand_rounddf_32): Likewise.
11645 (ix86_expand_trunc): Likewise.
11646 (ix86_expand_truncdf_32): Likewise.
11647 (ix86_expand_round): Likewise.
11649 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11651 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
11652 first param from rtx to rtx_insn *.
11653 (h8300_insn_length_from_table): Likewise.
11654 * config/h8300/h8300.c (F): Likewise for return type and param
11656 (Fpa): Add a checked cast to rtx_insn *.
11657 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
11659 (final_prescan_insn): Likewise for param "insn".
11660 (h8300_binary_length): Likewise.
11661 (h8300_insn_length_from_table): Likewise.
11663 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11665 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
11666 Strengthen first param "insn" from rtx to rtx_insn *.
11668 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
11670 (frame_insn): Likewise for return type. Introduce local "insn"
11671 for use in place of local "x" for use as an rtx_insn *.
11672 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
11673 (epiphany_expand_prologue): Likewise for local "insn".
11674 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
11675 * config/epiphany/resolve-sw-modes.c
11676 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
11679 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11681 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
11682 param from rtx to rtx_insn *.
11683 (c6x_final_prescan_insn): Likewise for first param.
11685 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
11686 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
11687 (c6x_expand_compare): Strengthen local "insns" from rtx to
11689 (c6x_get_unit_specifier): Likewise for param "insn".
11690 (c6x_print_unit_specifier_field): Likewise.
11691 (c6x_final_prescan_insn): Likewise.
11692 (emit_add_sp_const): Likewise for local "insn".
11693 (c6x_expand_prologue): Likewise.
11695 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11697 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
11698 param 1 from rtx to rtx_insn *.
11699 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
11700 the various locals named "insn".
11701 (expand_epilogue_reg_restore): Likewise.
11702 (frame_related_constant_load): Likewise.
11703 (add_to_reg): Likewise.
11704 (emit_link_insn): Likewise.
11705 (do_link): Likewise.
11706 (expand_interrupt_handler_prologue): Likewise.
11707 (branch_dest): Likewise for param "branch".
11708 (asm_conditional_branch): Likewise for param "insn".
11709 (gen_one_bundle): Likewise for elements of param "slot" and local
11711 (bfin_gen_bundles): Likewise for locals "insn", "next" and
11712 elements of local "slot".
11713 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
11714 "queue", "next_queue", "prev".
11715 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
11716 (add_sched_insns_for_speculation): Likewise for local "insn".
11718 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11720 * config/avr/avr-protos.h (output_movqi): Strengthen first param
11721 from rtx to rtx_insn *.
11722 (output_movhi): Likewise.
11723 (output_movsisf): Likewise.
11724 (avr_out_tstsi): Likewise.
11725 (avr_out_tsthi): Likewise.
11726 (avr_out_tstpsi): Likewise.
11727 (avr_out_compare): Likewise.
11728 (avr_out_compare64): Likewise.
11729 (avr_out_movpsi): Likewise.
11730 (ashlqi3_out): Likewise.
11731 (ashlhi3_out): Likewise.
11732 (ashlsi3_out): Likewise.
11733 (ashrqi3_out): Likewise.
11734 (ashrhi3_out): Likewise.
11735 (ashrsi3_out): Likewise.
11736 (lshrqi3_out): Likewise.
11737 (lshrhi3_out): Likewise.
11738 (lshrsi3_out): Likewise.
11739 (avr_out_ashlpsi3): Likewise.
11740 (avr_out_ashrpsi3): Likewise.
11741 (avr_out_lshrpsi3): Likewise.
11742 (avr_out_fract): Likewise.
11743 (avr_out_sbxx_branch): Likewise.
11744 (avr_out_round): Likewise.
11745 (avr_out_xload): Likewise.
11746 (avr_out_movmem): Likewise.
11747 (adjust_insn_length): Likewise.
11748 (avr_out_lpm): Likewise.
11749 (reg_unused_after): Likewise.
11750 (_reg_unused_after): Likewise.
11751 (avr_jump_mode): Likewise for second param.
11752 (jump_over_one_insn): Likewise for first param.
11753 (avr_final_prescan_insn): Likewise.
11754 (out_shift_with_cnt): Likewise for second param.
11756 * config/avr/avr.c (get_sequence_length): Likewise for param
11757 "insns" and local "insn".
11758 (emit_push_byte): Likewise for local "insn".
11759 (emit_push_sfr): Likewise.
11760 (avr_prologue_setup_frame): Likewise for locals "insn",
11761 "fp_plus_insns", "sp_plus_insns".
11762 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
11764 (avr_jump_mode): Likewise for param "insn".
11765 (avr_final_prescan_insn): Likewise.
11766 (avr_find_unused_d_reg): Likewise.
11767 (avr_out_lpm_no_lpmx): Likewise.
11768 (avr_out_lpm): Likewise.
11769 (avr_out_xload): Likewise.
11770 (output_movqi): Likewise.
11771 (output_movhi): Likewise.
11772 (out_movqi_r_mr): Likewise.
11773 (out_movhi_r_mr): Likewise.
11774 (out_movsi_r_mr): Likewise.
11775 (out_movsi_mr_r): Likewise.
11776 (output_movsisf): Likewise.
11777 (avr_out_load_psi): Likewise.
11778 (avr_out_store_psi): Likewise.
11779 (avr_out_movpsi): Likewise.
11780 (out_movqi_mr_r): Likewise.
11781 (avr_out_movhi_mr_r_xmega): Likewise.
11782 (out_movhi_mr_r): Likewise.
11783 (compare_condition): Likewise for param "insn" and local "next".
11784 (compare_sign_p): Likewise for param "insn".
11785 (compare_diff_p): Likewise.
11786 (compare_eq_p): Likewise.
11787 (avr_out_compare): Likewise.
11788 (avr_out_compare64): Likewise.
11789 (avr_out_tsthi): Likewise.
11790 (avr_out_tstpsi): Likewise.
11791 (avr_out_tstsi): Likewise.
11792 (out_shift_with_cnt): Likewise.
11793 (ashlqi3_out): Likewise.
11794 (ashlhi3_out): Likewise.
11795 (avr_out_ashlpsi3): Likewise.
11796 (ashlsi3_out): Likewise.
11797 (ashrqi3_out): Likewise.
11798 (ashrhi3_out): Likewise.
11799 (avr_out_ashrpsi3): Likewise.
11800 (ashrsi3_out): Likewise.
11801 (lshrqi3_out): Likewise.
11802 (lshrhi3_out): Likewise.
11803 (avr_out_lshrpsi3): Likewise.
11804 (lshrsi3_out): Likewise.
11805 (avr_out_fract): Likewise.
11806 (avr_out_round): Likewise.
11807 (avr_adjust_insn_length): Likewise.
11808 (reg_unused_after): Likewise.
11809 (_reg_unused_after): Likewise.
11810 (avr_compare_pattern): Likewise.
11811 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
11812 and locals "branch1", "branch2", "insn2", "jump".
11813 (avr_reorg): Likewise for local "insn".
11814 (avr_2word_insn_p): Likewise for param "insn".
11815 (jump_over_one_insn_p): Likewise.
11816 (avr_out_sbxx_branch): Likewise.
11817 (avr_out_movmem): Likewise.
11819 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11821 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
11822 param from rtx to rtx_insn *.
11823 (thumb1_final_prescan_insn): Likewise.
11824 (thumb2_final_prescan_insn): Likewise.
11826 * config/arm/arm.c (emit_set_insn): Strengthen return type from
11828 (struct minipool_node): Likewise for field "insn".
11829 (dump_minipool): Likewise for param "scan".
11830 (create_fix_barrier): Likewise for local "from". Strengthen local
11831 "label" from rtx to rtx_code_label *.
11832 (push_minipool_barrier): Strengthen param "insn" from rtx to
11834 (push_minipool_fix): Likewise.
11835 (note_invalid_constants): Likewise.
11836 (thumb2_reorg): Likewise for local "insn".
11837 (arm_reorg): Likewise.
11838 (thumb2_final_prescan_insn): Likewise for param
11839 "insn" and local "first_insn".
11840 (arm_final_prescan_insn): Likewise for param "insn" and locals
11841 "start_insn", "this_insn".
11842 (arm_debugger_arg_offset): Likewise for param "insn".
11843 (thumb1_emit_multi_reg_push): Likewise for return type and local
11845 (thumb1_final_prescan_insn): Likewise for param "insn".
11846 (thumb_far_jump_used_p): Likewise for local "insn".
11847 (thumb1_expand_prologue): Likewise.
11848 (arm_expand_epilogue_apcs_frame): Likewise.
11849 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
11850 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
11851 from rtx to rtx_code_label *.
11852 (arm_split_atomic_op): Likewise for local "label".
11853 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
11855 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11857 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
11858 first param from rtx to rtx_insn *.
11859 (arc_verify_short): Likewise.
11860 (arc_short_long): Likewise.
11861 (arc_need_delay): Likewise.
11863 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
11865 (arc_ccfsm_advance): Likewise for param "insn" and locals
11866 "start_insn", "this_insn".
11867 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
11868 (arc_ccfsm_post_advance): Likewise for param "insn".
11869 (arc_next_active_insn): Likewise for return type and param "insn".
11870 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
11871 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
11872 (output_short_suffix): Likewise for local "insn".
11873 (arc_final_prescan_insn): Likewise for param "insn". Remove
11874 now-redundant checked cast.
11875 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
11876 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
11877 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
11878 for use where lc_set became an insn.
11879 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
11881 (arc_get_insn_variants): Likewise for local "prev".
11882 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
11884 (arc_predicate_delay_insns): Likewise for local "insn".
11885 (arc_pad_return): Likewise for local "prev". For now, add a
11886 checked cast when extracting the insn from "final_sequence".
11887 (arc_short_long): Likewise for param "insn".
11888 (arc_need_delay): Likewise for param "insn" and local "next".
11889 (arc_label_align): Likewise for locals "prev", "next".
11891 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11893 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
11894 "insn" from rtx to rtx_insn *.
11895 (alpha_gp_save_rtx): Likewise for local "seq".
11896 (alpha_instantiate_decls): Likewise for local "top".
11897 (get_some_local_dynamic_name): Likewise for local "insn".
11898 (alpha_does_function_need_gp): Likewise.
11899 (set_frame_related_p): Likewise for return type and for locals
11901 (emit_frame_store_1): Likewise for local "insn".
11902 (alpha_expand_prologue): Likewise for locals "insn", "seq".
11903 (alpha_end_function): Likewise for local "insn".
11904 (alpha_output_mi_thunk_osf): Likewise.
11905 (alphaev4_insn_pipe): Likewise for param "insn".
11906 (alphaev5_insn_pipe): Likewise.
11907 (alphaev4_next_group): Likewise for return type and param 1
11909 (alphaev5_next_group): Likewise.
11910 (alpha_align_insns_1): Likewise for return type and param 1 of
11911 callback param "next_group", and for locals "i", "next", "prev",
11912 "where", "where2", "insn".
11914 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
11916 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
11917 rather than modifying the stmt.
11919 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11921 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
11922 cgraph_state conversion.
11924 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11926 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
11927 Strengthen local "insns" from rtx to rtx_insn *.
11928 (aarch64_set_frame_expr): Likewise for local "insn".
11929 (aarch64_save_or_restore_fprs): Likewise.
11930 (aarch64_save_or_restore_callee_save_registers): Likewise.
11931 (aarch64_expand_prologue): Likewise.
11932 (aarch64_expand_epilogue): Likewise.
11933 (aarch64_output_mi_thunk): Likewise.
11934 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
11935 "label2" from rtx to rtx_code_label *.
11936 (aarch64_split_atomic_op): Likewise for local "label".
11938 2014-08-25 Martin Liska <mliska@suse.cz>
11940 * cgraph.h (symtab_node):
11941 (bool needed_p (void)): created from decide_is_symbol_needed
11942 (bool referred_to_p (void)): created from referred_to_p
11943 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
11944 * cgraph.h (cgraph_node):
11945 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
11946 (void expand (void)): created from expand_function
11947 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
11948 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
11949 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
11950 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
11951 * cgraph.h (varpool_node):
11952 (static void add (tree decl): created from varpool_add_new_variable
11953 * cgraph.h (cgraph_edge):
11954 void remove (void);
11955 (void remove_caller (void)): created from cgraph_edge_remove_caller
11956 (void remove_callee (void)): created from cgraph_edge_remove_callee
11957 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
11958 created from cgraph_set_call_stmt
11959 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
11960 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
11961 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
11962 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
11963 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
11964 created from cgraph_speculative_call_info
11965 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
11966 int freq_scale, bool update_original)): created from cgraph_clone_edge
11967 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
11968 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
11969 (bool recursive_p (void)): created from cgraph_edge_recursive_p
11970 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
11971 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
11972 (static void rebuild_references (void)): created from cgraph_rebuild_references
11973 * cgraph.h (symbol_table):
11974 (create_reference): renamed from add_reference
11975 (maybe_create_reference): renamed from maybe_add_reference
11976 (void register_symbol (symtab_node *node)): new function
11977 (void clear_asm_symbols (void)): new function
11978 (void unregister (symtab_node *node)): new function
11979 (void release_symbol (cgraph_node *node, int uid)): new function
11980 (cgraph_node * allocate_cgraph_symbol (void)): new function
11981 (void initialize (void)): created from cgraph_init
11982 (symtab_node *first_symbol (void)):new function
11983 (asm_node *first_asm_symbol (void)):new function
11984 (symtab_node *first_defined_symbol (void)):new function
11985 (varpool_node *first_variable (void)):new function
11986 (varpool_node *next_variable (varpool_node *node)):new function
11987 (varpool_node *first_static_initializer (void)):new function
11988 (varpool_node *next_static_initializer (varpool_node *node)):new function
11989 (varpool_node *first_defined_variable (void)):new function
11990 (varpool_node *next_defined_variable (varpool_node *node)):new function
11991 (cgraph_node *first_defined_function (void)):new function
11992 (cgraph_node *next_defined_function (cgraph_node *node)):new function
11993 (cgraph_node *first_function (void)):new function
11994 (cgraph_node *next_function (cgraph_node *node)):new function
11995 (cgraph_node *first_function_with_gimple_body (void)):new function
11996 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
11997 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
11998 created from symtab_remove_unreachable_nodes
11999 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
12000 (void process_new_functions (void)): created from cgraph_process_new_functions
12001 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
12002 (bool output_variables (void)): created from varpool_node::output_variables
12003 (void output_asm_statements (void)): created from output_asm_statements
12004 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
12005 (void compile (void)): created from compile
12006 (void output_weakrefs (void)): created from output_weakrefs
12007 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
12008 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
12009 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
12010 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
12011 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
12012 created from cgraph_next_function_with_gimple_body
12013 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
12014 created from cgraph_remove_edge_removal_hook
12015 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
12016 created from cgraph_add_node_removal_hook
12017 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
12018 created from cgraph_remove_node_removal_hook
12019 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
12020 created from varpool_add_node_removal_hook
12021 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
12022 created from varpool_remove_node_removal_hook
12023 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
12024 created from cgraph_add_function_insertion_hook
12025 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
12026 created from cgraph_remove_function_insertion_hook
12027 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
12028 created from varpool_add_variable_insertion_hook
12029 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
12030 created from varpool_remove_variable_insertion_hook
12031 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
12032 created from cgraph_add_edge_duplication_hook
12033 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
12034 created from cgraph_remove_edge_duplication_hook
12035 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
12036 created from cgraph_add_node_duplication_hook
12037 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
12038 created from cgraph_remove_node_duplication_hook
12039 (void call_edge_removal_hooks (cgraph_edge *e)):
12040 created from cgraph_call_edge_removal_hooks
12041 (void call_cgraph_insertion_hooks (cgraph_node *node)):
12042 created from call_function_insertion_hooks
12043 (void call_cgraph_removal_hooks (cgraph_node *node)):
12044 created from cgraph_call_node_removal_hooks
12045 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
12046 created from cgraph_node::call_duplication_hooks
12047 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
12048 created from cgraph_call_edge_duplication_hooks
12049 (void call_varpool_removal_hooks (varpool_node *node)):
12050 created from varpool_call_node_removal_hooks
12051 (void call_varpool_insertion_hooks (varpool_node *node)):
12052 created from varpool_call_variable_insertion_hooks
12053 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
12054 created from insert_to_assembler_name_hash
12055 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
12056 created from unlink_from_assembler_name_hash
12057 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
12058 created from symtab_prevail_in_asm_name_hash
12059 (void symtab_initialize_asm_name_hash (void)):
12060 created from symtab_initialize_asm_name_hash
12061 (void change_decl_assembler_name (tree decl, tree name)):
12062 created from change_decl_assembler_name
12063 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
12064 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
12065 created from decl_assembler_name_hash
12066 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
12067 created from decl_assembler_name_equal
12068 (static hashval_t hash_node_by_assembler_name (const void *p)):
12069 created from hash_node_by_assembler_name
12070 (static int eq_assembler_name (const void *p1, const void *p2)):
12071 created from eq_assembler_name
12073 2014-08-25 Marek Polacek <polacek@redhat.com>
12075 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
12077 2014-08-25 Petr Murzin <petr.murzin@intel.com>
12079 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
12080 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
12081 SWI1248_AVX512BW mode iterator.
12083 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
12086 * config/sh/predicates.md (general_extend_operand): Disable
12087 TRUNCATE before reload completes.
12089 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
12091 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
12093 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
12096 * config/sh/sh.opt (musermode): Allow negative form.
12097 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
12098 targets that don't support it.
12099 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
12100 Document -mno-usermode option.
12102 2014-08-24 Kito Cheng <kito@0xlab.org>
12104 * system.h (CALLER_SAVE_PROFITABLE): Poison.
12105 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
12106 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
12107 * doc/tm.texi: Regenerate.
12109 2014-08-24 Kito Cheng <kito@0xlab.org>
12111 * ira.c: Fix typo in comment.
12113 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
12115 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
12116 Deprecate c++1y. Change language to reflect greater confidence in C++14.
12118 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
12121 * config/pa/pa.c (pa_output_function_epilogue): Don't set
12122 last_address when the current function is a thunk.
12123 (pa_asm_output_mi_thunk): When we don't have named sections or they
12124 are not being used, check that thunk can reach the stub table with a
12127 2014-08-23 David Malcolm <dmalcolm@redhat.com>
12129 * web.c (union_match_dups): Strengthen param "insn" from rtx to
12131 (pass_web::execute): Likewise for local "insn".
12133 2014-08-23 David Malcolm <dmalcolm@redhat.com>
12135 * var-tracking.c (struct micro_operation_def): Strengthen field
12136 "insn" from rtx to rtx_insn *.
12137 (struct emit_note_data_def): Likewise.
12138 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
12139 (vt_stack_adjustments): Likewise for local "insn".
12140 (adjust_insn): Likewise for param "insn".
12141 (val_store): Likewise.
12142 (val_resolve): Likewise.
12143 (struct count_use_info): Likewise for field "insn".
12144 (log_op_type): Likewise for param "insn".
12145 (reverse_op): Likewise.
12146 (prepare_call_arguments): Likewise.
12147 (add_with_sets): The initial param takes an insn, but we can't
12148 yet strengthen it from rtx to rtx_insn * since it's used as a
12149 cselib_record_sets_hook callback. For now rename initial param
12150 from "insn" to "uncast_insn", and introduce a local "insn" of
12151 the stronger rtx_insn * type, with a checked cast.
12152 (compute_bb_dataflow): Strengthen local "insn" from rtx to
12154 (emit_note_insn_var_location): Likewise.
12155 (emit_notes_for_changes): Likewise.
12156 (emit_notes_for_differences): Likewise.
12157 (next_non_note_insn_var_location): Likewise for return type and
12159 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
12160 (vt_initialize): Likewise for local "insn".
12161 (delete_debug_insns): Likewise for locals "insn" and "next".
12163 2014-08-23 David Malcolm <dmalcolm@redhat.com>
12165 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
12167 (mark_constant_pool): Likewise for local "insn".
12169 2014-08-23 David Malcolm <dmalcolm@redhat.com>
12171 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
12173 (dead_debug_promote_uses): Likewise.
12174 (dead_debug_insert_temp): Likewise.
12176 2014-08-23 David Malcolm <dmalcolm@redhat.com>
12178 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
12179 from const_rtx to const rtx_insn *.
12180 (store_killed_after): Likewise. Strengthen locals "last", "act"
12181 from rtx to rtx_insn *.
12182 (store_killed_before): Strengthen param "insn" from const_rtx to
12183 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
12184 (find_moveable_store): Strengthen param "insn" from rtx to
12186 (compute_store_table): Likewise for local "insn".
12187 (insert_insn_start_basic_block): Likewise for param "insn" and
12188 locals "prev", "before", "insn".
12189 (insert_store): For now, add a checked cast to rtx_insn * on the
12190 result of gen_move_insn.
12191 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
12193 (replace_store_insn): Likewise. For now, add a checked cast to
12194 rtx_insn * on the result of gen_move_insn.
12196 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12198 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
12200 (expand_sjlj_dispatch_table): Likewise.
12202 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12204 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
12205 "insn" from rtx to rtx_insn *.
12207 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12209 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
12210 "insn" from rtx to rtx_insn *.
12211 (dup_block_and_redirect): Likewise for param 3 "before".
12213 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
12214 from rtx to rtx_insn *.
12215 (move_insn_for_shrink_wrap): Likewise.
12216 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
12217 (dup_block_and_redirect): Likewise for param "before" and local
12219 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
12221 (convert_to_simple_return): Likewise for local "start".
12223 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
12224 Strengthen local "insn" from rtx to rtx_insn *, for use when
12225 invoking requires_stack_frame_p.
12227 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12229 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
12231 (speculate_expr): Likewise for locals "orig_insn_rtx",
12233 (eq_transformed_insns): Likewise for locals "i1", "i2".
12234 (check_for_new_jump): Likewise for return type and local "end".
12235 (find_new_jump): Likewise for return type and local "jump".
12236 (sel_split_edge): Likewise for local "jump".
12237 (sel_create_recovery_block): Likewise.
12238 (sel_redirect_edge_and_branch_force): Likewise.
12239 (sel_redirect_edge_and_branch): Likewise.
12241 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12243 * sel-sched.c (substitute_reg_in_expr): Strengthen local
12244 "new_insn" from rtx to rtx_insn *.
12245 (create_insn_rtx_with_rhs): Likewise for return type and for local
12247 (create_insn_rtx_with_lhs): Likewise.
12248 (create_speculation_check): Likewise for local "insn_rtx".
12249 (implicit_clobber_conflict_p): Likewise for local "insn".
12250 (get_expr_cost): Likewise.
12251 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
12252 (move_cond_jump): Likewise for locals "next", "prev", "link",
12253 "head", "from", "to".
12255 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12257 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
12258 "next" from rtx to rtx_insn *.
12259 (find_conditional_protection): Likewise for local "next".
12260 (is_conditionally_protected): Likewise for local "insn1".
12261 (is_pfree): Likewise for locals "insn1", "insn2".
12263 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12265 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
12266 from rtx to rtx_insn *.
12268 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
12269 locals "insn1", "insn2" from rtx to rtx_insn *.
12270 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
12271 locals "insn", "prev", "last_jump", "next_tail".
12272 (schedule_ebb): Likewise for params "head", "tail".
12273 (schedule_ebbs): Likewise for locals "tail", "head".
12275 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
12276 to rtx_insn on "last_insn" in one of the invocations of
12279 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12281 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
12282 "elem", "insn" from rtx to rtx_insn *.
12283 (change_spec_dep_to_hard): Likewise.
12284 (get_back_and_forw_lists): Likewise for local "con".
12285 (sd_add_dep): Likewise for locals "elem", "insn".
12286 (sd_resolve_dep): Likewise for locals "pro", "con".
12287 (sd_unresolve_dep): Likewise.
12288 (sd_delete_dep): Likewise.
12289 (chain_to_prev_insn): Likewise for local "pro".
12290 (find_inc): Likewise for locals "pro", "con".
12292 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12294 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
12296 (reg_set_between_p): Strengthen local "insn" from const_rtx to
12298 (modified_between_p): Strengthen local "insn" from rtx to
12300 (remove_reg_equal_equiv_notes_for_regno): Likewise.
12301 (keep_with_call_p): Strengthen local "i2" from const_rtx to
12304 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12306 * resource.c (next_insn_no_annul): Strengthen local "next" from
12308 (mark_referenced_resources): Likewise for local "insn".
12310 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12312 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
12314 (find_reloads): Likewise for param 1.
12315 (subst_reloads): Likewise for sole param.
12316 (find_equiv_reg): Likwise for param 2.
12317 (regno_clobbered_p): Likwise for param 2.
12318 (reload): Likewise for param 1.
12320 * caller-save.c (save_call_clobbered_regs): Strengthen local
12321 "insn" from rtx to rtx_insn *.
12322 (insert_one_insn): Likewise for local "insn".
12324 * reload.c (this_insn): Likewise for this global.
12325 (find_reloads): Likewise for param "insn".
12326 (find_reloads_toplev): Likewise.
12327 (find_reloads_address): Likewise.
12328 (subst_reg_equivs): Likewise.
12329 (update_auto_inc_notes): Likewise.
12330 (find_reloads_address_1): Likewise.
12331 (find_reloads_subreg_address): Likewise.
12332 (subst_reloads): Likewise.
12333 (find_equiv_reg): Likewise, also for local "p".
12334 (regno_clobbered_p): Likewise for param "insn".
12336 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
12338 (spill_reg_store): Likewise for the elements of this array.
12339 (remove_init_insns): Likewise for local "equiv_insn".
12340 (will_delete_init_insn_p): Likewise for param "insn".
12341 (reload): Likewise for param ""first" and local "insn".
12342 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
12344 (calculate_elim_costs_all_insns): Likewise.
12345 (delete_caller_save_insns): Likewise.
12346 (spill_failure): Likewise for param "insn".
12347 (delete_dead_insn): Likewise.
12348 (set_label_offsets): Likewise.
12349 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
12351 (elimination_costs_in_insn): Likewise for param "insn".
12352 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
12353 when referring to an insn.
12354 (set_initial_label_offsets): Likewise.
12355 (set_offsets_for_label): Strengthen param "insn" from rtx to
12357 (init_eliminable_invariants): Likewise for param "first" and local
12359 (fixup_eh_region_note): Likewise for param "insn".
12360 (reload_as_needed): Likewise for locals "prev", "insn",
12361 "old_next", "old_prev", "next".
12362 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
12364 (reload_inheritance_insn): Strengthen elements of this array from
12366 (failed_reload): Likewise for param "insn".
12367 (choose_reload_regs): Likewise for local "insn". Replace use of
12368 NULL_RTX with NULL when referring to an insn.
12369 (input_reload_insns): Strengthen elements of this array from rtx
12371 (other_input_address_reload_insns): Likewise for this global.
12372 (other_input_reload_insns): Likewise for this global.
12373 (input_address_reload_insns): Likwise for the elements of this
12375 (inpaddr_address_reload_insns): Likwise for the elements of this
12377 (output_reload_insns): Likewise for the elements of this array.
12378 (output_address_reload_insns): Likewise for the elements of this
12380 (outaddr_address_reload_insns): Likewise for the elements of this
12382 (operand_reload_insns): Likewise for this global.
12383 (other_operand_reload_insns): Likewise for this global.
12384 (other_output_reload_insns): Likewise for the elements of this
12386 (new_spill_reg_store): Likewise for the elements of this
12388 (emit_input_reload_insns): Likewise for locals "insn", "temp".
12389 Strengthen local "where" from rtx * to rtx_insn **.
12390 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
12391 from rtx to rtx_insn *.
12392 (do_input_reload): Likewise for local "insn".
12393 (do_output_reload): Likewise for local "insn".
12394 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
12395 (emit_insn_if_valid_for_reload): Likewise for return type and local
12396 "last". Add checked cast to rtx_insn when returning "insn" since
12397 this has been through emit_insn.
12398 (gen_reload): Strengthen return type and locals "last", "insn", "set"
12399 from rtx to rtx_insn *. Add checked cast to rtx_insn when
12400 returning "insn" since it's been through
12401 emit_insn_if_valid_for_reload at this point.
12402 (delete_output_reload): Strengthen param "insn" and locals
12403 "output_reload_insn", "i2" from rtx to rtx_insn *.
12404 (delete_address_reloads): Likewise for params "dead_insn",
12405 "current_insn" and locals "prev", "next".
12406 (delete_address_reloads_1): Likewise for params "dead_insn",
12407 "current_insn" and locals "prev", "i2".
12408 (inc_for_reload): Likewise for locals "last", "add_insn".
12409 (add_auto_inc_notes): Strengthen param "insn" from rtx to
12412 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
12413 param of this duplicate of the prototype from reload.h
12415 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12417 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
12419 (regstat_bb_compute_calls_crossed): Likewise.
12421 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12423 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
12425 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
12427 (regrename_analyze): Strengthen local "insn" from rtx to
12429 (scan_rtx_reg): Likewise for param "insn".
12430 (scan_rtx_address): Likewise.
12431 (scan_rtx): Likewise.
12432 (restore_operands): Likewise.
12433 (record_out_operands): Likewise.
12434 (build_def_use): Likewise for local "insn". Replace use of
12435 NULL_RTX with NULL when dealing with an insn.
12437 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12439 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
12440 * reginfo.c (reg_scan): Likewise, also for local "insn".
12441 (reg_scan_mark_refs): Likewise for param "insn".
12442 (init_subregs_of_mode): Likewise for local "insn".
12444 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12446 * regcprop.c (struct queued_debug_insn_change): Strengthen field
12447 "insn" from rtx to rtx_insn *.
12448 (replace_oldest_value_reg): Likewise for param "insn".
12449 (replace_oldest_value_addr): Likewise.
12450 (replace_oldest_value_mem): Likewise.
12451 (apply_debug_insn_changes): Likewise for local "last_insn".
12452 (copyprop_hardreg_forward_1): Likewise for local "insn".
12454 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12456 * reg-stack.c (next_flags_user): Strengthen return type and param
12457 "insn" from rtx to rtx_insn *.
12458 (straighten_stack): Likewise for param "insn".
12459 (check_asm_stack_operands): Likewise.
12460 (remove_regno_note): Likewise.
12461 (emit_pop_insn): Likewise for return type, param "insn", local
12463 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
12464 "limit" from rtx to rtx_insn *.
12465 (swap_to_top): Likewise for param "insn".
12466 (move_for_stack_reg): Likewise.
12467 (move_nan_for_stack_reg): Likewise.
12468 (swap_rtx_condition): Likewise.
12469 (compare_for_stack_reg): Likewise.
12470 (subst_all_stack_regs_in_debug_insn): Likewise.
12471 (subst_stack_regs_pat): Likewise, and local "insn2".
12472 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
12474 (subst_stack_regs): Likewise.
12475 (change_stack): Likewise.
12476 (convert_regs_1): Likewise for locals "insn", "next".
12478 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12480 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
12482 (combine_set_extension): Likewise for param "curr_insn".
12483 (transform_ifelse): Likewise for param "def_insn".
12484 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
12485 from vec<rtx> * to vec<rtx_insn *> *.
12486 (is_cond_copy_insn): Likewise for param "insn".
12487 (struct ext_state): Strengthen the four vec fields from vec<rtx>
12488 to vec<rtx_insn *>.
12489 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
12490 local "def_insn" from rtx to rtx_insn *.
12491 (get_sub_rtx): Likewise for param "def_insn".
12492 (merge_def_and_ext): Likewise.
12493 (combine_reaching_defs): Likewise.
12494 (add_removable_extension): Likewise for param "insn".
12495 (find_removable_extensions): Likewise for local "insn".
12496 (find_and_remove_re): Likewise for locals "curr_insn" and
12497 "def_insn". Strengthen locals "reinsn_del_list" and
12498 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
12500 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12502 * recog.c (split_insn): Strengthen param "insn" and locals
12503 "first", "last" from rtx to rtx_insn *.
12504 (split_all_insns): Likewise for locals "insn", "next".
12505 (split_all_insns_noflow): Likewise.
12507 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12509 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
12511 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
12512 (debug_rtx_find): Likewise for param 1 "x".
12514 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
12515 const_rtx to const rtx_insn *. Likewise for local "insn".
12516 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
12517 (debug_rtx_find): Likewise for param 1 "x".
12518 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
12519 from const_rtx to const rtx_insn * within the appropriate cases of
12520 the switch statement.
12522 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
12523 Strengthen local "insns" from rtx to rtx_insn * since this is
12524 passed to a call to debug_rtx_list.
12526 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12528 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
12531 * function.c (stack_protect_epilogue): Add checked cast to
12532 rtx_insn for now when invoking predict_insn_def.
12534 * predict.c (predict_insn): Strengthen param "insn" from rtx to
12536 (predict_insn_def): Likewise.
12537 (rtl_predict_edge): Likewise for local "last_insn".
12538 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
12540 (combine_predictions_for_insn): Strengthen param "insn" from rtx
12542 (bb_estimate_probability_locally): Likewise for local "last_insn".
12543 (expensive_function_p): Likewise for local "insn".
12545 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
12546 local "jmp", since this is used when invoking predict_insn_def.
12548 2014-08-22 Marek Polacek <polacek@redhat.com>
12551 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
12553 2014-08-22 Marek Polacek <polacek@redhat.com>
12556 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
12557 a comparison in parens.
12558 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
12561 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12563 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
12566 * cprop.c (fis_get_condition): Likewise.
12568 * postreload.c (reload_cse_regs): Likewise for param "first".
12569 (reload_cse_simplify): Likewise for param "insn".
12570 (reload_cse_regs_1): Likewise for local "insn".
12571 (reload_cse_simplify_set): Likewise for param "insn".
12572 (reload_cse_simplify_operands): Likewise.
12573 (struct reg_use): Likewise for field "insn".
12574 (reload_combine_purge_insn_uses): Likewise for param "insn".
12575 (fixup_debug_insns): Likewise for params "from", "to" and local
12577 (try_replace_in_use): Likewise for local "use_insn".
12578 (reload_combine_recognize_const_pattern): Likewise for param
12579 "insn" and locals "add_moved_after_insn", "use_insn".
12580 (reload_combine_recognize_pattern): Likewise for param "insn" and
12582 (reload_combine): Likewise for locals "insn", "prev".
12583 (reload_combine_note_use): Likewise for param "insn".
12584 (move2add_use_add2_insn): Likewise.
12585 (move2add_use_add3_insn): Likewise.
12586 (reload_cse_move2add): Likewise, also for local "next".
12587 (move2add_note_store): Likewise for local "insn".
12589 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12591 * postreload-gcse.c (struct occr): Strengthen field "insn" from
12593 (struct unoccr): Likewise.
12594 (struct modifies_mem): Likewise.
12595 (alloc_mem): Likewise for local "insn".
12596 (insert_expr_in_table): Likewise for param "insn".
12597 (dump_expr_hash_table_entry): Likewise for local "insn".
12598 (oprs_unchanged_p): Likewise for param "insn".
12599 (load_killed_in_block_p): Likewise for local "setter".
12600 (record_last_reg_set_info): Likewise for param "insn".
12601 (record_last_reg_set_info_regno): Likewise.
12602 (record_last_mem_set_info): Likewise.
12603 (record_last_set_info): Likewise for local "last_set_insn".
12604 (record_opr_changes): Likewise for param "insn".
12605 (hash_scan_set): Likewise.
12606 (compute_hash_table): Likewise for local "insn".
12607 (get_avail_load_store_reg): Likewise for param "insn".
12608 (eliminate_partially_redundant_load): Likewise, also for locals
12609 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
12611 (eliminate_partially_redundant_loads): Likewise for local "insn".
12613 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12615 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
12617 (expand_binop): Likewise for locals "entry_last", "last", "insns"
12618 (expand_twoval_unop): Likewise for locals entry_last", "last".
12619 (expand_twoval_binop): Likewise.
12620 (expand_twoval_binop_libfunc): Likewise for local "insns".
12621 (widen_leading): Likewise for local "last".
12622 (expand_doubleword_clz): Likewise for local "seq". Strengthen
12623 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
12624 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
12625 (expand_parity): Likewise for locals "last" and "seq".
12626 (expand_ffs): Likewise for local "seq". Strengthen local
12627 "nonzero_label" from rtx to rtx_code_label *.
12628 (expand_absneg_bit): Strengthen local "insns" from rtx to
12630 (expand_unop_direct): Likewise for local "last".
12631 (expand_unop): Likewise for locals "last", "insns".
12632 (expand_abs_nojump): Likewise for local "last".
12633 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
12634 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
12636 (expand_copysign_absneg): Strengthen local "label" from rtx to
12638 (expand_copysign_bit): Strengthen local "insns" from rtx to
12640 (struct no_conflict_data): Likewise for fields "first", "insn".
12641 (emit_libcall_block_1): Likewise for param "insns" and locals
12642 "next", "last", "insn".
12643 (emit_libcall_block): For now, add a checked cast to rtx_insn *
12644 on "insns" when invoking emit_libcall_block_1. Ultimately we
12645 want to strengthen insns itself.
12646 (prepare_cmp_insn): Strengthen local "last" from rtx to
12648 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
12649 (prepare_float_lib_cmp): Likewise for local "insns".
12650 (emit_conditional_move): Likewise for local "last".
12651 (emit_conditional_add): Likewise.
12652 (have_sub2_insn): Likewise for local "seq".
12653 (expand_float): Likewise for local "insns". Strengthen locals
12654 "label", "neglabel" from rtx to rtx_code_label *.
12655 (expand_fix): Likewise for locals "last", "insn", "insns" (to
12656 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
12657 (expand_fixed_convert): Likewise for local "insns" (to
12659 (expand_sfix_optab): Likewise for local "last".
12660 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
12661 to rtx_code_label *.
12662 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
12663 from rtx to rtx_insn *.
12664 (expand_atomic_fetch_op): Likewise for local "insn".
12665 (maybe_legitimize_operand_same_code): Likewise for local "last".
12666 (maybe_legitimize_operands): Likewise.
12668 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12670 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
12671 "insn" from rtx to rtx_insn *.
12672 (ps_rtl_insn): Likewise for return type.
12673 (doloop_register_get): Likewise for params "head", "tail" and
12674 locals "insn", "first_insn_not_to_check".
12675 (schedule_reg_move): Likewise for local "this_insn".
12676 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
12677 of gen_move_insn for now.
12678 (reset_sched_times): Strengthen local "insn" from rtx to
12680 (permute_partial_schedule): Likewise.
12681 (duplicate_insns_of_cycles): Likewise for local "u_insn".
12682 (dump_insn_location): Likewise for param "insn".
12683 (loop_canon_p): Likewise for local "insn".
12684 (sms_schedule): Likewise.
12685 (print_partial_schedule): Likewise.
12686 (ps_has_conflicts): Likewise.
12688 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12690 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
12691 "tailp" from rtx * to rtx_insn **.
12693 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
12694 from rtx to rtx_insn *.
12695 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
12696 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
12697 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
12699 * modulo-sched.c (const_iteration_count): Strengthen return type
12700 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
12701 use of NULL_RTX with NULL when working with insns.
12702 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
12704 (sms_schedule): Likewise.
12705 * sched-rgn.c (init_ready_list): Likewise, also for locals
12706 "src_head" and "src_next_tail".
12707 (compute_block_dependences): Likewise.
12708 (free_block_dependencies): Likewise.
12709 (debug_rgn_dependencies): Likewise.
12710 (free_rgn_deps): Likewise.
12711 (compute_priorities): Likewise.
12712 (schedule_region): Likewise.
12713 * sel-sched.c (find_ebb_boundaries): Likewise.
12715 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
12716 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
12718 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12720 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
12721 from rtx to rtx_insn *.
12722 (new_seginfo): Likewise for param "insn".
12723 (create_pre_exit): Likewise for locals "last_insn",
12724 "before_return_copy", "return_copy".
12725 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
12728 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12730 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
12731 from rtx to rtx_insn *.
12732 (lra_push_insn): Likewise for 1st param.
12733 (lra_push_insn_and_update_insn_regno_info): Likewise.
12734 (lra_pop_insn): Likewise for return type.
12735 (lra_invalidate_insn_data): Likewise for 1st param.
12736 (lra_set_insn_deleted): Likewise.
12737 (lra_delete_dead_insn): Likewise.
12738 (lra_process_new_insns): Likewise for first 3 params.
12739 (lra_set_insn_recog_data): Likewise for 1st param.
12740 (lra_update_insn_recog_data): Likewise.
12741 (lra_set_used_insn_alternative): Likewise.
12742 (lra_invalidate_insn_regno_info): Likewise.
12743 (lra_update_insn_regno_info): Likewise.
12744 (lra_former_scratch_operand_p): Likewise.
12745 (lra_eliminate_regs_1): Likewise.
12746 (lra_get_insn_recog_data): Likewise.
12748 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
12751 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
12753 (substitute_within_insn): New.
12754 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
12755 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
12756 Replace call to "substitute" with call to substitute_within_insn.
12758 * lra-constraints.c (curr_insn): Strengthen from rtx to
12760 (get_equiv_with_elimination): Likewise for param "insn".
12761 (match_reload): Strengthen params "before" and "after" from rtx *
12763 (emit_spill_move): Likewise for return type. Add a checked cast
12764 to rtx_insn * on result of gen_move_insn for now.
12765 (check_and_process_move): Likewise for local "before". Replace
12766 NULL_RTX with NULL when referring to insns.
12767 (process_addr_reg): Strengthen params "before" and "after" from
12768 rtx * to rtx_insn **.
12769 (insert_move_for_subreg): Likewise.
12770 (simplify_operand_subreg): Strengthen locals "before" and "after"
12771 from rtx to rtx_insn *.
12772 (process_address_1): Strengthen params "before" and "after" from
12773 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
12775 (process_address): Strengthen params "before" and "after" from
12776 rtx * to rtx_insn **.
12777 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
12778 (curr_insn_transform): Strengthen locals "before" and "after"
12779 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
12781 (loc_equivalence_callback): Update cast of "data", changing
12782 resulting type from rtx to rtx_insn *.
12783 (substitute_pseudo_within_insn): New.
12784 (inherit_reload_reg): Strengthen param "insn" from rtx to
12785 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
12786 NULL when referring to insns. Add a checked cast to rtx_insn *
12787 when using usage_insn to invoke lra_update_insn_regno_info.
12788 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
12789 likewise for locals "restore", "save". Add checked casts to
12790 rtx_insn * when using usage_insn to invoke
12791 lra_update_insn_regno_info and lra_process_new_insns. Replace
12792 NULL_RTX with NULL when referring to insns.
12793 (split_if_necessary): Strengthen param "insn" from rtx to
12795 (update_ebb_live_info): Likewise for params "head", "tail" and local
12797 (get_last_insertion_point): Likewise for return type and local "insn".
12798 (get_live_on_other_edges): Likewise for local "last".
12799 (inherit_in_ebb): Likewise for params "head", "tail" and locals
12800 "prev_insn", "next_insn", "restore".
12801 (remove_inheritance_pseudos): Likewise for local "prev_insn".
12802 (undo_optional_reloads): Likewise for local "insn".
12804 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
12806 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
12808 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
12810 (spill_pseudos): Likewise for local "insn".
12811 (init_elimination): Likewise.
12812 (process_insn_for_elimination): Likewise for param "insn".
12814 * lra-lives.c (curr_insn): Likewise.;
12816 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
12817 (remove_pseudos): Likewise for param "insn".
12818 (spill_pseudos): Likewise for local "insn".
12819 (lra_final_code_change): Likewise for locals "insn", "curr".
12821 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
12822 (lra_set_insn_deleted): Likewise.
12823 (lra_delete_dead_insn): Likewise, and for local "prev".
12824 (new_insn_reg): Likewise for param "insn".
12825 (lra_set_insn_recog_data): Likewise.
12826 (lra_update_insn_recog_data): Likewise.
12827 (lra_set_used_insn_alternative): Likewise.
12828 (get_insn_freq): Likewise.
12829 (invalidate_insn_data_regno_info): Likewise.
12830 (lra_invalidate_insn_regno_info): Likewise.
12831 (lra_update_insn_regno_info): Likewise.
12832 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
12834 (lra_push_insn_1): Strengthen param "insn" from rtx to
12836 (lra_push_insn): Likewise.
12837 (lra_push_insn_and_update_insn_regno_info): Likewise.
12838 (lra_pop_insn): Likewise for return type and local "insn".
12839 (push_insns): Likewise for params "from", "to", and local "insn".
12840 (setup_sp_offset): Likewise for params "from", "last" and locals
12842 (lra_process_new_insns): Likewise for params "insn", "before",
12843 "after" and local "last".
12844 (struct sloc): Likewise for field "insn".
12845 (lra_former_scratch_operand_p): Likewise for param "insn".
12846 (remove_scratches): Likewise for locals "insn", "last".
12847 (check_rtl): Likewise for local "insn".
12848 (add_auto_inc_notes): Likewise for param "insn".
12849 (update_inc_notes): Likewise for local "insn".
12850 (lra): Replace NULL_RTX with NULL when referring to insn.
12852 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12854 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
12856 (resolve_reg_notes): Likewise.
12857 (resolve_simple_move): Likewise for return type, param "insn", and
12858 locals "insns", "minsn".
12859 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
12860 (resolve_use): Likewise.
12861 (resolve_debug): Likewise.
12862 (find_decomposable_shift_zext): Likewise.
12863 (resolve_shift_zext): Likewise for return type, param "insn", and
12864 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
12865 (decompose_multiword_subregs): Likewise for local "insn",
12866 "orig_insn", "decomposed_shift", "end".
12868 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12870 * basic-block.h (basic_block split_edge_and_insert): Strengthen
12871 param "insns" from rtx to rtx_insn *.
12873 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
12875 (struct iv_to_split): Likewise.
12876 (loop_exit_at_end_p): Likewise for local "insn".
12877 (split_edge_and_insert): Likewise for param "insns".
12878 (compare_and_jump_seq): Likewise for return type, param "cinsn",
12879 and locals "seq", "jump".
12880 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
12881 "branch_code"; update invocations of compare_and_jump_seq to
12882 eliminate NULL_RTX in favor of NULL.
12883 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
12885 (reset_debug_uses_in_loop): Likewise.
12886 (analyze_insn_to_expand_var): Likewise for param "insn".
12887 (analyze_iv_to_split_insn): Likewise.
12888 (analyze_insns_in_loop): Likewise for local "insn".
12889 (insert_base_initialization): Likewise for param
12890 "insn" and local "seq".
12891 (split_iv): Likewise for param "insn" and local "seq".
12892 (expand_var_during_unrolling): Likewise for param "insn".
12893 (insert_var_expansion_initialization): Likewise for local "seq".
12894 (combine_var_copies_in_loop_exit): Likewise.
12895 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
12897 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
12898 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
12901 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12903 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
12905 (iv_analyze_result): Likewise.
12906 (iv_analyze_expr): Likewise.
12909 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
12910 local "def_insn" from rtx to rtx_insn *.
12911 (get_biv_step_1): Likewise for local "insn".
12912 (iv_analyze_expr): Likewise for param "insn".
12913 (iv_analyze_def): Likewise for local "insn".
12914 (iv_analyze_op): Likewise for param "insn".
12915 (iv_analyze): Likewise.
12916 (iv_analyze_result): Likewise.
12918 (suitable_set_for_replacement): Likewise.
12919 (simplify_using_initial_values): Likewise for local "insn".
12920 (iv_number_of_iterations): Likewise for param "insn".
12921 (check_simple_exit): Add checked cast to rtx_insn when invoking
12922 iv_number_of_iterations for now (until get_condition is
12925 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
12926 "insn" from rtx to rtx_insn *.
12927 (analyze_insns_in_loop): Likewise for local "insn".
12929 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12931 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
12933 (struct invariant): Likewise.
12934 (hash_invariant_expr_1): Likewise for param "insn".
12935 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
12936 (find_exits): Likewise for local "insn".
12937 (create_new_invariant): Likewise for param "insn".
12938 (check_dependencies): Likewise.
12939 (find_invariant_insn): Likewise.
12940 (record_uses): Likewise.
12941 (find_invariants_insn): Likewise.
12942 (find_invariants_bb): Likewise for local "insn".
12943 (get_pressure_class_and_nregs): Likewise for param "insn".
12944 (calculate_loop_reg_pressure): Likewise for local "insn".
12946 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12948 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
12950 (add_test): Likewise for locals "seq", "jump".
12951 (doloop_modify): Likewise for locals "sequence", "jump_insn".
12953 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12955 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
12957 (rebuild_jump_labels_chain): Likewise for param "chain".
12959 * cfgexpand.c (pass_expand::execute): Add checked cast to
12960 rtx_insn * when calling rebuild_jump_labels_chain in region where
12961 we know e->insns.r is non-NULL.
12963 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
12965 (rebuild_jump_labels): Likewise.
12966 (rebuild_jump_labels_chain): Likewise for param "chain".
12967 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
12968 (init_label_info): Likewise for param "f".
12969 (maybe_propagate_label_ref): Likewise for params "jump_insn",
12970 "prev_nonjump_insn".
12971 (mark_all_labels): Likewise for param "f" and locals "insn",
12972 "prev_nonjump_insn".
12974 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12976 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
12977 from rtx to rtx_insn *insn.
12978 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
12979 (ira_add_allocno_copy): Likewise.
12980 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
12982 (ira_create_copy): Likewise.
12983 (ira_add_allocno_copy): Likewise.
12984 (create_bb_allocnos): Likewise for local "insn".
12985 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
12986 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
12987 process_regs_for_copy for rtx_insn * param.
12988 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
12989 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
12990 process_regs_for_copy for rtx_insn * param.
12991 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
12992 * ira-costs.c (record_reg_classes): Likewise for param "insn".
12993 (record_operand_costs): Likewise.
12994 (scan_one_insn): Likewise for return type, and for param "insn".
12995 (process_bb_for_costs): Likewise for local "insn".
12996 (process_bb_node_for_hard_reg_moves): Likewise.
12997 * ira-emit.c (struct move): Likewise for field "insn".
12998 (create_move): Eliminate use of NULL_RTX when dealing with an
13000 (emit_move_list): Strengthen return type and locals "result",
13001 "insn" from rtx to rtx_insn *insn.
13002 (emit_moves): Likewise for locals "insns", "tmp".
13003 (ira_emit): Likewise for local "insn".
13004 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
13006 (find_call_crossed_cheap_reg): Likewise.
13007 (process_bb_node_lives): Likewise for local "insn".
13008 * ira.c (decrease_live_ranges_number): Likewise.
13009 (compute_regs_asm_clobbered): Likewise.
13010 (build_insn_chain): Likewise.
13011 (find_moveable_pseudos): Likewise, also locals "def_insn",
13012 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
13013 to rtx_insn **. Add a checked cast when assigning from
13014 "closest_use" into closest_uses array in a region where we know
13015 it's a non-NULL insn.
13016 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
13018 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
13019 "last_interesting_insn", "uin".
13020 (move_unallocated_pseudos): Likewise for locals "def_insn",
13021 "move_insn", "newinsn".
13023 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13025 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
13026 Strengthen locals "done_label", "do_error" from rtx to
13028 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
13029 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
13031 (ubsan_expand_si_overflow_neg_check): Likewise for locals
13032 "done_label", "do_error" to rtx_code_label * and local "last" to
13034 (ubsan_expand_si_overflow_mul_check): Likewise for locals
13035 "done_label", "do_error", "large_op0", "small_op0_large_op1",
13036 "one_small_one_large", "both_ops_large", "after_hipart_neg",
13037 "after_lopart_neg", "do_overflow", "hipart_different" to
13038 rtx_code_label * and local "last" to rtx_insn *.
13040 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13042 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
13043 "insn" and "move_insn" from rtx to rtx_insn *.
13045 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13047 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
13049 (cheap_bb_rtx_cost_p): Likewise.
13050 (first_active_insn): Likewise for return type and local "insn".
13051 (last_active_insn): Likewise for return type and locals "insn",
13053 (struct noce_if_info): Likewise for fields "jump", "insn_a",
13055 (end_ifcvt_sequence): Likewise for return type and locals "insn",
13057 (noce_try_move): Likewise for local "seq".
13058 (noce_try_store_flag): Likewise.
13059 (noce_try_store_flag_constants): Likewise.
13060 (noce_try_addcc): Likewise.
13061 (noce_try_store_flag_mask): Likewise.
13062 (noce_try_cmove): Likewise.
13063 (noce_try_minmax): Likewise.
13064 (noce_try_abs): Likewise.
13065 (noce_try_sign_mask): Likewise.
13066 (noce_try_bitop): Likewise.
13067 (noce_can_store_speculate_p): Likewise for local "insn".
13068 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
13070 (check_cond_move_block): Likewise for local "insn".
13071 (cond_move_convert_if_block): Likewise.
13072 (cond_move_process_if_block): Likewise for locals "seq",
13074 (noce_find_if_block): Likewise for local "jump".
13075 (merge_if_block): Likewise for local "last".
13076 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
13077 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
13078 (block_has_only_trap): Likewise for return type and local "trap".
13079 (find_if_case_1): Likewise for local "jump".
13080 (dead_or_predicable): Likewise for locals "head", "end", "jump",
13083 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13085 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
13086 "last_insn", "loop_end" from rtx to rtx_insn *.
13088 * hw-doloop.c (scan_loop): Likewise for local "insn".
13089 (discover_loop): Likewise for param "tail_insn".
13090 (discover_loops): Likewise for local "tail".
13092 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
13093 cast to rtx_insn * when assigning from an rtx local to a
13094 hwloop_info's "last_insn" field.
13096 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13098 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
13099 (add_delay_dependencies): Strengthen local "pro" from rtx to
13101 (recompute_todo_spec): Likewise.
13102 (dep_cost_1): Likewise for locals "insn", "used".
13103 (schedule_insn): Likewise for local "dbg".
13104 (schedule_insn): Likewise for locals "pro", "next".
13105 (unschedule_insns_until): Likewise for local "con".
13106 (restore_pattern): Likewise for local "next".
13107 (estimate_insn_tick): Likewise for local "pro".
13108 (resolve_dependencies): Likewise for local "next".
13109 (fix_inter_tick): Likewise.
13110 (fix_tick_ready): Likewise for local "pro".
13111 (add_to_speculative_block): Likewise for locals "check", "twin",
13113 (sched_extend_bb): Likewise for locals "end", "insn".
13114 (init_before_recovery): Likewise for local "x".
13115 (sched_create_recovery_block): Likewise for local "barrier".
13116 (create_check_block_twin): Likewise for local "pro".
13117 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
13119 (unlink_bb_notes): Update for change to type of bb_header.
13120 Strengthen locals "prev", "label", "note", "next" from rtx to
13122 (clear_priorities): Likewise for local "pro".
13124 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13126 * gcse.c (struct occr): Strengthen field "insn" from rtx to
13128 (test_insn): Likewise for this global.
13129 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
13131 (oprs_anticipatable_p): Likewise.
13132 (oprs_available_p): Likewise.
13133 (insert_expr_in_table): Strengthen param "insn" from rtx to
13135 (hash_scan_set): Likewise.
13136 (hash_scan_clobber): Likewise.
13137 (hash_scan_call): Likewise.
13138 (hash_scan_insn): Likewise.
13139 (compute_hash_table_work): Likewise for local "insn".
13140 (process_insert_insn): Likewise for return type and local "pat".
13141 (insert_insn_end_basic_block): Likewise for locals "new_insn",
13142 "pat", "pat_end", "maybe_cc0_setter".
13143 (pre_edge_insert): Likewise for local "insn".
13144 (pre_insert_copy_insn): Likewise for param "insn".
13145 (pre_insert_copies): Likewise for local "insn".
13146 (struct set_data): Likewise for field "insn".
13147 (single_set_gcse): Likewise for param "insn".
13148 (gcse_emit_move_after): Likewise.
13149 (pre_delete): Likewise for local "insn".
13150 (update_bb_reg_pressure): Likewise for param "from" and local
13152 (should_hoist_expr_to_dom): Likewise for param "from".
13153 (hoist_code): Likewise for local "insn".
13154 (get_pressure_class_and_nregs): Likewise for param "insn".
13155 (calculate_bb_reg_pressure): Likewise for local "insn".
13156 (compute_ld_motion_mems): Likewise.
13158 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13160 * genpeep.c (main): Rename param back from "uncast_ins1" to
13161 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
13164 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
13166 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
13169 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
13170 documentation to state it is only for VSX operations.
13172 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
13173 constraint only active if VSX.
13175 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
13176 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
13177 (lfiwzx): Likewise.
13179 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13181 * fwprop.c (single_def_use_dom_walker::before_dom_children):
13182 Strengthen local "insn" from rtx to rtx_insn *.
13183 (use_killed_between): Likewise for param "target_insn".
13184 (all_uses_available_at): Likewise for param "target_insn" and
13186 (update_df_init): Likewise for params "def_insn", "insn".
13187 (update_df): Likewise for param "insn".
13188 (try_fwprop_subst): Likewise for param "def_insn" and local
13190 (free_load_extend): Likewise for param "insn".
13191 (forward_propagate_subreg): Likewise for param "def_insn" and
13193 (forward_propagate_asm): Likewise for param "def_insn" and local
13195 (forward_propagate_and_simplify): Likewise for param "def_insn"
13196 and local "use_insn".
13197 (forward_propagate_into): Likewise for locals "def_insn" and
13200 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13202 * function.c (emit_initial_value_sets): Strengthen local "seq"
13203 from rtx to rtx_insn *.
13204 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
13206 (instantiate_virtual_regs): Likewise for local "insn".
13207 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
13208 (reorder_blocks_1): Likewise for param "insns" and local "insn".
13209 (expand_function_end): Likewise for locals "insn" and "seq".
13210 (epilogue_done): Likewise for local "insn".
13211 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
13213 (reposition_prologue_and_epilogue_notes): Likewise for locals
13214 "insn", "last", "note", "first".
13215 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
13216 (pass_match_asm_constraints::execute): Likewise for local "insn".
13218 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13220 * output.h (final_scan_insn): Strengthen return type from rtx to
13222 (final_forward_branch_p): Likewise for param.
13223 (current_output_insn): Likewise for this global.
13225 * final.c (rtx debug_insn): Likewise for this variable.
13226 (current_output_insn): Likewise.
13227 (get_attr_length_1): Rename param "insn" to "uncast_insn",
13228 adding "insn" back in as an rtx_insn * with a checked cast, so
13229 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
13231 (compute_alignments): Strengthen local "label" from rtx to
13233 (shorten_branches): Rename param from "first" to "uncast_first",
13234 introducing a new local rtx_insn * "first" using a checked cast to
13235 effectively strengthen "first" from rtx to rtx_insn * without
13236 affecting the type signature. Strengthen locals "insn", "seq",
13237 "next", "label" from rtx to rtx_insn *.
13238 (change_scope): Strengthen param "orig_insn" and local "insn" from
13240 (final_start_function): Rename param from "first" to "uncast_first",
13241 introducing a new local rtx_insn * "first" using a checked cast to
13242 effectively strengthen "first" from rtx to rtx_insn * without
13243 affecting the type signature. Strengthen local "insn" from rtx to
13245 (dump_basic_block_info): Strengthen param "insn" from rtx to
13247 (final): Rename param from "first" to "uncast_first",
13248 introducing a new local rtx_insn * "first" using a checked cast to
13249 effectively strengthen "first" from rtx to rtx_insn * without
13250 affecting the type signature. Strengthen locals "insn", "next"
13251 from rtx to rtx_insn *.
13252 (output_alternate_entry_point): Strengthen param "insn" from rtx to
13254 (call_from_call_insn): Strengthen param "insn" from rtx to
13256 (final_scan_insn): Rename param from "insn" to "uncast_insn",
13257 introducing a new local rtx_insn * "insn" using a checked cast to
13258 effectively strengthen "insn" from rtx to rtx_insn * without
13259 affecting the type signature. Strengthen return type and locals
13260 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
13261 now-redundant checked cast to rtx_insn * from both invocations of
13262 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
13263 introducing a local "call_insn" for use when invoking
13264 call_from_call_insn.
13265 (notice_source_line): Strengthen param "insn" from rtx to
13267 (leaf_function_p): Likewise for local "insn".
13268 (final_forward_branch_p): Likewise.
13269 (leaf_renumber_regs): Likewise for param "first".
13270 (rest_of_clean_state): Likewise for locals "insn" and "next".
13271 (self_recursive_call_p): Likewise for param "insn".
13272 (collect_fn_hard_reg_usage): Likewise for local "insn".
13273 (get_call_fndecl): Likewise for param "insn".
13274 (get_call_cgraph_rtl_info): Likewise.
13275 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
13276 introducing a new local rtx_insn * "insn" using a checked cast to
13277 effectively strengthen "insn" from rtx to rtx_insn * without
13278 affecting the type signature.
13280 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
13281 cast when assigning from param "insn" to current_output_insn.
13282 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
13283 so that we can assign it back to current_output_insn.
13285 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13287 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
13288 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
13289 atmxt540s and atmxt540sreva devices.
13290 * config/avr/avr-tables.opt: Regenerate.
13291 * config/avr/t-multilib: Regenerate.
13292 * doc/avr-mmcu.texi: Regenerate.
13294 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13296 * expr.c (convert_move): Strengthen local "insns" from rtx to
13298 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
13299 "top_label" from rtx to rtx_code_label *.
13300 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
13302 (emit_single_push_insn): Likewise for locals "prev", "last".
13303 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
13304 to rtx_code_label *.
13305 (store_constructor): Likewise for locals "loop_start", "loop_end".
13306 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
13308 (expand_expr_real_2): Likewise.
13309 (expand_expr_real_1): Strengthen local "label" from rtx to
13312 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13314 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
13315 from rtx to rtx_insn *.
13316 (store_bit_field_1): Likewise.
13317 (extract_bit_field_1): Likewise.
13318 (expand_mult_const): Likewise for local "insns".
13319 (expmed_mult_highpart): Strengthen local "label" from rtx to
13321 (expand_smod_pow2): Likewise.
13322 (expand_sdiv_pow2): Likewise.
13323 (expand_divmod): Strengthen locals "last", "insn" from rtx to
13324 rtx_insn *. Strengthen locals "label", "label1", "label2",
13325 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
13326 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
13327 (emit_store_flag): Likewise.
13328 (emit_store_flag_force): Strengthen local "label" from rtx to
13330 (do_cmp_and_jump): Likewise for param "label".
13332 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13334 * explow.c (force_reg): Strengthen local "insn" from rtx to
13336 (adjust_stack_1): Likewise.
13337 (allocate_dynamic_stack_space): Likewise. Strengthen locals
13338 "final_label", "available_label", "space_available" from rtx to
13340 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
13341 (anti_adjust_stack_and_probe): Likewise.
13343 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13345 * except.h (sjlj_emit_function_exit_after): Strengthen param
13346 "after" from rtx to rtx_insn *. This is only called with
13347 result of get_last_insn (in function.c) so type-change should be
13350 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
13351 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
13352 to rtx_insn *. These fields are only used from except.c so this
13353 type-change should be self-contained to this patch.
13355 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
13356 local "last" from rtx to rtx_insn *.
13357 (dw2_build_landing_pads): Likewise for local "seq".
13358 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
13359 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
13360 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
13362 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
13364 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
13365 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
13366 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
13367 referring to an insn. Strengthen local "dispatch_label" from
13368 rtx to rtx_code_label *.
13369 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
13371 (expand_eh_return): Strengthen local "around_label" from
13372 rtx to rtx_code_label *.
13373 (convert_to_eh_region_ranges): Strengthen locals "iter",
13374 "last_action_insn", "first_no_action_insn",
13375 "first_no_action_insn_before_switch",
13376 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
13378 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13380 * dwarf2out.c (last_var_location_insn): Strengthen this variable
13381 from rtx to rtx_insn *.
13382 (cached_next_real_insn): Likewise.
13383 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
13384 working with insns.
13385 (dwarf2out_var_location): Strengthen locals "next_real",
13386 "next_note", "expected_next_loc_note", "last_start", "insn" from
13389 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13391 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
13392 from rtx to rtx_insn *.
13393 (create_pseudo_cfg): Likewise for local "insn".
13395 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13397 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
13398 from rtx to rtx_insn *.
13399 (df_bb_regno_last_def_find): Likewise.
13401 * df-problems.c (df_rd_bb_local_compute): Likewise.
13402 (df_lr_bb_local_compute): Likewise.
13403 (df_live_bb_local_compute): Likewise.
13404 (df_chain_remove_problem): Likewise.
13405 (df_chain_create_bb): Likewise.
13406 (df_word_lr_bb_local_compute): Likewise.
13407 (df_remove_dead_eq_notes): Likewise for param "insn".
13408 (df_note_bb_compute): Likewise for local "insn".
13409 (simulate_backwards_to_point): Likewise.
13410 (df_md_bb_local_compute): Likewise.
13412 * df-scan.c (df_scan_free_bb_info): Likewise.
13413 (df_scan_start_dump): Likewise.
13414 (df_scan_start_block): Likewise.
13415 (df_install_ref_incremental): Likewise for local "insn".
13416 (df_insn_rescan_all): Likewise.
13417 (df_reorganize_refs_by_reg_by_insn): Likewise.
13418 (df_reorganize_refs_by_insn_bb): Likewise.
13419 (df_recompute_luids): Likewise.
13420 (df_bb_refs_record): Likewise.
13421 (df_update_entry_exit_and_calls): Likewise.
13422 (df_bb_verify): Likewise.
13424 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13426 * ddg.h (struct ddg_node): Strengthen fields "insn" and
13427 "first_note" from rtx to rtx_insn *.
13428 (get_node_of_insn): Likewise for param 2 "insn".
13429 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
13431 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
13433 (mem_write_insn_p): Likewise.
13434 (mem_access_insn_p): Likewise.
13435 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
13436 (def_has_ccmode_p): Likewise for param "insn".
13437 (add_cross_iteration_register_deps): Likewise for locals
13438 "def_insn" and "use_insn".
13439 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
13440 (build_intra_loop_deps): Likewise for local "src_insn".
13441 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
13443 (get_node_of_insn): Likewise for param "insn".
13445 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13447 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
13448 (deletable_insn_p): Strengthen param "insn" from rtx to
13449 rtx_insn *. Add checked cast to rtx_call_insn when invoking
13450 find_call_stack_args, since this is guarded by CALL_P (insn).
13451 (marked_insn_p): Strengthen param "insn" from rtx to
13453 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
13454 invoking find_call_stack_args, since this is guarded by
13456 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
13457 rtx_insn *; we know this is an insn since this was called by
13458 mark_nonreg_stores.
13459 (mark_nonreg_stores_2): Likewise.
13460 (mark_nonreg_stores): Strengthen param "insn" from rtx to
13462 (find_call_stack_args): Strengthen param "call_insn" from rtx to
13463 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
13465 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
13466 from rtx to rtx_insn *.
13467 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
13468 "next", "ref_insn".
13469 (delete_unmarked_insns): Likewise for locals "insn", "next".
13470 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
13471 (mark_reg_dependencies): Likewise for param "insn".
13472 (rest_of_handle_ud_dce): Likewise for local "insn".
13473 (word_dce_process_block): Likewise.
13474 (dce_process_block): Likewise.
13476 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13478 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
13479 from rtx to rtx_insn *.
13480 (struct change_cc_mode_args): Likewise for field "insn".
13481 (this_insn): Strengthen from rtx to rtx_insn *.
13482 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
13484 (validate_canon_reg): Strengthen param "insn" from rtx to
13486 (canon_reg): Likewise.
13487 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
13489 (record_jump_equiv): Strengthen param "insn" from rtx to
13491 (try_back_substitute_reg): Likewise, also for locals "prev",
13493 (find_sets_in_insn): Likewise for param "insn".
13494 (canonicalize_insn): Likewise.
13495 (cse_insn): Likewise. Add a checked cast.
13496 (invalidate_from_clobbers): Likewise for param "insn".
13497 (invalidate_from_sets_and_clobbers): Likewise.
13498 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
13500 (cse_prescan_path): Strengthen local "insn" from rtx to
13502 (cse_extended_basic_block): Likewise for locals "insn" and
13504 (cse_main): Likewise for param "f".
13505 (check_for_label_ref): Likewise for local "insn".
13506 (set_live_p): Likewise for second param ("insn").
13507 (insn_live_p): Likewise for first param ("insn") and for local
13509 (cse_change_cc_mode_insn): Likewise for first param "insn".
13510 (cse_change_cc_mode_insns): Likewise for first and second params
13512 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
13514 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
13517 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
13518 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13519 Anna Tikhonova <anna.tikhonova@intel.com>
13520 Ilya Tocar <ilya.tocar@intel.com>
13521 Andrey Turetskiy <andrey.turetskiy@intel.com>
13522 Ilya Verbin <ilya.verbin@intel.com>
13523 Kirill Yukhin <kirill.yukhin@intel.com>
13524 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13526 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
13528 * config/i386/sse.md
13529 (define_mode_iterator VI248_AVX2): Delete.
13530 (define_mode_iterator VI2_AVX2_AVX512BW): New.
13531 (define_mode_iterator VI48_AVX2): Ditto.
13532 (define_insn <shift_insn><mode>3): Delete.
13533 (define_insn "<shift_insn><mode>3<mask_name>" with
13534 VI2_AVX2_AVX512BW): New.
13535 (define_insn "<shift_insn><mode>3<mask_name>" with
13538 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
13539 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13540 Anna Tikhonova <anna.tikhonova@intel.com>
13541 Ilya Tocar <ilya.tocar@intel.com>
13542 Andrey Turetskiy <andrey.turetskiy@intel.com>
13543 Ilya Verbin <ilya.verbin@intel.com>
13544 Kirill Yukhin <kirill.yukhin@intel.com>
13545 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13547 * config/i386/sse.md
13548 (define_mode_iterator VI4F_BRCST32x2): New.
13549 (define_mode_attr 64x2_mode): Ditto.
13550 (define_mode_attr 32x2mode): Ditto.
13551 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
13552 with VI4F_BRCST32x2): Ditto.
13553 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
13554 with V16FI mode iterator): Ditto.
13555 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
13556 with V16FI): Ditto.
13557 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
13558 with VI8F_BRCST64x2): Ditto.
13560 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
13561 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13562 Anna Tikhonova <anna.tikhonova@intel.com>
13563 Ilya Tocar <ilya.tocar@intel.com>
13564 Andrey Turetskiy <andrey.turetskiy@intel.com>
13565 Ilya Verbin <ilya.verbin@intel.com>
13566 Kirill Yukhin <kirill.yukhin@intel.com>
13567 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13569 * config/i386/sse.md
13570 (define_mode_iterator VI8_AVX512VL): New.
13571 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
13573 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
13575 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
13576 (define_mode_iterator V48_AVX512VL): New.
13577 (define_mode_iterator V12_AVX512VL): Ditto.
13578 (define_insn <avx512>_load<mode>_mask): Split into two similar
13579 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
13580 Refactor output template.
13581 (define_insn "<avx512>_store<mode>_mask"): Ditto.
13583 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13585 * cprop.c (struct occr): Strengthen field "insn" from rtx to
13587 (reg_available_p): Likewise for param "insn".
13588 (insert_set_in_table): Likewise.
13589 (hash_scan_set): Likewise.
13590 (hash_scan_insn): Likewise.
13591 (make_set_regs_unavailable): Likewise.
13592 (compute_hash_table_work): Likewise for local "insn".
13593 (reg_not_set_p): Strengthen param "insn" from const_rtx to
13595 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
13596 (try_replace_reg): Likewise.
13597 (find_avail_set): Likewise.
13598 (cprop_jump): Likewise for params "setcc", "jump".
13599 (constprop_register): Likewise for param "insn".
13600 (cprop_insn): Likewise.
13601 (do_local_cprop): Likewise.
13602 (local_cprop_pass): Likewise for local "insn".
13603 (bypass_block): Likewise for params "setcc" and "jump".
13604 (bypass_conditional_jumps): Likewise for locals "setcc" and
13606 (one_cprop_pass): Likewise for local "insn".
13608 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13610 * compare-elim.c (struct comparison_use): Strengthen field "insn"
13611 from rtx to rtx_insn *.
13612 (struct comparison): Likewise, also for field "prev_clobber".
13613 (conforming_compare): Likewise for param "insn".
13614 (arithmetic_flags_clobber_p): Likewise.
13615 (find_flags_uses_in_insn): Likewise.
13616 (find_comparison_dom_walker::before_dom_children): Likewise for
13617 locals "insn", "next", "last_clobber".
13618 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
13620 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13622 * combine-stack-adj.c (struct csa_reflist): Strengthen field
13623 "insn" from rtx to rtx_insn *.
13624 (single_set_for_csa): Likewise for param "insn".
13625 (record_one_stack_ref): Likewise.
13626 (try_apply_stack_adjustment): Likewise.
13627 (struct record_stack_refs_data): Likewise for field "insn".
13628 (maybe_move_args_size_note): Likewise for params "last" and "insn".
13629 (prev_active_insn_bb): Likewise for return type and param "insn".
13630 (next_active_insn_bb): Likewise.
13631 (force_move_args_size_note): Likewise for params "prev" and "last"
13632 and locals "test", "next_candidate", "prev_candidate".
13633 (combine_stack_adjustments_for_block): Strengthen locals
13634 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
13637 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13639 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
13640 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
13641 (subst_insn): Likewise for this variable.
13642 (added_links_insn): Likewise.
13643 (struct insn_link): Likewise for field "insn".
13644 (alloc_insn_link): Likewise for param "insn".
13645 (struct undobuf): Likewise for field "other_insn".
13646 (find_single_use): Likewise for param "insn" and local "next".
13647 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
13648 (delete_noop_moves): Likewise for locals "insn", "next".
13649 (create_log_links): Likewise for locals "insn", "use_insn".
13650 Strengthen local "next_use" from rtx * to rtx_insn **.
13651 (insn_a_feeds_b): Likewise for params "a", "b".
13652 (combine_instructions): Likewise for param "f" and locals "insn",
13653 "next", "prev", "first", "last_combined_insn", "link", "link1",
13654 "temp". Replace use of NULL_RTX with NULL when referring to
13656 (setup_incoming_promotions): Likewise for param "first"
13657 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
13658 (can_combine_p): Likewise for params "insn", "i3", "pred",
13659 "pred2", "succ", "succ2" and for local "p".
13660 (combinable_i3pat): Likewise for param "i3".
13661 (cant_combine_insn_p): Likewise for param "insn".
13662 (likely_spilled_retval_p): Likewise.
13663 (adjust_for_new_dest): Likewise.
13664 (update_cfg_for_uncondjump): Likewise, also for local "insn".
13665 (try_combine): Likewise for return type and for params "i3", "i2",
13666 "i1", "i0", "last_combined_insn", and for locals "insn",
13667 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
13668 "i0_insn". Eliminate local "tem" in favor of new locals
13669 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
13670 checked cast for now to rtx_insn * on the return type of
13671 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
13673 (find_split_point): Strengthen param "insn" from rtx to
13675 (simplify_set): Likewise for local "other_insn".
13676 (recog_for_combine): Likewise for param "insn".
13677 (record_value_for_reg): Likewise.
13678 (record_dead_and_set_regs_1): Likewise for local
13679 "record_dead_insn".
13680 (record_dead_and_set_regs): Likewise for param "insn".
13681 (record_promoted_value): Likewise.
13682 (check_promoted_subreg): Likewise.
13683 (get_last_value_validate): Likewise.
13684 (reg_dead_at_p): Likewise.
13685 (move_deaths): Likewise for param "to_insn".
13686 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
13687 and locals "place", "place2", "cc0_setter". Eliminate local "tem
13688 in favor of new locals "tem_note" and "tem_insn", the latter being
13690 (distribute_links): Strengthen locals "place", "insn" from rtx to
13693 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13695 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
13697 (can_delete_label_p): Require a const rtx_code_label * rather than
13699 (delete_insn): Add checked cast to rtx_code_label * when we know
13700 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
13702 (delete_insn_chain): Strengthen locals "prev" and "current" from
13703 rtx to rtx_insn *. Add a checked cast when assigning from
13704 "finish" (strengthening the params will come later). Add a
13705 checked cast to rtx_note * in region where we know
13707 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
13709 (compute_bb_for_insn): Likewise.
13710 (free_bb_for_insn): Likewise for local "insn".
13711 (compute_bb_for_insn): Likewise.
13712 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
13713 local "insn" from rtx to rtx_insn *
13714 (flow_active_insn_p): Require a const rtx_insn * rather than a
13716 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
13718 (can_fallthru): Likewise for locals "insn" and "insn2".
13719 (bb_note): Likewise for local "note".
13720 (first_insn_after_basic_block_note): Likewise for local "note" and
13722 (rtl_split_block): Likewise for locals "insn" and "next".
13723 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
13725 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
13726 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
13728 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
13729 them), "kill_from", "barrier", "new_insn".
13730 (patch_jump_insn): Likewise for params "insn", "old_label".
13731 (redirect_branch_edge): Likewise for locals "old_label", "insn".
13732 (force_nonfallthru_and_redirect): Likewise for locals "insn",
13733 "old_label", "new_label".
13734 (rtl_tidy_fallthru_edge): Likewise for local "q".
13735 (rtl_split_edge): Likewise for locals "before", "last".
13736 (commit_one_edge_insertion): Likewise for locals "before",
13737 "after", "insns", "tmp", "last", adding a checked cast where
13738 currently necessary.
13739 (commit_edge_insertions): Likewise.
13740 (rtl_dump_bb): Likewise for locals "insn", "last".
13741 (print_rtl_with_bb): Likewise for local "x".
13742 (rtl_verify_bb_insns): Likewise for local "x".
13743 (rtl_verify_bb_pointers): Likewise for local "insn".
13744 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
13746 (rtl_verify_fallthru): Likewise for local "insn".
13747 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
13748 (purge_dead_edges): Likewise for local "insn".
13749 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
13750 (skip_insns_after_block): Likewise for return type and for locals
13751 "insn", "last_insn", "next_head", "prev".
13752 (record_effective_endpoints): Likewise for locals "next_insn",
13754 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
13755 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
13756 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
13757 (duplicate_insn_chain): For now, add checked cast from rtx to
13758 rtx_insn * when returning insn.
13759 (cfg_layout_duplicate_bb): Likewise for local "insn".
13760 (cfg_layout_delete_block): Likewise for locals "insn", "next",
13761 "prev", "remaints".
13762 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
13763 (rtl_block_empty_p): Likewise.
13764 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
13765 "split_point", "last".
13766 (rtl_block_ends_with_call_p): Likewise for local "insn".
13767 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
13769 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
13770 "split_at_insn" from rtx to rtx_insn *.
13771 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
13772 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
13773 to const rtx_insn *.
13774 (rtl_account_profile_record): Likewise.
13776 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13778 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
13780 (average_num_loop_insns): Likewise.
13781 (init_set_costs): Likewise for local "seq".
13782 (seq_cost): Likewise for param "seq", from const_rtx to const
13785 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13787 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
13790 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13792 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
13793 "f1" and "f2" from rtx * to rtx_insn **.
13794 (flow_find_head_matching_sequence): Likewise.
13796 * cfgcleanup.c (try_simplify_condjump): Strengthen local
13797 "cbranch_insn" from rtx to rtx_insn *.
13798 (thread_jump): Likewise for local "insn".
13799 (try_forward_edges): Likewise for local "last".
13800 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
13801 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
13803 (can_replace_by): Likewise for params "i1", "i2".
13804 (old_insns_match_p): Likewise.
13805 (merge_notes): Likewise.
13806 (walk_to_nondebug_insn): Likewise for param "i1".
13807 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
13808 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
13809 "afterlast1", "afterlast2" from rtx to rtx_insn *.
13810 (flow_find_head_matching_sequence): Strengthen params "f1" and
13811 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
13812 "last1", "last2", "beforelast1", "beforelast2" from rtx to
13814 (outgoing_edges_match): Likewise for locals "last1", "last2".
13815 (try_crossjump_to_edge): Likewise for local "insn".
13816 Replace call to for_each_rtx with for_each_rtx_in_insn.
13818 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
13819 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
13820 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
13821 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
13822 (try_optimize_cfg): Strengthen local "last" from rtx to
13824 (delete_dead_jumptables): Likewise for locals "insn", "next",
13827 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
13828 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
13829 "rtx else_first_tail", to reflect the basic-block.h changes above.
13831 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13833 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
13835 (purge_dead_tablejump_edges): Likewise.
13836 (find_bb_boundaries): Likewise for locals "insn", "end",
13837 "flow_transfer_insn".
13839 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13841 * caller-save.c (save_call_clobbered_regs): Strengthen locals
13842 "ins" and "prev" from rtx to rtx_insn *.
13844 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13846 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
13848 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
13849 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
13851 (load_register_parameters): Likewise for local "before_arg".
13852 (check_sibcall_argument_overlap): Likewise for param "insn".
13853 (expand_call): Likewise for locals "normal_call_insns",
13854 "tail_call_insns", "insns", "before_call", "after_args",
13855 "before_arg", "last", "prev". Strengthen one of the "last" from
13856 rtx to rtx_call_insn *.
13857 (fixup_tail_calls): Strengthen local "insn" from rtx to
13859 (emit_library_call_value_1): Likewise for locals "before_call" and
13862 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13864 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
13865 and "last" from rtx to rtx_insn *.
13866 (expand_builtin_nonlocal_goto): Likewise for local "insn".
13867 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
13869 (expand_errno_check): Strengthen local "lab" from rtx to
13871 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
13873 (expand_builtin_mathfn_2): Likewise.
13874 (expand_builtin_mathfn_ternary): Likewise.
13875 (expand_builtin_mathfn_3): Likewise.
13876 (expand_builtin_interclass_mathfn): Likewise for local "last".
13877 (expand_builtin_int_roundingfn): Likewise for local "insns".
13878 (expand_builtin_int_roundingfn_2): Likewise.
13879 (expand_builtin_strlen): Likewise for local "before_strlen".
13880 (expand_builtin_strncmp): Likewise for local "seq".
13881 (expand_builtin_signbit): Likewise for local "last".
13882 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
13883 from rtx to rtx_code_label *.
13884 (expand_stack_restore): Strengthen local "prev" from rtx to
13887 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13889 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
13891 (struct btr_def_s): Likewise.
13892 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
13894 (add_btr_def): Likewise.
13895 (new_btr_user): Likewise.
13896 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
13898 (link_btr_uses): Likewise.
13899 (move_btr_def): Likewise for locals "insp", "old_insn",
13900 "new_insn". Add checked cast to rtx_insn * for now on result of
13902 (can_move_up): Strengthen param "insn" from const_rtx to
13905 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13907 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
13909 (get_uncond_jump_length): Likewise for locals "label", "jump".
13910 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
13912 (add_labels_and_missing_jumps): Likewise for local "new_jump".
13913 (fix_up_fall_thru_edges): Likewise for local "old_jump".
13914 (find_jump_block): Likewise for local "insn".
13915 (fix_crossing_conditional_branches): Likewise for locals
13916 "old_jump", "new_jump".
13917 (fix_crossing_unconditional_branches): Likewise for locals
13918 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
13919 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
13921 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13923 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
13925 (struct mem_insn): Likewise for field "insn".
13926 (reg_next_use): Strengthen from rtx * to rtx_insn **.
13927 (reg_next_inc_use): Likewise.
13928 (reg_next_def): Likewise.
13929 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
13930 from rtx to rtx_insn *.
13931 (move_insn_before): Likewise for param "next_insn" and local "insns".
13932 (attempt_change): Likewise for local "mov_insn".
13933 (try_merge): Likewise for param "last_insn".
13934 (get_next_ref): Likewise for return type and local "insn".
13935 Strengthen param "next_array" from rtx * to rtx_insn **.
13936 (parse_add_or_inc): Strengthen param "insn" from rtx to
13938 (find_inc): Likewise for locals "insn" and "other_insn" (three of
13940 (merge_in_block): Likewise for locals "insn", "curr",
13942 (pass_inc_dec::execute): Update allocations of the arrays to
13943 reflect the stronger types.
13945 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13947 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
13948 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
13949 from rtx to rtx_code_label *.
13951 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13953 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
13956 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
13958 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
13959 generated a warning and prevented bootstrapping the compiler.
13961 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13963 * rtl.h (delete_related_insns): Strengthen return type from rtx to
13966 * jump.c (delete_related_insns): Likewise, also for locals "next"
13969 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13971 * genautomata.c (output_internal_insn_latency_func): When writing
13972 the function "internal_insn_latency" to insn-automata.c,
13973 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
13974 allowing the optional guard function of (define_bypass) clauses to
13975 expect a pair of rtx_insn *, rather than a pair of rtx.
13976 (output_insn_latency_func): When writing the function
13977 "insn_latency", add an "uncast_" prefix to params "insn" and
13978 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
13979 using checked casts from the params, thus enabling the above
13980 change to the generated "internal_insn_latency" function.
13982 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
13984 PR tree-optimization/62091
13985 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
13986 handle correctly arrays.
13987 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
13988 inheritance binfos.
13989 (record_known_type): Walk into inner type.
13990 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
13991 condition on no type changes.
13993 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13995 * genattrtab.c (write_attr_get): Within the generated get_attr_
13996 functions, rename param "insn" to "uncast_insn" and reintroduce
13997 "insn" as an local rtx_insn * using a checked cast, so that "insn"
13998 is an rtx_insn * within insn-attrtab.c
14000 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14002 * output.h (peephole): Strengthen return type from rtx to
14004 * rtl.h (delete_for_peephole): Likewise for both params.
14005 * genpeep.c (main): In generated "peephole" function, strengthen
14006 return type and local "insn" from rtx to rtx_insn *. For now,
14007 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
14008 rtx_insn *, with a checked cast.
14009 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
14010 locals "insn", "next", "prev" from rtx to rtx_insn *.
14012 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
14014 PR tree-optimization/62112
14015 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
14016 * gimple-iterator.h (gsi_replace): Return bool.
14017 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
14018 moved from ref_may_alias_global_p.
14019 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
14021 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
14022 (stmt_kills_ref_p_1): Rename...
14023 (stmt_kills_ref_p): ... to this.
14024 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
14025 stmt_kills_ref_p): Declare.
14026 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
14027 Move the self-assignment case...
14028 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
14030 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14032 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
14034 * emit-rtl.c (try_split): Likewise, also for locals "before" and
14035 "after". For now, don't strengthen param "trial", which requires
14036 adding checked casts when returning it.
14038 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14040 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
14041 "label" from rtx to rtx_code_label *. Strengthen param 1 of
14042 "var_location" hook from rtx to rtx_insn *.
14043 (debug_nothing_rtx): Delete in favor of...
14044 (debug_nothing_rtx_code_label): New prototype.
14045 (debug_nothing_rtx_rtx): Delete unused prototype.
14046 (debug_nothing_rtx_insn): New prototype.
14048 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
14049 invoking debug_hooks->var_location (in two places, one in a NOTE
14050 case of a switch statement, the other guarded by a CALL_P
14051 conditional. Add checked cast to rtx_code_label * when invoking
14052 debug_hooks->label (within CODE_LABEL case of switch statement).
14054 * dbxout.c (dbx_debug_hooks): Update "label" hook from
14055 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
14056 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
14057 (xcoff_debug_hooks): Likewise.
14058 * debug.c (do_nothing_debug_hooks): Likewise.
14059 (debug_nothing_rtx): Delete in favor of...
14060 (debug_nothing_rtx_insn): New function.
14061 (debug_nothing_rtx_rtx): Delete unused function.
14062 (debug_nothing_rtx_code_label): New function.
14063 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
14064 debug_nothing_rtx to debug_nothing_rtx_code_label.
14065 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
14067 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
14068 debug_nothing_rtx to debug_nothing_rtx_insn.
14069 (sdbout_label): Strengthen param "insn" from rtx to
14071 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
14072 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
14073 "var_location" hook from debug_nothing_rtx to
14074 debug_nothing_rtx_insn.
14076 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14078 * recog.h (insn_output_fn): Update this function typedef to match
14079 the changes below to the generated output functions, strengthening
14080 the 2nd param from rtx to rtx_insn *.
14082 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
14083 insn when invoking an output function, to match the new signature
14084 of insn_output_fn with a stronger second param.
14086 * genconditions.c (write_header): In the generated code for
14087 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
14088 to match the other changes in this patch.
14090 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
14091 the generated "gen_" functions from rtx to rtx_insn * within their
14094 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
14095 the subfunctions within the generated "recog_", "split", "peephole2"
14096 function trees from rtx to rtx_insn *. For now, the top-level
14097 generated functions ("recog", "split", "peephole2") continue to
14098 take a plain rtx for "insn", to avoid introducing dependencies on
14099 other patches. Rename this 2nd param from "insn" to
14100 "uncast_insn", and reintroduce "insn" as a local variable of type
14101 rtx_insn *, initialized at the top of the generated function with
14102 a checked cast on "uncast_insn".
14103 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
14104 the generated "gen_" functions from rtx to rtx_insn * within their
14107 * genoutput.c (process_template): Strengthen the 2nd param within
14108 the generated "output_" functions "insn" from rtx to rtx_insn *.
14110 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
14112 * tree-profile.c (tree_profiling): Skip external functions
14113 when doing coverage instrumentation.
14114 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
14116 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14118 * config/rs6000/altivec.h (vec_cpsgn): New #define.
14119 (vec_mergee): Likewise.
14120 (vec_mergeo): Likewise.
14121 (vec_cntlz): Likewise.
14122 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
14123 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
14124 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
14125 VMRGEW, and VMRGOW.
14126 * doc/extend.texi: Document various forms of vec_cpsgn,
14127 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
14128 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
14129 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
14130 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
14131 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
14133 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14135 * config/rs6000/rs6000.c (context.h): New include.
14136 (tree-pass.h): Likewise.
14137 (make_pass_analyze_swaps): New decl.
14138 (rs6000_option_override): Register pass_analyze_swaps.
14139 (swap_web_entry): New subsclass of web_entry_base (df.h).
14140 (special_handling_values): New enum.
14141 (union_defs): New function.
14142 (union_uses): Likewise.
14143 (insn_is_load_p): Likewise.
14144 (insn_is_store_p): Likewise.
14145 (insn_is_swap_p): Likewise.
14146 (rtx_is_swappable_p): Likewise.
14147 (insn_is_swappable_p): Likewise.
14148 (chain_purpose): New enum.
14149 (chain_contains_only_swaps): New function.
14150 (mark_swaps_for_removal): Likewise.
14151 (swap_const_vector_halves): Likewise.
14152 (adjust_subreg_index): Likewise.
14153 (permute_load): Likewise.
14154 (permute_store): Likewise.
14155 (handle_special_swappables): Likewise.
14156 (replace_swap_with_copy): Likewise.
14157 (dump_swap_insn_table): Likewise.
14158 (rs6000_analyze_swaps): Likewise.
14159 (pass_data_analyze_swaps): New pass_data.
14160 (pass_analyze_swaps): New rtl_opt_pass.
14161 (make_pass_analyze_swaps): New function.
14162 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
14164 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14166 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
14167 type from rtx to rtx_insn *.
14168 (create_copy_of_insn_rtx): Likewise.
14169 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
14170 (create_copy_of_insn_rtx): Likewise, also for local "res".
14172 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14174 * rtl.h (find_first_parameter_load): Strengthen return type from
14176 * rtlanal.c (find_first_parameter_load): Strengthen return type
14177 from rtx to rtx_insn *. Add checked cast for now, to postpone
14178 strengthening the params.
14180 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
14183 * diagnostic.c: Set default caret.
14184 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
14186 * diagnostic.h (struct diagnostic_context):
14188 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14190 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
14191 (sel_bb_head): Strengthen return type insn_t (currently just an
14192 rtx) to rtx_insn *.
14193 (sel_bb_end): Likewise.
14195 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
14196 (sel_bb_head): Strengthen return type and local "head" from
14197 insn_t (currently just an rtx) to rtx_insn *.
14198 (sel_bb_end): Likewise for return type.
14199 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
14202 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14204 * basic-block.h (get_last_bb_insn): Strengthen return type from
14206 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
14209 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
14212 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
14214 (diagnostic_report_diagnostic): ... from here.
14215 * toplev.c (general_init): Move code to c-family.
14217 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14219 * df.h (web_entry_base): Replace existing struct web_entry with a
14220 new class web_entry_base with only the predecessor member.
14221 (unionfind_root): Remove declaration and move to class member.
14222 (unionfind_union): Remove declaration and move to friend
14224 (union_defs): Remove declaration.
14225 * web.c (web_entry_base::unionfind_root): Modify to be member
14226 function and adjust accessors.
14227 (unionfind_union): Modify to be friend function and adjust
14229 (web_entry): New subclass of web_entry_base containing the reg
14231 (union_match_dups): Modify for struct -> class changes.
14232 (union_defs): Likewise.
14233 (entry_register): Likewise.
14234 (pass_web::execute): Likewise.
14236 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
14238 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
14239 builtin define __VEC_ELEMENT_REG_ORDER__.
14241 2014-08-20 Martin Jambor <mjambor@suse.cz>
14242 Wei Mi <wmi@google.com>
14245 PR middle-end/61776
14246 * tree-ssa-operands.c (update_stmt_operands): Remove
14247 MODIFIED_NORETURN_CALLS.
14248 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
14249 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
14250 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
14251 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
14252 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
14253 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
14254 (gimple_call_set_ctrl_altering): New func.
14255 (gimple_call_ctrl_altering_p): Ditto.
14256 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
14257 (make_blocks): Use gimple_call_initialize_ctrl_altering.
14258 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
14259 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
14260 remove MODIFIED_NORETURN_CALLS.
14262 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
14264 * coverage.c (coverage_compute_profile_id): Return non-0;
14265 also handle symbols with unique name.
14266 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
14268 2014-08-20 Steve Ellcey <sellcey@mips.com>
14270 PR middle-end/49191
14271 * doc/sourcebuild.texi (non_strict_align): New.
14273 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
14275 * cgraphunit.c (ipa_passes, compile): Reshedule
14276 symtab_remove_unreachable_nodes passes; update comments.
14277 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
14278 TODO_remove_functions before the pass; the functions ought to be
14280 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
14281 TODO_remove_functions.
14282 * passes.c (pass_data_early_local_passes): Do not schedule function
14284 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
14286 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
14289 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
14290 before setting the option.
14291 * diagnostic.c (diagnostic_classify_diagnostic): Record
14292 command-line status.
14294 2014-08-20 Richard Biener <rguenther@suse.de>
14297 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
14298 to build uint{16,32,64}_type_node.
14300 2014-08-20 Terry Guo <terry.guo@arm.com>
14302 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
14303 with immediate_operand.
14305 2014-08-20 David Malcolm <dmalcolm@redhat.com>
14307 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
14308 "insn" from an as_a to a safe_as_a, for the case when "insn" is
14311 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
14313 PR preprocessor/51303
14314 * incpath.c (remove_duplicates): Use cpp_warning.
14316 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
14320 * doc/options.texi (CPP): Document it.
14321 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
14322 * optc-gen.awk: Handle CPP.
14323 * opth-gen.awk: Likewise.
14325 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14327 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
14329 (duplicate_insn_chain): Likewise.
14330 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
14331 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
14332 checked cast for now (until we can strengthen the params in the
14334 (duplicate_insn_chain): Likewise.
14336 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14338 * rtl.h (next_cc0_user): Strengthen return type from rtx to
14340 (prev_cc0_setter): Likewise.
14342 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
14343 rtx_insn *, adding checked casts for now as necessary.
14344 (prev_cc0_setter): Likewise.
14346 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14348 * expr.h (emit_move_insn): Strengthen return type from rtx to
14350 (emit_move_insn_1): Likewise.
14351 (emit_move_complex_push): Likewise.
14352 (emit_move_complex_parts): Likewise.
14354 * expr.c (emit_move_via_integer): Strengthen return type from rtx
14355 to rtx_insn *. Replace use of NULL_RTX with NULL when working
14357 (emit_move_complex_push): Strengthen return type from rtx to
14359 (emit_move_complex): Likewise, also for local "ret".
14360 (emit_move_ccmode): Likewise.
14361 (emit_move_multi_word): Likewise for return type and locals
14362 "last_insn", "seq".
14363 (emit_move_insn_1): Likewise for return type and locals "result",
14365 (emit_move_insn): Likewise for return type and local "last_insn".
14366 (compress_float_constant): Likewise.
14368 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14370 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
14371 from rtx to rtx_insn *.
14373 * rtl.h (emit_insn_before): Likewise.
14374 (emit_insn_before_noloc): Likewise.
14375 (emit_insn_before_setloc): Likewise.
14376 (emit_jump_insn_before): Likewise.
14377 (emit_jump_insn_before_noloc): Likewise.
14378 (emit_jump_insn_before_setloc): Likewise.
14379 (emit_call_insn_before): Likewise.
14380 (emit_call_insn_before_noloc): Likewise.
14381 (emit_call_insn_before_setloc): Likewise.
14382 (emit_debug_insn_before): Likewise.
14383 (emit_debug_insn_before_noloc): Likewise.
14384 (emit_debug_insn_before_setloc): Likewise.
14385 (emit_label_before): Likewise.
14386 (emit_insn_after): Likewise.
14387 (emit_insn_after_noloc): Likewise.
14388 (emit_insn_after_setloc): Likewise.
14389 (emit_jump_insn_after): Likewise.
14390 (emit_jump_insn_after_noloc): Likewise.
14391 (emit_jump_insn_after_setloc): Likewise.
14392 (emit_call_insn_after): Likewise.
14393 (emit_call_insn_after_noloc): Likewise.
14394 (emit_call_insn_after_setloc): Likewise.
14395 (emit_debug_insn_after): Likewise.
14396 (emit_debug_insn_after_noloc): Likewise.
14397 (emit_debug_insn_after_setloc): Likewise.
14398 (emit_label_after): Likewise.
14399 (emit_insn): Likewise.
14400 (emit_debug_insn): Likewise.
14401 (emit_jump_insn): Likewise.
14402 (emit_call_insn): Likewise.
14403 (emit_label): Likewise.
14404 (gen_clobber): Likewise.
14405 (emit_clobber): Likewise.
14406 (gen_use): Likewise.
14407 (emit_use): Likewise.
14410 (emit_barrier_before): Strengthen return type from rtx to
14412 (emit_barrier_after): Likewise.
14413 (emit_barrier): Likewise.
14415 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
14416 from rtx to rtx_insn *. Add checked casts for now when converting
14417 "last" from rtx to rtx_insn *.
14418 (emit_insn_before_noloc): Likewise for return type.
14419 (emit_jump_insn_before_noloc): Likewise.
14420 (emit_call_insn_before_noloc): Likewise.
14421 (emit_debug_insn_before_noloc): Likewise.
14422 (emit_barrier_before): Strengthen return type and local "insn"
14423 from rtx to rtx_barrier *.
14424 (emit_label_before): Strengthen return type from rtx to
14425 rtx_insn *. Add checked cast for now when returning param
14426 (emit_pattern_after_noloc): Strengthen return type from rtx to
14427 rtx_insn *. Add checked casts for now when converting "last" from
14429 (emit_insn_after_noloc): Strengthen return type from rtx to
14431 (emit_jump_insn_after_noloc): Likewise.
14432 (emit_call_insn_after_noloc): Likewise.
14433 (emit_debug_insn_after_noloc): Likewise.
14434 (emit_barrier_after): Strengthen return type from rtx to
14436 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
14437 Add checked cast for now when converting "label" from rtx to
14439 (emit_pattern_after_setloc): Strengthen return type from rtx to
14440 rtx_insn *. Add checked casts for now when converting "last" from
14442 (emit_pattern_after): Strengthen return type from rtx to
14444 (emit_insn_after_setloc): Likewise.
14445 (emit_insn_after): Likewise.
14446 (emit_jump_insn_after_setloc): Likewise.
14447 (emit_jump_insn_after): Likewise.
14448 (emit_call_insn_after_setloc): Likewise.
14449 (emit_call_insn_after): Likewise.
14450 (emit_debug_insn_after_setloc): Likewise.
14451 (emit_debug_insn_after): Likewise.
14452 (emit_pattern_before_setloc): Likewise. Add checked casts for now
14453 when converting "last" from rtx to rtx_insn *.
14454 (emit_pattern_before): Strengthen return type from rtx to
14456 (emit_insn_before_setloc): Likewise.
14457 (emit_insn_before): Likewise.
14458 (emit_jump_insn_before_setloc): Likewise.
14459 (emit_jump_insn_before): Likewise.
14460 (emit_call_insn_before_setloc): Likewise.
14461 (emit_call_insn_before): Likewise.
14462 (emit_debug_insn_before_setloc): Likewise.
14463 (emit_debug_insn_before): Likewise.
14464 (emit_insn): Strengthen return type and locals "last", "insn",
14465 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
14466 within cases where we know we have an insn.
14467 (emit_debug_insn): Likewise.
14468 (emit_jump_insn): Likewise.
14469 (emit_call_insn): Strengthen return type and local "insn" from rtx
14471 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
14472 a checked cast to rtx_insn * for now on "label".
14473 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
14474 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
14475 (emit_use): Likewise.
14476 (gen_use): Likewise, also for local "seq".
14477 (emit): Likewise for return type and local "insn".
14478 (rtx_insn): Likewise for return type and local "new_rtx".
14480 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
14481 from rtx to rtx_barrier *.
14483 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
14484 changed return type from rtx to rtx_insn *, we must update
14485 "emit_fn" type, and this in turn means updating...
14486 (frame_insn): ...this. Strengthen return type from rtx to
14487 rtx_insn *. Introduce a new local "insn" of the appropriate type.
14489 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14491 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
14492 rtx to rtx_jump_table_data *. Also for local.
14493 * rtl.h (emit_jump_table_data): Likewise.
14495 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14497 * basic-block.h (create_basic_block_structure): Strengthen third
14498 param "bb_note" from rtx to rtx_note *.
14499 * rtl.h (emit_note_before): Strengthen return type from rtx to
14501 (emit_note_after): Likewise.
14502 (emit_note): Likewise.
14503 (emit_note_copy): Likewise. Also, strengthen param similarly.
14504 * function.h (struct rtl_data): Strengthen field
14505 "x_stack_check_probe_note" from rtx to rtx_note *.
14507 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
14508 from rtx to rtx_note *.
14509 * cfgrtl.c (create_basic_block_structure): Strengthen third param
14510 "bb_note" from rtx to rtx_note *.
14511 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
14512 when calling emit_note_copy.
14513 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
14515 (emit_note_after): Likewise.
14516 (emit_note_before): Likewise.
14517 (emit_note_copy): Likewise. Also, strengthen param similarly.
14518 (emit_note): Likewise.
14519 * except.c (emit_note_eh_region_end): Likewise for return type.
14520 Strengthen local "next" from rtx to rtx_insn *.
14521 (convert_to_eh_region_ranges): Strengthen local "note"
14522 from rtx to rtx_note *.
14523 * final.c (change_scope): Likewise.
14524 (reemit_insn_block_notes): Likewise, for both locals named "note".
14525 Also, strengthen local "insn" from rtx to rtx_insn *.
14526 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
14528 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
14529 strengthen local "seq" from rtx to rtx_insn *.
14530 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
14532 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
14534 (get_bb_note_from_pool): Strengthen return type from rtx to
14536 (sel_create_basic_block): Strengthen local "new_bb_note" from
14537 insn_t to rtx_note *.
14538 * var-tracking.c (emit_note_insn_var_location): Strengthen local
14539 "note" from rtx to rtx_note *.
14540 (emit_notes_in_bb): Likewise.
14542 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14544 * function.h (struct rtl_data): Strengthen field
14545 "x_parm_birth_insn" from rtx to rtx_insn *.
14546 * function.c (struct assign_parm_data_all): Strengthen fields
14547 "first_conversion_insn" and "last_conversion_insn" from rtx to
14550 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14552 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
14553 to rtx_insn *; also for local "var_end_seq".
14554 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
14555 (maybe_cleanup_end_of_block): Likewise for param "last" and local
14557 (expand_gimple_cond): Likewise for locals "last2" and "last".
14558 (mark_transaction_restart_calls): Likewise for local "insn".
14559 (expand_gimple_stmt): Likewise for return type and locals "last"
14561 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
14562 (avoid_complex_debug_insns): Likewise for param "insn".
14563 (expand_debug_locations): Likewise for locals "insn", "last",
14564 "prev_insn" and "insn2".
14565 (expand_gimple_basic_block): Likewise for local "last".
14566 (construct_exit_block): Likewise for locals "head", "end",
14568 (pass_expand::execute): Likewise for locals "var_seq",
14569 "var_ret_seq", "next".
14571 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14573 * asan.h (asan_emit_stack_protection): Strengthen return type from
14575 * asan.c (asan_emit_stack_protection): Likewise. Add local
14576 "insns" to hold the return value.
14578 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14580 * basic-block.h (bb_note): Strengthen return type from rtx to
14582 * sched-int.h (bb_note): Likewise.
14583 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
14585 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14587 * rtl.h (make_insn_raw): Strengthen return type from rtx to
14590 * emit-rtl.c (make_insn_raw): Strengthen return type and local
14591 "insn" from rtx to rtx_insn *.
14592 (make_debug_insn_raw): Strengthen return type from rtx to
14593 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
14594 (make_jump_insn_raw): Strengthen return type from rtx to
14595 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
14596 (make_call_insn_raw): Strengthen return type from rtx to
14597 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
14598 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
14599 callback from rtx to rtx_insn *; likewise for local "insn" and
14600 "next", adding a checked cast to rtx_insn in the relevant cases of
14601 the switch statement.
14602 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
14603 callback from rtx to rtx_insn *.
14604 (emit_pattern_after_setloc): Likewise.
14605 (emit_pattern_after): Likewise.
14606 (emit_pattern_before_setloc): Likewise.
14607 (emit_pattern_before): Likewise.
14609 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14611 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
14613 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
14614 accepting an rtx_insn *.
14615 (last_call_insn): Strengthen return type from rtx to
14618 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14620 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
14621 "insns" from rtx to rtx_insn *.
14622 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
14623 locals "insn" and "prev".
14625 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14627 * rtl.h (tablejump_p): Strengthen third param from rtx * to
14628 rtx_jump_table_data **.
14630 * cfgbuild.c (make_edges): Introduce local "table", using it in
14631 place of "tmp" for jump table data.
14632 (find_bb_boundaries): Strengthen local "table" from rtx to
14633 rtx_jump_table_data *.
14634 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
14635 (outgoing_edges_match): Likewise for locals "table1" and "table2".
14636 (try_crossjump_to_edge): Likewise.
14637 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
14639 (patch_jump_insn): Introduce local "table", using it in place of
14640 "tmp" for jump table data.
14641 (force_nonfallthru_and_redirect): Introduce local "table", so that
14642 call to tablejump_p can receive an rtx_jump_table_data **. Update
14643 logic around the call to overwrite "note" appropriately if
14644 tablejump_p returns non-zero.
14645 (get_last_bb_insn): Introduce local "table", using it in place of
14646 "tmp" for jump table data.
14647 * dwarf2cfi.c (create_trace_edges): Likewise.
14649 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
14650 from rtx to rtx_jump_table_data *.
14651 (create_fix_barrier): Strengthen local "tmp" from rtx to
14652 rtx_jump_table_data *.
14653 (arm_reorg): Likewise for local "table".
14655 * config/s390/s390.c (s390_chunkify_start): Likewise.
14657 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
14659 * jump.c (delete_related_insns): Strengthen local "lab_next" from
14660 rtx to rtx_jump_table_data *.
14662 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
14663 rtx_jump_table_data **. Add a checked cast when writing through
14664 the pointer: we know there that local "table" is non-NULL and that
14665 JUMP_TABLE_DATA_P (table) holds.
14666 (label_is_jump_target_p): Introduce local "table", using it in
14667 place of "tmp" for jump table data.
14669 2014-08-19 Marek Polacek <polacek@redhat.com>
14672 * doc/invoke.texi: Document -Wbool-compare.
14674 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14676 * rtl.h (entry_of_function): Strengthen return type from rtx to
14678 * cfgrtl.c (entry_of_function): Likewise.
14680 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14682 * emit-rtl.h (get_insns): Strengthen return type from rtx to
14683 rtx_insn *, adding a checked cast for now.
14684 (get_last_insn): Likewise.
14686 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14688 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
14691 * emit-rtl.c (gen_label_rtx): Likewise.
14693 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14695 * rtl.h (previous_insn): Strengthen return type from rtx to
14697 (next_insn): Likewise.
14698 (prev_nonnote_insn): Likewise.
14699 (prev_nonnote_insn_bb): Likewise.
14700 (next_nonnote_insn): Likewise.
14701 (next_nonnote_insn_bb): Likewise.
14702 (prev_nondebug_insn): Likewise.
14703 (next_nondebug_insn): Likewise.
14704 (prev_nonnote_nondebug_insn): Likewise.
14705 (next_nonnote_nondebug_insn): Likewise.
14706 (prev_real_insn): Likewise.
14707 (next_real_insn): Likewise.
14708 (prev_active_insn): Likewise.
14709 (next_active_insn): Likewise.
14711 * emit-rtl.c (next_insn): Strengthen return type from rtx to
14712 rtx_insn *, adding a checked cast.
14713 (previous_insn): Likewise.
14714 (next_nonnote_insn): Likewise.
14715 (next_nonnote_insn_bb): Likewise.
14716 (prev_nonnote_insn): Likewise.
14717 (prev_nonnote_insn_bb): Likewise.
14718 (next_nondebug_insn): Likewise.
14719 (prev_nondebug_insn): Likewise.
14720 (next_nonnote_nondebug_insn): Likewise.
14721 (prev_nonnote_nondebug_insn): Likewise.
14722 (next_real_insn): Likewise.
14723 (prev_real_insn): Likewise.
14724 (next_active_insn): Likewise.
14725 (prev_active_insn): Likewise.
14727 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
14728 param "stepfunc" so that it returns an rtx_insn * rather than an
14729 rtx, to track the change to prev_nonnote_insn_bb, which is the
14730 only function this is called with.
14731 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
14733 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
14735 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
14738 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14740 * coretypes.h (class rtx_debug_insn): Add forward declaration.
14741 (class rtx_nonjump_insn): Likewise.
14742 (class rtx_jump_insn): Likewise.
14743 (class rtx_call_insn): Likewise.
14744 (class rtx_jump_table_data): Likewise.
14745 (class rtx_barrier): Likewise.
14746 (class rtx_code_label): Likewise.
14747 (class rtx_note): Likewise.
14749 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
14750 adding the invariant DEBUG_INSN_P (X).
14751 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
14752 the invariant NONJUMP_INSN_P (X).
14753 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
14754 the invariant JUMP_P (X).
14755 (class rtx_call_insn): New, a subclass of rtx_insn, adding
14756 the invariant CALL_P (X).
14757 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
14758 invariant JUMP_TABLE_DATA_P (X).
14759 (class rtx_barrier): New, a subclass of rtx_insn, adding the
14760 invariant BARRIER_P (X).
14761 (class rtx_code_label): New, a subclass of rtx_insn, adding
14762 the invariant LABEL_P (X).
14763 (class rtx_note): New, a subclass of rtx_insn, adding
14764 the invariant NOTE_P(X).
14765 (is_a_helper <rtx_debug_insn *>::test): New.
14766 (is_a_helper <rtx_nonjump_insn *>::test): New.
14767 (is_a_helper <rtx_jump_insn *>::test): New.
14768 (is_a_helper <rtx_call_insn *>::test): New.
14769 (is_a_helper <rtx_jump_table_data *>::test): New functions,
14770 overloaded for both rtx and rtx_insn *.
14771 (is_a_helper <rtx_barrier *>::test): New.
14772 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
14773 for both rtx and rtx_insn *.
14774 (is_a_helper <rtx_note *>::test): New.
14776 2014-08-19 Marek Polacek <polacek@redhat.com>
14778 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
14779 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
14780 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
14781 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
14783 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14785 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
14786 rtx_insn *. To help with transition, for now, convert from an
14787 access macro into a pair of functions: BND_TO, returning an
14789 (SET_BND_TO): New function, for use where BND_TO is used as an
14792 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
14794 (BND_TO): New function, adding a checked cast.
14795 (SET_BND_TO): New function.
14797 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
14799 (compute_av_set_on_boundaries): Likewise.
14801 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
14803 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
14804 destination if it is used in source.
14805 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
14806 (*popcount<mode>2_falsedep_1): Likewise.
14808 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
14811 * configure.ac: Set install_gold_as_default to no first.
14812 * configure: Regenerated.
14814 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14816 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
14817 "note_list" field will eventually be an rtx_insn *. To help with
14818 transition, for now, convert from an access macro into a pair of
14819 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
14820 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
14823 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
14824 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
14826 * sel-sched-ir.c (init_bb): Likewise.
14827 (sel_restore_notes): Likewise.
14828 (move_bb_info): Likewise.
14829 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
14830 (SET_BB_NOTE_LIST): New function.
14832 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14834 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
14835 field will eventually be an rtx_insn *. To help with transition,
14836 for now, convert from an access macro into a pair of functions:
14837 VINSN_INSN_RTX, returning an rtx_insn *, and...
14838 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
14839 is used as an lvalue.
14841 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
14842 SET_VINSN_INSN_RTX where it's used as an lvalue.
14843 (VINSN_INSN_RTX): New function.
14844 (SET_VINSN_INSN_RTX): New function.
14846 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14848 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
14849 eventually be rtx_insn *, but to help with transition, for now,
14850 convert from an access macro into a pair of functions: DEP_PRO
14851 returning an rtx_insn * and...
14852 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
14853 lvalue, returning an rtx&.
14854 (DEP_CON): Analogous changes to DEP_PRO above.
14855 (SET_DEP_CON): Likewise.
14857 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
14858 an lvalue to SET_DEP_CON.
14859 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
14860 (sd_copy_back_deps): Likewise for DEP_CON.
14861 (DEP_PRO): New function, adding a checked cast for now.
14862 (DEP_CON): Likewise.
14863 (SET_DEP_PRO): New function.
14864 (SET_DEP_CON): Likewise.
14866 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
14868 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
14869 (extra_options): Add i386/cygwin.opt.
14870 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
14871 (CPP_SPEC): Accept -pthread.
14872 (LINK_SPEC): Ditto.
14873 (GOMP_SELF_SPECS): Update comment.
14874 * config/i386/cygwin.opt: New file for -pthread flag.
14876 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14878 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
14879 * df.h (DF_REF_INSN): Convert from a macro to a function, so
14880 that we can return an rtx_insn *.
14882 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
14884 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
14885 when building executables, not DLLs. Add --large-address-aware
14886 under the same conditions.
14887 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
14888 when building executables, not DLLs. Add --large-address-aware
14889 under the same conditions when using -m32.
14891 * config/i386/cygwin-stdint.h: Throughout, make type
14892 definitions dependent on target architecture, not host.
14894 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14896 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
14897 the return type from rtx to rtx_insn *, which will enable various
14898 conversions in followup patches. For now this is is done by a
14900 (NEXT_INSN): Likewise.
14901 (SET_PREV_INSN): Convert to an inline function. This is intended
14902 for use as an lvalue, and so returns an rtx& to allow in-place
14904 (SET_NEXT_INSN): Likewise.
14906 2014-07-08 Mark Wielaard <mjw@redhat.com>
14909 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
14911 2014-08-19 Marek Polacek <polacek@redhat.com>
14914 * cgraphunit.c (handle_alias_pairs): Fix condition.
14916 2014-08-19 Richard Biener <rguenther@suse.de>
14918 * gimple-fold.c (fold_gimple_assign): Properly build a
14919 null-pointer constant when devirtualizing addresses.
14921 2014-07-07 Mark Wielaard <mjw@redhat.com>
14923 * dwarf2out.c (decl_quals): New function.
14924 (modified_type_die): Take one cv_quals argument instead of two,
14925 one for const and one for volatile.
14926 (add_type_attribute): Likewise.
14927 (generic_parameter_die): Call add_type_attribute with one modifier
14929 (base_type_for_mode): Likewise.
14930 (add_bounds_info): Likewise.
14931 (add_subscript_info): Likewise.
14932 (gen_array_type_die): Likewise.
14933 (gen_descr_array_type_die): Likewise.
14934 (gen_entry_point_die): Likewise.
14935 (gen_enumeration_type_die): Likewise.
14936 (gen_formal_parameter_die): Likewise.
14937 (gen_subprogram_die): Likewise.
14938 (gen_variable_die): Likewise.
14939 (gen_const_die): Likewise.
14940 (gen_field_die): Likewise.
14941 (gen_pointer_type_die): Likewise.
14942 (gen_reference_type_die): Likewise.
14943 (gen_ptr_to_mbr_type_die): Likewise.
14944 (gen_inheritance_die): Likewise.
14945 (gen_subroutine_type_die): Likewise.
14946 (gen_typedef_die): Likewise.
14947 (force_type_die): Likewise.
14949 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14951 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
14953 * configure: Regenerate.
14955 2014-08-19 Richard Biener <rguenther@suse.de>
14957 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
14958 DECL_EXTERNALs in BLOCKs as non-references.
14959 * tree-streamer-out.c (streamer_write_chain): Likewise.
14961 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
14962 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14963 Anna Tikhonova <anna.tikhonova@intel.com>
14964 Ilya Tocar <ilya.tocar@intel.com>
14965 Andrey Turetskiy <andrey.turetskiy@intel.com>
14966 Ilya Verbin <ilya.verbin@intel.com>
14967 Kirill Yukhin <kirill.yukhin@intel.com>
14968 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14970 * config/i386/sse.md
14971 (define_mode_iterator VI48_AVX512F): Delete.
14972 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
14973 (define_mode_iterator VI2_AVX512VL): Ditto.
14974 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
14977 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
14979 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
14980 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
14981 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
14982 with VI48_AVX512F_AVX512VL): New.
14983 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
14984 with VI2_AVX512VL): Ditto.
14986 2014-08-19 Marek Polacek <polacek@redhat.com>
14988 * doc/invoke.texi: Document -Wc99-c11-compat.
14990 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14992 * rtl.h (PREV_INSN): Split macro in two: the existing one,
14993 for rvalues, and...
14994 (SET_PREV_INSN): New macro, for use as an lvalue.
14995 (NEXT_INSN, SET_NEXT_INSN): Likewise.
14997 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
14998 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
14999 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
15000 (fixup_abnormal_edges): Likewise.
15001 (unlink_insn_chain): Likewise.
15002 (fixup_reorder_chain): Likewise.
15003 (cfg_layout_delete_block): Likewise.
15004 (cfg_layout_merge_blocks): Likewise.
15005 * combine.c (update_cfg_for_uncondjump): Likewise.
15006 * emit-rtl.c (link_insn_into_chain): Likewise.
15007 (remove_insn): Likewise.
15008 (delete_insns_since): Likewise.
15009 (reorder_insns_nobb): Likewise.
15010 (emit_insn_after_1): Likewise.
15011 * final.c (rest_of_clean_state): Likewise.
15012 (final_scan_insn): Likewise.
15013 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
15014 * haifa-sched.c (concat_note_lists): Likewise.
15015 (remove_notes): Likewise.
15016 (restore_other_notes): Likewise.
15017 (move_insn): Likewise.
15018 (unlink_bb_notes): Likewise.
15019 (restore_bb_notes): Likewise.
15020 * jump.c (delete_for_peephole): Likewise.
15021 * optabs.c (emit_libcall_block_1): Likewise.
15022 * reorg.c (emit_delay_sequence): Likewise.
15023 (fill_simple_delay_slots): Likewise.
15024 * sel-sched-ir.c (sel_move_insn): Likewise.
15025 (sel_remove_insn): Likewise.
15026 (get_bb_note_from_pool): Likewise.
15027 * sel-sched.c (move_nop_to_previous_block): Likewise.
15029 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
15030 * config/c6x/c6x.c (gen_one_bundle): Likewise.
15031 (c6x_gen_bundles): Likewise.
15032 (hwloop_optimize): Likewise.
15033 * config/frv/frv.c (frv_function_prologue): Likewise.
15034 (frv_register_nop): Likewise.
15035 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
15036 (ia64_reorg): Likewise.
15037 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
15038 (mep_make_bundle): Likewise.
15039 (mep_bundle_insns): Likewise.
15040 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
15041 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
15042 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
15044 2014-08-19 David Malcolm <dmalcolm@redhat.com>
15046 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
15047 return type from rtx to rtx_insn *.
15048 (BB_END): Likewise.
15049 (BB_HEADER): Likewise.
15050 (BB_FOOTER): Likewise.
15051 (SET_BB_HEAD): Convert to a function.
15052 (SET_BB_END): Likewise.
15053 (SET_BB_HEADER): Likewise.
15054 (SET_BB_FOOTER): Likewise.
15056 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
15057 Strengthen the return type from rtx to rtx_insn *. For now, this
15058 is done by adding a checked cast, but this will eventually
15059 become a field lookup.
15060 (BB_END): Likewise.
15061 (BB_HEADER): Likewise.
15062 (BB_FOOTER): Likewise.
15063 (SET_BB_HEAD): New function, from macro of same name. This is
15064 intended for use as an lvalue, and so returns an rtx& to allow
15065 in-place modification.
15066 (SET_BB_END): Likewise.
15067 (SET_BB_HEADER): Likewise.
15068 (SET_BB_FOOTER): Likewise.
15070 2014-08-18 David Malcolm <dmalcolm@redhat.com>
15072 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
15073 for rvalues, and...
15074 (SET_BB_HEAD): New macro, for use as a lvalue.
15075 (BB_END, SET_BB_END): Likewise.
15076 (BB_HEADER, SET_BB_HEADER): Likewise.
15077 (BB_FOOTER, SET_BB_FOOTER): Likewise.
15079 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
15080 of BB_* macros into SET_BB_* macros.
15081 (fix_crossing_unconditional_branches): Likewise.
15082 * caller-save.c (save_call_clobbered_regs): Likewise.
15083 (insert_one_insn): Likewise.
15084 * cfgbuild.c (find_bb_boundaries): Likewise.
15085 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
15086 (outgoing_edges_match): Likewise.
15087 (try_optimize_cfg): Likewise.
15088 * cfgexpand.c (expand_gimple_cond): Likewise.
15089 (expand_gimple_tailcall): Likewise.
15090 (expand_gimple_basic_block): Likewise.
15091 (construct_exit_block): Likewise.
15092 * cfgrtl.c (delete_insn): Likewise.
15093 (create_basic_block_structure): Likewise.
15094 (rtl_delete_block): Likewise.
15095 (rtl_split_block): Likewise.
15096 (emit_nop_for_unique_locus_between): Likewise.
15097 (rtl_merge_blocks): Likewise.
15098 (block_label): Likewise.
15099 (try_redirect_by_replacing_jump): Likewise.
15100 (emit_barrier_after_bb): Likewise.
15101 (fixup_abnormal_edges): Likewise.
15102 (record_effective_endpoints): Likewise.
15103 (relink_block_chain): Likewise.
15104 (fixup_reorder_chain): Likewise.
15105 (fixup_fallthru_exit_predecessor): Likewise.
15106 (cfg_layout_duplicate_bb): Likewise.
15107 (cfg_layout_split_block): Likewise.
15108 (cfg_layout_delete_block): Likewise.
15109 (cfg_layout_merge_blocks): Likewise.
15110 * combine.c (update_cfg_for_uncondjump): Likewise.
15111 * emit-rtl.c (add_insn_after): Likewise.
15112 (remove_insn): Likewise.
15113 (reorder_insns): Likewise.
15114 (emit_insn_after_1): Likewise.
15115 * haifa-sched.c (get_ebb_head_tail): Likewise.
15116 (restore_other_notes): Likewise.
15117 (move_insn): Likewise.
15118 (sched_extend_bb): Likewise.
15119 (fix_jump_move): Likewise.
15120 * ifcvt.c (noce_process_if_block): Likewise.
15121 (dead_or_predicable): Likewise.
15122 * ira.c (update_equiv_regs): Likewise.
15123 * reg-stack.c (change_stack): Likewise.
15124 * sel-sched-ir.c (sel_move_insn): Likewise.
15125 * sel-sched.c (move_nop_to_previous_block): Likewise.
15127 * config/c6x/c6x.c (hwloop_optimize): Likewise.
15128 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
15130 2014-08-18 David Malcolm <dmalcolm@redhat.com>
15132 * rtl.h (for_each_rtx_in_insn): New function.
15133 * rtlanal.c (for_each_rtx_in_insn): Likewise.
15135 2014-08-18 David Malcolm <dmalcolm@redhat.com>
15137 * coretypes.h (class rtx_insn): Add forward declaration.
15139 * rtl.h: Include is-a.h.
15140 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
15141 workaround to ensure gengtype knows inheritance is occurring,
15142 whilst continuing to use the pre-existing special-casing for
15144 (class rtx_insn): New subclass of rtx_def, adding the
15145 invariant that we're dealing with something we can sanely use
15146 INSN_UID, NEXT_INSN, PREV_INSN on.
15147 (is_a_helper <rtx_insn *>::test): New.
15148 (is_a_helper <const rtx_insn *>::test): New.
15150 2014-08-18 David Malcolm <dmalcolm@redhat.com>
15152 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
15154 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
15156 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
15159 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
15161 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
15162 to BUILT_IN_UNREACHABLE.
15164 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
15167 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
15169 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
15170 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
15171 (ffs<mode>2): Do not expand with tzcnt for
15172 TARGET_AVOID_FALSE_DEP_FOR_BMI.
15173 (ffssi2_no_cmove): Ditto.
15174 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
15175 (ctz<mode>2): New expander.
15176 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
15177 (*ctz<mode>2_falsedep): New insn.
15178 (*ctz<mode>2): Rename from ctz<mode>2.
15179 (clz<mode>2_lzcnt): New expander.
15180 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
15181 (*clz<mode>2_lzcnt_falsedep): New insn.
15182 (*clz<mode>2): Rename from ctz<mode>2.
15183 (popcount<mode>2): New expander.
15184 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
15185 (*popcount<mode>2_falsedep): New insn.
15186 (*popcount<mode>2): Rename from ctz<mode>2.
15187 (*popcount<mode>2_cmp): Remove.
15188 (*popcountsi2_cmp_zext): Ditto.
15190 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
15192 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
15193 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
15194 * config/microblaze/microblaze.h
15195 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
15197 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
15200 * configure.ac: Set install_gold_as_default to no for
15202 * configure: Regenerated.
15204 2014-08-18 Roman Gareev <gareevroman@gmail.com>
15206 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
15207 * config.in: Add undef of HAVE_isl.
15208 * configure: Regenerate.
15209 * configure.ac: Add definition of HAVE_isl.
15210 * graphite-blocking.c: Add checking of HAVE_isl.
15211 * graphite-dependences.c: Likewise.
15212 * graphite-interchange.c: Likewise.
15213 * graphite-isl-ast-to-gimple.c: Likewise.
15214 * graphite-optimize-isl.c: Likewise.
15215 * graphite-poly.c: Likewise.
15216 * graphite-scop-detection.c: Likewise.
15217 * graphite-sese-to-poly.c: Likewise.
15218 * graphite.c: Likewise.
15219 * toplev.c: Replace the checking of HAVE_cloog with the checking
15222 2014-08-18 Richard Biener <rguenther@suse.de>
15224 PR tree-optimization/62090
15225 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
15226 (fold_builtin_3): Do not fold snprintf.
15227 (fold_builtin_4): Likewise.
15228 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
15229 moved from builtins.c.
15230 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
15231 (gimple_fold_builtin): Do not fold sprintf here.
15233 2014-08-18 Richard Biener <rguenther@suse.de>
15235 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
15237 (maybe_canonicalize_mem_ref_addr): ... this function.
15238 (fold_stmt_1): Apply it here before all simplification.
15240 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
15243 * cgraph.h (cgraph_node::create_indirect_edge): Add
15244 compute_indirect_info param.
15245 * cgraph.c (cgraph_node::create_indirect_edge): Compute
15246 indirect_info only when it is required.
15247 * cgraphclones.c (cgraph_clone_edge): Do not recompute
15248 indirect_info fore cloned indirect edge.
15250 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15251 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15252 Anna Tikhonova <anna.tikhonova@intel.com>
15253 Ilya Tocar <ilya.tocar@intel.com>
15254 Andrey Turetskiy <andrey.turetskiy@intel.com>
15255 Ilya Verbin <ilya.verbin@intel.com>
15256 Kirill Yukhin <kirill.yukhin@intel.com>
15257 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15259 * config/i386/sse.md
15260 (define_mode_iterator VI8_AVX2_AVX512BW): New.
15261 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
15263 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15264 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15265 Anna Tikhonova <anna.tikhonova@intel.com>
15266 Ilya Tocar <ilya.tocar@intel.com>
15267 Andrey Turetskiy <andrey.turetskiy@intel.com>
15268 Ilya Verbin <ilya.verbin@intel.com>
15269 Kirill Yukhin <kirill.yukhin@intel.com>
15270 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15272 * config/i386/sse.md
15273 (define_mode_iterator VF1_AVX512VL): New.
15274 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
15275 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
15278 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15279 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15280 Anna Tikhonova <anna.tikhonova@intel.com>
15281 Ilya Tocar <ilya.tocar@intel.com>
15282 Andrey Turetskiy <andrey.turetskiy@intel.com>
15283 Ilya Verbin <ilya.verbin@intel.com>
15284 Kirill Yukhin <kirill.yukhin@intel.com>
15285 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15287 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
15288 * config/i386/i386.md
15289 (define_code_iterator any_float): New.
15290 (define_code_attr floatsuffix): New.
15291 * config/i386/sse.md
15292 (define_mode_iterator VF1_128_256VL): New.
15293 (define_mode_iterator VF2_512_256VL): New.
15294 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
15296 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
15297 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
15299 (define_mode_attr qq2pssuff): New.
15300 (define_mode_attr sselongvecmode): New.
15301 (define_mode_attr sselongvecmodelower): New.
15302 (define_mode_attr sseintvecmode3): New.
15303 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
15305 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
15306 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
15307 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
15308 (define_insn "ufloatv2siv2df2<mask_name>"): New.
15310 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15311 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15312 Anna Tikhonova <anna.tikhonova@intel.com>
15313 Ilya Tocar <ilya.tocar@intel.com>
15314 Andrey Turetskiy <andrey.turetskiy@intel.com>
15315 Ilya Verbin <ilya.verbin@intel.com>
15316 Kirill Yukhin <kirill.yukhin@intel.com>
15317 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15319 * config/i386/sse.md
15320 (define_mode_iterator VF2_AVX512VL): New.
15321 (define_mode_attr sseintvecmode2): New.
15322 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
15323 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
15324 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
15326 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
15328 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
15330 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
15333 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15334 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15335 Anna Tikhonova <anna.tikhonova@intel.com>
15336 Ilya Tocar <ilya.tocar@intel.com>
15337 Andrey Turetskiy <andrey.turetskiy@intel.com>
15338 Ilya Verbin <ilya.verbin@intel.com>
15339 Kirill Yukhin <kirill.yukhin@intel.com>
15340 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15342 * config/i386/i386.md
15343 (define_insn "*movoi_internal_avx"): Add evex version.
15344 (define_insn "*movti_internal"): Ditto.
15346 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15347 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15348 Anna Tikhonova <anna.tikhonova@intel.com>
15349 Ilya Tocar <ilya.tocar@intel.com>
15350 Andrey Turetskiy <andrey.turetskiy@intel.com>
15351 Ilya Verbin <ilya.verbin@intel.com>
15352 Kirill Yukhin <kirill.yukhin@intel.com>
15353 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15355 * config/i386/i386.md
15356 (define_attr "isa"): Add avx512dq, noavx512dq.
15357 (define_attr "enabled"): Ditto.
15358 * config/i386/sse.md
15359 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
15361 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15362 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15363 Anna Tikhonova <anna.tikhonova@intel.com>
15364 Ilya Tocar <ilya.tocar@intel.com>
15365 Andrey Turetskiy <andrey.turetskiy@intel.com>
15366 Ilya Verbin <ilya.verbin@intel.com>
15367 Kirill Yukhin <kirill.yukhin@intel.com>
15368 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15370 * config/i386/i386.c
15371 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
15372 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
15373 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
15374 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
15375 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
15376 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
15377 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
15378 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
15379 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
15380 * config/i386/sse.md
15381 (define_mode_iterator VMOVE): Allow V4TI mode.
15382 (define_mode_iterator V_AVX512VL): New.
15383 (define_mode_iterator V): New handling for AVX512VL.
15384 (define_insn "avx512f_load<mode>_mask"): Delete.
15385 (define_insn "<avx512>_load<mode>_mask"): New.
15386 (define_insn "avx512f_store<mode>_mask"): Delete.
15387 (define_insn "<avx512>_store<mode>_mask"): New.
15390 2014-08-18 Yury Gribov <y.gribov@samsung.com>
15393 * asan.c (instrument_derefs): Fix bitfield check.
15395 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
15397 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
15398 * config/rs6000/htm.md (ttest): Remove clobber.
15399 * config/rs6000/predicates.md (any_mask_operand): New predicate.
15400 (and_operand): Reformat.
15401 (and_2rld_operand): New predicate.
15402 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
15404 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
15405 parameter. Handle AND directly.
15406 (rs6000_split_logical_di): Remove last parameter.
15407 (rs6000_split_logical): Remove last parameter. Remove obsolete
15409 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
15410 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
15411 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
15412 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
15413 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
15414 and 5 anonymous splitters): Delete.
15415 (and<mode>3): New expander.
15416 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
15417 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
15418 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
15419 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
15420 (floatdisf2_internal1): Remove clobbers.
15421 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
15422 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
15423 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
15424 (and<mode>3 for BOOL_128): Remove clobber.
15425 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
15426 rs6000_split_logical.
15427 (*bool<mode>3_internal for BOOL_128): Adjust call of
15428 rs6000_split_logical.
15429 (*boolc<mode>3_internal1 for BOOL_128,
15430 *boolc<mode>3_internal2 for BOOL_128,
15431 *boolcc<mode>3_internal1 for BOOL_128,
15432 *boolcc<mode>3_internal2 for BOOL_128,
15433 *eqv<mode>3_internal1 for BOOL_128,
15434 *eqv<mode>3_internal2 for BOOL_128,
15435 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
15436 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
15438 (*vec_reload_and_reg_<mptrsize>): Delete.
15440 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
15442 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
15443 and split, *boolccsi3_internal3 and split): Delete.
15444 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
15445 *boolccdi3_internal3 and split): Delete.
15446 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
15447 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
15449 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
15451 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
15452 and split, *boolcsi3_internal3 and split): Delete.
15453 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
15454 *boolcdi3_internal3 and split): Delete.
15455 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
15457 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
15459 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
15460 <'u'>: Also support printing the low-order 16 bits.
15461 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
15462 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
15463 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
15464 *booldi3_internal3 and split): Delete.
15465 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
15466 *bool<mode>3_dot2): New.
15467 (two anonymous define_splits for non_logical_cint_operand): Merge.
15469 2014-08-17 Marek Polacek <polacek@redhat.com>
15470 Manuel López-Ibáñez <manu@gcc.gnu.org>
15473 * diagnostic.c (adjust_line): Add gcc_checking_assert.
15474 (diagnostic_show_locus): Don't print caret diagnostic
15475 if a column is larger than the line_width.
15477 2014-08-17 Roman Gareev <gareevroman@gmail.com>
15479 * common.opt: Make the ISL AST generator to be the main code generator
15482 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
15484 * wide-int.h (generic_wide_int): Declare as class instead of struct.
15486 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
15489 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
15491 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
15492 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
15493 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
15495 * config/pa/pa.md (begin_brtab): Delete insn.
15496 (end_brtab): Likewise.
15498 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
15500 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
15502 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
15504 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
15505 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
15506 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
15507 (get_dynamic_type): Remove.
15508 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
15509 (clear_speculation): Bring to ipa-deivrt.h
15510 (get_class_context): Rename to ...
15511 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
15512 (contains_type_p): Update.
15513 (get_dynamic_type): Rename to ...
15514 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
15515 (possible_polymorphic_call_targets): UPdate.
15516 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
15517 * ipa-prop.c (ipa_analyze_call_uses): Update.
15519 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
15521 * doc/invoke.texi (SH options): Document missing processor variant
15522 options. Remove references to Hitachi. Undocument deprecated mspace
15525 2014-08-15 Jason Merrill <jason@redhat.com>
15527 * tree.c (type_hash_canon): Uncomment assert.
15529 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
15531 * input.h (in_system_header_at): Add comment.
15533 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
15536 * diagnostic.c (build_message_string): Make it extern.
15537 * diagnostic.h (build_message_string): Make it extern.
15539 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
15541 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
15542 load/store from/to non-floating class pseudo.
15544 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
15546 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
15548 2014-08-15 Richard Biener <rguenther@suse.de>
15550 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
15551 (get_constraint_for_ssa_var): Remove dead code.
15552 (get_constraint_for_1): Adjust.
15553 (find_what_var_points_to): Likewise.
15554 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
15556 2014-08-15 Ilya Tocar <tocarip@gmail.com>
15559 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
15560 (_mm512_mask_cmpge_epu32_mask): Ditto.
15561 (_mm512_cmpge_epu32_mask): Ditto.
15562 (_mm512_mask_cmpge_epi64_mask): Ditto.
15563 (_mm512_cmpge_epi64_mask): Ditto.
15564 (_mm512_mask_cmpge_epu64_mask): Ditto.
15565 (_mm512_cmpge_epu64_mask): Ditto.
15566 (_mm512_mask_cmple_epi32_mask): Ditto.
15567 (_mm512_cmple_epi32_mask): Ditto.
15568 (_mm512_mask_cmple_epu32_mask): Ditto.
15569 (_mm512_cmple_epu32_mask): Ditto.
15570 (_mm512_mask_cmple_epi64_mask): Ditto.
15571 (_mm512_cmple_epi64_mask): Ditto.
15572 (_mm512_mask_cmple_epu64_mask): Ditto.
15573 (_mm512_cmple_epu64_mask): Ditto.
15574 (_mm512_mask_cmplt_epi32_mask): Ditto.
15575 (_mm512_cmplt_epi32_mask): Ditto.
15576 (_mm512_mask_cmplt_epu32_mask): Ditto.
15577 (_mm512_cmplt_epu32_mask): Ditto.
15578 (_mm512_mask_cmplt_epi64_mask): Ditto.
15579 (_mm512_cmplt_epi64_mask): Ditto.
15580 (_mm512_mask_cmplt_epu64_mask): Ditto.
15581 (_mm512_cmplt_epu64_mask): Ditto.
15582 (_mm512_mask_cmpneq_epi32_mask): Ditto.
15583 (_mm512_mask_cmpneq_epu32_mask): Ditto.
15584 (_mm512_cmpneq_epu32_mask): Ditto.
15585 (_mm512_mask_cmpneq_epi64_mask): Ditto.
15586 (_mm512_cmpneq_epi64_mask): Ditto.
15587 (_mm512_mask_cmpneq_epu64_mask): Ditto.
15588 (_mm512_cmpneq_epu64_mask): Ditto.
15589 (_mm512_castpd_ps): Ditto.
15590 (_mm512_castpd_si512): Ditto.
15591 (_mm512_castps_pd): Ditto.
15592 (_mm512_castps_si512): Ditto.
15593 (_mm512_castsi512_ps): Ditto.
15594 (_mm512_castsi512_pd): Ditto.
15595 (_mm512_castpd512_pd128): Ditto.
15596 (_mm512_castps512_ps128): Ditto.
15597 (_mm512_castsi512_si128): Ditto.
15598 (_mm512_castpd512_pd256): Ditto.
15599 (_mm512_castps512_ps256): Ditto.
15600 (_mm512_castsi512_si256): Ditto.
15601 (_mm512_castpd128_pd512): Ditto.
15602 (_mm512_castps128_ps512): Ditto.
15603 (_mm512_castsi128_si512): Ditto.
15604 (_mm512_castpd256_pd512): Ditto.
15605 (_mm512_castps256_ps512): Ditto.
15606 (_mm512_castsi256_si512): Ditto.
15607 (_mm512_cmpeq_epu32_mask): Ditto.
15608 (_mm512_mask_cmpeq_epu32_mask): Ditto.
15609 (_mm512_mask_cmpeq_epu64_mask): Ditto.
15610 (_mm512_cmpeq_epu64_mask): Ditto.
15611 (_mm512_cmpgt_epu32_mask): Ditto.
15612 (_mm512_mask_cmpgt_epu32_mask): Ditto.
15613 (_mm512_mask_cmpgt_epu64_mask): Ditto.
15614 (_mm512_cmpgt_epu64_mask): Ditto.
15615 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
15616 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
15617 * config/i386/i386.c (enum ix86_builtins): Add
15618 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
15619 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
15620 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
15621 (bdesc_args): Add __builtin_ia32_si512_256si,
15622 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
15623 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
15624 __builtin_ia32_pd512_pd.
15625 (ix86_expand_args_builtin): Handle new FTYPEs.
15626 * config/i386/sse.md (castmode): Add 512-bit modes.
15627 (AVX512MODE2P): New.
15628 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
15629 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
15631 2014-08-15 Richard Biener <rguenther@suse.de>
15633 * fold-const.c (tree_swap_operands_p): Put all constants
15634 last, also strip sign-changing NOPs when considering further
15635 canonicalization. Canonicalize also when optimizing for size.
15637 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15639 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
15640 one_match > zero_match case to just before simple_sequence.
15642 2014-08-15 Richard Biener <rguenther@suse.de>
15644 * data-streamer.h (streamer_string_index, string_for_index):
15646 * data-streamer-out.c (streamer_string_index): Make static.
15647 * data-streamer-in.c (string_for_index): Likewise.
15648 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
15649 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
15651 2014-08-15 Richard Biener <rguenther@suse.de>
15653 PR tree-optimization/62031
15654 * tree-data-ref.c (dr_analyze_indices): Do not set
15655 DR_UNCONSTRAINED_BASE.
15656 (dr_may_alias_p): All indirect accesses have to go the
15657 formerly DR_UNCONSTRAINED_BASE path.
15658 * tree-data-ref.h (struct indices): Remove
15659 unconstrained_base member.
15660 (DR_UNCONSTRAINED_BASE): Remove.
15662 2014-08-15 Jakub Jelinek <jakub@redhat.com>
15664 PR middle-end/62092
15665 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
15666 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
15667 in OMP_CLAUSE_MAP in some outer target region.
15669 2014-08-15 Bin Cheng <bin.cheng@arm.com>
15671 * tree-ssa-loop-ivopts.c (ivopts_data): New field
15672 name_expansion_cache.
15673 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
15674 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
15675 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
15676 (difference_cannot_overflow_p): New parameter. Use affine
15677 expansion for equality check.
15678 (iv_elimination_compare_lt): Pass new argument.
15680 2014-08-14 DJ Delorie <dj@redhat.com>
15682 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
15683 variables to the accumulator.
15685 * config/rl78/predicates.md (rl78_near_mem_operand): New.
15686 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
15687 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
15688 with far-far moves.
15690 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
15691 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
15692 (umulqihi3_virt): Likewise.
15693 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
15694 (umulqihi3_real): Likewise.
15696 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
15698 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
15700 PR tree-optimization/62091
15701 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
15702 function_entry_reached.
15703 (walk_aliased_vdefs): Clear it here.
15704 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
15706 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
15708 * ipa-utils.h (compare_virtual_tables): Declare.
15709 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
15711 2014-08-14 Marek Polacek <polacek@redhat.com>
15714 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
15715 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
15717 2014-08-14 Tom de Vries <tom@codesourcery.com>
15719 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
15721 2014-08-14 Tom de Vries <tom@codesourcery.com>
15723 PR rtl-optimization/62004
15724 PR rtl-optimization/62030
15725 * ifcvt.c (rtx_interchangeable_p): New function.
15726 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
15727 * emit-rtl.h (mem_attrs_eq_p): Declare.
15729 2014-08-14 Roman Gareev <gareevroman@gmail.com>
15731 * graphite-scop-detection.c:
15732 Add inclusion of cp-tree.h.
15733 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
15734 in case they are pointers to object types
15736 2014-08-14 Richard Biener <rguenther@suse.de>
15738 * BASE-VER: Change to 5.0.0
15740 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15741 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15742 Anna Tikhonova <anna.tikhonova@intel.com>
15743 Ilya Tocar <ilya.tocar@intel.com>
15744 Andrey Turetskiy <andrey.turetskiy@intel.com>
15745 Ilya Verbin <ilya.verbin@intel.com>
15746 Kirill Yukhin <kirill.yukhin@intel.com>
15747 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15749 * config/i386/sse.md (define_mode_attr avx512): New.
15750 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
15752 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
15753 (define_mode_attr ssse3_avx2): Ditto.
15754 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
15755 (define_mode_attr avx2_avx512bw): New.
15756 (define_mode_attr ssedoublemodelower): New.
15757 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
15758 V32HI, V64QI modes.
15759 (define_mode_attr ssebytemode): Allow V8DI modes.
15760 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
15761 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
15762 (define_mode_attr ssePSmode2): New.
15763 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
15764 V16HI, V32HI modes.
15765 (define_mode_attr dbpsadbwmode): New.
15766 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
15767 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
15768 (vi8_sse4_1_avx2_avx512): New.
15769 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
15771 (define_mode_attr blendbits): Move before its immediate use.
15773 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15774 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15775 Anna Tikhonova <anna.tikhonova@intel.com>
15776 Ilya Tocar <ilya.tocar@intel.com>
15777 Andrey Turetskiy <andrey.turetskiy@intel.com>
15778 Ilya Verbin <ilya.verbin@intel.com>
15779 Kirill Yukhin <kirill.yukhin@intel.com>
15780 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15782 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
15783 * config/i386/subst.md
15784 (define_mode_iterator SUBST_V): Update.
15785 (define_mode_iterator SUBST_A): Ditto.
15786 (define_subst_attr "mask_operand7"): New.
15787 (define_subst_attr "mask_operand10"): New.
15788 (define_subst_attr "mask_operand_arg34") : New.
15789 (define_subst_attr "mask_expand_op3"): New.
15790 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
15791 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
15792 (define_subst_attr "mask_avx512vl_condition"): New.
15793 (define_subst_attr "round_mask_operand4"): Ditto.
15794 (define_subst_attr "round_mask_scalar_op3"): Delete.
15795 (define_subst_attr "round_mask_op4"): New.
15796 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
15798 (define_subst_attr "round_modev8sf_condition"): New.
15799 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
15801 (define_subst_attr "round_saeonly_mask_operand4"): New.
15802 (define_subst_attr "round_saeonly_mask_op4"): New.
15803 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
15804 V8DImode, V16SImode.
15805 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
15806 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
15807 (define_subst_attr "mask_expand4_args"): New.
15808 (define_subst "mask_expand4"): New.
15810 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15811 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15812 Anna Tikhonova <anna.tikhonova@intel.com>
15813 Ilya Tocar <ilya.tocar@intel.com>
15814 Andrey Turetskiy <andrey.turetskiy@intel.com>
15815 Ilya Verbin <ilya.verbin@intel.com>
15816 Kirill Yukhin <kirill.yukhin@intel.com>
15817 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15819 * config/i386/i386.md
15820 (define_attr "isa"): Add avx512bw,noavx512bw.
15821 (define_attr "enabled"): Ditto.
15822 (define_split): Add 32/64-bit mask logic.
15823 (define_insn "*k<logic>qi"): New.
15824 (define_insn "*k<logic>hi"): New.
15825 (define_insn "*anddi_1"): Add mask version.
15826 (define_insn "*andsi_1"): Ditto.
15827 (define_insn "*<code><mode>_1"): Ditto.
15828 (define_insn "*<code>hi_1"): Ditto.
15829 (define_insn "kxnor<mode>"): New.
15830 (define_insn "kunpcksi"): New.
15831 (define_insn "kunpckdi"): New.
15832 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
15833 (define_insn "*one_cmplhi2_1"): Ditto.
15835 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15836 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15837 Anna Tikhonova <anna.tikhonova@intel.com>
15838 Ilya Tocar <ilya.tocar@intel.com>
15839 Andrey Turetskiy <andrey.turetskiy@intel.com>
15840 Ilya Verbin <ilya.verbin@intel.com>
15841 Kirill Yukhin <kirill.yukhin@intel.com>
15842 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15844 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
15847 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15848 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15849 Anna Tikhonova <anna.tikhonova@intel.com>
15850 Ilya Tocar <ilya.tocar@intel.com>
15851 Andrey Turetskiy <andrey.turetskiy@intel.com>
15852 Ilya Verbin <ilya.verbin@intel.com>
15853 Kirill Yukhin <kirill.yukhin@intel.com>
15854 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15856 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
15858 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
15859 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
15860 xmm/ymm16+ when availble.
15861 * config/i386/i386.h
15862 (HARD_REGNO_NREGS): Add mask regs.
15863 (VALID_AVX512F_REG_MODE): Ditto.
15864 (VALID_AVX512F_REG_MODE) : Define.
15865 (VALID_MASK_AVX512BW_MODE): Ditto.
15866 (reg_class) (MASK_REG_P(X)): Define.
15867 * config/i386/i386.md: Do not split long moves with mask register,
15868 use kmovb if avx512bw is availible.
15869 (movdi_internal): Handle mask registers.
15871 2014-08-14 Richard Biener <rguenther@suse.de>
15873 PR tree-optimization/62081
15874 * tree-ssa-loop.c (pass_fix_loops): New pass.
15875 (pass_tree_loop::gate): Do not fixup loops here.
15876 * tree-pass.h (make_pass_fix_loops): Declare.
15877 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
15879 2014-08-14 Richard Biener <rguenther@suse.de>
15881 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
15882 (type_hash_canon): ... this and avoid 2nd lookup for the add.
15884 2014-08-14 Richard Biener <rguenther@suse.de>
15886 PR tree-optimization/62090
15887 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
15888 (fold_builtin_2): Do not fold sprintf.
15889 (fold_builtin_3): Likewise.
15890 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
15891 moved from builtins.c.
15892 (gimple_fold_builtin): Fold sprintf.
15894 2014-08-14 Richard Biener <rguenther@suse.de>
15896 PR rtl-optimization/62079
15897 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
15900 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
15902 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
15903 current_function_decl.
15905 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
15907 * cgraph.c (cgraph_node::function_symbol): Fix wrong
15908 cgraph_function_node to cgraph_node::function_symbol
15911 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
15913 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
15914 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
15916 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
15918 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
15921 2014-08-13 Roman Gareev <gareevroman@gmail.com>
15923 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
15926 2014-08-12 Jakub Jelinek <jakub@redhat.com>
15929 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
15930 any registers that are used in mem_insn.
15932 2014-08-12 Steve Ellcey <sellcey@mips.com>
15934 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
15936 2014-08-12 Steve Ellcey <sellcey@mips.com>
15938 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
15939 (MULTILIB_DIRNAMES): Ditto.
15940 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
15941 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
15942 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
15943 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
15944 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
15945 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
15947 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15950 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
15951 of __ARM_SIZEOF_WCHAR_T.
15953 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15956 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
15957 Remove unnecessary attributes.
15959 2014-08-12 Yury Gribov <y.gribov@samsung.com>
15961 * internal-fn.c (init_internal_fns): Fix off-by-one.
15963 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
15964 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15965 Anna Tikhonova <anna.tikhonova@intel.com>
15966 Ilya Tocar <ilya.tocar@intel.com>
15967 Andrey Turetskiy <andrey.turetskiy@intel.com>
15968 Ilya Verbin <ilya.verbin@intel.com>
15969 Kirill Yukhin <kirill.yukhin@intel.com>
15970 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15972 * config/i386/i386.c (standard_sse_constant_opcode): Use
15973 vpxord/vpternlog if avx512 is availible.
15975 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
15977 PR middle-end/62103
15978 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
15979 bitfields, that is when size doesn't match the size of type or the
15980 size of the constructor.
15982 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
15984 * config/rs6000/constraints.md (wh constraint): New constraint,
15985 for FP registers if direct move is available.
15986 (wi constraint): New constraint, for VSX/FP registers that can
15987 handle 64-bit integers.
15988 (wj constraint): New constraint for VSX/FP registers that can
15989 handle 64-bit integers for direct moves.
15990 (wk constraint): New constraint for VSX/FP registers that can
15991 handle 64-bit doubles for direct moves.
15992 (wy constraint): Make documentation match implementation.
15994 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
15995 scalar_in_vmx_p field to simplify tests of whether SFmode or
15996 DFmode can go in the Altivec registers.
15997 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
15998 (rs6000_setup_reg_addr_masks): Likewise.
15999 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
16000 field, and wh/wi/wj/wk constraints.
16001 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
16002 the wh/wi/wj/wk constraints.
16003 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
16004 upper registers, prefer VSX registers unless the operation is a
16005 memory operation with REG+OFFSET addressing.
16007 * config/rs6000/vsx.md (VSr mode attribute): Add support for
16008 DImode. Change SFmode to use ww constraint instead of d to allow
16009 SF registers in the upper registers.
16012 (VSr5): Fix thinko in comment.
16013 (VSa): New mode attribute that is an alternative to wa, that
16014 returns the VSX register class that a mode can go in, but may not
16015 be the preferred register class.
16016 (VS_64dm): New mode attribute for appropriate register classes for
16017 referencing 64-bit elements of vectors for direct moves and normal
16019 (VS_64reg): Likewise.
16020 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
16021 register allocator to only registers the data type can handle.
16022 (vsx_le_perm_load_<mode>): Likewise.
16023 (vsx_le_perm_store_<mode>): Likewise.
16024 (vsx_xxpermdi2_le_<mode>): Likewise.
16025 (vsx_xxpermdi4_le_<mode>): Likewise.
16026 (vsx_lxvd2x2_le_<mode>): Likewise.
16027 (vsx_lxvd2x4_le_<mode>): Likewise.
16028 (vsx_stxvd2x2_le_<mode>): Likewise.
16029 (vsx_add<mode>3): Likewise.
16030 (vsx_sub<mode>3): Likewise.
16031 (vsx_mul<mode>3): Likewise.
16032 (vsx_div<mode>3): Likewise.
16033 (vsx_tdiv<mode>3_internal): Likewise.
16034 (vsx_fre<mode>2): Likewise.
16035 (vsx_neg<mode>2): Likewise.
16036 (vsx_abs<mode>2): Likewise.
16037 (vsx_nabs<mode>2): Likewise.
16038 (vsx_smax<mode>3): Likewise.
16039 (vsx_smin<mode>3): Likewise.
16040 (vsx_sqrt<mode>2): Likewise.
16041 (vsx_rsqrte<mode>2): Likewise.
16042 (vsx_tsqrt<mode>2_internal): Likewise.
16043 (vsx_fms<mode>4): Likewise.
16044 (vsx_nfma<mode>4): Likewise.
16045 (vsx_eq<mode>): Likewise.
16046 (vsx_gt<mode>): Likewise.
16047 (vsx_ge<mode>): Likewise.
16048 (vsx_eq<mode>_p): Likewise.
16049 (vsx_gt<mode>_p): Likewise.
16050 (vsx_ge<mode>_p): Likewise.
16051 (vsx_xxsel<mode>): Likewise.
16052 (vsx_xxsel<mode>_uns): Likewise.
16053 (vsx_copysign<mode>3): Likewise.
16054 (vsx_float<VSi><mode>2): Likewise.
16055 (vsx_floatuns<VSi><mode>2): Likewise.
16056 (vsx_fix_trunc<mode><VSi>2): Likewise.
16057 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
16058 (vsx_x<VSv>r<VSs>i): Likewise.
16059 (vsx_x<VSv>r<VSs>ic): Likewise.
16060 (vsx_btrunc<mode>2): Likewise.
16061 (vsx_b2trunc<mode>2): Likewise.
16062 (vsx_floor<mode>2): Likewise.
16063 (vsx_ceil<mode>2): Likewise.
16064 (vsx_<VS_spdp_insn>): Likewise.
16065 (vsx_xscvspdp): Likewise.
16066 (vsx_xvcvspuxds): Likewise.
16067 (vsx_float_fix_<mode>2): Likewise.
16068 (vsx_set_<mode>): Likewise.
16069 (vsx_extract_<mode>_internal1): Likewise.
16070 (vsx_extract_<mode>_internal2): Likewise.
16071 (vsx_extract_<mode>_load): Likewise.
16072 (vsx_extract_<mode>_store): Likewise.
16073 (vsx_splat_<mode>): Likewise.
16074 (vsx_xxspltw_<mode>): Likewise.
16075 (vsx_xxspltw_<mode>_direct): Likewise.
16076 (vsx_xxmrghw_<mode>): Likewise.
16077 (vsx_xxmrglw_<mode>): Likewise.
16078 (vsx_xxsldwi_<mode>): Likewise.
16079 (vsx_xscvdpspn): Tighten constraints to only use register classes
16081 (vsx_xscvspdpn): Likewise.
16082 (vsx_xscvdpspn_scalar): Likewise.
16084 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
16085 wj, and wk constraints.
16086 (GPR_REG_CLASS_P): New helper macro for register classes targeting
16087 general purpose registers.
16089 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
16091 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
16092 DImode instead of wm. Use wk constraint for direct move of DFmode
16094 (extendsidi2_lfiwax): Likewise.
16095 (lfiwax): Likewise.
16096 (lfiwzx): Likewise.
16097 (movdi_internal64): Likewise.
16099 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
16100 wk constraints. Make the wy constraint documentation match them
16103 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
16105 Replacement of isl_int by isl_val
16106 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
16107 (compute_bounds_for_param): use isl_val instead of isl_int
16108 (compute_bounds_for_loop): likewise
16109 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
16110 (build_linearized_memory_access): use isl_val instead of isl_int
16111 (pdr_stride_in_loop): likewise
16112 * graphite-optimize-isl.c:
16113 (getPrevectorMap): use isl_val instead of isl_int
16115 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
16116 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
16117 (extern the_isl_ctx): declare
16118 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
16119 (extract_affine_gmp): likewise
16121 (build_loop_iteration_domains): likewise
16122 (add_param_constraints): likewise
16124 2014-08-11 Richard Biener <rguenther@suse.de>
16126 PR tree-optimization/62075
16127 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
16128 handle uses in patterns.
16130 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
16131 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16132 Anna Tikhonova <anna.tikhonova@intel.com>
16133 Ilya Tocar <ilya.tocar@intel.com>
16134 Andrey Turetskiy <andrey.turetskiy@intel.com>
16135 Ilya Verbin <ilya.verbin@intel.com>
16136 Kirill Yukhin <kirill.yukhin@intel.com>
16137 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16139 * common/config/i386/i386-common.c
16140 (OPTION_MASK_ISA_AVX512VL_SET): Define.
16141 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
16142 (ix86_handle_option): Handle OPT_mavx512vl.
16143 * config/i386/cpuid.h (bit_AVX512VL): Define.
16144 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
16145 set -mavx512vl accordingly.
16146 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16147 OPTION_MASK_ISA_AVX512VL.
16148 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
16149 (ix86_option_override_internal): Define PTA_AVX512VL, handle
16150 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
16151 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
16152 * config/i386/i386.h (TARGET_AVX512VL): Define.
16153 (TARGET_AVX512VL_P(x)): Ditto.
16154 * config/i386/i386.opt: Add mavx512vl.
16156 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
16158 PR tree-optimization/62073
16159 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
16162 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
16163 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16164 Anna Tikhonova <anna.tikhonova@intel.com>
16165 Ilya Tocar <ilya.tocar@intel.com>
16166 Andrey Turetskiy <andrey.turetskiy@intel.com>
16167 Ilya Verbin <ilya.verbin@intel.com>
16168 Kirill Yukhin <kirill.yukhin@intel.com>
16169 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16171 * common/config/i386/i386-common.c
16172 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
16173 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
16174 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
16175 (ix86_handle_option): Handle OPT_mavx512bw.
16176 * config/i386/cpuid.h (bit_AVX512BW): Define.
16177 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
16178 set -mavx512bw accordingly.
16179 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16180 OPTION_MASK_ISA_AVX512BW.
16181 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
16182 (ix86_option_override_internal): Define PTA_AVX512BW, handle
16183 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
16184 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
16185 * config/i386/i386.h (TARGET_AVX512BW): Define.
16186 (TARGET_AVX512BW_P(x)): Ditto.
16187 * config/i386/i386.opt: Add mavx512bw.
16189 2014-08-11 Richard Biener <rguenther@suse.de>
16191 PR tree-optimization/62070
16192 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
16193 Remove SSA checking.
16195 2014-08-11 Yury Gribov <y.gribov@samsung.com>
16197 * asan.c (asan_check_flags): New enum.
16198 (build_check_stmt_with_calls): Removed function.
16199 (build_check_stmt): Split inlining logic to
16200 asan_expand_check_ifn.
16201 (instrument_derefs): Rename parameter.
16202 (instrument_mem_region_access): Rename parameter.
16203 (instrument_strlen_call): Likewise.
16204 (asan_expand_check_ifn): New function.
16205 (asan_instrument): Remove old code.
16206 (pass_sanopt::execute): Change handling of
16207 asan-instrumentation-with-call-threshold.
16208 (asan_clear_shadow): Fix formatting.
16209 (asan_function_start): Likewise.
16210 (asan_emit_stack_protection): Likewise.
16211 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
16212 Update description.
16213 * internal-fn.c (expand_ASAN_CHECK): New function.
16214 * internal-fn.def (ASAN_CHECK): New internal function.
16215 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
16216 Update description.
16217 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
16218 * tree.c: Small comment fix.
16220 2014-08-11 Yury Gribov <y.gribov@samsung.com>
16222 * gimple.c (gimple_call_fnspec): Support internal functions.
16223 (gimple_call_return_flags): Use const.
16224 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
16225 * internal-fn.def: Add fnspec information.
16226 * internal-fn.h (internal_fn_fnspec): New function.
16227 (init_internal_fns): Declare new function.
16228 * internal-fn.c (internal_fn_fnspec_array): New global variable.
16229 (init_internal_fns): New function.
16230 * tree-core.h: Update macro call.
16231 * tree.c (build_common_builtin_nodes): Initialize internal fns.
16233 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
16235 * lto-streamer.h (struct output_block::symbol): Change from
16236 struct symtab_node to plain symtab_node.
16237 (referenced_from_this_partition_p): Change first parameter
16238 from struct symtab_node to plain symtab_node.
16240 2014-08-10 Marek Polacek <polacek@redhat.com>
16243 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
16245 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
16247 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
16248 DECL correctly; do not give up on types in static storage.
16250 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
16252 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
16254 2014-08-09 Roman Gareev <gareevroman@gmail.com>
16256 * graphite-isl-ast-to-gimple.c:
16257 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
16259 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
16261 2014-08-08 Guozhi Wei <carrot@google.com>
16263 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
16265 2014-08-08 Cary Coutant <ccoutant@google.com>
16267 * dwarf2out.c (get_skeleton_type_unit): Remove.
16268 (output_skeleton_debug_sections): Remove skeleton type units.
16269 (output_comdat_type_unit): Likewise.
16270 (dwarf2out_finish): Likewise.
16272 2014-08-07 Yi Yang <ahyangyi@google.com>
16274 * predict.c (expr_expected_value_1): Remove the redundant assignment.
16276 2014-08-08 Richard Biener <rguenther@suse.de>
16278 * lto-streamer.h (struct lto_input_block): Make it a class
16279 with a constructor.
16280 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
16281 (struct lto_function_header, struct lto_simple_header,
16282 struct lto_simple_header_with_strings,
16283 struct lto_decl_header, struct lto_function_header): Make
16284 a simple inheritance hieararchy. Remove unused fields.
16285 (struct lto_asm_header): Remove.
16286 * lto-streamer-out.c (produce_asm): Adjust.
16287 (lto_output_toplevel_asms): Likewise.
16288 (produce_asm_for_decls): Likewise.
16289 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
16290 * data-streamer-in.c (string_for_index): Likewise.
16291 * ipa-inline-analysis.c (inline_read_section): Likewise.
16292 * ipa-prop.c (ipa_prop_read_section): Likewise.
16293 (read_replacements_section): Likewise.
16294 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
16295 * lto-section-in.c (lto_create_simple_input_block): Likewise.
16296 (lto_destroy_simple_input_block): Likewise.
16297 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
16298 (lto_input_toplevel_asms): Likewise.
16300 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
16301 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16302 Anna Tikhonova <anna.tikhonova@intel.com>
16303 Ilya Tocar <ilya.tocar@intel.com>
16304 Andrey Turetskiy <andrey.turetskiy@intel.com>
16305 Ilya Verbin <ilya.verbin@intel.com>
16306 Kirill Yukhin <kirill.yukhin@intel.com>
16307 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16309 * common/config/i386/i386-common.c
16310 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
16311 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
16312 (ix86_handle_option): Handle OPT_mavx512dq.
16313 * config/i386/cpuid.h (bit_AVX512DQ): Define.
16314 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
16315 set -mavx512dq accordingly.
16316 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16317 OPTION_MASK_ISA_AVX512DQ.
16318 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
16319 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
16320 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
16321 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
16322 * config/i386/i386.h (TARGET_AVX512DQ): Define.
16323 (TARGET_AVX512DQ_P(x)): Ditto.
16324 * config/i386/i386.opt: Add mavx512dq.
16326 2014-08-08 Richard Biener <rguenther@suse.de>
16328 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
16329 target_percent, target_percent_s): Export.
16330 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
16331 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
16332 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
16333 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
16334 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
16335 Move to gimple-fold.c.
16336 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
16338 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
16339 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
16340 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
16341 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
16342 (rewrite_call_expr_array): Remove.
16343 (fold_builtin_sprintf_chk): Likewise.
16344 (fold_builtin_snprintf_chk): Likewise.
16345 (fold_builtin_varargs): Remove handling of sprintf_chk,
16346 vsprintf_chk, snprintf_chk and vsnprintf_chk.
16347 (gimple_fold_builtin_sprintf_chk): Remove.
16348 (gimple_fold_builtin_snprintf_chk): Likewise.
16349 (gimple_fold_builtin_varargs): Likewise.
16350 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
16351 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
16352 * gimple.c (gimple_seq_add_seq_without_update): New function.
16353 * gimple.h (gimple_seq_add_seq_without_update): Declare.
16354 * gimple-fold.c: Include output.h.
16355 (gsi_replace_with_seq_vops): New function, split out from ...
16356 (gimplify_and_update_call_from_tree): ... here.
16357 (replace_call_with_value): New function.
16358 (replace_call_with_call_and_fold): Likewise.
16359 (var_decl_component_p): Moved from builtins.c.
16360 (gimple_fold_builtin_memory_op): Moved from builtins.c
16361 fold_builtin_memory_op and rewritten to GIMPLE.
16362 (gimple_fold_builtin_memset): Likewise.
16363 (gimple_fold_builtin_strcpy): Likewise.
16364 (gimple_fold_builtin_strncpy): Likewise.
16365 (gimple_fold_builtin_strcat): Likewise.
16366 (gimple_fold_builtin_fputs): Likewise.
16367 (gimple_fold_builtin_memory_chk): Likewise.
16368 (gimple_fold_builtin_stxcpy_chk): Likewise.
16369 (gimple_fold_builtin_stxncpy_chk): Likewise.
16370 (gimple_fold_builtin_snprintf_chk): Likewise.
16371 (gimple_fold_builtin_sprintf_chk): Likewise.
16372 (gimple_fold_builtin_strlen): New function.
16373 (gimple_fold_builtin_with_strlen): New function split out from
16374 gimple_fold_builtin.
16375 (gimple_fold_builtin): Change signature and handle
16376 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
16377 here. Call gimple_fold_builtin_with_strlen.
16378 (gimple_fold_call): Adjust.
16380 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
16382 * calls.c (precompute_arguments): Check
16383 promoted_for_signed_and_unsigned_p and set the promoted mode.
16384 (promoted_for_signed_and_unsigned_p): New function.
16385 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
16386 and set the promoted mode.
16387 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
16388 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
16389 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
16392 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
16394 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
16395 instead of SUBREG_PROMOTED_UNSIGNED_SET.
16396 (expand_call): Likewise.
16397 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
16398 to get promoted mode.
16399 * combine.c (record_promoted_value): Skip > 0 comparison with
16400 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
16401 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
16402 of SUBREG_PROMOTED_UNSIGNED_P.
16403 (convert_modes): Likewise.
16404 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
16405 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
16406 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
16407 SUBREG_PROMOTED_UNSIGNED_SET.
16408 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
16409 instead of SUBREG_PROMOTED_UNSIGNED_SET.
16410 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
16411 SUBREG_PROMOTED_SET.
16412 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
16413 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
16414 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
16415 of SUBREG_PROMOTED_UNSIGNED_P.
16416 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
16417 (SUBREG_PROMOTED_SET): New define.
16418 (SUBREG_PROMOTED_GET): Likewise.
16419 (SUBREG_PROMOTED_SIGN): Likewise.
16420 (SUBREG_PROMOTED_SIGNED_P): Likewise.
16421 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
16422 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
16423 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
16424 instead of SUBREG_PROMOTED_UNSIGNED_GET.
16425 (nonzero_bits1): Skip > 0 comparison with the results as
16426 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
16427 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
16428 of !SUBREG_PROMOTED_UNSIGNED_P.
16429 * simplify-rtx.c (simplify_unary_operation_1): Use new
16430 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
16431 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
16432 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
16433 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
16435 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
16437 * ipa-devirt.c: Include gimple-pretty-print.h
16438 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
16440 (decl_maybe_in_construction_p): Fix conditional on cdtor check
16441 (get_polymorphic_call_info): Fix return value
16442 (type_change_info): New sturcture based on ipa-prop
16444 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
16445 based on ipa-prop variant.
16446 (extr_type_from_vtbl_ptr_store): New function
16447 based on ipa-prop variant.
16448 (record_known_type): New function.
16449 (check_stmt_for_type_change): New function.
16450 (get_dynamic_type): New function.
16451 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
16452 * tree-ssa-pre.c: ipa-utils.h
16453 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
16454 machinery; sanity check with ipa-prop devirtualization.
16455 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
16458 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
16460 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
16461 * alias.c, cfgexpand.c, cgraphbuild.c,
16462 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
16463 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
16464 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
16465 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
16466 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
16467 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
16468 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
16469 dse.c, except.c, gengtype.c, gimple-expr.c,
16470 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
16471 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
16472 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
16473 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
16474 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
16475 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
16477 * pointer-set.c: Remove file.
16478 * pointer-set.h: Remove file.
16480 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16482 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
16483 * config/arm/types.md (f_sels, f_seld): Delete.
16485 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16487 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
16488 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
16489 (aarch64_movdi_<mode>high): Likewise.
16490 (aarch64_mov<mode>high_di): Likewise.
16491 (aarch64_movdi_<mode>low): Likewise.
16492 (aarch64_mov<mode>low_di): Likewise.
16493 (aarch64_movtilow_tilow): Likewise.
16494 Add comment explaining usage of fp,simd attributes and of
16495 TARGET_FLOAT and TARGET_SIMD.
16497 2014-08-07 Ian Bolton <ian.bolton@arm.com>
16498 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16500 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
16501 Use MOVN when one of the half-words is 0xffff.
16503 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
16505 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
16507 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16509 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
16510 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
16511 (rfs_str): String corresponding to RFS_* constants.
16512 (rank_for_schedule_stats_t): New typedef.
16513 (rank_for_schedule_stats): New static variable.
16514 (rfs_result): New static function.
16515 (rank_for_schedule): Track statistics for deciding heuristics.
16516 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
16518 (ready_sort): Use them for debug printouts.
16519 (schedule_block): Init statistics state. Print statistics on
16520 rank_for_schedule decisions.
16522 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16524 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
16526 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
16528 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
16531 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
16533 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
16534 function to not conflict.
16535 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
16536 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
16537 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
16538 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
16539 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
16542 2014-08-07 Marek Polacek <polacek@redhat.com>
16544 * fold-const.c (fold_binary_loc): Add folding of
16545 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
16547 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
16549 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
16550 instead of type size.
16551 (ASM_FINISH_DECLARE_OBJECT): Likewise.
16553 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
16555 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
16556 (*thumb1_movqi_insn): Likewise.
16557 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
16559 2014-08-07 Tom de Vries <tom@codesourcery.com>
16561 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
16562 (glibc_2_11_or_earlier): Remove effective-target keywords.
16564 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
16566 * config/arm/arm.c (bdesc_2arg): Fix typo.
16567 (arm_atomic_assign_expand_fenv): Remove The default implementation.
16569 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
16571 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
16573 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
16576 * haifa-sched.c (advance_one_cycle): Fix dump.
16577 (schedule_block): Don't advance cycle if we are already at the
16578 beginning of the cycle.
16580 2014-08-06 Martin Jambor <mjambor@suse.cz>
16583 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
16585 2014-08-06 Richard Biener <rguenther@suse.de>
16588 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
16590 (lto_input_tree): Pop SCCs here.
16592 2014-08-06 Richard Biener <rguenther@suse.de>
16594 PR tree-optimization/61320
16595 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
16596 handle misaligned loads.
16598 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
16600 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
16601 (aarch64_expand_vec_perm_const): Check for dup before zip.
16603 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16605 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
16606 CONST_INT_P instead of GET_CODE and compare.
16607 (aarch64_select_cc_mode): Likewise.
16608 (aarch64_print_operand): Likewise.
16609 (aarch64_rtx_costs): Likewise.
16610 (aarch64_simd_valid_immediate): Likewise.
16611 (aarch64_simd_check_vect_par_cnst_half): Likewise.
16612 (aarch64_simd_emit_pair_result_insn): Likewise.
16614 2014-08-05 David Malcolm <dmalcolm@redhat.com>
16616 * gdbhooks.py (find_gcc_source_dir): New helper function.
16617 (class PassNames): New class, locating and parsing passes.def.
16618 (class BreakOnPass): New command "break-on-pass".
16620 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
16622 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
16625 2014-08-05 Richard Biener <rguenther@suse.de>
16627 PR rtl-optimization/61672
16628 * emit-rtl.h (mem_attrs_eq_p): Declare.
16629 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
16630 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
16631 * cfgcleanup.c (merge_memattrs): Likewise.
16632 Include emit-rtl.h.
16634 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16636 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
16637 rather than singleton vectors.
16638 (vqdmlsls_lane_s32): Likewise.
16640 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16642 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
16643 Use VSDQ_HSI mode iterator.
16644 (aarch64_sqrdmulh_laneq<mode>): Likewise.
16645 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
16646 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
16647 Use BUILTIN_VDQHS macro.
16648 (sqrdmulh_laneq): Likewise.
16649 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
16650 (vqdmlals_laneq_s32): Likewise.
16651 (vqdmlslh_laneq_s16): Likewise.
16652 (vqdmlsls_laneq_s32): Likewise.
16653 (vqdmulhh_laneq_s16): Likewise.
16654 (vqdmulhs_laneq_s32): Likewise.
16655 (vqrdmulhh_laneq_s16): Likewise.
16656 (vqrdmulhs_laneq_s32): Likewise.
16658 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16660 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
16661 (vmuld_laneq_f64): Likewise.
16662 (vmuls_laneq_f32): Likewise.
16663 (vmul_n_f64): Likewise.
16664 (vmuld_lane_f64): Reimplement in C.
16665 (vmuls_lane_f32): Likewise.
16667 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16669 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
16671 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
16673 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16675 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
16676 (rbitsi2): Likewise.
16677 (*arm_rev): Set predicable and predicable_short_it attributes.
16679 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16681 * convert.c (convert_to_integer): Guard transformation to lrint by
16684 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
16686 * config/aarch64/aarch64-builtins.c
16687 (aarch64_simd_builtin_type_mode): Delete.
16688 (v8qi_UP): Remap to V8QImode.
16689 (v4hi_UP): Remap to V4HImode.
16690 (v2si_UP): Remap to V2SImode.
16691 (v2sf_UP): Remap to V2SFmode.
16692 (v1df_UP): Remap to V1DFmode.
16693 (di_UP): Remap to DImode.
16694 (df_UP): Remap to DFmode.
16695 (v16qi_UP):V16QImode.
16696 (v8hi_UP): Remap to V8HImode.
16697 (v4si_UP): Remap to V4SImode.
16698 (v4sf_UP): Remap to V4SFmode.
16699 (v2di_UP): Remap to V2DImode.
16700 (v2df_UP): Remap to V2DFmode.
16701 (ti_UP): Remap to TImode.
16702 (ei_UP): Remap to EImode.
16703 (oi_UP): Remap to OImode.
16704 (ci_UP): Map to CImode.
16705 (xi_UP): Remap to XImode.
16706 (si_UP): Remap to SImode.
16707 (sf_UP): Remap to SFmode.
16708 (hi_UP): Remap to HImode.
16709 (qi_UP): Remap to QImode.
16710 (aarch64_simd_builtin_datum): Make mode a machine_mode.
16711 (VAR1): Build builtin name.
16712 (aarch64_init_simd_builtins): Remove dead code.
16714 2014-08-05 Roman Gareev <gareevroman@gmail.com>
16716 * graphite-isl-ast-to-gimple.c:
16717 (set_options): New function.
16718 (scop_to_isl_ast): Add calling of set_options.
16720 2014-08-05 Jakub Jelinek <jakub@redhat.com>
16722 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
16723 (analyze_iv_to_split_insn): Don't initialize them.
16724 (get_ivts_expr): Removed.
16725 (allocate_basic_variable, insert_base_initialization): Use
16726 SET_SRC instead of *get_ivts_expr.
16727 (split_iv): Use &SET_SRC instead of get_ivts_expr.
16729 2014-08-05 Roman Gareev <gareevroman@gmail.com>
16731 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
16732 (translate_isl_ast_for_loop): Add checking of the
16733 flag_loop_parallelize_all.
16734 (ast_build_before_for): New function.
16735 (scop_to_isl_ast): Add checking of the
16736 flag_loop_parallelize_all.
16737 * graphite-dependences.c: Move the defenition of the
16738 scop_get_dependences from graphite-optimize-isl.c to this file.
16739 (apply_schedule_on_deps): Add checking of the ux's emptiness.
16740 (carries_deps): Add checking of the x's value.
16741 * graphite-optimize-isl.c: Move the defenition of the
16742 scop_get_dependences to graphite-dependences.c.
16743 * graphite-poly.h: Add declarations of scop_get_dependences
16746 2014-08-04 Rohit <rohitarulraj@freescale.com>
16749 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
16751 (alt_reg_names): Likewise.
16752 (rs6000_dwarf_register_span): For SPE high registers, replace
16753 dwarf register numbers with GCC hard register numbers.
16754 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
16755 (rs6000_dbx_register_number): For SPE high registers, return dwarf
16756 register number for the corresponding GCC hard register number.
16757 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
16758 newly added GCC hard register numbers for SPE high registers.
16759 (DWARF_FRAME_REGISTERS): Likewise.
16760 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
16761 (DWARF_FRAME_REGNUM): Likewise.
16762 (FIXED_REGISTERS): Likewise.
16763 (CALL_USED_REGISTERS): Likewise.
16764 (CALL_REALLY_USED_REGISTERS): Likewise.
16765 (REG_ALLOC_ORDER): Likewise.
16766 (enum reg_class): Likewise.
16767 (REG_CLASS_NAMES): Likewise.
16768 (REG_CLASS_CONTENTS): Likewise.
16769 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
16771 2014-08-04 Richard Biener <rguenther@suse.de>
16773 * gimple-fold.h (gimple_fold_builtin): Remove.
16774 * gimple-fold.c (gimple_fold_builtin): Make static.
16775 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
16776 fold_stmt, not gimple_fold_builtin.
16778 2014-08-04 Martin Liska <mliska@suse.cz>
16780 * cgraph.h (csi_end_p): Removed.
16781 (csi_next): Likewise.
16782 (csi_node): Likewise.
16783 (csi_start): Likewise.
16784 (cgraph_node_in_set_p): Likewise.
16785 (cgraph_node_set_size): Likewise.
16786 (vsi_end_p): Likewise.
16787 (vsi_next): Likewise.
16788 (vsi_node): Likewise.
16789 (vsi_start): Likewise.
16790 (varpool_node_set_size): Likewise.
16791 (cgraph_node_set_nonempty_p): Likewise.
16792 (varpool_node_set_nonempty_p): Likewise.
16793 * cgraphunit.c (cgraph_process_new_functions): vec replaces
16795 * ipa-inline-transform.c: Likewise.
16796 * ipa-utils.c (cgraph_node_set_new): Removed.
16797 (cgraph_node_set_add): Likewise.
16798 (cgraph_node_set_remove): Likewise.
16799 (cgraph_node_set_find): Likewise.
16800 (dump_cgraph_node_set): Likewise.
16801 (debug_cgraph_node_set): Likewise.
16802 (free_cgraph_node_set): Likewise.
16803 (varpool_node_set_new): Likewise.
16804 (varpool_node_set_add): Likewise.
16805 (varpool_node_set_remove): Likewise.
16806 (varpool_node_set_find): Likewise.
16807 (dump_varpool_node_set): Likewise.
16808 (free_varpool_node_set): Likewise.
16809 (debug_varpool_node_set): Likewise.
16810 * tree-emutls.c (struct tls_var_data):
16811 (emutls_index): Removed.
16812 (emutls_decl): Likewise.
16813 (gen_emutls_addr): Function implementation uses newly added
16814 hash_map<varpool_node *, tls_var_data>.
16815 (clear_access_vars): Likewise.
16816 (create_emultls_var): Likewise.
16817 (ipa_lower_emutls): Likewise.
16818 (reset_access): New function.
16820 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
16822 * config/i386/i386.c (ix86_option_override_internal): Add
16823 PTA_RDRND and PTA_MOVBE for bdver4.
16825 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16826 James Greenhalgh <james.greenhalgh@arm.com>
16828 * doc/md.texi (clrsb): Document.
16829 (clz): Change reference to x into operand 1.
16831 (popcount): Likewise.
16833 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16836 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
16837 move to subtarget in serial version if result is ignored.
16839 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16840 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16842 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
16843 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
16844 (sched_analyze_insn): Update use of try_group_insn to
16845 sched_macro_fuse_insns.
16846 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
16847 arguments that are not conditional jumps.
16849 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
16851 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
16852 family information. Handle BTVER2 cpu with cpuid family value.
16854 2014-08-04 Tom de Vries <tom@codesourcery.com>
16856 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
16857 (glibc_2_11_or_earlier): Document effective-target keywords.
16859 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
16861 * ipa-devirt.c (odr_type_warn_count): Add type.
16862 (possible_polymorphic_call_targets): Set it.
16863 (ipa_devirt): Use it.
16865 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
16867 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
16869 * ipa-devirt.c: Include hash-map.h
16870 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
16871 (clear_speculation): Break out of ...
16872 (get_class_context): ... here; speed up handling obviously useless
16874 (odr_type_warn_count, decl_warn_count): New structures.
16875 (final_warning_record): New structure.
16876 (final_warning_records): New static variable.
16877 (possible_polymorphic_call_targets): Cleanup handling of
16878 speculative info; do not build speculation when user do not care;
16879 record info about warnings when asked for.
16880 (add_decl_warning): New function.
16881 (type_warning_cmp): New function.
16882 (decl_warning_cmp): New function.
16883 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
16884 (gate): Enable pass when warnings are requested.
16885 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
16888 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
16890 * hash-map.h (default_hashmap_traits::mark_key_deleted):
16892 (hash_map::remove): New method.
16893 (hash_map::traverse): New method.
16894 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
16895 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
16896 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
16897 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
16898 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
16899 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
16902 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
16904 * hash-set.h: new File.
16905 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
16906 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
16907 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
16908 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
16909 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
16910 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
16911 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
16912 varpool.c: Use hash_set instead of pointer_set.
16914 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
16916 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
16918 2014-08-01 Jiong Wang <jiong.wang@arm.com>
16920 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
16921 for frame access when strict_p is false.
16923 2014-08-01 Renlin Li <renlin.li@arm.com>
16924 2014-08-01 Jiong Wang <jiong.wang@arm.com>
16926 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
16927 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
16928 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
16930 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
16932 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
16933 aarch64_mem_pair_offset.
16935 2014-08-01 Jiong Wang <jiong.wang@arm.com>
16937 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
16939 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
16940 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
16942 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
16944 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
16946 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
16948 PR regression/61510
16949 * cgraphunit.c (analyze_functions): Use get_create rather than get
16950 for decls which are clones of abstract functions.
16952 2014-08-01 Martin Liska <mliska@suse.cz>
16954 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
16955 * ipa-prop.h (count_formal_params): Global function created from static.
16956 * ipa-prop.c (count_formal_params): Likewise.
16957 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
16958 profiles for semantically equivalent functions.
16959 * passes.c (do_per_function): If we load body of a function
16960 during WPA, this condition should behave same.
16961 * varpool.c (ctor_for_folding): More tolerant assert for variable
16962 aliases created during WPA.
16964 2014-08-01 Martin Liska <mliska@suse.cz>
16966 * doc/invoke.texi (Options That Control Optimization): Documentation
16967 for -foptimize-strlen introduced. Optimization levels default options
16970 2014-08-01 Jakub Jelinek <jakub@redhat.com>
16972 * opts.c (common_handle_option): Handle -fsanitize=alignment.
16973 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
16974 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
16976 * stor-layout.h (min_align_of_type): New prototype.
16977 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
16978 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
16980 * ubsan.c: Include builtins.h.
16981 (ubsan_expand_bounds_ifn): Change return type to bool,
16982 always return true.
16983 (ubsan_expand_null_ifn): Change return type to bool, change
16984 argument to gimple_stmt_iterator *. Handle both null and alignment
16985 sanitization, take type from ckind argument's type rather than
16987 (instrument_member_call): Removed.
16988 (instrument_mem_ref): Remove t argument, add mem and base arguments.
16989 Handle both null and alignment sanitization, don't say whole
16990 struct access is member access. Build 3 argument IFN_UBSAN_NULL
16991 call instead of 2 argument.
16992 (instrument_null): Adjust instrument_mem_ref caller. Don't
16993 instrument calls here.
16994 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
16995 like SANITIZE_NULL.
16996 * stor-layout.c (min_align_of_type): New function.
16997 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
16998 Or it into SANITIZE_UNDEFINED.
16999 * doc/invoke.texi (-fsanitize=alignment): Document.
17001 2014-07-31 Andi Kleen <ak@linux.intel.com>
17003 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
17005 2014-07-31 Andi Kleen <ak@linux.intel.com>
17007 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
17009 (vn_reference_compute_hash): Dito.
17010 (vn_nary_op_compute_hash): Dito.
17011 (vn_phi_compute_hash): Dito.
17012 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
17014 2014-07-31 Andi Kleen <ak@linux.intel.com>
17016 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
17017 Rename to inchash:add_expr_commutative. Convert to inchash.
17018 (iterative_hash_hashable_expr): Rename to
17019 inchash:add_hashable_expr. Convert to inchash.
17020 (avail_expr_hash): Dito.
17022 2014-07-31 Andi Kleen <ak@linux.intel.com>
17024 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
17025 Convert to inchash.
17027 2014-07-31 Andi Kleen <ak@linux.intel.com>
17029 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
17031 2014-07-31 Andi Kleen <ak@linux.intel.com>
17033 * Makefile.in (OBJS): Add rtlhash.o
17034 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
17035 (loc_checksum): Dito.
17036 (loc_checksum_ordered): Dito.
17037 (hash_loc_operands): Dito.
17039 (hash_loc_list): Dito.
17040 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
17041 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
17042 * rtlhash.c: New file.
17043 * rtlhash.h: New file.
17045 2014-07-31 Andi Kleen <ak@linux.intel.com>
17047 * inchash.h (inchash): Change inchash class to namespace.
17048 (class hash): ... Rename from inchash.
17049 (add_object): Move from macro to class template.
17050 * lto-streamer-out.c (hash_tree): Change inchash
17052 * tree.c (build_type_attribute_qual_variant): Dito.
17053 (type_hash_list): Dito.
17054 (attribute_hash_list): Dito.
17055 (iterative_hstate_expr): Rename to inchash::add_expr
17056 (build_range_type_1): Change inchash to inchash::hash
17057 and use hash::add_expr.
17058 (build_array_type_1): Dito.
17059 (build_function_type): Dito
17060 (build_method_type_directly): Dito.
17061 (build_offset_type): Dito.
17062 (build_complex_type): Dito.
17063 (make_vector_type): Dito.
17064 * tree.h (iterative_hash_expr): Dito.
17066 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
17068 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
17070 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
17072 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
17073 correct alphabetical position.
17074 (vpaddd_f64): Rewrite using builtins.
17075 (vpaddd_s64): Move to correct alphabetical position.
17078 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
17081 * config/sh/sh.c (sh_legitimate_address_p,
17082 sh_legitimize_reload_address): Handle reg+reg address modes when
17083 ALLOW_INDEXED_ADDRESS is false.
17084 * config/sh/predicates.md (general_movsrc_operand,
17085 general_movdst_operand): Likewise.
17087 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
17089 * config/aarch64/aarch64-builtins.c
17090 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
17093 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
17095 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
17096 the generated mask based on BYTES_BIG_ENDIAN.
17097 (aarch64_simd_check_vect_par_cnst_half): New.
17098 * config/aarch64/aarch64-protos.h
17099 (aarch64_simd_check_vect_par_cnst_half): New.
17100 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
17101 the check out to aarch64_simd_check_vect_par_cnst_half.
17102 (vect_par_cnst_lo_half): Likewise.
17103 * config/aarch64/aarch64-simd.md
17104 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
17105 (move_hi_quad_<mode>): Always generate a low mask.
17107 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17109 * doc/invoke.texi (AVR Options): Add documentation about
17110 __AVR_DEVICE_NAME__ built-in macro.
17112 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
17115 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
17116 constraints are satisfied.
17117 (<shift>di3_neon): Likewise.
17119 2014-07-31 Richard Biener <rguenther@suse.de>
17121 PR tree-optimization/61964
17122 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
17123 by structural equality.
17125 2014-07-31 Yury Gribov <y.gribov@samsung.com>
17127 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
17128 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
17129 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
17131 * gcc.c (sanitize_spec_function): Support new option.
17132 (SANITIZER_SPEC): Remove now redundant check.
17133 * opts.c (common_handle_option): Support new option.
17134 (finish_options): Check for incompatibilities.
17135 * toplev.c (process_options): Split userspace-specific checks.
17137 2014-07-31 Richard Biener <rguenther@suse.de>
17139 * lto-streamer.h (struct output_block): Remove global.
17140 (struct data_in): Remove labels, num_named_labels and
17141 num_unnamed_labels.
17142 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
17143 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
17145 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
17148 * common.opt (-Wreturn-local-addr): Moved from c.opt.
17149 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
17150 (isolate_path): New argument to avoid inserting a trap.
17151 (find_implicit_erroneous_behaviour): Handle returning the address
17152 of a local variable.
17153 (find_explicit_erroneous_behaviour): Likewise.
17155 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
17158 * toplev.c (init_random_seed): Move piece of code never called to
17160 (set_random_seed): see above.
17162 2014-07-31 Tom de Vries <tom@codesourcery.com>
17164 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
17166 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
17168 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
17169 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
17171 2014-07-31 Richard Biener <rguenther@suse.de>
17173 * data-streamer.h (streamer_write_data_stream): Declare here,
17175 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
17176 * lto-cgraph.c (lto_output_node): Adjust.
17177 (lto_output_varpool_node): Likewise.
17178 * data-streamer-out.c (streamer_string_index): Likewise.
17179 (streamer_write_data_stream, lto_append_block): Move from ...
17180 * lto-section-out.c (lto_output_data_stream,
17181 lto_append_block): ... here.
17183 2014-07-30 Mike Stump <mikestump@comcast.net>
17185 * configure.ac: Also check for popen.
17186 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
17187 * configure: Regenerate.
17188 * config.in: Regenerate.
17190 2014-07-30 Martin Jambor <mjambor@suse.cz>
17192 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
17193 parameter to gimple.
17195 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17197 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
17198 address as second parameter to __tpf_eh_return routine.
17200 2014-07-30 Jiong Wang <jiong.wang@arm.com>
17202 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
17205 2014-07-30 Tom Tromey <tromey@redhat.com>
17208 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
17209 * doc/extend.texi (Type Attributes): Document designated_init
17212 2014-07-30 Roman Gareev <gareevroman@gmail.com>
17214 * graphite-isl-ast-to-gimple.c:
17215 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
17216 (gcc_expression_from_isl_expression): Pass type to
17217 gcc_expression_from_isl_ast_expr_id.
17219 2014-07-30 Richard Biener <rguenther@suse.de>
17221 * lto-streamer.h (lto_write_data): New function.
17222 * langhooks.c (lhd_append_data): Do not free block.
17223 * lto-section-out.c (lto_write_data): New function writing
17224 raw data to the current section.
17225 (lto_write_stream): Adjust for langhook semantic change.
17226 (lto_destroy_simple_output_block): Write header directly.
17227 * lto-opts.c (lto_write_options): Write options directly.
17228 * lto-streamer-out.c (produce_asm): Write heaeder directly.
17229 (lto_output_toplevel_asms): Likewise.
17230 (copy_function_or_variable): Copy data directly.
17231 (write_global_references): Output index table directly.
17232 (lto_output_decl_state_refs): Likewise.
17233 (write_symbol): Write data directly.
17234 (produce_symtab): Adjust.
17235 (produce_asm_for_decls): Output header and refs directly.
17237 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
17239 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
17240 to speculative_targets
17241 (get_class_context): Fix handling of contextes without outer type;
17242 avoid matching non-polymorphic types in LTO.
17243 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
17244 parameter to speculative_targetsp; handle speculation.
17245 (dump_possible_polymorphic_call_targets): Update dumping.
17247 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
17249 * common.opt (Wodr): Enable by default.
17251 2014-07-29 Olivier Hainque <hainque@adacore.com>
17253 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
17255 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
17258 * gengtype.c (strtoken): New function.
17259 (create_user_defined_type): Replace strtok with strtoken.
17261 2014-07-29 Nathan Sidwell <nathan@acm.org>
17263 * gcov-io.c (gcov_var): Make hidden.
17264 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
17265 (gcov_do_dump): Declare.
17266 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
17268 2014-07-29 Martin Jambor <mjambor@suse.cz>
17270 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
17271 parameter to gimple.
17272 (sra_modify_assign): Likewise.
17274 2014-07-29 Richard Biener <rguenther@suse.de>
17276 PR middle-end/52478
17277 * expr.c (expand_expr_real_2): Revert last change.
17279 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
17281 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
17282 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
17283 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
17285 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
17286 (contains_type_p): Forward declare.
17287 (polymorphic_call_target_hasher::hash): Hash speculative info.
17288 (polymorphic_call_target_hasher::equal): Compare speculative info.
17289 (get_class_context): Handle speuclation.
17290 (contains_type_p): Update.
17291 (get_polymorphic_call_info_for_decl): Update.
17292 (walk_ssa_copies): Break out from ...
17293 (get_polymorphic_call_info): ... here; set speculative context
17295 * ipa-prop.c (ipa_write_indirect_edge_info,
17296 ipa_read_indirect_edge_info): Stream speculative context.
17297 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
17298 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
17299 SPECULATIVE_MAYBE_DERIVED_TYPE).
17300 (possible_polymorphic_call_targets overriders): Update.
17301 (dump_possible_polymorphic_call_targets overriders): Update.
17302 (dump_possible_polymorphic_call_target_p overriders): Update.
17304 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
17306 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
17307 ipa-devirt path; fix thinko there.
17309 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
17311 * config/i386/i386.c (ix86_return_in_memory): Replace one
17312 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
17314 2014-07-28 Marek Polacek <polacek@redhat.com>
17316 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
17318 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
17320 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
17321 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
17322 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
17323 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
17324 (USE_LD_AS_NEEDED): Likewise.
17325 (ASM_APP_ON): Likewise.
17326 (ASM_APP_OFF): Likewise.
17327 (TARGET_POSIX_IO): Likewise.
17328 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
17329 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
17330 (USE_LD_AS_NEEDED): Likewise.
17331 (ASM_APP_ON): Likewise.
17332 (ASM_APP_OFF): Likewise.
17333 (TARGET_POSIX_IO): Likewise.
17335 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
17337 PR middle-end/61734
17338 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
17339 operators other than the equality operators.
17341 2014-07-28 Richard Biener <rguenther@suse.de>
17343 PR middle-end/52478
17344 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
17345 sure to register SImode ones, not only >= word_mode ones.
17346 * expr.c (expand_expr_real_2): When expanding -ftrapv
17347 binops do not use OPTAB_LIB_WIDEN.
17349 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
17351 PR middle-end/61919
17352 * tree-outof-ssa.c (insert_partition_copy_on_edge)
17353 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
17354 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
17355 inserting them in the insn stream.
17357 2014-07-28 Marek Polacek <polacek@redhat.com>
17359 PR middle-end/61913
17360 * common.opt (Wodr): Add Var.
17362 2014-07-28 Richard Biener <rguenther@suse.de>
17364 PR tree-optimization/61921
17365 * tree-ssa-structalias.c (create_variable_info_for_1): Check
17366 if there is a varpool node before dereferencing it.
17368 2014-07-28 Roman Gareev <gareevroman@gmail.com>
17370 * graphite-sese-to-poly.c:
17371 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
17372 id of the pbb), which contains pointer to the pbb1.
17374 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
17376 2014-07-28 Roman Gareev <gareevroman@gmail.com>
17378 * graphite-isl-ast-to-gimple.c:
17379 (graphite_create_new_guard): New function.
17380 (translate_isl_ast_node_if): New function.
17381 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
17383 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
17385 2014-07-27 Anthony Green <green@moxielogic.com>
17387 * config.gcc: Add moxie-*-moxiebox* configuration.
17388 * config/moxie/moxiebox.h: New file.
17390 2014-07-26 Andrew Pinski <apinski@cavium.com>
17392 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
17393 from the read only register.
17395 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
17397 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
17398 as the allocation class if it isn't likely to be spilled.
17400 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
17402 * rtl.h (tls_referenced_p): Declare.
17403 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
17404 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
17405 (mips_cannot_force_const_mem): Use tls_referenced_p.
17406 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
17407 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
17408 instead of pa_tls_referenced_p.
17409 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
17410 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
17411 (pa_legitimate_constant_p): Likewise.
17412 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
17413 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
17414 (rs6000_cannot_force_const_mem, rs6000_emit_move)
17415 (rs6000_address_for_altivec): Use tls_referenced_p instead of
17416 rs6000_tls_referenced_p.
17417 (rs6000_tls_symbol_ref_1): Delete.
17419 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
17422 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
17423 Optimize inverse of a VEC_CONCAT.
17425 2014-07-25 Xinliang David Li <davidxl@google.com>
17427 * params.def: New parameter.
17428 * coverage.c (get_coverage_counts): Check new flag.
17429 (coverage_compute_profile_id): Check new flag.
17430 (coverage_begin_function): Check new flag.
17431 (coverage_end_function): Check new flag.
17432 * value-prof.c (coverage_node_map_initialized_p): New function.
17433 (init_node_map): Populate map with all functions.
17434 * doc/invoke.texi: Document new parameter.
17436 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
17437 Richard Biener <rguenther@suse.de>
17439 * lto-streamer-out.c (struct sccs): Turn to ...
17440 (class DFS): ... this one; refactor the DFS walk so it can
17441 be re-done on per-SCC basis.
17442 (DFS::DFS): New constructor.
17443 (DFS::~DFS): New destructor.
17444 (hash_tree): Add new MAP argument holding in-SCC hash values;
17445 remove POINTER_TYPE hashing hack.
17446 (scc_entry_compare): Rename to ...
17447 (DFS::scc_entry_compare): ... this one.
17448 (hash_scc): Rename to ...
17449 (DFS::hash_scc): ... this one; pass output_block instead
17450 of streamer_cache; work harder to get unique and stable SCC
17452 (DFS_write_tree): Rename to ...
17453 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
17454 (lto_output_tree): Update.
17456 2014-07-25 Andi Kleen <ak@linux.intel.com>
17458 * lto-streamer-out.c (hash_tree): Convert to inchash.
17460 2014-07-25 Andi Kleen <ak@linux.intel.com>
17462 * tree.c (build_type_attribute_qual_variant): Use inchash.
17463 (type_hash_list): Dito.
17464 (attribute_hash_list): Dito
17465 (iterative_hstate_expr): Dito.
17466 (iterative_hash_expr): Dito.
17467 (build_range_type_1): Dito.
17468 (build_array_type_1): Dito.
17469 (build_function_type): Dito.
17470 (build_method_type_directly): Dito.
17471 (build_offset_type): Dito.
17472 (build_complex_type): Dito.
17473 (make_vector_type): Dito.
17474 * tree.h (iterative_hash_expr): Add compat wrapper.
17475 (iterative_hstate_expr): Add.
17477 2014-07-25 Andi Kleen <ak@linux.intel.com>
17479 * Makefile.in (OBJS): Add inchash.o.
17480 (PLUGIN_HEADERS): Add inchash.h.
17481 * ipa-devirt.c: Include inchash.h.
17482 * lto-streamer-out.c: Dito.
17483 * tree-ssa-dom.c: Dito.
17484 * tree-ssa-pre.c: Dito.
17485 * tree-ssa-sccvn.c: Dito.
17486 * tree-ssa-tail-merge.c: Dito.
17488 * tree.c (iterative_hash_hashval_t): Move to ...
17489 (iterative_hash_host_wide_int): Move to ...
17490 * inchash.c: Here. New file.
17491 * tree.h (iterative_hash_hashval_t): Move to ...
17492 (iterative_hash_host_wide_int): Move to ...
17493 * inchash.h: Here. New file.
17495 2014-07-25 Richard Biener <rguenther@suse.de>
17497 PR middle-end/61762
17498 PR middle-end/61894
17499 * fold-const.c (native_encode_int): Add and handle offset
17500 parameter to do partial encodings of expr.
17501 (native_encode_fixed): Likewise.
17502 (native_encode_real): Likewise.
17503 (native_encode_complex): Likewise.
17504 (native_encode_vector): Likewise.
17505 (native_encode_string): Likewise.
17506 (native_encode_expr): Likewise.
17507 * fold-const.c (native_encode_expr): Add offset parameter
17509 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
17510 (fold_ctor_reference): Handle all reads from tcc_constant
17513 2014-07-25 Richard Biener <rguenther@suse.de>
17515 * tree-inline.c (estimate_move_cost): Mark speed_p argument
17516 as possibly unused.
17518 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17520 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
17522 2014-07-24 Kyle McMartin <kyle@redhat.com>
17524 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
17526 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17528 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
17530 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
17532 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
17533 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
17534 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
17536 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17538 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
17539 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
17540 aggregate types. Instead, *all* aggregate types, except for single-
17541 element or homogeneous float/vector aggregates, are quadword-aligned
17542 if required by their type alignment. Issue -Wpsabi note when a type
17543 is now treated differently than before.
17545 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17547 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
17548 does not fit fully into floating-point registers, and there is still
17549 space in the register parameter area, use GPRs to pass those parts
17550 of the argument. Issue -Wpsabi note if any parameter is now treated
17551 differently than before.
17552 (rs6000_arg_partial_bytes): Update.
17554 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
17556 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
17558 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
17560 * rtl.h (target_rtl): Remove lang_dependent_initialized.
17561 * toplev.c (initialize_rtl): Don't use it. Move previously
17562 "language-dependent" calls to...
17563 (backend_init): ...here.
17564 (lang_dependent_init_target): Don't set lang_dependent_initialized.
17565 Assert that RTL initialization hasn't happend yet.
17567 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
17569 PR rtl-optimization/61629
17570 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
17571 they have already been initialized.
17573 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
17575 PR middle-end/61268
17576 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
17577 DECL_INCOMING_RTL and entry_parm.
17578 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
17579 * calls.c (load_register_parameters): Likewise argument values.
17580 (emit_library_call_value_1, store_one_arg): Likewise argument
17582 * config/i386/i386.c (assign_386_stack_local): Likewise the local
17584 * explow.c (validize_mem): Modify the argument in-place.
17586 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17588 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
17589 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
17591 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17593 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
17594 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
17596 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17598 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
17599 (aarch64_save_callee_saves): New parameter "skip_wb".
17600 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
17602 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17604 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
17606 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
17608 2014-07-24 Roman Gareev <gareevroman@gmail.com>
17610 * graphite-isl-ast-to-gimple.c:
17611 (graphite_create_new_loop): Add calling of isl_id_free to properly
17612 decrement reference counts.
17614 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
17616 2014-07-24 Martin Liska <mliska@suse.cz>
17617 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
17619 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
17620 (rs6000_code_end): Likewise.
17622 2014-07-24 Martin Liska <mliska@suse.cz>
17624 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
17625 symtab_node funtion used.
17626 (rs6000_xcoff_declare_object_name): Likewise.
17628 2014-07-24 Martin Liska <mliska@suse.cz>
17630 * cgraphunit.c (compile): Correct function used.
17632 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
17634 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
17637 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
17640 * varasm.c (bss_initializer_p): Handle offlined ctors.
17641 (align_variable, get_variable_align): Likewise.
17642 (make_decl_one_only): Likewise.
17643 (default_binds_local_p_1): Likewise.
17644 (decl_binds_to_current_def_p): Likewise.
17645 (get_variable_section): Get constructor if it is offlined.
17646 (assemble_variable_contents): Sanity check that the caller
17647 streamed in the ctor in LTO.
17649 2014-07-24 Roman Gareev <gareevroman@gmail.com>
17651 * graphite-isl-ast-to-gimple.c:
17652 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
17653 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
17654 isl_ast_op_pdiv_r to the different case.
17656 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
17658 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17660 PR middle-end/61876
17661 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
17662 when flag_errno_math is on.
17664 2014-07-24 Martin Liska <mliska@suse.cz>
17666 * cgraph.h (varpool_node):
17667 (availability get_availability (void)):
17668 created from cgraph_variable_initializer_availability
17669 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
17670 created from: cgraph_variable_initializer_availability
17671 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
17672 (void finalize_named_section_flags (void)):
17673 created from varpool_finalize_named_section_flags
17674 (bool assemble_decl (void)): created from varpool_assemble_decl
17675 (void analyze (void)): created from varpool_analyze_node
17676 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
17677 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
17678 (void remove_initializer (void)): created from varpool_remove_initializer
17679 (tree get_constructor (void)): created from varpool_get_constructor
17680 (bool externally_visible_p (void)): created from varpool_externally_visible_p
17681 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
17682 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
17683 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
17684 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
17685 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
17686 (static bool output_variables (void)): created from varpool_output_variables
17687 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
17688 created from varpool_extra_name_alias
17689 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
17690 (static void dump_varpool (FILE *f)): created from dump_varpool
17691 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
17692 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
17693 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
17694 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
17695 (void assemble_aliases (void)): created from assemble_aliases
17697 2014-07-24 Martin Liska <mliska@suse.cz>
17699 * cgraph.h (symtab_node):
17700 (void register_symbol (void)): created from symtab_register_node
17701 (void remove (void)): created from symtab_remove_node
17702 (void dump (FILE *f)): created from dump_symtab_node
17703 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
17704 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
17705 (struct ipa_ref *add_reference (symtab_node *referred_node,
17706 enum ipa_ref_use use_type)): created from add_reference
17707 (struct ipa_ref *add_reference (symtab_node *referred_node,
17708 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
17709 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
17710 gimple stmt)): created from maybe_add_reference
17711 (bool semantically_equivalent_p (symtab_node *target)): created from
17712 symtab_semantically_equivalent_p
17713 (void remove_from_same_comdat_group (void)): created from
17714 remove_from_same_comdat_group
17715 (void add_to_same_comdat_group (symtab_node *old_node)): created from
17716 symtab_add_to_same_comdat_group
17717 (void dissolve_same_comdat_group_list (void)): created from
17718 symtab_dissolve_same_comdat_group_list
17719 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
17720 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
17721 created from symtab_alias_ultimate_target
17722 (inline symtab_node *next_defined_symbol (void)): created from
17723 symtab_next_defined_symbol
17724 (bool resolve_alias (symtab_node *target)): created from
17725 symtab_resolve_alias
17726 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
17727 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
17728 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
17729 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
17730 (void set_section (const char *section)): created from set_section_1
17731 (enum availability get_availability (void)): created from symtab_node_availability
17732 (void make_decl_local (void)): created from symtab_make_decl_local
17733 (bool real_symbol_p (void)): created from symtab_read_node
17734 (can_be_discarded_p (void)): created from symtab_can_be_discarded
17735 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
17736 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
17737 symtab_in_same_comdat_p;
17738 (bool address_taken_from_non_vtable_p (void)): created from
17739 address_taken_from_non_vtable_p
17740 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
17741 (static void dump_table (FILE *)): created from dump_symtab
17742 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
17743 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
17744 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
17745 symtab_used_from_object_file_p
17746 (void dump_base (FILE *)): created from dump_symtab_base
17747 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
17748 (void unregister (void)): created from symtab_unregister_node
17749 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
17750 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
17751 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
17752 symtab_nonoverwritable_alias_1
17753 * cgraph.h (cgraph_node):
17754 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
17755 created from cgraph_remove_node_and_inline_clones
17756 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
17757 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
17758 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
17759 (cgraph_node *function_symbol (enum availability *avail = NULL)):
17760 created from cgraph_function_node
17761 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
17762 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
17763 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
17764 created from cgraph_create_clone
17765 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
17766 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
17767 created from cgraph_create_virtual_clone
17768 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
17769 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
17770 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
17771 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
17772 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
17773 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
17774 created from cgraph_function_version_info
17775 (struct cgraph_function_version_info *insert_new_function_version (void)):
17776 created from insert_new_cgraph_node_version
17777 (struct cgraph_function_version_info *function_version (void)): created from
17778 get_cgraph_node_version
17779 (void analyze (void)): created from analyze_function
17780 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
17781 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
17782 tree real_alias) cgraph_add_thunk
17783 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
17784 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
17785 created from cgraph_function_or_thunk_node
17786 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
17787 created from expand_thunk
17788 (void reset (void)): created from cgraph_reset_node
17789 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
17790 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
17791 (void remove (void)): created from cgraph_remove_node
17792 (void dump (FILE *f)): created from dump_cgraph_node
17793 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
17794 (bool get_body (void)): created from cgraph_get_body
17795 (void release_body (void)): created from cgraph_release_function_body
17796 (void unnest (void)): created from cgraph_unnest_node
17797 (void make_local (void)): created from cgraph_make_node_local
17798 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
17799 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
17800 gcov_type count, int freq)): created from cgraph_create_edge
17801 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
17802 gcov_type count, int freq)): created from cgraph_create_indirect_edge
17803 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
17804 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
17805 created from cgraph_create_edge_including_clones
17806 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
17807 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
17808 (void remove_callers (void)): created from cgraph_node_remove_callers
17809 (void remove_callees (void)): created from cgraph_node_remove_callees
17810 (enum availability get_availability (void)): created from cgraph_function_body_availability
17811 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
17812 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
17813 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
17814 (void call_duplication_hooks (cgraph_node *node2)): created from
17815 cgraph_call_node_duplication_hooks
17816 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
17817 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
17818 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
17819 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
17820 (void call_function_insertion_hooks (void)):
17821 created from cgraph_call_function_insertion_hooks
17822 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
17823 (bool local_p (void)): created from cgraph_local_node
17824 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
17825 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
17826 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
17827 (inline bool only_called_directly_or_aliased_p (void)):
17828 created from cgraph_only_called_directly_or_aliased_p
17829 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
17830 created from cgraph_will_be_removed_from_program_if_no_direct_calls
17831 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
17832 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
17833 (bool can_remove_if_no_direct_calls_p (void)):
17834 created from cgraph_can_remove_if_no_direct_calls_p
17835 (inline bool has_gimple_body_p (void)):
17836 created from cgraph_function_with_gimple_body_p
17837 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
17838 (static void dump_cgraph (FILE *f)): created from dump_cgraph
17839 (static inline void debug_cgraph (void)): created from debug_cgraph
17840 (static void record_function_versions (tree decl1, tree decl2)):
17841 created from record_function_versions
17842 (static void delete_function_version (tree decl)):
17843 created from delete_function_version
17844 (static void add_new_function (tree fndecl, bool lowered)):
17845 created from cgraph_add_new_function
17846 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
17847 (static cgraph_node * create (tree decl)): created from cgraph_create_node
17848 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
17849 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
17850 (static cgraph_node *get_for_asmname (tree asmname)):
17851 created from cgraph_node_for_asm
17852 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
17853 created from cgraph_same_body_alias
17854 (static bool used_from_object_file_p_worker (cgraph_node *node,
17855 void *): new function
17856 (static bool non_local_p (cgraph_node *node, void *)):
17857 created from cgraph_non_local_node_p_1
17858 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
17859 created from verify_cgraph
17860 (static bool make_local (cgraph_node *node, void *)):
17861 created from cgraph_make_node_local
17862 (static cgraph_node *create_alias (tree alias, tree target)):
17863 created from cgraph_create_function_alias
17864 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
17865 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
17866 created from cgraph_create_edge_1
17867 * cgraph.h (varpool_node):
17868 (void remove (void)): created from varpool_remove_node
17869 (void dump (FILE *f)): created from dump_varpool_node
17871 2014-07-24 Richard Biener <rguenther@suse.de>
17874 * tree-ssa-structalias.c (create_variable_info_for_1):
17875 Use varpool_get_constructor.
17876 (create_variable_info_for): Likewise.
17878 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17880 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
17881 subtract outgoing area size when restoring stack_pointer_rtx.
17883 2014-07-24 Nick Clifton <nickc@redhat.com>
17885 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
17886 that operations are taking place in parallel.
17887 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
17889 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
17891 * omp-low.c (extract_omp_for_data): Add missing break statement.
17893 2014-07-24 Richard Biener <rguenther@suse.de>
17895 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
17896 * tree-inline.c (estimate_move_cost): Add speed_p parameter
17897 and adjust MOVE_RATIO query accordingly.
17898 (estimate_num_insns): Adjust callers.
17899 * ipa-prop.c (ipa_populate_param_decls): Likewise.
17900 * ipa-cp.c (gather_context_independent_values,
17901 estimate_local_effects): Likewise.
17902 * ipa-split.c (consider_split): Likewise.
17904 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
17906 * config/i386/driver-i386.c: Remove names of unused arguments and
17907 unnecessary unused attributes.
17908 * config/i386/host-mingw32.c: Likewise.
17909 * config/i386/i386.c: Likewise.
17910 * config/i386/winnt-stubs.c: Likewise.
17911 * config/i386/winnt.c: Likewise.
17913 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17915 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
17916 (aarch64_gen_loadwb_pair): New helper function.
17917 (aarch64_expand_epilogue): Simplify code using new helper functions.
17918 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
17920 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17922 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
17923 (aarch64_gen_storewb_pair): New helper function.
17924 (aarch64_expand_prologue): Simplify code using new helper functions.
17925 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
17927 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17929 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
17930 Rename to aarch64_save_callee_saves, remove restore code.
17931 (aarch64_restore_callee_saves): New function.
17933 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17935 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
17936 (aarch64_save_callee_saves): New function to handle reg save
17937 for both core and vectore regs.
17939 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17941 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
17942 (aarch64_gen_store_pair): New helper function.
17943 (aarch64_save_or_restore_callee_save_registers)
17944 (aarch64_save_or_restore_fprs): Use new helper functions.
17946 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17948 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
17949 (aarch64_save_or_restore_callee_save_registers)
17950 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
17952 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17954 * config/aarch64/aarch64.c
17955 (aarch64_save_or_restore_callee_save_registers)
17956 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
17958 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17960 * config/aarch64/aarch64.c
17961 (aarch64_save_or_restore_callee_save_registers)
17962 (aarch64_save_or_restore_fprs): Remove 'increment'.
17964 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17966 * config/aarch64/aarch64.c
17967 (aarch64_save_or_restore_callee_save_registers)
17968 (aarch64_save_or_restore_fprs): Use register offset in
17969 cfun->machine->frame.reg_offset.
17971 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17973 * config/aarch64/aarch64.c
17974 (aarch64_save_or_restore_callee_save_registers)
17975 (aarch64_save_or_restore_fprs): Remove base_rtx.
17977 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17979 * config/aarch64/aarch64.c
17980 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
17981 to 'start_offset'. Remove local variable 'start_offset'.
17983 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17985 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
17986 type to HOST_WIDE_INT.
17988 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17990 * config/aarch64/aarch64.c (aarch64_expand_prologue)
17991 (aarch64_save_or_restore_fprs)
17992 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
17994 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
17996 * config/arm/t-rtems-eabi: Add
17997 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
17998 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
17999 mbig-endian/mthumb/march=armv7-r, and
18000 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
18003 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
18004 Chris Johns <chrisj@rtems.org>
18005 Joel Sherrill <joel.sherrill@oarcorp.com>
18007 * config.gcc: Add nios2-*-rtems*.
18008 * config/nios2/rtems.h: New file.
18009 * gcc/config/nios2/t-rtems: New file.
18011 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
18014 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
18015 constant numbers, not general constants.
18016 (rs6000_expand_vector_init): Ditto.
18018 2014-07-23 Nathan Sidwell <nathan@acm.org>
18020 * gcov-tool.c (gcov_list): Declare here.
18021 (set_gcov_list): Remove.
18022 (gcov_output_files): Set gcov_list directly.
18024 2014-07-23 Host Schirmeier <horst@schirmeier.com>
18026 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
18028 2014-07-23 Jiong Wang <jiong.wang@arm.com>
18030 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
18031 callee-saved registers are available for padding purpose
18032 and r3 is not mandatory, then prefer use those callee-saved
18035 2014-07-23 Richard Biener <rguenther@suse.de>
18037 * params.def (PARAM_MAX_COMBINE_INSNS): New.
18038 * combine.c: Include statistics.h and params.h.
18039 (combine_instructions): Guard three and four insn combines
18040 with max-combine-insns value. Record statistics for combines
18042 * doc/invoke.texi (max-combine-insns): Document new param.
18044 2014-07-23 Roman Gareev <gareevroman@gmail.com>
18046 * graphite-isl-ast-to-gimple.c:
18047 (translate_isl_ast_node_block): New function.
18048 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
18050 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
18051 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
18053 2014-07-23 Roman Gareev <gareevroman@gmail.com>
18055 * graphite-isl-ast-to-gimple.c:
18056 (get_max_schedule_dimensions): New function.
18057 (extend_schedule): Likewise.
18058 (generate_isl_schedule): Add calling of extend_schedule and
18059 get_max_schedule_dimensions.
18061 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18063 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
18064 (case UNSPEC): Handle UNSPEC_RBIT.
18066 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18068 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
18069 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
18071 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18073 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
18075 2014-07-22 Roman Gareev <gareevroman@gmail.com>
18077 * graphite-isl-ast-to-gimple.c:
18078 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
18079 (ivs_params_clear):
18080 (build_iv_mapping): New function.
18081 (translate_isl_ast_node_user): Likewise.
18082 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
18084 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
18085 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
18086 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
18088 2014-07-21 Bin Cheng <bin.cheng@arm.com>
18091 * config/arm/arm.md (setmem): New pattern.
18092 * config/arm/arm-protos.h (struct tune_params): New fields.
18093 (arm_gen_setmem): New prototype.
18094 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
18095 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
18096 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
18097 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
18098 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
18099 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
18100 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
18101 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
18102 (arm_const_inline_cost): New function.
18103 (arm_block_set_max_insns): New function.
18104 (arm_block_set_non_vect_profit_p): New function.
18105 (arm_block_set_vect_profit_p): New function.
18106 (arm_block_set_unaligned_vect): New function.
18107 (arm_block_set_aligned_vect): New function.
18108 (arm_block_set_unaligned_non_vect): New function.
18109 (arm_block_set_aligned_non_vect): New function.
18110 (arm_block_set_vect, arm_gen_setmem): New functions.
18112 2014-07-21 Bin Cheng <bin.cheng@arm.com>
18114 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
18116 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
18119 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
18120 out of #ifdef __OPTIMIZE__.
18122 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
18124 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
18125 different trapping status if -fnon-call-exceptions is enabled.
18127 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
18129 * expr.c (store_field): Handle VOIDmode for calls that return values
18130 in multiple locations.
18132 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18134 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
18135 (altivec_vsldoi_<mode>): Likewise.
18137 2014-07-20 Roman Gareev <gareevroman@gmail.com>
18139 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
18140 to the number of characters in the line.
18142 2014-07-20 Roman Gareev <gareevroman@gmail.com>
18144 * graphite-isl-ast-to-gimple.c: Add using of
18145 build_nonstandard_integer_type instead of int128_integer_type_node.
18147 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
18149 * toplev.c (output_stack_usage): Adjust the location of the warning.
18151 2014-07-19 Daniel Cederman <cederman@gaisler.com>
18153 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
18154 (*membar_storeload): Disable for LEON3.
18156 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
18158 PR rtl-optimization/61461
18159 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
18161 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
18164 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
18165 Fix instruction constraint.
18166 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
18168 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
18170 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
18172 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
18174 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
18175 GNU coding standards.
18176 (nds32_register_move_cost): Likewise.
18177 (nds32_memory_move_cost): Likewise.
18178 (nds32_address_cost): Likewise.
18180 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18182 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
18184 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
18186 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
18187 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
18188 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
18189 (HAVE_sync_compare_and_swapqi): Define.
18190 (HAVE_sync_compare_and_swaphi): Likewise.
18191 (HAVE_sync_compare_and_swapsi): Likewise.
18193 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
18195 * config/mips/p5600.md: Add missing cpu tests.
18197 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18199 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
18200 (vmla_f64): Likewise.
18201 (vfms_f64): Likewise.
18202 (vmls_f64): Likewise.
18204 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18206 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
18207 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
18209 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18211 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
18212 (vmlal_high_lane_s32): Likewise.
18213 (vmlal_high_lane_u16): Likewise.
18214 (vmlal_high_lane_u32): Likewise.
18215 (vmlsl_high_lane_s16): Likewise.
18216 (vmlsl_high_lane_s32): Likewise.
18217 (vmlsl_high_lane_u16): Likewise.
18218 (vmlsl_high_lane_u32): Likewise.
18220 2014-07-17 Terry Guo <terry.guo@arm.com>
18222 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
18223 (alus_reg): Renamed to alus_sreg.
18224 * config/arm/arm-fixed.md: Change type of non-dsp instructions
18225 from alu_reg to alu_sreg. Change type of dsp instructions from
18226 alu_reg to alu_dsp_reg.
18227 * config/arm/thumb1.md: Likewise.
18228 * config/arm/thumb2.md: Likewise.
18229 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
18230 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
18231 with alu_sreg and alus_sreg.
18232 * config/arm/arm1026ejs.md (alu_op): Likewise.
18233 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
18234 * config/arm/arm926ejs.md (9_alu_op): Likewise.
18235 * config/arm/fa526.md (526_alu_op): Likewise.
18236 * config/arm/fa606te.md (606te_alu_op): Likewise.
18237 * config/arm/fa626te.md (626te_alu_op): Likewise.
18238 * config/arm/fa726te.md (726te_alu_op): Likewise.
18239 * config/arm/fmp626.md (mp626_alu_op): Likewise.
18240 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
18241 alu_sreg, alu_dsp_reg and alus_sreg.
18242 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
18243 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
18244 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
18245 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
18246 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
18247 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
18248 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
18249 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
18250 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
18251 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
18252 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
18253 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
18254 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
18255 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
18256 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
18257 alus_reg to alus_sreg.
18259 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
18261 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
18264 2014-07-17 Richard Biener <rguenther@suse.de>
18266 PR rtl-optimization/61801
18267 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
18268 don't set reg_pending_barrier if it appears in a debug-insn.
18270 2014-07-16 DJ Delorie <dj@redhat.com>
18272 * config/rx/rx.c (rx_option_override): Fix alignment values.
18273 (rx_align_for_label): Likewise.
18275 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
18278 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
18279 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
18280 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
18282 (cris_print_index, cris_print_operand, cris_constant_index_p)
18283 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
18284 (cris_address_cost): Ditto last CONSTANT_P.
18285 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
18286 callers changed. Yield cris_offsettable_symbol for non-PIC
18287 constant symbolic expressions including labels. Yield cris_unspec
18289 (cris_expand_pic_call_address): New parameter MARKERP. Set its
18290 target to pic_offset_table_rtx for calls that will likely go
18291 through PLT, const0_rtx when they can't. All callers changed.
18292 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
18293 symbolic expressions to be PICified. Remove second, redundant,
18294 assert on can_create_pseudo_p returning non-zero. Use
18295 replace_equiv_address_nv, not replace_equiv_address, for final
18297 * config/cris/cris.md ("movsi"): Move variable t to pattern
18298 toplevel. Adjust assert for new cris_symbol_type member. Use
18299 CONSTANT_P instead of CONSTANT_ADDRESS_P.
18300 ("*movsi_internal") <case 9>: Make check for valid unspec operands
18302 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
18303 ("call", "call_value"): Use second incoming operand as a marker
18304 for pic-offset-table-register being used.
18305 ("*expanded_call_non_v32", "*expanded_call_v32")
18306 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
18307 second incoming operand to CALL, match cris_call_type_marker.
18308 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
18309 ("*expanded_call_side"): Ditto. Fix typo in comment.
18310 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
18312 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
18313 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
18314 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
18315 users changed. Add members cris_offsettable_symbol and cris_unspec.
18316 (cris_symbol_type): Rename from cris_pic_symbol_type.
18317 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
18319 * config/cris/cris-protos.h (cris_symbol_type_of,
18320 cris_expand_pic_call_address): Adjust prototypes.
18321 (cris_legitimate_constant_p): New prototype.
18323 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
18324 an existing tmake_file. Don't add t-slibgcc and t-linux.
18326 2014-07-17 Jason Merrill <jason@redhat.com>
18329 * symtab.c (symtab_remove_from_same_comdat_group): Also
18330 set_comdat_group to NULL_TREE.
18331 (verify_symtab): Fix diagnostic.
18333 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
18336 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
18338 2014-07-16 Dodji Seketeli <dodji@redhat.com>
18340 Support location tracking for built-in macro tokens
18341 * input.h (is_location_from_builtin_token): New function declaration.
18342 * input.c (is_location_from_builtin_token): New function definition.
18343 * toplev.c (general_init): Tell libcpp what the pre-defined
18344 spelling location for built-in tokens is.
18346 2014-07-16 Jakub Jelinek <jakub@redhat.com>
18348 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
18349 on the FUNCTION_DECL.
18351 2014-07-16 Richard Biener <rguenther@suse.de>
18354 * doc/extend.texi (always_inline): Clarify.
18356 2014-07-15 Eric Christopher <echristo@gmail.com>
18358 * doc/invoke.texi (Link Options): Document -z option.
18360 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
18362 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
18363 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
18365 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
18367 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
18369 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
18371 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
18372 varpool_assemble_decl.
18373 * varpool.c (varpool_assemble_decl): Assert that node->definition is
18376 2014-07-15 Michael Matz <matz@suse.de>
18378 PR rtl-optimization/61772
18379 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
18381 2014-07-15 Richard Biener <rguenther@suse.de>
18383 * opts.c (default_options_table): Disable bit-ccp at -Og.
18385 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
18387 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
18389 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
18391 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
18392 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
18393 call langhook for unknown declaration.
18394 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
18395 * tree.h (DECL_ARGUMENTS): Update.
18396 * print-tree.c (print_node): Update.
18397 * tree-core.h (tree_decl_non_common): Remove arguments.
18398 (tree_function_decl): Add arguments.
18400 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
18402 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
18404 2014-07-14 Richard Biener <rguenther@suse.de>
18406 PR tree-optimization/61779
18407 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
18408 simplifying a condition.
18410 2014-07-14 Richard Biener <rguenther@suse.de>
18412 * builtins.c (c_strlen): Make only_value == 2 really only
18413 affect warning generation.
18415 2014-07-14 Richard Biener <rguenther@suse.de>
18417 PR tree-optimization/61757
18418 PR tree-optimization/61783
18419 PR tree-optimization/61787
18420 * tree-ssa-dom.c (record_equality): Revert canonicalization
18421 change and add comment.
18422 (propagate_rhs_into_lhs): Revert previous fix, removing
18423 loop depth restriction again.
18425 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18427 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
18428 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
18429 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
18430 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
18431 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
18432 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
18433 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
18435 2014-07-14 Richard Biener <rguenther@suse.de>
18437 * cgraph.h (decl_in_symtab_p): Make inline.
18439 2014-07-14 Jakub Jelinek <jakub@redhat.com>
18441 PR middle-end/61294
18442 * doc/invoke.texi (-Wmemset-transposed-args): Document.
18445 * config/i386/i386.c (classify_argument): Don't merge classes above
18448 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
18450 * cgraph.h (symtab_node): Add nonzero_address.
18451 (decl_in_symtab_p): Break out from ...
18452 (symtab_get_node): ... here.
18453 * fold-const.c: Include cgraph.h
18454 (tree_single_nonzero_warnv_p): Use symtab to determine
18455 if symbol is non-zero.
18456 * symtab.c (symtab_node::nonzero_address): New method.
18458 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
18460 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
18461 forgotten in previous commit.
18463 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
18465 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
18467 * ipa-devirt.c: Include stor-layout.h and intl.h
18468 (odr_subtypes_equivalent_p): New function.
18469 (warn_odr): New function.
18470 (warn_type_mismatch): New function.
18471 (odr_types_equivalent_p): New function.
18472 (add_type_duplicate): Use it.
18473 * common.opt (Wodr): New flag.
18474 * doc/invoke.texi (Wodr): Document new warning.
18476 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
18478 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
18479 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
18480 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
18481 (varpool_get_constructor): Push CTORS_IN timevar.
18482 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
18484 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
18486 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
18487 Remove VOID_FTYPE_PUSHORT.
18488 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
18489 Change code to USHORT_FTYPE_VOID.
18490 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
18491 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
18492 (ix86_atomic_assign_expand_fenv): Update for
18493 __builtin_ia32_fnstsw changes.
18494 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
18495 (fnstsw): Change operand 0 to nonimmediate operand.
18497 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
18499 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
18500 (varpool_get_constructor): New function.
18501 (varpool_ctor_useable_for_folding_p): Break out from ...
18502 (ctor_for_folding): ... here; use varpool_get_constructor.
18503 (varpool_assemble_decl): Likewise.
18504 * lto-streamer.h (struct output_block): Turn cgraph_node
18506 (lto_input_variable_constructor): Declare.
18507 * ipa-visibility.c (function_and_variable_visibility): Use
18508 varpool_get_constructor.
18509 * cgraph.h (varpool_get_constructor): Declare.
18510 (varpool_ctor_useable_for_folding_p): New function.
18511 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
18512 parameter; return error_mark_node for non-trivial constructors.
18513 (lto_write_tree_1, DFS_write_tree): Update use of
18514 get_symbol_initial_value.
18515 (output_function): Update initialization of symbol.
18516 (output_constructor): New function.
18517 (copy_function): Rename to ..
18518 (copy_function_or_variable): ... this one; handle vars too.
18519 (lto_output): Output variable sections.
18520 * lto-streamer-in.c (input_constructor): New function.
18521 (lto_read_body): Rename from ...
18522 (lto_read_body_or_constructor): ... this one; handle vars too.
18523 (lto_input_variable_constructor): New function.
18524 * ipa-prop.c (ipa_prop_write_jump_functions,
18525 ipa_prop_write_all_agg_replacement): Update.
18526 * lto-cgraph.c (compute_ltrans_boundary): Use it.
18527 (output_cgraph_opt_summary): Set symbol to NULL.
18529 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
18531 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
18532 non-polymorphic types.
18533 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
18534 * ipa-devirt.c (types_same_for_odr): Do not explode when one
18535 of types is not polymorphic.
18537 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
18539 * lra-constraints.c (remove_inheritance_pseudos): Process
18540 destination pseudo too.
18542 2014-07-11 Rong Xu <xur@google.com>
18544 * gcov-tool.c (gcov_output_files): Fix build error introduced in
18547 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
18549 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
18550 * config/avr/avr-devices.c (AVR_MCU): Same.
18551 (avr_mcu_types): add text start value to end of device list.
18552 * config/avr/avr-mcus.def: Add text section start for all devices.
18553 (ata5782): Add new avr5 device.
18555 * config/avr/avr-tables.opt: Regenerate.
18556 * config/avr/avr.h: Add declaration for text section start handler.
18557 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
18559 (LINK_SPEC): Include text section start handler to linker spec.
18560 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
18561 pass -Ttext option to linker if the text section start for the device
18563 * config/avr/t-multilib: Regenerate.
18564 * doc/avr-mmcu.texi: Regenerate.
18566 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
18568 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
18569 * config/rs6000/aix52.h (LINK_SPEC): Same.
18570 * config/rs6000/aix53.h (LINK_SPEC): Same.
18571 * config/rs6000/aix61.h (LINK_SPEC): Same.
18572 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
18574 2014-07-11 Roman Gareev <gareevroman@gmail.com>
18576 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
18577 (graphite_verify): New function.
18578 (ivs_params_clear): New function.
18579 (gcc_expression_from_isl_ast_expr_id): New function.
18580 (gcc_expression_from_isl_expr_int): New function.
18581 (binary_op_to_tree): New function.
18582 (ternary_op_to_tree): New function.
18583 (unary_op_to_tree): New function.
18584 (nary_op_to_tree): New function.
18585 (gcc_expression_from_isl_expr_op): New function.
18586 (gcc_expression_from_isl_expression): New function.
18587 (graphite_create_new_loop): New function.
18588 (translate_isl_ast_for_loop): New function.
18589 (get_upper_bound): New function.
18590 (graphite_create_new_loop_guard): New function.
18591 (translate_isl_ast_node_for): New function.
18592 (translate_isl_ast): New function.
18593 (add_parameters_to_ivs_params): New function.
18594 (scop_to_isl_ast): New parameter ip.
18595 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
18597 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
18599 * config/xtensa/predicates.md (call expander): Update for
18600 DECL_SECTION_NAME being string.
18602 2014-07-11 Richard Biener <rguenther@suse.de>
18604 PR middle-end/61473
18605 * builtins.c (fold_builtin_memory_op): Inline memory moves that
18606 can be implemented with a single load followed by a single store.
18607 (c_strlen): Only warn when only_value is not 2.
18609 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
18611 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
18613 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
18616 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
18617 (*movhi_bytes): Likewise.
18618 (*arm_movqi_insn): Likewise.
18620 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
18623 * config/alpha/alpha.c: Include tree-pass.h, context.h
18624 and pass_manager.h.
18625 (pass_data_handle_trap_shadows): New pass.
18626 (pass_handle_trap_shadows::gate): New pass gate function.
18627 (make_pass_handle_trap_shadows): New function.
18628 (rest_of_handle_trap_shadows): Ditto.
18630 (alpha_align_insns_1): Rename from alpha_align_insns.
18631 (pass_data_align_insns): New pass.
18632 (pass_align_insns::gate): New pass gate function.
18633 (make_pass_aling_insns): New function.
18634 (rest_of_align_insns): Ditto.
18635 (alpha_align_insns): Ditto.
18637 (alpha_option_override): Declare handle_trap_shadows info
18638 and align_insns_info. Register handle_trap_shadows and align_insns
18640 (alpha_reorg): Do not call alpha_trap_shadows and
18641 alpha_align_insn from here.
18643 (alpha_pad_function_end): Do not skip BARRIERs.
18645 2014-07-10 Rong Xu <xur@google.com>
18647 Add gcov-tool: an offline gcda profile processing tool support.
18648 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
18649 (gcov_is_error): Ditto.
18650 (gcov_read_string): Ditto.
18651 (gcov_read_sync): Ditto.
18652 * gcov-io.h: Move counter defines to gcov-counter.def.
18653 * gcov-dump.c (tag_counters): Use gcov-counter.def.
18654 * coverage.c: Ditto.
18655 * gcov-tool.c: Offline gcda profile processing tool.
18656 (unlink_gcda_file): Remove one gcda file.
18657 (unlink_profile_dir): Remove gcda files from the profile path.
18658 (gcov_output_files): Output gcda files to an output dir.
18659 (profile_merge): Merge two profiles in directory.
18660 (print_merge_usage_message): Print merge usage.
18661 (merge_usage): Print merge usage and exit.
18662 (do_merge): Driver for profile merge sub-command.
18663 (profile_rewrite): Rewrite profile.
18664 (print_rewrite_usage_message): Print rewrite usage.
18665 (rewrite_usage): Print rewrite usage and exit.
18666 (do_rewrite): Driver for profile rewrite sub-command.
18667 (print_usage): Print gcov-info usage and exit.
18668 (print_version): Print gcov-info version.
18669 (process_args): Process arguments.
18670 (main): Main routine for gcov-tool.
18671 * Makefile.in: Build and install gcov-tool.
18672 * gcov-counter.def: New file split from gcov-io.h.
18673 * doc/gcc.texi: Include gcov-tool.texi.
18674 * doc/gcov-tool.texi: Document for gcov-tool.
18676 2014-07-10 Richard Biener <rguenther@suse.de>
18678 PR tree-optimization/61757
18679 * tree-ssa-dom.c (loop_depth_of_name): Restore.
18680 (propagate_rhs_into_lhs): Revert part of last change.
18682 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
18684 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
18687 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
18689 PR middle-end/53590
18690 * function.c (allocate_struct_function): Revert r188667 change.
18692 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
18694 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
18696 * doc/install.texi: Remove links to defunct package providers for
18699 2014-07-09 Tom de Vries <tom@codesourcery.com>
18701 * final.c (get_call_fndecl): Declare.
18702 (self_recursive_call_p): New function.
18703 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
18705 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18707 * ipa-devirt.c (record_node): Walk through aliases.
18709 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18711 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
18713 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18716 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
18718 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18720 * ipa-visibility.c (function_and_variable_visibility): Remove
18721 temporary hack disabling local aliases on AIX.
18723 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18725 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
18726 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
18728 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18730 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
18731 * rs6000/rs6000.c: Inline output of .set instruction.
18732 (declare_alias_data): New struct.
18733 (rs6000_declare_alias): New function.
18734 (rs6000_xcoff_declare_function_name): Use it.
18735 (rs6000_xcoff_declare_object_name): New function.
18736 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
18737 (ASM_OUTPUT_DEF): Turn to empty definition.
18739 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
18742 * hash-table.h: use hash_table::value_type instead of
18743 Descriptor::value_type in the return types of several methods.
18745 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
18747 * tree-pass.h (pass_data): Remove has_execute member.
18748 * passes.c (execute_one_pass): Don't check pass->has_execute.
18749 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
18750 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
18751 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
18752 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
18753 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
18754 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
18755 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
18756 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
18757 gimple-low.c, gimple-ssa-isolate-paths.c,
18758 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
18759 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
18760 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
18761 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
18762 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
18763 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
18764 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
18765 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
18766 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
18767 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
18768 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
18769 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
18770 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
18771 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
18772 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
18773 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
18774 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
18775 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
18776 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
18777 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
18778 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
18779 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
18780 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
18781 web.c: Remove initializer for pass_data::has_execute.
18783 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
18785 * graphite-htab.h: Use hash_map instead of hash_table.
18786 * graphite-clast-to-gimple.c: Adjust.
18787 * passes.c: Use hash_map instead of hash_table.
18788 * sese.c: Likewise.
18789 * sese.h: Remove now unused code.
18791 2014-07-08 Sriraman Tallam <tmsriram@google.com>
18794 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
18797 2014-07-08 Jakub Jelinek <jakub@redhat.com>
18799 PR rtl-optimization/61673
18800 * combine.c (simplify_comparison): Test just mode's sign bit
18801 in tmode rather than the sign bit and any bits above it.
18803 2014-07-08 Roman Gareev <gareevroman@gmail.com>
18805 * graphite-isl-ast-to-gimple.c (generate_isl_context):
18806 Add __isl_give to the declaration.
18807 (generate_isl_schedule): Likewise.
18808 (scop_to_isl_ast): Likewise.
18810 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18812 * config/arm/arm.c (cortexa5_extra_costs): New table.
18813 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
18815 2014-07-08 Jakub Jelinek <jakub@redhat.com>
18817 PR tree-optimization/61725
18818 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
18819 range, use range_includes_zerop_p instead of integer_zerop on
18820 vr0->min, only use log2 of max if min is not negative.
18822 2014-07-08 Richard Biener <rguenther@suse.de>
18824 * tree-ssa-dom.h (loop_depth_of_name): Remove.
18825 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
18826 restriction on loop depth difference.
18827 (record_equality): Likewise.
18828 (propagate_rhs_into_lhs): Likewise. Simplify condition.
18829 (loop_depth_of_name): Remove.
18830 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
18831 restriction on loop depth difference.
18832 (init_copy_prop): Likewise.
18834 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18836 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
18838 (walk_aliased_vdefs): Likewise.
18839 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
18840 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
18841 (detect_type_change_from_memory_writes): Check if entry was reached.
18843 2014-07-08 Richard Biener <rguenther@suse.de>
18845 PR tree-optimization/61681
18846 * tree-ssa-structalias.c (find_what_var_points_to): Expand
18847 NONLOCAL inside ESCAPED.
18849 2014-07-08 Richard Biener <rguenther@suse.de>
18851 PR tree-optimization/61680
18852 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
18853 Handle properly all read-write dependences with group accesses.
18855 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
18857 PR tree-optimization/61576
18858 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
18859 block containing reduction statement is predecessor of phi basi block.
18861 2014-07-08 Marek Polacek <polacek@redhat.com>
18864 * fold-const.c (round_up_loc): Change the parameter type.
18866 * fold-const.h (round_up_loc): Adjust declaration.
18867 * stor-layout.c (finalize_record_size): Check for too large types.
18869 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
18871 * symtab.c: Include calls.h.
18872 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
18874 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
18876 * config/rs6000/rs6000.c (output_vec_const_move): Handle
18877 little-endian code generation.
18878 * config/rs6000/spe.md (spe_evmergehi): Rename to...
18879 (vec_perm00_v2si): ... this. Handle little-endian code generation.
18880 (spe_evmergehilo): Rename to...
18881 (vec_perm01_v2si): ... this. Handle little-endian code generation.
18882 (spe_evmergelo): Rename to...
18883 (vec_perm11_v2si): ... this. Handle little-endian code generation.
18884 (spe_evmergelohi): Rename to...
18885 (vec_perm10_v2si): ... this. Handle little-endian code generation.
18886 (spe_evmergehi, spe_evmergehilo): New expanders.
18887 (spe_evmergelo, spe_evmergelohi): Likewise.
18888 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
18889 (*frob_tf_ti): Likewise.
18890 (*frob_<mode>_di_2): Likewise.
18891 (*frob_tf_di_8_2): Likewise.
18892 (*frob_di_<mode>): Likewise.
18893 (*frob_ti_tf): Likewise.
18894 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
18895 (*frob_ti_<mode>_8_2): Likewise.
18896 (*frob_ti_tf_2): Likewise.
18897 (mov_si<mode>_e500_subreg0): Rename to...
18898 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
18900 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
18901 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
18902 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
18903 the big endianness only.
18904 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
18905 (*mov_si<mode>_e500_subreg0_2): Rename to...
18906 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
18907 big big endianness only.
18908 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
18909 (*mov_si<mode>_e500_subreg4): Rename to...
18910 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
18912 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
18913 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
18914 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
18915 the big endianness only.
18916 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
18918 (*mov_si<mode>_e500_subreg4_2): Rename to...
18919 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
18921 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
18922 (*mov_sitf_e500_subreg8): Rename to...
18923 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
18925 (*mov_sitf_e500_subreg8_le): New instruction pattern.
18926 (*mov_sitf_e500_subreg8_2): Rename to...
18927 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
18929 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
18930 (*mov_sitf_e500_subreg12): Rename to...
18931 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
18933 (*mov_sitf_e500_subreg12_le): New instruction pattern.
18934 (*mov_sitf_e500_subreg12_2): Rename to...
18935 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
18937 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
18939 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
18941 * asan.c (instrument_strlen_call): Do not instrument first byte
18942 in strlen if already instrumented.
18944 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18946 * config/arm/arm.opt (mwords-little-endian): Delete.
18947 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
18948 of TARGET_LITTLE_WORDS.
18949 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
18950 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
18952 * doc/invoke.texi: Remove references to -mwords-little-endian.
18954 2014-07-07 Jakub Jelinek <jakub@redhat.com>
18956 * expmed.c (struct init_expmed_rtl): Change all fields but
18957 pow2 and cint from struct rtx_def to rtx.
18958 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
18959 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
18962 2014-07-06 Marek Polacek <polacek@redhat.com>
18965 * doc/invoke.texi: Document -Wsizeof-array-argument.
18967 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
18969 * wide-int.h (wide_int_storage): Change declaration from struct
18972 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
18974 * cgraph.c (cgraph_create_indirect_edge): Update call of
18975 get_polymorphic_call_info.
18976 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
18977 (possible_polymorphic_call_targets): Add parameter call.
18978 (decl_maybe_in_construction_p): New predicate.
18979 (get_polymorphic_call_info): Add parameter call;
18980 use decl_maybe_in_construction_p.
18981 * gimple-fold.c (fold_gimple_assign): Update use of
18982 possible_polymorphic_call_targets.
18983 (gimple_fold_call): Likewise.
18984 * ipa-prop.c: Inlcude calls.h
18985 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
18986 (param_type_may_change_p): New predicate.
18987 (detect_type_change_from_memory_writes): Break out from ...
18988 (detect_type_change): ... this one; use param_type_may_change_p.
18989 (detect_type_change_ssa): Use param_type_may_change_p.
18990 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
18992 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
18995 * config/arm/arm-protos.h (arm_legitimate_address_p,
18996 arm_is_constant_pool_ref): Add prototypes.
18997 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
18998 (arm_is_constant_pool_ref) New function.
18999 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
19000 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
19001 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
19002 operand. Remove pool_range and neg_pool_range attributes.
19003 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
19004 pool_range and neg_pool_range attributes.
19005 * config/arm/constraints.md (Uh): New constraint.
19006 (Uq): Don't allow constant pool references.
19008 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
19010 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
19011 (move_lo_quad_internal_be_<mode>): Likewise.
19012 (move_lo_quad_<mode>): Convert to define_expand.
19013 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
19014 (aarch64_simd_move_hi_quad_be_<mode>): New.
19015 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
19016 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
19017 (aarch64_combinez_be<mode>): New.
19018 (aarch64_combine<mode>): Convert to define_expand.
19019 (aarch64_combine_internal<mode>): New.
19020 (aarch64_simd_combine<mode>): Remove bogus RTL description.
19022 2014-07-04 Tom de Vries <tom@codesourcery.com>
19024 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
19025 combination of earlyclobber and read/write modifiers.
19027 2014-07-04 Tom de Vries <tom@codesourcery.com>
19029 * config/aarch64/aarch64-simd.md
19030 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
19032 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
19035 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
19037 2014-07-04 Jakub Jelinek <jakub@redhat.com>
19039 PR middle-end/61654
19040 * cgraphunit.c (expand_thunk): Call free_dominance_info.
19042 PR tree-optimization/61684
19043 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
19044 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
19046 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
19047 Kito Cheng <kito@0xlab.org>
19048 Monk Chiang <sh.chiang04@gmail.com>
19050 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
19051 (nds32_symbol_load_store_p): Move to ...
19052 (nds32_fp_as_gp_check_available): Move to ...
19053 * config/nds32/nds32-fp-as-gp.c: ... here.
19054 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
19055 extern declaration.
19057 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
19058 Kito Cheng <kito@0xlab.org>
19059 Monk Chiang <sh.chiang04@gmail.com>
19061 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
19062 (nds32_expand_store_multiple): Move to ...
19063 (nds32_expand_movmemqi): Move to ...
19064 * config/nds32/nds32-memory-manipulation.c: ... here.
19066 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
19067 Kito Cheng <kito@0xlab.org>
19068 Monk Chiang <sh.chiang04@gmail.com>
19070 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
19071 (nds32_output_casesi_pc_relative): Move to ...
19072 (nds32_output_casesi): Move to ...
19073 (nds32_mem_format): Move to ...
19074 (nds32_output_16bit_store): Move to ...
19075 (nds32_output_16bit_load): Move to ...
19076 (nds32_output_32bit_store): Move to ...
19077 (nds32_output_32bit_load): Move to ...
19078 (nds32_output_32bit_load_s): Move to ...
19079 (nds32_output_stack_push): Move to ...
19080 (nds32_output_stack_pop): Move to ...
19081 * config/nds32/nds32-md-auxiliary.c: ... here.
19083 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
19084 Ling-Hua Tseng <uranus@tinlans.org>
19086 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
19087 the purpose of this file.
19089 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
19090 Kito Cheng <kito@0xlab.org>
19091 Monk Chiang <sh.chiang04@gmail.com>
19093 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
19094 (nds32_address_cost): Move implementation to ...
19095 * config/nds32/nds32-cost.c: ... here.
19096 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
19097 (nds32_address_cost_impl): Declare.
19099 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
19100 Kito Cheng <kito@0xlab.org>
19101 Monk Chiang <sh.chiang04@gmail.com>
19103 * config/nds32/nds32.c
19104 (nds32_consecutive_registers_load_store_p): Move to ...
19105 (nds32_valid_multiple_load_store): Move to ...
19106 (nds32_valid_stack_push_pop): Move to ...
19107 (nds32_can_use_bclr_p): Move to ...
19108 (nds32_can_use_bset_p): Move to ...
19109 (nds32_can_use_btgl_p): Move to ...
19110 (nds32_can_use_bitci_p): Move to ...
19111 * config/nds32/nds32-predicates.c: ... here.
19113 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
19114 Kito Cheng <kito@0xlab.org>
19115 Monk Chiang <sh.chiang04@gmail.com>
19117 * config/nds32/nds32.c
19118 (nds32_expand_builtin_null_ftype_reg): Move to ...
19119 (nds32_expand_builtin_reg_ftype_imm): Move to ...
19120 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
19121 (nds32_init_builtins): Move implementation to ...
19122 (nds32_expand_builtin): Move implementation to ...
19123 * config/nds32/nds32-intrinsic.c: ... here.
19124 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
19125 (nds32_expand_builtin_impl): Declare.
19127 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
19128 Kito Cheng <kito@0xlab.org>
19129 Monk Chiang <sh.chiang04@gmail.com>
19131 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
19132 (nds32_emit_section_tail_template): Move to ...
19133 (nds32_emit_isr_jmptbl_section): Move to ...
19134 (nds32_emit_isr_vector_section): Move to ...
19135 (nds32_emit_isr_reset_conten): Move to ...
19136 (nds32_check_isr_attrs_conflict): Move to ...
19137 (nds32_construct_isr_vectors_information): Move to ...
19138 (nds32_asm_file_start): Move implementation to ...
19139 (nds32_asm_file_end): Move implementation to ...
19140 * config/nds32/nds32-isr.c: ... here.
19141 * config/nds32/nds32-protos.h
19142 (nds32_check_isr_attrs_conflict): Declare.
19143 (nds32_construct_isr_vectors_information): Declare.
19144 (nds32_asm_file_start_for_isr): Declare.
19145 (nds32_asm_file_end_for_isr): Declare.
19147 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
19148 Kito Cheng <kito@0xlab.org>
19149 Monk Chiang <sh.chiang04@gmail.com>
19151 * config.gcc (nds32*): Add new modules to extra_objs.
19152 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
19153 (nds32be-*-*): Likewise.
19154 * config/nds32/nds32-cost.c: New file.
19155 * config/nds32/nds32-fp-as-gp.c: New file.
19156 * config/nds32/nds32-intrinsic.c: New file.
19157 * config/nds32/nds32-isr.c: New file.
19158 * config/nds32/nds32-md-auxiliary.c: New file.
19159 * config/nds32/nds32-memory-manipulation.c: New file.
19160 * config/nds32/nds32-pipelines-auxiliary.c: New file.
19161 * config/nds32/nds32-predicates.c: New file.
19162 * config/nds32/t-nds32: New file.
19164 2014-07-03 Jakub Jelinek <jakub@redhat.com>
19166 PR tree-optimization/61682
19167 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
19168 using cases and when one of the operands is equal to 1.
19170 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
19172 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
19173 ashr<mode>3): Correct mode of operands[2].
19174 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
19175 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
19176 Correct mode of operands[2]. Fix split condition.
19178 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
19180 * arm.md (arch): Add armv6_or_vfpv3.
19181 (arch_enabled): Add test for the above.
19182 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
19184 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
19186 2014-07-03 Jakub Jelinek <jakub@redhat.com>
19188 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
19189 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
19190 HWI 1 and negate the unsigned value.
19191 * expmed.c (expand_sdiv_pow2): For modes wider than word always
19192 use AND instead of shift.
19193 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
19195 2014-07-03 Marek Polacek <polacek@redhat.com>
19197 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
19198 (-fsanitize=float-divide-by-zero): Move to the table with
19199 -fsanitize=undefined suboptions.
19200 (-fsanitize=float-cast-overflow): Likewise.
19202 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
19204 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
19205 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
19208 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19210 * loop-invariant.c (struct invariant): Add a new member: eqno;
19211 (find_identical_invariants): Update eqno;
19212 (create_new_invariant): Init eqno;
19213 (get_inv_cost): Compute comp_cost with eqno;
19215 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
19217 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
19218 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
19219 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
19220 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
19221 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
19223 2014-07-02 Christian Bruel <christian.bruel@st.com>
19227 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
19228 (make_preds_opaque): Delete.
19229 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
19230 (commit_mode_sets): New function.
19231 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
19232 Process all modes at once.
19233 * basic-block.h (pre_edge_lcm_avs): Declare.
19234 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
19235 Call clear_aux_for_edges. Fix comments.
19236 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
19237 (pre_edge_rev_lcm): Idem.
19238 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
19240 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
19241 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
19243 * config/i386/i386.c (x96_emit_mode_set): Idem.
19244 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
19245 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
19246 (fpscr_toggle) Disallow from delay slot.
19247 * target.def (emit_mode_set): Add prev_mode parameter.
19248 * doc/tm.texi: Regenerate.
19250 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19252 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
19255 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
19257 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
19258 vtable_pointer_value_to_vtable): Constify.
19259 (contains_polymorphic_type_p): Declare.
19260 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
19261 vtable_pointer_value_to_vtable): Constify.
19262 (contains_polymorphic_type_p): New predicate.
19263 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
19265 (ipa_set_ancestor_jf): Likewise.
19266 (detect_type_change): Return false in easy cases.
19267 (compute_complex_assign_jump_func): Require type to contain
19269 (compute_known_type_jump_func): Likewise.
19271 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
19273 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
19275 (type_in_anonymous_namespace_p): Constify argument.
19276 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
19277 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
19278 (main_odr_variant): New function.
19279 (hash_type_name): Make static; update assert; do not ICE on
19281 (types_same_for_odr): Bring here from tree.c; simplify and remove
19282 old structural comparing code that doesn't work for templates.
19283 (odr_hasher::equal): Update assert.
19284 (add_type_duplicate): Return true when bases should be computed;
19285 replace incomplete loader by complete; do not output duplicated
19286 warnings; do not ICE on non-records; set odr_violated flag.
19287 (get_odr_type): Be ready to replace incomplete type by complete
19288 one; work on ODR variants instead of main variants; reorder item
19289 in array so bases have still smaller indexes.
19290 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
19291 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
19293 2014-07-01 Cary Coutant <ccoutant@google.com>
19295 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
19297 (resolve_addr_in_expr): When replacing the rtx in a location list
19298 entry, get a new address table entry.
19299 (dwarf2out_finish): Call index_location_lists even if there are no
19300 addr_index_table entries yet.
19302 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
19304 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
19305 change for not being obvious.
19307 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
19309 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
19312 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19314 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
19315 (vcagt_f64): Likewise.
19316 (vcale_f64): Likewise.
19317 (vcaled_f64): Likewise.
19318 (vcales_f32): Likewise.
19319 (vcalt_f64): Likewise.
19320 (vcaltd_f64): Likewise.
19321 (vcalts_f32): Likewise.
19323 2014-07-01 Marek Polacek <polacek@redhat.com>
19325 * doc/invoke.texi: Document -Wint-conversion.
19327 2014-07-01 Marek Polacek <polacek@redhat.com>
19330 * doc/invoke.texi: Document -Wincompatible-pointer-types.
19332 2014-07-01 Martin Liska <mliska@suse.cz>
19334 IPA REF alias refactoring
19335 * cgraph.h (iterate_direct_aliases): New function.
19336 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
19337 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
19338 FOR_EACH_ALIAS added.
19339 (cgraph_for_node_and_aliases): Likewise.
19340 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
19341 * ipa-inline.c (reset_edge_caches): Likewise.
19342 (update_caller_keys): Likewise.
19343 * trans-mem.c (ipa_tm_execute): Likewise.
19344 *varpool.c (varpool_analyze_node): Likewise.
19345 (varpool_for_node_and_aliases): Likewise.
19346 * ipa-ref.h (first_alias): New function.
19347 (last_alias): Likewise.
19348 (has_aliases_p): Likewise.
19349 * ipa-ref.c (ipa_ref::remove_reference): Removal function
19350 is sensitive to IPA_REF_ALIASes.
19351 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
19352 are put at the beginning of the list.
19353 (symtab_node::iterate_direct_aliases): New function.
19355 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19358 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
19360 (write_ts_type_common_tree_pointers): Do not stream fields not set
19361 for incomplete types; do not stream duplicated fields for variants;
19362 sanity check that variant and type match.
19363 (write_ts_type_non_common_tree_pointers): Likewise.
19364 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
19365 TYPE_SIZE whether type is complete.
19366 (lto_input_ts_type_common_tree_pointers): Do same changes as in
19367 write_ts_type_common_tree_pointers
19368 (lto_input_ts_type_non_common_tree_pointers): Likewise.
19370 2014-06-30 Joseph Myers <joseph@codesourcery.com>
19372 * var-tracking.c (add_stores): Return instead of asserting if old
19373 and new values for conditional store are the same.
19375 2014-06-30 Richard Henderson <rth@redhat.com>
19379 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
19380 the cfg if there were any changes.
19381 * passes.def: Revert move of peephole2 after reorder_blocks;
19382 move duplicate_computed_gotos before peephole2.
19384 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
19386 * except.c (emit_note_eh_region_end): New helper function.
19387 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
19388 emit EH_REGION_END note.
19389 * jump.c (cleanup_barriers): Do not split a call and its
19390 corresponding CALL_ARG_LOCATION note.
19392 2014-06-30 Jeff Law <law@redhat.com>
19394 PR tree-optimization/61607
19395 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
19396 deeper into the SSA_NAME_VALUE chain.
19398 2014-06-30 Marek Polacek <polacek@redhat.com>
19400 * convert.c (convert_to_integer): Don't instrument conversions if the
19401 function has no_sanitize_undefined attribute.
19402 * ubsan.c: Don't run the ubsan pass if the function has
19403 no_sanitize_undefined attribute.
19405 2014-06-30 Jakub Jelinek <jakub@redhat.com>
19407 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
19408 -fsanitize=undefined suboptions.
19410 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
19412 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
19413 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
19414 against bigendian and adjust indices.
19416 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
19418 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
19420 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
19423 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
19424 Add alternative; make early clobber. Adjust both split patterns
19425 to use operand 0 as the working register.
19427 2014-06-30 Jakub Jelinek <jakub@redhat.com>
19429 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
19430 as ira_object_id_map might be NULL, or 1.
19432 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19434 * loop-invariant.c (get_inv_cost): Handle register class.
19435 (gain_for_invariant): Check the register pressure of the inv
19436 and its overlapped register class, other than all.
19438 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
19440 * doc/invoke.texi (Optimize Options): Fix descriptions of
19441 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
19443 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
19445 * doc/extend.texi (Function Attributes): Update 'naked' attribute
19448 2014-06-29 Tobias Grosser <tobias@grosser.es>
19451 * graphite-isl-ast-to-gimple.c: Add missing guards.
19453 2014-06-29 Roman Gareev <gareevroman@gmail.com>
19455 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
19456 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
19457 * flag-types.h: Add new enum fgraphite_generator.
19458 * graphite-isl-ast-to-gimple.c: New.
19459 * graphite-isl-ast-to-gimple.h: New.
19460 * graphite.c (graphite_transform_loops): Add choice of Graphite
19461 code generator, which depends on flag_graphite_code_gen.
19463 2014-06-29 Roman Gareev <gareevroman@gmail.com>
19465 * graphite-dependences.c (subtract_commutative_associative_deps):
19466 Add NULL checking of the following variables: must_raw_no_source,
19467 may_raw_no_source, must_war_no_source, may_war_no_source,
19468 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
19469 must_war, may_war, must_waw, may_waw.
19471 2014-06-29 Roman Gareev <gareevroman@gmail.com>
19473 * graphite-clast-to-gimple.c: gloog is renamed to
19474 graphite_regenerate_ast_cloog. gloog_error is renamed to
19475 graphite_regenerate_error.
19476 * graphite-clast-to-gimple.h: The definition of the struct
19477 bb_pbb_def is moved to graphite-htab.h.
19478 Add inclusion of the hash-table.h.
19479 * graphite-htab.h: The declaration of the function gloog is moved
19480 to graphite-clast-to-gimple.h and renamed to
19481 graphite_regenerate_ast_cloog.
19482 * graphite.c (graphite_transform_loops): gloog is renamed
19483 to graphite_regenerate_ast_cloog.
19485 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19487 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
19489 (write_ts_type_common_tree_pointers): Do not stream fields not set
19490 for incomplete types; do not stream duplicated fields for variants;
19491 sanity check that variant and type match.
19492 (write_ts_type_non_common_tree_pointers): Likewise.
19493 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
19494 TYPE_SIZE whether type is complete.
19495 (lto_input_ts_type_common_tree_pointers): Do same changes as in
19496 write_ts_type_common_tree_pointers
19497 (lto_input_ts_type_non_common_tree_pointers): Likewise.
19499 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19501 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
19503 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19505 * tree-inline.c (remap_type_1): Do not duplicate fields
19506 that are shared in between type and its main variant.
19508 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19510 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
19512 (ipa_set_ancestor_jf) Likewise.
19513 (check_stmt_for_type_change): Check that we work on main variant.
19514 (detect_type_change): Look into main variant.
19515 (compute_known_type_jump_func): Check that main variant has BINFO.
19517 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19519 * ipa-devirt.c (set_type_binfo): New function.
19520 (add_type_duplicate): Use it.
19521 (get_odr_type): Sanity check that binfos points to main variants.
19522 (get_class_context): Be sure the context's outer_type is main variant.
19523 (contains_type_p): Walk main variant.
19524 (get_polymorphic_call_info_for_decl): Set outer_type to be
19526 (get_polymorphic_call_info): Likewise.
19527 (possible_polymorphic_call_targets): Sanity check that we operate
19530 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19532 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
19534 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19536 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
19537 accidental change due to wide-int branch merge.
19539 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19541 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
19542 compressed debug support.
19543 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
19544 * configure: Regenerate.
19545 * config.in: Regenerate.
19546 * common.opt (compressed_debug_sections): New enum.
19547 (gz, gz=): New options.
19548 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
19549 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
19550 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
19551 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
19552 LINK_COMPRESS_DEBUG_SPEC.
19553 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
19554 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
19555 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
19556 (Debugging Options): Document -gz[=type].
19558 2014-06-27 Martin Jambor <mjambor@suse.cz>
19561 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
19562 args_to_skip, use those from node instead. Copy args_to_skip and
19563 combined_args_to_skip from node to the new thunk.
19564 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
19565 (cgraph_create_virtual_clone): Moved computation of
19566 combined_args_to_skip...
19567 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
19569 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
19571 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
19572 redundant diagnostic machinary.
19574 2014-06-27 Richard Biener <rguenther@suse.de>
19576 * tree-ssa-math-opts.c (bswap_replace): Fix
19577 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
19579 2014-06-27 Martin Liska <mliska@suse.cz>
19581 * gimple.h (gimple_location_safe): New function introduced.
19582 * cgraphunit.c (walk_polymorphic_call_targets): Usage
19583 of gimple_location_safe replaces gimple_location.
19584 (gimple_fold_call): Likewise.
19585 * ipa-devirt.c (ipa_devirt): Likewise.
19586 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
19587 * ipa.c (walk_polymorphic_call_targets): Likewise.
19588 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
19590 2014-06-27 Jakub Jelinek <jakub@redhat.com>
19592 PR tree-optimization/57233
19593 PR tree-optimization/61299
19594 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
19596 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
19597 would be lowered to scalar shifts, check if corresponding
19598 shifts and vector BIT_IOR_EXPR are supported and don't lower
19599 or lower just to narrower vector type in that case.
19600 * expmed.c (expand_shift_1): Fix up handling of vector
19601 shifts and rotates.
19603 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
19606 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
19608 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
19610 * doc/invoke.texi (-fsemantic-interposition): Document.
19611 * common.opt (fsemantic-interposition): New flag.
19612 * varasm.c (decl_replaceable_p): Use it.
19614 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19617 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
19618 extraction other than index 3.
19620 2014-06-26 Teresa Johnson <tejohnson@google.com>
19622 * doc/invoke.texi: Fix typo.
19623 * dumpfile.c: Add support for documented -fdump-* options
19624 optimized/missed/note/optall.
19626 2014-06-26 Martin Jambor <mjambor@suse.cz>
19628 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
19629 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
19630 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
19631 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
19632 * opts.c (default_options_optimization): Set
19633 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
19634 * doc/invoke.texi (allow-load-data-races)
19635 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
19636 (allow-store-data-races): Document the new default.
19638 2014-06-26 Martin Jambor <mjambor@suse.cz>
19640 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
19641 renamed to ipa_impossible_devirt_target. Fix typo.
19642 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
19643 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
19644 ipa_impossible_devirt_target.
19646 2014-06-26 Richard Biener <rguenther@suse.de>
19648 PR tree-optimization/61607
19649 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
19650 explaining why we restrict copies on loop depth.
19651 * tree-ssa-dom.c (cprop_operand): Remove restriction on
19653 (record_equivalences_from_phis): Instead add it here.
19655 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
19657 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
19658 (LTO_WRAPPER_OBJS): New variable.
19659 (lto-wrapper$(exeext)): Use it.
19660 * collect2.c: Include "collect-utils.h".
19661 (verbose, debug): Remove variables.
19662 (at_file_supplied): No longer static.
19663 (tool_name): New variable.
19664 (do_wait, fork_execute, maybe_unlink): Don't declare.
19665 (tool_cleanup): No longer static.
19666 (notice): Remove function.
19667 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
19668 fork_execute calls.
19669 (collect_wait, do_wait, collect_execute): Remove functions.
19670 (maybe_unlink): No longer static.
19671 * collect2.h (verbose, debug): Don't declare.
19672 (at_file_supplied): Declare.
19673 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
19675 (collect_execute): Replace with implementation from collect2, plus a
19676 new arg use_atfile. All callers changed.
19677 (collect_wait): Replace with implementation from collect2.
19678 (maybe_unlink_file): Remove function.
19679 (fork_execute): Replace with implementation from collect2, plus a
19680 new arg use_atfile. All callers changed.
19681 (do_wait): Add call to utils_cleanup to the error path.
19682 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
19683 (tool_cleanup): Adjust declarations.
19684 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
19685 * tlink.c: Include "collect-utils.h".
19686 (tlink_execute): New arg use_atfile. All callers changed.
19687 (tlink_init, tlink_execute): Remove declarations.
19689 * collect-utils.c (save_temps): New variable.
19690 (do_wait): Use it instead of debug. Use fatal_error.
19691 * collect-utils.h (save_temps): Declare.
19692 * collect2.c (verbose): Rename from vflag. All uses changed.
19693 (tool_cleanup): New function, copied from collect_atexit.
19694 (collect_atexit, handler): Just call it.
19695 * collect2.h (verbose): Declaration renamed from vflag.
19696 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
19699 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
19700 (lto-wrapper$(exeext)): Link with collect-utils.o.
19701 * collect-utils.c: New file.
19702 * collect-utils.h: New file.
19703 * lto-wrapper.c: Include "collect-utils.h".
19704 (args_name): Delete variable.
19705 (tool_name): New variable.
19706 (tool_cleanup): New function.
19707 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
19708 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
19709 (fork_execute): Remove functions.
19711 2014-06-26 Nick Clifton <nickc@redhat.com>
19713 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
19715 * doc/extend.texi (Function Attributes): Fix typo in description
19716 of RX vector attribute.
19718 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
19720 * config.gcc (supported_defaults): Error when passing either
19721 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
19723 2014-06-26 Richard Biener <rguenther@suse.de>
19725 * tree-ssa-dom.c (cprop_operand): Remove restriction on
19726 propagating volatile pointers.
19728 2014-06-26 Richard Biener <rguenther@suse.de>
19730 PR tree-optimization/61607
19731 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
19732 loop if we redirected its latch edge.
19733 (thread_block_1): Do not cancel loops prematurely.
19735 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
19737 * toplev.c (backend_init_target): Move init_emit_regs and
19739 (backend_init) ... here; skip ira_init_once and backend_init_target.
19740 (target_reinit) ... and here; clear
19741 this_target_rtl->lang_dependent_initialized.
19742 (lang_dependent_init_target): Clear
19743 this_target_rtl->lang_dependent_initialized;
19744 break out rtl initialization to ...
19745 (initialize_rtl): ... here; call also backend_init_target
19747 * toplev.h (initialize_rtl): New function.
19748 * function.c: Include toplev.h
19749 (init_function_start): Call initialize_rtl.
19750 * rtl.h (target_rtl): Add target_specific_initialized,
19751 lang_dependent_initialized.
19753 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
19754 Jakub Jelinek <jakub@redhat.com>
19756 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
19758 2014-06-25 Tom de Vries <tom@codesourcery.com>
19760 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
19762 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
19764 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
19765 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
19766 Issue a strict overflow warning if appropriate.
19768 2014-06-25 Martin Liska <mliska@suse.cz>
19770 IPA REF refactoring
19771 * Makefile.in: Removed header file (ipa-ref-inline.h).
19772 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
19774 (cgraph_speculative_call_info): Likewise.
19775 (cgraph_for_node_thunks_and_aliases): Likewise.
19776 (cgraph_for_node_and_aliases): Likewise.
19777 (verify_cgraph_node): Likewise.
19778 * cgraph.h: Batch of IPA REF functions become member functions of
19779 symtab_node: add_reference, maybe_add_reference, clone_references,
19780 clone_referring, clone_reference, find_reference,
19781 remove_stmt_references, remove_all_references,
19782 remove_all_referring, dump_references, dump_referring,
19783 has_alias_p, iterate_reference, iterate_referring.
19784 * cgraphbuild.c (record_reference): New IPA REF function used.
19785 (record_type_list): Likewise.
19786 (record_eh_tables): Likewise.
19787 (mark_address): Likewise.
19788 (mark_load): Likewise.
19789 (mark_store): Likewise.
19790 (pass_build_cgraph_edges): Likewise.
19791 (rebuild_cgraph_edge): Likewise.
19792 (cgraph_rebuild_references): Likewise.
19793 (pass_remove_cgraph_callee_edges): Likewise.
19794 * cgraphclones.c (cgraph_clone_node): Likewise.
19795 (cgraph_create_virtual_clone): Likewise.
19796 (cgraph_materialize_clone): Likewise.
19797 (cgraph_materialize_all_clones): Likewise.
19798 * cgraphunit.c (cgraph_reset_node): Likewise.
19799 (cgraph_reset_node): Likewise.
19800 (analyze_function): Likewise.
19801 (assemble_thunks_and_aliases): Likewise.
19802 (expand_function): Likewise.
19803 * ipa-comdats.c (propagate_comdat_group): Likewise.
19804 (enqueue_references): Likewise.
19805 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
19806 (create_specialized_node): Likewise.
19807 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
19808 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
19809 * ipa-inline.c (reset_edge_caches): Likewise.
19810 (update_caller_keys): Likewise.
19811 (execute): Likewise.
19812 * ipa-prop.c (remove_described_reference): Likewise.
19813 (propagate_controlled_uses): Likewise.
19814 (ipa_edge_duplication_hook): Likewise.
19815 (ipa_modify_call_arguments): Likewise.
19816 * ipa-pure-const.c (propagate_pure_const): Likewise.
19817 * ipa-ref-inline.h: Header file removed, functions moved
19818 to symtab_node class.
19819 * ipa-ref.c (remove_reference): New class member function.
19820 (cannot_lead_to_return): New class member function.
19821 (referring_ref_list): Likewise.
19822 (referred_ref_list): Likewise.
19823 Rest of functions moved to symtab_node class.
19824 * ipa-ref.h: New member functions remove_reference,
19825 cannot_lead_to_return, referring_ref_list, referred_ref_list added
19827 ipa_ref_list class has new member functions: first_reference,
19828 first_referring, clear, nreferences.
19829 * ipa-reference.c (analyze_function): New IPA REF function used.
19830 (write_node_summary_p): Likewise.
19831 (ipa_reference_write_optimization_summary): Likewise.
19832 * ipa-split.c (split_function): Likewise.
19833 * ipa-utils.c (ipa_reverse_postorder): Likewise.
19834 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
19835 (function_and_variable_visibility): Likewise.
19836 * ipa.c (has_addr_references_p): Likewise.
19837 (process_references): Argument type changed.
19838 (symtab_remove_unreachable_nodes): New IPA REF function used.
19839 (process_references): Likewise.
19840 (set_writeonly_bit): Likewise.
19841 * lto-cgraph.c: Implementation of new symtab_node member functions
19842 that uses new IPA REF functions.
19843 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
19845 * lto-streamer-out.c (output_symbol_p): Likewise.
19846 * lto-streamer.h (referenced_from_this_partition_p): Argument type
19848 * symtab.c: Implementation of new IPA REF API.
19849 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
19850 (ipa_tm_create_version): Likewise.
19851 (ipa_tm_execute): Likewise.
19852 * tree-emutls.c (gen_emutls_addr): Likewise.
19853 * tree-inline.c (copy_bb): Likewise.
19854 (delete_unreachable_blocks_update_callgraph): Likewise.
19855 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
19856 (varpool_for_node_and_aliases): Likewise.
19858 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
19860 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
19862 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
19865 * fold-const.c (fold_checksum_tree): Use a hash_table of const
19866 tree_node * instead of tree_node *.
19868 (print_fold_checksum): Likewise.
19869 (fold_check_failed): Likewise.
19870 (debug_fold_checksum): Likewise.
19871 (fold_build1_stat_loc): Likewise.
19872 (fold_build2_stat_loc): Likewise.
19873 (fold_build3_stat_loc): Likewise.
19874 (fold_build_call_array_loc): Likewise.
19876 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
19878 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
19879 implementation with call to...
19880 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
19882 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
19885 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
19887 PR tree-optimization/57742
19888 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
19889 after replacing the statement.
19891 2014-06-25 Nick Clifton <nickc@redhat.com>
19893 * config/v850/v850.c (GHS_default_section_names): Change to const
19895 (GHS_current_section_names): Likewise.
19896 (v850_insert_attributes): Do not build strings, just assign the
19897 names directly. Change the type of 'chosen_section' to const
19899 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
19900 directly to the array entry.
19901 * config/v850/v850.h (GHS_default_section_names): Change to const
19903 (GHS_current_section_names): Likewise.
19905 2014-06-25 Jakub Jelinek <jakub@redhat.com>
19907 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
19908 (LANG_HOOKS_DECLS): Add it.
19909 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
19911 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
19912 * langhooks.h (struct lang_hooks_for_decls): Add
19913 omp_clause_linear_ctor hook.
19914 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
19915 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
19916 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
19917 combined simd loop use omp_clause_linear_ctor hook.
19919 2014-06-24 Cong Hou <congh@google.com>
19921 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
19922 pattern recognition.
19923 (type_conversion_p): PROMOTION is true if it's a type promotion
19924 conversion, and false otherwise. Return true if the given expression
19925 is a type conversion one.
19926 * tree-vectorizer.h: Adjust the number of patterns.
19927 * tree.def: Add SAD_EXPR.
19928 * optabs.def: Add sad_optab.
19929 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
19930 * expr.c (expand_expr_real_2): Likewise.
19931 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
19932 * gimple.c (get_gimple_rhs_num_ops): Likewise.
19933 * optabs.c (optab_for_tree_code): Likewise.
19934 * tree-cfg.c (estimate_operator_cost): Likewise.
19935 * tree-ssa-operands.c (get_expr_operands): Likewise.
19936 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
19937 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
19938 * doc/generic.texi: Add document for SAD_EXPR.
19939 * doc/md.texi: Add document for ssad and usad.
19941 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
19943 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
19944 qualification in cast.
19946 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
19948 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
19949 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
19950 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
19951 (tree_function_decl): ... here.
19952 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
19953 streaming of vindex to ...
19954 (write_ts_function_decl_tree_pointers): ... here.
19955 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
19956 Do not stream DECL_VINDEX.
19957 (lto_input_ts_function_decl_tree_pointers): Stream it here.
19959 2014-06-24 Catherine Moore <clm@codesourcery.com>
19960 Sandra Loosemore <sandra@codesourcery.com>
19962 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
19963 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
19964 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
19966 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
19968 * doc/invoke.texi (Warning Options): Remove duplicated
19969 -Wmaybe-uninitialized.
19971 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
19973 PR tree-optimization/57742
19974 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
19975 (handle_builtin_malloc, handle_builtin_memset): New functions.
19976 (strlen_optimize_stmt): Call them.
19977 * passes.def: Move strlen after loop+dom but before vrp.
19979 2014-06-24 Jakub Jelinek <jakub@redhat.com>
19982 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
19983 model family 6 CPU with has_longmode never use a CPU without
19986 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
19989 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
19992 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
19994 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
19995 * dominance.c (iterate_fix_dominators): Use hash_map instead of
19997 * hash-map.h: New file.
19998 * ipa-comdats.c: Use hash_map instead of pointer_map.
20000 * lto-section-out.c: Adjust.
20001 * lto-streamer.h: Replace pointer_map with hash_map.
20002 * symtab.c (verify_symtab): Likewise.
20003 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
20004 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
20005 * tree-streamer.h: Likewise.
20006 * tree-streamer.c: Adjust.
20007 * pointer-set.h: Remove pointer_map.
20009 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
20011 * hash-table.h: Add a template arg to choose between storing values
20012 and storing pointers to values, and then provide partial
20013 specializations for both.
20014 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
20015 should store, not the type values should point to.
20016 * tree-into-ssa.c (var_info_hasher): Likewise.
20017 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
20018 * tree-complex.c: Adjust.
20019 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
20020 table instead of int_tree_map *.
20021 * tree-parloops.c: Adjust.
20022 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
20023 type is being stored.
20024 * tree-vectorizer.c: Adjust.
20026 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
20028 * hash-table.h: Remove a layer of indirection from hash_table so that
20029 it contains the hash table's data instead of a pointer to the data.
20030 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
20031 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
20032 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
20033 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
20034 fold-const.c, gcse.c, ggc-common.c,
20035 gimple-ssa-strength-reduction.c, gimplify.c,
20036 graphite-clast-to-gimple.c, graphite-dependences.c,
20037 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
20038 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
20039 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
20040 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
20041 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
20042 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
20043 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
20044 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
20045 tree-ssa-live.c, tree-ssa-loop-im.c,
20046 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
20047 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
20048 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
20049 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
20050 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
20051 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
20052 vtable-verify.c, vtable-verify.h: Adjust.
20054 2014-06-24 Richard Biener <rguenther@suse.de>
20056 PR tree-optimization/61572
20057 * tree-ssa-sink.c (statement_sink_location): Do not sink
20058 loads from hard registers.
20060 2014-06-24 Jakub Jelinek <jakub@redhat.com>
20062 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
20063 not mentioned in clauses use private clause if the iterator is
20064 declared in #pragma omp for simd, and when adding lastprivate
20065 instead, add it to the outer #pragma omp for too. Diagnose
20066 if the variable is private in outer context. For simd collapse > 1
20067 loops, replace all iterators with temporaries.
20068 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
20069 same even in collapse > 1 loops.
20071 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
20072 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
20074 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
20075 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
20077 (gimplify_adjust_omp_clauses): Likewise.
20078 * omp-low.c (lower_rec_simd_input_clauses,
20079 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
20080 safelen the same as safelen(1).
20081 * tree-nested.c (convert_nonlocal_omp_clauses,
20082 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
20083 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
20084 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
20085 Fixup handling of GIMPLE_OMP_TARGET.
20086 (convert_tramp_reference_stmt, convert_gimple_call): Handle
20089 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
20091 PR tree-optimization/61554
20092 * tree-ssa-propagate.c: Include "bitmap.h".
20093 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
20094 properly update constructor/destructor.
20095 (substitute_and_fold_dom_walker::before_dom_children):
20096 Remove call to gimple_purge_dead_eh_edges, add bb->index to
20097 need_eh_cleaup instead.
20098 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
20101 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
20103 * varpool.c (dump_varpool_node): Dump used_by_single_function.
20104 * tree-pass.h (make_pass_ipa_single_use): New pass.
20105 * cgraph.h (used_by_single_function): New flag.
20106 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
20108 * passes.def (pass_ipa_single_use): Scedule.
20109 * ipa.c (BOTTOM): New macro.
20110 (meet): New function
20111 (propagate_single_user): New function.
20112 (ipa_single_use): New function.
20113 (pass_data_ipa_single_use): New pass.
20114 (pass_ipa_single_use): New pass.
20115 (pass_ipa_single_use::gate): New gate.
20116 (make_pass_ipa_single_use): New function.
20118 2014-06-23 Kai Tietz <ktietz@redhat.com>
20121 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
20122 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
20124 2014-06-23 Richard Biener <rguenther@suse.de>
20126 * tree-ssa-loop.c (gate_loop): New function.
20127 (pass_tree_loop::gate): Call it.
20128 (pass_data_tree_no_loop, pass_tree_no_loop,
20129 make_pass_tree_no_loop): New.
20130 * tree-vectorizer.c: Include tree-scalar-evolution.c
20131 (pass_slp_vectorize::execute): Initialize loops and SCEV if
20133 (pass_slp_vectorize::clone): New method.
20134 * timevar.def (TV_TREE_NOLOOP): New.
20135 * tree-pass.h (make_pass_tree_no_loop): Declare.
20136 * passes.def (pass_tree_no_loop): New pass group with
20139 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
20142 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
20143 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
20145 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
20147 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
20148 "yes" where needed.
20150 2014-06-23 Alan Modra <amodra@gmail.com>
20153 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
20154 to zero on debug statements.
20156 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
20159 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
20160 Ignore third operand if present by marking qualifier_internal.
20162 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
20164 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
20166 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
20167 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
20168 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
20169 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
20170 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
20171 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
20172 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
20173 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
20174 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
20175 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
20176 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
20177 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
20178 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
20179 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
20180 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
20181 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
20182 logic in GCC vector extensions
20184 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
20185 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
20186 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
20187 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
20188 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
20189 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
20190 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
20191 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
20192 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
20193 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
20195 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
20197 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
20200 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
20201 (vget_low_s64): Use __GET_LOW macro.
20202 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
20203 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
20204 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
20205 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
20206 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
20208 (vcombine_s64): Use GCC vector extensions; remove cast.
20209 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
20210 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
20211 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
20212 Fix type signature; remove cast.
20214 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
20217 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
20219 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
20221 (BUILTIN_VD1): New.
20222 (BUILTIN_VD_RE): Remove.
20223 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
20224 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
20225 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
20226 variant but not df.
20227 (vreinterpretv1df*, vreinterpret*v1df): New.
20228 (vreinterpretdf*, vreinterpret*df): Remove.
20229 * config/aarch64/aarch64-simd.md (aarch64_create,
20230 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
20231 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
20233 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
20234 (vcreate_f64): Remove cast, use v1df builtin.
20235 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
20236 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
20237 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
20238 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
20239 vmov_n_f64, vst1_f64): Use gcc vector extensions.
20240 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
20241 add range check using __builtin_aarch64_im_lane_boundsi.
20242 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
20243 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
20244 type signature, use gcc vector extensions.
20245 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
20246 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
20247 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
20248 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
20249 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
20250 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
20251 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
20252 vreinterpret_u64_f64): Use v1df builtin not df.
20254 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
20256 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
20259 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
20261 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
20264 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20266 * loop-invariant.c (pre_check_invariant_p): New function.
20267 (find_invariant_insn): Call pre_check_invariant_p.
20269 2014-06-22 Richard Henderson <rth@redhat.com>
20272 * compare-elim.c (struct comparison): Add eh_note.
20273 (find_comparison_dom_walker::before_dom_children): Don't eliminate
20274 a redundant comparison in a different EH region. Purge EH edges if
20277 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20279 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
20280 (var_shift): Use it.
20281 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
20282 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
20283 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
20284 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
20285 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
20286 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
20287 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
20288 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
20289 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
20290 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
20291 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
20292 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
20293 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
20294 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
20295 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
20296 *rotldi3_internal15be): Use the new attribute. Merge register and
20297 integer alternatives.
20299 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20301 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
20302 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
20303 split, *ashrdi3_internal3 and split): Delete, merge into...
20304 (ashr<mode>3): New expander.
20305 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
20306 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
20308 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20310 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
20311 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
20312 *rotldi3_internal3 and split): Delete, merge into...
20313 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
20314 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
20315 Use "rotlw" extended mnemonic.
20317 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20319 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
20320 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
20321 and split, *ashldi3_internal3 and split): Delete, merge into...
20322 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
20323 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
20325 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20327 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
20328 (lshrsi3, two anonymous define_insns and define_splits,
20329 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
20330 *lshrdi3_internal3 and split): Delete, merge into...
20331 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
20332 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
20334 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20336 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
20337 Remove "O" alternative.
20339 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
20341 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
20342 (mips_move_from_gpr_cost): Likewise.
20343 (mips_register_move_cost): Update accordingly.
20344 (mips_secondary_reload_class): Remove name of in_p.
20346 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
20349 * config/i386/i386.md (x86_64_shrd, x86_shrd,
20350 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
20352 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20354 * config/nios2/nios2.c: Include "builtins.h".
20356 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
20358 * cgraph.h (tls_model_names): New variable.
20359 * print-tree.c (print_node): Simplify.
20360 * varpool.c (tls_model_names): New variable.
20361 (dump_varpool_node): Output tls model.
20363 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
20365 * ipa-visibility.c (function_and_variable_visibility): Disable
20366 temporarily local aliases for some targets.
20368 2014-06-20 Marek Polacek <polacek@redhat.com>
20370 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
20371 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
20372 into SANITIZE_UNDEFINED.
20373 * doc/invoke.texi: Describe -fsanitize=bounds.
20374 * gimplify.c (gimplify_call_expr): Add gimplification of internal
20375 functions created in the FEs.
20376 * internal-fn.c: Move "internal-fn.h" after "tree.h".
20377 (expand_UBSAN_BOUNDS): New function.
20378 * internal-fn.def (UBSAN_BOUNDS): New internal function.
20379 * internal-fn.h: Don't define internal functions here.
20380 * opts.c (common_handle_option): Add -fsanitize=bounds.
20381 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
20382 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
20383 * tree-core.h: Define internal functions here.
20384 (struct tree_base): Add ifn field.
20385 * tree-pretty-print.c: Include "internal-fn.h".
20386 (dump_generic_node): Handle functions without CALL_EXPR_FN.
20387 * tree.c (get_callee_fndecl): Likewise.
20388 (build_call_expr_internal_loc): New function.
20389 * tree.def (CALL_EXPR): Update description.
20390 * tree.h (CALL_EXPR_IFN): Define.
20391 (build_call_expr_internal_loc): Declare.
20392 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
20394 (ubsan_type_descriptor): Change bool parameter to enum
20395 ubsan_print_style. Adjust the code. Add handling of
20397 (ubsan_expand_bounds_ifn): New function.
20398 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
20399 (ubsan_build_overflow_builtin): Likewise.
20400 (instrument_bool_enum_load): Likewise.
20401 (ubsan_instrument_float_cast): Likewise.
20402 * ubsan.h (enum ubsan_print_style): New enum.
20403 (ubsan_expand_bounds_ifn): Declare.
20404 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
20406 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
20408 * config/rs6000/rs6000.md: Append `DONE' to preparation
20409 statements of `bswap' pattern splitters.
20411 2014-06-20 Tom de Vries <tom@codesourcery.com>
20413 * target.def (call_fusage_contains_non_callee_clobbers): Update
20415 * doc/tm.texi: Regenerate.
20417 2014-06-20 Yury Gribov <y.gribov@samsung.com>
20418 Max Ostapenko <m.ostapenko@partner.samsung.com>
20421 * asan.c (instrument_strlen_call): Fixed instrumentation of
20424 2014-06-20 Martin Jambor <mjambor@suse.cz>
20427 * ipa-prop.c (impossible_devirt_target): New function.
20428 (try_make_edge_direct_virtual_call): Use it, also instead of
20431 2014-06-20 Yury Gribov <y.gribov@samsung.com>
20432 Max Ostapenko <m.ostapenko@partner.samsung.com>
20435 * asan.c (build_check_stmt): Add condition.
20437 2014-06-20 Martin Jambor <mjambor@suse.cz>
20440 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
20443 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20445 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
20447 (VCONQ): Make comment more helpful.
20449 * config/aarch64/aarch64-simd.md
20450 (aarch64_sqdmulh_lane<mode>):
20451 Use VCOND for operands 2. Update lane checking and flipping logic.
20452 (aarch64_sqrdmulh_lane<mode>): Likewise.
20453 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
20454 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
20455 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
20456 attribute of operand 3 to VCOND.
20457 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
20458 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
20459 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
20460 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
20461 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
20462 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
20464 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
20465 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
20466 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
20467 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
20468 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
20469 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
20470 operand to VCOND. Update lane flipping and bounds checking logic.
20471 (aarch64_sqdmlal2_lane<mode>): Likewise.
20472 (aarch64_sqdmlsl_lane<mode>): Likewise.
20473 (aarch64_sqdmull_lane<mode>): Likewise.
20474 (aarch64_sqdmull2_lane<mode>): Likewise.
20475 (aarch64_sqdmlal_laneq<mode>):
20476 Replace VCON usage with VCONQ.
20477 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
20478 (aarch64_sqdmlal2_laneq<mode>): Emit
20479 aarch64_sqdmlal2_laneq<mode>_internal insn.
20480 Replace VCON with VCONQ.
20481 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
20482 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
20483 (aarch64_sqdmull_laneq<mode>): Emit
20484 aarch64_sqdmull_laneq<mode>_internal insn.
20485 Replace VCON with VCONQ.
20486 (aarch64_sqdmull2_laneq<mode>): Emit
20487 aarch64_sqdmull2_laneq<mode>_internal insn.
20488 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
20489 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
20490 of 3rd argument to int16x4_t.
20491 (vqdmlalh_lane_s16): Likewise.
20492 (vqdmlslh_lane_s16): Likewise.
20493 (vqdmull_high_lane_s16): Likewise.
20494 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
20495 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
20496 (vqdmlsl_lane_s16): Likewise.
20497 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
20498 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
20499 (vqdmlals_lane_s32): Likewise.
20500 (vqdmlsls_lane_s32): Likewise.
20501 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
20502 (vqdmulls_lane_s32): Likewise.
20503 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
20504 (vqdmlsl_lane_s32): Likewise.
20505 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
20506 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
20507 (vqrdmulhh_lane_s16): Likewise.
20508 (vqdmlsl_high_lane_s16): Likewise.
20509 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
20510 (vqdmlsl_high_lane_s32): Likewise.
20511 (vqrdmulhs_lane_s32): Likewise.
20513 2014-06-20 Tom de Vries <tom@codesourcery.com>
20515 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
20516 get_call_reg_set_usage.
20518 2014-06-20 Tom de Vries <tom@codesourcery.com>
20520 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
20521 it contains all call_used_regs.
20523 2014-06-20 Tom de Vries <tom@codesourcery.com>
20525 * final.c (collect_fn_hard_reg_usage): Add and use variable
20526 function_used_regs.
20528 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
20530 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
20531 (set_init_priority, get_init_priority, set_fini_priority,
20532 get_fini_priority): New methods.
20533 * tree.c (init_priority_for_decl): Remove.
20534 (init_ttree): Do not initialize init priority.
20535 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
20536 (decl_priority_info): Remove.
20537 (decl_init_priority_insert): Rewrite.
20538 (decl_fini_priority_insert): Rewrite.
20539 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
20540 tree_priority_map_marked_p): Remove.
20541 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
20542 * lto-streamer-out.c (hash_tree): Do not hash priorities.
20543 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
20544 not output priorities.
20545 (pack_ts_function_decl_value_fields): Likewise.
20546 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
20547 not input priorities.
20548 (unpack_ts_function_decl_value_fields): Likewise.
20549 * symtab.c (symbol_priority_map): Declare.
20550 (init_priority_hash): Declare.
20551 (symtab_unregister_node): Unregister from priority hash, too.
20552 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
20554 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
20555 (symbol_priority_info): New function.
20556 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
20558 * tree-core.h (tree_priority_map): Remove.
20560 2014-06-20 Jakub Jelinek <jakub@redhat.com>
20562 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
20563 0xff to uint64_t before shifting it up.
20565 2014-06-20 Julian Brown <julian@codesourcery.com>
20566 Chung-Lin Tang <cltang@codesourcery.com>
20568 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
20569 TARGET_THUMB1_ONLY. Add comments.
20571 2014-06-19 Tom de Vries <tom@codesourcery.com>
20573 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
20574 return type to void.
20575 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
20577 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20579 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
20580 as "move", from depends_on.
20582 2014-06-19 Terry Guo <terry.guo@arm.com>
20584 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
20587 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
20589 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
20591 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
20593 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
20596 * config/sh/sh.c (prepare_move_operands): Don't process TLS
20597 addresses here if reload in progress or completed.
20599 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
20601 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
20602 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
20603 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
20604 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
20605 (mips_register_priority): New function that implements the target
20606 hook TARGET_REGISTER_PRIORITY.
20607 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
20608 (mips_lra_p): Likewise for TARGET_LRA_P.
20609 (TARGET_REGISTER_PRIORITY): Define macro.
20610 (TARGET_SPILL_CLASS): Likewise.
20611 (TARGET_LRA_P): Likewise.
20612 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
20614 (REG_CLASS_NAMES): Likewise.
20615 (REG_CLASS_CONTENTS): Likewise.
20616 (BASE_REG_CLASS): Use M16_SP_REGS.
20617 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
20618 New set attribute to enable alternatives depending on the register
20620 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
20621 (*lea64): Disable pattern for MIPS16.
20622 * config/mips/mips.opt (mlra): New option.
20624 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
20626 * lra-constraints.c (base_to_reg): New function.
20627 (process_address): Use new function.
20629 2014-06-18 Tom de Vries <tom@codesourcery.com>
20631 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
20632 * config/aarch64/aarch64.c
20633 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
20634 (aarch64_emit_call_insn): New function.
20635 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
20637 * config/aarch64/aarch64.md (define_expand "call_internal")
20638 (define_expand "call_value_internal", define_expand "sibcall_internal")
20639 (define_expand "sibcall_value_internal"): New.
20640 (define_expand "call", define_expand "call_value")
20641 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
20642 expand variant and aarch64_emit_call_insn.
20644 2014-06-18 Radovan Obradovic <robradovic@mips.com>
20645 Tom de Vries <tom@codesourcery.com>
20647 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
20648 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
20650 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
20651 clobbers to CALL_INSN_FUNCTION_USAGE.
20652 (define_expand "sibcall_internal")
20653 (define_expand "sibcall_value_internal"): New.
20654 (define_expand "call", define_expand "call_value"): Add argument to
20655 arm_emit_call_insn.
20656 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
20657 (define_expand "sibcall_value"): Use sibcall_value_internal and
20658 arm_emit_call_insn.
20660 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20662 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
20664 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20666 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
20669 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20671 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
20672 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
20673 annotations. Fix DWARF information.
20675 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20677 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
20678 __udivmoddi4, and fixups for negative operands.
20680 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20682 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
20684 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20686 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
20689 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20691 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
20694 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20696 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
20697 describing register usage on function entry and exit.
20699 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20701 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
20702 (__aeabi_ldivmod): Fix whitespace.
20704 2014-06-18 Andreas Schwab <schwab@suse.de>
20706 * doc/md.texi (Standard Names): Use @itemx for grouped items.
20707 Remove blank line after @item.
20709 2014-06-18 Richard Henderson <rth@redhat.com>
20712 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
20714 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20716 * config/arm/arm.c (neon_vector_mem_operand): Allow register
20717 POST_MODIFY for neon loads and stores.
20718 (arm_print_operand): Output post-index register for neon loads and
20721 2014-06-18 Richard Biener <rguenther@suse.de>
20723 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
20725 2014-06-18 Richard Biener <rguenther@suse.de>
20727 * tree-pass.h (make_pass_dce_loop): Remove.
20728 * passes.def: Replace pass_dce_loop with pass_dce.
20729 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
20730 changed free niter estimates and reset the scev cache.
20731 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
20732 make_pass_dce_loop): Remove.
20733 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
20734 (fini_copy_prop): Return whether something changed. Always
20735 let substitute_and_fold perform DCE and free niter estimates
20736 and reset the scev cache if so.
20737 (execute_copy_prop): If sth changed schedule cleanup-cfg.
20738 (pass_data_copy_prop): Do not unconditionally schedule
20739 cleanup-cfg or update-ssa.
20741 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
20743 PR tree-optimization/61518
20744 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
20745 reduction var is used in reduction stmt or phi-function only.
20747 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20749 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
20751 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
20753 PR tree-optimization/61517
20754 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
20755 whose rhs's first tree is the source expression instead of the
20757 (find_bswap_or_nop): Likewise.
20758 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
20759 gimple stmt whose rhs's first tree is the source. In the memory source
20760 case, move the stmt to be replaced close to one of the original load to
20761 avoid the problem of a store between the load and the stmt's original
20763 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
20766 2014-06-18 Andreas Schwab <schwab@suse.de>
20768 PR rtl-optimization/54555
20769 * postreload.c (move2add_use_add2_insn): Substitute
20770 STRICT_LOW_PART only if it is cheaper.
20772 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
20774 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
20775 Do not use unspec as call operand. Use memory_operand instead of
20776 memory_nox32_operand and add "m" operand constraint. Disable
20777 pattern for TARGET_X32.
20778 (*sibcall_pop_memory): Ditto.
20779 (*sibcall_value_memory): Ditto.
20780 (*sibcall_value_pop_memory): Ditto.
20781 (sibcall peepholes): Merge SImode and DImode patterns using
20782 W mode iterator. Use memory_operand instead of memory_nox32_operand.
20783 Disable pattern for TARGET_X32. Check if eliminated register is
20784 really dead after call insn. Generate call RTX without unspec operand.
20785 (sibcall_value peepholes): Ditto.
20786 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
20787 instead of memory_nox32_operand. Check if eliminated register is
20788 really dead after call insn. Generate call RTX without unspec operand.
20789 (sibcall_value_pop peepholes): Ditto.
20790 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
20792 2014-06-18 Terry Guo <terry.guo@arm.com>
20795 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
20798 2014-06-18 Olivier Hainque <hainque@adacore.com>
20800 * tree-core.h (tree_block): Add an "end_locus" field, allowing
20801 memorization of the end of block source location.
20802 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
20803 * gimplify.c (gimplify_bind_expr): Propagate the block start and
20804 end source location info we have on the block entry/exit code we
20807 2014-06-18 Richard Biener <rguenther@suse.de>
20809 * common.opt (fssa-phiopt): New option.
20810 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
20812 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
20813 * doc/invoke.texi (-fssa-phiopt): Document.
20815 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20817 * genattrtab.c (n_bypassed): New variable.
20818 (process_bypasses): Initialise n_bypassed.
20819 Count number of bypassed reservations.
20820 (make_automaton_attrs): Allocate space for bypassed reservations
20821 rather than number of bypasses.
20823 2014-06-18 Richard Biener <rguenther@suse.de>
20825 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
20826 we propagated anything.
20827 (substitute_and_fold_dom_walker::before_dom_children): Something
20828 changed if we propagated into PHI arguments.
20829 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
20832 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
20834 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
20836 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
20837 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
20838 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
20839 Introduces alternative way of loads group permutaions.
20840 (vect_transform_grouped_load): Try alternative way of permutations.
20842 2014-06-18 Jakub Jelinek <jakub@redhat.com>
20844 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
20845 changed in ORT_TARGET region, don't jump to do_outer.
20846 (struct gimplify_adjust_omp_clauses_data): New type.
20847 (gimplify_adjust_omp_clauses_1): Adjust for data being
20848 a struct gimplify_adjust_omp_clauses_data pointer instead
20849 of tree *. Pass pre_p as a new argument to
20850 lang_hooks.decls.omp_finish_clause hook.
20851 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
20852 splay_tree_foreach to pass both list_p and pre_p.
20853 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
20854 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
20855 gimplify_adjust_omp_clauses callers.
20856 * langhooks.c (lhd_omp_finish_clause): New function.
20857 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
20858 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
20859 * langhooks.h (struct lang_hooks_for_decls): Add a new
20860 gimple_seq * argument to omp_finish_clause hook.
20861 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
20862 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
20863 (scan_omp_parallel, lower_omp_for): When adding
20864 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
20865 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
20866 * tree-nested.c (convert_nonlocal_omp_clauses,
20867 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
20868 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
20870 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
20872 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
20873 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
20875 2014-06-17 Xinliang David Li <davidxl@google.com>
20877 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
20878 * passes.c (pass_init_dump_file): Do not set initialize
20879 flag to false unconditionally.
20881 2014-06-17 Richard Biener <rguenther@suse.de>
20883 * genopinit.c (main): Use vec<>::qsort method.
20884 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
20886 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
20888 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
20890 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
20891 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
20892 (mips_move_to_gpr_cost): Remove ST_REGS case.
20893 (mips_move_from_gpr_cost): Likewise.
20894 (mips_register_move_cost): Likewise.
20895 (mips_secondary_reload_class): Likewise.
20897 2014-06-17 Richard Biener <rguenther@suse.de>
20899 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
20900 (pass_all_optimizations): Move 3rd copy-prop pass from after
20901 fre to before ifcombine/phiopt.
20903 2014-06-17 Richard Biener <rguenther@suse.de>
20905 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
20906 and allow all blocks to be forwarders.
20908 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
20911 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
20912 variable 'size'; calculate 'size' right in the front; use
20913 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
20914 pcum->aapcs_stack_words.
20916 2014-06-17 Nick Clifton <nickc@redhat.com>
20918 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
20919 (umulhi3, mulsidi3, umulsidi3): Likewise.
20921 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
20923 PR middle-end/61508
20924 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
20925 check for section name.
20927 2014-06-17 Richard Biener <rguenther@suse.de>
20929 * tree-ssa-propagate.c: Include domwalk.h.
20930 (substitute_and_fold): Outline main worker into a domwalker ...
20931 (substitute_and_fold_dom_walker::before_dom_children): ... here.
20932 Schedule stmts we can fully propagate for removal. Remove
20934 (substitute_and_fold): Apply a dominator walk to perform
20935 substitution. Process stmts scheduled for removal here.
20937 2014-06-17 Richard Biener <rguenther@suse.de>
20939 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
20940 of PHI node moving.
20942 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
20944 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
20945 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
20946 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
20947 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
20948 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
20950 (get_fpscr) : Likewise.
20952 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
20954 PR rtl-optimization/61325
20955 * lra-constraints.c (valid_address_p): Add forward declaration.
20956 (simplify_operand_subreg): Check address validity before and after
20957 alter_reg of memory subreg.
20959 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
20961 * config/i386/i386.c (decide_alg): Correctly handle
20962 maximum size of stringop algorithm.
20964 2014-06-16 Yury Gribov <y.gribov@samsung.com>
20966 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
20968 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
20970 PR rtl-optimization/61522
20971 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
20973 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
20976 * symtab.c (symtab_node::reset_section): New method.
20977 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
20979 * cgraph.h (reset_section): Declare.
20980 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
20981 do not consider comdat locals.
20982 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
20984 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
20985 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
20986 reset sections of symbols dragged out of the comdats.
20987 (function_and_variable_visibility): Reset sections of
20990 2014-06-16 Richard Biener <rguenther@suse.de>
20992 PR tree-optimization/61482
20993 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
20994 [-INF(OVF), +INF(OVF)] range.
20996 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
20998 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
20999 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
21000 handling 32-bit multiplication.
21002 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
21004 PR middle-end/61430
21005 * lra-lives.c (process_bb_lives): Skip creating copy during
21006 insn scan when src/dest has constrained to same regno.
21008 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
21010 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
21011 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
21013 2014-06-16 Yury Gribov <y.gribov@samsung.com>
21015 * asan.c (check_func): New function.
21016 (maybe_create_ssa_name): Likewise.
21017 (build_check_stmt_with_calls): Likewise.
21018 (use_calls_p): Likewise.
21019 (report_error_func): Change interface.
21020 (build_check_stmt): Allow non-integer lengths; add support
21022 (asan_instrument): Likewise.
21023 (instrument_mem_region_access): Moved code to build_check_stmt.
21024 (instrument_derefs): Likewise.
21025 (instrument_strlen_call): Likewise.
21026 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
21027 * doc/invoke.texi: Describe new parameter.
21028 * params.def: Define new parameter.
21029 * params.h: Likewise.
21030 * sanitizer.def: Describe new builtins.
21032 2014-06-16 Richard Biener <rguenther@suse.de>
21034 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
21035 Make all defs available at the end.
21036 (eliminate): If we remove a PHI node schedule cfg-cleanup.
21038 2014-06-18 Jakub Jelinek <jakub@redhat.com>
21041 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
21043 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
21046 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
21047 initialization. Replace remaining use of uid.
21049 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
21051 * c-family/c-common.c (handle_tls_model_attribute): Use
21052 set_decl_tls_model.
21053 * c-family/c-common.c (handle_tls_model_attribute): Use
21054 set_decl_tls_model.
21055 * cgraph.h (struct varpool_node): Add tls_model.
21056 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
21057 * tree.h (DECL_TLS_MODEL): Update.
21058 (DECL_THREAD_LOCAL_P): Check that variable is static.
21059 (decl_tls_model): Declare.
21060 (set_decl_tls_model): Declare.
21061 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
21062 set symbol prorperties.
21063 (get_emutls_init_templ_addr): Cleanup.
21064 (new_emutls_decl): Update.
21065 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
21066 (lto_input_varpool_node): Likewise.
21067 * lto-streamer-out.c (hash_tree): Likewise.
21068 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
21069 not stream DECL_TLS_MODEL.
21070 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
21071 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
21073 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
21075 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
21077 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
21079 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
21080 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
21082 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
21083 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
21084 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
21085 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
21086 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
21087 (df_get_artificial_defs, df_get_artificial_uses)
21088 (df_single_def, df_single_use): Update accordingly.
21089 (df_refs_chain_dump): Take the first element in a linked list as
21090 parameter, rather than a pointer to an array of pointers.
21091 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
21092 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
21093 (df_chain_create_bb_process_use): Likewise.
21094 (df_md_bb_local_compute_process_def): Likewise.
21095 * fwprop.c (process_defs, process_uses): Likewise.
21096 (register_active_defs, update_uses): Likewise.
21097 (forward_propagate_asm): Update for new df_ref linking.
21098 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
21099 (df_null_ref_rec, df_null_mw_rec): Likewise.
21100 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
21102 (df_scan_free_bb_info): Remove check for null artificial_defs.
21103 (df_install_ref_incremental): Adjust for new df_ref linking.
21104 Use a single-element insertion rather than a full sort.
21105 (df_ref_chain_delete_du_chain): Take the first element
21106 in a linked list as parameter, rather than a pointer to an array of
21108 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
21109 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
21110 (df_insn_info_delete): Remove check for null defs and call to
21111 df_scan_free_mws_vec.
21112 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
21113 null rather than df_null_*_rec.
21114 (df_insn_rescan_debug_internal): Likewise, and update null
21115 checks in the same way. Remove check for null defs.
21116 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
21117 Move a single element rather doing a full sort.
21118 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
21120 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
21121 Initialize df_ref and df_mw_hardreg lists to null rather than
21123 (df_ref_compare): Take df_refs as parameter, transferring the
21124 old interface to...
21125 (df_ref_ptr_compare): ...this new function.
21126 (df_sort_and_compress_refs): Update accordingly.
21127 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
21128 old interface to...
21129 (df_mw_ptr_compare): ...this new function.
21130 (df_sort_and_compress_mws): Update accordingly.
21131 (df_install_refs, df_install_mws): Return a linked list rather than
21132 an array of pointers.
21133 (df_refs_add_to_chains): Assert that old lists are empty rather
21135 (df_insn_refs_verify): Don't handle null defs speciailly.
21136 * web.c (union_match_dups): Update for new df_ref linking.
21138 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
21140 * df.h (df_ref_create, df_ref_remove): Delete.
21141 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
21142 (df_ref_remove): Likewise.
21144 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
21146 * df.h (df_single_def, df_single_use): New functions.
21147 * ira.c (find_moveable_pseudos): Use them.
21149 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
21151 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
21152 * df-problems.c (df_note_bb_compute): Use it.
21153 * regstat.c (regstat_bb_compute_ri): Likewise.
21155 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
21157 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
21158 * cse.c (cse_extended_basic_block): Use them.
21159 * dce.c (mark_artificial_use): Likewise.
21160 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
21161 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
21162 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
21163 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
21164 (df_simulate_initialize_backwards): Likewise.
21165 (df_simulate_finalize_backwards): Likewise.
21166 (df_simulate_initialize_forwards): Likewise.
21167 (df_md_simulate_artificial_defs_at_top): Likewise.
21168 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
21169 * regrename.c (init_rename_info): Likewise.
21170 * regstat.c (regstat_bb_compute_ri): Likewise.
21171 (regstat_bb_compute_calls_crossed): Likewise.
21173 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
21175 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
21176 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
21177 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
21178 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
21179 * combine.c (create_log_links): Likewise.
21180 * compare-elim.c (find_flags_uses_in_insn): Likewise.
21181 (try_eliminate_compare): Likewise.
21182 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
21183 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
21184 (remove_reg_equal_equiv_notes_for_defs): Likewise.
21185 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
21186 (word_dce_process_block, dce_process_block): Likewise.
21187 * ddg.c (def_has_ccmode_p): Likewise.
21188 * df-core.c (df_bb_regno_first_def_find): Likewise.
21189 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
21190 * df-problems.c (df_rd_simulate_one_insn): Likewise.
21191 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
21192 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
21193 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
21194 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
21195 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
21196 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
21197 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
21198 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
21199 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
21200 * fwprop.c (local_ref_killed_between_p): Likewise.
21201 (all_uses_available_at, free_load_extend): Likewise.
21202 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
21203 * hw-doloop.c (scan_loop): Likewise.
21204 * ifcvt.c (dead_or_predicable): Likewise.
21205 * init-regs.c (initialize_uninitialized_regs): Likewise.
21206 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
21207 (process_bb_node_lives): Likewise.
21208 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
21209 (find_moveable_pseudos): Likewise.
21210 * loop-invariant.c (check_dependencies, record_uses): Likewise.
21211 * recog.c (peep2_find_free_register): Likewise.
21212 * ree.c (get_defs): Likewise.
21213 * regstat.c (regstat_bb_compute_ri): Likewise.
21214 (regstat_bb_compute_calls_crossed): Likewise.
21215 * sched-deps.c (find_inc, find_mem): Likewise.
21216 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
21217 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
21218 * shrink-wrap.c (requires_stack_frame_p): Likewise.
21219 (prepare_shrink_wrap): Likewise.
21220 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
21221 * web.c (union_defs, pass_web::execute): Likewise.
21222 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
21223 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
21225 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
21227 * lra-assign.c (assign_by_spills): Add code to assign vector regs
21228 to inheritance pseudos.
21229 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
21231 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
21234 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
21235 (BU_MISC_2): Rename to ...
21236 (BU_LDBL128_2): ... this.
21237 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
21238 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
21239 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
21240 RS6000_BTM_LDBL128.
21241 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
21242 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
21243 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
21244 (unpacktf_1): Likewise.
21245 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
21246 (__builtin_longdouble_dw1): Likewise.
21247 * doc/sourcebuild.texi (longdouble128): Document.
21249 2014-06-13 Jeff Law <law@redhat.com>
21251 PR rtl-optimization/61094
21252 PR rtl-optimization/61446
21253 * ree.c (combine_reaching_defs): Get the mode for the copy from
21254 the extension insn rather than the defining insn.
21256 2014-06-13 Dehao Chen <dehao@google.com>
21258 * dwarf2out.c (add_linkage_name): Emit more linkage name.
21260 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
21262 * doc/install.texi (--enable-linker-plugin-configure-flags)
21263 (--enable-linker-plugin-flags): Document new flags.
21265 2014-06-13 Martin Jambor <mjambor@suse.cz>
21268 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
21269 cache_token if returning early.
21271 2014-06-13 Nick Clifton <nickc@redhat.com>
21273 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
21274 requested alignment is active.
21275 (LABEL_ALIGN): Likewise.
21276 (LOOP_ALIGN): Likewise.
21278 2014-06-13 Richard Biener <rguenther@suse.de>
21280 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
21281 Rewrite to propagate the VN result into all uses where
21282 possible and to remove stmts becoming dead because of that.
21283 (eliminate): Generalize stmt removal handling, remove in
21284 reverse dominator order to support proper debug stmt
21285 generation. Update stmts before removing stmts.
21286 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
21288 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
21290 PR tree-optimization/61375
21291 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
21292 symbolic number cannot be represented in an uint64_t.
21293 (find_bswap_or_nop_1): Likewise.
21295 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
21297 * symtab.c (symtab_node::reset_section): New method.
21298 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
21300 * cgraph.h (reset_section): Declare.
21301 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
21302 do not consider comdat locals.
21303 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
21305 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
21306 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
21307 reset sections of symbols dragged out of the comdats.
21308 (function_and_variable_visibility): Reset sections of
21311 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
21313 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
21314 to use symtab and decl_binds_to_current_def_p
21315 * tree-vectorizer.c (increase_alignment): Increase alignment
21316 of alias target, too.
21318 2014-06-12 Jakub Jelinek <jakub@redhat.com>
21320 PR middle-end/61486
21321 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
21322 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
21323 if outer combined construct is distribute.
21324 (gimplify_omp_for): For OMP_DISTRIBUTE set
21325 gimplify_omp_ctxp->distribute.
21326 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
21327 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
21328 mapping into decl map.
21330 2014-06-12 Jason Merrill <jason@redhat.com>
21332 * common.opt (fabi-version): Change default to 0.
21334 2014-06-12 Jason Merrill <jason@redhat.com>
21336 * toplev.c (process_options): Reject -fabi-version=1.
21338 2014-06-12 Jeff Law <law@redhat.com>
21340 PR tree-optimization/61009
21341 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
21342 value when we stop processing a block due to problematic PHIs.
21344 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
21346 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
21347 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
21348 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
21349 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
21350 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
21351 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
21352 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
21353 are not in the spec.
21355 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
21358 * config/aarch64/aarch64-modes.def: Add V1DFmode.
21359 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
21362 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
21364 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
21366 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
21369 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
21370 loading from address spaces.
21372 2014-06-12 Martin Liska <mliska@suse.cz>
21375 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
21376 statement is reachable.
21378 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
21380 * symtab.c (section_hash): New hash.
21381 (symtab_unregister_node): Clear section before freeing.
21382 (hash_section_hash_entry): New haser.
21383 (eq_sections): New function.
21384 (symtab_node::set_section_for_node): New method.
21385 (set_section_1): Update.
21386 (symtab_node::set_section): Take string instead of tree as parameter.
21387 (symtab_resolve_alias): Update.
21388 * cgraph.h (section_hash_entry_d): New structure.
21389 (section_hash_entry): New typedef.
21390 (cgraph_node): Change comdat_group_ to x_comdat_group,
21391 change section_ to x_section and turn into section_hash_entry;
21392 update accestors; put set_section_for_node offline.
21393 * tree.c (decl_section_name): Turn into string.
21394 (set_decl_section_name): Change parameter to be string.
21395 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
21396 * sdbout.c (sdbout_one_type): Update.
21397 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
21398 * varasm.c (IN_NAMED_SECTION, get_named_section,
21399 resolve_unique_section, hot_function_section, get_named_text_section,
21400 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
21401 make_decl_rtl, default_unique_section): Update.
21402 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
21403 (c6x_elf_unique_section): Update.
21404 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
21405 * config/pa/pa.c (pa_function_section): Update.
21406 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
21407 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
21408 * config/arc/arc.c (arc_in_small_data_p): Update.
21409 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
21410 * config/mcore/mcore.c (mcore_unique_section): Update.
21411 * config/mips/mips.c (mips16_build_function_stub): Update.
21412 (mips16_build_call_stub): Update.
21413 (mips_function_rodata_section): Update.
21414 (mips_in_small_data_p): Update.
21415 * config/score/score.c (score_in_small_data_p): Update.
21416 * config/rx/rx.c (rx_in_small_data): Update.
21417 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
21418 (rs6000_xcoff_asm_named_section): Update.
21419 (rs6000_xcoff_unique_section): Update.
21420 * config/frv/frv.c (frv_string_begins_with): Update.
21421 (frv_in_small_data_p): Update.
21422 * config/v850/v850.c (v850_encode_data_area): Update.
21423 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
21424 (bfin_handle_l1_data_attribute): Update.
21425 (bfin_handle_l2_attribute): Update.
21426 * config/mep/mep.c (mep_unique_section): Update.
21427 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
21429 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
21430 (h8300_handle_tiny_data_attribute): Update.
21431 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
21432 (m32r_in_small_data_p): Update.
21433 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
21434 * config/i386/i386.c (ix86_in_large_data_p): Update.
21435 * config/i386/winnt.c (i386_pe_unique_section): Update.
21436 * config/darwin.c (darwin_function_section): Update.
21437 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
21438 * tree-emutls.c (get_emutls_init_templ_addr): Update.
21439 (new_emutls_decl): Update.
21440 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
21441 input_varpool_node): Update.
21442 (ead_string_cst): Turn to ...
21443 (read_string): ... this one.
21444 * dwarf2out.c (secname_for_decl): Update.
21445 * asan.c (asan_protect_global): Update.
21447 2014-06-11 DJ Delorie <dj@redhat.com>
21449 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
21451 * config/rx/rx.c (rx_option_override): Likewise.
21452 (rx_align_for_label): Likewise.
21454 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
21456 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
21458 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
21461 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21463 * common.md: New file.
21464 * doc/md.texi: Update description of generic, machine-independent
21466 * config/s390/constraints.md (e): Delete.
21467 * Makefile.in (md_file): Include common.md.
21468 * config/m32c/t-m32c (md_file): Likewise.
21469 * genpreds.c (general_mem): New array.
21470 (generic_constraint_letters): Remove constraints now defined by
21472 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
21473 Allow the first character to be '<' or '>' as well.
21474 * genoutput.c (general_mem): New array.
21475 (indep_constraints): Remove constraints now defined by common.md.
21476 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
21477 Remove special handling of 'm'.
21478 * ira-costs.c (record_reg_classes): Remove special handling of
21479 constraints now defined by common.md.
21480 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
21481 * ira-lives.c (single_reg_class): Likewise.
21482 (ira_implicitly_set_insn_hard_regs): Likewise.
21483 * lra-constraints.c (reg_class_from_constraints): Likewise.
21484 (process_alt_operands, process_address, curr_insn_transform): Likewise.
21485 * postreload.c (reload_cse_simplify_operands): Likewise.
21486 * reload.c (push_secondary_reload, scratch_reload_class)
21487 (find_reloads, alternative_allows_const_pool_ref): Likewise.
21488 * reload1.c (maybe_fix_stack_asms): Likewise.
21489 * targhooks.c (default_secondary_reload): Likewise.
21490 * stmt.c (parse_output_constraint): Likewise.
21491 * recog.c (preprocess_constraints): Likewise.
21492 (constrain_operands, peep2_find_free_register): Likewise.
21493 (asm_operand_ok): Likewise, but add a comment saying why 'o'
21494 must be handled specially.
21496 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21498 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
21499 * genpreds.c (have_const_dbl_constraints): Delete.
21500 (add_constraint): Don't set it.
21501 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
21502 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
21503 constraints using the lookup_constraint logic.
21504 * ira-lives.c (single_reg_class): Likewise.
21505 * ira.c (ira_setup_alts): Likewise.
21506 * lra-constraints.c (process_alt_operands): Likewise.
21507 * recog.c (asm_operand_ok, constrain_operands): Likewise.
21508 * reload.c (find_reloads): Likewise.
21510 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21512 * genpreds.c (const_int_start, const_int_end): New variables.
21513 (choose_enum_order): Output CONST_INT constraints before memory
21515 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
21517 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
21518 * ira.c (ira_setup_alts): Likewise.
21519 * lra-constraints.c (process_alt_operands): Likewise.
21520 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
21521 * reload.c (find_reloads): Likewise.
21523 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21525 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
21526 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
21527 * recog.c (preprocess_constraints): Update accordingly.
21529 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21531 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
21532 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
21533 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
21534 * genpreds.c (print_type_tree): New function.
21535 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
21536 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
21537 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
21538 Write out enum constraint_type and get_constraint_type.
21539 * lra-constraints.c (satisfies_memory_constraint_p): Take a
21540 constraint_num rather than a constraint string.
21541 (satisfies_address_constraint_p): Likewise.
21542 (reg_class_from_constraints): Avoid old constraint macros.
21543 (process_alt_operands, process_address_1): Likewise.
21544 (curr_insn_transform): Likewise.
21545 * ira-costs.c (record_reg_classes): Likewise.
21546 (record_operand_costs): Likewise.
21547 * ira-lives.c (single_reg_class): Likewise.
21548 (ira_implicitly_set_insn_hard_regs): Likewise.
21549 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
21550 * postreload.c (reload_cse_simplify_operands): Likewise.
21551 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
21552 (constrain_operands, peep2_find_free_register): Likewise.
21553 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
21554 (find_reloads, alternative_allows_const_pool_ref): Likewise.
21555 * reload1.c (maybe_fix_stack_asms): Likewise.
21556 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
21557 * targhooks.c (default_secondary_reload): Likewise.
21558 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
21559 to EXTRA_CONSTRAINT_STR.
21560 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
21562 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21564 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
21565 (write_constraint_satisfied_p_array): ...this new function.
21566 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
21568 (write_insn_preds_c): Update accordingly.
21570 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21572 * genpreds.c (write_lookup_constraint): Rename to...
21573 (write_lookup_constraint_1): ...this.
21574 (write_lookup_constraint_array): New function.
21575 (write_tm_preds_h): Define lookup_constraint as an inline function
21576 that uses write_lookup_constraint_array where possible.
21577 (write_insn_preds_c): Update for the changes above.
21579 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21581 * doc/md.texi (regclass_for_constraint): Rename to...
21582 (reg_class_for_constraint): ...this.
21583 * genpreds.c (num_constraints, enum_order, register_start)
21584 (register_end, satisfied_start, memory_start, memory_end)
21585 (address_start, address_end): New variables.
21586 (add_constraint): Count the number of constraints.
21587 (choose_enum_order): New function.
21588 (write_enum_constraint_num): Iterate over enum_order.
21589 (write_regclass_for_constraint): Rename to...
21590 (write_reg_class_for_constraint_1): ...this and update output
21592 (write_constraint_satisfied_p): Rename to...
21593 (write_constraint_satisfied_p_1): ...this and update output
21594 accordingly. Do nothing if all extra constraints are register
21596 (write_insn_extra_memory_constraint): Delete.
21597 (write_insn_extra_address_constraint): Delete.
21598 (write_range_function): New function.
21599 (write_tm_preds_h): Define constraint_satisfied_p and
21600 reg_class_for_constraint as inline functions that do a range check
21601 before calling the out-of-line function. Use write_range_function
21602 to implement insn_extra_{register,memory,address}_constraint,
21603 the first of which is new.
21604 (write_insn_preds_c): Update after above changes to write_* functions.
21605 (main): Call choose_enum_order.
21607 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
21609 PR tree-optimization/61306
21610 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
21611 expression instead of its size.
21612 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
21613 false to prevent optimization when the result is unpredictable due to
21614 arithmetic right shift of signed type with highest byte is set.
21615 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
21616 (init_symbolic_number): Likewise.
21617 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
21618 when the result is unpredictable due to sign extension.
21620 2014-06-11 Terry Guo <terry.guo@arm.com>
21622 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
21623 (*thumb1_addsi3): Ditto.
21624 (*thumb_subdi3): Ditto.
21625 (thumb1_subsi3_insn): Ditto.
21626 (*thumb_mulsi3): Ditto.
21627 (*thumb_mulsi3_v6): Ditto.
21628 (*thumb1_andsi3_insn): Ditto.
21629 (thumb1_bicsi3): Ditto.
21630 (*thumb1_iorsi3_insn): Ditto.
21631 (*thumb1_xorsi3_insn): Ditto.
21632 (*thumb1_ashlsi3): Ditto.
21633 (*thumb1_ashrsi3): Ditto.
21634 (*thumb1_lshrsi3): Ditto.
21635 (*thumb1_rotrsi3): Ditto.
21636 (*thumb1_negdi2): Ditto.
21637 (*thumb1_negsi2): Ditto.
21638 (*thumb1_abssi2): Ditto.
21639 (*thumb1_neg_abssi2): Ditto.
21640 (*thumb1_one_cmplsi2): Ditto.
21641 (*thumb1_zero_extendhisi2): Ditto.
21642 (*thumb1_zero_extendqisi2): Ditto.
21643 (*thumb1_zero_extendqisi2_v6): Ditto.
21644 (thumb1_extendhisi2): Ditto.
21645 (thumb1_extendqisi2): Ditto.
21646 (*thumb1_movdi_insn): Ditto.
21647 (*thumb1_movsi_insn): Ditto.
21648 (*thumb1_movhi_insn): Ditto.
21649 (thumb_movhi_clobber): Ditto.
21650 (*thumb1_movqi_insn): Ditto.
21651 (*thumb1_movhf): Ditto.
21652 (*thumb1_movsf_insn): Ditto.
21653 (*thumb_movdf_insn): Ditto.
21654 (movmem12b): Ditto.
21656 (cbranchqi4): Ditto.
21657 (cbranchsi4_insn): Ditto.
21658 (cbranchsi4_scratch): Ditto.
21659 (*negated_cbranchsi4): Ditto.
21660 (*tbit_cbranch): Ditto.
21661 (*tlobits_cbranch): Ditto.
21662 (*tstsi3_cbranch): Ditto.
21663 (*cbranchne_decr1): Ditto.
21664 (*addsi3_cbranch): Ditto.
21665 (*addsi3_cbranch_scratch): Ditto.
21666 (*thumb_cmpdi_zero): Ditto.
21667 (cstoresi_eq0_thumb1): Ditto.
21668 (cstoresi_ne0_thumb1): Ditto.
21669 (*cstoresi_eq0_thumb1_insn): Ditto.
21670 (*cstoresi_ne0_thumb1_insn): Ditto.
21671 (cstoresi_nltu_thumb1): Ditto.
21672 (cstoresi_ltu_thumb1): Ditto.
21673 (thumb1_addsi3_addgeu): Ditto.
21674 (*thumb_jump): Ditto.
21675 (*call_reg_thumb1_v5): Ditto.
21676 (*call_reg_thumb1): Ditto.
21677 (*call_value_reg_thumb1_v5): Ditto.
21678 (*call_value_reg_thumb1): Ditto.
21679 (*call_insn): Ditto.
21680 (*call_value_insn): Ditto.
21681 (thumb1_casesi_internal_pic): Ditto.
21682 (thumb1_casesi_dispatch): Ditto.
21683 (*thumb1_indirect_jump): Ditto.
21684 (prologue_thumb1_interwork): Ditto.
21685 (*epilogue_insns): Ditto.
21686 (consttable_1): Ditto.
21687 (consttable_2): Ditto.
21688 (tablejump): Ditto.
21689 (*thumb1_tablejump): Ditto.
21690 (thumb_eh_return): Ditto.
21691 (define_peephole2): Two of them are thumb1 only and got moved into
21692 new file thumb1.md.
21693 (define_split): Six of them are thumb1 only and got moved into new
21695 * config/arm/thumb1.md: New file comprised of above thumb1 only
21698 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21700 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
21701 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
21703 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
21704 (aarch64_crc_builtin_datum): New struct.
21705 (aarch64_crc_builtin_data): New.
21706 (aarch64_init_crc32_builtins): New function.
21707 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
21708 (aarch64_crc32_expand_builtin): New.
21709 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
21710 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
21711 __ARM_FEATURE_CRC32 when appropriate.
21712 (TARGET_CRC32): Define.
21713 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
21714 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
21715 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
21716 (aarch64_<crc_variant>): New pattern.
21717 * config/aarch64/arm_acle.h: New file.
21718 * config/aarch64/iterators.md (CRC): New int iterator.
21719 (crc_variant, crc_mode): New int attributes.
21720 * doc/aarch64-acle-intrinsics.texi: New file.
21721 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
21722 Include aarch64-acle-intrinsics.texi.
21724 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
21726 * tree-vect-data-refs.c (vect_grouped_store_supported): New
21727 check for stores group of length 3.
21728 (vect_permute_store_chain): New permutations for stores group of
21730 * tree-vect-stmts.c (vect_model_store_cost): Change cost
21731 of vec_perm_shuffle for the new permutations.
21733 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
21735 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
21736 table rewriting temporarily on targets not supporting ONE_ONLY.
21738 2014-06-11 Richard Biener <rguenther@suse.de>
21740 PR middle-end/61437
21742 2014-06-04 Richard Biener <rguenther@suse.de>
21744 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
21745 TREE_PUBLIC and DECL_EXTERNAL decls.
21747 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
21749 * varasm.c (set_implicit_section): New function.
21750 (resolve_unique_section): Use it to set implicit section
21752 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
21753 (default_function_section): Likewise.
21754 (decl_binds_to_current_def_p): Constify argument.
21755 * varasm.h (decl_binds_to_current_def_p): Update prototype.
21756 * asan.c (asan_protect_global): Use
21757 symtab_get_node (decl)->implicit_section.
21758 * symtab.c (dump_symtab_base): Dump implicit sections.
21759 (verify_symtab_base): Verify sanity of sectoins and comdats.
21760 (symtab_resolve_alias): Alias share the section of its target.
21761 (set_section_1): New function.
21762 (symtab_node::set_section): Move here, recurse to aliases.
21763 (verify_symtab): Check for duplicated symtab lists.
21764 * tree-core.h (implicit_section_name_p): Remove.
21765 * tree-vect-data-refs.c: Include varasm.h.
21766 (vect_can_force_dr_alignment_p): Fix conditional on when
21767 decl bints to current definition; use
21768 symtab_get_node (decl)->implicit_section.
21769 * cgraph.c (cgraph_make_node_local_1): Fix section set.
21770 * cgraph.h (struct symtab_node): Add implicit_section.
21771 (set_section): Rename to ...
21772 (set_section_for_node): ... this one.
21773 (set_section): Declare.
21774 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
21775 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
21776 input_overwrite_node, input_varpool_node): Stream implicit_section.
21777 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
21778 removal; it will fail in LTO.
21780 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21782 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
21783 Change second alternative type to f_mcr.
21784 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
21785 and 12th alternatives' types to f_mcr and f_mrc.
21786 (*movdi_aarch64): Same for 12th and 13th alternatives.
21787 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
21788 (aarch64_movtilow_tilow): Change type to fmov.
21790 2014-06-10 Jiong Wang <jiong.wang@arm.com>
21792 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
21793 (aarch64_save_or_restore_callee_save_registers): Fix layout.
21795 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21797 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
21799 (aarch64_sqrdmulh_lane<mode>): Likewise.
21800 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
21801 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
21802 (aarch64_sqdmulh_laneq<mode>): New expander.
21803 (aarch64_sqrdmulh_laneq<mode>): Likewise.
21804 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
21805 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
21806 (aarch64_sqdmulh_lane<mode>): New expander.
21807 (aarch64_sqrdmulh_lane<mode>): Likewise.
21808 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
21809 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
21810 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
21811 (aarch64_sqdmlal_laneq<mode>): Likewise.
21812 (aarch64_sqdmlsl_lane<mode>): Likewise.
21813 (aarch64_sqdmlsl_laneq<mode>): Likewise.
21814 (aarch64_sqdmlal2_lane<mode>): Likewise.
21815 (aarch64_sqdmlal2_laneq<mode>): Likewise.
21816 (aarch64_sqdmlsl2_lane<mode>): Likewise.
21817 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
21818 (aarch64_sqdmull_lane<mode>): Likewise.
21819 (aarch64_sqdmull_laneq<mode>): Likewise.
21820 (aarch64_sqdmull2_lane<mode>): Likewise.
21821 (aarch64_sqdmull2_laneq<mode>): Likewise.
21823 2014-06-10 Richard Biener <rguenther@suse.de>
21825 PR tree-optimization/61438
21826 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
21827 (eliminate_dom_walker::before_dom_children): Only try to inhibit
21828 insertion of IVs if running PRE.
21829 (eliminate): Adjust.
21830 (pass_pre::execute): Likewise.
21831 (pass_fre::execute): Likewise.
21833 2014-06-10 Richard Biener <rguenther@suse.de>
21835 PR middle-end/61456
21836 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
21837 Do not use the main variant for the type comparison.
21838 (ncr_compar): Likewise.
21839 (nonoverlapping_component_refs_p): Likewise.
21841 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
21843 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
21844 REG_CFA_RESTORE mode.
21846 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
21848 * config/i386/i386.c (expand_vec_perm_pblendv): New.
21849 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
21850 expand_vec_perm_pblendv.
21852 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21854 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
21856 Simplify description of __crc32d and __crc32cd intrinsics.
21857 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
21860 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
21863 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
21864 * config.in: Regenerate.
21865 * configure: Likewise.
21867 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
21869 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
21871 (intersect_static_var_sets): Remove.
21872 (propagate): Do not prune local statics.
21874 2014-06-10 Jakub Jelinek <jakub@redhat.com>
21877 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
21878 Set lastprivate_firstprivate even if omp_private_outer_ref
21879 langhook returns true.
21880 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
21881 langhook, call unshare_expr on new_var and call
21882 build_outer_var_ref to get the last argument.
21884 2014-06-10 Marek Polacek <polacek@redhat.com>
21887 * doc/extend.texi: Add cindex for transparent_union.
21889 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
21891 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
21892 init_symbolic_number ().
21894 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
21896 PR middle-end/61141
21897 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
21898 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
21899 (verify_rtl_sharing): Likewise.
21901 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
21904 * tree.c (build_qualified_type): Use a canonical type for
21907 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21909 * config/arm/arm-modes.def: Remove XFmode.
21911 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
21914 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
21915 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
21916 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
21917 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
21918 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
21919 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
21920 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
21921 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
21922 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
21924 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
21926 * tree-core.h (tree_decl_with_vis): Remove section_name.
21928 2014-06-09 Kito Cheng <kito@0xlab.org>
21930 * ira.c (ira): Don't call init_caller_save if LRA enabled
21931 since LRA use its own infrastructure to handle that.
21933 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21935 * symtab.c (dump_symtab_base): Update dumping.
21936 (symtab_make_decl_local): Clear only DECL_COMDAT.
21937 * tree-vect-data-refs.c (Check that variable is static before
21938 tampering with sections.
21939 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
21940 (cgraph_create_virtual_clone): Likewise.
21941 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
21942 (decl_section_name, set_decl_section_name): New accessors.
21943 (find_decls_types_r): Do not walk section name
21944 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
21945 (decl_comdat_group, decl_comdat_group_id): Constify.
21946 (decl_section_name, set_decl_section_name): Update.
21947 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
21948 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
21949 (cgraph_make_node_local_1): Clear section and comdat group.
21950 * cgraph.h (set_comdat_group): Sanity check.
21951 (get_section, set_section): New.
21952 * ipa-comdats.c (ipa_comdats): Use get_section.
21953 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
21954 * lto-streamer-out.c: Do not follow section names.
21955 * c-family/c-common.c (handle_section_attribute): Update.
21956 * lto-cgraph.c (lto_output_node): Output section.
21957 (lto_output_varpool_node): Likewise.
21958 (read_comdat_group): Rename to ...
21959 (read_identifier): ... this one.
21960 (read_string_cst): New function.
21961 (input_node, input_varpool_node): Input section names.
21962 * tree-emutls.c (get_emutls_init_templ_addr): Update.
21963 (new_emutls_decl): Update.
21964 (secname_for_decl): Check section names only of static vars.
21965 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
21966 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
21967 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
21968 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
21969 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
21970 * config/mcore/mcore.c (mcore_unique_section): Likewise.
21971 * config/mips/mips.c (mips16_build_function_stub): Likewise.
21972 * config/v850/v850.c (v850_insert_attributes): Likewise.
21973 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
21975 (h8300_handle_tiny_data_attribute): Likewise.
21976 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
21977 (bfin_handle_l2_attribute): Likewise.
21979 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21981 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
21982 remove static initializer.
21984 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21986 * varasm.c (use_blocks_for_decl_p): Check symbol table
21987 instead of alias attribute.
21988 (place_block_symbol): Recurse on aliases.
21990 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21992 * ipa-visibility.c: Include varasm.h
21993 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
21995 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21997 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
21998 outputting aliases.
22000 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
22002 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
22003 from test_insn into GGC space escape via SET_SRC.
22005 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
22007 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
22008 call statement, if any.
22009 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
22010 statements, if any. Tidy up.
22012 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
22015 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
22016 iterators, VSX_D that handles 64-bit types, and VSX_LE that
22017 handles swapping the two 64-bit double words on little endian
22018 systems. Include V1TImode and optionally TImode in VSX_LE so that
22019 these types are properly swapped. Change all of the insns and
22020 splits that do the 64-bit swaps to use VSX_LE.
22021 (vsx_le_perm_load_<mode>): Likewise.
22022 (vsx_le_perm_store_<mode>): Likewise.
22023 (splitters for little endian memory operations): Likewise.
22024 (vsx_xxpermdi2_le_<mode>): Likewise.
22025 (vsx_lxvd2x2_le_<mode>): Likewise.
22026 (vsx_stxvd2x2_le_<mode>): Likewise.
22028 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
22031 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
22032 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
22033 and corresponding splitters. Zero extend general register
22034 or memory input operand to XMM temporary. Enable for
22035 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
22036 (floatunssi<mode>2): Update expander predicate.
22038 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
22040 PR rtl-optimization/61325
22041 * lra-constraints.c (process_address_1): Check scale equal to one
22042 to prevent transformation: base + scale * index => base + new_reg.
22044 2014-06-06 Richard Biener <rguenther@suse.de>
22046 PR tree-optimization/59299
22047 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
22049 (nearest_common_dominator_of_uses): Likewise.
22050 (statement_sink_location): Adjust. Support sinking loads.
22052 2014-06-06 Martin Jambor <mjambor@suse.cz>
22054 * ipa-prop.c (get_place_in_agg_contents_list): New function.
22055 (build_agg_jump_func_from_list): Likewise.
22056 (determine_known_aggregate_parts): Renamed to
22057 determine_locally_known_aggregate_parts. Moved some functionality
22058 to the two functions above, removed bound checks.
22060 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
22062 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
22063 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
22064 (aarch64_progress_pointer): Likewise.
22065 (aarch64_copy_one_part_and_move_pointers): Likewise.
22066 (aarch64_expand_movmen): Likewise.
22067 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
22068 * config/aarch64/aarch64.md (movmem<mode>): New.
22070 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
22072 * targhooks.c (default_add_stmt_cost): Call target specific
22073 hook instead of default one.
22075 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
22077 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
22078 endianness instead of host endianness.
22079 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
22082 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
22085 * function.c (instantiate_decls): Process the saved static chain.
22086 (expand_function_start): If not optimizing, save the static chain
22088 * tree-nested.c (convert_all_function_calls): Always create the static
22089 chain for nested functions if not optimizing.
22091 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
22093 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
22095 2014-06-06 Richard Biener <rguenther@suse.de>
22097 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
22098 (construct_init_block): Likewise.
22099 (construct_exit_block): Likewise.
22100 (pass_expand::execute): Likewise.
22101 * graphite.c (graphite_transforms): Replace check for current_loops
22102 with a check for > 1 loops.
22103 (pass_graphite_transforms::execute): Adjust.
22104 * ipa-split.c (split_function): Remove check for current_loops.
22105 * omp-low.c (expand_parallel_call): Likewise.
22106 (expand_omp_for_init_counts): Likewise.
22107 (extract_omp_for_update_vars): Likewise.
22108 (expand_omp_for_generic): Likewise.
22109 (expand_omp_sections): Likewise.
22110 (expand_omp_target): Likewise.
22111 * tracer.c (tail_duplicate): Likewise.
22112 (pass_tracer::execute): Likewise.
22113 * trans-mem.c (expand_transaction): Likewise.
22114 * tree-complex.c (expand_complex_div_wide): Likewise.
22115 * tree-eh.c (lower_resx): Likewise.
22116 (cleanup_empty_eh_merge_phis): Likewise.
22117 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
22118 current_loops with a check for > 1 loops.
22119 (pass_predcom::execute): Adjust.
22120 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
22121 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
22122 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
22123 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
22124 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
22125 * tree-switch-conversion.c (process_switch): Likewise.
22126 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
22127 * tree-vrp.c (vrp_visit_phi_node): Likewise.
22128 (execute_vrp): Likewise.
22129 * ubsan.c (ubsan_expand_null_ifn): Likewise.
22131 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
22133 * rtl.h (insn_location): Declare.
22134 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
22135 with UNKNOWN_LOCATION.
22136 * emit-rtl.c (insn_location): New function.
22137 * final.c (notice_source_line): Check that the instruction has a
22138 location before retrieving it and use insn_location.
22139 * modulo-sched.c (loop_single_full_bb_p): Likewise.
22140 * print-rtl.c (print_rtx): Likewise.
22142 2014-06-06 Richard Biener <rguenther@suse.de>
22144 * passes.def: Move 2nd VRP pass before phi-only-cprop.
22146 2014-06-06 Christian Bruel <christian.bruel@st.com>
22148 PR tree-optimization/43934
22149 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
22152 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
22154 * ira-lives.c (single_reg_class): Add missing break. Explicitly
22155 return NO_REGS for extra address and memory constraints. Handle
22156 operands that match (or are equivalent to something that matches)
22157 extra constant constraints. Ignore other non-register operands.
22159 2014-06-06 Alan Modra <amodra@gmail.com>
22162 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
22163 * doc/tm.texi: Regenerate.
22164 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
22165 Use throughout in place of REG_PARM_STACK_SPACE.
22166 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
22167 "incoming" param. Pass to rs6000_function_parms_need_stack.
22168 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
22169 prototype_p when incoming. Use function decl when incoming
22170 to handle K&R style functions.
22171 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
22172 (INCOMING_REG_PARM_STACK_SPACE): Define.
22174 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22177 * cfgexpand.c (expand_debug_expr): Use address space of nested
22178 TREE_TYPE for ADDR_EXPR and MEM_REF.
22180 2014-06-05 Jeff Law <law@redhat.com>
22182 PR tree-optimization/61289
22183 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
22184 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
22185 looking for those which match LHS. All callers changed.
22186 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
22187 parameters and code which manipulated them. All callers changed.
22188 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
22189 and DST_MAP parameters. Simplify invalidation code by just calling
22190 invalidate_equivalences. All callers changed.
22191 (thread_across_edge): Simplify now that we don't need to maintain
22192 the map of equivalences to invalidate.
22194 2014-06-05 Kai Tietz <ktietz@redhat.com>
22195 Richard Henderson <rth@redhat.com>
22198 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
22199 checking for !TARGET_X32.
22200 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
22201 (sibcall_intern): New define_insn, plus required peepholes.
22202 (sibcall_pop_intern): Likewise.
22203 (sibcall_value_intern): Likewise.
22204 (sibcall_value_pop_intern): Likewise.
22206 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
22208 * tree-inline.c (tree_function_versioning): Check DF info existence
22209 before accessing it.
22211 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
22213 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
22215 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
22216 aarch64_frame hard_fp_offset and frame_size.
22217 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
22218 frame_size; remove original_frame_size.
22219 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
22220 (aarch64_initial_elimination_offset): Remove frame_size and
22221 offset. Use aarch64_frame frame_size.
22223 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
22224 Jiong Wang <jiong.wang@arm.com>
22225 Renlin <renlin.li@arm.com>
22227 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
22228 initialization of R30 offset. Update offset. Iterate core
22229 regisers upto X30. Remove X29, X30 specific code.
22231 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
22232 Jiong Wang <jiong.wang@arm.com>
22234 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
22235 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
22236 (aarch64_register_saved_on_entry): Adjust test.
22238 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
22240 * config/aarch64/aarch64.h (machine_function): Move
22241 saved_varargs_size from here...
22242 (aarch64_frame): ... to here.
22244 * config/aarch64/aarch64.c (aarch64_expand_prologue)
22245 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
22246 (aarch64_initial_elimination_offset)
22247 (aarch64_setup_incoming_varargs): Adjust location of
22248 saved_varargs_size.
22250 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
22252 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
22255 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
22256 Prachi Godbole <Prachi.Godbole@imgtec.com>
22258 * config/mips/mips-cpus.def: Add definition for p5600. Updated
22259 mips32r5 entry to use PROCESSOR_P5600.
22260 * config/mips/mips-tables.opt: Regenerate.
22261 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
22262 * config/mips/mips.c (mips_fmadd_bypass): New function.
22263 (mips_rtx_cost_data): Add costs for p5600.
22264 (mips_issue_rate): Add support for p5600.
22265 (mips_multipass_dfa_lookahead): Likewise.
22266 * config/mips/mips.h (TUNE_P5600): New define.
22267 (TUNE_MACC_CHAINS): Add TUNE_P5600.
22268 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
22269 * config/mips/mips.md: Include p5600.md.
22270 (processor): Add p5600.
22271 * config/mips/p5600.md: New file.
22273 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
22275 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
22276 * config/i386/predicates.md (palignr_operand): New.
22277 Indicates if permutation is suitable for palignr instruction.
22279 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
22281 PR tree-optimization/61319
22282 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
22283 stmt belongs to loop.
22285 2014-06-05 Richard Biener <rguenther@suse.de>
22287 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
22288 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
22289 (lookup_tmp_var): Adjust.
22290 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
22292 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22294 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
22296 2014-06-05 Marek Polacek <polacek@redhat.com>
22299 * doc/invoke.texi: Document -Wlogical-not-parentheses.
22301 2014-06-04 Tom de Vries <tom@codesourcery.com>
22303 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
22306 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
22308 PR tree-optimization/61385
22309 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
22311 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
22313 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
22314 changed to use fatal_error.
22315 (main): Ensure lto_wrapper_cleanup is run atexit.
22317 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22319 * lra-constraints.c (valid_address_p): Move earlier in file.
22320 (address_eliminator): New structure.
22321 (satisfies_memory_constraint_p): New function.
22322 (satisfies_address_constraint_p): Likewise.
22323 (process_alt_operands, process_address, curr_insn_transform): Use them.
22325 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22327 * lra-int.h (lra_static_insn_data): Make operand_alternative a
22329 (target_lra_int, default_target_lra_int, this_target_lra_int)
22330 (op_alt_data): Delete.
22331 * lra.h (lra_init): Delete.
22332 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
22333 (init_insn_code_data_once): Remove op_alt_data handling.
22334 (finish_insn_code_data_once): Likewise.
22335 (init_op_alt_data): Delete.
22336 (get_static_insn_data): Initialize operand_alternative to null.
22337 (free_insn_recog_data): Cast operand_alternative before freeing it.
22338 (setup_operand_alternative): Take the operand_alternative as
22339 parameter and assume it isn't already cached in the static
22341 (lra_set_insn_recog_data): Update accordingly.
22342 (lra_init): Delete.
22343 * ira.c (ira_init): Don't call lra_init.
22344 * target-globals.h (this_target_lra_int): Declare.
22345 (target_globals): Remove lra_int.
22346 (restore_target_globals): Update accordingly.
22347 * target-globals.c: Don't include lra-int.h.
22348 (default_target_globals, save_target_globals): Remove lra_int.
22350 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22352 * recog.h (operand_alternative): Convert reg_class, reject,
22353 matched and matches into bitfields.
22354 (preprocess_constraints): New overload.
22355 (preprocess_insn_constraints): New function.
22356 (preprocess_constraints): Take the insn as parameter.
22357 (recog_op_alt): Change into a pointer.
22358 (target_recog): Add x_op_alt.
22359 * recog.c (asm_op_alt): New variable.
22360 (recog_op_alt): Change into a pointer.
22361 (preprocess_constraints): New overload, replacing the old function
22362 definition with one that doesn't use global state.
22363 (preprocess_insn_constraints): New function.
22364 (preprocess_constraints): Use them. Take the insn as parameter.
22365 Use asm_op_alt for asms.
22366 (recog_init): Free existing x_op_alt entries.
22367 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
22369 (make_early_clobber_and_input_conflicts): Likewise.
22370 (process_bb_node_lives): Pass the insn to process_constraints.
22371 * reg-stack.c (check_asm_stack_operands): Likewise.
22372 (subst_asm_stack_regs): Likewise.
22373 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
22374 * regrename.c (build_def_use): Likewise.
22375 * sched-deps.c (sched_analyze_insn): Likewise.
22376 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
22377 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
22378 (note_invalid_constants): Likewise.
22379 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22380 (ix86_legitimate_combined_insn): Make operand_alternative pointer
22383 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22385 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
22386 * ira-lives.c (check_and_make_def_conflict): Check for disabled
22388 (make_early_clobber_and_input_conflicts): Likewise.
22389 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22391 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22393 * recog.h (alternative_class): New function.
22394 (which_op_alt): Return a const recog_op_alt.
22395 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
22396 (subst_asm_stack_regs): Likewise.
22397 * config/arm/arm.c (note_invalid_constants): Likewise.
22398 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
22399 the operand_alternative; use alternative class instead.
22400 * sel-sched.c (get_reg_class): Likewise.
22401 * regrename.c (build_def_use): Likewise.
22402 (hide_operands, restore_operands, record_out_operands): Update type
22405 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22407 * recog.h (recog_op_alt): Convert to a flat array.
22408 (which_op_alt): New function.
22409 * recog.c (recog_op_alt): Convert to a flat array.
22410 (preprocess_constraints): Update accordingly, grouping all
22411 operands of the same alternative together, rather than the
22413 * ira-lives.c (check_and_make_def_conflict): Likewise.
22414 (make_early_clobber_and_input_conflicts): Likewise.
22415 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22416 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
22417 (subst_asm_stack_regs): Likewise.
22418 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
22419 * regrename.c (hide_operands, record_out_operands): Likewise.
22420 (build_def_use): Likewise.
22421 * sel-sched.c (get_reg_class): Likewise.
22422 * config/arm/arm.c (note_invalid_constants): Likewise.
22424 2014-06-04 Jason Merrill <jason@redhat.com>
22428 * gimplify.c (gimplify_arg): Non-static.
22429 * gimplify.h: Declare it.
22431 2014-06-04 Richard Biener <rguenther@suse.de>
22433 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
22434 TREE_PUBLIC and DECL_EXTERNAL decls.
22436 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
22438 * regcprop.c (copyprop_hardreg_forward_1): Account for
22439 HARD_REGNO_CALL_PART_CLOBBERED.
22441 2014-06-04 Richard Biener <rguenther@suse.de>
22443 * configure.ac: Check whether the underlying type of int64_t
22444 is long or long long.
22445 * configure: Regenerate.
22446 * config.in: Likewise.
22447 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
22448 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
22450 2014-06-04 Richard Biener <rguenther@suse.de>
22452 PR tree-optimization/60098
22453 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
22455 (dse_optimize_stmt): Simplify, now that we found a kill
22458 2014-06-04 Richard Biener <rguenther@suse.de>
22460 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
22461 of accesses with non-invariant address.
22463 2014-06-04 Martin Liska <mliska@suse.cz>
22465 * cgraph.h (cgraph_make_wrapper): New function introduced.
22466 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
22467 * ipa-inline.h (inline_analyze_function): The function is global.
22468 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
22470 2014-06-04 Martin Liska <mliska@suse.cz>
22472 * tree.h (private_lookup_attribute_starting): New function.
22473 (lookup_attribute_starting): Likewise.
22474 * tree.c (private_lookup_attribute_starting): Likewise.
22476 2014-06-04 Martin Liska <mliska@suse.cz>
22478 * cgraph.h (expand_thunk): New argument added.
22479 (address_taken_from_non_vtable_p): New global function.
22480 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
22481 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
22482 * cgraphunit.c (analyze_function): Likewise.
22483 (assemble_thunks_and_aliases): Argument added to call.
22484 (expand_thunk): New argument forces to produce GIMPLE thunk.
22486 2014-06-04 Martin Liska <mliska@suse.cz>
22488 * coverage.h (coverage_compute_cfg_checksum): Argument added.
22489 * coverage.c (coverage_compute_cfg_checksum): Likewise.
22490 * profile.c (branch_prob): Likewise.
22492 2014-06-04 Martin Jambor <mjambor@suse.cz>
22495 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
22496 handler for switch on an ipa_ref_use enum.
22497 * ipa-reference.c (analyze_function): Likewise.
22499 2014-06-04 Kai Tietz <ktietz@redhat.com>
22501 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
22502 from old call-instruction.
22504 2014-06-04 Bin Cheng <bin.cheng@arm.com>
22506 * config/aarch64/aarch64.c (aarch64_classify_address)
22507 (aarch64_legitimize_reload_address): Support full addressing modes
22509 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
22510 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
22512 2014-06-03 Andrew Pinski <apinski@cavium.com>
22514 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
22517 2014-06-03 Andrew Pinski <apinski@cavium.com>
22519 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
22520 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
22522 2014-06-03 Kai Tietz <ktietz@redhat.com>
22524 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
22527 2014-06-03 Dehao Chen <dehao@google.com>
22529 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
22532 2014-06-03 Marek Polacek <polacek@redhat.com>
22535 * doc/invoke.texi: Document -Wswitch-bool.
22536 * function.c (stack_protect_epilogue): Cast controlling expression of
22538 * gengtype.c (walk_type): Generate switch expression with its
22539 controlling expression cast to int.
22541 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
22543 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
22545 * config/avr/avr-tables.opt: Regenerate.
22546 * config/avr/t-multilib: Regenerate.
22547 * doc/avr-mmcu.texi: Regenerate.
22549 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
22550 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
22552 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
22553 (ata6617c, ata664251): Add new avr35 devices.
22554 (ata6612c): Add new avr4 device.
22555 (ata6613c, ata6614q): Add new avr5 devices.
22556 * config/avr/avr-tables.opt: Regenerate.
22557 * config/avr/t-multilib: Regenerate.
22558 * doc/avr-mmcu.texi: Regenerate.
22560 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
22562 * gcc/config/aarch64/aarch64-builtins.c
22563 (aarch64_types_binop_ssu_qualifiers): New static data.
22564 (TYPES_BINOP_SSU): Define.
22565 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
22566 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
22567 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
22568 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
22569 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
22570 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
22571 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
22572 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
22573 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
22574 suffix to builtin function name, remove cast.
22575 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
22576 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
22577 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
22579 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
22581 * gcc/config/aarch64/aarch64-builtins.c
22582 (aarch64_types_binop_uus_qualifiers,
22583 aarch64_types_shift_to_unsigned_qualifiers,
22584 aarch64_types_unsigned_shiftacc_qualifiers): Define.
22585 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
22586 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
22587 sqshlu_n, uqshl_n): Update qualifiers.
22588 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
22589 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
22590 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
22591 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
22592 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
22593 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
22594 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
22595 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
22596 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
22597 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
22598 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
22599 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
22600 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
22601 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
22602 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
22603 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
22604 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
22605 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
22606 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
22607 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
22608 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
22609 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
22610 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
22611 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
22612 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
22613 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
22614 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
22616 2014-06-03 Teresa Johnson <tejohnson@google.com>
22618 * tree-sra.c (modify_function): Record caller nodes after rebuild.
22620 2014-06-02 Jason Merrill <jason@redhat.com>
22623 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
22625 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
22627 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
22630 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
22632 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
22634 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
22635 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
22636 * config/aarch64/iterators.md (REVERSE): New iterator.
22637 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
22638 (rev_op): New int_attribute.
22639 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
22640 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
22641 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
22642 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
22643 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
22644 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
22645 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
22646 Replace temporary __asm__ with __builtin_shuffle.
22648 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
22650 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
22652 * config/mips/mips-tables.opt: Regenerate.
22653 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
22654 to use mips_isa_rev rather than ISA_MIPS32R2.
22655 * config/mips/mips.h (ISA_MIPS32R3): New define.
22656 (ISA_MIPS32R5): New define.
22657 (ISA_MIPS64R3): New define.
22658 (ISA_MIPS64R5): New define.
22659 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
22660 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
22661 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
22663 (MIPS_ISA_SYNCI_SPEC): Likewise.
22664 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
22665 (LINK_SPEC): Added mips32r3 and mips32r5.
22666 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
22667 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
22668 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
22669 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
22670 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
22671 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
22672 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
22674 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
22676 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
22678 * config/mips/mips.opt (mxpa): New option.
22679 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
22682 2014-06-03 Martin Jambor <mjambor@suse.cz>
22685 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
22688 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
22690 PR tree-optimization/61328
22691 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
22692 initialization from find_bswap_or_nop_1.
22693 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
22694 in source_expr2 before using the size value the function sets. Also
22695 make use of init_symbolic_number () in both the old place and
22696 find_bswap_or_nop_load () to avoid reading uninitialized memory when
22697 doing recursion in the GIMPLE_BINARY_RHS case.
22699 2014-06-03 Richard Biener <rguenther@suse.de>
22701 PR tree-optimization/61383
22702 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
22705 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
22707 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
22708 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
22709 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
22710 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
22712 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
22713 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
22714 * system.h: ...here and make it unconditional.
22715 * target.def (conditional_register_usage): Mention
22716 define_register_constraint instead of old-style constraint macros.
22717 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
22718 * doc/tm.texi: Regenerate.
22719 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
22720 protected by !USE_MD_CONSTRAINTS.
22721 * config/frv/frv.md: Remove quote from old version of documentation.
22722 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
22723 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
22724 CONST_DOUBLE_OK_FOR_LETTER.
22725 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
22727 2014-06-02 Andrew Pinski <apinski@cavium.com>
22729 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
22730 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
22731 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
22732 file whose name depends on -mabi= and -mbig-endian.
22733 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
22734 Handle LP64 better and handle ilp32 too.
22735 (MULTILIB_OPTIONS): Delete.
22736 (MULTILIB_DIRNAMES): Delete.
22738 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
22740 * expr.h: Remove prototypes of functions defined in builtins.c.
22741 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
22742 Remove prototypes of functions defined in builtins.c.
22743 * builtins.h: Update prototype list to include all exported functions.
22744 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
22745 no_c99_libc_has_function): Move to targhooks.c
22746 (build_string_literal, build_call_expr_loc_array,
22747 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
22749 (expand_builtin_object_size, fold_builtin_object_size): Make static.
22750 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
22751 no_c99_libc_has_function): Relocate from builtins.c.
22752 * tree.c: Include builtins.h.
22753 (build_call_expr_loc_array, build_call_expr_loc_vec,
22754 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
22756 * fold-const.h (fold_fma): Move prototype to builtins.h.
22757 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
22758 * asan.c: Include builtins.h.
22759 * cfgexpand.c: Likewise.
22760 * convert.c: Likewise.
22761 * emit-rtl.c: Likewise.
22762 * except.c: Likewise.
22763 * expr.c: Likewise.
22764 * fold-const.c: Likewise.
22765 * gimple-fold.c: Likewise.
22766 * gimple-ssa-strength-reduction.c: Likewise.
22767 * gimplify.c: Likewise.
22768 * ipa-inline.c: Likewise.
22769 * ipa-prop.c: Likewise.
22770 * lto-streamer-out.c: Likewise.
22771 * stmt.c: Likewise.
22772 * tree-inline.c: Likewise.
22773 * tree-object-size.c: Likewise.
22774 * tree-sra.c: Likewise.
22775 * tree-ssa-ccp.c: Likewise.
22776 * tree-ssa-forwprop.c: Likewise.
22777 * tree-ssa-loop-ivcanon.c: Likewise.
22778 * tree-ssa-loop-ivopts.c: Likewise.
22779 * tree-ssa-math-opts.c: Likewise.
22780 * tree-ssa-reassoc.c: Likewise.
22781 * tree-ssa-threadedge.c: Likewise.
22782 * tree-streamer-in.c: Likewise.
22783 * tree-vect-data-refs.c: Likewise.
22784 * tree-vect-patterns.c: Likewise.
22785 * tree-vect-stmts.c: Likewise.
22786 * config/aarch64/aarch64.c: Likewise.
22787 * config/alpha/alpha.c: Likewise.
22788 * config/arc/arc.c: Likewise.
22789 * config/arm/arm.c: Likewise.
22790 * config/avr/avr.c: Likewise.
22791 * config/bfin/bfin.c: Likewise.
22792 * config/c6x/c6x.c: Likewise.
22793 * config/cr16/cr16.c: Likewise.
22794 * config/cris/cris.c: Likewise.
22795 * config/epiphany/epiphany.c: Likewise.
22796 * config/fr30/fr30.c: Likewise.
22797 * config/frv/frv.c: Likewise.
22798 * config/h8300/h8300.c: Likewise.
22799 * config/i386/i386.c: Likewise.
22800 * config/i386/winnt.c: Likewise.
22801 * config/ia64/ia64.c: Likewise.
22802 * config/iq2000/iq2000.c: Likewise.
22803 * config/lm32/lm32.c: Likewise.
22804 * config/m32c/m32c.c: Likewise.
22805 * config/m32r/m32r.c: Likewise.
22806 * config/m68k/m68k.c: Likewise.
22807 * config/mcore/mcore.c: Likewise.
22808 * config/mep/mep.c: Likewise.
22809 * config/microblaze/microblaze.c: Likewise.
22810 * config/mips/mips.c: Likewise.
22811 * config/mmix/mmix.c: Likewise.
22812 * config/mn10300/mn10300.c: Likewise.
22813 * config/moxie/moxie.c: Likewise.
22814 * config/msp430/msp430.c: Likewise.
22815 * config/nds32/nds32.c: Likewise.
22816 * config/pa/pa.c: Likewise.
22817 * config/pdp11/pdp11.c: Likewise.
22818 * config/picochip/picochip.c: Likewise.
22819 * config/rl78/rl78.c: Likewise.
22820 * config/rs6000/rs6000.c: Likewise.
22821 * config/rx/rx.c: Likewise.
22822 * config/s390/s390.c: Likewise.
22823 * config/score/score.c: Likewise.
22824 * config/sh/sh.c: Likewise.
22825 * config/sparc/sparc.c: Likewise.
22826 * config/spu/spu.c: Likewise.
22827 * config/stormy16/stormy16.c: Likewise.
22828 * config/tilegx/tilegx.c: Likewise.
22829 * config/tilepro/tilepro.c: Likewise.
22830 * config/v850/v850.c: Likewise.
22831 * config/vax/vax.c: Likewise.
22832 * config/xtensa/xtensa.c: Likewise.
22834 2014-06-02 Jeff Law <law@redhat.com>
22836 PR rtl-optimization/61094
22837 * ree.c (combine_reaching_defs): Do not reextend an insn if it
22838 was marked as do_no_reextend. If a copy is needed to eliminate
22839 an extension, then mark it as do_not_reextend.
22841 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
22843 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
22845 2014-06-02 Richard Henderson <rth@redhat.com>
22848 * config/alpha/alpha.c (print_operand_address): Allow symbolic
22849 addresses inside asms. Use output_operand_lossage instead of
22852 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
22855 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
22856 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
22858 2014-06-02 Tom de Vries <tom@codesourcery.com>
22860 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
22861 case that x has VOIDmode.
22863 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
22865 * varasm.c (copy_constant): Delete function.
22866 (build_constant_desc): Don't call it.
22868 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22871 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
22872 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
22873 with immediate_operand.
22875 2014-06-02 Andreas Schwab <schwab@suse.de>
22877 * config/ia64/ia64.c
22878 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
22879 pending_data_specs first.
22881 2014-06-02 Richard Biener <rguenther@suse.de>
22883 PR tree-optimization/61378
22884 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
22885 valueized_anything.
22887 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
22889 * config/i386/constraints.md (Bw): Rename from 'w'.
22890 (Bz): Rename from 'z'.
22891 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
22893 2014-06-01 Kai Tietz <ktietz@redhat.com>
22896 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
22897 * config/i386/i386.md (sibcall_insn_operand): Use Bs
22898 instead of m constraint.
22900 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
22902 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
22903 a separate alternative where the scratch operand 2 is marked as
22906 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
22908 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
22909 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
22910 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
22911 and __builtins_arm_get_fpscr.
22912 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
22913 __builtins_arm_get_fpscr.
22914 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
22915 __builtins_arm_ldfpscr.
22916 (arm_atomic_assign_expand_fenv): New function.
22917 * config/arm/vfp.md (set_fpscr): New pattern.
22918 (get_fpscr) : Likewise.
22919 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
22921 * doc/extend.texi (AARCH64 Built-in Functions) : Document
22922 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
22924 2014-05-30 Jakub Jelinek <jakub@redhat.com>
22926 * asan.c (report_error_func): Add SLOW_P argument, use
22927 BUILT_IN_ASAN_*_N if set.
22928 (build_check_stmt): Likewise.
22929 (instrument_derefs): If T has insufficient alignment,
22930 force same handling as for odd sizes.
22932 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
22933 BUILT_IN_ASAN_REPORT_STORE_N): New.
22934 * asan.c (struct asan_mem_ref): Change access_size type to
22936 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
22937 update_mem_ref_hash_table): Likewise.
22938 (asan_mem_ref_hasher::hash): Hash in a HWI.
22939 (report_error_func): Change size_in_bytes argument to HWI.
22940 Use *_N builtins if size_in_bytes is larger than 16 or not power of
22942 (build_shadow_mem_access): New function.
22943 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
22944 Handle size_in_bytes not power of two or larger than 16.
22945 (instrument_derefs): Don't give up if size_in_bytes is not
22946 power of two or is larger than 16.
22948 2014-05-30 Kai Tietz <ktietz@redhat.com>
22951 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
22952 for sibling-tail-calls.
22953 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
22955 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
22956 (sibcall_insn_operand): Add check for sibcall_memory_operand.
22958 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
22960 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
22961 * config/avr/avr-tables.opt: Regenerate.
22962 * config/avr/t-multilib: Regenerate.
22963 * doc/avr-mmcu.texi: Regenerate.
22965 2014-05-30 Ian Lance Taylor <iant@google.com>
22967 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
22970 2014-05-30 Tom de Vries <tom@codesourcery.com>
22972 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
22975 2014-05-30 Tom de Vries <tom@codesourcery.com>
22977 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
22978 * lra.c (initialize_lra_reg_info_element): Add init of
22979 actual_call_used_reg_set field.
22980 (lra): Call lra_create_live_ranges before lra_inheritance for
22982 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
22984 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
22985 instead of call_used_reg_set for -fuse-caller-save.
22986 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
22988 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22990 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
22992 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
22994 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
22996 * ira.c (ira_get_dup_out_num): Check for output operands at
22997 the start of the loop. Handle cases where an included alternative
22998 follows an excluded one.
23000 2014-05-29 Mike Stump <mikestump@comcast.net>
23003 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
23004 post ld passes when lto is used.
23006 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
23008 PR rtl-optimization/61325
23009 * lra-constraints.c (process_address): Rename to process_address_1.
23010 (process_address): New function.
23012 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
23014 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
23015 TYPES_BINOPV): New static data.
23016 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
23018 * config/aarch64/aarch64-simd.md (aarch64_ext,
23019 aarch64_im_lane_boundsi): New patterns.
23020 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
23022 (aarch64_evpc_ext): New function.
23024 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
23026 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
23027 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
23028 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
23029 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
23030 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
23032 2014-05-29 Tom de Vries <tom@codesourcery.com>
23034 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
23036 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
23037 Richard Sandiford <rdsandiford@googlemail.com>
23039 * arm/iterators.md (shiftable_ops): New code iterator.
23040 (t2_binop0, arith_shift_insn): New code attributes.
23041 * arm/predicates.md (shift_nomul_operator): New predicate.
23042 * arm/arm.md (insn_enabled): Delete.
23043 (enabled): Remove insn_enabled test.
23044 (*arith_shiftsi): Delete. Replace with ...
23045 (*<arith_shift_insn>_multsi): ... new pattern.
23046 (*<arith_shift_insn>_shiftsi): ... new pattern.
23047 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
23049 2014-05-29 Radovan Obradovic <robradovic@mips.com>
23050 Tom de Vries <tom@codesourcery.com>
23052 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
23053 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
23055 (mips_split_call): Use POST_CALL_TMP_REG.
23056 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
23058 2014-05-29 Tom de Vries <tom@codesourcery.com>
23060 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
23061 with #ifdef STACK_REGS.
23063 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
23065 * varasm.c (get_variable_section): Walk aliases.
23066 (place_block_symbol): Walk aliases.
23068 2014-05-28 Tom de Vries <tom@codesourcery.com>
23071 2014-05-28 Tom de Vries <tom@codesourcery.com>
23073 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
23074 * lra.c (initialize_lra_reg_info_element): Add init of
23075 actual_call_used_reg_set field.
23076 (lra): Call lra_create_live_ranges before lra_inheritance for
23078 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
23080 * lra-constraints.c (need_for_call_save_p): Use
23081 actual_call_used_reg_set instead of call_used_reg_set for
23083 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
23085 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
23087 * doc/md.texi: Document that the % constraint character must
23088 be at the beginning of the string.
23089 * genoutput.c (validate_insn_alternatives): Check that '=',
23090 '+' and '%' only appear at the beginning of a constraint.
23091 * ira.c (commutative_constraint_p): Delete.
23092 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
23093 at the start of the string.
23094 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
23096 * config/arm/neon.md (bicdi3_neon): Likewise.
23097 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
23098 (slt_si, sltu_si): Likewise.
23099 * config/vax/vax.md (sbcdi3): Likewise.
23100 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
23101 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
23102 (mul64): Move '%' to beginning of constraint.
23103 * config/arm/arm.md (*xordi3_insn): Likewise.
23104 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
23105 (xorsi3): Likewise.
23107 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
23109 * doc/md.texi: Document the restrictions on the "enabled" attribute.
23111 2014-05-28 Jason Merrill <jason@redhat.com>
23114 * cgraph.h (symtab_node::get_comdat_group_id): New.
23115 * cgraphunit.c (analyze_functions): Call it.
23116 * symtab.c (dump_symtab_node): Likewise.
23117 * tree.c (decl_comdat_group_id): New.
23118 * tree.h: Declare it.
23119 * lto-streamer-out.c (write_symbol): Use it.
23120 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
23122 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
23124 PR bootstrap/PR61146
23125 * wide-int.cc: Do not include longlong.h when compiling with clang.
23127 2014-05-28 Richard Biener <rguenther@suse.de>
23129 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
23130 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
23131 (vrp_visit_assignment_or_call): Print less vertical space.
23132 (vrp_visit_stmt): Likewise.
23133 (vrp_visit_phi_node): Likewise. For a PHI argument with
23134 VR_VARYING range consider recording it as copy.
23136 2014-05-28 Richard Biener <rguenther@suse.de>
23139 2014-05-28 Richard Biener <rguenther@suse.de>
23141 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
23143 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
23145 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
23146 sufficiently aligned and an offset is used at the same time.
23147 (expand_expr_real_1): Likewise.
23149 2014-05-28 Richard Biener <rguenther@suse.de>
23151 PR middle-end/61045
23152 * fold-const.c (fold_comparison): When folding
23153 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
23154 the sign of the remaining constant operand stays the same.
23156 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
23158 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
23159 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
23160 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
23162 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
23163 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
23164 (m32bit-doubles) Likewise.
23165 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
23166 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
23169 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23171 * configure.ac ($gcc_cv_ld_clearcap): New test.
23172 * configure: Regenerate.
23173 * config.in: Regenerate.
23174 * config/sol2.opt (mclear-hwcap): New option.
23175 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
23176 * config/sol2-clearcap.map: Moved here from
23177 testsuite/gcc.target/i386/clearcap.map.
23178 * config/sol2-clearcapv2.map: Move here from
23179 gcc.target/i386/clearcapv2.map.
23180 * config/t-sol2 (install): Depend on install-clearcap-map.
23181 (install-clearcap-map): New target.
23182 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
23185 2014-05-28 Richard Biener <rguenther@suse.de>
23187 * hwint.h (*_HALF_WIDE_INT*): Move to ...
23188 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
23189 ... here and remove the rest.
23190 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
23192 2014-05-28 Richard Biener <rguenther@suse.de>
23194 PR tree-optimization/61335
23195 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
23196 new range fails, drop to varying.
23198 2014-05-28 Olivier Hainque <hainque@adacore.com>
23200 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
23201 (CPP_SPEC): Add entry for -mcpu=8548.
23202 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
23203 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
23205 2014-05-28 Tom de Vries <tom@codesourcery.com>
23207 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
23208 * lra.c (initialize_lra_reg_info_element): Add init of
23209 actual_call_used_reg_set field.
23210 (lra): Call lra_create_live_ranges before lra_inheritance for
23212 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
23214 * lra-constraints.c (need_for_call_save_p): Use
23215 actual_call_used_reg_set instead of call_used_reg_set for
23217 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
23219 2014-05-28 Radovan Obradovic <robradovic@mips.com>
23220 Tom de Vries <tom@codesourcery.com>
23222 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
23224 (@item -fuse-caller-save): New item.
23226 2014-05-28 Radovan Obradovic <robradovic@mips.com>
23227 Tom de Vries <tom@codesourcery.com>
23229 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
23230 OPT_fuse_caller_save.
23232 2014-05-28 Radovan Obradovic <robradovic@mips.com>
23233 Tom de Vries <tom@codesourcery.com>
23235 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
23236 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
23237 get_call_reg_set_usage.
23238 * resource.c (mark_set_resources, mark_target_live_regs): Use
23239 get_call_reg_set_usage.
23240 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
23242 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
23243 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
23244 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
23245 * ira-build.c (ira_create_allocno): Init
23246 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
23247 (create_cap_allocno, propagate_allocno_info)
23248 (propagate_some_info_from_allocno)
23249 (copy_info_to_removed_store_destinations): Handle
23250 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
23251 * ira-costs.c (ira_tune_allocno_costs): Use
23252 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
23254 2014-05-28 Radovan Obradovic <robradovic@mips.com>
23255 Tom de Vries <tom@codesourcery.com>
23257 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
23258 and function_used_regs_valid fields.
23259 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
23260 find_all_hard_reg_sets.
23261 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
23262 (get_call_reg_set_usage): New function.
23263 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
23264 * regs.h (get_call_reg_set_usage): Declare.
23266 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
23269 * config/dbx.h (License): Add Runtime Library Exception.
23270 * config/newlib-stdint.h (License): Same.
23271 * config/rtems.h (License): Same
23272 * config/initfini-array.h (License): Same
23273 * config/v850/v850.h (License): Same.
23274 * config/v850/v850-opts.h (License): Same
23275 * config/v850/rtems.h (License): Same.
23277 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
23280 * doc/extend.texi (Local Labels): Note that label differences are
23281 not supported for AVR.
23283 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
23284 Olivier Hainque <hainque@adacore.com>
23286 * rtl.h (set_for_reg_notes): Declare.
23287 * emit-rtl.c (set_for_reg_notes): New function.
23288 (set_unique_reg_note): Use it.
23289 * optabs.c (add_equal_note): Likewise
23291 2014-05-27 Andrew Pinski <apinski@cavium.com>
23293 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
23294 Use <w> for the register in assembly template.
23295 (stack_protect_test): Use the mode of operands[0] for the result.
23296 (stack_protect_test_<mode>): Use <w> for the register
23297 in assembly template.
23299 2014-05-27 DJ Delorie <dj@redhat.com>
23301 * config/rx/rx.c (add_vector_labels): New.
23302 (rx_output_function_prologue): Call it.
23303 (rx_handle_func_attribute): Don't require empty arguments.
23304 (rx_handle_vector_attribute): New.
23305 (rx_attribute_table): Add "vector" attribute.
23306 * doc/extend.texi (interrupt, vector): Document new/changed
23307 RX-specific attributes.
23309 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
23311 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
23313 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
23314 predicate to detect a negative quotient.
23316 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
23318 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
23319 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
23320 Add X - Y CMP 0 to X CMP Y transformation.
23321 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
23323 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
23325 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
23328 2014-05-27 Steve Ellcey <sellcey@mips.com>
23330 * config/mips/mips.c: Add include of cgraph.h.
23332 2014-05-27 Richard Biener <rguenther@suse.de>
23334 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
23336 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
23339 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
23340 * config/arm/arm-cores.def (License): Same.
23341 * config/arm/arm-opts.h (License): Same.
23342 * config/arm/aout.h (License): Same.
23343 * config/arm/bpabi.h (License): Same.
23344 * config/arm/elf.h (License): Same.
23345 * config/arm/linux-elf.h (License): Same.
23346 * config/arm/linux-gas.h (License): Same.
23347 * config/arm/netbsd-elf.h (License): Same.
23348 * config/arm/uclinux-eabi.h (License): Same.
23349 * config/arm/uclinux-elf.h (License): Same.
23350 * config/arm/vxworks.h (License): Same.
23352 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23354 * config/arm/neon.md (neon_bswap<mode>): New pattern.
23355 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
23356 (arm_init_neon_builtins): Handle NEON_BSWAP.
23357 Define required type nodes.
23358 (arm_expand_neon_builtin): Handle NEON_BSWAP.
23359 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
23360 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
23361 * config/arm/iterators.md (VDQHSD): New mode iterator.
23363 2014-05-27 Richard Biener <rguenther@suse.de>
23365 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
23366 Try using literal operands when comparing value-ranges failed.
23368 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
23370 * ira.c (commutative_operand): Adjust for change to recog_data.
23371 [Missing from previous commit.]
23373 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
23375 * system.h (TEST_BIT): New macro.
23376 * recog.h (alternative_mask): New type.
23377 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
23378 (recog_data_d): Replace alternative_enabled_p array with
23379 enabled_alternatives.
23380 (target_recog): New structure.
23381 (default_target_recog, this_target_recog): Declare.
23382 (get_enabled_alternatives, recog_init): Likewise.
23383 * recog.c (default_target_recog, this_target_recog): New variables.
23384 (get_enabled_alternatives): New function.
23385 (extract_insn): Use it.
23386 (recog_init): New function.
23387 (preprocess_constraints, constrain_operands): Adjust for change to
23389 * postreload.c (reload_cse_simplify_operands): Likewise.
23390 * reload.c (find_reloads): Likewise.
23391 * ira-costs.c (record_reg_classes): Likewise.
23392 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
23393 all alternatives after a disabled one would be skipped.
23394 (ira_implicitly_set_insn_hard_regs): Likewise.
23395 * ira.c (ira_setup_alts): Adjust for change to recog_data.
23396 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
23397 with enabled_alternatives.
23398 * lra.c (free_insn_recog_data): Update accordingly.
23399 (lra_update_insn_recog_data): Likewise.
23400 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
23401 * lra-constraints.c (process_alt_operands): Likewise. Handle
23402 only_alternative as part of the enabled mask.
23403 * target-globals.h (this_target_recog): Declare.
23404 (target_globals): Add a recog field.
23405 (restore_target_globals): Restore this_target_recog.
23406 * target-globals.c: Include recog.h.
23407 (default_target_globals): Initialize recog field.
23408 (save_target_globals): Likewise.
23409 * reginfo.c (reinit_regs): Call recog_init.
23410 * toplev.c (backend_init_target): Likewise.
23412 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
23414 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
23415 rather than any named insn's code.
23417 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
23420 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
23421 * config/arm/arm-cores.def (License): Same.
23423 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
23425 * tree.h (decl_comdat_group): Declare.
23426 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
23427 * tree.c (decl_comdat_group): Here.
23429 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
23431 PR rtl-optimization/61222
23432 * combine.c (simplify_shift_const_1): When moving a PLUS outside
23433 the shift, truncate the PLUS operand to the result mode.
23435 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
23438 * config/i386/i386.c (ix86_rtx_costs)
23439 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
23442 2014-05-26 Martin Jambor <mjambor@suse.cz>
23444 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
23447 2014-05-26 Richard Biener <rguenther@suse.de>
23449 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
23450 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
23451 Provide specializations.
23452 (wi::int_traits <HOST_WIDE_INT>,
23453 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
23455 2014-05-26 Alan Modra <amodra@gmail.com>
23458 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
23459 params and return a bool. Remove dead code. Update comment.
23460 Assert we have a const_int source. Remove bogus code from
23461 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
23462 handling of constants > 2G and reg_equal note, from..
23463 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
23464 return value. Update comment. If we can, use a new pseudo
23465 for intermediate calculations.
23466 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
23468 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
23469 call to rs6000_emit_set_const in splitter.
23470 (movdi_internal64+2, +3): Likewise.
23472 2014-05-26 Richard Biener <rguenther@suse.de>
23474 * system.h: Define __STDC_FORMAT_MACROS before
23475 including inttypes.h.
23476 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
23477 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
23478 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
23479 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
23480 HOST_WIDEST_INT_C): Remove.
23481 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
23482 if C99 inttypes.h is not available.
23483 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
23484 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
23485 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
23486 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
23487 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
23488 (struct output_info): Likewise.
23489 (print_statistics): Adjust.
23490 (dump_bitmap_statistics): Likewise.
23491 * bt-load.c (migrate_btr_defs): Print with PRId64.
23492 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
23493 (MAX_SAFE_MULTIPLIER): Adjust.
23494 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
23495 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
23496 dump_cgraph_node): Likewise.
23497 * final.c (dump_basic_block_info): Likewise.
23498 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
23499 * gcov.c (format_gcov): Likewise.
23500 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
23502 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
23503 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
23504 (inline_small_functions, dump_overall_stats, dump_inline_stats):
23505 Use PRId64 for dumping.
23506 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
23507 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
23508 (add_allocno_hard_regs): Adjust.
23509 * loop-doloop.c (doloop_modify): Print using PRId64.
23510 * loop-iv.c (inverse): Compute in uint64_t.
23511 (determine_max_iter, iv_number_of_iterations): Likewise.
23512 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
23513 Print using PRId64.
23514 * lto-streamer-out.c (write_symbol): Use uint64_t.
23515 * mcf.c (CAP_INFINITY): Use int64_t maximum.
23516 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
23517 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
23518 * modulo-sched.c (const_iteration_count): Use int64_t.
23519 (sms_schedule): Dump using PRId64.
23520 * predict.c (dump_prediction): Likewise.
23521 * pretty-print.h (pp_widest_integer): Remove.
23522 * profile.c (get_working_sets, is_edge_inconsistent,
23523 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
23524 * tree-pretty-print.c (pp_double_int): Remove case handling
23525 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
23526 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
23528 (pass_optimize_bswap::execute): Remove restriction on hosts.
23529 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
23530 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
23531 * tree.c (widest_int_cst_value): Remove.
23532 * tree.h (widest_int_cst_value): Likewise.
23533 * value-prof.c (dump_histogram_value): Print using PRId64.
23534 * gengtype.c (main): Also inject int64_t.
23535 * ggc-page.c (struct max_alignment): Use int64_t.
23536 * alloc-pool.c (struct allocation_object_def): Likewise.
23537 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
23539 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
23540 * doc/tm.texi: Regenerated.
23541 * gengtype-lex.l (IWORD): Handle [u]int64_t.
23542 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
23543 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
23544 mmix_output_register_setting): Use [u]int64_t in prototypes.
23545 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
23546 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
23547 mmix_output_octa, mmix_output_shifted_value): Adjust.
23548 (mmix_intval): Adjust. Remove unreachable case.
23549 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
23551 2014-05-26 Richard Biener <rguenther@suse.de>
23553 * configure.ac: Drop __int64 type check. Insist that we
23554 found uint64_t and int64_t.
23555 * hwint.h (HOST_BITS_PER___INT64): Remove.
23556 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
23557 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
23558 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
23559 (HOST_WIDEST_FAST_INT): Remove __int64 case.
23560 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
23561 for dst_q_src_df_rms_cdt.
23562 * configure: Regenerate.
23563 * config.in: Likewise.
23565 2014-05-26 Michael Tautschnig <mt@debian.org>
23568 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
23569 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
23571 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23573 PR rtl-optimization/61278
23574 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
23576 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23578 PR rtl-optimization/61220
23579 Part of PR rtl-optimization/61225
23580 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
23581 insn; skip split_edge for a block with only one successor.
23583 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23585 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
23588 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23590 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
23591 (update_vtable_references): New function.
23592 (function_and_variable_visibility): Rewrite also vtable initializers.
23593 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
23595 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23597 * ggc.h (ggc_grow): New function.
23598 * ggc-none.c (ggc_grow): New function.
23599 * ggc-page.c (ggc_grow): Likewise.
23601 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23603 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
23604 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
23605 comdat_can_be_unshared_p, cgraph_externally_visible_p,
23606 varpool_externally_visible_p, can_replace_by_local_alias,
23607 update_visibility_by_resolution_info, function_and_variable_visibility,
23608 pass_data_ipa_function_and_variable_visibility,
23609 make_pass_ipa_function_and_variable_visibility,
23610 whole_program_function_and_variable_visibility,
23611 pass_data_ipa_whole_program_visibility,
23612 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
23613 * cgraph.h (cgraph_local_node_p): Declare.
23614 * ipa-visibility.c: New file.
23615 * Makefile.in (OBJS): Add ipa-visiblity.o
23617 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23619 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
23620 that var decl is available.
23622 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23624 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
23625 symtab_node pointer.
23626 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
23627 (find_decls_types_r): Do not walk COMDAT_GROUP.
23628 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
23629 * varasm.c (make_decl_one_only): Use set_comdat_group;
23630 create node if needed.
23631 * ipa-inline-transform.c (save_inline_function_body): Update
23632 way we decl->symtab mapping.
23633 * symtab.c (symtab_hash, hash_node, eq_node
23634 symtab_insert_node_to_hashtable): Remove.
23635 (symtab_register_node): Update.
23636 (symtab_unregister_node): Update.
23637 (symtab_get_node): Reimplement as inline function.
23638 (symtab_add_to_same_comdat_group): Update.
23639 (symtab_dissolve_same_comdat_group_list): Update.
23640 (dump_symtab_base): Update.
23641 (verify_symtab_base): Update.
23642 (symtab_make_decl_local): Update.
23643 (fixup_same_cpp_alias_visibility): Update.
23644 (symtab_nonoverwritable_alias): Update.
23645 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
23646 * ipa.c (update_visibility_by_resolution_info): UPdate.
23647 * bb-reorder.c: Include cgraph.h
23648 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
23649 with comdat groups.
23650 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
23651 * cgraph.c (cgraph_get_create_node): Update.
23652 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
23654 (symtab_get_node): Make inline.
23655 (symtab_insert_node_to_hashtable): Remove.
23656 (symtab_can_be_discarded): Update.
23657 (decl_comdat_group): New function.
23658 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
23660 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
23662 (read_comdat_group): New function.
23663 (input_node, input_varpool_node): Use it.
23664 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
23666 * mips.c (mips_start_unique_function): Likewise.
23667 (ix86_code_end): Likewise.
23668 (rs6000_code_end): Likweise.
23669 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
23671 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23673 * gengtype-state.c (fatal_reading_state): Bring offline.
23674 * optabs.c (widening_optab_handler): Bring offline.
23675 * optabs.h (widening_optab_handler): Likewise.
23676 * final.c (get_attr_length_1): Likewise.
23678 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23680 * sched-int.h (sd_iterator_cond): Manually tail recurse.
23682 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23684 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
23685 (ppc440-compare): Include shift with dot.
23686 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
23687 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
23689 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
23691 (e6500_sfx2): Include it.
23692 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
23693 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
23694 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
23695 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
23696 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
23697 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
23698 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
23699 *lshiftrt_internal1le, *lshiftrt_internal1be,
23700 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
23701 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
23702 *rotldi3_internal10le, *rotldi3_internal10be,
23703 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
23704 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
23705 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
23706 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
23707 define_insns): Use type "shift" in the appropriate alternatives.
23709 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23711 * config/rs6000/rs6000.md (type): Add "logical". Delete
23713 (dot): Adjust comment.
23714 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
23715 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
23716 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
23717 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
23718 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
23719 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
23720 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
23721 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
23723 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
23724 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
23725 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
23726 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
23727 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
23728 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
23729 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
23730 * config/rs6000/8540.md (ppc8540_su): Adjust.
23731 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
23732 cell-cmp-microcoded): Adjust.
23733 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
23734 * config/rs6000/e500mc.md (e500mc_su): Adjust.
23735 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
23736 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
23737 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
23738 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
23739 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
23740 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
23741 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
23743 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
23744 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
23745 Adjust. Adjust comment.
23746 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
23747 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
23749 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23751 * config/rs6000/rs6000.md (type): Add "add".
23752 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
23753 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
23754 define_insns): Use it.
23755 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
23757 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
23758 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
23759 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
23760 * config/rs6000/601.md (ppc601-integer): Adjust.
23761 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
23762 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
23763 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
23764 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
23765 * config/rs6000/8540.md (ppc8540_su): Adjust.
23766 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
23767 cell-cmp-microcoded): Adjust.
23768 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
23769 * config/rs6000/e500mc.md (e500mc_su): Adjust.
23770 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
23771 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
23772 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
23773 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
23774 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
23775 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
23776 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
23778 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
23779 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
23780 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
23781 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
23783 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23785 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
23786 "delayed_compare", "var_delayed_compare".
23787 (var_shift): New attribute.
23788 (cell_micro): Adjust.
23789 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
23790 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
23791 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
23792 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
23793 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
23794 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
23795 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
23796 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
23797 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
23798 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
23799 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
23800 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
23801 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
23802 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
23803 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
23804 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
23805 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
23806 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
23807 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
23808 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
23809 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
23810 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
23811 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
23812 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23813 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
23815 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
23816 * config/rs6000/440.md (ppc440-integer): Adjust.
23817 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
23818 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
23819 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
23820 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
23821 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
23822 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
23823 * config/rs6000/8540.md (ppc8540_su): Adjust.
23824 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
23825 cell-cmp-microcoded): Adjust.
23826 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
23827 * config/rs6000/e500mc.md (e500mc_su): Adjust.
23828 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
23829 e500mc64_delayed): Adjust.
23830 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
23831 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
23832 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
23833 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
23834 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
23835 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
23836 power6-delayed-compare, power6-var-delayed-compare): Adjust.
23837 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
23838 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
23840 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
23841 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
23843 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23845 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
23846 (bits): New mode_attr.
23847 (idiv_ldiv): Delete mode_attr.
23848 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
23849 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23850 rs6000_adjust_priority, is_nonpipeline_insn,
23851 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
23853 * config/rs6000/40x.md (ppc403-idiv): Adjust.
23854 * config/rs6000/440.md (ppc440-idiv): Adjust.
23855 * config/rs6000/476.md (ppc476-idiv): Adjust.
23856 * config/rs6000/601.md (ppc601-idiv): Adjust.
23857 * config/rs6000/603.md (ppc603-idiv): Adjust.
23858 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
23859 ppc620-ldiv): Adjust.
23860 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
23861 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
23862 * config/rs6000/8540.md (ppc8540_divide): Adjust.
23863 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
23864 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
23865 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
23866 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
23867 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
23868 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
23869 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
23870 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
23871 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
23872 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
23873 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
23874 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
23875 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
23876 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
23877 * config/rs6000/titan.md (titan_fxu_div): Adjust.
23879 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23881 * config/rs6000/rs6000.md (type): Delete "insert_word",
23882 "insert_dword". Add "insert".
23883 (size): Update comment.
23884 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23885 insn_must_be_first_in_group): Adjust.
23886 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
23887 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
23888 *insvsi_internal6, insvdi_internal): Adjust.
23890 * config/rs6000/40x.md (ppc403-integer): Adjust.
23891 * config/rs6000/440.md (ppc440-integer): Adjust.
23892 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
23893 * config/rs6000/601.md (ppc601-integer): Adjust.
23894 * config/rs6000/603.md (ppc603-integer): Adjust.
23895 * config/rs6000/6xx.md (ppc604-integer): Adjust.
23896 * config/rs6000/7450.md (ppc7450-integer): Adjust.
23897 * config/rs6000/7xx.md (ppc750-integer): Adjust.
23898 * config/rs6000/8540.md (ppc8540_su): Adjust.
23899 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
23900 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
23901 * config/rs6000/e500mc.md (e500mc_su): Adjust.
23902 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
23903 * config/rs6000/e5500.md (e5500_sfx): Adjust.
23904 * config/rs6000/e6500.md (e6500_sfx): Adjust.
23905 * config/rs6000/mpc.md (mpccore-integer): Adjust.
23906 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
23907 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
23908 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
23909 * config/rs6000/power7.md (power7-integer): Adjust.
23910 * config/rs6000/power8.md (power8-1cyc): Adjust.
23911 * config/rs6000/rs64.md (rs64a-integer): Adjust.
23912 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
23914 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23916 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
23917 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
23918 (size): New attribute.
23919 (dot): New attribute.
23920 (cell_micro): Adjust.
23921 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
23922 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
23923 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
23924 umuldi3_highpart): Adjust.
23925 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23926 rs6000_adjust_priority, is_nonpipeline_insn,
23927 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
23929 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
23930 ppc405-imul3): Adjust.
23931 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
23932 * config/rs6000/476.md (ppc476-imul): Adjust.
23933 * config/rs6000/601.md (ppc601-imul): Adjust.
23934 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
23935 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
23936 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
23937 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
23938 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
23940 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
23941 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
23942 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
23943 cell-imul): Adjust.
23944 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
23945 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
23946 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
23947 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
23948 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
23949 * config/rs6000/mpc.md (mpccore-imul): Adjust.
23950 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
23951 power4-lmul, power4-imul, power4-imul3): Adjust.
23952 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
23953 power5-lmul, power5-imul, power5-imul3): Adjust.
23954 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
23955 power6-lmul, power6-imul, power6-imul3): Adjust.
23956 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
23957 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
23959 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
23960 rs64a-lmul): Adjust.
23961 * config/rs6000/titan.md (titan_imul): Adjust.
23963 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23965 * config/rs6000/rs6000.md (type): Add new value "halfmul".
23966 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
23967 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
23968 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
23969 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
23970 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
23971 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
23972 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
23973 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
23974 * config/rs6000/titan.md: Delete nonsensical comment.
23975 (titan_imul): Add type imul3.
23976 (titan_mulhw): Remove type imul3; add type halfmul.
23978 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23980 * config/rs6000/rs6000.md (type): Reorder, reformat.
23982 2014-05-23 Martin Jambor <mjambor@suse.cz>
23984 PR tree-optimization/53787
23985 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
23986 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
23987 analysis_done, update all uses.
23988 * ipa-prop.c: Include domwalk.h
23989 (param_analysis_info): Removed.
23990 (param_aa_status): New type.
23991 (ipa_bb_info): Likewise.
23992 (func_body_info): Likewise.
23993 (ipa_get_bb_info): New function.
23994 (aa_overwalked): Likewise.
23995 (find_dominating_aa_status): Likewise.
23996 (parm_bb_aa_status_for_bb): Likewise.
23997 (parm_preserved_before_stmt_p): Changed to use new param AA info.
23998 (load_from_unmodified_param): Accept func_body_info as a parameter
23999 instead of parms_ainfo.
24000 (parm_ref_data_preserved_p): Changed to use new param AA info.
24001 (parm_ref_data_pass_through_p): Likewise.
24002 (ipa_load_from_parm_agg_1): Likewise. Update callers.
24003 (compute_complex_assign_jump_func): Changed to use new param AA info.
24004 (compute_complex_ancestor_jump_func): Likewise.
24005 (ipa_compute_jump_functions_for_edge): Likewise.
24006 (ipa_compute_jump_functions): Removed.
24007 (ipa_compute_jump_functions_for_bb): New function.
24008 (ipa_analyze_indirect_call_uses): Likewise, moved variable
24010 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
24011 and info, moved variable declarations down.
24012 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
24014 (ipa_analyze_stmt_uses): Likewise.
24015 (ipa_analyze_params_uses): Removed.
24016 (ipa_analyze_params_uses_in_bb): New function.
24017 (ipa_analyze_controlled_uses): Likewise.
24018 (free_ipa_bb_info): Likewise.
24019 (analysis_dom_walker): New class.
24020 (ipa_analyze_node): Handle node-specific forbidden analysis,
24021 initialize and free func_body_info, use dominator walker.
24022 (ipcp_modif_dom_walker): New class.
24023 (ipcp_transform_function): Create and free func_body_info, use
24024 ipcp_modif_dom_walker, moved a lot of functionality there.
24026 2014-05-23 Marek Polacek <polacek@redhat.com>
24027 Jakub Jelinek <jakub@redhat.com>
24029 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
24030 * gcc.c (sanitize_spec_function): Likewise.
24031 * convert.c (convert_to_integer): Include "ubsan.h". Add
24032 floating-point to integer instrumentation.
24033 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
24034 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
24035 SANITIZE_NONDEFAULT.
24036 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
24037 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
24038 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
24039 * ubsan.c: Include "realmpfr.h" and "dfp.h".
24040 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
24041 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
24042 float/double/long double.
24043 (ubsan_instrument_float_cast): New function.
24044 * ubsan.h (ubsan_instrument_float_cast): Declare.
24046 2014-05-23 Jiong Wang <jiong.wang@arm.com>
24048 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
24050 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
24051 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
24052 Adjust for tailcalling through registers.
24053 * config/aarch64/aarch64.h (enum reg_class): New caller save
24055 (REG_CLASS_NAMES): Likewise.
24056 (REG_CLASS_CONTENTS): Likewise.
24057 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
24058 Allow tailcalling without decls.
24060 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
24062 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
24063 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
24065 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
24066 gsi, and variables v_* to v*.
24068 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
24070 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
24072 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
24074 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
24075 * omp-low.c: Update accordingly.
24077 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
24078 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
24079 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
24080 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
24081 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
24082 GF_OMP_TARGET_KIND_UPDATE.
24084 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
24085 Explicitly enumerate the expected region types.
24087 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
24090 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
24091 documentation; the old documentation didn't clearly state the
24092 constraints on the contents of the pointed-to storage.
24094 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24096 Fix bootstrap error on ia64
24097 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
24098 Return default value.
24100 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
24102 PR tree-optimization/54733
24103 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
24105 (find_bswap_or_nop_load): New.
24106 (find_bswap_1): Renamed to ...
24107 (find_bswap_or_nop_1): This. Also add support for memory source.
24108 (find_bswap): Renamed to ...
24109 (find_bswap_or_nop): This. Also add support for memory source and
24110 detection of bitwise operations equivalent to load in target
24112 (execute_optimize_bswap): Likewise. Also move its leading comment back
24113 in place and split statement transformation into ...
24114 (bswap_replace): This.
24116 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
24118 PR rtl-optimization/61215
24119 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
24120 simplify_gen_subreg until final substitution.
24122 2014-05-23 Alan Modra <amodra@gmail.com>
24125 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
24126 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
24127 Use "Y" constraint rather than "m".
24129 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
24131 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
24133 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
24134 New function declaration.
24135 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
24136 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
24137 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
24138 (aarch64_init_builtins) : Initialize builtins
24139 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
24140 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
24141 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
24142 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
24143 and __builtins_aarch64_set_fpsr.
24144 (aarch64_atomic_assign_expand_fenv): New function.
24145 * config/aarch64/aarch64.md (set_fpcr): New pattern.
24146 (get_fpcr) : Likewise.
24147 (set_fpsr) : Likewise.
24148 (get_fpsr) : Likewise.
24149 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
24150 and UNSPECV_SET_FPSR.
24151 * doc/extend.texi (AARCH64 Built-in Functions) : Document
24152 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
24153 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
24155 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
24157 PR rtl-optimization/60969
24158 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
24159 constraints. Set up mem cost for NO_REGS case.
24161 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
24163 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
24165 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
24167 * config/darwin.c: Include "lto-section-names.h".
24168 (LTO_SEGMENT_NAME): Don't define.
24169 * config/i386/winnt.c: Include "lto-section-names.h".
24170 * lto-streamer.c: Include "lto-section-names.h".
24171 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
24172 * lto-wrapper.c: Include "lto-section-names.h".
24173 (LTO_SECTION_NAME_PREFIX): Don't define.
24174 * lto-section-names.h: New file.
24175 * cgraphunit.c: Include "lto-section-names.h".
24177 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
24179 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
24181 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
24184 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
24186 2014-05-22 Nick Clifton <nickc@redhat.com>
24188 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
24190 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
24192 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
24193 -> (T)A transformation to integer types.
24195 2014-05-22 Teresa Johnson <tejohnson@google.com>
24197 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
24198 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
24199 (gcov_rewrite): Use gcov_nonruntime_assert.
24200 (gcov_open): Ditto.
24201 (gcov_write_words): Ditto.
24202 (gcov_write_length): Ditto.
24203 (gcov_read_words): Use gcov_nonruntime_assert, and remove
24204 gcc_assert from IN_LIBGCOV code.
24205 (gcov_read_summary): Use gcov_error to flag profile corruption.
24206 (gcov_sync): Use gcov_nonruntime_assert.
24207 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
24208 (gcov_histo_index): Use gcov_nonruntime_assert.
24209 (static void gcov_histogram_merge): Ditto.
24210 (compute_working_sets): Ditto.
24211 * gcov-io.h (gcov_nonruntime_assert): Define.
24212 (gcov_error): Define for !IN_LIBGCOV
24214 2014-05-22 Richard Biener <rguenther@suse.de>
24216 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
24217 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
24218 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
24219 and deallocation site.
24220 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24221 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
24222 passing through the incoming points-to set.
24223 (handle_lhs_call): Use flags argument instead of recomputing it.
24224 (find_func_aliases_for_call): Call handle_lhs_call with proper
24227 2014-05-22 Jakub Jelinek <jakub@redhat.com>
24229 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
24230 all padding bits in REAL_VALUE_TYPE are cleared.
24232 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24234 Cleanup and improve multipass_dfa_lookahead_guard
24235 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
24236 (core2i7_first_cycle_multipass_begin,)
24237 (core2i7_first_cycle_multipass_issue,)
24238 (core2i7_first_cycle_multipass_backtrack): Update signature.
24239 * config/ia64/ia64.c
24240 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
24241 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
24242 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
24244 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
24245 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
24247 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
24249 * doc/tm.texi: Regenerate.
24251 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
24252 * haifa-sched.c (ready_try): Make signed to allow negative values.
24253 (rebug_ready_list_1): Update.
24254 (choose_ready): Simplify.
24255 (sched_extend_ready_list): Update.
24257 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24259 Remove IA64 speculation tweaking flags
24260 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
24261 speculation tuning flags.
24262 (msched-prefer-non-data-spec-insns,)
24263 (msched-prefer-non-control-spec-insns): Obsolete options.
24264 * haifa-sched.c (choose_ready): Remove handling of
24265 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
24266 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
24267 and PREFER_NON_DATA_SPEC.
24268 * sel-sched.c (process_spec_exprs): Remove handling of
24269 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
24271 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24273 Improve scheduling debug output
24274 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
24275 (advance_one_cycle): Update.
24276 (schedule_insn, queue_to_ready): Add debug printouts.
24277 (debug_ready_list_1): New static function.
24278 (debug_ready_list): Update.
24279 (max_issue): Add debug printouts.
24280 (dump_insn_stream): New static function.
24281 (schedule_block): Use it. Also better indent printouts.
24283 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24285 Fix sched_insn debug counter
24286 * haifa-sched.c (schedule_insn): Update.
24287 (struct haifa_saved_data): Add nonscheduled_insns_begin.
24288 (save_backtrack_point, restore_backtrack_point): Update.
24289 (first_nonscheduled_insn): New static function.
24290 (queue_to_ready, choose_ready): Use it.
24291 (schedule_block): Init nonscheduled_insns_begin.
24292 (sched_emit_insn): Update.
24295 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
24297 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
24299 (aarch64_secondary_reload) : LikeWise.
24300 (aarch64_class_max_nregs) : Remove CORE_REGS.
24301 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
24302 (REG_CLASS_NAMES) : Likewise.
24303 (REG_CLASS_CONTENTS) : LikeWise.
24304 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
24306 2014-05-21 Guozhi Wei <carrot@google.com>
24309 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
24311 (vqdmulhq_n_s16): Likewise.
24313 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
24315 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
24317 2014-05-21 Marek Polacek <polacek@redhat.com>
24320 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
24322 2014-05-21 Martin Jambor <mjambor@suse.cz>
24324 * doc/invoke.texi (Optimize Options): Document parameters
24325 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
24326 ipa-cp-array-index-hint-bonus.
24328 2014-05-21 Mark Wielaard <mjw@redhat.com>
24331 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
24332 version >= 3 or not strict DWARF.
24333 * langhooks.h (struct lang_hooks_for_types): Add
24334 enum_underlying_base_type.
24335 * langhooks.c (lhd_enum_underlying_base_type): New function.
24336 * gcc/langhooks.h (struct lang_hooks_for_types): Add
24337 enum_underlying_base_type.
24338 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
24339 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
24340 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
24342 2014-05-21 Richard Biener <rguenther@suse.de>
24344 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
24346 2014-05-21 John Marino <gnugcc@marino.st>
24348 * config.gcc (*-*-dragonfly*): New target.
24349 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
24350 * configure: Regenerate.
24351 * config/dragonfly-stdint.h: New.
24352 * config/dragonfly.h: New.
24353 * config/dragonfly.opt: New.
24354 * config/i386/dragonfly.h: New.
24355 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
24357 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24359 * tree.def (VOID_CST): New.
24360 * tree-core.h (TI_VOID): New.
24361 * tree.h (void_node): New.
24362 * tree.c (tree_node_structure_for_code, tree_code_size)
24363 (iterative_hash_expr): Handle VOID_CST.
24364 (build_common_tree_nodes): Initialize void_node.
24366 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
24368 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
24370 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
24372 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
24375 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
24376 flag_reorder_blocks_and_partition.
24377 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
24379 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
24382 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
24384 (*addc_r_t): Add new insn_and_split.
24386 2014-05-21 Jakub Jelinek <jakub@redhat.com>
24388 PR middle-end/61252
24389 * omp-low.c (handle_simd_reference): New function.
24390 (lower_rec_input_clauses): Use it. Defer adding reference
24391 initialization even for reduction without placeholder if in simd,
24392 handle it properly later on.
24394 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
24396 PR tree-optimization/60899
24397 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
24398 assume all static symbols will have definition wile parsing and
24399 check the do have definition later in compilation; check that
24400 variable referring symbol will be output before concluding that
24401 reference is safe; be conservative for referring local statics;
24402 be more precise about when comdat is output in other partition.
24404 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
24407 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
24409 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
24410 (ipa_inline): Loop inline_to_all_callers until no more aliases
24413 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
24415 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
24416 set writeonly flag only for vars actually written to.
24418 2014-05-20 Dehao Chen <dehao@google.com>
24420 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
24421 and callee count to get clone count.
24422 * tree-inline.c (expand_call_inline): Use callee count instead of bb
24423 count in copy_body.
24425 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
24427 PR rtl-optimization/61243
24428 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
24430 2014-05-20 Xinliang David Li <davidxl@google.com>
24432 * cgraphunit.c (walk_polymorphic_call_targets): Add
24433 dbgcnt and fopt-info support.
24434 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
24435 * ipa-devirt.c (ipa_devirt): Ditto.
24436 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
24437 * ipa.c (walk_polymorphic_call_targets): Ditto.
24438 * gimple-fold.c (fold_gimple_assign): Ditto.
24439 (gimple_fold_call): Ditto.
24440 * dbgcnt.def: New counter.
24442 2014-05-20 DJ Delorie <dj@redhat.com>
24444 * config/msp430/msp430.md (split): Don't allow subregs when
24445 splitting SImode adds.
24446 (andneghi): Fix subtraction logic.
24447 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
24449 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
24451 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
24453 * except.c (switch_to_exception_section, resolve_unique_section,
24454 get_named_text_section, default_function_rodata_section,
24455 align_variable, get_block_for_decl, default_section_type_flags):
24456 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
24457 * symtab.c (symtab_add_to_same_comdat_group,
24458 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
24459 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
24461 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
24462 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
24463 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
24464 (c6x_function_in_section_p): Likewise.
24465 * config/darwin.c (machopic_select_section): Likewise.
24466 * config/arm/arm.c (arm_function_in_section_p): Likewise.
24467 * config/mips/mips.c (mips_function_rodata_section): Likewise.
24468 * config/mep/mep.c (mep_select_section): LIkewise.
24469 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
24471 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
24473 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
24474 EH region of calls to pure functions that can throw an exception.
24475 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
24476 (copy_reference_ops_from_call): Also copy the EH region of the call if
24477 it can throw an exception.
24479 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24481 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
24482 nested VEC_SELECTs that are inverses of each other.
24484 2014-05-20 Richard Biener <rguenther@suse.de>
24486 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
24487 (extract_and_process_scc_for_name): not here.
24488 (cond_dom_walker::before_dom_children): Only process
24489 stmts that end the BB in interesting ways.
24490 (run_scc_vn): Mark param uses as visited.
24492 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24494 * config/arm/arm.md (arith_shiftsi): Do not predicate for
24497 2014-05-20 Nick Clifton <nickc@redhat.com>
24499 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
24500 (msp430_gimplify_va_arg_expr): New function.
24501 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
24503 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
24504 operand 0 in order to prevent confusion about the number of
24505 registers involved.
24507 2014-05-20 Richard Biener <rguenther@suse.de>
24509 PR tree-optimization/61221
24510 * tree-ssa-pre.c (el_to_update): Remove.
24511 (eliminate_dom_walker::before_dom_children): Handle released
24512 VDEFs by value-numbering them to the associated VUSE. Update
24513 stmt immediately for substituted call address.
24514 (eliminate): Remove delayed stmt updating code.
24515 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
24516 possibly late re-numbered vuses.
24517 (vn_reference_lookup_2): Adjust.
24518 (vn_reference_lookup_pieces): Likewise.
24519 (vn_reference_lookup): Likewise.
24521 2014-05-20 Richard Biener <rguenther@suse.de>
24523 * config.gcc: Remove need_64bit_hwint.
24524 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
24525 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
24527 * config.in: Regenerate.
24528 * configure: Likewise.
24530 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
24532 * doc/extend.texi: Create Label Attributes section,
24533 move all label attributes into it and reference it.
24535 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
24537 * arm.c (thumb1_reorg): When scanning backwards skip anything
24538 that's not a proper insn.
24540 2014-05-19 Richard Biener <rguenther@suse.de>
24542 PR tree-optimization/61221
24543 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
24544 Do nothing for unreachable blocks.
24545 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
24546 Improve unreachability detection.
24548 2014-05-19 Richard Biener <rguenther@suse.de>
24550 PR tree-optimization/61209
24551 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
24553 2014-05-19 Nick Clifton <nickc@redhat.com>
24555 * except.c (init_eh): Fix computation of builtin setjmp buffer
24556 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
24558 2014-05-19 Richard Biener <rguenther@suse.de>
24560 PR tree-optimization/61184
24561 * tree-vrp.c (is_negative_overflow_infinity): Use
24562 TREE_OVERFLOW_P and do that check first.
24563 (is_positive_overflow_infinity): Likewise.
24564 (is_overflow_infinity): Likewise.
24565 (vrp_operand_equal_p): Properly treat operands with
24566 differing overflow as not equal.
24568 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
24570 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
24571 shift simplification where it was intended.
24573 2014-05-19 Christian Bruel <christian.bruel@st.com>
24576 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
24578 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
24581 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
24584 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
24586 * reg-notes.def (CROSSING_JUMP): Likewise.
24587 * rtl.h (rtx_def): Update comment for jump flag.
24588 (CROSSING_JUMP_P): Define.
24589 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
24590 of a REG_CROSSING_JUMP note.
24591 * cfghooks.c (tidy_fallthru_edges): Likewise.
24592 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
24593 * emit-rtl.c (try_split): Likewise.
24594 * haifa-sched.c (sched_create_recovery_edges): Likewise.
24595 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
24596 * jump.c (redirect_jump_2): Likewise.
24597 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
24598 (relax_delay_slots): Likewise.
24599 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
24600 (bbit_di): Likewise.
24601 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
24602 * config/sh/sh.md (jump_compact): Likewise.
24603 * bb-reorder.c (rotate_loop): Likewise.
24604 (pass_duplicate_computed_gotos::execute): Likewise.
24605 (add_reg_crossing_jump_notes): Rename to...
24606 (update_crossing_jump_flags): ...this.
24607 (pass_partition_blocks::execute): Update accordingly.
24609 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
24611 * tree.h: Remove extraneous template <>.
24613 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
24615 * ipa.c (symtab_remove_unreachable_nodes): Remove
24616 symbol from comdat group if its body was eliminated.
24617 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
24618 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
24619 (symtab_unregister_node): ... this one.
24620 (verify_symtab_base): More strict checking of comdats.
24621 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
24623 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
24625 * tree-pass.h (make_pass_ipa_comdats): New pass.
24626 * timevar.def (TV_IPA_COMDATS): New timevar.
24627 * passes.def (pass_ipa_comdats): Add.
24628 * Makefile.in (OBJS): Add ipa-comdats.o
24629 * ipa-comdats.c: New file.
24631 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
24633 * ipa.c (update_visibility_by_resolution_info): New function.
24634 (function_and_variable_visibility): Use it.
24636 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
24638 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
24640 (FOR_EACH_DEFINED_SYMBOL): New macro.
24641 (varpool_first_static_initializer, varpool_next_static_initializer,
24642 varpool_first_defined_variable, varpool_next_defined_variable):
24644 (symtab_in_same_comdat_p): Correctly deal with inline functions.
24646 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24648 * ggc-page.c (ggc_handle_finalizers): Add comment.
24650 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24652 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
24653 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
24654 (ggc_internal_cleared_alloc): Likewise.
24655 * ggc-page.c (finalizer): New class.
24656 (vec_finalizer): Likewise.
24657 (globals::finalizers): New member.
24658 (globals::vec_finalizers): Likewise.
24659 (ggc_internal_alloc): Record the finalizer if any for the block being
24661 (ggc_handle_finalizers): New function.
24662 (ggc_collect): Call ggc_handle_finalizers.
24663 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
24665 (ggc_internal_cleared_alloc): Likewise.
24666 (finalize): New function.
24667 (need_finalization_p): Likewise.
24668 (ggc_alloc): Install the type's destructor as the finalizer if it
24669 might do something.
24670 (ggc_cleared_alloc): Likewise.
24671 (ggc_vec_alloc): Likewise.
24672 (ggc_cleared_vec_alloc): Likewise.
24674 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24676 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
24678 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24680 * alias.c (record_alias_subset): Adjust.
24681 * bitmap.c (bitmap_element_allocate): Likewise.
24682 (bitmap_gc_alloc_stat): Likewise.
24683 * cfg.c (init_flow): Likewise.
24684 (alloc_block): Likewise.
24685 (unchecked_make_edge): Likewise.
24686 * cfgloop.c (alloc_loop): Likewise.
24687 (flow_loops_find): Likewise.
24688 (rescan_loop_exit): Likewise.
24689 * cfgrtl.c (init_rtl_bb_info): Likewise.
24690 * cgraph.c (insert_new_cgraph_node_version): Likewise.
24691 (cgraph_allocate_node): Likewise.
24692 (cgraph_create_edge_1): Likewise.
24693 (cgraph_allocate_init_indirect_info): Likewise.
24694 * cgraphclones.c (cgraph_clone_edge): Likewise.
24695 * cgraphunit.c (add_asm_node): Likewise.
24696 (init_lowered_empty_function): Likewise.
24697 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
24698 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
24699 (alpha_use_linkage): Likewise.
24700 * config/arc/arc.c (arc_init_machine_status): Likewise.
24701 * config/arm/arm.c (arm_init_machine_status): Likewise.
24702 * config/avr/avr.c (avr_init_machine_status): Likewise.
24703 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
24704 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
24705 * config/cris/cris.c (cris_init_machine_status): Likewise.
24706 * config/darwin.c (machopic_indirection_name): Likewise.
24707 (darwin_build_constant_cfstring): Likewise.
24708 (darwin_enter_string_into_cfstring_table): Likewise.
24709 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
24710 * config/frv/frv.c (frv_init_machine_status): Likewise.
24711 * config/i386/i386.c (get_dllimport_decl): Likewise.
24712 (ix86_init_machine_status): Likewise.
24713 (assign_386_stack_local): Likewise.
24714 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
24715 (i386_pe_maybe_record_exported_symbol): Likewise.
24716 (i386_pe_record_stub): Likewise.
24717 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
24718 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
24719 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
24720 (m32c_note_pragma_address): Likewise.
24721 * config/mep/mep.c (mep_init_machine_status): Likewise.
24722 (mep_note_pragma_flag): Likewise.
24723 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
24724 (mips16_local_alias): Likewise.
24725 (mips_init_machine_status): Likewise.
24726 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
24727 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
24728 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
24729 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
24730 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
24731 * config/pa/pa.c (pa_init_machine_status): Likewise.
24732 (pa_get_deferred_plabel): Likewise.
24733 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
24734 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
24735 (rs6000_init_machine_status): Likewise.
24736 (output_toc): Likewise.
24737 * config/s390/s390.c (s390_init_machine_status): Likewise.
24738 * config/score/score.c (score_output_external): Likewise.
24739 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
24740 * config/spu/spu.c (spu_init_machine_status): Likewise.
24741 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
24742 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
24743 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
24744 * coverage.c (coverage_end_function): Likewise.
24745 * dbxout.c (dbxout_init): Likewise.
24746 * doc/gty.texi: Don't mention variable_size attribute.
24747 * dwarf2cfi.c (new_cfi): Adjust.
24748 (new_cfi_row): Likewise.
24749 (copy_cfi_row): Likewise.
24750 (create_cie_data): Likewise.
24751 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
24752 (new_loc_descr): Likewise.
24753 (find_AT_string_in_table): Likewise.
24754 (add_addr_table_entry): Likewise.
24755 (new_die): Likewise.
24756 (add_var_loc_to_decl): Likewise.
24757 (clone_die): Likewise.
24758 (clone_as_declaration): Likewise.
24759 (break_out_comdat_types): Likewise.
24760 (new_loc_list): Likewise.
24761 (add_loc_descr_to_each): Likewise.
24762 (add_location_or_const_value_attribute): Likewise.
24763 (add_linkage_name): Likewise.
24764 (lookup_filename): Likewise.
24765 (dwarf2out_var_location): Likewise.
24766 (new_line_info_table): Likewise.
24767 (dwarf2out_init): Likewise.
24768 (mem_loc_descriptor): Likewise.
24769 (loc_descriptor): Likewise.
24770 (add_const_value_attribute): Likewise.
24771 (tree_add_const_value_attribute): Likewise.
24772 (comp_dir_string): Likewise.
24773 (dwarf2out_vms_debug_main_pointer): Likewise.
24774 (string_cst_pool_decl): Likewise.
24775 * emit-rtl.c (set_mem_attrs): Likewise.
24776 (get_reg_attrs): Likewise.
24777 (start_sequence): Likewise.
24778 (init_emit): Likewise.
24779 (init_emit_regs): Likewise.
24780 * except.c (init_eh_for_function): Likewise.
24781 (gen_eh_region): Likewise.
24782 (gen_eh_region_catch): Likewise.
24783 (gen_eh_landing_pad): Likewise.
24784 (add_call_site): Likewise.
24785 * function.c (add_frame_space): Likewise.
24786 (insert_temp_slot_address): Likewise.
24787 (assign_stack_temp_for_type): Likewise.
24788 (get_hard_reg_initial_val): Likewise.
24789 (allocate_struct_function): Likewise.
24790 (prepare_function_start): Likewise.
24791 (types_used_by_var_decl_insert): Likewise.
24792 * gengtype.c (variable_size_p): Remove function.
24793 (enum alloc_quantity): Remove enum.
24794 (write_typed_alloc_def): Remove function.
24795 (write_typed_struct_alloc_def): Likewise.
24796 (write_typed_typedef_alloc_def): Likewise.
24797 (write_typed_alloc_defns): Likewise.
24799 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
24800 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
24801 * ggc.h (ggc_alloc): new function.
24802 (ggc_cleared_alloc): Likewise.
24803 (ggc_vec_alloc): Template on type of vector element, and remove
24804 element size argument.
24805 (ggc_cleared_vec_alloc): Likewise.
24806 * gimple.c (gimple_build_omp_for): Adjust.
24807 (gimple_copy): Likewise.
24808 * ipa-cp.c (get_replacement_map): Likewise.
24809 (find_aggregate_values_for_callers_subset): Likewise.
24810 (known_aggs_to_agg_replacement_list): Likewise.
24811 * ipa-devirt.c (get_odr_type): Likewise.
24812 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
24813 (read_agg_replacement_chain): Likewise.
24814 * loop-iv.c (get_simple_loop_desc): Likewise.
24815 * lto-cgraph.c (input_node_opt_summary): Likewise.
24816 * lto-section-in.c (lto_new_in_decl_state): Likewise.
24817 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
24818 (input_eh_region): Likewise.
24819 (input_eh_lp): Likewise.
24820 (input_cfg): Likewise.
24821 * optabs.c (set_optab_libfunc): Likewise.
24822 (init_tree_optimization_optabs): Likewise.
24823 (set_conv_libfunc): Likewise.
24824 * passes.c (do_per_function_toporder): Likewise.
24825 * rtl.h: Don't use variable_size gty attribute.
24826 * sese.c (if_region_set_false_region): Adjust.
24827 * stringpool.c (gt_pch_save_stringpool): Likewise.
24828 * target-globals.c (save_target_globals): Likewise.
24829 * toplev.c (general_init): Likewise.
24830 * trans-mem.c (record_tm_replacement): Likewise.
24831 (split_bb_make_tm_edge): Likewise.
24832 * tree-cfg.c (move_sese_region_to_fn): Likewise.
24833 * tree-data-ref.h (lambda_vector_new): Likewise.
24834 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
24835 * tree-iterator.c (tsi_link_before): Likewise.
24836 (tsi_link_after): Likewise.
24837 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
24838 * tree-ssa-loop-niter.c (record_estimate): Likewise.
24839 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
24840 * tree-ssa-operands.h: Don't use variable_size gty attribute.
24841 * tree-ssa.c (init_tree_ssa): Adjust.
24842 * tree-ssanames.c (set_range_info): Likewise.
24843 (get_ptr_info): Likewise.
24844 (duplicate_ssa_name_ptr_info): Likewise.
24845 (duplicate_ssa_name_range_info): Likewise.
24846 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
24847 (unpack_ts_fixed_cst_value_fields): Likewise.
24848 * tree.c (build_fixed): Likewise.
24849 (build_real): Likewise.
24850 (build_string): Likewise.
24851 (decl_priority_info): Likewise.
24852 (decl_debug_expr_insert): Likewise.
24853 (decl_value_expr_insert): Likewise.
24854 (decl_debug_args_insert): Likewise.
24855 (type_hash_add): Likewise.
24856 (build_omp_clause): Likewise.
24857 * ubsan.c (decl_for_type_insert): Likewise.
24858 * varasm.c (get_unnamed_section): Likewise.
24859 (get_noswitch_section): Likewise.
24860 (get_section): Likewise.
24861 (get_block_for_section): Likewise.
24862 (create_block_symbol): Likewise.
24863 (build_constant_desc): Likewise.
24864 (create_constant_pool): Likewise.
24865 (force_const_mem): Likewise.
24866 (record_tm_clone_pair): Likewise.
24867 * varpool.c (varpool_create_empty_node): Likewise.
24869 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24871 * dwarf2out.c (tree_add_const_value_attribute): Call
24872 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
24873 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
24874 instead of ggc_internal_<x>alloc_stat.
24875 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
24876 (ggc_realloc): Likewise.
24877 * ggc-none.c (ggc_internal_alloc): Likewise.
24878 (ggc_internal_cleared_alloc): Likewise.
24879 * ggc-page.c: Likewise.
24880 * ggc.h (ggc_internal_alloc_stat): Likewise.
24881 (ggc_internal_alloc): Remove macro.
24882 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
24883 (ggc_internal_cleared_alloc): Remove macro.
24884 (GGC_RESIZEVEC): Adjust.
24885 (ggc_resizevar): Remove macro.
24886 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
24887 (ggc_internal_cleared_vec_alloc_stat): Likewise.
24888 (ggc_internal_vec_cleared_alloc): Remove macro.
24889 (ggc_alloc_atomic_stat): Drop _stat suffix.
24890 (ggc_alloc_atomic): Remove macro.
24891 (ggc_alloc_cleared_atomic): Remove macro.
24892 (ggc_alloc_string_stat): Drop _stat suffix.
24893 (ggc_alloc_string): Remove macro.
24894 (ggc_alloc_rtx_def_stat): Adjust.
24895 (ggc_alloc_tree_node_stat): Likewise.
24896 (ggc_alloc_cleared_tree_node_stat): Likewise.
24897 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
24898 (ggc_alloc_cleared_simd_clone_stat): Likewise.
24899 * gimple.c (gimple_build_omp_for): Likewise.
24900 (gimple_copy): Likewise.
24901 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
24902 * toplev.c (realloc_for_line_map): Adjust.
24903 * tree-data-ref.h (lambda_vector_new): Likewise.
24904 * tree-phinodes.c (allocate_phi_node): Likewise.
24905 * tree.c (grow_tree_vec_stat): Likewise.
24906 * vec.h (va_gc::reserve): Adjust.
24908 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
24910 * config/microblaze/microblaze.c (break_handler): New Declaration.
24911 (microblaze_break_function_p,microblaze_is_break_handler): New.
24912 (compute_frame_size): Use microblaze_break_function_p.
24913 Add the test of break_handler.
24914 (microblaze_function_prologue) : Add the test of variable
24915 break_handler. Check the fnname by BREAK_HANDLER_NAME.
24916 (microblaze_function_epilogue) : Add the test of break_handler.
24917 (microblaze_globalize_label) : Add the test of break_handler.
24918 Check the name by BREAK_HANDLER_NAME.
24920 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
24922 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
24923 microblaze_is_break_handler test.
24924 (call_internal1,call_value_intern): Use microblaze_break_function_p.
24925 Use SYMBOL_REF_DECL.
24927 * config/microblaze/microblaze-protos.h
24928 (microblaze_break_function_p,microblaze_is_break_handler):
24931 * doc/extend.texi (MicroBlaze break_handler Functions): Document
24932 new MicroBlaze break_handler functions.
24934 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
24936 * doc/extend.texi (Size of an asm): Move node text according
24937 to its @menu entry position.
24939 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
24941 PR tree-optimization/61140
24942 PR tree-optimization/61150
24943 PR tree-optimization/61197
24944 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
24946 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
24948 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
24950 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
24952 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
24953 __SIZEOF_INT128__ is defined.
24955 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
24957 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
24958 (rs6000_delegitimize_address): Use it.
24960 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
24962 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
24963 inplace argument. Store the new address in the original MEM when true.
24964 * emit-rtl.c (change_address_1): Likewise.
24965 (adjust_address_1, adjust_automodify_address_1, offset_address):
24966 Update accordingly.
24967 * rtl.h (plus_constant): Add an inplace argument.
24968 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
24969 when true. Avoid generating (plus X (const_int 0)).
24970 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
24971 in-place. Pass true to plus_constant.
24972 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
24974 2014-05-16 Dehao Chen <dehao@google.com>
24976 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
24978 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
24981 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
24983 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
24985 2014-05-16 Dehao Chen <dehao@google.com>
24987 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
24988 optimize_function_for_size_p.
24989 * regs.h (REG_FREQ_FROM_BB): Likewise.
24991 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
24994 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
24995 negt_reg_operand cases.
24996 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
24998 * config/sh/predicates.md (cbranch_treg_value): Simplify.
25000 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
25002 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
25005 2014-05-16 David Malcolm <dmalcolm@redhat.com>
25008 2014-04-29 David Malcolm <dmalcolm@redhat.com>
25010 * tree-cfg.c (dump_function_to_file): Dump the return type of
25011 functions, in a line to itself before the function body, mimicking
25012 the layout of a C function.
25014 2014-05-16 Dehao Chen <dehao@google.com>
25016 * cfghooks.c (make_forwarder_block): Use direct computation to
25017 get fall-through edge's count and frequency.
25019 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
25021 * config/arc/arc.c (arc_init): Fix typo in error message.
25022 * config/i386/i386.c (ix86_expand_builtin): Likewise.
25023 (split_stack_prologue_scratch_regno): Likewise.
25024 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
25025 word from error message.
25027 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
25029 * ira-costs.c: Fix typo in comment.
25031 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
25033 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
25035 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
25037 * varpool.c (dump_varpool_node): Dump write-only flag.
25038 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
25040 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
25041 write-only variables.
25042 * ipa.c (process_references): New function.
25043 (set_readonly_bit): New function.
25044 (set_writeonly_bit): New function.
25045 (clear_addressable_bit): New function.
25046 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
25047 fix handling of aliases.
25048 * cgraph.h (struct varpool_node): Add writeonly flag.
25050 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
25052 PR rtl-optimization/60969
25053 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
25054 Calculate costs for this case.
25056 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
25058 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
25059 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
25061 2014-05-16 Richard Biener <rguenther@suse.de>
25063 PR tree-optimization/61194
25064 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
25065 bool patterns ending in a COND_EXPR.
25067 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25069 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
25071 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25073 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
25074 where we were unable to cost an RTX.
25076 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25078 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
25081 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25082 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25084 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
25086 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25087 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25089 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
25090 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
25092 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25093 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25095 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
25098 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25099 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25101 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
25104 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25105 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25107 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
25108 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
25110 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25111 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25113 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
25114 rotates and shifts.
25116 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25117 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25119 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
25120 ZERO_EXTEND and SIGN_EXTEND better.
25122 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25123 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25125 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
25126 logical operations.
25128 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25129 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25131 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
25132 costs when costing loads and stores to memory.
25134 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25135 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
25137 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
25140 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25142 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
25144 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25145 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25147 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
25149 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
25151 (aarch64_rtx_mult_cost): New.
25152 (aarch64_rtx_costs): Use it, refactor as appropriate.
25154 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25155 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25157 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
25158 emit instructions, return number of instructions which would
25160 (aarch64_add_constant): Update call to aarch64_build_constant.
25161 (aarch64_output_mi_thunk): Likewise.
25162 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
25165 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25167 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
25168 (TARGET_RTX_COSTS): Call it.
25170 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25172 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
25173 (cortexa57_vector_cost): Likewise.
25174 (cortexa57_tunings): Use them.
25176 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25178 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
25179 (cpu_addrcost_table): Use it.
25180 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
25181 (aarch64_address_cost): Rewrite using aarch64_classify_address,
25184 2014-05-16 Richard Biener <rguenther@suse.de>
25186 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
25187 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
25188 (visit_phi): Ignore edges marked as not executable.
25189 (class cond_dom_walker): New.
25190 (cond_dom_walker::before_dom_children): Value-number
25191 control statements and mark successor edges as not
25192 executable if possible.
25193 (run_scc_vn): First walk all control statements in
25194 dominator order, marking edges as not executable.
25195 * tree-inline.c (copy_edges_for_bb): Be not confused
25196 about random edge flags.
25198 2014-05-16 Richard Biener <rguenther@suse.de>
25200 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
25202 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
25205 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
25206 (__TM_simple_begin): Use it.
25207 (__TM_begin): Likewise.
25209 2014-05-15 Martin Jambor <mjambor@suse.cz>
25212 * ipa-prop.c (update_indirect_edges_after_inlining): Check
25213 type_preserved flag when the indirect edge is polymorphic.
25215 2014-05-15 Martin Jambor <mjambor@suse.cz>
25217 PR tree-optimization/61090
25218 * tree-sra.c (sra_modify_expr): Pass the current gsi to
25219 build_ref_for_model.
25221 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25223 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
25224 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
25226 2014-05-15 Jakub Jelinek <jakub@redhat.com>
25228 PR tree-optimization/61158
25229 * fold-const.c (fold_binary_loc): If X is zero-extended and
25230 shiftc >= prec, make sure zerobits is all ones instead of
25231 invoking undefined behavior.
25233 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25235 * regcprop.h: New file.
25236 * regcprop.c (skip_debug_insn_p): New decl.
25237 (replace_oldest_value_reg): Check skip_debug_insn_p.
25238 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
25239 * shrink-wrap.c: Include regcprop.h.
25240 (prepare_shrink_wrap): Call
25241 copyprop_hardreg_forward_bb_without_debug_insn.
25243 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25245 * shrink-wrap.h: Update comment.
25246 * shrink-wrap.c: Update comment.
25247 (next_block_for_reg): Rename to live_edge_for_reg.
25248 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
25249 (move_insn_for_shrink_wrap): Split live_edge.
25250 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
25252 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
25254 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
25256 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
25257 * config/sparc/sparc.md (fptype_ut699): New attribute.
25258 (in_branch_delay): Return false if -mfix-ut699 is specified and
25259 fptype_ut699 is set to single.
25260 (truncdfsf2): Add fptype_ut699 attribute.
25261 (fix_truncdfsi2): Likewise.
25262 (floatsisf2): Change fptype attribute.
25263 (fix_truncsfsi2): Likewise.
25264 (negtf2_notv9): Delete.
25265 (negtf2_v9): Likewise.
25266 (negtf2_hq): New instruction.
25267 (negtf2): New instruction and splitter.
25268 (negdf2_notv9): Rewrite.
25269 (abstf2_notv9): Delete.
25270 (abstf2_hq_v9): Likewise.
25271 (abstf2_v9): Likewise.
25272 (abstf2_hq): New instruction.
25273 (abstf2): New instruction and splitter.
25274 (absdf2_notv9): Rewrite.
25276 2014-05-14 Cary Coutant <ccoutant@google.com>
25279 * opts.c (common_handle_option): Don't special-case "-g".
25280 (set_debug_level): Default to at least level 2 with "-g".
25282 2014-05-14 DJ Delorie <dj@redhat.com>
25284 * config/msp430/msp430.c (msp430_builtin): Add
25285 MSP430_BUILTIN_DELAY_CYCLES.
25286 (msp430_init_builtins): Register void __delay_cycles(long long).
25287 (msp430_builtin_decl): Add it.
25288 (cg_magic_constant): New.
25289 (msp430_expand_delay_cycles): New.
25290 (msp430_expand_builtin): Call it.
25291 (msp430_print_operand_raw): Change integer printing from "int" to
25293 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
25294 (delay_cycles_start): New.
25295 (delay_cycles_end): New.
25296 (delay_cycles_32): New.
25297 (delay_cycles_32x): New.
25298 (delay_cycles_16): New.
25299 (delay_cycles_16x): New.
25300 (delay_cycles_2): New.
25301 (delay_cycles_1): New.
25302 * doc/extend.texi: Document __delay_cycles().
25304 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
25306 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
25307 length attribute computation.
25309 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
25312 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
25314 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
25317 * config/sparc/sparc.md: Fix types of low and high in DI constant
25318 splitter. Use gen_int_mode in some other splitters.
25320 2014-05-14 Martin Jambor <mjambor@suse.cz>
25323 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
25325 2014-05-14 James Norris <jnorris@codesourcery.com>
25327 * omp-low.c (expand_parallel_call): Remove shadow variable.
25328 (expand_omp_taskreg): Likewise.
25330 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
25332 * common/config/i386/i386-common.c
25333 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
25334 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
25335 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
25336 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
25337 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
25338 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
25339 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
25340 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
25341 xsavecintrin.h, xsavesintrin.h.
25342 (x86_64-*-*): Ditto.
25343 * config/i386/clflushoptintrin.h: New.
25344 * config/i386/xsavecintrin.h: Ditto.
25345 * config/i386/xsavesintrin.h: Ditto.
25346 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
25347 (bit_XSAVES): Ditto.
25348 (bit_XSAVES): Ditto.
25349 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
25350 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
25352 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25353 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
25354 OPTION_MASK_ISA_XSAVES.
25355 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
25356 -mxsavec, -mxsaves.
25357 (PTA_CLFLUSHOPT) Define.
25358 (PTA_XSAVEC): Ditto.
25359 (PTA_XSAVES): Ditto.
25360 (ix86_option_override_internal): Handle new options.
25361 (ix86_valid_target_attribute_inner_p): Ditto.
25362 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
25363 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
25364 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
25365 (bdesc_special_args): Add __builtin_ia32_xsaves,
25366 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
25367 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
25368 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
25369 (ix86_expand_builtin): Handle new builtins.
25370 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
25371 (TARGET_CLFLUSHOPT_P): Ditto.
25372 (TARGET_XSAVEC): Ditto.
25373 (TARGET_XSAVEC_P): Ditto.
25374 (TARGET_XSAVES): Ditto.
25375 (TARGET_XSAVES_P): Ditto.
25376 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
25377 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
25378 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
25380 (ANY_XRSTOR64): Ditto.
25382 (xrstor): Change into <xrstor>.
25383 (xrstor_rex64): Change into <xrstor>_rex64.
25384 (xrstor64): Change into <xrstor>64
25386 * config/i386/i386.opt (mclflushopt): New.
25389 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
25391 * doc/invoke.texi: Document new options.
25393 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
25395 PR rtl-optimization/60866
25396 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
25397 Default it to -1. Pass it down to init_simplejump_data.
25398 (init_simplejump_data): New parameter old_seqno. Pass it down
25399 to get_seqno_for_a_jump.
25400 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
25401 initializing new jump seqno as a last resort. Add comment.
25402 (sel_redirect_edge_and_branch): Save old seqno of the conditional
25403 jump and pass it down to sel_init_new_insn.
25404 (sel_redirect_edge_and_branch_force): Likewise.
25406 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
25408 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
25409 shifted values to avoid build warning.
25411 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
25413 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
25414 * cfgrtl.c (rtl_merge_blocks): Fix comment.
25415 (cfg_layout_merge_blocks): Likewise.
25416 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
25418 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
25420 PR rtl-optimization/60901
25421 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
25422 bb predecessor belongs to the same scheduling region. Adjust comment.
25424 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
25426 * doc/sourcebuild.texi: (dfp_hw): Document.
25427 (p8vector_hw): Likewise.
25428 (powerpc_eabi_ok): Likewise.
25429 (powerpc_elfv2): Likewise.
25430 (powerpc_htm_ok): Likewise.
25431 (ppc_recip_hw): Likewise.
25432 (vsx_hw): Likewise.
25434 2014-05-13 Cary Coutant <ccoutant@google.com>
25436 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
25438 2014-05-13 David Malcolm <dmalcolm@redhat.com>
25440 * gengtype-parse.c (require3): Eliminate in favor of...
25442 (require_template_declaration): Update to support optional single *
25445 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
25446 (create_user_defined_type): Handle a single level of explicit
25447 pointerness within template arguments.
25448 (struct write_types_data): Add field "kind".
25449 (filter_type_name): Handle "*" character.
25450 (write_user_func_for_structure_ptr): Require a write_types_data
25451 rather than just a prefix string, so that we can look up the kind
25452 of the wtd and use it as an index into wrote_user_func_for_ptr,
25453 ensuring that such functions are written at most once. Support
25454 subclasses by invoking the marking function of the ultimate base class.
25455 (write_user_func_for_structure_body): Require a write_types_data
25456 rather than just a prefix string, so that we can pass this to
25457 write_user_func_for_structure_ptr.
25458 (write_func_for_structure): Likewise.
25459 (ggc_wtd): Add initializer of new "kind" field.
25460 (pch_wtd): Likewise.
25462 * gengtype.h (enum write_types_kinds): New.
25463 (struct type): Add field wrote_user_func_for_ptr to the "s"
25466 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
25468 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
25469 instead of const_binop.
25470 (fold_binary_loc): Likewise.
25472 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
25474 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
25475 calculation to match get_ref_base_and_extent.
25477 2014-05-13 Catherine Moore <clm@codesourcery.com>
25478 Sandra Loosemore <sandra@codesourcery.com>
25480 * configure.ac: Fix assembly for explicit JALR relocation check.
25481 * configure: Regenerate.
25483 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25485 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
25486 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
25487 Remove associated type declarations and initialisations.
25488 (arm_expand_neon_builtin): Likewise.
25489 (neon_emit_pair_result_insn): Delete.
25490 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
25491 * config/arm/neon.md (neon_vtrn<mode>): Delete.
25492 (neon_vzip<mode>): Likewise.
25493 (neon_vuzp<mode>): Likewise.
25495 2014-05-13 Richard Biener <rguenther@suse.de>
25498 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
25499 it needs revisiting whether the call still may be tail-called.
25501 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25503 * rtl.def (SYMBOL_REF): Remove middle "0" field.
25504 * rtl.h (block_symbol): Reduce number of fields to 2.
25505 (rtx_def): Add u2.symbol_ref_flags.
25506 (SYMBOL_REF_FLAGS): Use it.
25507 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
25508 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
25509 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
25510 Lower index of SYMBOL_REF_DATA.
25511 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
25512 Print SYMBOL_REF_FLAGS at the same time.
25513 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
25515 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25517 * rtl.def (VAR_LOCATION): Remove "i" field.
25518 * rtl.h (rtx_def): Add u2.var_location_status.
25519 (PAT_VAR_LOCATION_STATUS): Use it.
25520 (gen_rtx_VAR_LOCATION): Declare.
25521 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
25522 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
25523 * var-tracking.c (emit_note_insn_var_location): Remove casts.
25525 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25527 * rtl.def (scratch): Fix outdated comment and remove "0" field.
25528 * gengtype.c (adjust_field_rtx_def): Update accordingly.
25530 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25532 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
25533 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
25534 * rtl.h (rtx_def): Add insn_uid to u2 field.
25535 (RTX_FLAG_CHECK8): Delete in favor of...
25536 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
25537 (INSN_DELETED_P): Update accordingly.
25538 (INSN_UID): Use u2.insn_uid.
25539 (INSN_CHAIN_CODE_P): Define.
25540 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
25541 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
25542 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
25543 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
25544 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
25545 indices accordingly.
25546 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
25547 Update indices for insn-chain rtxes.
25548 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
25549 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
25550 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
25551 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
25552 * combine.c (try_combine): Likewise.
25553 * ira.c (setup_prohibited_mode_move_regs): Likewise.
25555 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25557 * rtl.def (REG): Remove middle field.
25558 * rtl.h (rtx_def): Add orignal_regno to u2.
25559 (ORIGINAL_REGNO): Use it instead of field 1.
25560 (REG_ATTRS): Lower field index accordingly.
25561 * gengtype.c (adjust_field_rtx_def): Remove handling of
25562 ORIGINAL_REGNO. Move REG_ATTRS index down.
25563 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
25564 code that prints the REGNO.
25566 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25568 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
25571 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25573 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
25575 2014-05-13 Bin Cheng <bin.cheng@arm.com>
25577 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
25578 (alloc_iv): Lower base expressions containing ADDR_EXPR.
25580 2014-05-13 Ian Bolton <ian.bolton@arm.com>
25582 * config/aarch64/aarch64-protos.h
25583 (aarch64_hard_regno_caller_save_mode): New prototype.
25584 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
25586 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
25588 2014-05-13 Christian Bruel <christian.bruel@st.com>
25590 * target.def (mode_switching): New hook vector.
25591 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
25592 (mode_exit, modepriority_to_mode): Likewise.
25593 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
25594 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25595 * target.h: Include tm.h and hard-reg-set.h.
25596 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
25597 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
25598 * doc/tm.texi Regenerate.
25599 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
25600 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25601 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
25602 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
25603 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
25604 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25605 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
25606 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
25607 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
25608 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
25609 (ix86_emit_mode_set): Hookify.
25610 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
25612 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25613 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
25614 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
25615 (epiphany_mode_priority_to_mode): Remove declaration.
25616 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
25617 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
25618 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
25620 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
25621 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
25622 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
25624 2014-05-13 Jakub Jelinek <jakub@redhat.com>
25627 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
25628 is const0_rtx, return immediately. Don't test count == 0 when
25631 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25633 * Makefile.in: add shrink-wrap.o.
25634 * config/i386/i386.c: include "shrink-wrap.h"
25635 * function.c: Likewise.
25636 (requires_stack_frame_p, next_block_for_reg,
25637 move_insn_for_shrink_wrap, prepare_shrink_wrap,
25638 dup_block_and_redirect): Move to shrink-wrap.c
25639 (thread_prologue_and_epilogue_insns): Extract three code segments
25640 as functions in shrink-wrap.c
25641 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
25643 * shrink-wrap.c: New file.
25644 * shrink-wrap.h: New file.
25646 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
25648 * doc/extend.texi: Reflect current numbers of pragmas. Remove
25649 reference to Solaris.
25651 2014-05-12 Mike Stump <mikestump@comcast.net>
25654 * genattrtab.c (filename): Add.
25655 (convert_set_attr_alternative): Improve error message.
25656 (check_defs): Restore read_md_filename for error messages.
25657 (gen_insn): Save filename.
25659 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
25661 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
25662 -fno-local-ivars and -fivar-visibility.
25663 * c-family/c.opt: Make -Wshadow also implicitly enable
25666 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
25668 * doc/tm.texi: Remove reference to deleted macro.
25669 * doc/tm.texi.in: Likewise.
25671 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
25674 * config/avr/avr.c (avr_out_store_psi): Use correct constant
25677 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
25680 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
25681 * config/arm/aout.h (License): Same.
25682 * config/arm/bpabi.h (License): Same.
25683 * config/arm/elf.h (License): Same.
25684 * config/arm/linux-elf.h (License): Same.
25685 * config/arm/linux-gas.h (License): Same.
25686 * config/arm/netbsd-elf.h (License): Same.
25687 * config/arm/uclinux-eabi.h (License): Same.
25688 * config/arm/uclinux-elf.h (License): Same.
25689 * config/arm/vxworks.h (License): Same.
25691 2014-05-11 Jakub Jelinek <jakub@redhat.com>
25693 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
25694 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
25695 number of operands to 3.
25696 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
25697 * tree-nested.c (convert_nonlocal_omp_clauses,
25698 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
25699 * gimplify.c (gimplify_scan_omp_clauses): Handle
25700 OMP_CLAUSE_LINEAR_STMT.
25701 * omp-low.c (lower_rec_input_clauses): Fix typo.
25702 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
25703 cast between Fortran boolean_type_node and C _Bool if
25706 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
25708 PR tree-optimization/61136
25709 * wide-int.h (multiple_of_p): Define a version that doesn't return
25711 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
25712 integer_zerop/const_binop pair.
25713 (multiple_of_p): Likewise, converting both operands to widest_int
25716 2014-05-09 Teresa Johnson <tejohnson@google.com>
25718 * cgraphunit.c (analyze_functions): Use correct dump file.
25720 2014-05-09 Florian Weimer <fweimer@redhat.com>
25722 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
25724 (stack_protect_return_slot_p): New function.
25725 (expand_used_vars): Call stack_protect_decl_p and
25726 stack_protect_return_slot_p for -fstack-protector-strong.
25728 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
25729 Andrew Haley <aph@redhat.com>
25730 Richard Sandiford <rdsandiford@googlemail.com>
25732 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
25735 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
25737 PR middle-end/61111
25738 * fold-const.c (fold_binary_loc): Changed width of mask.
25740 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
25742 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
25743 unsigned int initializers for regno_in, regno_out.
25745 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
25748 * config/avr/avr.md (cc): Add new attribute set_vzn.
25749 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
25750 Set cc insn attribute to set_vzn instead of set_zn for alternatives
25751 with INC, DEC or NEG.
25752 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
25753 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
25754 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
25756 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25759 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25761 * wide-int.cc (UTItype): Define.
25762 (UDWtype): Define for appropriate W_TYPE_SIZE.
25764 2014-05-09 Richard Biener <rguenther@suse.de>
25766 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
25767 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
25768 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
25769 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
25770 ssa_propagate): Adjust.
25772 2014-05-08 Jeff Law <law@redhat.com>
25774 PR tree-optimization/61009
25775 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
25776 tri-state rather than a boolean. When a block is too big to
25777 thread through, inform caller via negative return value.
25778 (thread_across_edge): If a block was too big for normal threading,
25779 then it's too big for a joiner too, so remove temporary equivalences
25780 and return immediately.
25782 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
25783 Matthias Klose <doko@ubuntu.com>
25786 * optc-gen.awk: Fix option handling for -Wunused-parameter.
25788 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
25791 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
25793 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
25796 * config/alpha/alpha.c: Include gimple-iterator.h.
25797 (alpha_gimple_fold_builtin): New function. Move
25798 ALPHA_BUILTIN_UMULH folding from ...
25799 (alpha_fold_builtin): ... here.
25800 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
25802 2014-05-08 Wei Mi <wmi@google.com>
25805 * config/i386/i386.c (ix86_compute_frame_layout): Update
25806 preferred_stack_boundary for call, expanded from tls descriptor.
25807 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
25808 to depend on SP register.
25809 (*tls_local_dynamic_base_32_gnu): Ditto.
25810 (*tls_local_dynamic_32_once): Ditto.
25811 (tls_global_dynamic_64_<mode>): Set
25812 ix86_tls_descriptor_calls_expanded_in_cfun.
25813 (tls_local_dynamic_base_64_<mode>): Ditto.
25814 (tls_global_dynamic_32): Set
25815 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
25816 to depend on SP register.
25817 (tls_local_dynamic_base_32): Ditto.
25819 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25821 * config/arm/arm_neon.h: Update comment.
25822 * config/arm/neon-docgen.ml: Delete.
25823 * config/arm/neon-gen.ml: Delete.
25824 * doc/arm-neon-intrinsics.texi: Update comment.
25826 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25828 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
25830 (vand, vorr, veor, vorn, vbic): Remove.
25831 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
25833 (neon_vsub_unspec): Likewise.
25834 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
25836 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25838 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
25839 (vadd_s16): Likewise.
25840 (vadd_s32): Likewise.
25841 (vadd_f32): Likewise.
25842 (vadd_u8): Likewise.
25843 (vadd_u16): Likewise.
25844 (vadd_u32): Likewise.
25845 (vadd_s64): Likewise.
25846 (vadd_u64): Likewise.
25847 (vaddq_s8): Likewise.
25848 (vaddq_s16): Likewise.
25849 (vaddq_s32): Likewise.
25850 (vaddq_s64): Likewise.
25851 (vaddq_f32): Likewise.
25852 (vaddq_u8): Likewise.
25853 (vaddq_u16): Likewise.
25854 (vaddq_u32): Likewise.
25855 (vaddq_u64): Likewise.
25856 (vmul_s8): Likewise.
25857 (vmul_s16): Likewise.
25858 (vmul_s32): Likewise.
25859 (vmul_f32): Likewise.
25860 (vmul_u8): Likewise.
25861 (vmul_u16): Likewise.
25862 (vmul_u32): Likewise.
25863 (vmul_p8): Likewise.
25864 (vmulq_s8): Likewise.
25865 (vmulq_s16): Likewise.
25866 (vmulq_s32): Likewise.
25867 (vmulq_f32): Likewise.
25868 (vmulq_u8): Likewise.
25869 (vmulq_u16): Likewise.
25870 (vmulq_u32): Likewise.
25871 (vsub_s8): Likewise.
25872 (vsub_s16): Likewise.
25873 (vsub_s32): Likewise.
25874 (vsub_f32): Likewise.
25875 (vsub_u8): Likewise.
25876 (vsub_u16): Likewise.
25877 (vsub_u32): Likewise.
25878 (vsub_s64): Likewise.
25879 (vsub_u64): Likewise.
25880 (vsubq_s8): Likewise.
25881 (vsubq_s16): Likewise.
25882 (vsubq_s32): Likewise.
25883 (vsubq_s64): Likewise.
25884 (vsubq_f32): Likewise.
25885 (vsubq_u8): Likewise.
25886 (vsubq_u16): Likewise.
25887 (vsubq_u32): Likewise.
25888 (vsubq_u64): Likewise.
25889 (vand_s8): Likewise.
25890 (vand_s16): Likewise.
25891 (vand_s32): Likewise.
25892 (vand_u8): Likewise.
25893 (vand_u16): Likewise.
25894 (vand_u32): Likewise.
25895 (vand_s64): Likewise.
25896 (vand_u64): Likewise.
25897 (vandq_s8): Likewise.
25898 (vandq_s16): Likewise.
25899 (vandq_s32): Likewise.
25900 (vandq_s64): Likewise.
25901 (vandq_u8): Likewise.
25902 (vandq_u16): Likewise.
25903 (vandq_u32): Likewise.
25904 (vandq_u64): Likewise.
25905 (vorr_s8): Likewise.
25906 (vorr_s16): Likewise.
25907 (vorr_s32): Likewise.
25908 (vorr_u8): Likewise.
25909 (vorr_u16): Likewise.
25910 (vorr_u32): Likewise.
25911 (vorr_s64): Likewise.
25912 (vorr_u64): Likewise.
25913 (vorrq_s8): Likewise.
25914 (vorrq_s16): Likewise.
25915 (vorrq_s32): Likewise.
25916 (vorrq_s64): Likewise.
25917 (vorrq_u8): Likewise.
25918 (vorrq_u16): Likewise.
25919 (vorrq_u32): Likewise.
25920 (vorrq_u64): Likewise.
25921 (veor_s8): Likewise.
25922 (veor_s16): Likewise.
25923 (veor_s32): Likewise.
25924 (veor_u8): Likewise.
25925 (veor_u16): Likewise.
25926 (veor_u32): Likewise.
25927 (veor_s64): Likewise.
25928 (veor_u64): Likewise.
25929 (veorq_s8): Likewise.
25930 (veorq_s16): Likewise.
25931 (veorq_s32): Likewise.
25932 (veorq_s64): Likewise.
25933 (veorq_u8): Likewise.
25934 (veorq_u16): Likewise.
25935 (veorq_u32): Likewise.
25936 (veorq_u64): Likewise.
25937 (vbic_s8): Likewise.
25938 (vbic_s16): Likewise.
25939 (vbic_s32): Likewise.
25940 (vbic_u8): Likewise.
25941 (vbic_u16): Likewise.
25942 (vbic_u32): Likewise.
25943 (vbic_s64): Likewise.
25944 (vbic_u64): Likewise.
25945 (vbicq_s8): Likewise.
25946 (vbicq_s16): Likewise.
25947 (vbicq_s32): Likewise.
25948 (vbicq_s64): Likewise.
25949 (vbicq_u8): Likewise.
25950 (vbicq_u16): Likewise.
25951 (vbicq_u32): Likewise.
25952 (vbicq_u64): Likewise.
25953 (vorn_s8): Likewise.
25954 (vorn_s16): Likewise.
25955 (vorn_s32): Likewise.
25956 (vorn_u8): Likewise.
25957 (vorn_u16): Likewise.
25958 (vorn_u32): Likewise.
25959 (vorn_s64): Likewise.
25960 (vorn_u64): Likewise.
25961 (vornq_s8): Likewise.
25962 (vornq_s16): Likewise.
25963 (vornq_s32): Likewise.
25964 (vornq_s64): Likewise.
25965 (vornq_u8): Likewise.
25966 (vornq_u16): Likewise.
25967 (vornq_u32): Likewise.
25968 (vornq_u64): Likewise.
25970 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25972 * wide-int.cc (UTItype): Define.
25973 (UDWtype): Define for appropriate W_TYPE_SIZE.
25975 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
25977 PR tree-optimization/59100
25978 * tree-ssa-phiopt.c: Include tree-inline.h.
25979 (neutral_element_p, absorbing_element_p): New functions.
25980 (value_replacement): Handle conditional binary operations with a
25981 neutral or absorbing element.
25983 2014-05-08 Richard Biener <rguenther@suse.de>
25985 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
25986 folding the expression.
25987 (valueize_expr): Remove.
25988 (visit_reference_op_load): Do not valueize the result of
25990 (simplify_binary_expression): Likewise.
25991 (simplify_unary_expression): Likewise.
25993 2014-05-08 Richard Biener <rguenther@suse.de>
25995 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
25996 looking at TYPE_ARG_TYPES.
25998 2014-05-08 Richard Biener <rguenther@suse.de>
26000 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
26001 pointer propagation special-case.
26003 2014-05-08 Bin Cheng <bin.cheng@arm.com>
26005 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
26006 core part of address expressions.
26008 2014-05-08 Alan Modra <amodra@gmail.com>
26011 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
26012 loads and stores when -mno-strict-align at any alignment.
26013 (expand_block_clear): Similarly. Also correct calculation of
26016 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
26018 PR middle-end/39246
26019 * tree-complex.c (expand_complex_move): Keep line info when expanding
26021 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
26022 of complex expression. Use new argument to display correct location
26023 for values coming from phi statement.
26024 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
26025 (warn_uninitialized_phi): Pass location of phi argument to
26027 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
26028 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
26030 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
26032 * config/rs6000/predicates.md (indexed_address_mem): New.
26033 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
26034 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
26035 fpstore_ux, fpstore_u.
26036 (sign_extend, indexed, update): New.
26037 (cell_micro): Adjust.
26038 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
26039 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
26040 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
26041 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
26042 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
26043 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
26044 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
26045 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
26046 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
26047 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
26048 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
26049 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
26050 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
26051 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
26052 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
26054 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
26055 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
26056 *vsx_extract_<mode>_store): Adjust.
26057 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
26058 is_cracked_insn, insn_must_be_first_in_group,
26059 insn_must_be_last_in_group): Adjust.
26061 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
26063 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
26064 ppc440-fpstore): Adjust.
26065 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
26066 ppc476-fpstore): Adjust.
26067 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
26068 ppc601-fpstore): Adjust.
26069 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
26071 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
26073 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
26074 ppc7450-fpstore): Adjust.
26075 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
26076 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
26077 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
26079 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
26080 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
26081 cell-fpstore, cell-fpstore-update): Adjust.
26082 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
26083 ppce300c3_store, ppce300c3_fpstore): Adjust.
26084 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
26085 e500mc_fpstore): Adjust.
26086 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
26087 e500mc64_store, e500mc64_fpstore): Adjust.
26088 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
26089 e5500_fpstore): Adjust.
26090 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
26091 e6500_fpstore): Adjust.
26092 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
26094 * config/rs6000/power4.md (power4-load, power4-load-ext,
26095 power4-load-ext-update, power4-load-ext-update-indexed,
26096 power4-load-update-indexed, power4-load-update, power4-fpload,
26097 power4-fpload-update, power4-store, power4-store-update,
26098 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
26100 * config/rs6000/power5.md (power5-load, power5-load-ext,
26101 power5-load-ext-update, power5-load-ext-update-indexed,
26102 power5-load-update-indexed, power5-load-update, power5-fpload,
26103 power5-fpload-update, power5-store, power5-store-update,
26104 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
26106 * config/rs6000/power6.md (power6-load, power6-load-ext,
26107 power6-load-update, power6-load-update-indexed,
26108 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
26109 power6-fpload-update, power6-store, power6-store-update,
26110 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
26112 * config/rs6000/power7.md (power7-load, power7-load-ext,
26113 power7-load-update, power7-load-update-indexed,
26114 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
26115 power7-fpload-update, power7-store, power7-store-update,
26116 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
26118 * config/rs6000/power8.md (power8-load, power8-load-update,
26119 power8-load-ext, power8-load-ext-update, power8-fpload,
26120 power8-fpload-update, power8-store, power8-store-update-indexed,
26121 power8-fpstore, power8-fpstore-update): Adjust.
26122 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
26124 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
26125 titan_lsu_store, titan_lsu_fpstore): Adjust.
26126 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
26128 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
26131 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
26132 unrolled byte insns. Emit address increments after move insns.
26134 2014-05-07 David Malcolm <dmalcolm@redhat.com>
26136 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
26137 const_gimple, rather than a gimple.
26138 (gimple_call_builtin_p): Likewise, for the three variants.
26140 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
26141 (gimple_call_builtin_p): Likewise, for the three variants.
26143 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26145 PR tree-optimization/61095
26146 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
26148 2014-05-07 Richard Biener <rguenther@suse.de>
26150 PR tree-optimization/61034
26151 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
26152 (maybe_skip_until): Use translate to take into account
26153 lattices when trying to do disambiguations.
26154 (get_continuation_for_phi_1): Likewise.
26155 (get_continuation_for_phi): Adjust for added translate arguments.
26156 (walk_non_aliased_vuses): Likewise.
26157 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
26158 (walk_non_aliased_vuses): Likewise.
26159 (call_may_clobber_ref_p_1): Declare.
26160 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
26161 calls. Stop early if we are only supposed to disambiguate.
26162 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
26164 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
26166 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
26167 Emit an error when the function has arguments.
26169 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
26171 * cfgloop.h (unswitch_loops): Remove.
26172 * doc/passes.texi: Remove references to loop-unswitch.c
26173 * timevar.def (TV_LOOP_UNSWITCH): Remove.
26175 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
26177 * tree-vect-data-refs.c (vect_grouped_load_supported): New
26178 check for loads group of length 3.
26179 (vect_permute_load_chain): New permutations for loads group of
26181 * tree-vect-stmts.c (vect_model_load_cost): Change cost
26182 of vec_perm_shuffle for the new permutations.
26184 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
26186 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
26187 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
26188 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
26189 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
26190 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
26191 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
26192 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
26193 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
26195 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
26197 * loop-unswitch.c: Delete.
26199 2014-05-07 Richard Biener <rguenther@suse.de>
26201 * config.gcc: Always set need_64bit_hwint to yes.
26203 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
26205 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
26206 of using optimize_size.
26208 2014-05-06 Mike Stump <mikestump@comcast.net>
26210 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
26212 2014-05-06 Joseph Myers <joseph@codesourcery.com>
26214 * config/i386/sse.md (*mov<mode>_internal)
26215 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
26216 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
26217 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
26218 (*<code><mode>3, *andnot<mode>3<mask_name>)
26219 (<mask_codefor><code><mode>3<mask_name>): Only consider
26220 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
26222 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
26225 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
26227 * lra-constraints.c (valid_address_p): Move earlier in file.
26228 Add a constraint argument to the address_info version.
26229 (satisfies_memory_constraint_p): New function.
26230 (satisfies_address_constraint_p): Likewise.
26231 (process_alt_operands, curr_insn_transform): Use them.
26232 (process_address): Pass the constraint to valid_address_p when
26233 checking address operands.
26235 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
26237 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
26238 to their respective blocks. Fix inadvertent use of "node".
26240 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
26242 * emit-rtl.c (init_derived_machine_modes): New functionm, split
26244 (init_emit_once): ...here.
26245 * rtl.h (init_derived_machine_modes): Declare.
26246 * toplev.c (do_compile): Call it even if no_backend.
26248 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
26249 Mike Stump <mikestump@comcast.net>
26250 Richard Sandiford <rdsandiford@googlemail.com>
26251 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26253 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
26254 (rtx_equal_for_memref_p): Update comment.
26255 (adjust_offset_for_component_ref): Use wide-int interfaces.
26256 * builtins.c (get_object_alignment_2): Likewise.
26257 (c_readstr): Likewise.
26258 (target_char_cast): Add comment.
26259 (determine_block_size): Use wide-int interfaces.
26260 (expand_builtin_signbit): Likewise.
26261 (fold_builtin_int_roundingfn): Likewise.
26262 (fold_builtin_bitop): Likewise.
26263 (fold_builtin_bswap): Likewise.
26264 (fold_builtin_logarithm): Use signop.
26265 (fold_builtin_pow): Likewise.
26266 (fold_builtin_memory_op): Use wide-int interfaces.
26267 (fold_builtin_object_size): Likewise.
26268 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
26269 nb_iterations_estimate.
26270 (record_niter_bound): Use wide-int interfaces.
26271 (get_estimated_loop_iterations_int): Likewise.
26272 (get_estimated_loop_iterations): Likewise.
26273 (get_max_loop_iterations): Likewise.
26274 * cfgloop.h: Include wide-int.h.
26275 (struct nb_iter_bound): Change bound to widest_int.
26276 (struct loop): Change nb_iterations_upper_bound and
26277 nb_iterations_estimate to widest_int.
26278 (record_niter_bound): Switch to use widest_int.
26279 (get_estimated_loop_iterations): Likewise.
26280 (get_max_loop_iterations): Likewise.
26281 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
26282 update for wide-int.
26283 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
26284 * combine.c (try_combine): Likewise.
26285 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
26286 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
26288 (aarch64_float_const_representable_p): Likewise.
26289 * config/arc/arc.c: Include wide-int.h.
26290 (arc_can_use_doloop_p): Use wide-int interfaces.
26291 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
26292 (vfp3_const_double_index): Likewise.
26293 * config/avr/avr.c (avr_out_round): Likewise.
26294 (avr_fold_builtin): Likewise.
26295 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
26296 (bfin_can_use_doloop_p): Likewise.
26297 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
26298 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
26299 * config/i386/i386.c: Include wide-int.h.
26300 (ix86_data_alignment): Use wide-int interfaces.
26301 (ix86_local_alignment): Likewise.
26302 (ix86_emit_swsqrtsf): Update real_from_integer.
26303 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
26304 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
26305 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
26306 (zero_constant): Likewise.
26307 (input_operand): Likewise.
26308 (splat_input_operand): Likewise.
26309 (non_logical_cint_operand): Change const_double to const_wide_int.
26310 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
26311 (easy_altivec_constant): Remove comment.
26312 (paired_expand_vector_init): Use CONSTANT_P.
26313 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
26314 (rs6000_emit_move): Update checks.
26315 (rs6000_aggregate_candidate): Use wide-int interfaces.
26316 (rs6000_expand_ternop_builtin): Likewise.
26317 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
26318 (rs6000_assemble_integer): Likewise.
26319 (rs6000_hash_constant): Likewise.
26320 (output_toc): Likewise.
26321 (rs6000_rtx_costs): Likewise.
26322 (rs6000_emit_swrsqrt); Update call to real_from_integer.
26323 * config/rs6000/rs6000-c.c: Include wide-int.h.
26324 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
26325 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
26326 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
26327 Handle CONST_WIDE_INT.
26328 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
26329 Use tree_fits_uhwi_p.
26330 * config/sparc/sparc.c: Include wide-int.h.
26331 (sparc_fold_builtin): Use wide-int interfaces.
26332 * config/vax/vax.c: Include wide-int.h.
26333 (vax_float_literal): Use real_from_integer.
26334 * coretypes.h (struct hwivec_def): New.
26336 (const_hwivec): New.
26337 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
26338 (equiv_constant): Handle CONST_WIDE_INT.
26339 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
26340 (cselib_hash_rtx): Handle CONST_WIDE_INT.
26341 * dbxout.c (stabstr_U): Use wide-int interfaces.
26342 (dbxout_type): Update to use cst_fits_shwi_p.
26343 * defaults.h (LOG2_BITS_PER_UNIT): Define.
26344 (TARGET_SUPPORTS_WIDE_INT): Add default.
26345 * dfp.c: Include wide-int.h.
26346 (decimal_real_to_integer2): Use wide-int interfaces and rename to
26347 decimal_real_to_integer.
26348 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
26349 decimal_real_to_integer.
26350 * doc/generic.texi (Constant expressions): Update for wide_int.
26351 * doc/rtl.texi (const_double): Likewise.
26352 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
26353 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
26354 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
26355 (REAL_VALUE_FROM_INT): Remove.
26356 (TARGET_SUPPORTS_WIDE_INT): New.
26357 * doc/tm.texi: Regenerate.
26358 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
26359 * double-int.h: Include wide-int.h.
26360 (struct wi::int_traits): New.
26361 * dwarf2out.c (get_full_len): New.
26362 (dw_val_equal_p): Add case dw_val_class_wide_int.
26363 (size_of_loc_descr): Likewise.
26364 (output_loc_operands): Likewise.
26365 (insert_double): Remove.
26366 (insert_wide_int): New.
26367 (add_AT_wide): New.
26368 (print_die): Add case dw_val_class_wide_int.
26369 (attr_checksum): Likewise.
26370 (attr_checksum_ordered): Likewise.
26371 (same_dw_val_p): Likewise.
26372 (size_of_die): Likewise.
26373 (value_format): Likewise.
26374 (output_die): Likewise.
26375 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
26377 (clz_loc_descriptor): Use wide-int interfaces.
26378 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
26379 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
26380 (round_up_to_align): Use wide-int interfaces.
26381 (field_byte_offset): Likewise.
26382 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
26383 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
26384 CONST_DOUBLE handling. Use wide-int interfaces.
26385 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
26386 (gen_enumeration_type_die): Use add_AT_wide.
26387 (hash_loc_operands): Add case dw_val_class_wide_int.
26388 (compare_loc_operands): Likewise.
26389 * dwarf2out.h: Include wide-int.h.
26390 (wide_int_ptr): New.
26391 (enum dw_val_class): Add dw_val_class_wide_int.
26392 (struct dw_val_struct): Add val_wide.
26393 * emit-rtl.c (const_wide_int_htab): New.
26394 (const_wide_int_htab_hash): New.
26395 (const_wide_int_htab_eq): New.
26396 (lookup_const_wide_int): New.
26397 (const_double_htab_hash): Use wide-int interfaces.
26398 (const_double_htab_eq): Likewise.
26399 (rtx_to_double_int): Conditionally compile for wide-int.
26400 (immed_double_int_const): Rename to immed_wide_int_const and
26401 update for wide-int.
26402 (immed_double_const): Conditionally compile for wide-int.
26403 (init_emit_once): Use wide-int interfaces.
26404 * explow.c (plus_constant): Likewise.
26405 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
26406 (lshift_value): Use wide-int interfaces.
26407 (expand_mult): Likewise.
26408 (choose_multiplier): Likewise.
26409 (expand_smod_pow2): Likewise.
26410 (make_tree): Likewise.
26411 * expr.c (convert_modes): Consolidate handling of constants.
26412 Use wide-int interfaces.
26413 (emit_group_load_1): Add note.
26414 (store_expr): Update comment.
26415 (get_inner_reference): Use wide-int interfaces.
26416 (expand_constructor): Update comment.
26417 (expand_expr_real_2): Use wide-int interfaces.
26418 (expand_expr_real_1): Likewise.
26419 (reduce_to_bit_field_precision): Likewise.
26420 (const_vector_from_tree): Likewise.
26421 * final.c: Include wide-int-print.h.
26422 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
26423 * fixed-value.c: Include wide-int.h.
26424 (fixed_from_string): Use wide-int interfaces.
26425 (fixed_to_decimal): Likewise.
26426 (fixed_convert_from_real): Likewise.
26427 (real_convert_from_fixed): Likewise.
26428 * fold-const.h (mem_ref_offset): Return an offset_int.
26429 (div_if_zero_remainder): Remove code parameter.
26430 * fold-const.c (div_if_zero_remainder): Remove code parameter.
26431 Use wide-int interfaces.
26432 (may_negate_without_overflow_p): Use wide-int interfaces.
26433 (negate_expr_p): Likewise.
26434 (fold_negate_expr): Likewise.
26435 (int_const_binop_1): Likewise.
26436 (const_binop): Likewise.
26437 (fold_convert_const_int_from_int): Likewise.
26438 (fold_convert_const_int_from_real): Likewise.
26439 (fold_convert_const_int_from_fixed): Likewise.
26440 (fold_convert_const_fixed_from_int): Likewise.
26441 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
26442 (sign_bit_p): Use wide-int interfaces.
26443 (make_range_step): Likewise.
26444 (build_range_check): Likewise. Pass an integer of the correct type
26445 instead of using integer_one_node.
26446 (range_predecessor): Pass an integer of the correct type instead
26447 of using integer_one_node.
26448 (range_successor): Likewise.
26449 (merge_ranges): Likewise.
26450 (unextend): Use wide-int interfaces.
26451 (extract_muldiv_1): Likewise.
26452 (fold_div_compare): Likewise.
26453 (fold_single_bit_test): Likewise.
26454 (fold_sign_changed_comparison): Likewise.
26455 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
26456 (fold_plusminus_mult_expr): Use wide-int interfaces.
26457 (native_encode_int): Likewise.
26458 (native_interpret_int): Likewise.
26459 (fold_unary_loc): Likewise.
26460 (pointer_may_wrap_p): Likewise.
26461 (size_low_cst): Likewise.
26462 (mask_with_tz): Likewise.
26463 (fold_binary_loc): Likewise.
26464 (fold_ternary_loc): Likewise.
26465 (multiple_of_p): Likewise.
26466 (tree_call_nonnegative_warnv_p): Update calls to
26467 tree_int_cst_min_precision and real_from_integer.
26468 (fold_negate_const): Use wide-int interfaces.
26469 (fold_abs_const): Likewise.
26470 (fold_relational_const): Use tree_int_cst_lt.
26471 (round_up_loc): Use wide-int interfaces.
26472 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
26473 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
26474 * gengtype.c: Remove include of double-int.h.
26475 (do_typedef): Use wide-int interfaces.
26476 (open_base_files): Add wide-int.h.
26477 (main): Add offset_int and widest_int typedefs.
26478 * gengtype-lex.l: Handle "^".
26479 (CXX_KEYWORD): Add "static".
26480 * gengtype-parse.c (require3): New.
26481 (require_template_declaration): Handle constant template arguments
26482 and nested templates.
26483 * gengtype-state.c: Don't include "double-int.h".
26484 * genpreds.c (write_one_predicate_function): Update comment.
26485 (write_tm_constrs_h): Add check for hval and lval use in
26487 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
26488 (add_to_sequence): Likewise.
26489 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
26490 and const_double_operand.
26491 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
26493 * gimple-fold.c (get_base_constructor): Likewise.
26494 (fold_array_ctor_reference): Likewise.
26495 (fold_nonarray_ctor_reference): Likewise.
26496 (fold_const_aggregate_ref_1): Likewise.
26497 (gimple_val_nonnegative_real_p): Likewise.
26498 (gimple_fold_indirect_ref): Likewise.
26499 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
26500 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
26501 (struct slsr_cand_d): Change index to be widest_int.
26502 (struct incr_info_d): Change incr to be widest_int.
26503 (alloc_cand_and_find_basis): Use wide-int interfaces.
26504 (slsr_process_phi): Likewise.
26505 (backtrace_base_for_ref): Likewise. Return a widest_int.
26506 (restructure_reference): Take a widest_int instead of a double_int.
26507 (slsr_process_ref): Use wide-int interfaces.
26508 (create_mul_ssa_cand): Likewise.
26509 (create_mul_imm_cand): Likewise.
26510 (create_add_ssa_cand): Likewise.
26511 (create_add_imm_cand): Take a widest_int instead of a double_int.
26512 (slsr_process_add): Use wide-int interfaces.
26513 (slsr_process_cast): Likewise.
26514 (slsr_process_copy): Likewise.
26515 (dump_candidate): Likewise.
26516 (dump_incr_vec): Likewise.
26517 (replace_ref): Likewise.
26518 (cand_increment): Likewise. Return a widest_int.
26519 (cand_abs_increment): Likewise.
26520 (replace_mult_candidate): Take a widest_int instead of a double_int.
26521 (replace_unconditional_candidate): Use wide-int interfaces.
26522 (incr_vec_index): Take a widest_int instead of a double_int.
26523 (create_add_on_incoming_edge): Likewise.
26524 (create_phi_basis): Use wide-int interfaces.
26525 (replace_conditional_candidate): Likewise.
26526 (record_increment): Take a widest_int instead of a double_int.
26527 (record_phi_increments): Use wide-int interfaces.
26528 (phi_incr_cost): Take a widest_int instead of a double_int.
26529 (lowest_cost_path): Likewise.
26530 (total_savings): Likewise.
26531 (analyze_increments): Use wide-int interfaces.
26532 (ncd_with_phi): Take a widest_int instead of a double_int.
26533 (ncd_of_cand_and_phis): Likewise.
26534 (nearest_common_dominator_for_cands): Likewise.
26535 (insert_initializers): Use wide-int interfaces.
26536 (all_phi_incrs_profitable): Likewise.
26537 (replace_one_candidate): Likewise.
26538 (replace_profitable_candidates): Likewise.
26539 * godump.c: Include wide-int-print.h.
26540 (go_output_typedef): Use wide-int interfaces.
26541 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
26542 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
26543 (build_loop_iteration_domains): Likewise.
26544 * hooks.h: Include wide-int.h rather than double-int.h.
26545 (hook_bool_dint_dint_uint_bool_true): Delete.
26546 (hook_bool_wint_wint_uint_bool_true): Declare.
26547 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
26548 (hook_bool_wint_wint_uint_bool_true): New.
26549 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
26551 (ubsan_expand_si_overflow_mul_check): Likewise.
26552 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
26553 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
26554 (get_ancestor_addr_info): Likewise.
26555 (ipa_modify_call_arguments): Likewise.
26556 * loop-doloop.c (doloop_modify): Likewise.
26557 (doloop_optimize): Likewise.
26558 * loop-iv.c (iv_number_of_iterations): Likewise.
26559 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
26560 (unroll_loop_constant_iterations): Likewise.
26561 (decide_unroll_runtime_iterations): Likewise.
26562 (unroll_loop_runtime_iterations): Likewise.
26563 (decide_peel_simple): Likewise.
26564 (decide_unroll_stupid): Likewise.
26565 * lto-streamer-in.c (streamer_read_wi): Add.
26566 (input_cfg): Use wide-int interfaces.
26567 (lto_input_tree_1): Likewise.
26568 * lto-streamer-out.c (streamer_write_wi): Add.
26569 (hash_tree): Use wide-int interfaces.
26570 (output_cfg): Likewise.
26571 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
26572 (GTFILES): Add wide-int.h and signop.h.
26573 (TAGS): Look for .cc files too.
26574 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
26575 * optabs.c (expand_subword_shift): Likewise.
26576 (expand_doubleword_shift): Likewise.
26577 (expand_absneg_bit): Likewise.
26578 (expand_copysign_absneg): Likewise.
26579 (expand_copysign_bit): Likewise.
26580 * postreload.c (reload_cse_simplify_set): Likewise.
26581 * predict.c (predict_iv_comparison): Likewise.
26582 * pretty-print.h: Include wide-int-print.h.
26584 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
26585 * print-tree.c: Include wide-int-print.h.
26586 (print_node_brief): Use wide-int interfaces.
26587 (print_node): Likewise.
26588 * read-rtl.c (validate_const_wide_int): New.
26589 (read_rtx_code): Add CONST_WIDE_INT case.
26590 * real.c: Include wide-int.h.
26591 (real_to_integer2): Delete.
26592 (real_to_integer): New function, returning a wide_int.
26593 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
26594 (ten_to_ptwo): Update call to real_from_integer.
26595 (real_digit): Likewise.
26596 * real.h: Include signop.h, wide-int.h and insn-modes.h.
26597 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
26598 (REAL_VALUE_TO_INT): Delete.
26599 (real_to_integer): Declare a wide-int form.
26600 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
26601 * recog.c (const_int_operand): Improve comment.
26602 (const_scalar_int_operand): New.
26603 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
26604 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
26605 (split_double): Likewise.
26606 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
26607 (rtx_size): Likewise.
26608 (rtx_alloc_stat_v): New.
26609 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
26610 (cwi_output_hex): New.
26611 (iterative_hash_rtx): Handle CONST_WIDE_INT.
26612 (cwi_check_failed_bounds): New.
26613 * rtl.def (CONST_WIDE_INT): New.
26614 * rtl.h: Include <utility> and wide-int.h.
26615 (struct hwivec_def): New.
26616 (CWI_GET_NUM_ELEM): New.
26617 (CWI_PUT_NUM_ELEM): New.
26618 (struct rtx_def): Add num_elem and hwiv.
26619 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
26620 (CASE_CONST_UNIQUE): Likewise.
26621 (CASE_CONST_ANY): Likewise.
26622 (CONST_SCALAR_INT_P): Likewise.
26623 (CONST_WIDE_INT_P): New.
26625 (HWIVEC_CHECK): New.
26626 (cwi_check_failed_bounds): New.
26628 (HWIVEC_CHECK): New.
26629 (CONST_WIDE_INT_VEC) New.
26630 (CONST_WIDE_INT_NUNITS) New.
26631 (CONST_WIDE_INT_ELT) New.
26632 (rtx_mode_t): New type.
26633 (wi::int_traits <rtx_mode_t>): New.
26635 (wi::min_value): New.
26636 (wi::max_value): New.
26638 (const_wide_int_alloc): New.
26639 (immed_wide_int_const): New.
26640 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
26641 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
26642 * signop.h: New file.
26643 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
26644 (simplify_const_unary_operation): Use wide-int interfaces.
26645 (simplify_binary_operation_1): Likewise.
26646 (simplify_const_binary_operation): Likewise.
26647 (simplify_const_relational_operation): Likewise.
26648 (simplify_immed_subreg): Likewise.
26649 * stmt.c (expand_case): Likewise.
26650 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
26651 signop rather than a bool.
26652 * stor-layout.c (layout_type): Use wide-int interfaces.
26653 (initialize_sizetypes): Update calls to
26654 set_min_and_max_values_for_integral_type.
26655 (set_min_and_max_values_for_integral_type): Take a signop rather
26656 than a bool. Use wide-int interfaces.
26657 (fixup_signed_type): Update accordingly. Remove
26658 HOST_BITS_PER_DOUBLE_INT limit.
26659 (fixup_unsigned_type): Likewise.
26660 * system.h (STATIC_CONSTANT_P): New.
26661 (STATIC_ASSERT): New.
26662 * target.def (can_use_doloop_p): Take widest_ints rather than
26664 * target.h: Include wide-int.h rather than double-int.h.
26665 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
26667 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
26668 rather than INT_CST_LT_UNSIGNED.
26669 (can_use_doloop_if_innermost): Take widest_ints rather than
26671 * tree-affine.c: Include wide-int-print.h.
26672 (double_int_ext_for_comb): Delete.
26673 (wide_int_ext_for_comb): New.
26674 (aff_combination_zero): Use wide-int interfaces.
26675 (aff_combination_const): Take a widest_int instead of a double_int.
26676 (aff_combination_elt): Use wide-int interfaces.
26677 (aff_combination_scale): Take a widest_int instead of a double_int.
26678 (aff_combination_add_elt): Likewise.
26679 (aff_combination_add_cst): Likewise.
26680 (aff_combination_add): Use wide-int interfaces.
26681 (aff_combination_convert): Likewise.
26682 (tree_to_aff_combination): Likewise.
26683 (add_elt_to_tree): Take a widest_int instead of a double_int.
26684 (aff_combination_to_tree): Use wide-int interfaces.
26685 (aff_combination_remove_elt): Likewise.
26686 (aff_combination_add_product): Take a widest_int instead of
26688 (aff_combination_mult): Use wide-int interfaces.
26689 (aff_combination_expand): Likewise.
26690 (double_int_constant_multiple_p): Delete.
26691 (wide_int_constant_multiple_p): New.
26692 (aff_combination_constant_multiple_p): Take a widest_int pointer
26693 instead of a double_int pointer.
26694 (print_aff): Use wide-int interfaces.
26695 (get_inner_reference_aff): Take a widest_int pointer
26696 instead of a double_int pointer.
26697 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
26698 * tree-affine.h: Include wide-int.h.
26699 (struct aff_comb_elt): Change type of coef to widest_int.
26700 (struct affine_tree_combination): Change type of offset to widest_int.
26701 (double_int_ext_for_comb): Delete.
26702 (wide_int_ext_for_comb): New.
26703 (aff_combination_const): Use widest_int instead of double_int.
26704 (aff_combination_scale): Likewise.
26705 (aff_combination_add_elt): Likewise.
26706 (aff_combination_constant_multiple_p): Likewise.
26707 (get_inner_reference_aff): Likewise.
26708 (aff_comb_cannot_overlap_p): Likewise.
26709 (aff_combination_zero_p): Use wide-int interfaces.
26710 * tree.c: Include tree.h.
26711 (init_ttree): Use make_int_cst.
26712 (tree_code_size): Removed code for INTEGER_CST case.
26713 (tree_size): Add INTEGER_CST case.
26714 (make_node_stat): Update comment.
26715 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
26716 (build_int_cst_type): Use wide-int interfaces.
26717 (double_int_to_tree): Likewise.
26718 (double_int_fits_to_tree_p): Delete.
26719 (force_fit_type_double): Delete.
26720 (force_fit_type): New.
26721 (int_cst_hash_hash): Use wide-int interfaces.
26722 (int_cst_hash_eq): Likewise.
26723 (build_int_cst_wide): Delete.
26724 (wide_int_to_tree): New.
26725 (cache_integer_cst): Use wide-int interfaces.
26726 (build_low_bits_mask): Likewise.
26727 (cst_and_fits_in_hwi): Likewise.
26728 (real_value_from_int_cst): Likewise.
26729 (make_int_cst_stat): New.
26730 (integer_zerop): Use wide_int interfaces.
26731 (integer_onep): Likewise.
26732 (integer_all_onesp): Likewise.
26733 (integer_pow2p): Likewise.
26734 (integer_nonzerop): Likewise.
26735 (tree_log2): Likewise.
26736 (tree_floor_log2): Likewise.
26737 (tree_ctz): Likewise.
26738 (int_size_in_bytes): Likewise.
26739 (mem_ref_offset): Return an offset_int rather than a double_int.
26740 (build_type_attribute_qual_variant): Use wide_int interfaces.
26741 (type_hash_eq): Likewise
26742 (tree_int_cst_equal): Likewise.
26743 (tree_int_cst_lt): Delete.
26744 (tree_int_cst_compare): Likewise.
26745 (tree_fits_shwi_p): Use wide_int interfaces.
26746 (tree_fits_uhwi_p): Likewise.
26747 (tree_int_cst_sign_bit): Likewise.
26748 (tree_int_cst_sgn): Likewise.
26749 (tree_int_cst_min_precision): Take a signop rather than a bool.
26750 (simple_cst_equal): Use wide_int interfaces.
26751 (compare_tree_int): Likewise.
26752 (iterative_hash_expr): Likewise.
26753 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
26755 (get_type_static_bounds): Use wide_int interfaces.
26756 (tree_int_cst_elt_check_failed): New.
26757 (build_common_tree_nodes): Reordered to set prec before filling in
26759 (int_cst_value): Check cst_and_fits_in_hwi.
26760 (widest_int_cst_value): Use wide_int interfaces.
26761 (upper_bound_in_type): Likewise.
26762 (lower_bound_in_type): Likewise.
26763 (num_ending_zeros): Likewise.
26764 (drop_tree_overflow): Likewise.
26765 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
26766 (gen_conditions_for_pow_cst_base): Likewise.
26767 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
26768 (group_case_labels_stmt): Use wide-int interfaces.
26769 (verify_gimple_assign_binary): Likewise.
26770 (print_loop): Likewise.
26771 * tree-chrec.c (tree_fold_binomial): Likewise.
26772 * tree-core.h (struct tree_base): Add int_length.
26773 (struct tree_int_cst): Change rep of value.
26774 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
26775 (dr_may_alias_p): Likewise.
26776 (max_stmt_executions_tree): Likewise.
26777 * tree.def (INTEGER_CST): Update comment.
26778 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
26779 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
26780 * tree-dump.c: Include wide-int.h and wide-int-print.h.
26781 (dequeue_and_dump): Use wide-int interfaces.
26782 * tree.h: Include wide-int.h.
26783 (NULL_TREE): Moved to earlier loc in file.
26784 (TREE_INT_CST_ELT_CHECK): New.
26785 (tree_int_cst_elt_check_failed): New.
26787 (TREE_INT_CST): Delete.
26788 (TREE_INT_CST_LOW): Use wide-int interfaces.
26789 (TREE_INT_CST_HIGH): Delete.
26790 (TREE_INT_CST_NUNITS): New.
26791 (TREE_INT_CST_EXT_NUNITS): Likewise.
26792 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
26793 (TREE_INT_CST_ELT): Likewise.
26794 (INT_CST_LT): Delete.
26795 (tree_int_cst_elt_check): New (two forms).
26796 (type_code_size): Update comment.
26797 (make_int_cst_stat, make_int_cst): New.
26798 (tree_to_double_int): Delete.
26799 (double_int_fits_to_tree_p): Delete.
26800 (force_fit_type_double): Delete.
26801 (build_int_cstu): Replace with out-of-line function.
26802 (build_int_cst_wide): Delete.
26803 (tree_int_cst_lt): Define inline.
26804 (tree_int_cst_le): New.
26805 (tree_int_cst_compare): Define inline.
26806 (tree_int_cst_min_precision): Take a signop rather than a bool.
26807 (wi::int_traits <const_tree>): New.
26808 (wi::int_traits <tree>): New.
26809 (wi::extended_tree): New.
26810 (wi::int_traits <wi::extended_tree>): New.
26811 (wi::to_widest): New.
26812 (wi::to_offset): New.
26813 (wi::fits_to_tree_p): New.
26814 (wi::min_value): New.
26815 (wi::max_value): New.
26816 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
26817 (copy_tree_body_r): Likewise.
26818 * tree-object-size.c (compute_object_offset): Likewise.
26819 (addr_object_size): Likewise.
26820 * tree-predcom.c: Include wide-int-print.h.
26821 (struct dref_d): Change type of offset to widest_int.
26822 (dump_dref): Call wide-int printer.
26823 (aff_combination_dr_offset): Use wide-int interfaces.
26824 (determine_offset): Take a widest_int pointer rather than a
26825 double_int pointer.
26826 (split_data_refs_to_components): Use wide-int interfaces.
26827 (suitable_component_p): Likewise.
26828 (order_drefs): Likewise.
26829 (add_ref_to_chain): Likewise.
26830 (valid_initializer_p): Likewise.
26831 (determine_roots_comp): Likewise.
26832 * tree-pretty-print.c: Include wide-int-print.h.
26833 (dump_generic_node): Use wide-int interfaces.
26834 * tree-sra.c (sra_ipa_modify_expr): Likewise.
26835 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
26836 (move_fixed_address_to_symbol): Likewise.
26837 (move_hint_to_base): Likewise.
26838 (move_pointer_to_base): Likewise.
26839 (move_variant_to_index): Likewise.
26840 (most_expensive_mult_to_index): Likewise.
26841 (addr_to_parts): Likewise.
26842 (copy_ref_info): Likewise.
26843 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
26844 (indirect_refs_may_alias_p): Likewise.
26845 (stmt_kills_ref_p_1): Likewise.
26846 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
26847 * tree-ssa-ccp.c: Update comment at top of file. Include
26849 (struct prop_value_d): Change type of mask to widest_int.
26850 (extend_mask): New function.
26851 (dump_lattice_value): Use wide-int interfaces.
26852 (get_default_value): Likewise.
26853 (set_constant_value): Likewise.
26854 (set_value_varying): Likewise.
26855 (valid_lattice_transition): Likewise.
26856 (set_lattice_value): Likewise.
26857 (value_to_double_int): Delete.
26858 (value_to_wide_int): New.
26859 (get_value_from_alignment): Use wide-int interfaces.
26860 (get_value_for_expr): Likewise.
26861 (do_dbg_cnt): Likewise.
26862 (ccp_finalize): Likewise.
26863 (ccp_lattice_meet): Likewise.
26864 (bit_value_unop_1): Use widest_ints rather than double_ints.
26865 (bit_value_binop_1): Likewise.
26866 (bit_value_unop): Use wide-int interfaces.
26867 (bit_value_binop): Likewise.
26868 (bit_value_assume_aligned): Likewise.
26869 (evaluate_stmt): Likewise.
26870 (ccp_fold_stmt): Likewise.
26871 (visit_cond_stmt): Likewise.
26872 (ccp_visit_stmt): Likewise.
26873 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
26874 (constant_pointer_difference): Likewise.
26875 (associate_pointerplus): Likewise.
26876 (combine_conversions): Likewise.
26877 * tree-ssa-loop.h: Include wide-int.h.
26878 (struct tree_niter_desc): Change type of max to widest_int.
26879 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
26880 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
26881 (remove_redundant_iv_tests): Likewise.
26882 (canonicalize_loop_induction_variables): Likewise.
26883 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
26884 (constant_multiple_of): Take a widest_int pointer instead of
26885 a double_int pointer.
26886 (get_computation_aff): Use wide-int interfaces.
26887 (ptr_difference_cost): Likewise.
26888 (difference_cost): Likewise.
26889 (get_loop_invariant_expr_id): Likewise.
26890 (get_computation_cost_at): Likewise.
26891 (iv_elimination_compare_lt): Likewise.
26892 (may_eliminate_iv): Likewise.
26893 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
26894 instead of double_int.
26895 (max_loop_iterations): Likewise.
26896 (max_stmt_executions): Likewise.
26897 (estimated_stmt_executions): Likewise.
26898 * tree-ssa-loop-niter.c: Include wide-int-print.h.
26899 (split_to_var_and_offset): Use wide-int interfaces.
26900 (determine_value_range): Likewise.
26901 (bound_difference_of_offsetted_base): Likewise.
26902 (bounds_add): Take a widest_int instead of a double_int.
26903 (number_of_iterations_ne_max): Use wide-int interfaces.
26904 (number_of_iterations_ne): Likewise.
26905 (number_of_iterations_lt_to_ne): Likewise.
26906 (assert_loop_rolls_lt): Likewise.
26907 (number_of_iterations_lt): Likewise.
26908 (number_of_iterations_le): Likewise.
26909 (number_of_iterations_cond): Likewise.
26910 (number_of_iterations_exit): Likewise.
26911 (finite_loop_p): Likewise.
26912 (derive_constant_upper_bound_assign): Likewise.
26913 (derive_constant_upper_bound): Return a widest_int.
26914 (derive_constant_upper_bound_ops): Likewise.
26915 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
26916 (record_estimate): Take a widest_int rather than a double_int.
26917 (record_nonwrapping_iv): Use wide-int interfaces.
26918 (double_int_cmp): Delete.
26919 (wide_int_cmp): New.
26920 (bound_index): Take a widest_int rather than a double_int.
26921 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
26922 (maybe_lower_iteration_bound): Likewise.
26923 (estimate_numbers_of_iterations_loop): Likewise.
26924 (estimated_loop_iterations): Take a widest_int pointer than than
26925 a double_int pointer.
26926 (estimated_loop_iterations_int): Use wide-int interfaces.
26927 (max_loop_iterations): Take a widest_int pointer than than
26928 a double_int pointer.
26929 (max_loop_iterations_int): Use wide-int interfaces.
26930 (max_stmt_executions): Take a widest_int pointer than than
26931 a double_int pointer.
26932 (estimated_stmt_executions): Likewise.
26933 (n_of_executions_at_most): Use wide-int interfaces.
26934 (scev_probably_wraps_p): Likewise.
26935 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
26936 to real_to_integer.
26937 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
26939 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
26940 double_ints. Adjust for trailing_wide_ints <3> representation.
26941 (set_nonzero_bits): Likewise.
26942 (get_range_info): Return wide_ints rather than double_ints.
26943 Adjust for trailing_wide_ints <3> representation.
26944 (get_nonzero_bits): Likewise.
26945 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
26947 * tree-ssanames.h (struct range_info_def): Replace min, max and
26948 nonzero_bits with a trailing_wide_ints <3>.
26949 (set_range_info): Use wide_int_refs rather than double_ints.
26950 (set_nonzero_bits): Likewise.
26951 (get_range_info): Return wide_ints rather than double_ints.
26952 (get_nonzero_bits): Likewise.
26953 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
26954 * tree-ssa-pre.c (phi_translate_1): Likewise.
26955 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
26956 (acceptable_pow_call): Likewise.
26957 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
26959 (vn_reference_fold_indirect): Likewise.
26960 (vn_reference_maybe_forwprop_address): Likewise.
26961 (valueize_refs_1): Likewise.
26962 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
26963 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
26964 tree_int_cst_lt and tree_int_cst_le.
26965 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
26967 (streamer_alloc_tree): Likewise.
26968 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
26969 (streamer_write_tree_header): Likewise.
26970 (streamer_write_integer_cst): Likewise.
26971 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
26972 (build_constructors): Likewise.
26973 (array_value_type): Likewise.
26974 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
26975 (vect_check_gather): Likewise.
26976 * tree-vect-generic.c (build_replicated_const): Likewise.
26977 (expand_vector_divmod): Likewise.
26978 * tree-vect-loop.c (vect_transform_loop): Likewise.
26979 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
26980 (vect_do_peeling_for_alignment): Likewise.
26981 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
26982 * tree-vrp.c: Include wide-int.h.
26983 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
26984 (extract_range_from_assert): Use wide-int interfaces.
26985 (vrp_int_const_binop): Likewise.
26986 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
26987 double_int pointers.
26988 (ranges_from_anti_range): Use wide-int interfaces.
26989 (quad_int_cmp): Delete.
26990 (quad_int_pair_sort): Likewise.
26991 (extract_range_from_binary_expr_1): Use wide-int interfaces.
26992 (extract_range_from_unary_expr_1): Likewise.
26993 (adjust_range_with_scev): Likewise.
26994 (masked_increment): Take and return wide_ints rather than double_ints.
26995 (register_edge_assert_for_2): Use wide-int interfaces.
26996 (check_array_ref): Likewise.
26997 (search_for_addr_array): Likewise.
26998 (maybe_set_nonzero_bits): Likewise.
26999 (union_ranges): Pass an integer of the correct type instead of
27000 using integer_one_node.
27001 (intersect_ranges): Likewise.
27002 (simplify_truth_ops_using_ranges): Likewise.
27003 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
27004 (range_fits_type_p): Likewise.
27005 (simplify_cond_using_ranges): Likewise. Take a signop rather than
27007 (simplify_conversion_using_ranges): Use wide-int interfaces.
27008 (simplify_float_conversion_using_ranges): Likewise.
27009 (vrp_finalize): Likewise.
27010 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
27011 (gimple_stringops_transform): Likewise.
27012 * varasm.c (decode_addr_const): Likewise.
27013 (const_hash_1): Likewise.
27014 (const_rtx_hash_1): Likewise
27015 (output_constant): Likewise.
27016 (array_size_for_constructor): Likewise.
27017 (output_constructor_regular_field): Likewise.
27018 (output_constructor_bitfield): Likewise.
27019 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
27020 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
27022 * gencheck.c: Define BITS_PER_UNIT.
27023 * wide-int.cc: New.
27025 * wide-int-print.cc: New.
27026 * wide-int-print.h: New.
27028 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27030 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
27032 2014-05-06 Richard Biener <rguenther@suse.de>
27034 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
27035 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
27036 (TODO_verify_all): Adjust.
27037 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
27038 TODO_verify_stmts and TODO_verify_rtl_sharing.
27039 * bb-reorder.c: Likewise.
27040 * cfgexpand.c: Likewise.
27041 * cprop.c: Likewise.
27043 * function.c: Likewise.
27044 * fwprop.c: Likewise.
27045 * gcse.c: Likewise.
27046 * gimple-ssa-isolate-paths.c: Likewise.
27047 * gimple-ssa-strength-reduction.c: Likewise.
27048 * ipa-split.c: Likewise.
27049 * loop-init.c: Likewise.
27050 * loop-unroll.c: Likewise.
27051 * lower-subreg.c: Likewise.
27052 * modulo-sched.c: Likewise.
27053 * postreload-gcse.c: Likewise.
27054 * predict.c: Likewise.
27055 * recog.c: Likewise.
27056 * sched-rgn.c: Likewise.
27057 * store-motion.c: Likewise.
27058 * tracer.c: Likewise.
27059 * trans-mem.c: Likewise.
27060 * tree-call-cdce.c: Likewise.
27061 * tree-cfg.c: Likewise.
27062 * tree-cfgcleanup.c: Likewise.
27063 * tree-complex.c: Likewise.
27064 * tree-eh.c: Likewise.
27065 * tree-emutls.c: Likewise.
27066 * tree-if-conv.c: Likewise.
27067 * tree-into-ssa.c: Likewise.
27068 * tree-loop-distribution.c: Likewise.
27069 * tree-object-size.c: Likewise.
27070 * tree-parloops.c: Likewise.
27071 * tree-pass.h: Likewise.
27072 * tree-sra.c: Likewise.
27073 * tree-ssa-ccp.c: Likewise.
27074 * tree-ssa-copy.c: Likewise.
27075 * tree-ssa-copyrename.c: Likewise.
27076 * tree-ssa-dce.c: Likewise.
27077 * tree-ssa-dom.c: Likewise.
27078 * tree-ssa-dse.c: Likewise.
27079 * tree-ssa-forwprop.c: Likewise.
27080 * tree-ssa-ifcombine.c: Likewise.
27081 * tree-ssa-loop-ch.c: Likewise.
27082 * tree-ssa-loop-ivcanon.c: Likewise.
27083 * tree-ssa-loop.c: Likewise.
27084 * tree-ssa-math-opts.c: Likewise.
27085 * tree-ssa-phiopt.c: Likewise.
27086 * tree-ssa-phiprop.c: Likewise.
27087 * tree-ssa-pre.c: Likewise.
27088 * tree-ssa-reassoc.c: Likewise.
27089 * tree-ssa-sink.c: Likewise.
27090 * tree-ssa-strlen.c: Likewise.
27091 * tree-ssa-tail-merge.c: Likewise.
27092 * tree-ssa-uncprop.c: Likewise.
27093 * tree-switch-conversion.c: Likewise.
27094 * tree-tailcall.c: Likewise.
27095 * tree-vect-generic.c: Likewise.
27096 * tree-vectorizer.c: Likewise.
27097 * tree-vrp.c: Likewise.
27098 * tsan.c: Likewise.
27099 * var-tracking.c: Likewise.
27100 * bt-load.c: Likewise.
27101 * cfgcleanup.c: Likewise.
27102 * combine-stack-adj.c: Likewise.
27103 * combine.c: Likewise.
27104 * compare-elim.c: Likewise.
27105 * config/epiphany/resolve-sw-modes.c: Likewise.
27106 * config/i386/i386.c: Likewise.
27107 * config/mips/mips.c: Likewise.
27108 * config/s390/s390.c: Likewise.
27109 * config/sh/sh_treg_combine.cc: Likewise.
27110 * config/sparc/sparc.c: Likewise.
27113 * final.c: Likewise.
27114 * ifcvt.c: Likewise.
27115 * mode-switching.c: Likewise.
27116 * passes.c: Likewise.
27117 * postreload.c: Likewise.
27119 * reg-stack.c: Likewise.
27120 * regcprop.c: Likewise.
27121 * regrename.c: Likewise.
27124 2014-05-06 Richard Biener <rguenther@suse.de>
27126 PR middle-end/61070
27127 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
27128 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
27130 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
27133 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
27135 2014-05-05 Radovan Obradovic <robradovic@mips.com>
27136 Tom de Vries <tom@codesourcery.com>
27138 * target.def (call_fusage_contains_non_callee_clobbers): New
27140 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
27142 (@node Miscellaneous Register Hooks): New node.
27143 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
27144 * doc/tm.texi: Regenerate.
27146 2014-05-05 Marek Polacek <polacek@redhat.com>
27149 * opts.c (common_handle_option): Call error_at instead of warning_at.
27151 2014-05-05 Richard Biener <rguenther@suse.de>
27153 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
27154 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
27155 under the TODO_verify_il umbrella.
27157 2014-05-05 Richard Biener <rguenther@suse.de>
27159 * passes.c (execute_function_todo): Move TODO_verify_flow under
27160 the TODO_verify_ul umbrella.
27162 2014-05-05 Richard Biener <rguenther@suse.de>
27164 PR middle-end/61010
27165 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
27166 X & CST away from a CST that is the mask of a mode.
27168 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27170 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
27171 int argument to enum machine_mode.
27172 (picochip_class_max_nregs): Ditto.
27173 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
27174 (picochip_class_max_nregs): Ditto.
27176 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27178 * target.def: Add new target hook.
27179 * doc/tm.texi: Regenerate.
27180 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
27181 * targhooks.c (default_keep_leaf_when_profiled): New function.
27183 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
27184 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
27186 2014-05-05 Bin Cheng <bin.cheng@arm.com>
27188 PR tree-optimization/60363
27189 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
27190 (copy_phi_args): New parameters. Call get_value_locus_in_path.
27191 (update_destination_phis): New parameter.
27192 (create_edge_and_update_destination_phis): Ditto.
27193 (ssa_fix_duplicate_block_edges): Pass new arguments.
27194 (thread_single_edge): Ditto.
27196 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
27198 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
27199 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
27200 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
27201 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
27202 Use RS6000_BTM_HARD_FLOAT.
27203 (BU_MISC_2): Likewise.
27204 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
27205 RS6000_BTM_HARD_FLOAT.
27206 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
27207 is explicitly used.
27208 (rs6000_invalid_builtin): Add hard floating builtin support.
27209 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
27210 hard float builtins.
27211 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
27213 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
27215 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
27216 Add missing function* argument.
27218 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
27220 * lra-constraints.c (valid_address_p): Move earlier in file.
27221 Add a constraint argument to the address_info version.
27222 (satisfies_memory_constraint_p): New function.
27223 (satisfies_address_constraint_p): Likewise.
27224 (process_alt_operands, curr_insn_transform): Use them.
27225 (process_address): Pass the constraint to valid_address_p when
27226 checking address operands.
27228 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
27230 * config/mips/mips.c (mips_isa_rev): New variable.
27231 (mips_set_architecture): Set it.
27232 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
27234 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
27235 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
27236 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
27237 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
27238 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
27239 conditions in terms of mips_isa_rev.
27240 (mips_isa_rev): Declare.
27242 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
27244 * config/sh/sh-mem.cc: Use tabs instead of spaces.
27245 (prob_unlikely, prob_likely): Make variables const.
27247 2014-05-03 Denis Chertykov <chertykov@gmail.com>
27249 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
27251 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
27253 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
27255 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
27257 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
27258 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
27259 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
27261 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
27262 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
27264 Replace usage of ROUND_REG with sh_round_reg.
27265 Use CEIL instead of ROUND_ADVANCE.
27267 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
27270 * config/sh/sh.c: Include stdlib headers before everything else.
27272 2014-05-02 Jakub Jelinek <jakub@redhat.com>
27274 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
27275 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
27276 (gimplify_adjust_omp_clauses): Simd region is never
27277 directly nested in combined parallel. Instead, for linear
27278 with copyin/copyout, if in combined for simd loop, make decl
27279 firstprivate/lastprivate on OMP_FOR.
27280 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
27281 expand_omp_for_static_chunk): When setting endvar, also set
27282 fd->loop.v to the same value.
27284 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27286 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
27288 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
27290 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
27293 2014-05-02 Marek Polacek <polacek@redhat.com>
27295 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
27297 2014-05-02 Kito Cheng <kito@0xlab.org>
27299 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
27300 to a C expression marco.
27301 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
27302 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
27303 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
27304 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
27305 HONOR_REG_ALLOC_ORDER.
27306 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
27308 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27310 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
27312 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27314 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
27316 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
27318 * tree-if-conv.c (is_cond_scalar_reduction): New function.
27319 (convert_scalar_cond_reduction): Likewise.
27320 (predicate_scalar_phi): Add recognition and transformation
27321 of simple conditioanl reduction to be vectorizable.
27323 2014-05-01 Marek Polacek <polacek@redhat.com>
27326 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
27328 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
27330 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
27331 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
27332 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
27333 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
27334 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
27335 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
27336 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
27337 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
27339 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
27341 * config/arc/arc.opt (mlra): Move comment above option name
27342 to avoid mis-parsing as language options.
27344 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27346 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
27347 * config/sol2.h: ... here.
27348 * config/sol2-10.h: Remove.
27350 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
27351 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
27352 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
27353 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
27354 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
27355 * config/sol2.h: ... here.
27356 (SECTION_NAME_FORMAT): Don't redefine.
27357 (STARTFILE_ARCH32_SPEC): Rename to ...
27358 (STARTFILE_ARCH_SPEC): ... this.
27359 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
27360 * config/sparc/sol2.h: ... here.
27361 (SECTION_NAME_FORMAT): Don't undef.
27362 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
27363 (SUBTARGET_EXTRA_SPECS): Remove.
27364 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
27366 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
27367 (MD_STARTFILE_PREFIX): Remove.
27368 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
27369 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
27370 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
27371 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
27372 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
27373 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
27374 * config/i386/sol2.h: ... here.
27375 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
27376 * config/i386/sol2-bi.h: Remove.
27377 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
27378 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
27380 * config/i386/t-sol2-64: Rename to ...
27381 * config/i386/t-sol2: ... this.
27382 * config/sparc/t-sol2-64: Rename to ...
27383 * config/sparc/t-sol2: ... this.
27385 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
27386 sol2_tm_file_head, sol2_tm_file_tail.
27387 Include ${cpu_type}/sol2.h before sol2.h.
27389 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
27390 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
27391 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
27392 Reflect i386/t-sol2-64 renaming.
27393 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
27394 Reflect sparc/t-sol2-64 renaming.
27396 2014-04-30 Richard Biener <rguenther@suse.de>
27398 * passes.c (execute_function_todo): Move TODO_verify_stmts
27399 and TODO_verify_ssa under the TODO_verify_il umbrella.
27400 * tree-ssa.h (verify_ssa): Adjust prototype.
27401 * tree-ssa.c (verify_ssa): Add parameter to tell whether
27402 we should verify SSA operands.
27403 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
27404 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
27405 whether we should verify whether not throwing stmts have EH info.
27406 * graphite-scop-detection.c (create_sese_edges): Adjust.
27407 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
27408 * tree-eh.c (lower_try_finally_switch): Do not add the
27409 default case label twice.
27411 2014-04-30 Marek Polacek <polacek@redhat.com>
27413 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
27414 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
27415 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
27416 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
27418 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
27420 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
27421 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
27422 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
27423 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
27424 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
27425 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
27426 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
27427 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
27429 2014-04-29 David Malcolm <dmalcolm@redhat.com>
27431 * tree-cfg.c (dump_function_to_file): Dump the return type of
27432 functions, in a line to itself before the function body, mimicking
27433 the layout of a C function.
27435 2014-04-29 Jakub Jelinek <jakub@redhat.com>
27437 PR tree-optimization/60971
27438 * tree-tailcall.c (process_assignment): Reject conversions which
27441 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
27443 * calls.c (initialize_argument_information): Always treat
27444 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
27445 (expand_call): Likewise.
27446 (emit_library_call_calue_1): Likewise.
27447 * expr.c (PUSH_ARGS_REVERSED): Do not define.
27448 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
27451 2014-04-29 Nick Clifton <nickc@redhat.com>
27453 * config/msp430/msp430.md (umulsidi): Fix typo.
27454 (mulhisi3): Enable even inside interrupt handlers.
27455 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
27456 bigger return address pushed in large mode.
27458 2014-04-29 Nick Clifton <nickc@redhat.com>
27460 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
27461 (arc_init_reg_tables): Use a machine_mode enum to iterate over
27463 * config/m32r/m32r.c (init_reg_tables): Likewise.
27464 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
27465 enum to hold the modes.
27467 2014-04-29 Richard Biener <rguenther@suse.de>
27469 * dominance.c (free_dominance_info): Add overload with
27470 function parameter.
27471 (dom_info_state): Likewise.
27472 (dom_info_available_p): Likewise.
27473 * basic-block.h (free_dominance_info, dom_info_state,
27474 dom_info_available_p): Declare overloads.
27475 * passes.c (execute_function_todo): Verify that verifiers
27476 don't change dominator info state. Drop dominator info
27477 for IPA pass invocations.
27478 * cgraph.c (release_function_body): Restore asserts that
27479 dominator information is released.
27481 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
27483 * doc/invoke.texi: Fix typo.
27484 * tree-vrp.c: Fix typos.
27485 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
27487 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
27489 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
27491 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
27493 * config/aarch64/aarch64-builtins.c
27494 (aarch64_types_storestruct_lane_qualifiers): New.
27495 (TYPES_STORESTRUCT_LANE): Likewise.
27496 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
27497 (st3_lane): Likewise.
27498 (st4_lane): Likewise.
27499 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
27500 (vec_store_lanesci_lane<mode>): Likewise.
27501 (vec_store_lanesxi_lane<mode>): Likewise.
27502 (aarch64_st2_lane<VQ:mode>): Likewise.
27503 (aarch64_st3_lane<VQ:mode>): Likewise.
27504 (aarch64_st4_lane<VQ:mode>): Likewise.
27505 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
27506 * config/aarch64/arm_neon.h
27507 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
27508 use new macro arguments.
27509 (__ST3_LANE_FUNC): Likewise.
27510 (__ST4_LANE_FUNC): Likewise.
27511 * config/aarch64/iterators.md (V_TWO_ELEM): New.
27512 (V_THREE_ELEM): Likewise.
27513 (V_FOUR_ELEM): Likewise.
27515 2014-04-28 David Malcolm <dmalcolm@redhat.com>
27517 * doc/gimple.texi: Replace the description of the now-defunct
27518 union gimple_statement_d with a diagram showing the
27519 gimple_statement_base class hierarchy and its relationships to
27520 the GSS_ and GIMPLE_ enums.
27522 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
27524 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
27525 * config/aarch64/aarch64.c
27526 (aarch64_cannot_change_mode_class): Weaken conditions.
27527 (aarch64_modes_tieable_p): New.
27528 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
27530 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
27532 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
27533 (loadsync_<mode>): Change mode.
27534 (load_quadpti, store_quadpti): New.
27535 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
27536 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
27538 2014-04-28 Martin Jambor <mjambor@suse.cz>
27540 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
27541 same alias type as the original statement.
27542 (subreplacement_assignment_data): New type.
27543 (handle_unscalarized_data_in_subtree): New type of parameter,
27544 generate new memory accesses with same alias type as the original
27546 (load_assign_lhs_subreplacements): Likewise.
27547 (sra_modify_constructor_assign): Generate new memory accesses with
27548 same alias type as the original statement.
27550 2014-04-28 Richard Biener <rguenther@suse.de>
27552 * tree-pass.h (TODO_verify_il): Define.
27553 (TODO_verify_all): Complete properly.
27554 * passes.c (execute_function_todo): Move existing loop-closed
27555 SSA verification under TODO_verify_il.
27556 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
27557 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
27558 Fix tree sharing issue.
27560 2014-04-28 Richard Biener <rguenther@suse.de>
27562 PR middle-end/60092
27563 * builtins.def (DEF_C11_BUILTIN): Add.
27564 (BUILT_IN_ALIGNED_ALLOC): Likewise.
27565 * coretypes.h (enum function_class): Add function_c11_misc.
27566 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
27567 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
27568 (call_may_clobber_ref_p_1): Likewise.
27569 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
27570 (mark_all_reaching_defs_necessary_1): Likewise.
27571 (propagate_necessity): Likewise.
27572 (eliminate_unnecessary_stmts): Likewise.
27573 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
27575 2014-04-28 Richard Biener <rguenther@suse.de>
27577 * tree-vrp.c (vrp_var_may_overflow): Remove.
27578 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
27579 with overflow immediately bump to one before that value and
27580 let iteration figure out overflow status.
27582 2014-04-28 Richard Biener <rguenther@suse.de>
27584 * configure.ac: Do valgrind header checks unconditionally.
27585 Add --enable-valgrind-annotations.
27586 * system.h: Guard valgrind header inclusion with
27587 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
27588 * alloc-pool.c (pool_alloc, pool_free): Use
27589 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
27590 to guard possibly dead code.
27591 * config.in: Regenerated.
27592 * configure: Likewise.
27594 2014-04-28 Jeff Law <law@redhat.com>
27596 PR tree-optimization/60902
27597 * tree-ssa-threadedge.c
27598 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
27599 over real defs when invalidating outputs from statements that do not
27600 produce useful outputs for threading.
27602 2014-04-28 Richard Biener <rguenther@suse.de>
27604 PR tree-optimization/60979
27605 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
27606 SCOPs that end in a block with a successor with abnormal
27609 2014-04-28 Richard Biener <rguenther@suse.de>
27611 * tree-pass.h (execute_pass_list): Adjust prototype.
27612 * passes.c (pass_manager::execute_early_local_passes): Adjust.
27613 (do_per_function): Change callback signature, push all actual
27614 work to the callbals.
27615 (do_per_function_toporder): Likewise.
27616 (execute_function_dump): Adjust.
27617 (execute_function_todo): Likewise.
27618 (clear_last_verified): Likewise.
27619 (verify_curr_properties): Likewise.
27620 (update_properties_after_pass): Likewise.
27621 (execute_pass_list_1): Split out from ...
27622 (execute_pass_list): ... here. Adjust.
27623 (execute_ipa_pass_list): Likewise.
27624 * cgraphunit.c (cgraph_add_new_function): Adjust.
27625 (analyze_function): Likewise.
27626 (expand_function): Likewise.
27627 * cgraph.c (release_function_body): Free dominance info
27628 here instead of asserting it was magically freed elsewhere.
27630 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
27632 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
27633 * configure: Regenerate.
27634 * config/sparc/sparc.opt (muser-mode): New option.
27635 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
27637 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
27638 * doc/invoke.texi (SPARC options): Document -muser-mode.
27640 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
27642 * cselib.c (find_slot_memmode): Delete.
27643 (cselib_hasher): Change compare_type to a struct.
27644 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
27646 (preserve_constants_and_equivs): Adjust for new compare_type.
27647 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
27648 (wrap_constant): Delete.
27649 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
27651 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
27653 * doc/install.texi (Building with profile feedback): Remove
27656 2014-04-26 Tom de Vries <tom@codesourcery.com>
27658 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
27661 2014-04-25 Cary Coutant <ccoutant@google.com>
27664 * dwarf2out.c (should_move_die_to_comdat): A type definition
27665 can contain a subprogram definition, but don't move it to a
27667 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
27668 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
27670 (clone_tree_hash): Rename to...
27671 (clone_tree_partial): ...this; change callers. Copy
27672 DW_TAG_subprogram DIEs as declarations.
27673 (copy_decls_walk): Don't copy children of a declaration into a
27676 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
27679 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
27682 2014-04-25 Jiong Wang <jiong.wang@arm.com>
27684 * config/arm/predicates.md (call_insn_operand): Add long_call check.
27685 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
27687 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
27690 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27692 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
27694 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27696 PR tree-optimization/60930
27697 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
27698 creating a multiply candidate by folding two constant
27699 multiplicands when the result overflows.
27701 2014-04-25 Jakub Jelinek <jakub@redhat.com>
27703 PR tree-optimization/60960
27704 * tree-vect-generic.c (expand_vector_operation): Only call
27705 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
27707 2014-04-25 Tom de Vries <tom@codesourcery.com>
27709 * expr.c (clobber_reg_mode): New function.
27710 * expr.h (clobber_reg): New function.
27712 2014-04-25 Tom de Vries <tom@codesourcery.com>
27714 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
27717 2014-04-25 Radovan Obradovic <robradovic@mips.com>
27718 Tom de Vries <tom@codesourcery.com>
27720 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
27722 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
27723 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
27724 new argument to find_all_hard_reg_sets call.
27726 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27728 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
27729 Use HOST_WIDE_INT_C for mask literal.
27730 (aarch_rev16_shleft_mask_imm_p): Likewise.
27732 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
27735 * config/sparc/sparc.md (ashlsi3_extend): Delete.
27737 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
27739 PR preprocessor/56540
27740 * config/i386/i386-c.c (ix86_target_macros): Define
27741 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
27743 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27745 * configure.ac (tga_func): Remove.
27746 (LIB_TLS_SPEC): Remove.
27747 * configure: Regenerate.
27748 * config.in: Regenerate.
27749 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
27751 2014-04-25 Richard Biener <rguenther@suse.de>
27754 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
27755 call stmt use/clobber sets during stmt walk instead of
27756 walking the possibly incomplete set of caller edges.
27758 2014-04-25 Richard Biener <rguenther@suse.de>
27761 * passes.c (apply_ipa_transforms): Inline into only caller ...
27762 (execute_one_pass): ... here. Properly bring in function
27763 bodies for nodes we want to apply IPA transforms to.
27765 2014-04-24 Cong Hou <congh@google.com>
27767 PR tree-optimization/60896
27768 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
27769 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
27770 (vect_mark_pattern_stmts): Set the def type of all statements in
27771 PATTERN_DEF_SEQ as vect_internal_def.
27773 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
27775 * doc/extend.texi (PowerPC Built-in Functions): Document new
27776 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
27777 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
27779 * config/rs6000/predicates.md (const_0_to_3_operand): New
27780 predicate to match 0..3 integer constants.
27782 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
27783 to support adding miscellaneous builtin functions.
27784 (BU_DFP_MISC_2): Likewise.
27785 (BU_P7_MISC_1): Likewise.
27786 (BU_P7_MISC_2): Likewise.
27787 (BU_P8V_MISC_3): Likewise.
27788 (BU_MISC_1): Likewise.
27789 (BU_MISC_2): Likewise.
27790 (DIVWE): Add extended divide builtin functions.
27791 (DIVWEO): Likewise.
27792 (DIVWEU): Likewise.
27793 (DIVWEUO): Likewise.
27795 (DIVDEO): Likewise.
27796 (DIVDEU): Likewise.
27797 (DIVDEUO): Likewise.
27798 (DXEX): Add decimal floating-point builtin functions.
27800 (DDEDPD): Likewise.
27801 (DDEDPDQ): Likewise.
27802 (DENBCD): Likewise.
27803 (DENBCDQ): Likewise.
27807 (DSCLIQ): Likewise.
27809 (DSCRIQ): Likewise.
27810 (CDTBCD): Add new BCD builtin functions.
27811 (CBCDTD): Likewise.
27812 (ADDG6S): Likewise.
27813 (BCDADD): Likewise.
27814 (BCDADD_LT): Likewise.
27815 (BCDADD_EQ): Likewise.
27816 (BCDADD_GT): Likewise.
27817 (BCDADD_OV): Likewise.
27818 (BCDSUB): Likewise.
27819 (BCDSUB_LT): Likewise.
27820 (BCDSUB_EQ): Likewise.
27821 (BCDSUB_GT): Likewise.
27822 (BCDSUB_OV): Likewise.
27823 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
27824 (UNPACK_TD): Likewise.
27825 (PACK_TF): Likewise.
27826 (UNPACK_TF): Likewise.
27827 (UNPACK_TF_0): Likewise.
27828 (UNPACK_TF_1): Likewise.
27829 (PACK_V1TI): Likewise.
27830 (UNPACK_V1TI): Likewise.
27832 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
27833 support for decimal floating point builtin functions.
27834 (rs6000_expand_ternop_builtin): Add checks for the new builtin
27835 functions that take constant arguments.
27836 (rs6000_invalid_builtin): Add decimal floating point builtin support.
27837 (rs6000_init_builtins): Setup long double, _Decimal64, and
27838 _Decimal128 types for new builtin functions.
27839 (builtin_function_type): Set the unsigned flags appropriately for
27840 the new builtin functions.
27841 (rs6000_opt_masks): Add support for decimal floating point builtin
27844 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
27845 floating point builtin functions.
27846 (RS6000_BTM_COMMON): Likewise.
27847 (RS6000_BTI_long_double): Likewise.
27848 (RS6000_BTI_dfloat64): Likewise.
27849 (RS6000_BTI_dfloat128): Likewise.
27850 (long_double_type_internal_node): Likewise.
27851 (dfloat64_type_internal_node): Likewise.
27852 (dfloat128_type_internal_node): Likewise.
27854 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
27855 2.07 bcd arithmetic instructions.
27856 (UNSPEC_BCDSUB): Likewise.
27857 (UNSPEC_BCD_OVERFLOW): Likewise.
27858 (UNSPEC_BCD_ADD_SUB): Likewise.
27859 (bcd_add_sub): Likewise.
27860 (BCD_TEST): Likewise.
27861 (bcd<bcd_add_sub>): Likewise.
27862 (bcd<bcd_add_sub>_test): Likewise.
27863 (bcd<bcd_add_sub>_test2): Likewise.
27864 (bcd<bcd_add_sub>_<code>): Likewise.
27865 (peephole2 for combined bcd ops): Likewise.
27867 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
27868 decimal floating point builtin functions.
27869 (UNSPEC_DENBCD): Likewise.
27870 (UNSPEC_DXEX): Likewise.
27871 (UNSPEC_DIEX): Likewise.
27872 (UNSPEC_DSCLI): Likewise.
27873 (UNSPEC_DSCRI): Likewise.
27874 (D64_D128): Likewise.
27875 (dfp_suffix): Likewise.
27876 (dfp_ddedpd_<mode>): Likewise.
27877 (dfp_denbcd_<mode>): Likewise.
27878 (dfp_dxex_<mode>): Likewise.
27879 (dfp_diex_<mode>): Likewise.
27880 (dfp_dscli_<mode>): Likewise.
27881 (dfp_dscri_<mode>): Likewise.
27883 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
27885 (UNSPEC_CDTBCD): Likewise.
27886 (UNSPEC_CBCDTD): Likewise.
27887 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
27888 (UNSPEC_DIVEO): Likewise.
27889 (UNSPEC_DIVEU): Likewise.
27890 (UNSPEC_DIVEUO): Likewise.
27891 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
27892 pack/unpack 128-bit types.
27893 (UNSPEC_PACK_128BIT): Likewise.
27894 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
27895 (udiv<mode>3): Use idiv_ldiv mode attribute.
27896 (div<mode>3): Likewise.
27897 (addg6s): Add new BCD builtin functions.
27898 (cdtbcd): Likewise.
27899 (cbcdtd): Likewise.
27900 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
27901 (div_extend): Likewise.
27902 (div<div_extend>_<mode>"): Likewise.
27903 (FP128_64): Add support for new builtin functions to pack/unpack
27905 (unpack<mode>): Likewise.
27906 (unpacktf_0): Likewise.
27907 (unpacktf_1): Likewise.
27908 (unpack<mode>_dm): Likewise.
27909 (unpack<mode>_nodm): Likewise.
27910 (pack<mode>): Likewise.
27911 (unpackv1ti): Likewise.
27912 (packv1ti): Likewise.
27914 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
27916 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
27919 2014-04-24 Jakub Jelinek <jakub@redhat.com>
27921 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
27922 * gimplify.c (omp_is_private): Change last argument's type to int.
27923 Only diagnose lastprivate if the simd argument is 1, only diagnose
27924 linear if the simd argument is 2.
27925 (gimplify_omp_for): Adjust omp_is_private callers. When adding
27926 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
27927 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
27928 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
27929 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
27930 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
27931 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
27932 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
27933 * tree-nested.c (convert_nonlocal_omp_clauses,
27934 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
27936 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
27939 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
27942 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
27944 * flag-types.h (enum ivar_visibility): Add.
27946 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
27948 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
27949 function * argument.
27951 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
27953 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
27955 2014-04-24 Radovan Obradovic <robradovic@mips.com>
27956 Tom de Vries <tom@codesourcery.com>
27958 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
27959 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
27961 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
27962 * emit-rtl.c (try_split): Same.
27964 2014-04-24 Radovan Obradovic <robradovic@mips.com>
27965 Tom de Vries <tom@codesourcery.com>
27967 * common.opt (fuse-caller-save): New option.
27969 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
27971 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
27972 elements for big-endian.
27974 2014-04-24 Richard Biener <rguenther@suse.de>
27976 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
27977 during TER and instead use the sepops interface for expanding
27978 non-GIMPLE_SINGLE_RHS.
27980 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27982 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
27983 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
27985 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27987 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
27988 assembler 64-bit option.
27989 * configure: Regenerate.
27991 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27993 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
27994 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
27995 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
27996 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
27997 (TARGET_CRYPTO): Take TARGET_SIMD into account.
27999 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28001 * config/aarch64/aarch64-builtins.c
28002 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
28003 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
28004 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
28005 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
28007 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
28008 (Vrevsuff): New mode attribute.
28010 2014-04-24 Terry Guo <terry.guo@arm.com>
28012 * config/arm/arm.h (machine_function): Define variable
28013 after_arm_reorg here.
28014 * config/arm/arm.c (after_arm_reorg): Remove the definition.
28015 (arm_split_constant): Update the way to access variable
28017 (arm_reorg): Ditto.
28018 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
28020 2014-04-23 Tom de Vries <tom@codesourcery.com>
28022 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
28024 2014-04-23 David Malcolm <dmalcolm@redhat.com>
28026 * is-a.h: Update comments to reflect the following changes to the
28027 "pointerness" of the API, making the template parameter match the
28028 return type, allowing use of is-a.h with typedefs of pointers.
28029 (is_a_helper::cast): Return a T rather then a pointer to a T, so
28030 that the return type matches the parameter to the is_a_helper.
28032 (dyn_cast): Likewise.
28034 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
28035 pointer from the is-a.h API.
28037 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
28038 (is_a_helper <cgraph_node *>::test): ...this, matching change to
28040 (is_a_helper <varpool_node>::test): Likewise, convert to...
28041 (is_a_helper <varpool_node *>::test): ...this.
28043 (varpool_first_variable): Update for removal of implicit pointer
28044 from the is-a.h API.
28045 (varpool_next_variable): Likewise.
28046 (varpool_first_static_initializer): Likewise.
28047 (varpool_next_static_initializer): Likewise.
28048 (varpool_first_defined_variable): Likewise.
28049 (varpool_next_defined_variable): Likewise.
28050 (cgraph_first_defined_function): Likewise.
28051 (cgraph_next_defined_function): Likewise.
28052 (cgraph_first_function): Likewise.
28053 (cgraph_next_function): Likewise.
28054 (cgraph_first_function_with_gimple_body): Likewise.
28055 (cgraph_next_function_with_gimple_body): Likewise.
28056 (cgraph_alias_target): Likewise.
28057 (varpool_alias_target): Likewise.
28058 (cgraph_function_or_thunk_node): Likewise.
28059 (varpool_variable_node): Likewise.
28060 (symtab_real_symbol_p): Likewise.
28061 * cgraphunit.c (referred_to_p): Likewise.
28062 (analyze_functions): Likewise.
28063 (handle_alias_pairs): Likewise.
28064 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
28065 * gimple-ssa.h (gimple_vuse_op): Likewise.
28066 (gimple_vdef_op): Likewise.
28067 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
28068 * gimple.c (gimple_build_asm_1): Likewise.
28069 (gimple_build_try): Likewise.
28070 (gimple_build_resx): Likewise.
28071 (gimple_build_eh_dispatch): Likewise.
28072 (gimple_build_omp_for): Likewise.
28073 (gimple_omp_for_set_clauses): Likewise.
28075 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
28076 (is_a_helper <gimple_statement_asm *>::test): ...this.
28077 (is_a_helper <gimple_statement_bind>::test): Convert to...
28078 (is_a_helper <gimple_statement_bind *>::test): ...this.
28079 (is_a_helper <gimple_statement_call>::test): Convert to...
28080 (is_a_helper <gimple_statement_call *>::test): ...this.
28081 (is_a_helper <gimple_statement_catch>::test): Convert to...
28082 (is_a_helper <gimple_statement_catch *>::test): ...this.
28083 (is_a_helper <gimple_statement_resx>::test): Convert to...
28084 (is_a_helper <gimple_statement_resx *>::test): ...this.
28085 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
28086 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
28087 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
28088 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
28089 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
28090 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
28091 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
28092 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
28093 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
28094 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
28095 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
28096 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
28097 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
28098 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
28099 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
28100 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
28101 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
28102 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
28103 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
28104 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
28105 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
28106 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
28107 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
28108 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
28109 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
28110 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
28111 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
28112 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
28113 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
28114 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
28115 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
28116 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
28117 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
28118 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
28119 (is_a_helper <gimple_statement_phi>::test): Convert to...
28120 (is_a_helper <gimple_statement_phi *>::test): ...this.
28121 (is_a_helper <gimple_statement_transaction>::test): Convert to...
28122 (is_a_helper <gimple_statement_transaction *>::test): ...this.
28123 (is_a_helper <gimple_statement_try>::test): Convert to...
28124 (is_a_helper <gimple_statement_try *>::test): ...this.
28125 (is_a_helper <gimple_statement_wce>::test): Convert to...
28126 (is_a_helper <gimple_statement_wce *>::test): ...this.
28127 (is_a_helper <const gimple_statement_asm>::test): Convert to...
28128 (is_a_helper <const gimple_statement_asm *>::test): ...this.
28129 (is_a_helper <const gimple_statement_bind>::test): Convert to...
28130 (is_a_helper <const gimple_statement_bind *>::test): ...this.
28131 (is_a_helper <const gimple_statement_call>::test): Convert to...
28132 (is_a_helper <const gimple_statement_call *>::test): ...this.
28133 (is_a_helper <const gimple_statement_catch>::test): Convert to...
28134 (is_a_helper <const gimple_statement_catch *>::test): ...this.
28135 (is_a_helper <const gimple_statement_resx>::test): Convert to...
28136 (is_a_helper <const gimple_statement_resx *>::test): ...this.
28137 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
28138 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
28139 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
28140 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
28141 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
28143 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
28145 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
28147 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
28149 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
28150 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
28151 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
28153 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
28154 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
28156 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
28157 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
28158 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
28159 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
28160 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
28161 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
28163 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
28164 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
28165 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
28166 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
28168 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
28169 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
28170 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
28171 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
28172 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
28173 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
28174 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
28175 (is_a_helper <const gimple_statement_phi>::test): Convert to...
28176 (is_a_helper <const gimple_statement_phi *>::test): ...this.
28177 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
28178 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
28179 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
28180 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
28181 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
28182 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
28183 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
28185 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
28187 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
28188 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
28190 (gimple_use_ops): Update for removal of implicit pointer from the
28192 (gimple_set_use_ops): Likewise.
28193 (gimple_vuse): Likewise.
28194 (gimple_vdef): Likewise.
28195 (gimple_vuse_ptr): Likewise.
28196 (gimple_vdef_ptr): Likewise.
28197 (gimple_set_vuse): Likewise.
28198 (gimple_set_vdef): Likewise.
28199 (gimple_omp_return_set_lhs): Likewise.
28200 (gimple_omp_return_lhs): Likewise.
28201 (gimple_omp_return_lhs_ptr): Likewise.
28202 (gimple_call_fntype): Likewise.
28203 (gimple_call_set_fntype): Likewise.
28204 (gimple_call_set_internal_fn): Likewise.
28205 (gimple_call_use_set): Likewise.
28206 (gimple_call_clobber_set): Likewise.
28207 (gimple_bind_vars): Likewise.
28208 (gimple_bind_set_vars): Likewise.
28209 (gimple_bind_body_ptr): Likewise.
28210 (gimple_bind_set_body): Likewise.
28211 (gimple_bind_add_stmt): Likewise.
28212 (gimple_bind_block): Likewise.
28213 (gimple_bind_set_block): Likewise.
28214 (gimple_asm_ninputs): Likewise.
28215 (gimple_asm_noutputs): Likewise.
28216 (gimple_asm_nclobbers): Likewise.
28217 (gimple_asm_nlabels): Likewise.
28218 (gimple_asm_input_op): Likewise.
28219 (gimple_asm_input_op_ptr): Likewise.
28220 (gimple_asm_output_op): Likewise.
28221 (gimple_asm_output_op_ptr): Likewise.
28222 (gimple_asm_set_output_op): Likewise.
28223 (gimple_asm_clobber_op): Likewise.
28224 (gimple_asm_set_clobber_op): Likewise.
28225 (gimple_asm_label_op): Likewise.
28226 (gimple_asm_set_label_op): Likewise.
28227 (gimple_asm_string): Likewise.
28228 (gimple_catch_types): Likewise.
28229 (gimple_catch_types_ptr): Likewise.
28230 (gimple_catch_handler_ptr): Likewise.
28231 (gimple_catch_set_types): Likewise.
28232 (gimple_catch_set_handler): Likewise.
28233 (gimple_eh_filter_types): Likewise.
28234 (gimple_eh_filter_types_ptr): Likewise.
28235 (gimple_eh_filter_failure_ptr): Likewise.
28236 (gimple_eh_filter_set_types): Likewise.
28237 (gimple_eh_filter_set_failure): Likewise.
28238 (gimple_eh_must_not_throw_fndecl): Likewise.
28239 (gimple_eh_must_not_throw_set_fndecl): Likewise.
28240 (gimple_eh_else_n_body_ptr): Likewise.
28241 (gimple_eh_else_e_body_ptr): Likewise.
28242 (gimple_eh_else_set_n_body): Likewise.
28243 (gimple_eh_else_set_e_body): Likewise.
28244 (gimple_try_eval_ptr): Likewise.
28245 (gimple_try_cleanup_ptr): Likewise.
28246 (gimple_try_set_eval): Likewise.
28247 (gimple_try_set_cleanup): Likewise.
28248 (gimple_wce_cleanup_ptr): Likewise.
28249 (gimple_wce_set_cleanup): Likewise.
28250 (gimple_phi_capacity): Likewise.
28251 (gimple_phi_num_args): Likewise.
28252 (gimple_phi_result): Likewise.
28253 (gimple_phi_result_ptr): Likewise.
28254 (gimple_phi_set_result): Likewise.
28255 (gimple_phi_arg): Likewise.
28256 (gimple_phi_set_arg): Likewise.
28257 (gimple_resx_region): Likewise.
28258 (gimple_resx_set_region): Likewise.
28259 (gimple_eh_dispatch_region): Likewise.
28260 (gimple_eh_dispatch_set_region): Likewise.
28261 (gimple_omp_critical_name): Likewise.
28262 (gimple_omp_critical_name_ptr): Likewise.
28263 (gimple_omp_critical_set_name): Likewise.
28264 (gimple_omp_for_clauses): Likewise.
28265 (gimple_omp_for_clauses_ptr): Likewise.
28266 (gimple_omp_for_set_clauses): Likewise.
28267 (gimple_omp_for_collapse): Likewise.
28268 (gimple_omp_for_index): Likewise.
28269 (gimple_omp_for_index_ptr): Likewise.
28270 (gimple_omp_for_set_index): Likewise.
28271 (gimple_omp_for_initial): Likewise.
28272 (gimple_omp_for_initial_ptr): Likewise.
28273 (gimple_omp_for_set_initial): Likewise.
28274 (gimple_omp_for_final): Likewise.
28275 (gimple_omp_for_final_ptr): Likewise.
28276 (gimple_omp_for_set_final): Likewise.
28277 (gimple_omp_for_incr): Likewise.
28278 (gimple_omp_for_incr_ptr): Likewise.
28279 (gimple_omp_for_set_incr): Likewise.
28280 (gimple_omp_for_pre_body_ptr): Likewise.
28281 (gimple_omp_for_set_pre_body): Likewise.
28282 (gimple_omp_parallel_clauses): Likewise.
28283 (gimple_omp_parallel_clauses_ptr): Likewise.
28284 (gimple_omp_parallel_set_clauses): Likewise.
28285 (gimple_omp_parallel_child_fn): Likewise.
28286 (gimple_omp_parallel_child_fn_ptr): Likewise.
28287 (gimple_omp_parallel_set_child_fn): Likewise.
28288 (gimple_omp_parallel_data_arg): Likewise.
28289 (gimple_omp_parallel_data_arg_ptr): Likewise.
28290 (gimple_omp_parallel_set_data_arg): Likewise.
28291 (gimple_omp_task_clauses): Likewise.
28292 (gimple_omp_task_clauses_ptr): Likewise.
28293 (gimple_omp_task_set_clauses): Likewise.
28294 (gimple_omp_task_child_fn): Likewise.
28295 (gimple_omp_task_child_fn_ptr): Likewise.
28296 (gimple_omp_task_set_child_fn): Likewise.
28297 (gimple_omp_task_data_arg): Likewise.
28298 (gimple_omp_task_data_arg_ptr): Likewise.
28299 (gimple_omp_task_set_data_arg): Likewise.
28300 (gimple_omp_taskreg_clauses): Likewise.
28301 (gimple_omp_taskreg_clauses_ptr): Likewise.
28302 (gimple_omp_taskreg_set_clauses): Likewise.
28303 (gimple_omp_taskreg_child_fn): Likewise.
28304 (gimple_omp_taskreg_child_fn_ptr): Likewise.
28305 (gimple_omp_taskreg_set_child_fn): Likewise.
28306 (gimple_omp_taskreg_data_arg): Likewise.
28307 (gimple_omp_taskreg_data_arg_ptr): Likewise.
28308 (gimple_omp_taskreg_set_data_arg): Likewise.
28309 (gimple_omp_task_copy_fn): Likewise.
28310 (gimple_omp_task_copy_fn_ptr): Likewise.
28311 (gimple_omp_task_set_copy_fn): Likewise.
28312 (gimple_omp_task_arg_size): Likewise.
28313 (gimple_omp_task_arg_size_ptr): Likewise.
28314 (gimple_omp_task_set_arg_size): Likewise.
28315 (gimple_omp_task_arg_align): Likewise.
28316 (gimple_omp_task_arg_align_ptr): Likewise.
28317 (gimple_omp_task_set_arg_align): Likewise.
28318 (gimple_omp_single_clauses): Likewise.
28319 (gimple_omp_single_clauses_ptr): Likewise.
28320 (gimple_omp_single_set_clauses): Likewise.
28321 (gimple_omp_target_clauses): Likewise.
28322 (gimple_omp_target_clauses_ptr): Likewise.
28323 (gimple_omp_target_set_clauses): Likewise.
28324 (gimple_omp_target_child_fn): Likewise.
28325 (gimple_omp_target_child_fn_ptr): Likewise.
28326 (gimple_omp_target_set_child_fn): Likewise.
28327 (gimple_omp_target_data_arg): Likewise.
28328 (gimple_omp_target_data_arg_ptr): Likewise.
28329 (gimple_omp_target_set_data_arg): Likewise.
28330 (gimple_omp_teams_clauses): Likewise.
28331 (gimple_omp_teams_clauses_ptr): Likewise.
28332 (gimple_omp_teams_set_clauses): Likewise.
28333 (gimple_omp_sections_clauses): Likewise.
28334 (gimple_omp_sections_clauses_ptr): Likewise.
28335 (gimple_omp_sections_set_clauses): Likewise.
28336 (gimple_omp_sections_control): Likewise.
28337 (gimple_omp_sections_control_ptr): Likewise.
28338 (gimple_omp_sections_set_control): Likewise.
28339 (gimple_omp_for_set_cond): Likewise.
28340 (gimple_omp_for_cond): Likewise.
28341 (gimple_omp_atomic_store_set_val): Likewise.
28342 (gimple_omp_atomic_store_val): Likewise.
28343 (gimple_omp_atomic_store_val_ptr): Likewise.
28344 (gimple_omp_atomic_load_set_lhs): Likewise.
28345 (gimple_omp_atomic_load_lhs): Likewise.
28346 (gimple_omp_atomic_load_lhs_ptr): Likewise.
28347 (gimple_omp_atomic_load_set_rhs): Likewise.
28348 (gimple_omp_atomic_load_rhs): Likewise.
28349 (gimple_omp_atomic_load_rhs_ptr): Likewise.
28350 (gimple_omp_continue_control_def): Likewise.
28351 (gimple_omp_continue_control_def_ptr): Likewise.
28352 (gimple_omp_continue_set_control_def): Likewise.
28353 (gimple_omp_continue_control_use): Likewise.
28354 (gimple_omp_continue_control_use_ptr): Likewise.
28355 (gimple_omp_continue_set_control_use): Likewise.
28356 (gimple_transaction_body_ptr): Likewise.
28357 (gimple_transaction_label): Likewise.
28358 (gimple_transaction_label_ptr): Likewise.
28359 (gimple_transaction_set_body): Likewise.
28360 (gimple_transaction_set_label): Likewise.
28362 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
28363 * ipa-inline-analysis.c (inline_write_summary): Likewise.
28364 * ipa-ref.c (ipa_record_reference): Likewise.
28365 * ipa-reference.c (analyze_function): Likewise.
28366 (ipa_reference_write_optimization_summary): Likewise.
28367 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
28368 (address_taken_from_non_vtable_p): Likewise.
28369 (comdat_can_be_unshared_p_1): Likewise.
28370 * lto-cgraph.c (lto_output_ref): Likewise.
28371 (add_references): Likewise.
28372 (compute_ltrans_boundary): Likewise.
28373 (output_symtab): Likewise.
28374 (input_ref): Likewise.
28375 (input_cgraph_1): Likewise.
28376 (output_cgraph_opt_summary): Likewise.
28377 * lto-streamer-out.c (lto_output): Likewise.
28378 (output_symbol_p): Likewise.
28379 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
28380 (lsei_start_function_in_partition): Likewise.
28381 (lsei_next_variable_in_partition): Likewise.
28382 (lsei_start_variable_in_partition): Likewise.
28383 * symtab.c (insert_to_assembler_name_hash): Likewise.
28384 (unlink_from_assembler_name_hash): Likewise.
28385 (symtab_unregister_node): Likewise.
28386 (symtab_remove_node): Likewise.
28387 (dump_symtab_node): Likewise.
28388 (verify_symtab_base): Likewise.
28389 (verify_symtab_node): Likewise.
28390 (symtab_make_decl_local): Likewise.
28391 (symtab_alias_ultimate_target): Likewise.
28392 (symtab_resolve_alias): Likewise.
28393 (symtab_get_symbol_partitioning_class): Likewise.
28394 * tree-phinodes.c (allocate_phi_node): Likewise.
28395 (reserve_phi_args_for_new_edge): Likewise.
28396 (remove_phi_args): Likewise.
28397 * varpool.c (varpool_node_for_asm): Likewise.
28398 (varpool_remove_unreferenced_decls): Likewise.
28400 2014-04-23 Jeff Law <law@redhat.com>
28402 PR tree-optimization/60902
28403 * tree-ssa-threadedge.c
28404 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
28405 invalidate outputs from statements that do not produce useful
28406 outputs for threading.
28408 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
28410 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
28411 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
28412 machine descriptions for Stack Smashing Protector.
28414 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
28416 * aarch64.md (<optab>_rol<mode>3): New pattern.
28417 (<optab>_rolsi3_uxtw): Likewise.
28418 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
28420 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
28422 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
28423 (arm_cortex_a12_tune): Likewise.
28425 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28427 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
28429 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28431 * config/arm/arm.md (arm_rev16si2): New pattern.
28432 (arm_rev16si2_alt): Likewise.
28433 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
28435 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28437 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
28438 (rev16<mode>2_alt): Likewise.
28439 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
28440 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
28441 (aarch_rev16_shleft_mask_imm_p): Likewise.
28442 (aarch_rev16_p_1): Likewise.
28443 (aarch_rev16_p): Likewise.
28444 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
28445 (aarch_rev16_shright_mask_imm_p): Likewise.
28446 (aarch_rev16_shleft_mask_imm_p): Likewise.
28448 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28450 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
28451 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
28453 (cortex_a53_extra_costs): Likewise.
28454 (cortex_a57_extra_costs): Likewise.
28455 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
28456 (cortexa7_extra_costs): Likewise.
28457 (cortexa8_extra_costs): Likewise.
28458 (cortexa12_extra_costs): Likewise.
28459 (cortexa15_extra_costs): Likewise.
28460 (v7m_extra_costs): Likewise.
28461 (arm_new_rtx_costs): Handle BSWAP.
28463 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28465 * config/arm/arm.c (cortexa8_extra_costs): New table.
28466 (arm_cortex_a8_tune): New tuning struct.
28467 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
28469 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28471 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
28473 2014-04-23 Richard Biener <rguenther@suse.de>
28475 * Makefile.in (OBJS): Remove loop-unswitch.o.
28476 * tree-pass.h (make_pass_rtl_unswitch): Remove.
28477 * passes.def (pass_rtl_unswitch): Likewise.
28478 * loop-init.c (gate_rtl_unswitch): Likewise.
28479 (rtl_unswitch): Likewise.
28480 (pass_data_rtl_unswitch): Likewise.
28481 (pass_rtl_unswitch): Likewise.
28482 (make_pass_rtl_unswitch): Likewise.
28483 * rtl.h (reversed_condition): Likewise.
28484 (compare_and_jump_seq): Likewise.
28485 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
28487 * loop-unroll.c (compare_and_jump_seq): Likewise.
28489 2014-04-23 Richard Biener <rguenther@suse.de>
28491 PR tree-optimization/60903
28492 * tree-ssa-loop-im.c (analyze_memory_references): Remove
28493 commented code block.
28494 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
28495 loop flags to newly created BBs and edges.
28497 2014-04-23 Nick Clifton <nickc@redhat.com>
28499 * config/msp430/msp430.c (msp430_handle_option): Move function
28501 (msp430_option_override): Simplify mcu and mcpu option handling.
28502 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
28503 support for -mhwmult command line option.
28504 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
28505 -mhwmult command line option.
28506 (msp430_hwmult_enabled): Delete.
28507 (msp43o_output_labelref): Add support for -mhwmult command line option.
28508 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
28509 (umulsidi3): Likewise.
28510 * config/msp430/msp430.opt (mmcu): Add Report attribute.
28511 (mcpu, mlarge, msmall): Likewise.
28512 (mhwmult): New option.
28513 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
28515 (msp430_is_f5_mcu): Remove prototype.
28516 (msp430_use_f5_series_hwmult): Add prototype.
28517 * config/msp430/msp430-opts.h: New file.
28518 * common/config/msp430: New directory.
28519 * common/config/msp430/msp430-common.c: New file.
28520 * config.gcc (msp430): Remove target_has_targetm_common.
28521 * doc/invoke.texi: Document -mhwmult command line option.
28523 2014-04-23 Nick Clifton <nickc@redhat.com>
28525 * config/i386/cygwin.h (ENDFILE_SPEC): Include
28526 default-manifest.o if it can be found in the search path.
28527 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
28529 2014-04-23 Terry Guo <terry.guo@arm.com>
28531 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
28533 2014-04-23 Richard Biener <rguenther@suse.de>
28535 PR middle-end/60895
28536 * tree-inline.c (declare_return_variable): Use mark_addressable.
28538 2014-04-23 Richard Biener <rguenther@suse.de>
28540 PR middle-end/60891
28541 * loop-init.c (loop_optimizer_init): Make sure to apply
28542 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
28544 2014-04-22 Jakub Jelinek <jakub@redhat.com>
28547 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
28549 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
28550 if flag_sanitize_undefined_trap_on_error.
28551 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
28552 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
28553 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
28554 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
28555 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
28556 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
28557 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
28558 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
28559 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
28560 * ubsan.c (ubsan_instrument_unreachable): Return
28561 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
28562 (ubsan_expand_null_ifn): Emit __builtin_trap ()
28563 if flag_sanitize_undefined_trap_on_error and
28564 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
28565 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
28566 instrument_bool_enum_load): Emit __builtin_trap () if
28567 flag_sanitize_undefined_trap_on_error and
28568 __builtin_handle_*_abort () if !flag_sanitize_recover.
28569 * doc/invoke.texi (-fsanitize-recover,
28570 -fsanitize-undefined-trap-on-error): Document.
28572 2014-04-22 Christian Bruel <christian.bruel@st.com>
28574 * config/sh/sh.md (mov<mode>): Replace movQIHI.
28575 Force immediates to SImode.
28577 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
28579 * config/nios2/nios2.md (UNSPEC_ROUND): New.
28580 (lroundsfsi2): New.
28581 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
28582 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
28583 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
28584 (nios2_fpu_insn): Add entry for round.
28585 (N2FPU_NO_ERRNO_P): Define.
28586 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
28588 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
28590 2014-04-22 Richard Henderson <rth@redhat.com>
28592 * config/aarch64/aarch64 (addti3, subti3): New expanders.
28593 (add<GPI>3_compare0): Remove leading * from name.
28594 (add<GPI>3_carryin): Likewise.
28595 (sub<GPI>3_compare0): Likewise.
28596 (sub<GPI>3_carryin): Likewise.
28597 (<su_optab>mulditi3): New expander.
28598 (multi3): New expander.
28599 (madd<GPI>): Remove leading * from name.
28601 2014-04-22 Martin Jambor <mjambor@suse.cz>
28603 * cgraphclones.c (cgraph_function_versioning): Copy
28604 ipa_transforms_to_apply instead of asserting it is empty.
28606 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
28609 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
28610 on count_exp to get mode.
28612 2014-04-22 Andrew Pinski <apinski@cavium.com>
28614 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
28615 Handle TLS for ILP32.
28616 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
28617 (tlsie_small_<mode>): this and handle PTR.
28618 (tlsie_small_sidi): New pattern.
28619 (tlsle_small): Change to an expand to handle ILP32.
28620 (tlsle_small_<mode>): New pattern.
28621 (tlsdesc_small): Rename to ...
28622 (tlsdesc_small_<mode>): this and handle PTR.
28624 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28626 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
28628 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
28630 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
28631 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
28632 (aarch64_types_signed_poly_qualifiers): Likewise.
28633 (aarch64_types_unsigned_signed_qualifiers): Likewise.
28634 (aarch64_types_poly_signed_qualifiers): Likewise.
28635 (TYPES_REINTERP_SS): Type macro added.
28636 (TYPES_REINTERP_SU): Likewise.
28637 (TYPES_REINTERP_SP): Likewise.
28638 (TYPES_REINTERP_US): Likewise.
28639 (TYPES_REINTERP_PS): Likewise.
28640 (aarch64_fold_builtin): New expression folding added.
28641 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
28642 Declarations removed.
28643 (REINTERP_SS): Declarations added.
28644 (REINTERP_US): Likewise.
28645 (REINTERP_PS): Likewise.
28646 (REINTERP_SU): Likewise.
28647 (REINTERP_SP): Likewise.
28648 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
28649 (vreinterpretq_p8_f64): Likewise.
28650 (vreinterpret_p16_f64): Likewise.
28651 (vreinterpretq_p16_f64): Likewise.
28652 (vreinterpret_f32_f64): Likewise.
28653 (vreinterpretq_f32_f64): Likewise.
28654 (vreinterpret_f64_f32): Likewise.
28655 (vreinterpret_f64_p8): Likewise.
28656 (vreinterpret_f64_p16): Likewise.
28657 (vreinterpret_f64_s8): Likewise.
28658 (vreinterpret_f64_s16): Likewise.
28659 (vreinterpret_f64_s32): Likewise.
28660 (vreinterpret_f64_s64): Likewise.
28661 (vreinterpret_f64_u8): Likewise.
28662 (vreinterpret_f64_u16): Likewise.
28663 (vreinterpret_f64_u32): Likewise.
28664 (vreinterpret_f64_u64): Likewise.
28665 (vreinterpretq_f64_f32): Likewise.
28666 (vreinterpretq_f64_p8): Likewise.
28667 (vreinterpretq_f64_p16): Likewise.
28668 (vreinterpretq_f64_s8): Likewise.
28669 (vreinterpretq_f64_s16): Likewise.
28670 (vreinterpretq_f64_s32): Likewise.
28671 (vreinterpretq_f64_s64): Likewise.
28672 (vreinterpretq_f64_u8): Likewise.
28673 (vreinterpretq_f64_u16): Likewise.
28674 (vreinterpretq_f64_u32): Likewise.
28675 (vreinterpretq_f64_u64): Likewise.
28676 (vreinterpret_s64_f64): Likewise.
28677 (vreinterpretq_s64_f64): Likewise.
28678 (vreinterpret_u64_f64): Likewise.
28679 (vreinterpretq_u64_f64): Likewise.
28680 (vreinterpret_s8_f64): Likewise.
28681 (vreinterpretq_s8_f64): Likewise.
28682 (vreinterpret_s16_f64): Likewise.
28683 (vreinterpretq_s16_f64): Likewise.
28684 (vreinterpret_s32_f64): Likewise.
28685 (vreinterpretq_s32_f64): Likewise.
28686 (vreinterpret_u8_f64): Likewise.
28687 (vreinterpretq_u8_f64): Likewise.
28688 (vreinterpret_u16_f64): Likewise.
28689 (vreinterpretq_u16_f64): Likewise.
28690 (vreinterpret_u32_f64): Likewise.
28691 (vreinterpretq_u32_f64): Likewise.
28693 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
28695 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
28696 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
28697 (vreinterpret_p8_s8): Likewise.
28698 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
28699 (vreinterpret_p8_s16): Likewise.
28700 (vreinterpret_p8_s32): Likewise.
28701 (vreinterpret_p8_s64): Likewise.
28702 (vreinterpret_p8_f32): Likewise.
28703 (vreinterpret_p8_u8): Likewise.
28704 (vreinterpret_p8_u16): Likewise.
28705 (vreinterpret_p8_u32): Likewise.
28706 (vreinterpret_p8_u64): Likewise.
28707 (vreinterpret_p8_p16): Likewise.
28708 (vreinterpretq_p8_s8): Likewise.
28709 (vreinterpretq_p8_s16): Likewise.
28710 (vreinterpretq_p8_s32): Likewise.
28711 (vreinterpretq_p8_s64): Likewise.
28712 (vreinterpretq_p8_f32): Likewise.
28713 (vreinterpretq_p8_u8): Likewise.
28714 (vreinterpretq_p8_u16): Likewise.
28715 (vreinterpretq_p8_u32): Likewise.
28716 (vreinterpretq_p8_u64): Likewise.
28717 (vreinterpretq_p8_p16): Likewise.
28718 (vreinterpret_p16_s8): Likewise.
28719 (vreinterpret_p16_s16): Likewise.
28720 (vreinterpret_p16_s32): Likewise.
28721 (vreinterpret_p16_s64): Likewise.
28722 (vreinterpret_p16_f32): Likewise.
28723 (vreinterpret_p16_u8): Likewise.
28724 (vreinterpret_p16_u16): Likewise.
28725 (vreinterpret_p16_u32): Likewise.
28726 (vreinterpret_p16_u64): Likewise.
28727 (vreinterpret_p16_p8): Likewise.
28728 (vreinterpretq_p16_s8): Likewise.
28729 (vreinterpretq_p16_s16): Likewise.
28730 (vreinterpretq_p16_s32): Likewise.
28731 (vreinterpretq_p16_s64): Likewise.
28732 (vreinterpretq_p16_f32): Likewise.
28733 (vreinterpretq_p16_u8): Likewise.
28734 (vreinterpretq_p16_u16): Likewise.
28735 (vreinterpretq_p16_u32): Likewise.
28736 (vreinterpretq_p16_u64): Likewise.
28737 (vreinterpretq_p16_p8): Likewise.
28738 (vreinterpret_f32_s8): Likewise.
28739 (vreinterpret_f32_s16): Likewise.
28740 (vreinterpret_f32_s32): Likewise.
28741 (vreinterpret_f32_s64): Likewise.
28742 (vreinterpret_f32_u8): Likewise.
28743 (vreinterpret_f32_u16): Likewise.
28744 (vreinterpret_f32_u32): Likewise.
28745 (vreinterpret_f32_u64): Likewise.
28746 (vreinterpret_f32_p8): Likewise.
28747 (vreinterpret_f32_p16): Likewise.
28748 (vreinterpretq_f32_s8): Likewise.
28749 (vreinterpretq_f32_s16): Likewise.
28750 (vreinterpretq_f32_s32): Likewise.
28751 (vreinterpretq_f32_s64): Likewise.
28752 (vreinterpretq_f32_u8): Likewise.
28753 (vreinterpretq_f32_u16): Likewise.
28754 (vreinterpretq_f32_u32): Likewise.
28755 (vreinterpretq_f32_u64): Likewise.
28756 (vreinterpretq_f32_p8): Likewise.
28757 (vreinterpretq_f32_p16): Likewise.
28758 (vreinterpret_s64_s8): Likewise.
28759 (vreinterpret_s64_s16): Likewise.
28760 (vreinterpret_s64_s32): Likewise.
28761 (vreinterpret_s64_f32): Likewise.
28762 (vreinterpret_s64_u8): Likewise.
28763 (vreinterpret_s64_u16): Likewise.
28764 (vreinterpret_s64_u32): Likewise.
28765 (vreinterpret_s64_u64): Likewise.
28766 (vreinterpret_s64_p8): Likewise.
28767 (vreinterpret_s64_p16): Likewise.
28768 (vreinterpretq_s64_s8): Likewise.
28769 (vreinterpretq_s64_s16): Likewise.
28770 (vreinterpretq_s64_s32): Likewise.
28771 (vreinterpretq_s64_f32): Likewise.
28772 (vreinterpretq_s64_u8): Likewise.
28773 (vreinterpretq_s64_u16): Likewise.
28774 (vreinterpretq_s64_u32): Likewise.
28775 (vreinterpretq_s64_u64): Likewise.
28776 (vreinterpretq_s64_p8): Likewise.
28777 (vreinterpretq_s64_p16): Likewise.
28778 (vreinterpret_u64_s8): Likewise.
28779 (vreinterpret_u64_s16): Likewise.
28780 (vreinterpret_u64_s32): Likewise.
28781 (vreinterpret_u64_s64): Likewise.
28782 (vreinterpret_u64_f32): Likewise.
28783 (vreinterpret_u64_u8): Likewise.
28784 (vreinterpret_u64_u16): Likewise.
28785 (vreinterpret_u64_u32): Likewise.
28786 (vreinterpret_u64_p8): Likewise.
28787 (vreinterpret_u64_p16): Likewise.
28788 (vreinterpretq_u64_s8): Likewise.
28789 (vreinterpretq_u64_s16): Likewise.
28790 (vreinterpretq_u64_s32): Likewise.
28791 (vreinterpretq_u64_s64): Likewise.
28792 (vreinterpretq_u64_f32): Likewise.
28793 (vreinterpretq_u64_u8): Likewise.
28794 (vreinterpretq_u64_u16): Likewise.
28795 (vreinterpretq_u64_u32): Likewise.
28796 (vreinterpretq_u64_p8): Likewise.
28797 (vreinterpretq_u64_p16): Likewise.
28798 (vreinterpret_s8_s16): Likewise.
28799 (vreinterpret_s8_s32): Likewise.
28800 (vreinterpret_s8_s64): Likewise.
28801 (vreinterpret_s8_f32): Likewise.
28802 (vreinterpret_s8_u8): Likewise.
28803 (vreinterpret_s8_u16): Likewise.
28804 (vreinterpret_s8_u32): Likewise.
28805 (vreinterpret_s8_u64): Likewise.
28806 (vreinterpret_s8_p8): Likewise.
28807 (vreinterpret_s8_p16): Likewise.
28808 (vreinterpretq_s8_s16): Likewise.
28809 (vreinterpretq_s8_s32): Likewise.
28810 (vreinterpretq_s8_s64): Likewise.
28811 (vreinterpretq_s8_f32): Likewise.
28812 (vreinterpretq_s8_u8): Likewise.
28813 (vreinterpretq_s8_u16): Likewise.
28814 (vreinterpretq_s8_u32): Likewise.
28815 (vreinterpretq_s8_u64): Likewise.
28816 (vreinterpretq_s8_p8): Likewise.
28817 (vreinterpretq_s8_p16): Likewise.
28818 (vreinterpret_s16_s8): Likewise.
28819 (vreinterpret_s16_s32): Likewise.
28820 (vreinterpret_s16_s64): Likewise.
28821 (vreinterpret_s16_f32): Likewise.
28822 (vreinterpret_s16_u8): Likewise.
28823 (vreinterpret_s16_u16): Likewise.
28824 (vreinterpret_s16_u32): Likewise.
28825 (vreinterpret_s16_u64): Likewise.
28826 (vreinterpret_s16_p8): Likewise.
28827 (vreinterpret_s16_p16): Likewise.
28828 (vreinterpretq_s16_s8): Likewise.
28829 (vreinterpretq_s16_s32): Likewise.
28830 (vreinterpretq_s16_s64): Likewise.
28831 (vreinterpretq_s16_f32): Likewise.
28832 (vreinterpretq_s16_u8): Likewise.
28833 (vreinterpretq_s16_u16): Likewise.
28834 (vreinterpretq_s16_u32): Likewise.
28835 (vreinterpretq_s16_u64): Likewise.
28836 (vreinterpretq_s16_p8): Likewise.
28837 (vreinterpretq_s16_p16): Likewise.
28838 (vreinterpret_s32_s8): Likewise.
28839 (vreinterpret_s32_s16): Likewise.
28840 (vreinterpret_s32_s64): Likewise.
28841 (vreinterpret_s32_f32): Likewise.
28842 (vreinterpret_s32_u8): Likewise.
28843 (vreinterpret_s32_u16): Likewise.
28844 (vreinterpret_s32_u32): Likewise.
28845 (vreinterpret_s32_u64): Likewise.
28846 (vreinterpret_s32_p8): Likewise.
28847 (vreinterpret_s32_p16): Likewise.
28848 (vreinterpretq_s32_s8): Likewise.
28849 (vreinterpretq_s32_s16): Likewise.
28850 (vreinterpretq_s32_s64): Likewise.
28851 (vreinterpretq_s32_f32): Likewise.
28852 (vreinterpretq_s32_u8): Likewise.
28853 (vreinterpretq_s32_u16): Likewise.
28854 (vreinterpretq_s32_u32): Likewise.
28855 (vreinterpretq_s32_u64): Likewise.
28856 (vreinterpretq_s32_p8): Likewise.
28857 (vreinterpretq_s32_p16): Likewise.
28858 (vreinterpret_u8_s8): Likewise.
28859 (vreinterpret_u8_s16): Likewise.
28860 (vreinterpret_u8_s32): Likewise.
28861 (vreinterpret_u8_s64): Likewise.
28862 (vreinterpret_u8_f32): Likewise.
28863 (vreinterpret_u8_u16): Likewise.
28864 (vreinterpret_u8_u32): Likewise.
28865 (vreinterpret_u8_u64): Likewise.
28866 (vreinterpret_u8_p8): Likewise.
28867 (vreinterpret_u8_p16): Likewise.
28868 (vreinterpretq_u8_s8): Likewise.
28869 (vreinterpretq_u8_s16): Likewise.
28870 (vreinterpretq_u8_s32): Likewise.
28871 (vreinterpretq_u8_s64): Likewise.
28872 (vreinterpretq_u8_f32): Likewise.
28873 (vreinterpretq_u8_u16): Likewise.
28874 (vreinterpretq_u8_u32): Likewise.
28875 (vreinterpretq_u8_u64): Likewise.
28876 (vreinterpretq_u8_p8): Likewise.
28877 (vreinterpretq_u8_p16): Likewise.
28878 (vreinterpret_u16_s8): Likewise.
28879 (vreinterpret_u16_s16): Likewise.
28880 (vreinterpret_u16_s32): Likewise.
28881 (vreinterpret_u16_s64): Likewise.
28882 (vreinterpret_u16_f32): Likewise.
28883 (vreinterpret_u16_u8): Likewise.
28884 (vreinterpret_u16_u32): Likewise.
28885 (vreinterpret_u16_u64): Likewise.
28886 (vreinterpret_u16_p8): Likewise.
28887 (vreinterpret_u16_p16): Likewise.
28888 (vreinterpretq_u16_s8): Likewise.
28889 (vreinterpretq_u16_s16): Likewise.
28890 (vreinterpretq_u16_s32): Likewise.
28891 (vreinterpretq_u16_s64): Likewise.
28892 (vreinterpretq_u16_f32): Likewise.
28893 (vreinterpretq_u16_u8): Likewise.
28894 (vreinterpretq_u16_u32): Likewise.
28895 (vreinterpretq_u16_u64): Likewise.
28896 (vreinterpretq_u16_p8): Likewise.
28897 (vreinterpretq_u16_p16): Likewise.
28898 (vreinterpret_u32_s8): Likewise.
28899 (vreinterpret_u32_s16): Likewise.
28900 (vreinterpret_u32_s32): Likewise.
28901 (vreinterpret_u32_s64): Likewise.
28902 (vreinterpret_u32_f32): Likewise.
28903 (vreinterpret_u32_u8): Likewise.
28904 (vreinterpret_u32_u16): Likewise.
28905 (vreinterpret_u32_u64): Likewise.
28906 (vreinterpret_u32_p8): Likewise.
28907 (vreinterpret_u32_p16): Likewise.
28908 (vreinterpretq_u32_s8): Likewise.
28909 (vreinterpretq_u32_s16): Likewise.
28910 (vreinterpretq_u32_s32): Likewise.
28911 (vreinterpretq_u32_s64): Likewise.
28912 (vreinterpretq_u32_f32): Likewise.
28913 (vreinterpretq_u32_u8): Likewise.
28914 (vreinterpretq_u32_u16): Likewise.
28915 (vreinterpretq_u32_u64): Likewise.
28916 (vreinterpretq_u32_p8): Likewise.
28917 (vreinterpretq_u32_p16): Likewise.
28919 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
28921 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
28923 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
28925 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
28926 (vqnegd_s64): Likewise.
28927 (vqabs_s64): Likewise.
28928 (vqabsd_s64): Likewise.
28930 2014-04-22 Richard Henderson <rth@redhat.com>
28932 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
28933 computation to the top of the loop.
28935 2014-04-22 Renlin <renlin.li@arm.com>
28936 Jiong Wang <jiong.wang@arm.com>
28938 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
28939 * config/aarch64/aarch64.c (aarch64_layout_frame)
28940 (aarch64_initial_elimination_offset): Likewise.
28942 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
28944 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
28947 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
28949 * machmode.h (bitwise_mode_for_mode): Declare.
28950 * stor-layout.h (bitwise_type_for_mode): Likewise.
28951 * stor-layout.c (bitwise_mode_for_mode): New function.
28952 (bitwise_type_for_mode): Likewise.
28953 * builtins.c (fold_builtin_memory_op): Use it instead of
28954 int_mode_for_mode and build_nonstandard_integer_type.
28956 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28958 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
28959 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
28960 (*-*-solaris2*): Simplify.
28961 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
28962 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
28963 *-*-solaris2.9* handling.
28965 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
28967 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
28968 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
28969 handling, simplify.
28970 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
28971 * configure: Regenerate.
28973 * config/i386/sol2-9.h: Remove.
28975 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
28976 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
28977 Remove Solaris 9 references.
28979 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
28981 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
28982 (floatuns<GPI:mode><GPF:mode>2): Remove.
28983 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
28984 and floatuns conversions.
28985 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
28986 and floatuns conversions.
28987 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
28988 (w1,w2): New mode attributes for inequal width conversions.
28990 2014-04-22 Renlin Li <Renlin.Li@arm.com>
28992 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
28993 the output asm format.
28995 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
28997 * config/aarch64/aarch64-simd.md
28998 (aarch64_cm<optab>di): Always split.
28999 (*aarch64_cm<optab>di): New.
29000 (aarch64_cmtstdi): Always split.
29001 (*aarch64_cmtstdi): New.
29003 2014-04-22 Jakub Jelinek <jakub@redhat.com>
29005 PR tree-optimization/60823
29006 * omp-low.c (ipa_simd_modify_function_body): Go through
29007 all SSA_NAMEs and for those refering to vector arguments
29008 which are going to be replaced adjust SSA_NAME_VAR and,
29009 if it is a default definition, change it into a non-default
29010 definition assigned at the beginning of function from new_decl.
29011 (ipa_simd_modify_stmt_ops): Rewritten.
29012 * tree-dfa.c (set_ssa_default_def): When removing default def,
29013 check for NULL loc instead of NULL *loc.
29015 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29017 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
29018 restrictions on core registers for DImode values in Thumb2.
29020 2014-04-22 Ian Bolton <ian.bolton@arm.com>
29022 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
29023 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
29025 2014-04-22 Ian Bolton <ian.bolton@arm.com>
29027 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
29028 (*iordi_notzesidi_di): Likewise.
29029 (*iordi_notsesidi_di): Likewise.
29031 2014-04-22 Ian Bolton <ian.bolton@arm.com>
29033 * config/arm/arm-protos.h (tune_params): New struct members.
29034 * config/arm/arm.c: Initialise tune_params per processor.
29035 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
29036 for speed, based on new tune_params.
29038 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
29040 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
29041 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
29042 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
29043 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
29044 * config/aarch64/arm_neon.h (vrnd_f64): Added.
29045 (vrnda_f64): Likewise.
29046 (vrndi_f64): Likewise.
29047 (vrndm_f64): Likewise.
29048 (vrndn_f64): Likewise.
29049 (vrndp_f64): Likewise.
29050 (vrndx_f64): Likewise.
29052 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
29054 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
29055 GET_MODE_SIZE argument is enum machine_mode.
29057 2014-04-22 Jakub Jelinek <jakub@redhat.com>
29060 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
29061 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
29063 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
29065 PR middle-end/60281
29066 * asan.c (asan_emit_stack_protection): Force the base to align to
29067 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
29068 appropriate bits if STRICT_ALIGNMENT.
29069 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
29071 (expand_used_vars): Leave a space in the stack frame for alignment
29072 if STRICT_ALIGNMENT.
29074 2014-04-21 David Malcolm <dmalcolm@redhat.com>
29076 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
29078 (gimple_store_p): Likewise.
29079 (gimple_assign_load_p): Likewise.
29080 (gimple_assign_cast_p): Likewise.
29081 (gimple_clobber_p): Likewise.
29083 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
29084 rather than a gimple.
29085 (gimple_assign_cast_p): Likewise.
29087 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
29090 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
29091 If mode is DDmode and TARGET_E500_DOUBLE allow move.
29093 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
29094 more debug information for E500 if -mdebug=reg.
29096 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
29099 * config/i386/i386.c (ix86_expand_builtin)
29100 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
29101 register for target RTX.
29102 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
29104 2014-04-18 Cong Hou <congh@google.com>
29106 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
29107 the widen-mult pattern by handling two operands with different sizes,
29108 and operands whose size is smaller than half of the result type.
29110 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
29112 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
29113 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
29114 (do_estimate_edge_time): Compute it.
29115 * ipa-inline.c (want_inline_small_function_p): Bypass
29116 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
29118 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
29120 * ipa-inline.c (spec_rem): New static variable.
29121 (dump_overall_stats): New function.
29122 (dump_inline_stats): New function.
29124 2014-04-18 Richard Henderson <rth@redhat.com>
29126 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
29127 to GET_MODE_SIZE, not a reg_class_t.
29129 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29131 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
29132 (vsx_xxmrglw_<mode>): Likewise.
29134 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
29137 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
29138 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
29139 (rs6000_init_hard_regno_mode_ok): Likewise.
29141 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
29143 * ipa-inline.c (inline_small_functions): Account only non-cold
29145 * doc/invoke.texi (inline-unit-growth): Update documentation.
29147 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
29149 * config/rs6000/rs6000.md (addti3, subti3): New.
29151 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
29154 * config/i386/i386.c (ix86_expand_clear): Remove outdated
29155 comment. Check optimize_insn_for_size_p instead of
29156 optimize_insn_for_speed_p.
29158 2014-04-17 Martin Jambor <mjambor@suse.cz>
29160 * gimple-iterator.c (gsi_start_edge): New function.
29161 * gimple-iterator.h (gsi_start_edge): Declare.
29162 * tree-sra.c (single_non_eh_succ): New function.
29163 (disqualify_ops_if_throwing_stmt): Renamed to
29164 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
29165 having one non-EH successor BB.
29166 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
29167 generate loads into replacements.
29168 (sra_modify_assign): Likewise and and also use the simple path for
29170 (sra_modify_function_body): Commit statements on edges.
29172 2014-04-17 Richard Biener <rguenther@suse.de>
29174 PR middle-end/60849
29175 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
29176 comparison results and add clarifying comment.
29178 2014-04-17 Jakub Jelinek <jakub@redhat.com>
29180 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
29181 (blank_mode): Initialize it.
29182 (emit_mode_size_inline, emit_mode_nunits_inline,
29183 emit_mode_inner_inline): New functions.
29184 (emit_insn_modes_h): Call them and surround their output with
29185 #if GCC_VERSION >= 4001 ... #endif.
29186 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
29187 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
29188 mode_* arrays if the argument is __builtin_constant_p.
29189 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
29190 is enum machine_mode.
29192 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29194 * passes.c (opt_pass::execute): Adjust.
29195 (pass_manager::execute_pass_mode_switching): Likewise.
29196 (early_local_passes::execute): Likewise.
29197 (execute_one_pass): Pass cfun to the pass's execute method.
29198 * tree-pass.h (opt_pass::execute): Add function * argument.
29199 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
29200 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
29201 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
29202 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
29203 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
29204 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
29205 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
29206 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
29207 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
29208 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
29209 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
29210 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
29211 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
29212 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
29213 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
29214 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
29215 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
29216 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
29217 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
29218 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29219 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29220 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29221 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29222 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29223 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29224 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29225 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
29226 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
29227 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
29230 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29232 * passes.c (opt_pass::gate): Take function * argument.
29233 (gate_all_early_local_passes): Merge into
29234 (early_local_passes::gate): this.
29235 (gate_all_early_optimizations): Merge into
29236 (all_early_optimizations::gate): this.
29237 (gate_all_optimizations): Mege into
29238 (all_optimizations::gate): this.
29239 (gate_all_optimizations_g): Merge into
29240 (all_optimizations_g::gate): this.
29241 (gate_rest_of_compilation): Mege into
29242 (rest_of_compilation::gate): this.
29243 (gate_postreload): Merge into
29244 (postreload::gate): this.
29245 (dump_one_pass): Pass cfun to the pass's gate method.
29246 (execute_ipa_summary_passes): Likewise.
29247 (execute_one_pass): Likewise.
29248 (ipa_write_summaries_2): Likewise.
29249 (ipa_write_optimization_summaries_1): Likewise.
29250 (ipa_read_summaries_1): Likewise.
29251 (ipa_read_optimization_summaries_1): Likewise.
29252 (execute_ipa_stmt_fixups): Likewise.
29253 * tree-pass.h (opt_pass::gate): Add function * argument.
29254 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
29255 combine-stack-adj.c, combine.c, compare-elim.c,
29256 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
29257 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
29258 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
29259 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
29260 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
29261 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
29262 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
29263 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
29264 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
29265 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
29266 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
29267 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
29268 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
29269 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
29270 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
29271 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29272 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29273 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29274 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29275 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29276 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29277 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29278 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
29279 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
29280 var-tracking.c, vtable-verify.c, web.c: Adjust.
29282 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29284 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
29285 * configure: Regenerate.
29287 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29289 * passes.c (dump_one_pass): don't check pass->has_gate.
29290 (execute_ipa_summary_passes): Likewise.
29291 (execute_one_pass): Likewise.
29292 (ipa_write_summaries_2): Likewise.
29293 (ipa_write_optimization_summaries_1): Likewise.
29294 (ipa_read_optimization_summaries_1): Likewise.
29295 (execute_ipa_stmt_fixups): Likewise.
29296 * tree-pass.h (pass_data::has_gate): Remove.
29297 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
29298 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
29299 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
29300 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
29301 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
29302 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
29303 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
29304 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
29305 gimple-low.c, gimple-ssa-isolate-paths.c,
29306 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
29307 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
29308 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
29309 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
29310 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
29311 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
29312 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
29313 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
29314 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
29315 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
29316 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
29317 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
29318 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29319 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29320 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29321 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29322 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29323 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29324 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29325 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
29326 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
29327 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
29330 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29332 * pass_manager.h (pass_manager::register_dump_files_1): Remove
29334 * passes.c (pass_manager::register_dump_files_1): Merge into
29335 (pass_manager::register_dump_files): this, and remove its handling of
29336 properties since the pass always has the properties anyway.
29337 (pass_manager::pass_manager): Adjust.
29339 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29341 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
29342 * passes.c (pass_manager::register_dump_files_1): Remove dead code
29343 dealing with properties.
29344 (pass_manager::register_dump_files): Adjust.
29346 2014-03-20 Mark Wielaard <mjw@redhat.com>
29348 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
29349 then represent the bound as normal constant value.
29351 2014-04-17 Jakub Jelinek <jakub@redhat.com>
29354 Forward port from 4.8 branch
29355 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
29357 * config/i386/bmiintrin.h (_blsi_u32): New.
29358 (_blsi_u64): Ditto.
29359 (_blsr_u32): Ditto.
29360 (_blsr_u64): Ditto.
29361 (_blsmsk_u32): Ditto.
29362 (_blsmsk_u64): Ditto.
29363 (_tzcnt_u32): Ditto.
29364 (_tzcnt_u64): Ditto.
29366 2014-04-17 Kito Cheng <kito@0xlab.org>
29368 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
29370 2014-04-17 Richard Biener <rguenther@suse.de>
29372 PR middle-end/60849
29373 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
29374 boolean results for comparisons.
29376 2014-04-17 Richard Biener <rguenther@suse.de>
29378 PR tree-optimization/60836
29379 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
29380 initial PHI args to be gimple values.
29382 2014-04-17 Richard Biener <rguenther@suse.de>
29384 PR tree-optimization/60841
29385 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
29386 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
29387 of stmts to SLP build.
29388 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
29389 (vect_analyze_slp): Likewise.
29390 (vect_analyze_slp_instance): Likewise.
29391 (vect_build_slp_tree): Limit overall SLP tree growth.
29392 * tree-vectorizer.h (vect_analyze_data_refs,
29393 vect_analyze_slp): Adjust prototypes.
29395 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
29397 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
29400 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
29402 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
29403 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
29404 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
29405 for TARGET_SLOW_PSHUFB
29407 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
29409 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
29410 * config/i386/i386.c (intel_cost): Ditto.
29412 2014-04-17 Joey Ye <joey.ye@arm.com>
29414 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
29416 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
29418 * opts.c (common_handle_option): Disable -fipa-reference coorectly
29419 with -fuse-profile.
29421 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
29423 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
29424 (type_all_derivations_known_p): New predicate.
29425 (type_all_ctors_visible_p): New predicate.
29426 (type_possibly_instantiated_p): New predicate.
29427 (get_odr_type): Compute all_derivations_known.
29428 (dump_odr_type): Dump the flag.
29429 (maybe_record_type): Cleanup.
29430 (record_target_from_binfo): Add bases_to_consider array;
29431 record bases for types w/o instances and skip CXX destructor.
29432 (possible_polymorphic_call_targets_1): Add bases_to_consider
29433 and consider_construction parameters; check if type may have instance.
29434 (get_polymorphic_call_info): Set maybe_in_construction to true
29435 when we know nothing.
29436 (record_targets_from_bases): Skip CXX destructors; they are
29437 never called for types in construction.
29438 (possible_polymorphic_call_targets): Do not record target when
29439 type may not have instance.
29441 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
29444 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
29445 external aliases alive, too.
29447 2014-04-16 Andrew Pinski <apinski@cavium.com>
29449 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
29452 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
29454 * final.c (compute_alignments): Do not apply loop alignment to a block
29455 falling through to the exit.
29457 2014-04-16 Catherine Moore <clm@codesourcery.com>
29459 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
29460 Adjust constraints for microMIPS store patterns.
29462 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
29464 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
29466 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
29468 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
29469 (append_use): Run at -O0.
29470 (append_vdef): Likewise.
29471 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
29472 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
29474 2014-04-16 Jakub Jelinek <jakub@redhat.com>
29476 PR tree-optimization/60844
29477 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
29478 (propagate_op_to_single_use, remove_visited_stmt_chain,
29479 linearize_expr, repropagate_negates, reassociate_bb): Use it
29480 instead of gsi_remove.
29482 2014-04-16 Martin Jambor <mjambor@suse.cz>
29484 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
29485 ipa_transforms_to_apply.
29486 (cgraph_function_versioning): Assert that old_node has empty
29487 ipa_transforms_to_apply.
29488 * trans-mem.c (ipa_tm_create_version): Likewise.
29489 * tree-inline.c (tree_function_versioning): Do not duplicate
29490 ipa_transforms_to_apply.
29492 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29495 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
29497 Pass necessary as flags on 64-bit Solaris/x86.
29498 Use lowercase relocs for x86_64-*-*.
29499 * configure: Regenerate.
29501 2014-04-15 Jan Hubicka <jh@suse.cz>
29503 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
29504 (maybe_record_node, likely_target_p): Use it.
29506 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29509 Revert following patch
29511 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
29514 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
29515 software floating point or no floating point registers, do not
29516 allow any type in the FPRs. Eliminate a test for SPE SIMD types
29517 in GPRs that occurs after we tested for GPRs that would never be
29520 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
29521 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
29522 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
29523 specifically allow DDmode, since that does not use the SPE SIMD
29526 2014-03-21 Mark Wielaard <mjw@redhat.com>
29528 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
29529 as unsigned or int depending on type and value used.
29531 2014-04-15 Richard Biener <rguenther@suse.de>
29533 PR rtl-optimization/56965
29534 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
29535 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
29537 * alias.c (true_dependence_1): Do not call
29538 nonoverlapping_component_refs_p.
29539 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
29540 nonoverlapping_component_refs_p.
29541 (indirect_refs_may_alias_p): Likewise.
29543 2014-04-15 Teresa Johnson <tejohnson@google.com>
29545 * cfg.c (dump_bb_info): Fix flags check.
29546 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
29548 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29550 PR rtl-optimization/60663
29551 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
29554 2014-04-15 Richard Biener <rguenther@suse.de>
29556 * lto-streamer.h (LTO_major_version): Bump to 4.
29558 2014-04-15 Richard Biener <rguenther@suse.de>
29560 * common.opt (lto_partition_model): New enum.
29561 (flto-partition=): Merge separate options with a single with argument,
29562 add -flto-partition=one support.
29563 * flag-types.h (enum lto_partition_model): Declare.
29564 * opts.c (finish_options): Remove duplicate -flto-partition=
29566 * lto-wrapper.c (run_gcc): Adjust.
29568 2014-04-15 Richard Biener <rguenther@suse.de>
29570 * alias.c (ncr_compar): New function.
29571 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
29573 2014-04-15 Richard Biener <rguenther@suse.de>
29575 * alias.c (record_component_aliases): Do not walk BINFOs.
29577 2014-04-15 Richard Biener <rguenther@suse.de>
29579 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
29580 Add struct function argument and adjust.
29581 (find_func_aliases_for_call): Likewise.
29582 (find_func_aliases): Likewise.
29583 (find_func_clobbers): Likewise.
29584 (intra_create_variable_infos): Likewise.
29585 (compute_points_to_sets): Likewise.
29586 (ipa_pta_execute): Adjust. Do not push/pop cfun.
29588 2014-04-15 Richard Biener <rguenther@suse.de>
29590 * tree.c (iterative_hash_expr): Use enum tree_code_class
29591 to store TREE_CODE_CLASS.
29592 (tree_block): Likewise.
29593 (tree_set_block): Likewise.
29594 * tree.h (fold_build_pointer_plus_loc): Use
29595 convert_to_ptrofftype_loc.
29597 2014-04-15 Jakub Jelinek <jakub@redhat.com>
29600 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
29603 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
29605 * cfgloop.h (struct loop): Move force_vectorize down.
29606 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
29607 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
29608 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
29609 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
29610 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
29611 * tree-core.h (enum annot_expr_kind): Add new kind values.
29612 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
29613 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
29615 * tree.def (ANNOTATE_EXPR): Tweak comment.
29617 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
29619 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
29622 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
29624 * tree.h (TYPE_IDENTIFIER): Declare.
29625 * tree.c (subrange_type_for_debug_p): Use it.
29626 * godump.c (go_format_type): Likewise.
29627 * dwarf2out.c (is_cxx_auto, modified_type_die,
29628 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
29629 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
29631 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
29634 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
29636 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
29638 * config/i386/i386.c (examine_argument): Return bool. Return true if
29639 parameter should be passed in memory.
29640 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
29641 (construct_container): Update calls to examine_argument.
29642 (function_arg_advance_64): Ditto.
29643 (return_in_memory_32): Merge with ix86_return_in_memory.
29644 (return_in_memory_64): Ditto.
29645 (return_in_memory_ms_64): Ditto.
29647 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
29649 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
29650 * coverage.c (coverage_compute_profile_id): Handle externally visible
29653 2014-04-14 Martin Jambor <mjambor@suse.cz>
29655 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
29656 DECL_DISREGARD_INLINE_LIMITS functions.
29658 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
29661 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
29663 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
29666 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
29667 optimize_insn_for_speed_p instead of
29668 optimize_function_for_speed_p.
29670 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
29672 * doc/invoke.texi (free): Document AArch64.
29674 2014-04-14 Richard Biener <rguenther@suse.de>
29676 PR tree-optimization/60042
29677 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
29678 (insert_into_preds_of_block): Do not prevent PHI insertion
29679 for REFERENCE exprs here ...
29680 (eliminate_dom_walker::before_dom_children): ... but prevent
29681 their use here under similar conditions when applied to the
29682 IL after PRE optimizations.
29684 2014-04-14 Richard Biener <rguenther@suse.de>
29686 * passes.def: Move early points-to after early SRA.
29688 2014-04-14 Richard Biener <rguenther@suse.de>
29690 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
29691 check for which sign-changes we allow when forwarding
29692 a converted value into a switch.
29694 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
29696 * stor-layout.c (place_field): Finalize non-constant offset for the
29699 2014-04-14 Richard Biener <rguenther@suse.de>
29701 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
29703 (expand_switch_using_bit_tests_p): Likewise.
29704 (process_switch): Compute and pass on speed_p based on the
29706 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
29707 optimize_bb_for_speed_p.
29709 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
29711 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
29712 * function.h (struct function): Rename has_force_vect_loops into
29713 has_force_vectorize_loops.
29714 * lto-streamer-in.c (input_cfg): Adjust for renaming.
29715 (input_struct_function_base): Likewise.
29716 * lto-streamer-out.c (output_cfg): Likewise.
29717 (output_struct_function_base): Likewise.
29718 * omp-low.c (expand_omp_simd): Likewise.
29719 * tree-cfg.c (move_sese_region_to_fn): Likewise.
29720 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
29721 (version_loop_for_if_conversion): Likewise.
29722 (tree_if_conversion): Likewise.
29723 (main_tree_if_conversion): Likewise.
29724 (gate_tree_if_conversion): Likewise.
29725 * tree-inline.c (copy_loops): Likewise.
29726 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
29727 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
29728 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
29729 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
29730 * tree-vectorizer.c (vectorize_loops): Likewise.
29731 * tree-vectorizer.h (unlimited_cost_model): Likewise.
29733 2014-04-14 Richard Biener <rguenther@suse.de>
29736 * lto-streamer-out.c (wrap_refs): New function.
29737 (lto_output): Wrap symbol references in global initializes in
29738 type-preserving MEM_REFs.
29740 2014-04-14 Christian Bruel <christian.bruel@st.com>
29742 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
29744 2014-04-14 Christian Bruel <christian.bruel@st.com>
29746 * config/sh/sh.md (setmemqi): New expand pattern.
29747 * config/sh/sh.h (CLEAR_RATIO): Define.
29748 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
29749 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
29751 2014-04-14 Richard Biener <rguenther@suse.de>
29753 PR middle-end/55022
29754 * fold-const.c (negate_expr_p): Don't negate directional rounding
29756 (fold_negate_expr): Likewise.
29758 2014-04-14 Richard Biener <rguenther@suse.de>
29760 PR tree-optimization/59817
29761 PR tree-optimization/60453
29762 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
29763 recursion to catch all CHRECs in the scalar evolution and restrict
29764 the predicate for the remains appropriately.
29766 2014-04-12 Catherine Moore <clm@codesourcery.com>
29768 * config/mips/constraints.md: Add new register constraint "kb".
29769 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
29770 (*movhi_internal): Likewise.
29771 (*movqi_internal): Likewise.
29772 * config/mips/mips.h (M16_STORE_REGS): New register class.
29773 (REG_CLASS_NAMES): Add M16_STORE_REGS.
29774 (REG_CLASS_CONTENTS): Likewise.
29775 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
29777 2014-04-11 Tobias Burnus <burnus@net-b.de>
29780 * doc/invoke.texi (-Wformat-signedness): Document it.
29781 (Wformat=2): Mention that this enables -Wformat-signedness.
29783 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
29785 * common/config/epiphany/epiphany-common.c
29786 (epiphany_option_optimization_table): Enable section anchors by
29787 default at -O1 or higher.
29788 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
29789 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
29790 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
29791 carries no extra cost.
29792 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
29793 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
29794 * config/epiphany/predicates.md (memclob_operand): New predicate.
29795 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
29796 Use memclob_operand predicate and X constraint for operand 3.
29798 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
29800 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
29801 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
29804 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
29806 PR rtl-optimization/60651
29807 * mode-switching.c (optimize_mode_switching): Make sure to emit
29808 sets of a lower numbered entity before sets of a higher numbered
29809 entity to a mode of the same or lower priority.
29810 When creating a seginfo for a basic block that starts with a code
29811 label, move the insertion point past the code label.
29812 (new_seginfo): Document and enforce requirement that
29813 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
29814 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
29815 * doc/tm.texi: Regenerate.
29817 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
29820 * config/arc/arc.c (arc_save_restore): Fix assert typo.
29822 2013-04-11 Jakub Jelinek <jakub@redhat.com>
29824 * BASE-VER: Set to 4.10.0.
29826 2014-04-11 Tobias Burnus <burnus@net-b.de>
29829 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
29830 * doc/gcc.texi (Service): Update description in the @menu
29831 * doc/invoke.texi (Option Summary): Remove misplaced and
29834 2014-04-11 Steve Ellcey <sellcey@mips.com>
29835 Jakub Jelinek <jakub@redhat.com>
29837 PR middle-end/60556
29838 * expr.c (convert_move): Use emit_store_flag_force instead of
29839 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
29842 2014-04-11 Richard Biener <rguenther@suse.de>
29844 PR middle-end/60797
29845 * varasm.c (assemble_alias): Avoid endless error reporting
29846 recursion by setting TREE_ASM_WRITTEN.
29848 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29850 * config/s390/s390.md: Add a splitter for NOT rtx.
29852 2014-04-11 Jakub Jelinek <jakub@redhat.com>
29854 PR rtl-optimization/60663
29855 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
29857 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
29858 Jakub Jelinek <jakub@redhat.com>
29861 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
29862 flag from decl_node to node.
29864 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29867 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
29868 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
29869 ameliorating the cases where it can be.
29871 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
29874 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
29876 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
29877 (loadsync_<mode>): Change mode.
29878 (load_quadpti, store_quadpti): New.
29879 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
29880 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
29881 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
29883 2014-04-09 Cong Hou <congh@google.com>
29886 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
29889 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29891 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
29892 instead of vnor to exploit possible fusion opportunity in the
29894 (altivec_expand_vec_perm_const_le): Likewise.
29896 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
29898 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
29899 (loadsync_<mode>): Change mode.
29900 (load_quadpti, store_quadpti): New.
29901 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
29902 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
29904 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
29907 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
29908 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
29909 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
29911 2014-04-08 Richard Biener <rguenther@suse.de>
29913 PR middle-end/60706
29914 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
29915 a 64bit widest int print double-int similar to on HWI64 hosts.
29917 2014-04-08 Richard Biener <rguenther@suse.de>
29919 PR tree-optimization/60785
29920 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
29921 default defs properly.
29923 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
29925 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
29926 (Weffc++): Likewise.
29928 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
29930 * ipa-devirt.c (maybe_record_node): When node is not recorded,
29931 set completep to false rather than true.
29933 2014-04-07 Douglas B Rupp <rupp@adacore.com>
29936 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
29937 ARM_TARGET2_DWARF_FORMAT.
29939 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
29942 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
29943 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
29946 2014-04-07 Richard Biener <rguenther@suse.de>
29948 PR tree-optimization/60766
29949 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
29950 (may_eliminate_iv): Convert cand_value_at result to desired type.
29952 2014-04-07 Jason Merrill <jason@redhat.com>
29955 * common.opt (-fno-gnu-unique): Add.
29956 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
29958 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29960 * haifa-sched.c: Fix outdated function reference and minor
29961 grammar errors in introductory comment.
29963 2014-04-07 Richard Biener <rguenther@suse.de>
29965 PR middle-end/60750
29966 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
29967 for noreturn calls.
29968 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
29970 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
29973 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
29974 size accounting for thunks.
29975 (pa_asm_output_mi_thunk): Use final_start_function() and
29976 final_end_function() to output function start and end directives.
29978 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
29980 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
29981 device specific ISA/ feature information. Remove short_sp and
29982 errata_skip ds. Add avr_device_specific_features enum to have device
29984 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
29985 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
29986 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
29987 updated device specific info.
29988 * config/avr/avr-mcus.def: Merge device specific details to
29989 dev_attribute field.
29990 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
29992 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
29993 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
29994 assembler if RMW isa supported by current device.
29995 * config/avr/genmultilib.awk: Update as device info structure changed.
29996 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
29998 2014-04-04 Cong Hou <congh@google.com>
30000 PR tree-optimization/60656
30001 * tree-vect-stmts.c (supportable_widening_operation):
30002 Fix a bug that elements in a vector with vect_used_by_reduction
30003 property are incorrectly reordered when the operation on it is not
30004 consistant with the one in reduction operation.
30006 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
30008 PR rtl-optimization/60155
30009 * gcse.c (record_set_data): New function.
30010 (single_set_gcse): New function.
30011 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
30012 (hoist_code): Likewise.
30013 (get_pressure_class_and_nregs): Likewise.
30015 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
30017 * explow.c (probe_stack_range): Emit a final optimization blockage.
30019 2014-04-04 Anthony Green <green@moxielogic.com>
30021 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
30024 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
30027 * lto-cgraph.c (input_overwrite_node): Check that partitioning
30028 flags are set only during streaming.
30029 * ipa.c (process_references, walk_polymorphic_call_targets,
30030 symtab_remove_unreachable_nodes): Drop bodies of always inline
30031 after early inlining.
30032 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
30034 2014-04-04 Jakub Jelinek <jakub@redhat.com>
30035 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30038 * dwarf2out.c (const_ok_for_output_1): Reject expressions
30041 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30044 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
30046 (cortex_a53_fdivd): Likewise.
30048 2014-04-04 Martin Jambor <mjambor@suse.cz>
30051 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
30052 Adjust all callers.
30053 * cgraph.c (clone_of_p): Also return true if thunks match.
30054 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
30055 cgraph_function_or_thunk_node and an obsolete comment.
30056 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
30058 (build_function_decl_skip_args): Likewise.
30059 (set_new_clone_decl_and_node_flags): New function.
30060 (duplicate_thunk_for_node): Likewise.
30061 (redirect_edge_duplicating_thunks): Likewise.
30062 (cgraph_clone_node): New parameter args_to_skip, pass it to
30063 redirect_edge_duplicating_thunks which is called instead of
30064 cgraph_redirect_edge_callee.
30065 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
30066 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
30068 2014-04-04 Jeff Law <law@redhat.com>
30071 * config/arm/predicates.md (const_int_I_operand): New predicate.
30072 (const_int_M_operand): Similarly.
30073 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
30075 (insv_t2, extv_reg, extzv_t2): Likewise.
30076 (load_multiple_with_writeback): Similarly for const_int_I_operand.
30077 (pop_multiple_with_writeback_and_return): Likewise.
30078 (vfp_pop_multiple_with_writeback): Likewise
30080 2014-04-04 Richard Biener <rguenther@suse.de>
30083 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
30084 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
30086 * gimplify.h (gimple_add_tmp_var_fn): Declare.
30087 * gimplify.c (gimple_add_tmp_var_fn): New function.
30088 * gimple-expr.h (create_tmp_reg_fn): Declare.
30089 * gimple-expr.c (create_tmp_reg_fn): New function.
30090 * gimple-low.c (record_vars_into): Don't change cfun.
30091 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
30092 code generation without cfun.
30094 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
30097 * Makefile.in (install-driver): Fix shell scripting.
30099 2014-04-03 Cong Hou <congh@google.com>
30101 PR tree-optimization/60505
30102 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
30103 threshold of number of iterations below which no vectorization
30105 * tree-vect-loop.c (new_loop_vec_info):
30106 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
30107 * tree-vect-loop.c (vect_analyze_loop_operations):
30108 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
30109 * tree-vect-loop.c (vect_transform_loop):
30110 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
30111 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
30112 of iterations of the loop and see if we should build the epilogue.
30114 2014-04-03 Richard Biener <rguenther@suse.de>
30116 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
30117 (streamer_tree_cache_create): Adjust.
30118 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
30119 to allow optional nodes array.
30120 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
30121 (streamer_tree_cache_append): Likewise.
30122 (streamer_tree_cache_create): Create nodes array optionally
30123 as specified by parameter.
30124 * lto-streamer-out.c (create_output_block): Avoid maintaining
30125 the node array in the writer cache.
30126 (DFS_write_tree): Remove assertion.
30127 (produce_asm_for_decls): Free the out decl state hash table early.
30128 * lto-streamer-in.c (lto_data_in_create): Adjust for
30129 streamer_tree_cache_create prototype change.
30131 2014-04-03 Richard Biener <rguenther@suse.de>
30133 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
30134 set TREE_CHAIN to NULL_TREE.
30136 2014-04-03 Richard Biener <rguenther@suse.de>
30138 PR tree-optimization/60740
30139 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
30140 over all GIMPLE_COND operands.
30142 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
30144 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
30145 (Weffc++): Remove Scott's numbering, merge lists and reference
30148 2014-04-03 Nick Clifton <nickc@redhat.com>
30150 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
30153 2014-04-03 Martin Jambor <mjambor@suse.cz>
30155 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
30156 mention gcc_unreachable before failing.
30157 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
30160 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
30163 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
30164 inconsistent code and instead mark the context inconsistent.
30165 (possible_polymorphic_call_targets): For inconsistent contexts
30166 return empty complete list.
30168 2014-04-02 Anthony Green <green@moxielogic.com>
30170 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
30171 (extendqisi2, extendhisi2): Define.
30172 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
30173 (WCHAR_TYPE): Change to unsigned int.
30175 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30177 PR tree-optimization/60733
30178 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
30179 insertion point for PHI candidates to be the end of the feeding
30180 block for the PHI argument.
30182 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
30184 PR rtl-optimization/60650
30185 * lra-constraints.c (process_alt_operands): Decrease reject for
30186 earlyclobber matching.
30188 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30190 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
30192 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30194 * config/spu/spu.c (pad_bb): Do not crash when the last
30195 insn is CODE_FOR_blockage.
30197 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30199 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
30200 lies outside the target mode.
30202 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
30205 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
30206 software floating point or no floating point registers, do not
30207 allow any type in the FPRs. Eliminate a test for SPE SIMD types
30208 in GPRs that occurs after we tested for GPRs that would never be
30211 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
30212 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
30213 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
30214 specifically allow DDmode, since that does not use the SPE SIMD
30217 2014-04-02 Richard Biener <rguenther@suse.de>
30219 PR middle-end/60729
30220 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
30221 MODE_INTs. Properly use negv_optab.
30222 (expand_abs): Likewise.
30224 2014-04-02 Richard Biener <rguenther@suse.de>
30227 * Makefile.in (install-driver): Guard extra installs with special
30230 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
30232 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30233 Document vec_vgbbd.
30235 2014-04-01 Richard Henderson <rth@redhat.com>
30238 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
30239 alternative enabled before register allocation.
30241 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
30243 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
30244 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
30246 (nios2_large_got_address): Remove unneeded 'sym' parameter.
30247 (nios2_got_address): Update nios2_large_got_address call site.
30248 (nios2_delegitimize_address): New function.
30249 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
30250 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
30251 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
30253 2014-04-01 Martin Husemann <martin@duskware.de>
30255 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
30258 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
30260 PR rtl-optimization/60604
30261 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
30262 check from register_operand.
30263 (register_operand): Redefine in terms of general_operand.
30264 (nonmemory_operand): Use register_operand for the non-constant cases.
30266 2014-04-01 Richard Biener <rguenther@suse.de>
30268 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
30270 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
30272 * doc/invoke.texi (mapp-regs): Clarify.
30274 2014-03-31 Ulrich Drepper <drepper@gmail.com>
30276 * config/i386/avx512fintrin.h (__v32hi): Define type.
30277 (__v64qi): Likewise.
30278 (_mm512_set1_epi8): Define.
30279 (_mm512_set1_epi16): Define.
30280 (_mm512_set4_epi32): Define.
30281 (_mm512_set4_epi64): Define.
30282 (_mm512_set4_pd): Define.
30283 (_mm512_set4_ps): Define.
30284 (_mm512_setr4_epi64): Define.
30285 (_mm512_setr4_epi32): Define.
30286 (_mm512_setr4_pd): Define.
30287 (_mm512_setr4_ps): Define.
30288 (_mm512_setzero_epi32): Define.
30290 2014-03-31 Martin Jambor <mjambor@suse.cz>
30292 PR middle-end/60647
30293 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
30294 callsite_arguments_match_p. Updated all callers. Also check types of
30295 corresponding formal parameters and actual arguments.
30296 (not_all_callers_have_enough_arguments_p) Renamed to
30297 some_callers_have_mismatched_arguments_p.
30299 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
30301 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
30303 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
30306 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
30309 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
30311 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
30312 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
30314 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
30315 Use FMAMODE_NOVF512 mode iterator.
30316 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
30317 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
30318 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
30319 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
30321 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
30322 Use VF_128_256 mode iterator.
30323 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
30326 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
30328 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
30329 static chain if needed.
30331 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
30334 * lra-constraints.c (index_part_to_reg): New.
30335 (process_address): Use it.
30337 2014-03-27 Jeff Law <law@redhat.com>
30338 Jakub Jelinek <jakub@redhat.com>
30341 * expr.c (do_tablejump): Use simplify_gen_binary rather than
30342 gen_rtx_{PLUS,MULT} to build up the address expression.
30344 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
30345 creating non-canonical RTL.
30347 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
30350 * ipa-inline.c (want_inline_small_function_p): Short circuit large
30351 functions; reorganize to make cheap checks first.
30352 (inline_small_functions): Do not estimate growth when dumping;
30354 * ipa-inline.h (inline_summary): Add min_size.
30355 (growth_likely_positive): New function.
30356 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
30357 (set_cond_stmt_execution_predicate): Cleanup.
30358 (estimate_edge_size_and_time): Compute min_size.
30359 (estimate_calls_size_and_time): Likewise.
30360 (estimate_node_size_and_time): Likewise.
30361 (inline_update_overall_summary): Update min_size.
30362 (do_estimate_edge_time): Likewise.
30363 (do_estimate_edge_size): Update.
30364 (do_estimate_edge_hints): Update.
30365 (growth_likely_positive): New function.
30367 2014-03-28 Jakub Jelinek <jakub@redhat.com>
30370 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
30371 also if addr has VOIDmode.
30373 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30375 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
30376 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
30378 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
30379 instructions as well as AdvancedSIMD loads.
30381 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30383 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
30384 Use crypto_aese type.
30385 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
30386 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
30387 crypto_aese, crypto_aesmc. Move to types.md.
30388 * config/arm/types.md (crypto_aes): Split into crypto_aese,
30390 * config/arm/iterators.md (crypto_type): Likewise.
30392 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
30394 * cgraph.c: Include expr.h and tree-dfa.h.
30395 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
30398 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
30401 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
30402 regs from checking multi-reg pseudos.
30404 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30406 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
30408 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30410 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
30411 if it would clobber the stack pointer, even temporarily.
30413 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
30415 * mode-switching.c: Make small adjustments to the top comment.
30417 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
30419 * config/rs6000/constraints.md (wD constraint): New constraint to
30420 match the constant integer to get the top DImode/DFmode out of a
30421 vector in a VSX register.
30423 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
30424 match the constant integer to get the top DImode/DFmode out of a
30425 vector in a VSX register.
30427 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
30430 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
30433 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
30434 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
30436 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
30437 Optimize vec_extract of 64-bit values, where the value being
30438 extracted is in the top word, where we can use scalar
30439 instructions. Add direct move and store support. Combine the big
30440 endian/little endian vector select load support into a single insn.
30441 (vsx_extract_<mode>_internal1): Likewise.
30442 (vsx_extract_<mode>_internal2): Likewise.
30443 (vsx_extract_<mode>_load): Likewise.
30444 (vsx_extract_<mode>_store): Likewise.
30445 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
30446 combined into vsx_extract_<mode>_load.
30447 (vsx_extract_<mode>_one_le): Likewise.
30449 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
30450 define the top 64-bit vector element.
30452 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
30455 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30456 Document vec_vbpermq builtin.
30459 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
30460 enable use of xxsldwi and xxpermdi builtin functions.
30461 (vec_xxpermdi): Likewise.
30463 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30464 Document use of vec_xxsldwi and vec_xxpermdi builtins.
30466 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
30468 PR rtl-optimization/60650
30469 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
30471 (find_spills_for): New.
30472 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
30473 Spill all pseudos on the second iteration.
30475 2014-03-27 Marek Polacek <polacek@redhat.com>
30478 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
30481 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30483 * config/s390/s390.c (s390_can_use_return_insn): Check for
30484 call-saved FPRs on 31 bit.
30486 2014-03-27 Jakub Jelinek <jakub@redhat.com>
30488 PR middle-end/60682
30489 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
30490 if they need regimplification, just drop them instead of
30491 calling gimple_regimplify_operands on them.
30493 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
30496 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
30497 (aarch64_frame_pointer_required): Adjust logic.
30498 (aarch64_can_eliminate): Adjust logic.
30499 (aarch64_override_options_after_change): Adjust logic.
30501 2014-03-27 Dehao Chen <dehao@google.com>
30503 * ipa-inline.c (early_inliner): Update node's inline info.
30505 2014-03-26 Dehao Chen <dehao@google.com>
30507 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
30508 compiler inserted conditional jumps for NAN float check.
30510 2014-03-26 Jakub Jelinek <jakub@redhat.com>
30512 * ubsan.h (ubsan_create_data): Change second argument's type
30513 to const location_t *.
30514 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
30516 (ubsan_create_data): Change second argument to const location_t *PLOC.
30517 Create Loc field whenever PLOC is non-NULL.
30518 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
30519 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
30523 * real.c (real_to_integer2): Change type of low to UHWI.
30525 2014-03-26 Tobias Burnus <burnus@net-b.de>
30527 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
30528 (CILK_SELF_SPECS): New define.
30529 (driver_self_specs): Use it.
30531 2014-03-26 Richard Biener <rguenther@suse.de>
30533 * tree-pretty-print.c (percent_K_format): Implement special
30534 case for LTO and its stripped down BLOCK tree.
30536 2014-03-26 Jakub Jelinek <jakub@redhat.com>
30539 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
30541 * tree-vrp.c (simplify_internal_call_using_ranges): If only
30542 one range is range_int_cst_p, but not both, at least optimize
30543 addition/subtraction of 0 and multiplication by 0 or 1.
30544 * gimple-fold.c (gimple_fold_call): Fold
30545 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
30546 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
30547 INTEGER_CSTs, try to fold at least x * 0 and y - y.
30549 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
30551 PR rtl-optimization/60452
30552 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
30553 <case REG>: Return 1 for invalid offsets from the frame pointer.
30555 2014-03-26 Marek Polacek <polacek@redhat.com>
30558 * doc/extend.texi (C Extensions): Mention variable-length arrays in
30561 2014-03-26 Marek Polacek <polacek@redhat.com>
30564 * doc/extend.texi (Designated Inits): Describe what happens to omitted
30567 2014-03-26 Marek Polacek <polacek@redhat.com>
30570 * ira-color.c (update_conflict_hard_regno_costs): Perform the
30571 multiplication in unsigned type.
30573 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
30575 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
30577 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
30579 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
30581 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
30584 * cif-code.def (UNREACHABLE) New code.
30585 * ipa-inline.c (inline_small_functions): Skip edges to
30586 __builtlin_unreachable.
30587 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
30588 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
30589 predicate to __bulitin_unreachable.
30590 (set_cond_stmt_execution_predicate): Fix issue when
30591 invert_tree_comparison returns ERROR_MARK.
30592 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
30593 propagate to inline clones.
30594 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
30596 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
30597 * cgraphclones.c (cgraph_clone_node): If call destination is already
30598 ureachable, do not redirect it back.
30599 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
30602 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
30604 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
30605 Do not modify inline clones.
30607 2014-03-25 Jakub Jelinek <jakub@redhat.com>
30609 * config/i386/i386.md (general_sext_operand): New mode attr.
30610 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
30611 don't generate (sign_extend (const_int)).
30612 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
30613 operands[2]. Use We constraint instead of <i> and
30614 <general_sext_operand> predicate instead of <general_operand>.
30615 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
30616 * config/i386/constraints.md (We): New constraint.
30617 * config/i386/predicates.md (x86_64_sext_operand,
30618 sext_operand): New predicates.
30620 2014-03-25 Martin Jambor <mjambor@suse.cz>
30623 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
30624 inconsistent devirtualizations to __builtin_unreachable.
30626 2014-03-25 Marek Polacek <polacek@redhat.com>
30629 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
30631 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
30633 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
30634 order of elements for big-endian.
30636 2014-03-25 Richard Biener <rguenther@suse.de>
30638 PR middle-end/60635
30639 * gimplify-me.c (gimple_regimplify_operands): Update the
30642 2014-03-25 Martin Jambor <mjambor@suse.cz>
30645 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
30646 (lto_output_varpool_node): Likewise.
30647 (input_overwrite_node): Likewise.
30648 (input_varpool_node): Likewise.
30650 2014-03-25 Richard Biener <rguenther@suse.de>
30652 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
30653 (run_gcc): Likewise.
30655 2014-03-25 Jakub Jelinek <jakub@redhat.com>
30657 * combine.c (simplify_compare_const): Add MODE argument.
30658 Handle mode_width 0 as very large mode_width.
30659 (try_combine, simplify_comparison): Adjust callers.
30661 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
30662 type to avoid signed integer overflow.
30663 * explow.c (plus_constant): Likewise.
30665 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
30667 * doc/generic.texi: Correct typos.
30669 2014-03-24 Tobias Burnus <burnus@net-b.de>
30671 * doc/invoke.texi (-flto): Expand section about
30672 using static libraries with LTO.
30674 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30676 PR rtl-optimization/60501
30677 * optabs.def (addptr3_optab): New optab.
30678 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
30679 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
30680 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
30682 * lra.c (emit_add3_insn): Use the addptr pattern if available.
30684 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
30686 2014-03-24 Ulrich Drepper <drepper@gmail.com>
30688 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
30691 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
30692 (_mm256_undefined_ps): Define.
30693 (_mm256_undefined_pd): Define.
30694 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
30695 (_mm_undefined_pd): Define.
30696 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
30697 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
30698 (_mm512_undefined_ps): Define.
30699 (_mm512_undefined_pd): Define.
30700 Use _mm*_undefined_*.
30701 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
30703 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
30705 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
30706 (lshr_simd): DI mode added.
30707 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
30708 (aarch64_ushr_simddi): Likewise.
30709 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
30710 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
30711 (vshrd_n_u64): Likewise.
30713 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30715 * Makefile.in (s-macro_list): Depend on cc1.
30717 2014-03-23 Teresa Johnson <tejohnson@google.com>
30719 * ipa-utils.c (ipa_print_order): Use specified dump file.
30721 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
30723 PR rtl-optimization/60601
30724 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
30726 * gcc.c (eval_spec_function): Initialize save_growing_value.
30728 2014-03-22 Jakub Jelinek <jakub@redhat.com>
30731 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
30732 code == MINUS_EXPR, never swap op0 with op1.
30734 * toplev.c (init_local_tick): Avoid signed integer multiplication
30736 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
30737 shift by first operand's bitsize.
30739 2014-03-21 Jakub Jelinek <jakub@redhat.com>
30742 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
30743 redefine to 1 or 0.
30744 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
30745 TARGET_ISA_64BIT_P(x).
30747 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30749 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
30750 pattern for vector nor instead of subtract from splat(-1).
30751 (altivec_expand_vec_perm_const_le): Likewise.
30753 2014-03-21 Richard Henderson <rth@twiddle.net>
30756 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
30757 related insns after epilogue_completed.
30759 2014-03-21 Martin Jambor <mjambor@suse.cz>
30762 * cgraph.h (symtab_node): New flag body_removed.
30763 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
30764 when removing bodies.
30765 * symtab.c (dump_symtab_base): Dump body_removed flag.
30766 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
30767 had their bodies removed.
30769 2014-03-21 Martin Jambor <mjambor@suse.cz>
30772 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
30775 2014-03-21 Richard Biener <rguenther@suse.de>
30777 PR tree-optimization/60577
30778 * tree-core.h (struct tree_base): Document nothrow_flag use
30779 in DECL_NONALIASED.
30780 * tree.h (DECL_NONALIASED): New.
30781 (may_be_aliased): Adjust.
30782 * coverage.c (build_var): Set DECL_NONALIASED.
30784 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
30786 * expr.c (expand_expr_real_1): Remove outdated comment.
30788 2014-03-20 Jakub Jelinek <jakub@redhat.com>
30790 PR middle-end/60597
30791 * ira.c (adjust_cleared_regs): Call copy_rtx on
30792 *reg_equiv[REGNO (loc)].src_p before passing it to
30793 simplify_replace_fn_rtx.
30796 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
30797 into CONST, put pic register as first operand of PLUS. Use
30798 gen_const_mem for both 32-bit and 64-bit PIC got loads.
30800 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30802 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
30804 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
30806 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
30807 around for store forwarding issue in the FPU on the UT699.
30808 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
30809 loads and operations if -mfix-ut699 is specified.
30810 (divtf3_hq): Tweak attribute.
30811 (sqrttf2_hq): Likewise.
30813 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
30815 * calls.c (store_one_arg): Remove incorrect const qualification on the
30816 type of the temporary.
30817 * cfgexpand.c (expand_return): Likewise.
30818 * expr.c (expand_constructor): Likewise.
30819 (expand_expr_real_1): Likewise.
30821 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
30823 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
30826 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
30829 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
30831 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
30833 * config/arm/aarch-common-protos.h
30834 (alu_cost_table): Fix spelling of "extend".
30835 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
30837 2014-03-19 Richard Biener <rguenther@suse.de>
30839 PR middle-end/60553
30840 * tree-core.h (tree_type_common): Re-order pointer members
30841 to reduce recursion depth during GC walks.
30843 2014-03-19 Marek Polacek <polacek@redhat.com>
30846 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
30847 before accessing it.
30849 2014-03-19 Richard Biener <rguenther@suse.de>
30852 * lto-streamer-in.c (input_function): In WPA stage do not drop
30855 2014-03-19 Jakub Jelinek <jakub@redhat.com>
30857 PR tree-optimization/60559
30858 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
30859 with build_zero_cst assignment.
30861 2014-03-18 Kai Tietz <ktietz@redhat.com>
30863 PR rtl-optimization/56356
30864 * sdbout.c (sdbout_parms): Verify that parms'
30865 incoming argument is valid.
30866 (sdbout_reg_parms): Likewise.
30868 2014-03-18 Richard Henderson <rth@redhat.com>
30871 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
30872 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
30873 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
30875 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
30877 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
30878 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
30879 Italicize plugin event names in description. Explain that
30880 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
30881 Remind that no GCC functions should be called after PLUGIN_FINISH.
30882 Explain what pragmas with expansion are.
30884 2014-03-18 Martin Liska <mliska@suse.cz>
30886 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
30887 gimple call statement is update.
30888 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
30889 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
30891 2014-03-18 Jakub Jelinek <jakub@redhat.com>
30894 * ubsan.c (ubsan_instrument_unreachable): Call
30895 initialize_sanitizer_builtins.
30896 (ubsan_pass): Likewise.
30899 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
30900 varpool_finalize_decl instead of rest_of_decl_compilation.
30902 2014-03-18 Richard Biener <rguenther@suse.de>
30904 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
30905 by using bitmap_and_compl instead of bitmap_and_compl_into.
30906 (df_rd_transfer_function): Likewise.
30908 2014-03-18 Richard Biener <rguenther@suse.de>
30910 * doc/lto.texi (fresolution): Fix typo.
30912 2014-03-18 Richard Biener <rguenther@suse.de>
30914 * doc/invoke.texi (flto): Update for changes in 4.9.
30916 2014-03-18 Richard Biener <rguenther@suse.de>
30918 * doc/loop.texi: Remove section on the removed lambda framework.
30919 Update loop docs with recent changes in preserving loop structure.
30921 2014-03-18 Richard Biener <rguenther@suse.de>
30923 * doc/lto.texi (-fresolution): Document.
30925 2014-03-18 Richard Biener <rguenther@suse.de>
30927 * doc/contrib.texi: Adjust my name.
30929 2014-03-18 Jakub Jelinek <jakub@redhat.com>
30932 * internal-fn.c: Include diagnostic-core.h.
30933 (expand_BUILTIN_EXPECT): New function.
30934 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
30935 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
30936 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
30937 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
30938 IFN_BUILTIN_EXPECT.
30939 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
30940 Revert 3 argument __builtin_expect code.
30941 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
30942 * gimple-fold.c (gimple_fold_call): Likewise.
30943 * tree.h (fold_builtin_expect): New prototype.
30944 * builtins.c (build_builtin_expect_predicate): Add predictor
30945 argument, if non-NULL, create 3 argument __builtin_expect.
30946 (fold_builtin_expect): No longer static. Add ARG2 argument,
30947 pass it through to build_builtin_expect_predicate.
30948 (fold_builtin_2): Adjust caller.
30949 (fold_builtin_3): Handle BUILT_IN_EXPECT.
30950 * internal-fn.def (BUILTIN_EXPECT): New.
30952 2014-03-18 Tobias Burnus <burnus@net-b.de>
30955 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
30956 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
30957 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
30959 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
30962 * predict.c (combine_predictions_for_bb): Fix up formatting.
30963 (expr_expected_value_1, expr_expected_value): Add predictor argument,
30964 fill what it points to if non-NULL.
30965 (tree_predict_by_opcode): Adjust caller, use the predictor.
30966 * predict.def (PRED_COMPARE_AND_SWAP): Add.
30968 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
30970 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
30971 proper constant for the store mode.
30973 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
30975 * symtab.c (change_decl_assembler_name): Fix transparent alias
30976 chain construction.
30978 2014-03-16 Renlin Li <Renlin.Li@arm.com>
30980 * config/aarch64/aarch64.c: Correct the comments about the
30981 aarch64 stack layout.
30983 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
30985 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
30986 check for GF_OMP_FOR_KIND_FOR.
30988 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
30990 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
30991 ymm and zmm register names.
30993 2014-03-17 Jakub Jelinek <jakub@redhat.com>
30996 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
30997 note creation for the 2010-08-31 changes.
30999 2014-03-17 Marek Polacek <polacek@redhat.com>
31001 PR middle-end/60534
31002 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
31003 as -fno-tree-loop-vectorize.
31004 (expand_omp_simd): Likewise.
31006 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
31008 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
31009 (eligible_for_call_delay): New prototype.
31010 * config/sparc/sparc.c (tls_call_delay): Rename into...
31011 (eligible_for_call_delay): ...this. Return false if the instruction
31012 cannot be put in the delay slot of a branch.
31013 (eligible_for_restore_insn): Simplify.
31014 (eligible_for_return_delay): Return false if the instruction cannot be
31015 put in the delay slot of a branch and simplify.
31016 (eligible_for_sibcall_delay): Return false if the instruction cannot be
31017 put in the delay slot of a branch.
31018 * config/sparc/sparc.md (fix_ut699): New attribute.
31019 (tls_call_delay): Delete.
31020 (in_call_delay): Reimplement.
31021 (eligible_for_sibcall_delay): Rename into...
31022 (in_sibcall_delay): ...this.
31023 (eligible_for_return_delay): Rename into...
31024 (in_return_delay): ...this.
31025 (in_branch_delay): Reimplement.
31026 (in_uncond_branch_delay): Delete.
31027 (in_annul_branch_delay): Delete.
31029 2014-03-14 Richard Henderson <rth@redhat.com>
31032 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
31033 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
31034 (*floathi<X87MODEF>2_i387_with_temp): Remove.
31035 (floathi splitters): Remove.
31036 (float<SWI48x>xf2): New pattern.
31037 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
31038 code that tried to handle DImode for 32-bit, but which was excluded
31039 by the pattern's condition. Drop allocation of stack temporary.
31040 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
31041 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
31042 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
31043 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
31044 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
31045 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
31046 (*float<SWI48><MODEF>2_sse_interunit): Remove.
31047 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
31048 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
31049 (*float<SWI48x><X87MODEF>2_i387): Remove.
31050 (all float _with_temp splitters): Remove.
31051 (*float<SWI48x><MODEF>2_i387): New pattern.
31052 (*float<SWI48><MODEF>2_sse): New pattern.
31053 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
31054 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
31056 2014-03-14 Jakub Jelinek <jakub@redhat.com>
31057 Marek Polacek <polacek@redhat.com>
31059 PR middle-end/60484
31060 * common.opt (dump_base_name_prefixed): New Variable.
31061 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
31062 if x_dump_base_name_prefixed is already set, set it at the end.
31064 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
31066 PR rtl-optimization/60508
31067 * lra-constraints.c (get_reload_reg): Add new parameter
31069 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
31070 Pass the new parameter values.
31072 2014-03-14 Richard Biener <rguenther@suse.de>
31074 * common.opt: Revert unintented changes from r205065.
31075 * opts.c: Likewise.
31077 2014-03-14 Richard Biener <rguenther@suse.de>
31079 PR middle-end/60518
31080 * cfghooks.c (split_block): Properly adjust all loops the
31081 block was a latch of.
31083 2014-03-14 Martin Jambor <mjambor@suse.cz>
31086 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
31089 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
31092 * config/avr/avr.c (avr_set_current_function): Pass function name
31093 through default_strip_name_encoding before sanity checking instead
31094 of skipping the first char of the assembler name.
31096 2014-03-13 Richard Henderson <rth@redhat.com>
31099 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
31100 (ix86_force_to_memory, ix86_free_from_memory): Remove.
31101 * config/i386/i386-protos.h: Likewise.
31102 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
31103 in the expander instead of a splitter.
31104 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
31105 any possibility of requiring a memory.
31106 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
31107 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
31108 (fp branch splitters): Update for ix86_split_fp_branch.
31109 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
31110 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
31111 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
31112 (*fop_<MODEF>_2_i387): Remove f/r alternative.
31113 (*fop_<MODEF>_3_i387): Likewise.
31114 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
31115 (splitters for the fop_* register patterns): Remove.
31116 (fscalexf4_i387): Rename from *fscalexf4_i387.
31117 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
31119 2014-03-13 Jakub Jelinek <jakub@redhat.com>
31121 PR tree-optimization/59779
31122 * tree-dfa.c (get_ref_base_and_extent): Use double_int
31123 type for bitsize and maxsize instead of HOST_WIDE_INT.
31125 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
31127 PR rtl-optimization/57320
31128 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
31129 the CFG after thread_prologue_and_epilogue_insns.
31131 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
31133 PR rtl-optimization/57189
31134 * lra-constraints.c (process_alt_operands): Disfavor spilling
31137 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
31139 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
31141 2014-03-13 Jakub Jelinek <jakub@redhat.com>
31143 PR tree-optimization/59025
31144 PR middle-end/60418
31145 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
31146 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
31148 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
31151 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
31152 calls of avr_out_plus_1.
31154 2014-03-13 Bin Cheng <bin.cheng@arm.com>
31156 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
31157 BB's single pred and update the father loop's latch info later.
31159 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
31161 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
31165 (VEC_base): Likewise.
31166 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
31167 registers, we need to swap double words in little endian mode.
31169 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
31170 to be a container mode for 128-bit integer operations added in ISA
31171 2.07. Unlike TImode and PTImode, the preferred register set is
31172 the Altivec/VMX registers for the 128-bit operations.
31174 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
31176 (rs6000_split_128bit_ok_p): Likewise.
31178 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
31179 macros for creating ISA 2.07 normal and overloaded builtin
31180 functions with 3 arguments.
31181 (BU_P8V_OVERLOAD_3): Likewise.
31182 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
31183 for use as overloaded functions.
31184 (VPERM_1TI_UNS): Likewise.
31185 (VSEL_1TI): Likewise.
31186 (VSEL_1TI_UNS): Likewise.
31187 (ST_INTERNAL_1ti): Likewise.
31188 (LD_INTERNAL_1ti): Likewise.
31189 (XXSEL_1TI): Likewise.
31190 (XXSEL_1TI_UNS): Likewise.
31191 (VPERM_1TI): Likewise.
31192 (VPERM_1TI_UNS): Likewise.
31193 (XXPERMDI_1TI): Likewise.
31194 (SET_1TI): Likewise.
31195 (LXVD2X_V1TI): Likewise.
31196 (STXVD2X_V1TI): Likewise.
31197 (VEC_INIT_V1TI): Likewise.
31198 (VEC_SET_V1TI): Likewise.
31199 (VEC_EXT_V1TI): Likewise.
31200 (EQV_V1TI): Likewise.
31201 (NAND_V1TI): Likewise.
31202 (ORC_V1TI): Likewise.
31203 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
31204 added in ISA 2.07. Add both normal 'altivec' builtins, and the
31205 overloaded builtin.
31206 (VADDUQM): Likewise.
31207 (VSUBCUQ): Likewise.
31208 (VADDEUQM): Likewise.
31209 (VADDECUQ): Likewise.
31210 (VSUBEUQM): Likewise.
31211 (VSUBECUQ): Likewise.
31213 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
31214 __int128_t and __uint128_t types.
31215 (__uint128_type): Likewise.
31216 (altivec_categorize_keyword): Add support for vector __int128_t,
31217 vector __uint128_t, vector __int128, and vector unsigned __int128
31218 as a container type for TImode operations that need to be done in
31219 VSX/Altivec registers.
31220 (rs6000_macro_to_expand): Likewise.
31221 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
31222 to support 128-bit integer instructions vaddcuq, vadduqm,
31223 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
31224 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
31226 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
31227 for V1TImode, and set up preferences to use VSX/Altivec registers.
31228 Setup VSX reload handlers.
31229 (rs6000_debug_reg_global): Likewise.
31230 (rs6000_init_hard_regno_mode_ok): Likewise.
31231 (rs6000_preferred_simd_mode): Likewise.
31232 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
31233 (easy_altivec_constant): Likewise.
31234 (output_vec_const_move): Likewise.
31235 (rs6000_expand_vector_set): Convert V1TImode set and extract to
31237 (rs6000_expand_vector_extract): Likewise.
31238 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
31240 (rs6000_const_vec): Add support for V1TImode.
31241 (rs6000_emit_le_vsx_load): Swap double words when loading or
31242 storing TImode/V1TImode.
31243 (rs6000_emit_le_vsx_store): Likewise.
31244 (rs6000_emit_le_vsx_move): Likewise.
31245 (rs6000_emit_move): Add support for V1TImode.
31246 (altivec_expand_ld_builtin): Likewise.
31247 (altivec_expand_st_builtin): Likewise.
31248 (altivec_expand_vec_init_builtin): Likewise.
31249 (altivec_expand_builtin): Likewise.
31250 (rs6000_init_builtins): Add support for V1TImode type. Add
31251 support for ISA 2.07 128-bit integer builtins. Define type names
31252 for the VSX/Altivec vector types.
31253 (altivec_init_builtins): Add support for overloaded vector
31254 functions with V1TImode type.
31255 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
31256 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
31258 (rs6000_split_128bit_ok_p): Likewise.
31259 (rs6000_handle_altivec_attribute): Create V1TImode from vector
31260 __int128_t and vector __uint128_t.
31262 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
31263 and mode attributes.
31265 (VSX_M2): Likewise.
31270 (VS_scalar): Likewise.
31271 (VS_double): Likewise.
31272 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
31274 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
31275 we support the ISA 2.07 128-bit integer arithmetic instructions.
31276 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
31277 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
31278 and TImode types for use with the builtin functions.
31279 (V1TI_type_node): Likewise.
31280 (unsigned_V1TI_type_node): Likewise.
31281 (intTI_type_internal_node): Likewise.
31282 (uintTI_type_internal_node): Likewise.
31284 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
31285 128-bit builtin functions.
31286 (UNSPEC_VADDEUQM): Likewise.
31287 (UNSPEC_VADDECUQ): Likewise.
31288 (UNSPEC_VSUBCUQ): Likewise.
31289 (UNSPEC_VSUBEUQM): Likewise.
31290 (UNSPEC_VSUBECUQ): Likewise.
31291 (VM): Add V1TImode to vector mode iterators.
31293 (VI_unit): Likewise.
31294 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
31295 (altivec_vaddcuq): Likewise.
31296 (altivec_vsubuqm): Likewise.
31297 (altivec_vsubcuq): Likewise.
31298 (altivec_vaddeuqm): Likewise.
31299 (altivec_vaddecuq): Likewise.
31300 (altivec_vsubeuqm): Likewise.
31301 (altivec_vsubecuq): Likewise.
31303 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
31305 (BOOL_128): Likewise.
31306 (BOOL_REGS_OUTPUT): Likewise.
31307 (BOOL_REGS_OP1): Likewise.
31308 (BOOL_REGS_OP2): Likewise.
31309 (BOOL_REGS_UNARY): Likewise.
31310 (BOOL_REGS_AND_CR0): Likewise.
31312 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
31313 128-bit integer builtin support.
31314 (vec_vadduqm): Likewise.
31315 (vec_vaddecuq): Likewise.
31316 (vec_vaddeuqm): Likewise.
31317 (vec_vsubecuq): Likewise.
31318 (vec_vsubeuqm): Likewise.
31319 (vec_vsubcuq): Likewise.
31320 (vec_vsubuqm): Likewise.
31322 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
31323 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
31324 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
31325 128-bit integer add/subtract to ISA 2.07.
31327 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
31329 * config/arc/arc.c (arc_predicate_delay_insns):
31330 Fix third argument passed to conditionalize_nonjump.
31332 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
31334 * config/aarch64/aarch64-builtins.c
31335 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
31336 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
31337 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
31338 instead of __builtin_lfloor.
31339 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
31341 2014-03-12 Jakub Jelinek <jakub@redhat.com>
31343 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
31344 (tree_ssa_ifcombine_bb_1): New function.
31345 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
31346 is an empty forwarder block to then_bb or vice versa and then_bb
31347 and else_bb are effectively swapped.
31349 2014-03-12 Christian Bruel <christian.bruel@st.com>
31352 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
31353 REG_CFA_DEF_CFA note.
31354 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
31355 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
31357 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
31359 PR tree-optimization/60454
31360 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
31362 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31364 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
31365 Do not define target_cpu_default2 to generic.
31366 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
31367 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
31368 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
31370 2014-03-12 Jakub Jelinek <jakub@redhat.com>
31371 Marc Glisse <marc.glisse@inria.fr>
31373 PR tree-optimization/60502
31374 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
31375 instead of build_low_bits_mask.
31377 2014-03-12 Jakub Jelinek <jakub@redhat.com>
31379 PR middle-end/60482
31380 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
31381 if there are multiple uses, but op doesn't live on E edge.
31382 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
31383 clobber stmts before __builtin_unreachable.
31385 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
31387 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
31388 hard_frame_pointer_rtx.
31389 * cse.c (cse_insn): Remove volatile check.
31390 * cselib.c (cselib_process_insn): Likewise.
31391 * dse.c (scan_insn): Likewise.
31393 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
31395 * config/arc/arc.c (conditionalize_nonjump): New function,
31397 (arc_ifcvt): ... this.
31398 (arc_predicate_delay_insns): Use it.
31400 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
31402 * config/arc/predicates.md (extend_operand): During/after reload,
31403 allow const_int_operand.
31404 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
31405 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
31406 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
31408 (umulsi3_highpart_i): Likewise.
31410 2014-03-11 Richard Biener <rguenther@suse.de>
31412 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
31413 Add asserts to guard possible wrong-code bugs.
31415 2014-03-11 Richard Biener <rguenther@suse.de>
31417 PR tree-optimization/60429
31418 PR tree-optimization/60485
31419 * tree-ssa-structalias.c (set_union_with_increment): Properly
31420 take into account all fields that overlap the shifted vars.
31421 (do_sd_constraint): Likewise.
31422 (do_ds_constraint): Likewise.
31423 (get_constraint_for_ptr_offset): Likewise.
31425 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
31427 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
31428 (nios2_compute_frame_layout):
31429 Add calculation of cfun->machine->fp_save_offset.
31430 (nios2_expand_prologue): Correct setting of frame pointer register
31432 (nios2_expand_epilogue): Update recovery of stack pointer from
31433 frame pointer accordingly.
31434 (nios2_initial_elimination_offset): Update calculation of offset
31435 for eliminating to HARD_FRAME_POINTER_REGNUM.
31437 2014-03-10 Jakub Jelinek <jakub@redhat.com>
31440 * ipa.c (symtab_remove_unreachable_nodes): Don't call
31441 cgraph_get_create_node on VAR_DECLs.
31443 2014-03-10 Richard Biener <rguenther@suse.de>
31445 PR middle-end/60474
31446 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
31448 2014-03-08 Douglas B Rupp <rupp@gnat.com>
31450 * config/vms/vms.opt (vms_float_format): New variable.
31452 2014-03-08 Tobias Burnus <burnus@net-b.de>
31454 * doc/invoke.texi (-fcilkplus): Update implementation status.
31456 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
31457 Richard Biener <rguenther@suse.de>
31459 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
31460 consistently accross all TUs.
31461 (run_gcc): Enable -fshort-double automatically at link at link-time
31462 and disallow override.
31464 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
31467 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
31468 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
31469 if they can't be used.
31471 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31473 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
31474 for Solaris 11/x86 ld.
31475 * configure: Regenerate.
31477 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31479 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
31480 (LIB_TLS_SPEC): Save as ld_tls_libs.
31481 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
31482 (HAVE_AS_IX86_TLSLDM): New test.
31483 * configure, config.in: Regenerate.
31484 * config/i386/i386.c (legitimize_tls_address): Fall back to
31485 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
31486 cannot support TLS_MODEL_LOCAL_DYNAMIC.
31487 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
31488 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
31490 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
31492 * common.opt (fira-loop-pressure): Mark as optimization.
31494 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
31496 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
31497 an OpenMP mappable type.
31499 2014-03-06 Matthias Klose <doko@ubuntu.com>
31501 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
31502 MULTILIB_OSDIRNAMES is not defined.
31504 2014-03-06 Jakub Jelinek <jakub@redhat.com>
31505 Meador Inge <meadori@codesourcery.com>
31508 * config/arm/arm.c (arm_tls_symbol_p): Remove.
31509 (arm_legitimize_address): Call legitimize_tls_address for any
31510 arm_tls_referenced_p expression, handle constant addend. Call it
31511 before testing for !TARGET_ARM.
31512 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
31514 2014-03-06 Richard Biener <rguenther@suse.de>
31516 PR middle-end/60445
31520 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
31522 * tree-streamer.c (record_common_node): Assert we don't record
31523 nodes with type double.
31524 (preload_common_node): Skip type double, complex double and double
31525 pointer since it is now frontend dependent due to fshort-double option.
31527 2014-03-06 Richard Biener <rguenther@suse.de>
31529 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
31530 or -fno-lto is specified and the linker has full plugin support.
31531 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
31532 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
31533 * lto-wrapper.c (merge_and_complain): Merge compile-time
31534 optimization levels.
31535 (run_gcc): And pass it through to the link options.
31537 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
31541 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
31543 * cselib.c (remove_useless_values): Skip to avoid quadratic
31544 behavior if the condition moved from...
31545 (cselib_process_insn): ... here holds.
31547 2014-03-05 Jakub Jelinek <jakub@redhat.com>
31550 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
31551 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
31554 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
31555 (TM_H): Add x86-tune.def.
31557 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31559 * config/aarch64/aarch64.c (generic_tunings):
31560 Use cortexa57_extra_costs.
31562 2014-03-05 Jakub Jelinek <jakub@redhat.com>
31565 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
31566 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
31567 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
31570 2014-03-04 Heiher <r@hev.cc>
31572 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
31573 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
31575 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
31577 * config/i386/predicates.md (const2356_operand): Change to ...
31578 (const2367_operand): ... this.
31579 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
31581 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
31582 (*avx512pf_scatterpf<mode>sf): Ditto.
31583 (avx512pf_scatterpf<mode>df): Ditto.
31584 (*avx512pf_scatterpf<mode>df_mask): Ditto.
31585 (*avx512pf_scatterpf<mode>df): Ditto.
31586 * config/i386/i386.c (ix86_expand_builtin): Update
31587 incorrect hint operand error message.
31589 2014-03-04 Richard Biener <rguenther@suse.de>
31591 * lto-section-in.c (lto_get_section_data): Fix const cast.
31593 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
31595 * tree-streamer.c (record_common_node): Assert we don't record
31596 nodes with type double.
31597 (preload_common_node): Skip type double, complex double and double
31598 pointer since it is now frontend dependent due to fshort-double option.
31600 2014-03-04 Richard Biener <rguenther@suse.de>
31603 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
31604 (lto_input_toplevel_asms): Likewise.
31605 * lto-section-in.c (lto_get_section_data): Instead do it here
31608 2014-03-04 Richard Biener <rguenther@suse.de>
31610 PR tree-optimization/60382
31611 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
31612 dead PHIs a reduction.
31614 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
31616 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
31618 (_mm_prefetch): Move out of GCC target("sse") pragma.
31619 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
31620 GCC target("prfchw") pragma.
31621 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
31623 * config/i386/i386.c (ix86_option_override_internal): Enable
31624 -mprfchw with -mprefetchwt1.
31626 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
31628 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
31631 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
31633 * opts.h (CL_PCH_IGNORE): Define.
31634 * targhooks.c (option_affects_pch_p):
31635 Return false for options that have CL_PCH_IGNORE set.
31636 * opt-functions.awk: Process PchIgnore.
31637 * doc/options.texi: Document PchIgnore.
31639 * config/arc/arc.opt (misize): Add PchIgnore property.
31641 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31643 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
31644 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
31645 constraint on constants to permit them being loaded into
31646 GENERAL_REGS or BASE_REGS.
31648 2014-03-03 Nick Clifton <nickc@redhat.com>
31650 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
31651 anti-cacnonical alternatives.
31652 (negandhi3_real): New pattern.
31653 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
31655 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
31657 * config/avr/avr-mcus.def: Remove atxmega16x1.
31658 * config/avr/avr-tables.opt: Regenerate.
31659 * config/avr/t-multilib: Regenerate.
31660 * doc/avr-mmcu.texi: Regenerate.
31662 2014-03-03 Tobias Grosser <tobias@grosser.es>
31663 Mircea Namolaru <mircea.namolaru@inria.fr>
31665 PR tree-optimization/58028
31666 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
31669 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31671 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
31672 not handled by recognizers.
31674 2014-03-03 Jakub Jelinek <jakub@redhat.com>
31676 PR middle-end/60175
31677 * function.c (expand_function_end): Don't emit
31678 clobber_return_register sequence if clobber_after is a BARRIER.
31679 * cfgexpand.c (construct_exit_block): Append instructions before
31680 return_label to prev_bb.
31682 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31684 * config/rs6000/constraints.md: Document reserved use of "wc".
31686 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
31689 * ipa.c (function_and_variable_visibility): When dissolving comdat
31690 group, also set all symbols to local.
31692 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
31697 2013-12-14 Jan Hubicka <jh@suse.cz>
31698 PR middle-end/58477
31699 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
31701 2014-03-02 Jon Beniston <jon@beniston.com>
31707 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
31708 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
31709 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
31710 (simple_return, *simple_return): New patterns
31711 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
31712 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
31714 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
31716 * dwarf2out.c (gen_subprogram_die): Tidy.
31718 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
31721 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
31722 (*mov_t_msb_neg_negc): ... this new insn.
31724 2014-02-28 Jason Merrill <jason@redhat.com>
31727 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
31730 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
31733 * dwarf2out.c (decltype_auto_die): New static.
31734 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
31735 (gen_type_die_with_usage): Handle 'decltype(auto)'.
31736 (is_cxx_auto): Likewise.
31738 2014-02-28 Ian Bolton <ian.bolton@arm.com>
31740 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
31741 we are not using general regs only.
31743 2014-02-28 Richard Biener <rguenther@suse.de>
31746 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
31747 previous fix and only allow to remove trivial pre-headers
31748 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
31749 (remove_forwarder_block): Properly update the latch of a loop.
31751 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
31754 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
31755 (cselib_preserved_hash_table): New.
31756 (preserve_constants_and_equivs): Move preserved vals to it.
31757 (cselib_find_slot): Look it up first.
31758 (cselib_init): Initialize it.
31759 (cselib_finish): Release it.
31760 (dump_cselib_table): Dump it.
31762 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
31765 * cselib.c (remove_useless_values): Skip to avoid quadratic
31766 behavior if the condition moved from...
31767 (cselib_process_insn): ... here holds.
31769 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
31772 * var-tracking.c (vt_initialize): Apply the same condition to
31773 preserve the CFA base value.
31775 2014-02-28 Joey Ye <joey.ye@arm.com>
31778 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
31779 if reload in progress or completed.
31781 2014-02-28 Tobias Burnus <burnus@net-b.de>
31783 PR middle-end/60147
31784 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
31787 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
31789 * doc/tm.texi.in (Condition Code Status): Update documention for
31790 relative locations of cc0-setter and cc0-user.
31792 2014-02-27 Jeff Law <law@redhat.com>
31794 PR rtl-optimization/52714
31795 * combine.c (try_combine): When splitting an unrecognized PARALLEL
31796 into two independent simple sets, if I3 is a jump, ensure the
31797 pattern we place into I3 is a (set (pc) ...).
31799 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
31800 Jeff Law <law@redhat.com>
31802 PR rtl-optimization/49847
31803 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
31804 are in different blocks.
31805 * doc/tm.texi (Condition Code Status): Update documention for
31806 relative locations of cc0-setter and cc0-user.
31808 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
31811 * lra.c (lra_emit_add): Check SUBREG too.
31813 2014-02-27 Andreas Schwab <schwab@suse.de>
31815 * config/m68k/m68k.c (m68k_option_override): Disable
31816 -flive-range-shrinkage for classic m68k.
31817 (m68k_override_options_after_change): Likewise.
31819 2014-02-27 Marek Polacek <polacek@redhat.com>
31821 PR middle-end/59223
31822 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
31823 -Wmaybe-uninitialized.
31825 2014-02-27 Alan Modra <amodra@gmail.com>
31828 * reload1.c (emit_input_reload_insns): When reload_override_in,
31829 set old to rl->in_reg when rl->in_reg is a subreg.
31831 2014-02-26 Richard Biener <rguenther@suse.de>
31834 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
31836 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
31838 * common/config/i386/predicates.md (const1256_operand): Remove.
31839 (const2356_operand): New.
31840 (const_1_to_2_operand): Remove.
31841 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
31842 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
31843 (*avx512pf_gatherpf<mode>sf): Ditto.
31844 (avx512pf_gatherpf<mode>df): Ditto.
31845 (*avx512pf_gatherpf<mode>df_mask): Ditto.
31846 (*avx512pf_gatherpf<mode>df): Ditto.
31847 (avx512pf_scatterpf<mode>sf): Ditto.
31848 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
31849 (*avx512pf_scatterpf<mode>sf): Ditto.
31850 (avx512pf_scatterpf<mode>df): Ditto.
31851 (*avx512pf_scatterpf<mode>df_mask): Ditto.
31852 (*avx512pf_scatterpf<mode>df): Ditto.
31853 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
31855 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
31857 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
31858 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
31859 (_mm512_mask_testn_epi64_mask): Move to ...
31860 * config/i386/avx512cdintrin.h: Here.
31861 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
31862 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
31863 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
31864 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
31865 TARGET_AVX512F from TARGET_AVX512CD.
31867 2014-02-26 Richard Biener <rguenther@suse.de>
31870 * ipa.c (walk_polymorphic_call_targets): Properly guard
31871 call to inline_update_overall_summary.
31873 2014-02-26 Bin Cheng <bin.cheng@arm.com>
31876 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
31877 and latches only if requested. Fix latch if it is removed.
31878 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
31879 LOOPS_HAVE_PREHEADERS.
31881 2014-02-25 Andrew Pinski <apinski@cavium.com>
31883 * builtins.c (expand_builtin_thread_pointer): Create a new target
31884 when the target is NULL.
31886 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
31888 PR rtl-optimization/60317
31889 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
31890 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
31891 * lra-assigns.c: Include params.h.
31892 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
31893 other reload pseudos considerations.
31895 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31897 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
31898 to use canonical form for nor<mode>3.
31900 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31903 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
31906 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
31908 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
31909 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
31910 (ix86_handle_option): Handle OPT_mprefetchwt1.
31911 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
31912 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
31914 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
31915 OPTION_MASK_ISA_PREFETCHWT1.
31916 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
31917 (PTA_PREFETCHWT1): New.
31918 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
31919 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
31920 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
31921 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
31922 (*prefetch_avx512pf_<mode>_: Change into ...
31923 (*prefetch_prefetchwt1_<mode>: This.
31924 * config/i386/i386.opt (mprefetchwt1): New.
31925 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
31926 (_mm_prefetch): Handle intent to write.
31927 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
31929 2014-02-25 Richard Biener <rguenther@suse.de>
31931 PR middle-end/60291
31932 * emit-rtl.c (mem_attrs_htab): Remove.
31933 (mem_attrs_htab_hash): Likewise.
31934 (mem_attrs_htab_eq): Likewise.
31935 (set_mem_attrs): Always allocate new mem-attrs when something changed.
31936 (init_emit_once): Do not allocate mem_attrs_htab.
31938 2014-02-25 Richard Biener <rguenther@suse.de>
31941 * lto-opts.c (lto_write_options): Output non-explicit conservative
31942 -fwrapv, -fno-trapv and -fno-strict-overflow.
31943 * lto-wrapper.c (merge_and_complain): Handle merging those options.
31944 (run_gcc): And pass them through.
31946 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
31948 * sel-sched.c (calculate_new_fences): New parameter ptime.
31949 Calculate it as a maximum over all fence cycles.
31950 (sel_sched_region_2): Adjust the call to calculate_new_fences.
31951 Print the final schedule timing when sched_verbose.
31953 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
31955 PR rtl-optimization/60292
31956 * sel-sched.c (fill_vec_av_set): Do not reset target availability
31957 bit fot the fence instruction.
31959 2014-02-24 Alangi Derick <alangiderick@gmail.com>
31961 * calls.h: Fix typo in comment.
31963 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
31965 * config/pa/pa.c (pa_output_move_double): Don't valididate when
31966 adjusting offsetable addresses.
31968 2014-02-24 Guozhi Wei <carrot@google.com>
31970 * sparseset.h (sparseset_pop): Fix the wrong index.
31972 2014-02-24 Walter Lee <walt@tilera.com>
31974 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
31975 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
31977 * common/config/tilegx/tilegx-common.c
31978 (TARGET_DEFAULT_TARGET_FLAGS): Define.
31979 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
31980 (LINK_SPEC): Ditto.
31981 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
31982 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
31983 (tilegx_gimplify_va_arg_expr): Handle big endian.
31984 (tilegx_expand_unaligned_load): Ditto.
31985 (tilegx_expand_unaligned_store): Ditto.
31986 (TARGET_RETURN_IN_MSB): New.
31987 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
31988 (TARGET_ENDIAN_DEFAULT): New.
31989 (TARGET_BIG_ENDIAN): Handle big endian.
31990 (BYTES_BIG_ENDIAN): Ditto.
31991 (WORDS_BIG_ENDIAN): Ditto.
31992 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
31993 (ENDIAN_SPEC): New.
31994 (EXTRA_SPECS): New.
31995 * config/tilegx/tilegx.md (extv): Handle big endian.
31997 (insn_st<n>): Ditto.
31998 (insn_st<n>_add<bitsuffix>): Ditto.
31999 (insn_stnt<n>): Ditto.
32000 (insn_stnt<n>_add<bitsuffix>):Ditto.
32001 (vec_interleave_highv8qi): Handle big endian.
32002 (vec_interleave_highv8qi_be): New.
32003 (vec_interleave_highv8qi_le): New.
32004 (insn_v1int_h): Handle big endian.
32005 (vec_interleave_lowv8qi): Handle big endian.
32006 (vec_interleave_lowv8qi_be): New.
32007 (vec_interleave_lowv8qi_le): New.
32008 (insn_v1int_l): Handle big endian.
32009 (vec_interleave_highv4hi): Handle big endian.
32010 (vec_interleave_highv4hi_be): New.
32011 (vec_interleave_highv4hi_le): New.
32012 (insn_v2int_h): Handle big endian.
32013 (vec_interleave_lowv4hi): Handle big endian.
32014 (vec_interleave_lowv4hi_be): New.
32015 (vec_interleave_lowv4hi_le): New.
32016 (insn_v2int_l): Handle big endian.
32017 (vec_interleave_highv2si): Handle big endian.
32018 (vec_interleave_highv2si_be): New.
32019 (vec_interleave_highv2si_le): New.
32020 (insn_v4int_h): Handle big endian.
32021 (vec_interleave_lowv2si): Handle big endian.
32022 (vec_interleave_lowv2si_be): New.
32023 (vec_interleave_lowv2si_le): New.
32024 (insn_v4int_l): Handle big endian.
32025 * config/tilegx/tilegx.opt (mbig-endian): New option.
32026 (mlittle-endian): New option.
32027 * doc/install.texi: Document tilegxbe-linux.
32028 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
32030 2014-02-24 Martin Jambor <mjambor@suse.cz>
32033 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
32034 there are no parameter descriptors.
32036 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
32038 PR rtl-optimization/60268
32039 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
32040 initialization to ...
32041 (sched_rgn_init): ... here.
32042 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
32044 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
32046 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
32049 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
32051 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
32054 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
32056 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
32057 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
32059 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
32061 * config/microblaze/predicates.md: Add cmp_op predicate.
32062 * config/microblaze/microblaze.md: Add branch_compare instruction
32063 which uses cmp_op predicate and emits cmp insn before branch.
32064 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
32065 to microblaze_expand_conditional_branch and consolidate logic.
32066 (microblaze_expand_conditional_branch): emit branch_compare
32067 insn instead of handling cmp op separate from branch insn.
32069 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32071 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
32074 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32076 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
32077 define_insn with define_expand and new define_insn
32078 *altivec_lve<VI_char>x_internal.
32079 (altivec_stve<VI_char>x): Replace define_insn with define_expand
32080 and new define_insn *altivec_stve<VI_char>x_internal.
32081 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
32083 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
32085 (altivec_expand_stvex_be): New function.
32087 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
32089 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
32090 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
32091 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
32092 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
32094 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
32097 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
32098 instead of emit_move_insn.
32100 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32102 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
32103 vspltw with vsldoi.
32104 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
32105 gen_altivec_vsumsws.
32107 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32109 * config/rs6000/altivec.md (altivec_lvxl): Rename as
32110 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
32111 (altivec_lvxl_<mode>): New define_expand incorporating
32112 -maltivec=be semantics where needed.
32113 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
32114 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
32115 semantics where needed.
32116 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
32117 (altivec_stvx_<mode>): New define_expand incorporating
32118 -maltivec=be semantics where needed.
32119 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
32120 VM2 iterator instead of V4SI.
32121 (altivec_stvxl_<mode>): New define_expand incorporating
32122 -maltivec=be semantics where needed.
32123 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
32124 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
32125 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
32126 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
32127 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
32128 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
32129 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
32130 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
32131 ALTIVEC_BUILTIN_STVXL.
32132 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
32133 (altivec_expand_stvx_be): Likewise.
32134 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
32135 (altivec_expand_lvx_be): Likewise.
32136 (altivec_expand_stvx_be): Likewise.
32137 (altivec_expand_builtin): Add cases for
32138 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
32139 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
32140 (altivec_init_builtins): Add definitions for
32141 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
32142 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
32144 2014-02-21 Catherine Moore <clm@codesourcery.com>
32146 * doc/invoke.texi (mvirt, mno-virt): Document.
32147 * config/mips/mips.opt (mvirt): New option.
32148 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
32150 2014-02-21 Richard Biener <rguenther@suse.de>
32152 PR tree-optimization/60276
32153 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
32154 (STMT_VINFO_MIN_NEG_DIST): New macro.
32155 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
32156 STMT_VINFO_MIN_NEG_DIST.
32157 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
32158 made for negative dependence distances still hold.
32160 2014-02-21 Richard Biener <rguenther@suse.de>
32162 PR middle-end/60291
32163 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
32164 DECL_INITIAL for globals not in the current function context.
32166 2014-02-21 Jakub Jelinek <jakub@redhat.com>
32168 PR tree-optimization/56490
32169 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
32170 * tree-ssa-uninit.c: Include params.h.
32171 (compute_control_dep_chain): Add num_calls argument, return false
32172 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
32173 num_calls to recursive call.
32174 (find_predicates): Change dep_chain into normal array,
32175 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
32176 variable and adjust compute_control_dep_chain caller.
32177 (find_def_preds): Likewise.
32179 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
32181 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
32182 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
32184 2014-02-21 Nick Clifton <nickc@redhat.com>
32186 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
32187 (pushhi1): Likewise.
32188 (popqi1): Add mode to pre_dec.
32189 (pophi1): Likewise.
32191 2014-02-21 Jakub Jelinek <jakub@redhat.com>
32193 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
32194 mode for mask of V8SFmode permutation.
32196 2014-02-20 Richard Henderson <rth@redhat.com>
32199 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
32200 a new pseudo for OLDVAL.
32202 2014-02-20 Jakub Jelinek <jakub@redhat.com>
32205 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
32206 gen_reg_rtx if d->testing_p.
32207 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
32208 if d->testing_p and we will certainly return true.
32209 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
32212 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
32214 * emit-rtl.c (gen_reg_rtx): Assert that
32215 crtl->emit.regno_pointer_align_length is non-zero.
32217 2014-02-20 Richard Henderson <rth@redhat.com>
32220 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
32221 on failure the store back into EXPECT.
32223 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
32224 Sandra Loosemore <sandra@codesourcery.com>
32226 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
32227 * config/nios2/nios2.c (nios2_function_profiler): Add
32228 -fPIC (flag_pic == 2) support.
32229 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
32230 (nios2_large_offset_p): New function.
32231 (nios2_unspec_reloc_p): Move up position, update to use
32232 nios2_large_offset_p.
32233 (nios2_unspec_address): Remove function.
32234 (nios2_unspec_offset): New function.
32235 (nios2_large_got_address): New function.
32236 (nios2_got_address): Add large offset support.
32237 (nios2_legitimize_tls_address): Update usage of removed and new
32239 (nios2_symbol_binds_local_p): New function.
32240 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
32241 (nios2_legitimize_address): Update to use nios2_large_offset_p.
32242 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
32243 (nios2_print_operand): Merge H/L processing, add hiadj/lo
32244 processing for (const (unspec ...)).
32245 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
32247 2014-02-20 Richard Biener <rguenther@suse.de>
32249 * tree-cfg.c (replace_uses_by): Mark altered BBs before
32250 doing the substitution.
32251 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
32253 2014-02-20 Martin Jambor <mjambor@suse.cz>
32256 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
32257 info when checking whether lattices are bottom.
32259 2014-02-20 Richard Biener <rguenther@suse.de>
32261 PR middle-end/60221
32262 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
32265 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
32268 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
32269 parameter specifying the scaling.
32270 (inline_call): Update.
32271 (want_inline_recursively): Guard division by zero.
32272 (recursive_inlining): Update.
32273 * ipa-inline.h (clone_inlined_nodes): Update.
32275 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
32278 * config/i386/i386.c (classify_argument): Pass structures of size
32279 64 bytes or less in register.
32281 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
32282 Kirill Yukhin <kirill.yukhin@intel.com>
32284 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
32285 (_mm_rcp28_round_ss): Ditto.
32286 (_mm_rsqrt28_round_sd): Ditto.
32287 (_mm_rsqrt28_round_ss): Ditto.
32288 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
32289 (_mm_rcp14_round_ss): Ditto.
32290 (_mm_rsqrt14_round_sd): Ditto.
32291 (_mm_rsqrt14_round_ss): Ditto.
32292 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
32293 the first input operand, get rid of match_dup.
32294 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
32296 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
32298 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
32299 operand as the first input operand, set type attribute.
32300 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
32301 Set type attribute.
32302 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
32303 operand as the first input operand, set type attribute.
32305 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32307 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
32310 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
32313 * config/i386/i386.c (construct_container): Remove TFmode check
32314 for X86_64_INTEGER_CLASS.
32316 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
32319 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
32320 only when -Wpsabi is enabled.
32322 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
32325 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
32326 passing arrays in registers are the same as for structs, so remove the
32327 special case for them.
32329 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
32331 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
32332 destination type, extract only the valid bits if the source type is not
32333 integral and has a different mode.
32335 2014-02-19 Richard Biener <rguenther@suse.de>
32338 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
32341 2014-02-19 Richard Biener <rguenther@suse.de>
32344 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
32345 (ipa_modify_call_arguments): Emit an argument load explicitely and
32346 preserve virtual SSA form there and for the replacement call.
32347 Do not update SSA form nor free dominance info.
32349 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
32351 * ipa.c (function_and_variable_visibility): Also clear WEAK
32352 flag when disolving COMDAT_GROUP.
32354 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
32356 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
32357 * ipa-prop.c (ipa_set_jf_known_type): Return early when
32358 not devirtualizing.
32359 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
32360 do more sanity checks.
32361 (detect_type_change): Return true when giving up early.
32362 (compute_complex_assign_jump_func): Fix type parameter of
32363 ipa_set_ancestor_jf.
32364 (compute_complex_ancestor_jump_func): Likewise.
32365 (update_jump_functions_after_inlining): Fix updating of
32367 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
32369 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
32371 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
32372 inline clones when edge disappears.
32374 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
32377 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
32378 Split 64-bit moves into 2 patterns. Do not allow the use of
32379 direct move for TDmode in little endian, since the decimal value
32380 has little endian bytes within a word, but the 64-bit pieces are
32381 ordered in a big endian fashion, and normal subreg's of TDmode are
32383 (mov<mode>_64bit_dm): Likewise.
32384 (movtd_64bit_nodm): Likewise.
32386 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
32388 PR tree-optimization/60174
32389 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
32390 statement of an SSA_NAME that occurs in an abnormal PHI node.
32392 2014-02-18 Jakub Jelinek <jakub@redhat.com>
32395 * final.c (SEEN_BB): Remove.
32396 (SEEN_NOTE, SEEN_EMITTED): Renumber.
32397 (final_scan_insn): Don't force_source_line on second
32398 NOTE_INSN_BASIC_BLOCK.
32400 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
32403 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
32404 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
32405 (type_natural_mode): Warn ABI change when %zmm register is not
32406 available for AVX512F vector value passing.
32408 2014-02-18 Kai Tietz <ktietz@redhat.com>
32411 * config/i386/i386.c (ix86_expand_prologue): Use value in
32412 rax register as displacement when restoring %r10 or %rax.
32413 Fix wrong offset when restoring both registers.
32415 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
32417 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
32418 assertion with conditional return.
32420 2014-02-18 Jakub Jelinek <jakub@redhat.com>
32421 Uros Bizjak <ubizjak@gmail.com>
32424 * config/i386/driver-i386.c (host_detect_local_cpu): If
32425 YMM state is not saved by the OS, also clear has_f16c. Move
32426 CPUID 0x80000001 handling before YMM state saving checking.
32428 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
32430 PR rtl-optimization/58960
32431 * haifa-sched.c (alloc_global_sched_pressure_data): New,
32432 factored out from ...
32433 (sched_init): ... here.
32434 (free_global_sched_pressure_data): New, factored out from ...
32435 (sched_finish): ... here.
32436 * sched-int.h (free_global_sched_pressure_data): Declare.
32437 * sched-rgn.c (nr_regions_initial): New static global.
32438 (haifa_find_rgns): Initialize it.
32439 (schedule_region): Disable sched-pressure for the newly
32442 2014-02-17 Richard Biener <rguenther@suse.de>
32444 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
32445 release SSA defs of pattern stmts.
32447 2014-02-17 Richard Biener <rguenther@suse.de>
32449 * tree-inline.c (expand_call_inline): Release the virtual
32450 operand defined by the call we are about to inline.
32452 2014-02-17 Richard Biener <rguenther@suse.de>
32454 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
32456 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
32457 Ilya Tocar <ilya.tocar@intel.com>
32459 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
32460 arguments order in builtin.
32461 (_mm512_permutexvar_epi64): Ditto.
32462 (_mm512_mask_permutexvar_epi64): Ditto
32463 (_mm512_maskz_permutexvar_epi32): Ditto
32464 (_mm512_permutexvar_epi32): Ditto
32465 (_mm512_mask_permutexvar_epi32): Ditto
32467 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32469 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
32470 (p8_vmrgow): Likewise.
32472 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32474 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
32477 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
32480 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
32481 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
32482 into 64-bit and 32-bit moves. On 64-bit moves, add support for
32483 using direct move instructions on ISA 2.07. Also adjust
32484 instruction length for 64-bit.
32485 (mov<mode>_64bit, TFmode/TDmode): Likewise.
32486 (mov<mode>_32bit, TFmode/TDmode): Likewise.
32488 2014-02-15 Alan Modra <amodra@gmail.com>
32492 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
32493 find_replacement on parts of insn rtl that might be reloaded.
32495 2014-02-15 Richard Biener <rguenther@suse.de>
32497 PR tree-optimization/60183
32498 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
32499 (tree_ssa_phiprop): Calculate and free post-dominators.
32501 2014-02-14 Jeff Law <law@redhat.com>
32503 PR rtl-optimization/60131
32504 * ree.c (get_extended_src_reg): New function.
32505 (combine_reaching_defs): Use it rather than assuming location of REG.
32506 (find_and_remove_re): Verify first operand of extension is
32507 a REG before adding the insns to the copy list.
32509 2014-02-14 Roland McGrath <mcgrathr@google.com>
32511 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
32512 * configure: Regenerated.
32513 * config.in: Regenerated.
32514 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
32515 instead of ASM_SHORT.
32517 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
32518 Richard Earnshaw <rearnsha@arm.com>
32520 PR rtl-optimization/59535
32521 * lra-constraints.c (process_alt_operands): Encourage alternative
32522 when unassigned pseudo class is superset of the alternative class.
32523 (inherit_reload_reg): Don't inherit when optimizing for code size.
32524 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
32525 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
32526 modes not less than 4 for Thumb1.
32528 2014-02-14 Kyle McMartin <kyle@redhat.com>
32531 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
32533 2014-02-14 Richard Biener <rguenther@suse.de>
32535 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
32536 (get_frame_arg): Drop the assert with langhook types_compatible_p.
32537 Do not strip INDIRECT_REFs.
32539 2014-02-14 Richard Biener <rguenther@suse.de>
32542 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
32543 DECL_FUNCTION_SPECIFIC_TARGET.
32544 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
32545 * tree-streamer-out.c (pack_ts_target_option): Remove.
32546 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
32547 (write_ts_function_decl_tree_pointers): Do not stream
32548 DECL_FUNCTION_SPECIFIC_TARGET.
32549 * tree-streamer-in.c (unpack_ts_target_option): Remove.
32550 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
32551 (lto_input_ts_function_decl_tree_pointers): Do not stream
32552 DECL_FUNCTION_SPECIFIC_TARGET.
32554 2014-02-14 Jakub Jelinek <jakub@redhat.com>
32556 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
32557 (get_initial_def_for_induction, vectorizable_induction): Ignore
32558 debug stmts when looking for exit_phi.
32559 (vectorizable_live_operation): Fix up condition.
32561 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
32563 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
32564 nreverse() because it changes the content of original tree list.
32566 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
32568 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
32569 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
32571 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
32573 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
32574 GNU coding standards.
32576 2014-02-13 Jakub Jelinek <jakub@redhat.com>
32579 * dwarf2out.c (gen_subprogram_die): Don't call
32580 add_calling_convention_attribute if subr_die is old_die.
32582 2014-02-13 Sharad Singhai <singhai@google.com>
32584 * doc/optinfo.texi: Fix order of nodes.
32586 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
32588 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
32589 operands[2], not operands[3].
32591 2014-02-13 Richard Biener <rguenther@suse.de>
32594 * doc/install.texi (ISL): Update recommended version to 0.12.2,
32595 mention the possibility of an in-tree build.
32596 (CLooG): Update recommended version to 0.18.1, mention the
32597 possibility of an in-tree build and clarify that the ISL
32598 bundled with CLooG does not work.
32600 2014-02-13 Jakub Jelinek <jakub@redhat.com>
32603 * expr.c (compress_float_constant): If x is a hard register,
32604 extend into a pseudo and then move to x.
32606 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
32608 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
32609 caused by bad second argument to warning_at() with -mhotpatch and
32610 nested functions (e.g. with gfortran).
32612 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
32614 * opts.c (option_name): Remove "enabled by default" rider.
32616 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
32618 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
32620 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
32621 Uros Bizjak <ubizjak@gmail.com>
32624 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
32625 * configure: Regenerated.
32627 2014-02-12 Richard Biener <rguenther@suse.de>
32629 * vec.c (vec_prefix::calculate_allocation): Move as
32630 inline variant to vec.h.
32631 (vec_prefix::calculate_allocation_1): New out-of-line version.
32632 * vec.h (vec_prefix::calculate_allocation_1): Declare.
32633 (vec_prefix::m_has_auto_buf): Rename to ...
32634 (vec_prefix::m_using_auto_storage): ... this.
32635 (vec_prefix::calculate_allocation): Inline the easy cases
32636 and dispatch to calculate_allocation_1 which doesn't need the
32638 (va_heap::reserve): Use gcc_checking_assert.
32639 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
32640 m_using_auto_storage.
32641 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
32643 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
32644 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
32645 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
32647 2014-02-12 Richard Biener <rguenther@suse.de>
32649 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
32650 when we found a dependence.
32652 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
32654 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
32656 (maybe_fold_stmt): ... into this new function.
32657 * omp-low.c (lower_omp): Update comment.
32659 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
32662 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
32665 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
32667 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
32668 identifiers in comments.
32669 (cortexa53_extra_costs): Likewise.
32670 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
32671 (cortexa7_extra_costs): Likewise.
32672 (cortexa12_extra_costs): Likewise.
32673 (cortexa15_extra_costs): Likewise.
32674 (v7m_extra_costs): Likewise.
32676 2014-02-12 Richard Biener <rguenther@suse.de>
32678 PR middle-end/60092
32679 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
32680 of posix_memalign being successful.
32681 (lower_stmt): Restrict lowering of posix_memalign to when
32682 -ftree-bit-ccp is enabled.
32684 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32686 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
32688 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
32690 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
32692 PR rtl-optimization/60116
32693 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
32694 other_insn once the combination has been validated.
32696 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
32699 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
32701 * ipa-devirt.c: Include demangle.h
32702 (odr_violation_reported): New static variable.
32703 (add_type_duplicate): Update odr_violations.
32704 (maybe_record_node): Add completep parameter; update it.
32705 (record_target_from_binfo): Add COMPLETEP parameter;
32706 update it as needed.
32707 (possible_polymorphic_call_targets_1): Likewise.
32708 (struct polymorphic_call_target_d): Add nonconstruction_targets;
32709 rename FINAL to COMPLETE.
32710 (record_targets_from_bases): Sanity check we found the binfo;
32711 fix COMPLETEP updating.
32712 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
32713 parameter, fix computing of COMPLETEP.
32714 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
32715 at LTO time do demangling.
32716 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
32717 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
32719 (gimple_get_virt_method_for_binfo): Likewise.
32720 * gimple-fold.h (gimple_get_virt_method_for_binfo,
32721 gimple_get_virt_method_for_vtable): Update prototypes.
32723 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
32726 * genautomata.c (add_presence_absence): Fix typo with
32727 {final_}presence_list.
32729 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
32732 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
32733 for VSX/Altivec vectors that land in GPR registers.
32735 2014-02-11 Richard Henderson <rth@redhat.com>
32736 Jakub Jelinek <jakub@redhat.com>
32739 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
32740 around drhs if type conversion to lacc->type is not useless.
32742 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32744 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
32746 (cortex-a57.cortex-a53): Likewise.
32747 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
32749 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32751 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
32754 2014-02-11 Renlin Li <Renlin.Li@arm.com>
32756 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
32757 add_options_for_arm_vfp3.
32759 2014-02-11 Jeff Law <law@redhat.com>
32761 PR middle-end/54041
32762 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
32763 object with an undesirable mode.
32765 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32768 * config/i386/sol2-9.h: New file.
32769 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
32770 *-*-solaris2.9*): Use it.
32772 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
32774 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
32775 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
32777 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
32779 * config/microblaze/microblaze.c: Extend mcpu version format
32781 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
32783 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
32785 2014-02-10 Richard Henderson <rth@redhat.com>
32788 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
32789 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
32790 ms-abi vs -mno-accumulate-outgoing-args.
32791 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
32792 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
32795 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
32797 PR middle-end/60080
32798 * cfgexpand.c (expand_asm_operands): Attach source location to
32799 ASM_INPUT rtx objects.
32800 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
32802 2014-02-10 Nick Clifton <nickc@redhat.com>
32804 * config/mn10300/mn10300.c (popcount): New function.
32805 (mn10300_expand_prologue): Include saved registers in stack usage
32808 2014-02-10 Jeff Law <law@redhat.com>
32810 PR middle-end/52306
32811 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
32812 when changing the SET_DEST of a prior insn to avoid an input reload.
32814 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32816 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
32817 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
32818 -mcall-openbsd, or -mcall-linux.
32819 (CC1_ENDIAN_BIG_SPEC): Remove.
32820 (CC1_ENDIAN_LITTLE_SPEC): Remove.
32821 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
32822 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
32823 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
32824 and %cc1_endian_default.
32825 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
32827 2014-02-10 Richard Biener <rguenther@suse.de>
32829 PR tree-optimization/60115
32830 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
32831 MEM_REF handling. Properly verify that the accesses are not
32832 out of the objects bound.
32834 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32836 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
32839 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
32841 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
32842 proper constants and fix formatting.
32843 (possible_polymorphic_call_targets): Fix formatting.
32845 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
32846 Ilya Tocar <ilya.tocar@intel.com>
32848 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
32849 (_mm512_loadu_epi32): Renamed into...
32850 (_mm512_loadu_si512): This.
32851 (_mm512_storeu_epi32): Renamed into...
32852 (_mm512_storeu_si512): This.
32853 (_mm512_maskz_ceil_ps): Removed.
32854 (_mm512_maskz_ceil_pd): Ditto.
32855 (_mm512_maskz_floor_ps): Ditto.
32856 (_mm512_maskz_floor_pd): Ditto.
32857 (_mm512_floor_round_ps): Ditto.
32858 (_mm512_floor_round_pd): Ditto.
32859 (_mm512_ceil_round_ps): Ditto.
32860 (_mm512_ceil_round_pd): Ditto.
32861 (_mm512_mask_floor_round_ps): Ditto.
32862 (_mm512_mask_floor_round_pd): Ditto.
32863 (_mm512_mask_ceil_round_ps): Ditto.
32864 (_mm512_mask_ceil_round_pd): Ditto.
32865 (_mm512_maskz_floor_round_ps): Ditto.
32866 (_mm512_maskz_floor_round_pd): Ditto.
32867 (_mm512_maskz_ceil_round_ps): Ditto.
32868 (_mm512_maskz_ceil_round_pd): Ditto.
32869 (_mm512_expand_pd): Ditto.
32870 (_mm512_expand_ps): Ditto.
32871 * config/i386/i386.c (ix86_builtins): Remove
32872 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
32873 (bdesc_args): Ditto.
32874 * config/i386/predicates.md (const1256_operand): New.
32875 (const_1_to_2_operand): Ditto.
32876 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
32877 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
32878 (*avx512pf_gatherpf<mode>sf): Ditto.
32879 (avx512pf_gatherpf<mode>df): Ditto.
32880 (*avx512pf_gatherpf<mode>df_mask): Ditto.
32881 (*avx512pf_gatherpf<mode>df): Ditto.
32882 (avx512pf_scatterpf<mode>sf): Ditto.
32883 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
32884 (*avx512pf_scatterpf<mode>sf): Ditto.
32885 (avx512pf_scatterpf<mode>df): Ditto.
32886 (*avx512pf_scatterpf<mode>df_mask): Ditto.
32887 (*avx512pf_scatterpf<mode>df): Ditto.
32888 (avx512f_expand<mode>): Removed.
32889 (<shift_insn><mode>3<mask_name>): Change predicate type.
32891 2014-02-08 Jakub Jelinek <jakub@redhat.com>
32893 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
32894 not at the end of datarefs vector use ordered_remove to avoid
32895 reordering datarefs vector.
32898 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
32899 mark local addressable non-static vars as GOVD_PRIVATE
32900 instead of GOVD_LOCAL.
32901 * omp-low.c (lower_omp_for): Move gimple_bind_vars
32902 and BLOCK_VARS of gimple_bind_block to new_stmt rather
32905 PR middle-end/60092
32906 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
32907 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
32908 assume_aligned or alloc_align attributes.
32909 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
32910 arguments. Handle also assume_aligned and alloc_align attributes.
32911 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
32912 calls to functions with assume_aligned or alloc_align attributes.
32913 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
32915 2014-02-08 Terry Guo <terry.guo@arm.com>
32917 * doc/invoke.texi: Document ARM -march=armv7e-m.
32919 2014-02-08 Jakub Jelinek <jakub@redhat.com>
32921 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
32922 flag on __cilkrts_rethrow builtin.
32925 * ipa-cp.c (determine_versionability): Fail at -O0
32926 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
32927 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
32930 2014-02-04 Jakub Jelinek <jakub@redhat.com>
32933 * tree-inline.c (copy_forbidden): Fail for
32934 __attribute__((optimize (0))) functions.
32936 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
32938 * varpool.c: Include pointer-set.h.
32939 (varpool_remove_unreferenced_decls): Variables in other partitions
32940 will not be output; be however careful to not lose information
32941 about partitioning.
32943 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
32945 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
32946 lookup in the vtable constructor.
32948 2014-02-07 Jeff Law <law@redhat.com>
32951 * config/m68k/m68k.md (ashldi_extsi): Turn into a
32952 define_insn_and_split.
32954 * ipa-inline.c (inline_small_functions): Fix typos.
32956 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
32958 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
32959 (s390_can_use_return_insn): Declare.
32960 * config/s390/s390.h (EPILOGUE_USES): Define.
32961 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
32963 (s390_chunkify_start): Handle return JUMP_LABELs.
32964 (s390_early_mach): Emit a main_pool instruction on the entry edge.
32965 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
32966 (s390_can_use_return_insn): New functions.
32967 (s390_fix_long_loop_prediction): Handle conditional returns.
32968 (TARGET_SET_UP_BY_PROLOGUE): Define.
32969 * config/s390/s390.md (ANY_RETURN): New code iterator.
32970 (*creturn, *csimple_return, return, simple_return): New patterns.
32972 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
32974 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
32975 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
32976 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
32977 REG_CFA_RESTORE list when deciding not to restore a register.
32979 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
32981 * config/s390/s390.c: Include tree-pass.h and context.h.
32982 (s390_early_mach): New function, split out from...
32983 (s390_emit_prologue): ...here.
32984 (pass_data_s390_early_mach): New pass structure.
32985 (pass_s390_early_mach): New class.
32986 (s390_option_override): Create and register early_mach pass.
32987 Move to end of file.
32989 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
32991 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
32992 to match for the exit block.
32994 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32996 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
32997 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
32998 Reject misaligned operands.
33000 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33002 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
33004 2014-02-07 Richard Biener <rguenther@suse.de>
33006 PR middle-end/60092
33007 * gimple-low.c (lower_builtin_posix_memalign): New function.
33008 (lower_stmt): Call it to lower posix_memalign in a way
33009 to make alignment info accessible.
33011 2014-02-07 Jakub Jelinek <jakub@redhat.com>
33014 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
33015 __builtin_setjmp_receiver.
33017 2014-02-07 Richard Biener <rguenther@suse.de>
33019 PR middle-end/60092
33020 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
33021 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
33022 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
33023 Handle BUILT_IN_POSIX_MEMALIGN.
33024 (find_func_clobbers): Likewise.
33025 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
33026 (call_may_clobber_ref_p_1): Likewise.
33028 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
33031 * ipa-devirt.c (record_target_from_binfo): Remove overactive
33034 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
33037 * lto-cgraph.c (lto_output_node): Use
33038 symtab_get_symbol_partitioning_class.
33039 (lto_output_varpool_node): likewise.
33040 (symtab_get_symbol_partitioning_class): Move here from
33041 lto/lto-partition.c
33042 * cgraph.h (symbol_partitioning_class): Likewise.
33043 (symtab_get_symbol_partitioning_class): Declare.
33045 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
33047 * ggc.h (ggc_internal_cleared_alloc): New macro.
33048 * vec.h (vec_safe_copy): Handle memory stats.
33049 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
33050 * target-globals.c (save_target_globals): Likewise.
33052 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
33055 * expr.c (emit_move_resolve_push): Export; be bit more selective
33056 on when to clear alias set.
33057 * expr.h (emit_move_resolve_push): Declare.
33058 * function.h (struct function): Add tail_call_marked.
33059 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
33060 * config/i386/i386-protos.h (ix86_expand_push): Remove.
33061 * config/i386/i386.md (TImode move expander): De not call
33063 (FP push expanders): Preserve memory attributes.
33064 * config/i386/sse.md (push<mode>1): Remove.
33065 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
33066 (ix86_expand_push): Remove.
33067 * config/i386/mmx.md (push<mode>1): Remove.
33069 2014-02-06 Jakub Jelinek <jakub@redhat.com>
33071 PR rtl-optimization/60030
33072 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
33073 lopart with paradoxical subreg before shifting it up by hprec.
33075 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33077 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
33078 Remove extra newline at end of file.
33079 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
33080 (arm_issue_rate): Handle cortexa57.
33081 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
33082 (cortex-a57.cortex-a53): Likewise.
33084 2014-02-06 Jakub Jelinek <jakub@redhat.com>
33087 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
33088 don't record in REG_FRAME_RELATED_EXPR registers not set in that
33090 (arm_expand_prologue): Adjust all callers.
33091 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
33092 info, registers also at the lowest numbered registers side. Use
33093 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
33097 * var-tracking.c (adjust_mems): Before adding a SET to
33098 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
33100 2014-02-06 Alan Modra <amodra@gmail.com>
33103 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
33104 change SDmode to DDmode when lra_in_progress.
33106 2014-02-06 Jakub Jelinek <jakub@redhat.com>
33108 PR middle-end/59150
33109 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
33110 free_data_ref on the dr first, and before goto again also set dr
33111 to the next dr. For simd_lane_access, free old datarefs[i] before
33112 overwriting it. For get_vectype_for_scalar_type failure, don't
33113 free_data_ref if simd_lane_access.
33115 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
33118 * tree.h (opts_for_fn): New inline function.
33119 (opt_for_fn): Define.
33120 * config/i386/i386.c (ix86_function_regparm): Use
33121 opt_for_fn (decl, optimize) instead of optimize.
33123 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
33125 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
33126 for SYMBOL_REF in large memory model.
33128 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33130 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
33131 and crypto support.
33132 (cortex-a57): Likewise.
33133 (cortex-a57.cortex-a53): Likewise.
33135 2014-02-06 Yury Gribov <y.gribov@samsung.com>
33136 Kugan Vivekanandarajah <kuganv@linaro.org>
33138 * config/arm/arm.c (arm_vector_alignment_reachable): Check
33140 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
33142 2014-02-06 Richard Biener <rguenther@suse.de>
33144 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
33145 set_loop_copy and initialize_original_copy_tables.
33147 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
33149 * config/aarch64/aarch64-simd.md
33150 (aarch64_ashr_simddi): Change QI to SI.
33152 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
33153 Jakub Jelinek <jakub@redhat.com>
33155 PR middle-end/60013
33156 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
33159 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33161 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
33162 CODE_FOR_altivec_vpku[hw]um to
33163 CODE_FOR_altivec_vpku[hw]um_direct.
33164 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
33165 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
33166 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
33167 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
33169 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33171 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
33172 generation for -maltivec=be.
33173 (altivec_vsumsws): Simplify redundant test.
33175 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33177 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
33178 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
33179 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
33180 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
33181 gen_altivec_vpkuwum.
33182 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
33184 (altivec_vpks<VI_char>ss): Likewise.
33185 (altivec_vpks<VI_char>us): Likewise.
33186 (altivec_vpku<VI_char>us): Likewise.
33187 (altivec_vpku<VI_char>um): Likewise.
33188 (altivec_vpku<VI_char>um_direct): New (copy of
33189 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
33191 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
33192 target is little endian and -maltivec=be is not specified.
33193 (*altivec_vupkhs<VU_char>_direct): New (copy of
33194 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
33195 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
33196 target is little endian and -maltivec=be is not specified.
33197 (*altivec_vupkls<VU_char>_direct): New (copy of
33198 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
33199 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
33200 little endian and -maltivec=be is not specified.
33201 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
33202 little endian and -maltivec=be is not specified.
33204 2014-02-05 Richard Henderson <rth@redhat.com>
33207 * combine-stack-adj.c: Revert r206943.
33208 * sched-int.h (struct deps_desc): Add last_args_size.
33209 * sched-deps.c (init_deps): Initialize it.
33210 (sched_analyze_insn): Add OUTPUT dependencies between insns that
33211 contain REG_ARGS_SIZE notes.
33213 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
33215 * lto-cgraph.c (asm_nodes_output): Make global.
33216 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
33217 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
33218 (driver_handle_option): Handle OPT_fwpa.
33220 2014-02-05 Jakub Jelinek <jakub@redhat.com>
33223 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
33224 a comment typo and formatting issue. If odr_hash hasn't been
33225 created, return vNULL and set *completep to false.
33227 PR middle-end/57499
33228 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
33229 bb with no successors.
33231 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
33234 * doc/invoke.texi (-march): Clarify documentation for ARM.
33235 (-mtune): Likewise.
33238 2014-02-05 Richard Biener <rguenther@suse.de>
33240 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
33241 when not vectorizing because of too many alias checks.
33242 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
33243 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
33245 2014-02-05 Nick Clifton <nickc@redhat.com>
33247 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
33248 accept extended registers in any mode when compiling for the MN10300.
33250 2014-02-05 Yury Gribov <y.gribov@samsung.com>
33252 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
33253 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
33254 sanitization attributes.
33255 (can_inline_edge_p): Likewise.
33256 (sanitize_attrs_match_for_inline_p): New function.
33258 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
33260 * ipa-prop.c (detect_type_change): Shor circuit testing of
33261 type changes on THIS pointer.
33263 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
33266 * config/pa/pa.c (legitimize_tls_address): Return original address
33267 if not passed a SYMBOL_REF rtx.
33268 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
33270 (pa_emit_move_sequence): Simplify TLS source operands.
33271 (pa_legitimate_constant_p): Reject all TLS constants.
33272 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
33273 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
33275 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
33277 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
33278 groups when we know they are controlled by LTO.
33279 * varasm.c (default_binds_local_p_1): If object is in other partition,
33280 it will be resolved locally.
33282 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
33284 * config/host-linux.c (linux_gt_pch_use_address): Don't
33285 use SSIZE_MAX because it is not always defined.
33287 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
33290 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
33291 threshold for pseudo splitting.
33292 (update_ebb_live_info): Process call argument hard registers and
33293 hard registers from insn definition too.
33294 (max_small_class_regs_num): New constant.
33295 (inherit_in_ebb): Update live hard regs through EBBs. Update
33296 reloads_num only for small register classes. Don't split for
33299 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
33302 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
33305 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
33307 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
33308 visibility is safe.
33310 2014-02-04 Marek Polacek <polacek@redhat.com>
33312 * gdbinit.in (pel): Define.
33314 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
33316 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
33319 2014-02-04 Richard Biener <rguenther@suse.de>
33322 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
33323 in function context local.
33324 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
33325 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
33326 similar to LTO_imported_decl_ref.
33328 2014-02-04 Jakub Jelinek <jakub@redhat.com>
33330 PR tree-optimization/60002
33331 * cgraphclones.c (build_function_decl_skip_args): Clear
33332 DECL_LANG_SPECIFIC.
33334 PR tree-optimization/60023
33335 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
33336 false to gsi_replace.
33337 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
33338 has been in some EH region and vec_stmt could throw, add
33339 vec_stmt into the same EH region.
33340 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
33341 has no lhs, ignore it.
33342 * internal-fn.c (expand_MASK_LOAD): Likewise.
33345 * tree-inline.c (copy_forbidden): Fail for
33346 __attribute__((optimize (0))) functions.
33349 * omp-low.c (simd_clone_struct_copy): If from->inbranch
33350 is set, copy one less argument.
33351 (expand_simd_clones): Don't subtract clone_info->inbranch
33352 from simd_clone_struct_alloc argument.
33354 PR rtl-optimization/57915
33355 * recog.c (simplify_while_replacing): If all unary/binary/relational
33356 operation arguments are constant, attempt to simplify those.
33358 PR middle-end/59261
33359 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
33360 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
33362 2014-02-04 Richard Biener <rguenther@suse.de>
33364 PR tree-optimization/60012
33365 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
33366 TBAA disambiguation to all DDRs.
33368 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33371 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
33372 (LINK_SPEC): Use it for -shared, -shared-libgcc.
33374 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33377 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
33379 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33381 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
33382 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
33384 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33387 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
33388 to figure out targets of polymorphic calls with known decl.
33389 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33390 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
33391 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
33392 (get_polymorphic_call_info): ... here.
33393 (get_polymorphic_call_info_from_invariant): New function.
33395 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33397 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
33398 lookup via vtable pointer; check for type consistency
33399 and turn inconsitent facts into UNREACHABLE.
33400 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33401 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
33402 type inconsistent querries; return UNREACHABLE instead.
33404 2014-02-03 Richard Henderson <rth@twiddle.net>
33407 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
33408 already processed this node.
33409 (normalize_one_pred_1): Pass along mark_set.
33410 (normalize_one_pred): Create and destroy a pointer_set_t.
33411 (normalize_one_pred_chain): Likewise.
33413 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
33415 PR gcov-profile/58602
33416 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
33418 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33421 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
33422 -fno-devirtualize; try to devirtualize by the knowledge of
33423 virtual table pointer given by aggregate propagation.
33424 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33425 (ipa_print_node_jump_functions): Dump also offset that
33426 is relevant for polymorphic calls.
33427 (determine_known_aggregate_parts): Add arg_type parameter; use it
33428 instead of determining the type from pointer type.
33429 (ipa_compute_jump_functions_for_edge): Update call of
33430 determine_known_aggregate_parts.
33431 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
33432 (gimple_get_virt_method_for_binfo): ... here; simplify using
33433 vtable_pointer_value_to_vtable.
33434 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
33435 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
33436 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
33437 (vtable_pointer_value_to_vtable): Break out from ...; handle also
33439 (vtable_pointer_value_to_binfo): ... here.
33440 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
33442 2014-02-03 Teresa Johnson <tejohnson@google.com>
33444 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
33445 redef of outer loop index variable.
33447 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
33451 * doc/extend.texi (Function Attributes): Typo.
33453 2014-02-03 Cong Hou <congh@google.com>
33455 PR tree-optimization/60000
33456 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
33457 if the vectorized statement is a store. A store statement can only
33458 appear at the end of pattern statements.
33460 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
33462 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
33463 (ix86_option_override_internal): Default long double to 64-bit for
33464 32-bit Bionic and to 128-bit for 64-bit Bionic.
33466 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
33467 TARGET_LONG_DOUBLE_128 is true.
33468 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
33470 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
33471 (mlong-double-64): Negate -mlong-double-128.
33472 (mlong-double-128): New option.
33474 * config/i386/i386-c.c (ix86_target_macros): Define
33475 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
33477 * doc/invoke.texi: Document -mlong-double-128.
33479 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
33481 PR rtl-optimization/60024
33482 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
33484 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
33486 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
33488 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
33490 PR rtl-optimization/57662
33491 * sel-sched.c (code_motion_path_driver): Do not mark already not
33492 existing blocks in the visiting bitmap.
33494 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
33496 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
33497 on the insn being emitted.
33499 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
33500 Will Deacon <will.deacon@arm.com>
33502 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
33504 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33506 * config/arm/arm-tables.opt: Regenerate.
33508 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33510 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
33511 for vector types other than V16QImode.
33512 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
33513 define_expand, and call altivec_expand_vec_perm_le when producing
33514 code with little endian element order.
33515 (*altivec_vperm_<mode>_internal): New insn having previous
33516 behavior of altivec_vperm_<mode>.
33517 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
33518 altivec_expand_vec_perm_le when producing code with little endian
33520 (*altivec_vperm_<mode>_uns_internal): New insn having previous
33521 behavior of altivec_vperm_<mode>_uns.
33523 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33525 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
33526 (altivec_vsumsws): Add handling for -maltivec=be with a little
33528 (altivec_vsumsws_direct): New.
33529 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
33530 gen_altivec_vsumsws.
33532 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
33534 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
33535 vtable_pointer_value_to_binfo): New functions.
33536 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
33537 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
33539 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
33541 * config/nios2/nios2.md (load_got_register): Initialize GOT
33542 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
33543 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
33545 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
33547 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
33548 preserverd by passthrough, do not propagate the type.
33550 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
33552 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
33553 (mips_atomic_assign_expand_fenv): New function.
33554 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
33556 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
33558 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
33559 (__builtin_mips_set_fcsr): Likewise.
33560 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
33561 MIPS_USI_FTYPE_VOID.
33562 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
33563 (mips16_expand_set_fcsr): Likewise.
33564 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
33565 (mips16_set_fcsr_stub): Likewise.
33566 (mips16_get_fcsr_one_only_stub): New class.
33567 (mips16_set_fcsr_one_only_stub): Likewise.
33568 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
33569 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
33570 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
33571 (hard_float): New availability predicate.
33572 (mips_builtins): Add get_fcsr and set_fcsr.
33573 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
33574 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
33575 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
33576 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
33577 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
33580 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
33582 * config/mips/mips.c (mips_one_only_stub): New class.
33583 (mips_need_mips16_rdhwr_p): Replace with...
33584 (mips16_rdhwr_stub): ...this new variable.
33585 (mips16_stub_call_address): New function.
33586 (mips16_rdhwr_one_only_stub): New class.
33587 (mips_expand_thread_pointer): Use mips16_stub_call_address.
33588 (mips_output_mips16_rdhwr): Delete.
33589 (mips_finish_stub): New function.
33590 (mips_code_end): Use it to handle rdhwr stubs.
33592 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
33595 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
33596 when calculating size of integer atomic types.
33598 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
33600 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
33602 2014-02-01 Jakub Jelinek <jakub@redhat.com>
33604 PR tree-optimization/60003
33605 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
33606 * profile.c (branch_prob): Use gimple_call_builtin_p
33607 to check for BUILT_IN_SETJMP_RECEIVER.
33608 * tree-inline.c (copy_bb): Call notice_special_calls.
33610 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
33613 * lra-constraints.c (process_alt_operands): Update reload_sum only
33616 2014-01-31 Richard Henderson <rth@redhat.com>
33618 PR middle-end/60004
33619 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
33620 until after else_eh is processed.
33622 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
33624 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
33625 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
33626 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
33627 in smmintrin.h, remove them.
33628 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
33629 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
33630 * config/i386/i386.md (ROUND_SAE): Fix value.
33631 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
33632 (const48_operand): New.
33633 * config/i386/subst.md (round), (round_expand): Use
33634 const_4_or_8_to_11_operand.
33635 (round_saeonly), (round_saeonly_expand): Use const48_operand.
33637 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
33639 * config/i386/constraints.md (Yk): Swap meaning with k.
33640 * config/i386/i386.md (movhi_internal): Change Yk to k.
33641 (movqi_internal): Ditto.
33642 (*k<logic><mode>): Ditto.
33645 (kandn<mode>): Ditto.
33646 (*<code>hi_1): Ditto.
33647 (*<code>qi_1): Ditto.
33648 (kxnor<mode>): Ditto.
33649 (kortestzhi): Ditto.
33650 (kortestchi): Ditto.
33652 (*one_cmplhi2_1): Ditto.
33653 (*one_cmplqi2_1): Ditto.
33654 * config/i386/sse.md (): Change k to Yk.
33655 (avx512f_load<mode>_mask): Ditto.
33656 (avx512f_blendm<mode>): Ditto.
33657 (avx512f_store<mode>_mask): Ditto.
33658 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
33659 (avx512f_storedqu<mode>_mask): Ditto.
33660 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
33662 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
33663 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
33664 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
33665 (avx512f_maskcmp<mode>3): Ditto.
33666 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
33667 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
33668 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
33669 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
33670 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
33671 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
33672 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
33673 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
33674 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
33675 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
33676 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
33677 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
33678 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
33679 (vec_extract_lo_<mode>_maskm): Ditto.
33680 (vec_extract_hi_<mode>_maskm): Ditto.
33681 (avx512f_vternlog<mode>_mask): Ditto.
33682 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
33683 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
33684 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
33685 (avx512f_<code>v8div16qi2_mask): Ditto.
33686 (avx512f_<code>v8div16qi2_mask_store): Ditto.
33687 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
33688 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
33689 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
33690 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
33691 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
33692 (*avx512pf_gatherpf<mode>df_mask): Ditto.
33693 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
33694 (*avx512pf_scatterpf<mode>df_mask): Ditto.
33695 (avx512cd_maskb_vec_dupv8di): Ditto.
33696 (avx512cd_maskw_vec_dupv16si): Ditto.
33697 (avx512f_vpermi2var<mode>3_maskz): Ditto.
33698 (avx512f_vpermi2var<mode>3_mask): Ditto.
33699 (avx512f_vpermi2var<mode>3_mask): Ditto.
33700 (avx512f_vpermt2var<mode>3_maskz): Ditto.
33701 (*avx512f_gathersi<mode>): Ditto.
33702 (*avx512f_gathersi<mode>_2): Ditto.
33703 (*avx512f_gatherdi<mode>): Ditto.
33704 (*avx512f_gatherdi<mode>_2): Ditto.
33705 (*avx512f_scattersi<mode>): Ditto.
33706 (*avx512f_scatterdi<mode>): Ditto.
33707 (avx512f_compress<mode>_mask): Ditto.
33708 (avx512f_compressstore<mode>_mask): Ditto.
33709 (avx512f_expand<mode>_mask): Ditto.
33710 * config/i386/subst.md (mask): Change k to Yk.
33711 (mask_scalar_merge): Ditto.
33714 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
33716 * doc/extend.texi (Vector Extensions): Document ?: in C++.
33718 2014-01-31 Richard Biener <rguenther@suse.de>
33720 PR middle-end/59990
33721 * builtins.c (fold_builtin_memory_op): Make sure to not
33722 use a floating-point mode or a boolean or enumeral type for
33723 the copy operation.
33725 2014-01-30 DJ Delorie <dj@redhat.com>
33727 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
33728 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
33729 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
33730 whenever main() has an epilogue.
33732 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33734 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
33735 unused variable "field".
33736 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
33737 (vsx_mergeh_<mode>): Likewise.
33738 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
33739 (altivec_vmrghh): Likewise.
33740 (altivec_vmrghw): Likewise.
33741 (altivec_vmrglb): Likewise.
33742 (altivec_vmrglh): Likewise.
33743 (altivec_vmrglw): Likewise.
33744 (altivec_vspltb): Add missing uses.
33745 (altivec_vsplth): Likewise.
33746 (altivec_vspltw): Likewise.
33747 (altivec_vspltsf): Likewise.
33749 2014-01-30 Jakub Jelinek <jakub@redhat.com>
33752 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
33753 frame related instructions.
33755 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
33757 PR rtl-optimization/59959
33758 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
33759 any reload of register whose subreg is invalid.
33761 2014-01-30 Jakub Jelinek <jakub@redhat.com>
33763 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
33764 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
33765 Add missing return type - void.
33767 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33769 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
33770 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
33771 remove element index adjustment for endian (now handled in vsx.md
33773 (altivec_expand_vec_perm_const): Use
33774 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
33775 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
33776 (vsx_xxspltw_<mode>): Adjust element index for little endian.
33777 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
33778 define_expand and a new define_insn *altivec_vspltb_internal;
33779 adjust for -maltivec=be on a little endian target.
33780 (altivec_vspltb_direct): New.
33781 (altivec_vsplth): Divide into a define_expand and a new
33782 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
33783 little endian target.
33784 (altivec_vsplth_direct): New.
33785 (altivec_vspltw): Divide into a define_expand and a new
33786 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
33787 little endian target.
33788 (altivec_vspltw_direct): New.
33789 (altivec_vspltsf): Divide into a define_expand and a new
33790 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
33791 a little endian target.
33793 2014-01-30 Richard Biener <rguenther@suse.de>
33795 PR tree-optimization/59993
33796 * tree-ssa-forwprop.c (associate_pointerplus): Check we
33797 can propagate form the earlier stmt and avoid the transform
33798 when the intermediate result is needed.
33800 2014-01-30 Alangi Derick <alangiderick@gmail.com>
33802 * README.Portability: Fix typo.
33804 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
33806 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
33807 comparison_operator with ordered_comparison_operator.
33809 2014-01-30 Nick Clifton <nickc@redhat.com>
33811 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
33812 Rename to mn10300_store_multiple_regs.
33813 * config/mn10300/mn10300.c: Likewise.
33814 * config/mn10300/mn10300.md (store_movm): Fix typo: call
33815 store_multiple_regs.
33816 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
33817 Call mn10300_store_multiple_regs.
33819 2014-01-30 Nick Clifton <nickc@redhat.com>
33820 DJ Delorie <dj@redhat.com>
33822 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
33823 %fp 2 to keep registers after it properly word-aligned.
33824 (rl78_alloc_physical_registers_umul): Handle the case where both
33825 input operands are the same.
33827 2014-01-30 Richard Biener <rguenther@suse.de>
33829 PR tree-optimization/59903
33830 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
33833 2014-01-30 Jason Merrill <jason@redhat.com>
33836 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
33839 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
33841 2014-01-30 Richard Biener <rguenther@suse.de>
33843 PR tree-optimization/59951
33844 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
33846 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
33849 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
33850 SFmode to DFmode case.
33852 2014-01-29 DJ Delorie <dj@redhat.com>
33854 * config/msp430/msp430.opt (-minrt): New.
33855 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
33857 (ENDFILE_SPEC): Likewise.
33859 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
33861 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
33862 (estimate_function_body_sizes): Use it.
33864 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
33867 * dwarf2out.c (is_cxx_auto): New.
33868 (is_base_type): Use it.
33869 (gen_type_die_with_usage): Likewise.
33871 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33873 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
33874 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
33875 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
33876 -maltivec=be with LE targets.
33877 (vsx_mergeh_<mode>): Likewise.
33878 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
33879 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
33880 (altivec_vmrghb): Replace with define_expand and new
33881 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
33882 (altivec_vmrghb_direct): New define_insn.
33883 (altivec_vmrghh): Replace with define_expand and new
33884 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
33885 (altivec_vmrghh_direct): New define_insn.
33886 (altivec_vmrghw): Replace with define_expand and new
33887 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
33888 (altivec_vmrghw_direct): New define_insn.
33889 (*altivec_vmrghsf): Adjust for endianness.
33890 (altivec_vmrglb): Replace with define_expand and new
33891 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
33892 (altivec_vmrglb_direct): New define_insn.
33893 (altivec_vmrglh): Replace with define_expand and new
33894 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
33895 (altivec_vmrglh_direct): New define_insn.
33896 (altivec_vmrglw): Replace with define_expand and new
33897 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
33898 (altivec_vmrglw_direct): New define_insn.
33899 (*altivec_vmrglsf): Adjust for endianness.
33900 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
33901 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
33902 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
33903 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
33904 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
33905 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
33906 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
33907 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
33909 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
33911 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
33912 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
33915 2014-01-29 Richard Biener <rguenther@suse.de>
33917 PR tree-optimization/58742
33918 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
33919 associate_pointerplus_align.
33920 (associate_pointerplus_diff): New function.
33921 (associate_pointerplus): Likewise. Call associate_pointerplus_align
33922 and associate_pointerplus_diff.
33924 2014-01-29 Richard Biener <rguenther@suse.de>
33926 * lto-streamer.h (LTO_major_version): Bump to 3.
33927 (LTO_minor_version): Reset to 0.
33929 2014-01-29 Renlin Li <Renlin.Li@arm.com>
33931 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
33932 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
33933 (arm_file_start): Generate correct asm header for armv7ve.
33934 * config/arm/bpabi.h: Add multilib support for armv7ve.
33935 * config/arm/driver-arm.c: Change the architectures of cortex-a7
33936 and cortex-a15 to armv7ve.
33937 * config/arm/t-aprofile: Add multilib support for armv7ve.
33938 * doc/invoke.texi: Document -march=armv7ve.
33940 2014-01-29 Richard Biener <rguenther@suse.de>
33942 PR tree-optimization/58742
33943 * tree-ssa-forwprop.c (associate_plusminus): Return true
33944 if we changed sth, defer EH cleanup to ...
33945 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
33946 (simplify_mult): New function.
33948 2014-01-29 Jakub Jelinek <jakub@redhat.com>
33950 PR middle-end/59917
33951 PR tree-optimization/59920
33952 * tree.c (build_common_builtin_nodes): Remove
33953 __builtin_setjmp_dispatcher initialization.
33954 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
33955 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
33956 instead of gsi_after_labels + manually skipping debug stmts.
33957 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
33958 ignore bbs with IFN_ABNORMAL_DISPATCHER.
33959 * tree-inline.c (copy_edges_for_bb): Remove
33960 can_make_abnormal_goto argument, instead add abnormal_goto_dest
33961 argument. Ignore computed_goto_p stmts. Don't call
33962 make_abnormal_goto_edges. If a call might need abnormal edges
33963 for non-local gotos, see if it already has an edge to
33964 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
33965 with true argument, don't do anything then, otherwise add
33966 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
33967 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
33969 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
33970 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
33971 (lower_stmt): Don't set data->calls_builtin_setjmp.
33972 (lower_builtin_setjmp): Adjust comment.
33973 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
33974 * tree-cfg.c (found_computed_goto): Remove.
33975 (factor_computed_gotos): Remove.
33976 (make_goto_expr_edges): Return bool, true for computed gotos.
33977 Don't call make_abnormal_goto_edges.
33978 (build_gimple_cfg): Don't set found_computed_goto, don't call
33979 factor_computed_gotos.
33980 (computed_goto_p): No longer static.
33981 (make_blocks): Don't set found_computed_goto.
33982 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
33983 (make_edges): If make_goto_expr_edges returns true, push bb
33984 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
33985 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
33986 vector. Record mapping between bbs and OpenMP regions if there
33987 are any, adjust make_gimple_omp_edges caller. Call
33988 handle_abnormal_edges.
33989 (make_abnormal_goto_edges): Remove.
33990 * tree-cfg.h (make_abnormal_goto_edges): Remove.
33991 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
33992 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
33993 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
33994 * internal-fn.def (ABNORMAL_DISPATCHER): New.
33995 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
33996 filling *region also set *region_idx to (*region)->entry->index.
33999 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
34000 For REGs set ORIGINAL_REGNO.
34002 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
34004 * doc/md.texi: Mention that a target shouldn't implement
34005 vec_widen_(s|u)mul_even/odd pair if it is less efficient
34008 2014-01-29 Jakub Jelinek <jakub@redhat.com>
34010 PR tree-optimization/59594
34011 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
34012 a copy of the datarefs vector rather than the vector itself.
34014 2014-01-28 Jason Merrill <jason@redhat.com>
34017 * dwarf2out.c (auto_die): New static.
34018 (gen_type_die_with_usage): Handle C++1y 'auto'.
34019 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
34022 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
34025 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
34026 (SPEC_X32): Likewise.
34027 (SPEC_64): Likewise.
34028 * config/i386/i386.c (ix86_option_override_internal): Turn off
34029 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
34031 (x86_file_start): Output .code16gcc for TARGET_16BIT.
34032 * config/i386/i386.h (TARGET_16BIT): New macro.
34033 (TARGET_16BIT_P): Likewise.
34034 * config/i386/i386.opt: Add m16.
34035 * doc/invoke.texi: Document -m16.
34037 2014-01-28 Jakub Jelinek <jakub@redhat.com>
34039 PR preprocessor/59935
34040 * input.c (location_get_source_line): Bail out on when line number
34041 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
34043 2014-01-28 Richard Biener <rguenther@suse.de>
34045 PR tree-optimization/58742
34046 * tree-ssa-forwprop.c (associate_plusminus): Handle
34047 pointer subtraction of the form (T)(P + A) - (T)P.
34049 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34051 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
34054 2014-01-28 Richard Biener <rguenther@suse.de>
34057 2014-01-28 Richard Biener <rguenther@suse.de>
34059 PR rtl-optimization/45364
34060 PR rtl-optimization/59890
34061 * var-tracking.c (local_get_addr_clear_given_value): Handle
34062 already cleared slot.
34063 (val_reset): Handle not allocated local_get_addr_cache.
34064 (vt_find_locations): Use post-order on the inverted CFG.
34066 2014-01-28 Richard Biener <rguenther@suse.de>
34068 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
34070 2014-01-28 Richard Biener <rguenther@suse.de>
34072 PR rtl-optimization/45364
34073 PR rtl-optimization/59890
34074 * var-tracking.c (local_get_addr_clear_given_value): Handle
34075 already cleared slot.
34076 (val_reset): Handle not allocated local_get_addr_cache.
34077 (vt_find_locations): Use post-order on the inverted CFG.
34079 2014-01-28 Alan Modra <amodra@gmail.com>
34081 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
34082 * configure.ac <recursive call for build != host>: Define
34083 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
34084 and LD_FOR_BUILD too.
34085 * configure: Regenerate.
34087 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
34089 * config/i386/i386.c (get_builtin_code_for_version): Separate
34090 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
34091 Broadwell from Haswell.
34093 2014-01-27 Steve Ellcey <sellcey@mips.com>
34095 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
34096 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
34097 * config/mips/mips.c (mips_option_override): Change setting
34099 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
34100 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
34101 Change from Mask to Var.
34103 2014-01-27 Jeff Law <law@redhat.com>
34105 * ipa-inline.c (inline_small_functions): Fix typo.
34107 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
34109 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
34110 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
34111 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
34112 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
34113 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
34114 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
34115 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
34116 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
34117 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
34118 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
34119 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
34120 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
34121 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
34122 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
34123 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
34124 (_mm512_storeu_epi64): Ditto.
34125 (_mm512_cmpge_epi32_mask): Ditto.
34126 (_mm512_cmpge_epu32_mask): Ditto.
34127 (_mm512_cmpge_epi64_mask): Ditto.
34128 (_mm512_cmpge_epu64_mask): Ditto.
34129 (_mm512_cmple_epi32_mask): Ditto.
34130 (_mm512_cmple_epu32_mask): Ditto.
34131 (_mm512_cmple_epi64_mask): Ditto.
34132 (_mm512_cmple_epu64_mask): Ditto.
34133 (_mm512_cmplt_epi32_mask): Ditto.
34134 (_mm512_cmplt_epu32_mask): Ditto.
34135 (_mm512_cmplt_epi64_mask): Ditto.
34136 (_mm512_cmplt_epu64_mask): Ditto.
34137 (_mm512_cmpneq_epi32_mask): Ditto.
34138 (_mm512_cmpneq_epu32_mask): Ditto.
34139 (_mm512_cmpneq_epi64_mask): Ditto.
34140 (_mm512_cmpneq_epu64_mask): Ditto.
34141 (_mm512_expand_pd): Ditto.
34142 (_mm512_expand_ps): Ditto.
34143 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
34144 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
34145 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
34146 * config/i386/i386.c (ix86_builtins): Add
34147 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
34148 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
34149 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
34150 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
34151 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
34152 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
34153 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
34154 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
34155 IX86_BUILTIN_PMOVUSQW512_MEM.
34156 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
34157 __builtin_ia32_pmovsqd512mem_mask,
34158 __builtin_ia32_pmovqd512mem_mask,
34159 __builtin_ia32_pmovusqw512mem_mask,
34160 __builtin_ia32_pmovsqw512mem_mask,
34161 __builtin_ia32_pmovqw512mem_mask,
34162 __builtin_ia32_pmovusdw512mem_mask,
34163 __builtin_ia32_pmovsdw512mem_mask,
34164 __builtin_ia32_pmovdw512mem_mask,
34165 __builtin_ia32_pmovqb512mem_mask,
34166 __builtin_ia32_pmovusqb512mem_mask,
34167 __builtin_ia32_pmovsqb512mem_mask,
34168 __builtin_ia32_pmovusdb512mem_mask,
34169 __builtin_ia32_pmovsdb512mem_mask,
34170 __builtin_ia32_pmovdb512mem_mask.
34171 (bdesc_args): Add __builtin_ia32_expanddf512,
34172 __builtin_ia32_expandsf512.
34173 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
34174 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
34175 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
34176 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
34177 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
34178 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
34179 (avx512f_<code>v8div16qi2_mask_store): This.
34180 (avx512f_expand<mode>): New.
34182 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
34184 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
34186 (_mm512_mask_prefetch_i64gather_pd): Ditto.
34187 (_mm512_prefetch_i32scatter_pd): Ditto.
34188 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
34189 (_mm512_prefetch_i64scatter_pd): Ditto.
34190 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
34191 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
34192 (_mm512_mask_prefetch_i64gather_ps): Ditto.
34193 (_mm512_prefetch_i32scatter_ps): Ditto.
34194 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
34195 (_mm512_prefetch_i64scatter_ps): Ditto.
34196 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
34197 * config/i386/i386-builtin-types.def: Define
34198 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
34199 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
34200 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
34201 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
34202 IX86_BUILTIN_SCATTERPFQPD.
34203 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
34204 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
34205 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
34206 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
34207 __builtin_ia32_scatterpfqps.
34208 (ix86_expand_builtin): Expand new built-ins.
34209 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
34210 fix memory access data type.
34211 (*avx512pf_gatherpf<mode>_mask): Ditto.
34212 (*avx512pf_gatherpf<mode>): Ditto.
34213 (avx512pf_scatterpf<mode>): Ditto.
34214 (*avx512pf_scatterpf<mode>_mask): Ditto.
34215 (*avx512pf_scatterpf<mode>): Ditto.
34216 (GATHER_SCATTER_SF_MEM_MODE): New.
34217 (avx512pf_gatherpf<mode>df): Ditto.
34218 (*avx512pf_gatherpf<mode>df_mask): Ditto.
34219 (*avx512pf_scatterpf<mode>df): Ditto.
34221 2014-01-27 Jakub Jelinek <jakub@redhat.com>
34224 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
34225 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
34228 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
34230 * common/config/arm/arm-common.c
34231 (arm_rewrite_mcpu): Handle multiple names.
34233 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
34235 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
34237 * gimple-builder.h (create_gimple_tmp): Delete.
34239 2014-01-27 Christian Bruel <christian.bruel@st.com>
34241 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
34244 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
34246 * config/pa/pa.md (call): Generate indirect long calls to non-local
34247 functions when outputing 32-bit code.
34248 (call_value): Likewise except for special call to buggy powf function.
34250 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
34251 portable runtime and PIC indirect calls.
34252 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
34253 and PIC call sequences. Use ldo instead of blr to set return register
34254 in PIC call sequence.
34256 2014-01-25 Walter Lee <walt@tilera.com>
34258 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
34259 avoid clobbering a live register.
34261 2014-01-25 Walter Lee <walt@tilera.com>
34263 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
34264 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
34265 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
34266 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
34268 2014-01-25 Walter Lee <walt@tilera.com>
34270 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
34271 arguments on even registers.
34272 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
34274 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
34275 (BIGGEST_ALIGNMENT): Ditto.
34276 (BIGGEST_FIELD_ALIGNMENT): Ditto.
34278 2014-01-25 Walter Lee <walt@tilera.com>
34280 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
34281 insns before bundling.
34282 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
34284 2014-01-25 Walter Lee <walt@tilera.com>
34286 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
34287 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
34288 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
34290 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
34292 * config/mips/constraints.md (kl): Delete.
34293 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
34294 define expands, using...
34295 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
34296 instructions for MIPS16.
34297 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
34298 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
34300 2014-01-25 Walter Lee <walt@tilera.com>
34302 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
34306 2014-01-25 Walter Lee <walt@tilera.com>
34308 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
34309 (TARGET_EXPAND_TO_RTL_HOOK): Define.
34311 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
34313 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
34316 2014-01-25 Jakub Jelinek <jakub@redhat.com>
34318 * print-rtl.c (in_call_function_usage): New var.
34319 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
34320 EXPR_LIST mode as mode and not as reg note name.
34322 PR middle-end/59561
34323 * cfgloopmanip.c (copy_loop_info): If
34324 loop->warned_aggressive_loop_optimizations, make sure
34325 the flag is set in target loop too.
34327 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
34329 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
34331 * builtins.def: Likewise.
34332 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
34333 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
34334 * ira.c (ira_setup_eliminable_regset): Likewise.
34335 * omp-low.c (gate_expand_omp): Likewise.
34336 (execute_lower_omp): Likewise.
34337 (diagnose_sb_0): Likewise.
34338 (gate_diagnose_omp_blocks): Likewise.
34339 (simd_clone_clauses_extract): Likewise.
34342 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34344 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
34345 correction for little endian...
34346 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
34349 2014-01-24 Jeff Law <law@redhat.com>
34351 PR tree-optimization/59919
34352 * tree-vrp.c (find_assert_locations_1): Do not register asserts
34353 for non-returning calls.
34355 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
34357 * common/config/aarch64/aarch64-common.c
34358 (aarch64_rewrite_mcpu): Handle multiple names.
34359 * config/aarch64/aarch64.h
34360 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
34362 2014-01-24 Dodji Seketeli <dodji@redhat.com>
34364 * input.c (add_file_to_cache_tab): Handle the case where fopen
34367 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
34370 * config/i386/i386.md (pushsf splitter): Get stack adjustment
34371 from push operand if code of push isn't PRE_DEC.
34373 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
34376 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
34377 -mquad-memory-atomic. Update -mquad-memory documentation to say
34378 it is only used for non-atomic loads/stores.
34380 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
34381 -mquad-memory or -mquad-memory-atomic switches.
34383 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
34384 -mquad-memory-atomic to ISA 2.07 support.
34386 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
34387 to separate support of normal quad word memory operations (ldq, stq)
34388 from the atomic quad word memory operations.
34390 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
34391 support to separate non-atomic quad word operations from atomic
34392 quad word operations. Disable non-atomic quad word operations in
34393 little endian mode so that we don't have to swap words after the
34394 load and before the store.
34395 (quad_load_store_p): Add comment about atomic quad word support.
34396 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
34397 options printed with -mdebug=reg.
34399 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
34400 -mquad-memory-atomic as the test for whether we have quad word
34401 atomic instructions.
34402 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
34403 or -mp8-vector are used, allow byte/half-word atomic operations.
34405 * config/rs6000/sync.md (load_lockedti): Insure that the address
34406 is a proper indexed or indirect address for the lqarx instruction.
34407 On little endian systems, swap the hi/lo registers after the lqarx
34409 (load_lockedpti): Use indexed_or_indirect_operand predicate to
34410 insure the address is valid for the lqarx instruction.
34411 (store_conditionalti): Insure that the address is a proper indexed
34412 or indirect address for the stqcrx. instruction. On little endian
34413 systems, swap the hi/lo registers before doing the stqcrx.
34415 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
34416 insure the address is valid for the stqcrx. instruction.
34418 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
34419 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
34420 type of quad memory support is available.
34422 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
34424 PR regression/59915
34425 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
34426 there is a danger of looping.
34428 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
34430 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
34431 force flag_ira_loop_pressure if set via command line.
34433 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
34435 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
34436 (ashr_simd): New builtin handling DI mode.
34437 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
34438 (aarch64_sshr_simddi): New match pattern.
34439 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
34440 (vshrd_n_s64): Likewise.
34441 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
34443 2014-01-23 Nick Clifton <nickc@redhat.com>
34445 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
34446 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
34447 favour of mcu specific scripts.
34448 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
34451 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
34452 Alex Velenko <Alex.Velenko@arm.com>
34454 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
34455 (vaddv_s16): Likewise.
34456 (vaddv_s32): Likewise.
34457 (vaddv_u8): Likewise.
34458 (vaddv_u16): Likewise.
34459 (vaddv_u32): Likewise.
34460 (vaddvq_s8): Likewise.
34461 (vaddvq_s16): Likewise.
34462 (vaddvq_s32): Likewise.
34463 (vaddvq_s64): Likewise.
34464 (vaddvq_u8): Likewise.
34465 (vaddvq_u16): Likewise.
34466 (vaddvq_u32): Likewise.
34467 (vaddvq_u64): Likewise.
34468 (vaddv_f32): Likewise.
34469 (vaddvq_f32): Likewise.
34470 (vaddvq_f64): Likewise.
34471 (vmaxv_f32): Likewise.
34472 (vmaxv_s8): Likewise.
34473 (vmaxv_s16): Likewise.
34474 (vmaxv_s32): Likewise.
34475 (vmaxv_u8): Likewise.
34476 (vmaxv_u16): Likewise.
34477 (vmaxv_u32): Likewise.
34478 (vmaxvq_f32): Likewise.
34479 (vmaxvq_f64): Likewise.
34480 (vmaxvq_s8): Likewise.
34481 (vmaxvq_s16): Likewise.
34482 (vmaxvq_s32): Likewise.
34483 (vmaxvq_u8): Likewise.
34484 (vmaxvq_u16): Likewise.
34485 (vmaxvq_u32): Likewise.
34486 (vmaxnmv_f32): Likewise.
34487 (vmaxnmvq_f32): Likewise.
34488 (vmaxnmvq_f64): Likewise.
34489 (vminv_f32): Likewise.
34490 (vminv_s8): Likewise.
34491 (vminv_s16): Likewise.
34492 (vminv_s32): Likewise.
34493 (vminv_u8): Likewise.
34494 (vminv_u16): Likewise.
34495 (vminv_u32): Likewise.
34496 (vminvq_f32): Likewise.
34497 (vminvq_f64): Likewise.
34498 (vminvq_s8): Likewise.
34499 (vminvq_s16): Likewise.
34500 (vminvq_s32): Likewise.
34501 (vminvq_u8): Likewise.
34502 (vminvq_u16): Likewise.
34503 (vminvq_u32): Likewise.
34504 (vminnmv_f32): Likewise.
34505 (vminnmvq_f32): Likewise.
34506 (vminnmvq_f64): Likewise.
34508 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
34510 * config/aarch64/aarch64-simd.md
34511 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
34512 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
34513 (*aarch64_mul3_elt<mode>): Likewise.
34514 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
34515 (*aarch64_mul3_elt_to_64v2df): Likewise.
34516 (*aarch64_mla_elt<mode>): Likewise.
34517 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
34518 (*aarch64_mls_elt<mode>): Likewise.
34519 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
34520 (*aarch64_fma4_elt<mode>): Likewise.
34521 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
34522 (*aarch64_fma4_elt_to_64v2df): Likewise.
34523 (*aarch64_fnma4_elt<mode>): Likewise.
34524 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
34525 (*aarch64_fnma4_elt_to_64v2df): Likewise.
34526 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
34527 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
34528 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
34529 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
34530 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
34531 (aarch64_sqdmull_lane<mode>_internal): Likewise.
34532 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
34534 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
34536 * config/aarch64/aarch64-simd.md
34537 (aarch64_be_checked_get_lane<mode>): New define_expand.
34538 * config/aarch64/aarch64-simd-builtins.def
34539 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
34540 New builtin definition.
34541 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
34542 Use new safe be builtin.
34544 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
34546 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
34548 (aarch64_be_st1<mode>): Likewise.
34549 (aarch_ld1<VALL:mode>): Define_expand modified.
34550 (aarch_st1<VALL:mode>): Likewise.
34551 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
34552 (UNSPEC_ST1): Likewise.
34554 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
34556 * config/microblaze/microblaze.md: Add trap insn and attribute
34558 2014-01-23 Dodji Seketeli <dodji@redhat.com>
34560 PR preprocessor/58580
34561 * input.h (location_get_source_line): Take an additional line_size
34563 (void diagnostics_file_cache_fini): Declare new function.
34564 * input.c (struct fcache): New type.
34565 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
34566 New static constants.
34567 (diagnostic_file_cache_init, total_lines_num)
34568 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
34569 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
34570 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
34571 (get_next_line, read_next_line, goto_next_line, read_line_num):
34572 New static function definitions.
34573 (diagnostic_file_cache_fini): New function.
34574 (location_get_source_line): Take an additional output line_len
34575 parameter. Re-write using lookup_or_add_file_to_cache_tab and
34577 * diagnostic.c (diagnostic_finish): Call
34578 diagnostic_file_cache_fini.
34579 (adjust_line): Take an additional input parameter for the length
34580 of the line, rather than calculating it with strlen.
34581 (diagnostic_show_locus): Adjust the use of
34582 location_get_source_line and adjust_line with respect to their new
34583 signature. While displaying a line now, do not stop at the first
34584 null byte. Rather, display the zero byte as a space and keep
34585 going until we reach the size of the line.
34586 * Makefile.in: Add vec.o to OBJS-libcommon
34588 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
34589 Ilya Tocar <ilya.tocar@intel.com>
34591 * config/i386/avx512fintrin.h (_mm512_kmov): New.
34592 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
34593 (__builtin_ia32_kmov16): Ditto.
34594 * config/i386/i386.md (UNSPEC_KMOV): New.
34597 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
34599 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
34600 (_mm512_storeu_si512): Ditto.
34602 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
34605 * rtl.h (get_referenced_operands): Declare.
34606 * recog.c (get_referenced_operands): New function.
34607 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
34608 operands have been referenced when recording LO_SUM references.
34610 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
34612 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
34614 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
34616 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
34617 Enable for generic and recent AMD targets.
34619 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
34621 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
34622 ARG_SIZE note when adjustment was eliminated.
34624 2014-01-22 Jeff Law <law@redhat.com>
34626 PR tree-optimization/59597
34627 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
34628 in file. Accept new argument REGISTERING and use it to modify
34629 dump output appropriately.
34630 (register_jump_thread): Corresponding changes.
34631 (mark_threaded_blocks): Reinstate code to cancel unprofitable
34632 thread paths involving joiner blocks. Add code to dump cancelled
34633 jump threading paths.
34635 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
34637 PR rtl-optimization/59477
34638 * lra-constraints.c (inherit_in_ebb): Process call for living hard
34639 regs. Update reloads_num and potential_reload_hard_regs for all insns.
34641 2014-01-22 Tom Tromey <tromey@redhat.com>
34643 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
34645 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
34647 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
34649 PR rtl-optimization/59896
34650 * lra-constraints.c (process_alt_operands): Check unused note for
34651 matched operands of insn with no output reloads.
34653 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
34655 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
34656 (mips_move_from_gpr_cost): Likewise.
34658 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
34660 PR rtl-optimization/59858
34661 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
34662 ira_class_hard_regs_num.
34663 (process_alt_operands): Increase reject for dying matched operand.
34665 2014-01-21 Jakub Jelinek <jakub@redhat.com>
34668 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
34669 smaller than size, perform several stores or loads and stores
34670 at dst + count - size to store or copy all of size bytes, rather
34671 than just last modesize bytes.
34673 2014-01-20 DJ Delorie <dj@redhat.com>
34675 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
34676 that CLOBBERs are REGs before propogating their values.
34678 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
34680 PR middle-end/59789
34681 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
34682 (cgraph_inline_failed_type): New function.
34683 * cgraph.h (DEFCIFCODE): Add type.
34684 (cgraph_inline_failed_type_t): New enum.
34685 (cgraph_inline_failed_type): New prototype.
34686 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
34687 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
34688 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
34689 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
34690 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
34691 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
34692 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
34693 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
34694 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
34695 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
34696 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
34697 OPTIMIZATION_MISMATCH.
34698 * tree-inline.c (expand_call_inline): Emit errors during
34699 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
34701 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
34704 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
34705 mode attribute in insn output.
34707 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
34709 * output.h (output_constant): Delete.
34710 * varasm.c (output_constant): Make private.
34712 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
34714 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
34716 2014-01-20 Jakub Jelinek <jakub@redhat.com>
34718 PR middle-end/59860
34719 * tree.h (fold_builtin_strcat): New prototype.
34720 * builtins.c (fold_builtin_strcat): No longer static. Add len
34721 argument, if non-NULL, don't call c_strlen. Optimize
34722 directly into __builtin_memcpy instead of __builtin_strcpy.
34723 (fold_builtin_2): Adjust fold_builtin_strcat caller.
34724 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
34726 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
34728 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
34729 for SImode_address_operand operands, having only a REG argument.
34731 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
34733 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
34734 loader name using mbig-endian.
34735 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
34737 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
34739 * doc/invoke.texi (-march): Clarify documentation for AArch64.
34740 (-mtune): Likewise.
34743 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
34745 * config/aarch64/aarch64-protos.h
34746 (aarch64_cannot_change_mode_class_ptr): Declare.
34747 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
34748 aarch64_cannot_change_mode_class_ptr): New.
34749 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
34750 backend hook aarch64_cannot_change_mode_class.
34752 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
34754 * common/config/aarch64/aarch64-common.c
34755 (aarch64_handle_option): Don't handle any option order logic here.
34756 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
34757 selected_cpu, warn on architecture version mismatch.
34758 (aarch64_override_options): Fix parsing order for option strings.
34760 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
34761 Iain Sandoe <iain@codesourcery.com>
34764 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
34765 warning. Amend comment to reflect current functionality.
34767 2014-01-20 Richard Biener <rguenther@suse.de>
34769 PR middle-end/59860
34770 * builtins.c (fold_builtin_strcat): Remove case better handled
34771 by tree-ssa-strlen.c.
34773 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
34775 * config/aarch64/aarch64.opt
34776 (mcpu, march, mtune): Make case-insensitive.
34778 2014-01-20 Jakub Jelinek <jakub@redhat.com>
34781 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
34782 if operands[1] is a REG or ZERO_EXTEND of a REG.
34784 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
34786 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
34788 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
34790 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
34791 long non-pic millicode calls.
34793 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
34795 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
34797 2014-01-19 Kito Cheng <kito@0xlab.org>
34799 * builtins.c (expand_movstr): Check movstr expand done or fail.
34801 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
34802 H.J. Lu <hongjiu.lu@intel.com>
34805 * config/i386/i386.md (*lea<mode>): Zero-extend return register
34806 to DImode for zero-extended addresses.
34808 2014-01-19 Jakub Jelinek <jakub@redhat.com>
34810 PR rtl-optimization/57763
34811 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
34812 on the new indirect jump_insn and increment LABEL_NUSES (label).
34814 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
34818 * config.gcc (x86_archs): New variable.
34819 (x86_64_archs): Likewise.
34820 (x86_cpus): Likewise.
34821 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
34822 --with-arch/--with-cpu= options.
34823 Support --with-arch=/--with-cpu={nehalem,westmere,
34824 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
34826 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
34828 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
34829 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
34831 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
34833 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
34835 2014-01-18 Jakub Jelinek <jakub@redhat.com>
34838 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
34839 clear cpp_get_options (parse_in)->warn_unused_macros for
34840 ix86_target_macros_internal with cpp_define.
34842 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
34844 * jump.c (delete_related_insns): Keep (use (insn))s.
34845 * reorg.c (redundant_insn): Check for barriers too.
34847 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
34849 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
34851 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
34853 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
34854 call to $$dyncall when TARGET_LONG_CALLS is true.
34856 2014-01-17 Jeff Law <law@redhat.com>
34858 * ree.c (combine_set_extension): Temporarily disable test for
34859 changing number of hard registers.
34861 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
34863 PR middle-end/58125
34864 * ipa-inline-analysis.c (inline_free_summary):
34865 Do not free summary of aliases.
34867 2014-01-17 Jakub Jelinek <jakub@redhat.com>
34869 PR middle-end/59706
34870 * gimplify.c (gimplify_expr): Use create_tmp_var
34871 instead of create_tmp_var_raw. If cond doesn't have
34872 integral type, don't add the IFN_ANNOTATE builtin at all.
34874 2014-01-17 Martin Jambor <mjambor@suse.cz>
34877 * ipa-cp.c (prev_edge_clone): New variable.
34878 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
34879 Also resize prev_edge_clone vector.
34880 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
34881 (ipcp_edge_removal_hook): New function.
34882 (ipcp_driver): Register ipcp_edge_removal_hook.
34884 2014-01-17 Andrew Pinski <apinski@cavium.com>
34885 Steve Ellcey <sellcey@mips.com>
34888 * config/mips/mips.c (mips_print_operand): Check operand mode instead
34891 2014-01-17 Jeff Law <law@redhat.com>
34893 PR middle-end/57904
34894 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
34895 so that pass_ccp runs first.
34897 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
34899 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
34900 (ix86_adjust_cost): Use !TARGET_XXX.
34901 (do_reorder_for_imul): Likewise.
34902 (swap_top_of_ready_list): Likewise.
34903 (ix86_sched_reorder): Likewise.
34905 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
34907 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
34908 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
34909 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
34910 (intel_memset): New. Duplicate slm_memset.
34911 (intel_cost): New. Duplicate slm_cost.
34912 (m_INTEL): New macro.
34913 (processor_target_table): Add "intel".
34914 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
34915 with PROCESSOR_INTEL for "intel".
34916 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
34917 PROCESSOR_SILVERMONT.
34918 (ix86_issue_rate): Likewise.
34919 (ix86_adjust_cost): Likewise.
34920 (ia32_multipass_dfa_lookahead): Likewise.
34921 (swap_top_of_ready_list): Likewise.
34922 (ix86_sched_reorder): Likewise.
34923 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
34924 instead of TARGET_OPT_AGU.
34925 * config/i386/i386.h (TARGET_INTEL): New.
34926 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
34927 (processor_type): Add PROCESSOR_INTEL.
34928 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
34929 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
34931 2014-01-17 Marek Polacek <polacek@redhat.com>
34934 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
34937 2014-01-17 Richard Biener <rguenther@suse.de>
34939 PR tree-optimization/46590
34940 * opts.c (default_options_table): Add entries for
34941 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
34942 all enabled at -O1 but not for -Og.
34943 * common.opt (fbranch-count-reg): Remove Init(1).
34944 (fmove-loop-invariants): Likewise.
34945 (ftree-pta): Likewise.
34947 2014-01-17 Jakub Jelinek <jakub@redhat.com>
34949 * config/i386/i386.c (ix86_data_alignment): For compatibility with
34950 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
34951 decls to at least the GCC 4.8 used alignments.
34954 * tree-nested.c (convert_nonlocal_reference_stmt,
34955 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
34956 of GIMPLE_BIND stmts, adjust associated decls.
34958 2014-01-17 Richard Biener <rguenther@suse.de>
34960 PR tree-optimization/46590
34961 * vec.h (vec<>::bseach): New member function implementing
34962 binary search according to C89 bsearch.
34963 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
34964 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
34965 bitmap pointer again. Make accesses_in_loop a flat array.
34966 (mem_ref_obstack): New global.
34967 (outermost_indep_loop): Adjust for mem_ref->stored changes.
34968 (mark_ref_stored): Likewise.
34969 (ref_indep_loop_p_2): Likewise.
34970 (set_ref_stored_in_loop): New helper function.
34971 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
34972 (memref_free): Adjust.
34973 (record_mem_ref_loc): Simplify.
34974 (gather_mem_refs_stmt): Adjust.
34975 (sort_locs_in_loop_postorder_cmp): New function.
34976 (analyze_memory_references): Sort accesses_in_loop after
34977 loop postorder number.
34978 (find_ref_loc_in_loop_cmp): New function.
34979 (for_all_locs_in_loop): Find relevant cluster of locs in
34980 accesses_in_loop and iterate without recursion.
34981 (execute_sm): Avoid uninit warning.
34982 (struct ref_always_accessed): Simplify.
34983 (ref_always_accessed::operator ()): Likewise.
34984 (ref_always_accessed_p): Likewise.
34985 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
34986 loop postorder numbers here.
34987 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
34990 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
34993 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
34994 on decls for which assemble_alias has been called.
34996 2014-01-17 Nick Clifton <nickc@redhat.com>
34998 * config/msp430/msp430.opt: (mcpu): New option.
34999 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
35000 (msp430_option_override): Parse target_cpu. If the MCU name
35001 matches a generic string, clear target_mcu.
35002 (msp430_attr): Allow numeric interrupt values up to 63.
35003 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
35004 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
35006 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
35008 * config/msp430/msp430.md (popm): Use %J rather than %I.
35009 (addsi3): Use msp430_nonimmediate_operand for operand 2.
35010 (addhi_cy_i): Use immediate_operand for operand 2.
35011 * doc/invoke.texi: Document -mcpu option.
35013 2014-01-17 Richard Biener <rguenther@suse.de>
35015 PR rtl-optimization/38518
35016 * df.h (df_analyze_loop): Declare.
35017 * df-core.c: Include cfgloop.h.
35018 (df_analyze_1): Split out main part of df_analyze.
35019 (df_analyze): Adjust.
35020 (loop_inverted_post_order_compute): New function.
35021 (loop_post_order_compute): Likewise.
35022 (df_analyze_loop): New function avoiding whole-function
35023 postorder computes.
35024 * loop-invariant.c (find_defs): Use df_analyze_loop.
35025 (find_invariants): Adjust.
35026 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
35028 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
35030 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
35031 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
35033 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
35035 * ipa-ref.c (ipa_remove_stmt_references): Fix references
35036 traversal when removing references.
35038 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
35041 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
35043 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
35045 PR middle-end/56791
35046 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
35047 pushing a reload for an autoinc when we had previously reloaded an
35048 inner part of the address.
35050 2014-01-16 Jakub Jelinek <jakub@redhat.com>
35052 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
35054 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
35055 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
35056 when not giving up or versioning for alias only because of
35058 (vect_analyze_data_ref_dependences): Set to true.
35059 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
35061 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
35062 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
35065 PR middle-end/58344
35066 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
35069 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
35070 operand 0 predicate for gathers, use a new pseudo as subtarget.
35072 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
35074 PR middle-end/59609
35075 * lra-constraints.c (process_alt_operands): Add printing debug info.
35076 Check absence of input/output reloads for matched operands too.
35078 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
35080 PR rtl-optimization/59835
35081 * ira.c (ira_init_register_move_cost): Increase cost for
35084 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
35086 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
35088 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
35091 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
35092 non-register objects. Use gen_(high/low)part more consistently.
35095 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
35098 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
35099 endian support, remove tests for WORDS_BIG_ENDIAN.
35100 (p8_mfvsrd_3_<mode>): Likewise.
35101 (reload_gpr_from_vsx<mode>): Likewise.
35102 (reload_gpr_from_vsxsf): Likewise.
35103 (p8_mfvsrd_4_disf): Likewise.
35105 2014-01-16 Richard Biener <rguenther@suse.de>
35107 PR rtl-optimization/46590
35108 * lcm.c (compute_antinout_edge): Use postorder iteration.
35109 (compute_laterin): Use inverted postorder iteration.
35111 2014-01-16 Nick Clifton <nickc@redhat.com>
35113 PR middle-end/28865
35114 * varasm.c (output_constant): Return the number of bytes actually
35116 (output_constructor_array_range): Update the field size with the
35117 number of bytes emitted by output_constant.
35118 (output_constructor_regular_field): Likewise. Also do not
35119 complain if the total number of bytes emitted is now greater
35120 than the expected fieldpos.
35121 * output.h (output_constant): Update prototype and descriptive comment.
35123 2014-01-16 Marek Polacek <polacek@redhat.com>
35125 PR middle-end/59827
35126 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
35127 it is error_mark_node.
35129 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
35131 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
35132 VALID_AVX256_REG_OR_OI_MODE.
35134 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
35136 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
35137 current procedure should be profiled.
35139 2014-01-15 Andrew Pinski <apinski@cavium.com>
35141 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
35142 of moving from/to the STACK_REG register class.
35144 2014-01-15 Richard Henderson <rth@redhat.com>
35147 * reginfo.c (global_regs_decl): Globalize.
35148 * rtl.h (global_regs_decl): Declare.
35149 * ira.c (do_reload): Diagnose frame_pointer_needed and it
35150 reserved via global_regs.
35152 2014-01-15 Teresa Johnson <tejohnson@google.com>
35154 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
35156 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
35158 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
35159 and vmulosh rather than call gen_vec_widen_smult_*.
35160 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
35161 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
35162 (vec_widen_smult_even_v16qi): Likewise.
35163 (vec_widen_umult_even_v8hi): Likewise.
35164 (vec_widen_smult_even_v8hi): Likewise.
35165 (vec_widen_umult_odd_v16qi): Likewise.
35166 (vec_widen_smult_odd_v16qi): Likewise.
35167 (vec_widen_umult_odd_v8hi): Likewise.
35168 (vec_widen_smult_odd_v8hi): Likewise.
35169 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
35170 vmuloub rather than call gen_vec_widen_umult_*.
35171 (vec_widen_umult_lo_v16qi): Likewise.
35172 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
35173 vmulosb rather than call gen_vec_widen_smult_*.
35174 (vec_widen_smult_lo_v16qi): Likewise.
35175 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
35176 rather than call gen_vec_widen_umult_*.
35177 (vec_widen_umult_lo_v8hi): Likewise.
35178 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
35179 rather than call gen_vec_widen_smult_*.
35180 (vec_widen_smult_lo_v8hi): Likewise.
35182 2014-01-15 Jeff Law <law@redhat.com>
35184 PR tree-optimization/59747
35185 * ree.c (find_and_remove_re): Properly handle case where a second
35186 eliminated extension requires widening a copy created for elimination
35187 of a prior extension.
35188 (combine_set_extension): Ensure that the number of hard regs needed
35189 for a destination register does not change when we widen it.
35191 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
35193 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
35194 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
35195 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
35196 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
35197 (avr-*-rtems*): Likewise.
35198 (bfin*-rtems*): Likewise.
35199 (moxie-*-rtems*): Likewise.
35200 (h8300-*-rtems*): Likewise.
35201 (i[34567]86-*-rtems*): Likewise.
35202 (lm32-*-rtems*): Likewise.
35203 (m32r-*-rtems*): Likewise.
35204 (m68k-*-rtems*): Likewise.
35205 (microblaze*-*-rtems*): Likewise.
35206 (mips*-*-rtems*): Likewise.
35207 (powerpc-*-rtems*): Likewise.
35208 (sh-*-rtems*): Likewise.
35209 (sparc-*-rtems*): Likewise.
35210 (sparc64-*-rtems*): Likewise.
35211 (v850-*-rtems*): Likewise.
35212 (m32c-*-rtems*): Likewise.
35214 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
35216 PR rtl-optimization/59511
35217 * ira.c (ira_init_register_move_cost): Use memory costs for some
35218 cases of register move cost calculations.
35219 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
35220 instead of BB frequency.
35221 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
35222 * lra-assigns.c (find_hard_regno_for): Ditto.
35224 2014-01-15 Richard Biener <rguenther@suse.de>
35226 PR tree-optimization/59822
35227 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
35228 (vectorizable_load): Use it to hoist defs of uses of invariant
35229 loads out of the loop.
35231 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
35232 Kugan Vivekanandarajah <kuganv@linaro.org>
35235 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
35238 2014-01-15 Richard Biener <rguenther@suse.de>
35240 PR rtl-optimization/59802
35241 * lcm.c (compute_available): Use inverted postorder to seed
35242 the initial worklist.
35244 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35247 * config/s390/s390.c (s390_preferred_reload_class): Don't return
35248 ADDR_REGS for invalid symrefs in non-PIC code.
35250 2014-01-15 Jakub Jelinek <jakub@redhat.com>
35253 * builtins.c (determine_block_size): Initialize *probable_max_size
35254 even if len_rtx is CONST_INT.
35256 2014-01-14 Andrew Pinski <apinski@cavium.com>
35258 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
35259 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
35260 (cortexa53_tunings): Likewise.
35261 (aarch64_sched_issue_rate): New function.
35262 (TARGET_SCHED_ISSUE_RATE): Define.
35264 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
35266 * ira-costs.c (find_costs_and_classes): Add missed
35267 ira_init_register_move_cost_if_necessary.
35269 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
35272 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
35274 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
35277 * config/i386/i386.c (type_natural_mode): Add a bool parameter
35278 to indicate if type is used for function return value. Warn ABI
35279 change if the vector mode isn't available for function return value.
35280 (ix86_function_arg_advance): Pass false to type_natural_mode.
35281 (ix86_function_arg): Likewise.
35282 (ix86_gimplify_va_arg): Likewise.
35283 (function_arg_32): Don't warn ABI change.
35284 (ix86_function_value): Pass true to type_natural_mode.
35285 (ix86_return_in_memory): Likewise.
35286 (ix86_struct_value_rtx): Removed.
35287 (TARGET_STRUCT_VALUE_RTX): Likewise.
35289 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
35291 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
35292 converting a conditional jump into a conditional return.
35294 2014-01-14 Richard Biener <rguenther@suse.de>
35296 PR tree-optimization/58921
35297 PR tree-optimization/59006
35298 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
35299 hoisting invariant stmts.
35300 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
35301 invariant loads on the preheader edge if possible.
35303 2014-01-14 Joey Ye <joey.ye@arm.com>
35305 * doc/plugin.texi (Building GCC plugins): Update to C++.
35307 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
35309 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
35310 (_mm_rcp28_round_ss): Ditto.
35311 (_mm_rsqrt28_round_sd): Ditto.
35312 (_mm_rsqrt28_round_ss): Ditto.
35313 (_mm_rcp28_sd): Ditto.
35314 (_mm_rcp28_ss): Ditto.
35315 (_mm_rsqrt28_sd): Ditto.
35316 (_mm_rsqrt28_ss): Ditto.
35317 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
35318 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
35319 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
35320 (IX86_BUILTIN_RCP28SD): Ditto.
35321 (IX86_BUILTIN_RCP28SS): Ditto.
35322 (IX86_BUILTIN_RSQRT28SD): Ditto.
35323 (IX86_BUILTIN_RSQRT28SS): Ditto.
35324 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
35325 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
35326 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
35327 (ix86_expand_special_args_builtin): Expand new FTYPE.
35328 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
35329 (srcp14<mode>): Make insn unary.
35330 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
35331 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
35332 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
35333 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
35334 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
35335 Fix rounding: make it SAE only.
35336 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
35338 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
35340 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
35341 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
35342 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
35343 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
35344 (round_saeonly_mask_scalar_operand4): Ditto.
35345 (round_saeonly_mask_scalar_op3): Ditto.
35346 (round_saeonly_mask_scalar_op4): Ditto.
35348 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35350 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
35351 Implement -maltivec=be for vec_insert and vec_extract.
35353 2014-01-10 DJ Delorie <dj@redhat.com>
35355 * config/msp430/msp430.md (call_internal): Don't allow memory
35356 references with SP as the base register.
35357 (call_value_internal): Likewise.
35358 * config/msp430/constraints.md (Yc): New. For memory references
35359 that don't use SP as a base register.
35361 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
35362 "an integer without a # prefix"
35363 * config/msp430/msp430.md (epilogue_helper): Use it.
35365 2014-01-13 Jakub Jelinek <jakub@redhat.com>
35368 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
35369 AVX512F gather builtins.
35370 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
35371 on gather decls with INTEGER_TYPE masktype.
35372 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
35373 directly into the builtin rather than hoisting it before loop.
35375 PR tree-optimization/59387
35376 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
35377 (scev_const_prop): If folded_casts and type has undefined overflow,
35378 use force_gimple_operand instead of force_gimple_operand_gsi and
35379 for each added stmt if it is assign with
35380 arith_code_with_undefined_signed_overflow, call
35381 rewrite_to_defined_overflow.
35382 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
35383 gimple-fold.h instead.
35384 (arith_code_with_undefined_signed_overflow,
35385 rewrite_to_defined_overflow): Moved to ...
35386 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
35387 rewrite_to_defined_overflow): ... here. No longer static.
35388 Include gimplify-me.h.
35389 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
35390 rewrite_to_defined_overflow): New prototypes.
35392 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35394 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
35396 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
35398 * builtins.c (get_object_alignment_2): Minor tweak.
35399 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
35401 2014-01-13 Christian Bruel <christian.bruel@st.com>
35403 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
35404 optimized non constant lengths.
35406 2014-01-13 Jakub Jelinek <jakub@redhat.com>
35409 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
35410 load as __atomic_load_N if possible.
35412 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
35414 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
35416 (rs6000_expand_builtin): Adjust call.
35418 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
35421 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
35422 * config/rs6000/rs6000.c: Include target-globals.h.
35423 (rs6000_set_current_function): Instead of doing target_reinit
35424 unconditionally, use save_target_globals_default_opts and
35425 restore_target_globals.
35427 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
35429 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
35430 (rs6000_expand_builtin): Handle mffs and mtfsf.
35431 (rs6000_init_builtins): Define mffs and mtfsf.
35432 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
35433 (rs6000_mffs): New pattern.
35434 (rs6000_mtfsf): New pattern.
35436 2014-01-11 Bin Cheng <bin.cheng@arm.com>
35438 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
35439 Start narrowing with START. Apply candidate-use pair
35440 and check overall cost in narrowing.
35441 (iv_ca_prune): Pass new argument.
35443 2014-01-10 Jeff Law <law@redhat.com>
35445 PR middle-end/59743
35446 * ree.c (combine_reaching_defs): Ensure the defining statement
35447 occurs before the extension when optimizing extensions with
35448 different source and destination hard registers.
35450 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
35453 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
35454 vtables into the type inheritance graph.
35456 2014-01-10 Jakub Jelinek <jakub@redhat.com>
35458 PR rtl-optimization/59754
35459 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
35460 modes in the REGNO != REGNO case.
35462 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35464 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
35466 2014-01-10 Jakub Jelinek <jakub@redhat.com>
35468 PR tree-optimization/59745
35469 * tree-predcom.c (tree_predictive_commoning_loop): Call
35470 free_affine_expand_cache if giving up because components is NULL.
35472 * target-globals.c (save_target_globals): Allocate < 4KB structs using
35473 GC in payload of target_globals struct instead of allocating them on
35474 the heap and the larger structs separately using GC.
35475 * target-globals.h (struct target_globals): Make regs, hard_regs,
35476 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
35477 of GTY((skip)) and change type to void *.
35478 (reset_target_globals): Cast loads from those fields to corresponding
35481 2014-01-10 Steve Ellcey <sellcey@mips.com>
35484 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
35485 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
35486 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
35488 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
35491 * aarch64-modes.def (CC_Zmode): New flags mode.
35492 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
35493 represents an equality.
35494 (aarch64_get_condition_code): Handle CC_Zmode.
35495 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
35497 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35499 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
35500 extraction in good case.
35502 2014-01-10 Richard Biener <rguenther@suse.de>
35504 PR tree-optimization/59374
35505 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
35506 checking after SLP discovery. Mark stmts not participating
35507 in any SLP instance properly.
35509 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35511 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
35512 when handling a SET rtx.
35514 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35516 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
35517 (cortex-a57): Likewise.
35518 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
35520 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35522 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
35523 non-iwmmxt builtins.
35525 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
35529 * ipa-devirt.c record_target_from_binfo): Take as argument
35530 stack of binfos and lookup matching one for virtual inheritance.
35531 (possible_polymorphic_call_targets_1): Update.
35533 2014-01-10 Huacai Chen <chenhc@lemote.com>
35535 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
35536 kernel strings for Loongson-2E/2F/3A.
35538 2014-01-10 Jakub Jelinek <jakub@redhat.com>
35540 PR middle-end/59670
35541 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
35542 is_gimple_call before calling gimple_call_internal_p.
35544 2014-01-09 Steve Ellcey <sellcey@mips.com>
35546 * Makefile.in (TREE_FLOW_H): Remove.
35547 (TREE_SSA_H): Add file names from tree-flow.h.
35548 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
35549 * tree.h: Remove tree-flow.h reference.
35550 * hash-table.h: Remove tree-flow.h reference.
35551 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
35552 reference with tree-ssa-loop.h.
35554 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35556 * doc/invoke.texi: Add -maltivec={be,le} options, and document
35557 default element-order behavior for -maltivec.
35558 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
35559 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
35560 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
35561 when targeting big endian, at least for now.
35562 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
35564 2014-01-09 Jakub Jelinek <jakub@redhat.com>
35566 PR middle-end/47735
35567 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
35568 var satisfies use_register_for_decl, just take into account type
35569 alignment, rather than decl alignment.
35571 PR tree-optimization/59622
35572 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
35573 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
35574 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
35575 Don't devirtualize for inplace at all. For targets.length () == 1,
35576 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
35578 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
35580 * config/i386/i386.md (cpu): Remove the unused btver1.
35582 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
35584 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
35586 2014-01-09 Jakub Jelinek <jakub@redhat.com>
35589 * tree-core.h (struct target_globals): New forward declaration.
35590 (struct tree_target_option): Add globals field.
35591 * tree.h (TREE_TARGET_GLOBALS): Define.
35592 (prepare_target_option_nodes_for_pch): New prototype.
35593 * target-globals.h (struct target_globals): Define even if
35594 !SWITCHABLE_TARGET.
35595 * tree.c (prepare_target_option_node_for_pch,
35596 prepare_target_option_nodes_for_pch): New functions.
35597 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
35598 * config/i386/i386.c: Include target-globals.h.
35599 (ix86_set_current_function): Instead of doing target_reinit
35600 unconditionally, use save_target_globals_default_opts and
35601 restore_target_globals.
35603 2014-01-09 Richard Biener <rguenther@suse.de>
35605 PR tree-optimization/59715
35606 * tree-cfg.h (split_critical_edges): Declare.
35607 * tree-cfg.c (split_critical_edges): Export.
35608 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
35610 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
35612 * cfgexpand.c (expand_stack_vars): Optionally disable
35613 asan stack protection.
35614 (expand_used_vars): Likewise.
35615 (partition_stack_vars): Likewise.
35616 * asan.c (asan_emit_stack_protection): Optionally disable
35617 after return stack usage.
35618 (instrument_derefs): Optionally disable memory access instrumentation.
35619 (instrument_builtin_call): Likewise.
35620 (instrument_strlen_call): Likewise.
35621 (asan_protect_global): Optionally disable global variables protection.
35622 * doc/invoke.texi: Added doc for new options.
35623 * params.def: Added new options.
35624 * params.h: Likewise.
35626 2014-01-09 Jakub Jelinek <jakub@redhat.com>
35628 PR rtl-optimization/59724
35629 * ifcvt.c (cond_exec_process_if_block): Don't call
35630 flow_find_head_matching_sequence with 0 longest_match.
35631 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
35632 non-active insns if !stop_after.
35633 (try_head_merge_bb): Revert 2014-01-07 changes.
35635 2014-01-08 Jeff Law <law@redhat.com>
35637 * ree.c (get_sub_rtx): New function, extracted from...
35638 (merge_def_and_ext): Here.
35639 (combine_reaching_defs): Use get_sub_rtx.
35641 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
35643 * cgraph.h (varpool_variable_node): Do not choke on null node.
35645 2014-01-08 Catherine Moore <clm@codesourcery.com>
35647 * config/mips/mips.md (simple_return): Attempt to use JRC
35649 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
35651 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
35653 PR rtl-optimization/59137
35654 * reorg.c (steal_delay_list_from_target): Call update_block for
35656 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
35658 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35660 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
35661 two duplicate entries.
35663 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
35666 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
35668 * config/mips/mips.c (mips_truncated_op_cost): New function.
35669 (mips_rtx_costs): Adjust test for BADDU.
35670 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
35672 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
35674 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
35675 (*baddu_si): ...this new pattern.
35677 2014-01-08 Jakub Jelinek <jakub@redhat.com>
35680 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
35682 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
35684 PR middle-end/57748
35685 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
35687 (expand_expr, expand_normal): Adjust.
35688 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
35689 inner_reference_p. Use inner_reference_p to expand inner references.
35690 (store_expr): Adjust.
35691 * cfgexpand.c (expand_call_stmt): Adjust.
35693 2014-01-08 Rong Xu <xur@google.com>
35695 * gcov-io.c (gcov_var): Move from gcov-io.h.
35696 (gcov_position): Ditto.
35697 (gcov_is_error): Ditto.
35698 (gcov_rewrite): Ditto.
35699 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
35700 only part to libgcc/libgcov.h.
35702 2014-01-08 Marek Polacek <polacek@redhat.com>
35704 PR middle-end/59669
35705 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
35707 2014-01-08 Marek Polacek <polacek@redhat.com>
35710 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
35712 2014-01-08 Jakub Jelinek <jakub@redhat.com>
35714 PR rtl-optimization/59649
35715 * stor-layout.c (get_mode_bounds): For BImode return
35716 0 and STORE_FLAG_VALUE.
35718 2014-01-08 Richard Biener <rguenther@suse.de>
35720 PR middle-end/59630
35721 * gimple.h (is_gimple_builtin_call): Remove.
35722 (gimple_builtin_call_types_compatible_p): New.
35723 (gimple_call_builtin_p): New overload.
35724 * gimple.c (is_gimple_builtin_call): Remove.
35725 (validate_call): Rename to ...
35726 (gimple_builtin_call_types_compatible_p): ... this and export. Also
35727 check return types.
35728 (validate_type): New static function.
35729 (gimple_call_builtin_p): New overload and adjust.
35730 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
35731 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
35732 (gimple_fold_stmt_to_constant_1): Likewise.
35733 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
35735 2014-01-08 Richard Biener <rguenther@suse.de>
35737 PR middle-end/59471
35738 * gimplify.c (gimplify_expr): Gimplify register-register type
35739 VIEW_CONVERT_EXPRs to separate stmts.
35741 2014-01-07 Jeff Law <law@redhat.com>
35743 PR middle-end/53623
35744 * ree.c (combine_set_extension): Handle case where source
35745 and destination registers in an extension insn are different.
35746 (combine_reaching_defs): Allow source and destination registers
35747 in extension to be different under limited circumstances.
35748 (add_removable_extension): Remove restriction that the
35749 source and destination registers in the extension are the same.
35750 (find_and_remove_re): Emit a copy from the extension's
35751 destination to its source after the defining insn if
35752 the source and destination registers are different.
35754 PR middle-end/59285
35755 * ifcvt.c (merge_if_block): If we are merging a block with more than
35756 one successor with a block with no successors, remove any BARRIER
35757 after the second block.
35759 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
35761 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
35763 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
35766 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
35767 for 14-bit register offsets when INT14_OK_STRICT is false.
35769 2014-01-07 Roland Stigge <stigge@antcom.de>
35770 Michael Meissner <meissner@linux.vnet.ibm.com>
35773 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
35774 Only check TFmode for SPE constants. Don't check TImode or TDmode.
35776 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
35778 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
35781 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
35783 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
35784 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
35785 rtx is const0_rtx or not.
35787 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
35790 * target-globals.c (save_target_globals): Remove this_fn_optab
35792 * toplev.c: Include optabs.h.
35793 (target_reinit): Temporarily restore the global options if another
35794 set of options are in force.
35796 2014-01-07 Jakub Jelinek <jakub@redhat.com>
35798 PR rtl-optimization/58668
35799 * cfgcleanup.c (flow_find_cross_jump): Don't count
35800 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
35801 to determine what is counted.
35802 (flow_find_head_matching_sequence): Use active_insn_p to determine
35804 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
35806 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
35807 determine what is counted.
35809 PR tree-optimization/59643
35810 * tree-predcom.c (split_data_refs_to_components): If one dr is
35811 read and one write, determine_offset fails and the write isn't
35812 in the bad component, just put the read into the bad component.
35814 2014-01-07 Mike Stump <mikestump@comcast.net>
35815 Jakub Jelinek <jakub@redhat.com>
35818 * tree-core.h (struct tree_optimization_option): Change optabs
35819 type from unsigned char * to void *.
35820 * optabs.c (init_tree_optimization_optabs): Adjust
35821 TREE_OPTIMIZATION_OPTABS initialization.
35823 2014-01-06 Jakub Jelinek <jakub@redhat.com>
35826 * config/i386/i386.h (struct machine_function): Add
35827 no_drap_save_restore field.
35828 * config/i386/i386.c (ix86_save_reg): Use
35829 !cfun->machine->no_drap_save_restore instead of
35830 crtl->stack_realign_needed.
35831 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
35832 this function clears frame_pointer_needed. Set
35833 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
35834 and DRAP reg is needed.
35836 2014-01-06 Marek Polacek <polacek@redhat.com>
35839 * doc/implement-c.texi: Mention that other integer types are
35840 permitted as bit-field types in strictly conforming mode.
35842 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
35844 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
35845 is newly allocated.
35847 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
35849 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
35851 2014-01-06 Martin Jambor <mjambor@suse.cz>
35854 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
35856 * ipa-prop.c (ipa_print_node_params): Fix indentation.
35858 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
35862 * var-tracking.c (add_stores): Preserve the value of the source even if
35863 we don't record the store.
35865 2014-01-06 Terry Guo <terry.guo@arm.com>
35867 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
35869 2014-01-05 Iain Sandoe <iain@codesourcery.com>
35872 * config/darwin.c (darwin_function_section): Adjust return values to
35873 correspond to optimisation changes made in r206070.
35875 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
35877 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
35878 from prefetch_block tune setting.
35879 (nocona_cost): Correct size of prefetch block to 64.
35881 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
35883 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
35884 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
35885 used to save the static chain register in the computation of the offset
35886 from which the FP registers need to be restored.
35888 2014-01-04 Jakub Jelinek <jakub@redhat.com>
35890 PR tree-optimization/59519
35891 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
35892 ICE if get_current_def (current_new_name) is already non-NULL, as long
35893 as it is a phi result of some other phi in *new_exit_bb that has
35896 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
35897 or vmovdqu* for misaligned_operand.
35898 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
35899 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
35900 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
35901 aligned_mem for AVX512F masked aligned load and store builtins and for
35902 non-temporal moves.
35904 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
35906 PR tree-optimization/59651
35907 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
35908 Address range for negative step should be added by TYPE_SIZE_UNIT.
35910 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
35912 * config/m68k/m68k.c (handle_move_double): Handle pushes with
35913 overlapping registers also for registers other than the stack pointer.
35915 2014-01-03 Marek Polacek <polacek@redhat.com>
35918 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
35921 2014-01-03 Jakub Jelinek <jakub@redhat.com>
35924 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
35927 * config/i386/i386.md (MODE_SIZE): New mode attribute.
35928 (push splitter): Use <P:MODE_SIZE> instead of
35929 GET_MODE_SIZE (<P:MODE>mode).
35930 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
35931 (mov -1, reg peephole2): Likewise.
35932 * config/i386/sse.md (*mov<mode>_internal,
35933 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
35934 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
35935 *<code><mode>3, *andnot<mode>3<mask_name>,
35936 <mask_codefor><code><mode>3<mask_name>): Likewise.
35937 * config/i386/subst.md (mask_mode512bit_condition,
35938 sd_mask_mode512bit_condition): Likewise.
35940 2014-01-02 Xinliang David Li <davidxl@google.com>
35942 PR tree-optimization/59303
35943 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
35944 (dump_predicates): Better output format.
35945 (pred_equal_p): New function.
35946 (is_neq_relop_p): Ditto.
35947 (is_neq_zero_form_p): Ditto.
35948 (pred_expr_equal_p): Ditto.
35949 (pred_neg_p): Ditto.
35950 (simplify_pred): Ditto.
35951 (simplify_preds_2): Ditto.
35952 (simplify_preds_3): Ditto.
35953 (simplify_preds_4): Ditto.
35954 (simplify_preds): Ditto.
35955 (push_pred): Ditto.
35956 (push_to_worklist): Ditto.
35957 (get_pred_info_from_cmp): Ditto.
35958 (is_degenerated_phi): Ditto.
35959 (normalize_one_pred_1): Ditto.
35960 (normalize_one_pred): Ditto.
35961 (normalize_one_pred_chain): Ditto.
35962 (normalize_preds): Ditto.
35963 (normalize_cond_1): Remove function.
35964 (normalize_cond): Ditto.
35965 (is_gcond_subset_of): Ditto.
35966 (is_subset_of_any): Ditto.
35967 (is_or_set_subset_of): Ditto.
35968 (is_and_set_subset_of): Ditto.
35969 (is_norm_cond_subset_of): Ditto.
35970 (pred_chain_length_cmp): Ditto.
35971 (convert_control_dep_chain_into_preds): Type change.
35972 (find_predicates): Ditto.
35973 (find_def_preds): Ditto.
35974 (destroy_predicates_vecs): Ditto.
35975 (find_matching_predicates_in_rest_chains): Ditto.
35976 (use_pred_not_overlap_with_undef_path_pred): Ditto.
35977 (is_pred_expr_subset): Ditto.
35978 (is_pred_chain_subset_of): Ditto.
35979 (is_included_in): Ditto.
35980 (is_superset_of): Ditto.
35982 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
35984 Update copyright years.
35986 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
35988 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
35989 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
35990 config/arc/arc.md, config/arc/arc.opt,
35991 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
35992 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
35993 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
35994 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
35995 config/linux-protos.h, config/linux.c, config/winnt-c.c,
35996 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
35997 vtable-verify.c, vtable-verify.h: Use the standard form for the
36000 2014-01-02 Tobias Burnus <burnus@net-b.de>
36002 * gcc.c (process_command): Update copyright notice dates.
36003 * gcov-dump.c: Ditto.
36005 * doc/cpp.texi: Bump @copying's copyright year.
36006 * doc/cppinternals.texi: Ditto.
36007 * doc/gcc.texi: Ditto.
36008 * doc/gccint.texi: Ditto.
36009 * doc/gcov.texi: Ditto.
36010 * doc/install.texi: Ditto.
36011 * doc/invoke.texi: Ditto.
36013 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
36015 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
36017 2014-01-01 Jakub Jelinek <jakub@redhat.com>
36019 * config/i386/sse.md (*mov<mode>_internal): Guard
36020 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
36022 PR rtl-optimization/59647
36023 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
36024 new_rtx into UNSIGNED_FLOAT rtxes.
36026 Copyright (C) 2014 Free Software Foundation, Inc.
36028 Copying and distribution of this file, with or without modification,
36029 are permitted in any medium without royalty provided the copyright
36030 notice and this notice are preserved.